/* ====== Grundlayout ====== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* ===== HERO PARALLAX ===== */
.hero-wrapper {
    position: relative;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;

    animation: cinematicZoom 22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cinematicZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    transform: translateY(40vh); /* 👈 Wert anpassen */
}

/* ===== Navbar ===== */
.navbar {
    position: absolute;
    bottom: -17vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: transparent;
    transition: all 0.4s ease;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 25px;
}

.nav-btn {
    background-color: #f1efe7;
    color: black;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid;
    border-width: 2px;
    height: 5vh;
    width: 10vh;
    padding: 0 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #554c40;
    color: white;
    transform: translateY(-2px);
}

.logo-img {
    height: 20vh;
    width: auto;
    transition: all 0.4s ease;
}

.logo-img:hover {
    transform: translateY(-6px);
}

.navbar.sticky {
    position: fixed;
    top: 20px;
    bottom: auto;
    padding: 15px 30px;
    background: rgba(85, 76, 64, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 60px;
}

.navbar.sticky .logo-img {
    height: 11vh;
}

.navbar.sticky .nav-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ===== INTRO SECTION ===== */

.intro-section {
    padding: 140px 20px 120px 20px;
    background: #ffffff;
    text-align: center;
}

.intro-container {
    max-width: 750px;
    margin: 0 auto;
}

.intro-section h2 {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.intro-lead {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.6;
}

.intro-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.intro-cta {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 34px;
    border: 1px solid #111;
    text-decoration: none;
    color: #111;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.35s ease;
}

.intro-cta:hover {
    background: #111;
    color: #fff;
    transform: translateY(-3px);
}

/* ===== INTRO SPLIT SECTION ===== */

.intro-section {
    padding: 140px 40px;
    background: #ffffff;
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

/* Bild */
.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Text */
.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.intro-lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
}

.intro-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.intro-cta {
    display: inline-block;
    margin-top: 10px;
    padding: 14px 34px;
    border: 1px solid #111;
    text-decoration: none;
    color: #111;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.35s ease;
}

.intro-cta:hover {
    background: #111;
    color: #fff;
    transform: translateY(-3px);
}

/* ===== MOBILE ===== */

@media (max-width: 900px) {
    .intro-container {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }

    .intro-image img {
        aspect-ratio: 4 / 5;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile Feinschliff */
@media (max-width: 768px) {
    .intro-section {
        padding: 100px 25px 80px 25px;
    }

    .intro-section h2 {
        font-size: 1.8rem;
    }

    .intro-lead {
        font-size: 1.1rem;
    }
}

/* ===== Burger Menü ===== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 200;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links {
    display: none;
}

@media (max-width: 768px) {
    .nav-left,
    .nav-right {
        display: none;
    }

    .burger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: rgba(0, 0, 0, 0.9);
        padding: 15px 20px;
        border-radius: 10px;
        z-index: 150;
    }

    .nav-btn {
        width: auto;
        padding: 10px 20px;
        margin: 5px 0;
        text-align: center;
    }

    .logo-img {
        height: 10vh;
    }
}

.burger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.toggle span:nth-child(2) {
    opacity: 0;
}
.burger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== CTA Section ===== */

.cta-section {
    position: relative;
    width: 70%;
    max-width: 1400px;
    margin: 120px auto;

    aspect-ratio: 5 / 3; /* 🔥 DAS ist der wichtige Teil */

    overflow: hidden;
    border-radius: 20px;
}

.cta-section:hover .cta-image.active {
    filter: blur(8px);
}

.cta-section .cta-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transform: translateX(100%);
    transition:
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.6s cubic-bezier(0.22, 1, 0.36, 1); /* 👈 wichtig */

    z-index: 1;
}

/* Blur Layer */
.cta-section .cta-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.05);
    transition:
        filter 0.8s ease,
        transform 0.8s ease;
}

/* Wenn HQ geladen */
.cta-section .cta-image.loaded::before {
    filter: blur(0);
    transform: scale(1);
}

/* Sichtbar */
.cta-section .cta-image.active {
    transform: translateX(0);
    z-index: 2;
}

/* Nach links raus */
.cta-section .cta-image.exit {
    transform: translateX(-100%);
    z-index: 1;
}

/* Overlay bleibt gleich wie vorher */

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25); /* Weiß mit 25% Deckkraft */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.cta-overlay h2 {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    transition: transform 0.6s ease;

    background: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    border-radius: 12px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.cta-section:hover .cta-overlay h2 {
    transform: scale(1.08);
}

/* ===== GLOBAL BLUR UP ===== */

.blur-up {
    filter: blur(20px);
    transform: scale(1.05);
    transition:
        filter 0.8s ease,
        transform 0.8s ease;
}

.blur-up.loaded {
    filter: blur(0);
    transform: scale(1);
}

/* ========================================= */
/* ============== Gallery Grid ============= */
/* ========================================= */

.gallery-section {
    width: 80%;
    max-width: 1500px;
    margin: 180px auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}
.gallery-item {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden; /* DAS fixiert es */
    border-radius: 18px;
}

.gallery-item:hover {
    transform: scale(1.07);
    z-index: 10;
}

@media (max-width: 768px) {
    .gallery-section {
        width: 92%;
    }
}

/* Hintergrund Blur */
.lightbox {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

/* Aktiv */
.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

/* Bild Container */
.lightbox-content {
    max-width: 85vw;
    max-height: 85vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Bild selbst */
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 40px;
    padding: 15px 20px;
    cursor: pointer;
    
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-arrow.left {
    left: 30px;
}

.lightbox-arrow.right {
    right: 30px;
}

#lightbox {
    touch-action: pan-y;
}


/* Animation */
.lightbox.active .lightbox-content {
    transform: scale(1);
}

/* ===== Kategorie Sektion ===== */
.categories-section {
    width: 80%;
    max-width: 1200px;
    margin: 100px auto 75vh auto;
    text-align: center;
}

.categories-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.categories-section p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #444;
}

/* Kategorie Tabs */

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.tab {
    cursor: pointer;
    font-weight: 400;
    color: #444;
    position: relative; /* für ::after */
    padding-bottom: 8px; /* Platz für die Linie */
}

/* Pseudo-Element vorbereiten */
.tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0; /* Start: unsichtbar */
    height: 3px;
    background-color: #f1efe7;
    border-radius: 2px;
    transition: width 0.2s ease; /* Animation beim Wechsel */
    opacity: 0;
}

