/* ==========================================================================
   MammaBo Main Site Styles
   ========================================================================== */

/* ---------- Navigation (new site) ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        padding 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--color-bg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    transition: var(--transition-smooth);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgb(33, 32, 32);
    position: relative;
    letter-spacing: 0.3px;
}

.navbar.scrolled .nav-links a {
    color: var(--color-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--color-primary);
}

.nav-cta {
    display: flex;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
    padding: 4px;
}

.mobile-toggle span {
    width: 26px;
    height: 2.5px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.navbar.scrolled .mobile-toggle span {
    background-color: var(--color-text);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   Hero Section — Split Layout
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-bg);
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 90%, rgba(203, 1, 1, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(203, 1, 1, 0.04) 0%, transparent 50%),
        var(--color-bg);
}

.hero-split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 3rem 4rem;
    width: 100%;
}

.hero-text {
    text-align: left;
}

.hero-claim {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    padding: 0.5rem 1.5rem;
    border: 1.5px solid rgba(203, 1, 1, 0.2);
    border-radius: 50px;
    background: rgba(203, 1, 1, 0.06);
    transition: all 0.4s ease;
}

.hero-claim:hover {
    background: rgba(203, 1, 1, 0.1);
    border-color: rgba(203, 1, 1, 0.35);
}

.hero-title {
    font-family: var(--font-handwriting);
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 1.25rem;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: #5a6577;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 460px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-cta {
    font-size: 1.05rem;
    padding: 1rem 2.5rem;
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid rgba(45, 55, 72, 0.2);
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-outline-dark:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 1, 1, 0.1);
}

/* Hero Visual — Image + Spline */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 540px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.12),
        0 10px 30px rgba(0, 0, 0, 0.08);
    animation: heroImgFloat 6s ease-in-out infinite;
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
    pointer-events: none;
}

@keyframes heroImgFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-img-wrapper:hover .hero-img {
    transform: scale(1.04);
}

.hero-img-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(203, 1, 1, 0.15), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: accentPulse 4s ease-in-out infinite;
}

@keyframes accentPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Spline 3D Accent */
.spline-accent {
    position: absolute;
    top: -40px;
    right: -60px;
    width: 280px;
    height: 280px;
    z-index: 3;
    pointer-events: none;
    opacity: 0.85;
}

spline-viewer::part(logo) {
    display: none;
}

spline-viewer {
    --spline-viewer-logo-display: none;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(45, 55, 72, 0.4);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ==========================================================================
   Decorative Hero Elements
   ========================================================================== */
.hero-deco-circle-1 {
    position: absolute;
    top: 15%;
    right: 8%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1.5px solid rgba(203, 1, 1, 0.08);
    z-index: 0;
    animation: decoFloat1 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-deco-circle-2 {
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(203, 1, 1, 0.04), transparent 70%);
    z-index: 0;
    animation: decoFloat2 10s ease-in-out infinite;
    pointer-events: none;
}

.hero-deco-circle-3 {
    position: absolute;
    top: 60%;
    right: 15%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(203, 1, 1, 0.06);
    z-index: 0;
    animation: decoFloat3 7s ease-in-out infinite;
    pointer-events: none;
}

.hero-deco-dots {
    position: absolute;
    top: 25%;
    left: 12%;
    display: grid;
    grid-template-columns: repeat(3, 6px);
    grid-template-rows: repeat(3, 6px);
    gap: 8px;
    z-index: 0;
    opacity: 0.3;
    animation: decoFloat2 12s ease-in-out infinite;
    pointer-events: none;
}

.hero-deco-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

.hero-deco-line {
    position: absolute;
    bottom: 30%;
    right: 3%;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(203, 1, 1, 0.15), transparent);
    z-index: 0;
    animation: decoFloat1 9s ease-in-out infinite;
    pointer-events: none;
}

.hero-deco-tag {
    position: absolute;
    bottom: 12%;
    left: 8%;
    font-family: var(--font-handwriting);
    font-size: 1.3rem;
    color: rgba(203, 1, 1, 0.15);
    transform: rotate(-8deg);
    z-index: 0;
    animation: decoFloat3 11s ease-in-out infinite;
    pointer-events: none;
    letter-spacing: 1px;
}

@keyframes decoFloat1 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes decoFloat2 {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    33% {
        transform: translateY(-10px) translateX(5px);
    }

    66% {
        transform: translateY(5px) translateX(-5px);
    }
}

@keyframes decoFloat3 {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.1);
    }
}

/* ==========================================================================
   Typewriter Animation
   ========================================================================== */
.typewriter-cursor::after {
    content: '|';
    font-weight: 300;
    color: var(--color-primary);
    animation: cursorBlink 0.8s step-end infinite;
    margin-left: 2px;
}

