/* ============================================
   BÖDEN â€“ Page-Specific Styles (boeden.css)
   Stefan Kübrich GmbH & Co. KG
   ============================================ */

/* ============================================
   1. HERO SECTION
   ============================================ */
.b-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../img/boeden-hero.webp') center center / cover no-repeat;
    color: var(--white);
    overflow: hidden;
    padding: 8rem 0 6rem;
}

.b-hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(20, 25, 35, 0.85) 0%,
        rgba(20, 25, 35, 0.60) 55%,
        rgba(20, 25, 35, 0.20) 100%
    );
    z-index: 0;
}

.b-hero-inner {
    position: relative;
    z-index: 1;
}

.b-hero-content {
    max-width: 680px;
}

.b-hero-pre {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(157, 25, 27, 0.35);
    border: 1px solid rgba(157, 25, 27, 0.5);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.b-hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: var(--fw-bold);
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.b-hero-sub {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.b-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.b-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

.b-hero-trust span {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--fw-medium);
}

/* ============================================
   2. PORTFOLIO KACHELN (4-Grid)
   ============================================ */
.b-kachel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    margin-top: 3rem;
}

.b-kachel {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
}

.b-kachel:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.b-kachel-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.b-kachel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.b-kachel:hover .b-kachel-image img {
    transform: scale(1.07);
}

.b-kachel-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.b-kachel-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.b-kachel-text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.25rem;
}

.b-kachel .btn-outline {
    align-self: flex-start;
    color: var(--accent-red);
    border-color: var(--accent-red);
    background: transparent;
    transition: background var(--transition-base), color var(--transition-base);
}

.b-kachel .btn-outline:hover {
    background: var(--accent-red);
    color: var(--white);
}

/* ============================================
   3 & 4. SPLIT-SCREEN SECTIONS
   ============================================ */
.b-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* .b-split-grid--reverse: on desktop, text-left / image-right is natural HTML flow */
.b-split-image {
    position: relative;
}

.b-split-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: block;
}

.b-split-h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.b-split-h3-accent {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--accent-red);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.b-split-text {
    font-size: var(--fs-base);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.b-split-highlight {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--accent-red);
    border-left: 3px solid var(--accent-red);
    padding-left: 1.25rem;
    margin-top: 1rem;
    font-style: italic;
}

.b-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.b-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: var(--fs-base);
    color: var(--text-dark);
    line-height: 1.55;
}

.b-check {
    flex-shrink: 0;
    color: var(--white);
    background: var(--accent-red);
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    margin-top: 2px;
}

/* ============================================
   5. SCROLLYTELLING â€“ Full CSS Block
      (Must live here since tueren.css is not loaded)
   ============================================ */

.sticky-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--text-dark);
}

/* ALL slides are absolutely stacked */
.scrolly-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity, filter;
    transition: none;
}

/* Intro slide: centered text layout */
#slide-1 {
    flex-direction: column;
    text-align: center;
    background: var(--text-dark);
}

/* Content slides: image left, text right */
#slide-2, #slide-3, #slide-4, #slide-5 {
    flex-direction: row;
}

.slide-img-col {
    flex: 1 1 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, var(--text-dark) 100%);
}

.slide-text-col {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4rem clamp(2rem, 5%, 4rem);
    background: var(--text-dark);
}


.slide-text-inner {
    max-width: 520px;
}

/* Intro Typography */
.sg-intro-h3 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: var(--fw-bold);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.sg-intro-p {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto 2rem;
}

.sg-scroll-hint {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.05em;
    animation: b-bounce-hint 2s ease-in-out infinite;
}

@keyframes b-bounce-hint {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

/* Content Slide Typography */
.sg-h3 {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: var(--fw-bold);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.sg-p {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 480px;
}

.sg-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sg-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.85);
}

.sg-check {
    flex-shrink: 0;
    color: var(--white);
    background: var(--accent-red);
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    margin-top: 2px;
}

/* Navigation Dots */
.scrolly-dots {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10;
}

.sg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: background var(--transition-base), transform var(--transition-base);
    padding: 0;
}

.sg-dot--active,
.sg-dot:hover {
    background: var(--accent-red);
    transform: scale(1.4);
}

/* Eyecatcher inside dark slide background */
#super-scrolly-master .eyecatcher {
    color: var(--accent-red);
    background: rgba(157, 25, 27, 0.15);
    border-color: rgba(157, 25, 27, 0.3);
}

/* ============================================
   7. CTA SECTION â€“ Mesh Gradient (copied from fenster.css)
   ============================================ */
.final-cta-section {
    background: var(--bg-light-grey);
    position: relative;
    z-index: 1;
}

.final-cta-box {
    background: var(--bg-white);
    padding: 5rem 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

/* Red top bar */
.final-cta-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), #6B1011);
    z-index: 2;
}

/* Pulsating liquid gradient behind the card */
.final-cta-section .testimonials-cta {
    position: relative;
    z-index: 1;
    --mesh-glow-inset-v: -30px;
    --mesh-glow-blur: 25px;
    --mesh-glow-opacity: 0.7;
}