/* Aktive Kategorie */
.tab.active {
    font-weight: 700;
    color: #111;
}

/* Linie auf volle Breite */
.tab.active::after {
    width: 100%; /* animiert von 0 → 100% */
    opacity: 1;
}

.tab:hover {
    color: #111;
}

/* Content */

.category-content {
    position: relative;
    height: 400px; /* Höhe der Kategorie-Box, anpassen je nach Bildgröße */
    margin-bottom: 60px;
}

.category-item {
    position: absolute;
    inset: 0; /* top:0; left:0; right:0; bottom:0 */
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.category-item.active {
    opacity: 1;
    transform: translateY(0);
}

.category-item img {
     max-width: 70%;  
    margin: 0 auto 15px auto; /* zentriert */
    border-radius: 15px;
    margin-bottom: 15px;
}

.category-item p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 768px) {
    .category-tabs {
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }

    .tab {
        flex: 0 0 auto;
    }
}



/* Social Proof */ 

.social-proof-section {
    width: 80%;
    max-width: 1200px;
    margin: 100px auto 100px auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.social-proof-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.social-proof-section p {
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: #444;
}

.social-proof-slider {
    position: relative;
    
    height: 400px; /* Höhe anpassen */
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 80%;
    padding: 2rem;
    background-color: #f1efe7;
    color: #fff;
    border: 2px solid #1A1A1A; /* gleiche Farbe wie Navbar-Buttons */
    border-radius: 12px;
    box-sizing: border-box;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.5s ease;
    transform: translate(-50%, -50%);
}

.testimonial-slide.active:hover {
    transform: translate(-50%, -50%) scale(1.03); /* leicht vergrößern */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* dezent dunkler Schatten */
    cursor: pointer;
}

.testimonial-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.testimonial-slide.exit {
    opacity: 0;
    transform: translate(-45%, -50%); /* bleibt zentriert */
    z-index: 1;
    pointer-events: none;
}


.testimonial-slide img {
    max-width: 80px; /* Größe anpassen */
    border-radius: 50%;
    margin-bottom: 15px;
    transition: filter 1s ease;
}

.testimonial-slide img.loaded {
    filter: blur(0);
}


.testimonial-slide p {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: center;
}

.testimonial-slide span {
    font-size: 0.9rem;
    color: #888;
}