.typewriter-cursor.done::after {
    display: none;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-label-light {
    color: rgba(255, 255, 255, 0.7);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.section-title .title-accent {
    display: block;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 500;
    color: var(--color-primary);
    margin-top: 0.75rem;
    letter-spacing: 0.5px;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a6577;
    max-width: 680px;
}

/* ==========================================================================
   Konzept Section
   ========================================================================== */
.konzept-section {
    position: relative;
    z-index: 10;
    padding: 7rem 2rem 6rem;
    background-color: var(--color-bg);
}

.konzept-container {
    max-width: 1200px;
    margin: 0 auto;
}

.konzept-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem;
}

.konzept-header .section-description {
    margin-left: auto;
    margin-right: auto;
}

/* Image Mosaic */
.konzept-mosaic {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 500px;
}

.mosaic-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.mosaic-img {
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    height: 100%;
}

.mosaic-item:hover .mosaic-img {
    transform: scale(1.06);
}


.mosaic-large {
    grid-row: 1 / 3;
}

.mosaic-small-top {
    grid-row: 1 / 2;
}

.mosaic-small-bottom {
    grid-row: 2 / 3;
}

/* ==========================================================================
   Locations Section
   ========================================================================== */
.locations-section {
    padding: 7rem 2rem;
    background-color: #fff;
}

.locations-container {
    max-width: 1200px;
    margin: 0 auto;
}

.locations-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.location-card {
    position: relative;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
}

.location-bg {
    position: absolute;
    inset: 0;
}

.location-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.location-card:hover .location-bg img {
    transform: scale(1.06);
}

.location-card .location-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.55) 55%,
            rgba(0, 0, 0, 0.15) 100%);
    transition: background 0.5s ease;
    z-index: 1;
}

.location-card:hover .location-overlay {
    background: linear-gradient(0deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.65) 60%,
            rgba(0, 0, 0, 0.2) 100%);
}

.location-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.location-card:hover .location-content {
    transform: translateY(-8px);
}

.location-direction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--color-white);
    transition: all 0.3s ease;
}

.location-card:hover .location-direction {
    background: var(--color-primary);
}

