/* CSS-Variablen für das Farbkonzept */
:root {
    --primary-color: #BCD7B6;      /* Sanftes Grün */
    --secondary-color: #F5F5F5;    /* Sehr helles Grau */
    --background-color: #FFFFFF;   /* Weiß */
    --text-color: #000000;         /* Schwarz */
    --accent-color: #2b5947;       /* Dunkleres Grün für Akzente */

    --radius-card: 16px;           /* Einheitliche Rundung für Cards & Buttons */
}

/* Global Styles */
body {
    font-family: 'Urbanist', sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
    background: var(--secondary-color);
    font-size: 16px; /* Basisschriftgröße */
}

/* Header */
.header {
    background: var(--background-color);
    padding: 20px 0 0 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.menu li {
    display: inline;
}

.menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.menu a:hover {
    color: var(--accent-color);
}

/* Navbar Logo */
.navbar .logo a {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    height: 3px;
    width: 25px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .menu {
        position: absolute;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .menu.active {
        left: 0;
    }

    .menu li {
        margin: 20px 0;
    }

    .menu a {
        font-size: 1.2rem;
    }
}

/* Animation Hamburger Icon */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Content */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0 0 0;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text,
    .hero-image-container {
        width: 100%;
    }

    .hero-image {
        max-width: 60%;
        margin-top: 20px;
    }
}

.hero-text {
    width: 50%;
    text-align: center;
    text-transform: uppercase;
}

/* Keyframe-Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Texte */
.hero-subtitle {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out 0.2s forwards;
}

.hero-title {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out 0.4s forwards;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-top: -20px;
    margin-bottom: 10px;
}

.hero-description {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out 0.6s forwards;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-text .btn {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out 0.8s forwards;
}

/* Hero Bild */
.hero-image-container {
    width: 50%;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hero-image {
    max-width: 80%;
    border-radius: 10px; /* bewusst anders als Cards */
    opacity: 0;
    animation: slideInRight 1s ease-in-out 1s forwards;
}

/* Sections */
.section {
    padding: 80px 0;
}

/* Überschriften */
.section h2 {
    text-align: center;
    position: relative;
    margin: 0 auto 40px auto;
    padding-bottom: 10px;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 2rem;
}

.section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--text-color);
    margin: 10px auto 0 auto;
}

@media (max-width: 768px) {
    .section h2 {
        padding-bottom: 8px;
        margin-bottom: 30px;
        font-size: 1.8rem;
    }

    .section h2::after {
        width: 40px;
        margin: 8px auto 0 auto;
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    padding: 15px 0;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Button */
.btn {
    background: var(--background-color);
    color: var(--text-color);
    padding: 12px 20px;
    border: 1px solid var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    border-radius: var(--radius-card);
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: var(--primary-color);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Teaser Section */
.teaser-section {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 30px 0;
}

.teaser-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.teaser-box h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.teaser-box p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.teaser-box .btn {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 10px 20px;
    margin: 30px;
    border-radius: var(--radius-card);
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.teaser-box .btn:hover {
    background-color: var(--background-color);
    color: var(--accent-color);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Skills Grid Layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 30px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Skill Cards */
.skill-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--background-color);
    border-radius: var(--radius-card);
    padding: 18px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Icon Kreis in Skill Cards */
.skill-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-card-icon i {
    font-size: 1.3rem;
    color: var(--text-color);
}

/* Textbereich in Skill Cards */
.skill-card-content h3 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.skill-card-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Portfolio Section */
/* Filter-Tabs */
.filter-tabs {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    display: inline-block;
    padding: 8px 18px;
    margin: 0 8px;
    background: var(--background-color);
    border: 1px solid #ddd;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: var(--radius-card);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--text-color);
    border-color: var(--primary-color);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Item */
.portfolio-item {
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    height: 300px;
    border-radius: var(--radius-card);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 10px;
    font-size: 1.2rem;
    z-index: 1;
    border-radius: inherit;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

/* Timeline Sektion */
.timeline {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--text-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item .content {
    background: var(--background-color);
    padding: 15px 20px;
    border-radius: var(--radius-card);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-item.left .content {
    margin-left: auto;
}

.timeline-item.right .content {
    margin-right: auto;
}

/* Pfeile an Content-Boxen (Desktop/Tablet) */
.timeline-item.left .content::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    border-width: 10px 15px 10px 0;
    border-style: solid;
    border-color: transparent var(--primary-color) transparent transparent;
}

.timeline-item.right .content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    transform: translateY(-50%);
    border-width: 10px 0 10px 15px;
    border-style: solid;
    border-color: transparent transparent transparent var(--primary-color);
}

.timeline-item .content h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

.timeline-item .content p {
    margin: 5px 0 0 0;
    font-size: 0.95rem;
}

/* Über mich Grid Layout */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Über mich Content Box */
.about-box {
    position: relative;
    background: var(--background-color);
    padding: 30px 20px 20px 20px;
    border-radius: var(--radius-card);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.about-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Icon in About Box */
.about-box .icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.about-box .icon i {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Text in About Box */
.about-box h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.about-box p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    animation: fadeIn 0.3s ease-in;
}

.lightbox.active {
    display: block;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    width: 100%;
    height: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
}

.modal-content img {
    max-width: 90%;
    max-height: 90vh;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 5px 10px;
}

.close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Kontakt Sektion – Card Layout */
.contact-section {
    position: relative;
}

.bubble4-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70vw;
    height: 70vw;
    background: url('bubble4.png') no-repeat right bottom;
    background-size: contain;
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}

.contact-container {
    position: relative;
    z-index: 1;
}

.contact-card {
    max-width: 850px;
    margin: 0 auto 20px auto;
    background: var(--background-color);
    border-radius: var(--radius-card);
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .contact-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* linker Bereich Kontakt */
.contact-main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-color);
    flex-shrink: 0;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info {
    font-size: 0.95rem;
}

.contact-role {
    margin: 0 0 4px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.contact-name {
    margin: 0 0 4px 0;
    font-size: 1.3rem;
}

.contact-location {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-status {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3bb54a;
}

.contact-email-tel {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
}

.contact-email-tel a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-email-tel a:hover {
    text-decoration: underline;
}

/* rechter Bereich Kontakt */
.contact-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .contact-side {
        align-items: flex-start;
        width: 100%;
    }
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Kontakt Buttons */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: none;
    font-size: 0.9rem;
}

/* Button Variationen */
.btn-primary {
    background: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--text-color);
}

.btn-secondary {
    background: var(--background-color);
    color: var(--text-color);
    border-color: var(--text-color);
    opacity: 0.9;
}

.btn-secondary:hover {
    opacity: 1;
}

/* Kontakt-Banner (falls wieder genutzt) */
.contact-banner {
    max-width: 850px;
    margin: 15px auto 0 auto;
    background: var(--primary-color);
    border-radius: var(--radius-card);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.contact-banner-icon {
    font-size: 1.1rem;
}

/* MOBILE-ANPASSUNGEN: Kontakt + Timeline */
@media (max-width: 768px) {

    /* Kontakt-Buttons mittig und schön breit */
    .contact-buttons {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .contact-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .contact-side {
        width: 100%;
        align-items: center;
    }

    /* Timeline – Handy einspaltig */
    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        left: 0;
        padding: 20px 20px 20px 60px; /* Platz für Linie + Pfeil */
        margin-bottom: 25px;
        text-align: left;
        box-sizing: border-box;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item .content {
        margin: 0;
    }

    /* einheitlicher Pfeil links für alle Einträge */
    .timeline-item.left .content::after,
    .timeline-item.right .content::after {
        content: '';
        position: absolute;
        top: 50%;
        left: -15px;
        right: auto;
        transform: translateY(-50%);
        border-width: 10px 15px 10px 0;
        border-style: solid;
        border-color: transparent var(--primary-color) transparent transparent;
    }
}
