.navbar {
    position: absolute;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: transparent;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        background 0.4s ease,
        padding 0.4s ease,
        box-shadow 0.4s ease,
        backdrop-filter 0.4s ease;
    bottom: -17vh;
}





/* ===== 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 */
}

/* ===== 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;
    }
}

/* ===== Cinematic CTA Banner ===== */

.cta-banner {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.cta-banner-img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 120%;

    object-fit: cover;
    object-position: top center;

    transform: scale(1.15);
    opacity: 0;

    transition:
        transform 2s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 1.4s ease;
}

/* wenn Banner sichtbar */
.cta-banner.visible .cta-banner-img {
    transform: scale(1.05);
    opacity: 1;
}

.cta-banner-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-banner-content {
    text-align: center;
    color: white;
}

.cta-banner-content h2 {
    font-size: 2.6rem;
    margin-bottom: 25px;
}

.cta-banner-btn {
    padding: 14px 34px;
    border-radius: 50px;

    background: #f1efe7;
    color: #111;
    border: solid;
    border-width: 2px;

    text-decoration: none;
    font-weight: 500;

    transition: all 0.3s ease;
}

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

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

.cta-section {
    position: relative;
    width: 70%;
    max-width: 1400px;
    margin: 120px auto;
    display: none;
    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);
}

/* ========================================= */
/* ============== 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;
}

@media (hover: hover) and (pointer: fine) {
    .gallery-item:hover {
        transform: scale(1.07);
        z-index: 10;
    }
}

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

/* ===== Kategorie Sektion ===== */
.categories-section {
    width: 80%;
    max-width: 1200px;
    margin: 100px auto 30vh 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;
    overflow-x: clip;
    overflow-y: visible;
}

.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;
        scrollbar-width: none;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .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;
}

.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;
    min-height: 200px;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    height: auto;
    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%);
}

@media (hover: hover) and (pointer: fine) {
    .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;
}

/* ===== Social Slider Dots ===== */

.social-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.social-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bbb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-dot:hover {
    background: #777;
}

.social-dot.active {
    background: #111;
    transform: scale(1.4);
}
/* ===== Finaler CTA ===== */

.final-cta {
    margin-top: 180px;
    padding: 160px 20px;

    background: #f1efe7;
    color: white;

    text-align: center;
}

.final-cta-content {
    max-width: 800px;
    color: #2c2721;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: clamp(2.4rem, 4vw, 3rem);
    margin-bottom: 25px;
    letter-spacing: 0.3px;
}

.final-cta p {
    font-size: 1.15rem;

    margin-bottom: 45px;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.final-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    padding: 14px 36px;

    border-radius: 50px;
    border: 1px solid white;
    background-color: #746658;

    text-decoration: none;
    color: white;

    white-space: nowrap; /* verhindert Zeilenumbruch */

    min-width: 230px; /* beide gleich groß */

    transition: all 0.3s ease;
}

.final-cta-btn:hover {
    transform: translateY(-2px);
    background-color: #574b42;
}

@media (min-width: 1200px) {
    .intro-section {
        margin-top: 50px
    }
}

@media (max-width: 1200px) {
    .hero-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero {
        width: 100%;
    }

    .navbar {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        transform: none;
        width: max-content;
        max-width: calc(100vw - 40px);
        padding: 18px 24px;
        gap: 18px;
        align-self: center;
        margin: 0 auto;
    }

    .overlay {
        transform: translateY(32vh);
        padding: 0 24px;
        text-align: center;
    }

    .gallery-section,
    .categories-section,
    .social-proof-section {
        width: 88%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hero {
        min-height: 760px;
    }

    .navbar {
        padding: 14px 18px;
    }

    .overlay {
        transform: translateY(26vh);
    }

    .cta-banner {
        height: 360px;
    }

    .cta-banner-content h2,
    .cta-overlay h2 {
        font-size: 2.2rem;
    }

    .category-content {
        height: 360px;
    }

    .category-item img {
        max-width: 82%;
    }

    .final-cta {
        margin-top: 120px;
        padding: 110px 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: min(100svh, 820px);
        min-height: 700px;
    }

    .navbar:not(.sticky) {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .navbar:not(.sticky) .burger {
        display: none;
    }

    .navbar:not(.sticky) .logo-img {
        height: 90px;
    }

    .navbar.sticky {
        left: 50%;
        transform: translateX(-50%);
    }

    .overlay {
        transform: translateY(22vh);
        padding: 0 18px;
    }

    .overlay h1 {
        text-align: center;
    }

    .overlay h2 {
        text-align: center;
        font-size: 1rem;
    }

    .intro-section {
        padding: 90px 20px 72px;
    }

    .gallery-section {
        margin: 110px auto;
        width: calc(100% - 48px);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .gallery-column {
        gap: 14px;
    }

    .categories-section {
        width: calc(100% - 48px);
        margin: 90px auto 120px;
    }

    .category-content {
        height: 380px;
        margin-bottom: 30px;
    }

    .category-item img {
        max-width: 100%;
    }

    .social-proof-section {
        width: calc(100% - 48px);
        margin: 80px auto;
    }

    .testimonial-slide {
        width: min(100%, 520px);
        padding: 1.4rem;
    }

    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .final-cta-btn {
        width: min(100%, 320px);
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 620px;
    }

    .overlay {
        transform: translateY(18vh);
    }

    .overlay h2 {
        line-height: 1.5;
    }

    .intro-text h2,
    .categories-section h2,
    .social-proof-section h2 {
        font-size: 1.8rem;
    }

    .cta-banner {
        height: 300px;
    }

    .cta-banner-content h2,
    .cta-overlay h2 {
        font-size: 1.7rem;
        padding: 16px 18px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .category-content {
        height: 400px;
    }

    .testimonial-slide {
        padding: 1.1rem;
    }

    .final-cta {
        padding: 90px 24px;
    }
}