.final-cta-section .testimonials-cta::before {
    content: '';
    position: absolute;
    top: var(--mesh-glow-inset-v);
    bottom: var(--mesh-glow-inset-v);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 60px);
    max-width: 860px;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(157, 25, 27, 0.7) 0%, transparent 50%),
        radial-gradient(circle at 90% 30%, rgba(180, 40, 45, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(130, 15, 18, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(157, 25, 27, 0.5) 0%, transparent 60%);
    background-size: 150% 150%;
    filter: blur(var(--mesh-glow-blur));
    border-radius: var(--radius-lg);
    opacity: var(--mesh-glow-opacity);
    animation: b-liquid-gradient 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes b-liquid-gradient {
    0%   { background-position: 0% 0%;   transform: translateX(-50%) scale(0.9) rotate(-3deg); }
    33%  { background-position: 100% 50%; transform: translateX(-50%) scale(1.05) rotate(2deg); }
    66%  { background-position: 50% 100%; transform: translateX(-50%) scale(0.95) rotate(-2deg); }
    100% { background-position: 0% 100%;  transform: translateX(-50%) scale(1.1) rotate(3deg); }
}

.final-cta-box h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.final-cta-box p {
    font-size: var(--fs-md);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================
   6. MATERIAL-VERGLEICH: 3-SPALTEN VERGLEICHS-GRID
   ============================================ */
.b-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch; /* equal heights */
}

.b-compare-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.b-compare-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.b-compare-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.b-compare-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.b-compare-card:hover .b-compare-img-wrap img {
    transform: scale(1.06);
}

.b-compare-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(20, 25, 35, 0.85) 0%, transparent 100%);
    color: var(--white);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    padding: 2rem 1.25rem 1rem;
}

.b-compare-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.b-compare-inner-cols {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    flex: 1;
}

.b-acc-meta {
    padding: 0.75rem 0 1rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
    min-height: 70px; /* Ensures following sections align regardless of meta line count */
    display: flex;
    align-items: center;
}

.b-acc-meta strong {
    color: var(--text-dark);
    font-style: normal;
}

.b-acc-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.b-acc-col {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-light);
}

.b-acc-col h4 {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.85rem;
}

/* Vorteile: Brand-red gradient (same as eyecatcher) */
.b-acc-col--pro {
    min-height: 280px; /* Common baseline for Nachteile headers to align perfectly */
    flex: none; 
}

.b-acc-col--pro h4 {
    background: linear-gradient(90deg, #9D191B, #C0392B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nachteile: Neutral dark slate â€“ avoids negative/brand-red association */
.b-acc-col--con h4 {
    color: #4a5568;
}

.b-acc-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.b-acc-col ul li {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.55;
    padding-left: 1.1rem;
    position: relative;
}

.b-acc-col--pro ul li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #9D191B;
    font-weight: var(--fw-bold);
}

.b-acc-col--con ul li::before {
    content: '\2013';
    position: absolute;
    left: 0;
    color: #4a5568;
    font-weight: var(--fw-bold);
}

/* ============================================
   RESPONSIVE: Tablet & Mobile
   ============================================ */
@media (max-width: 1200px) {
    .b-compare-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

@media (max-width: 768px) {
    .b-hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .b-compare-grid {
        grid-template-columns: 1fr;
    }

    .b-kachel-grid {
        grid-template-columns: 1fr;
    }

    .b-split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .b-split-grid--reverse .b-split-image {
        order: -1;
    }

    .b-split-img {
        height: 320px;
    }

    .b-acc-cols {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .b-accordion-header {
        padding: 1.25rem;
    }
    .b-accordion-content {
        padding: 0 1.25rem 1.5rem;
    }

    /* ===========================================================
       MOBILE SCROLLYTELLING — Stacked Sticky Layout
       Bild klebt oben (40vh), Text scrollt darunter durch.
       =========================================================== */

    /* Gesamtsektion braucht weniger Höhe auf Mobile */
    #super-scrolly-master {
        height: auto !important;
    }

    /* Sticky-Viewport ist nicht mehr sticky — wird zum normalen Flex-Container */
    .sticky-viewport {
        position: relative !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
    }

    /* Slides sind nicht mehr absolut gestapelt — sie fließen untereinander */
    .scrolly-slide {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        /* Alle Slides auf mobile sichtbar machen (JS setzt opacity:0 inline) */
        opacity: 1 !important;
        filter: none !important;
        pointer-events: auto !important;
        min-height: auto !important;
    }

    /* Intro-Slide: zentrierter Text, minimale Höhe */
    #slide-1 {
        min-height: 50vh !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 3rem 1.5rem !important;
        background: var(--text-dark) !important;
    }

    /* Content-Slides (2-5): Image oben sticky, Text unten */
    #slide-2, #slide-3, #slide-4, #slide-5 {
        flex-direction: column !important;
        background: var(--text-dark) !important;
    }

    /* Bildbereich: feste Höhe, oben angeklebt */
    .slide-img-col {
        flex: none !important;
        width: 100% !important;
        height: 40vh !important;
        position: sticky !important;
        top: 64px !important; /* Unterhalb des mobilen Headers */
        z-index: 1;
    }

    /* Bild-Overlay anpassen: Verlauf nach unten statt nach rechts */
    .slide-img-overlay {
        background: linear-gradient(to bottom, transparent 50%, var(--text-dark) 100%) !important;
    }

    /* Textbereich: scrollt normal, nicht limitiert in der Höhe */
    .slide-text-col {
        flex: none !important;
        width: 100% !important;
        position: relative !important;
        z-index: 2;
        padding: 2rem 1.5rem 3rem !important;
        background: var(--text-dark) !important;
    }

    .slide-text-inner {
        max-width: 100% !important;
    }

    /* Typografie-Anpassungen für kleine Screens */
    .sg-intro-h3 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .sg-h3 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .sg-p {
        max-width: 100% !important;
    }

    /* Dot-Navigation auf Mobile ausblenden — nicht nötig im linearen Flow */
    .scrolly-dots {
        display: none !important;
    }
}