.location-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.location-desc {
    font-size: 1rem;
    color: var(--color-white);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 400px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.location-card:hover .tag {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Location link as <a> tag reset */
a.location-card {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.location-link-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.5px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.location-card:hover .location-link-label {
    color: var(--color-primary);
    transform: translateX(4px);
}

.location-footer {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-top: 1.25rem;
    width: 100%;
}

/* ==========================================================================
   Image Container Section
   ========================================================================== */
.image-container {
    padding: 5rem 2rem;
    background-color: #ffffff;
    /* Heller Hintergrund für Abwechslung */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.image-wrapper .slider-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.image-wrapper .slider-img.active {
    opacity: 1;
    z-index: 2;
}

.image-wrapper .slider-img:not(:first-child) {
    position: absolute;
    top: 0;
    left: 0;
}

/* ==========================================================================
   Merkmale Section
   ========================================================================== */
.merkmale-section {
    padding: 7rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2C2A29 50%, #1a1a1a 100%);
    color: var(--color-white);
    overflow: hidden;
}

.merkmale-container {
    max-width: 1200px;
    margin: 0 auto;
}

.merkmale-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.merkmale-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.merkmale-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

.merkmale-features {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.feature {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: rgba(203, 1, 1, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.05);
}

.feature h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.3rem;
}

.feature p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Merkmale Image */
.merkmale-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    aspect-ratio: 3 / 4;
    max-height: 550px;
}

.merkmale-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.merkmale-image:hover img {
    transform: scale(1.04);
}

/* ==========================================================================
   Gallery Strip
   ========================================================================== */
.gallery-strip {
    background-color: var(--color-bg);
    padding: 1rem 0;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    animation: galleryScroll 40s linear infinite;
    width: max-content;
}

.gallery-item {
    width: 280px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.gallery-item:hover img {
    transform: scale(1.08);
}

@keyframes galleryScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #1a1a1a;
    color: var(--color-white);
    padding: 2.5rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-brand .footer-logo {
    display: block;
    margin-bottom: 0.75rem;
}

.footer-brand .footer-logo img {
    transition: width 0.3s ease;
}

/* Desktop */
@media (min-width: 1025px) {
    .footer-brand .footer-logo img {
        width: 180px;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-brand .footer-logo img {
        width: 150px;
        margin: 0;
    }

    .footer-brand {
        grid-column: span 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .footer-brand p {
        margin-bottom: 0;
        max-width: 350px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .footer-brand .footer-logo img {
        width: 120px;
        margin: 0 auto;
    }
}

.footer-brand p {
    color: #8a8a8a;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.85rem;
}

.social-icons {
    display: flex;
    gap: 0.6rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: #aaa;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    list-style: none;
}

.footer-links a {
    color: #8a8a8a;
    font-size: 0.82rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* ==========================================================================
   Animations (Scroll reveal)
   ========================================================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in hero */
.hero-text [data-animate]:nth-child(1) {
    transition-delay: 0.1s;
}

.hero-text [data-animate]:nth-child(2) {
    transition-delay: 0.3s;
}

.hero-text [data-animate]:nth-child(3) {
    transition-delay: 0.5s;
}

.hero-text [data-animate]:nth-child(4) {
    transition-delay: 0.7s;
}

/* ==========================================================================
   Mobile Menu Overlay
   ========================================================================== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-overlay a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    transition: color 0.3s ease;
}

.mobile-nav-overlay a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 5rem 2rem 3rem;
    }

    .hero-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-img-wrapper {
        max-width: 420px;
        margin: 0 auto;
    }

    .spline-accent {
        display: none;
    }

    .konzept-mosaic {
        height: 400px;
    }

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

    .location-card {
        height: 400px;
    }

    .merkmale-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .merkmale-image {
        max-height: 450px;
        aspect-ratio: 16 / 9;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
        justify-content: center;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        position: absolute;
        right: 1.5rem;
    }

    .hero-section {
        min-height: 100svh;
    }

    .hero-split {
        padding: 6rem 1.5rem 2rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 4.5rem);
    }

    .hero-claim {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .hero-img-wrapper {
        max-width: 340px;
    }

    .hero-img {
        aspect-ratio: 3 / 4;
    }

    .hero-img-accent {
        display: none;
    }

    .konzept-section {
        padding: 5rem 1.5rem 4rem;
    }

    .konzept-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: 250px 180px 180px;
        height: auto;
    }

    .mosaic-large {
        grid-row: auto;
    }

    .mosaic-small-top,
    .mosaic-small-bottom {
        grid-row: auto;
    }

    .locations-section {
        padding: 5rem 1.5rem;
    }

    .location-card {
        height: 380px;
    }

    .location-name {
        font-size: 2rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .merkmale-section {
        padding: 5rem 1.5rem;
    }

    .merkmale-image {
        aspect-ratio: 4 / 5;
        max-height: 400px;
    }

    .gallery-item {
        width: 220px;
        height: 160px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }

    .location-card {
        height: 340px;
    }

    .location-desc {
        font-size: 0.9rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.65rem;
    }
}

@media (max-width: 380px) {
    .location-content {
        padding: 1rem;
    }

    .mobile-nav-overlay a {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   Scroll Expansion Section (Interactive Hero-Style Second Section)
   ========================================================================== */
.scroll-expand-track {
    position: relative;
    height: 140vh;
    /* Scroll-track for the sticky animation */
    background-color: var(--color-bg);
}

.scroll-expand-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Background image that fades out on scroll */
.scroll-expand-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    opacity: 1;
    transition: opacity 0.1s linear;
}

.scroll-expand-bg img,
.scroll-expand-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.scroll-expand-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.scroll-expand-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scroll-expand-media-wrapper {
    position: absolute;
    width: 300px;
    height: 400px;
    max-width: 95vw;
    max-height: 85vh;
    border-radius: 24px;
    z-index: 5;
    will-change: width, height;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.scroll-expand-media {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
}

.scroll-expand-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scroll-expand-media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 24px;
    pointer-events: none;
    transition: opacity 0.2s linear;
}

/* Floating labels beneath the media container */
.scroll-expand-media-labels {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -80px;
    /* position it below the container */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    z-index: 10;
}

.scroll-expand-date {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    white-space: nowrap;
    will-change: transform;
}

.scroll-expand-hint {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
    white-space: nowrap;
    will-change: transform;
}

/* Title container with difference mix blend for premium aesthetic */
.scroll-expand-title-container {
    font-family: 'Times New Roman', Times, serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
    position: relative;
    z-index: 10;
    mix-blend-mode: difference;
    pointer-events: none;
}

.scroll-expand-title-left,
.scroll-expand-title-right {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #D01B19 0%, #861414 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
    /* will-change: transform; */
    text-transform: uppercase;
    letter-spacing: -2px;
}

/* Content block that scrolls into view */
.scroll-expand-content-section {
    position: relative;
    width: 100%;
    min-height: 50vh;
    background-color: var(--color-bg);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 8rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-expand-content-section.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-expand-content-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.scroll-expand-content-container h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.scroll-expand-overview,
.scroll-expand-conclusion {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #9e0f0f;
    margin-bottom: 1.5rem;
}

.scroll-expand-conclusion {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .scroll-expand-media-labels {
        bottom: -70px;
    }

    .scroll-expand-date {
        font-size: 1.2rem;
    }

    .scroll-expand-hint {
        font-size: 0.9rem;
    }
}