/* ============================================================
   CRANIO-FEELING v3 — Custom CSS
   Design-Tokens, Neuro-Animationen, Komponenten
   ============================================================ */

/* ===== 1. CSS CUSTOM PROPERTIES (Design Tokens) ===== */
:root {
    /* Primärfarben */
    --green: #7A9E77;
    --green-dark: #5C7E59;
    --green-light: #A8C5A5;
    --green-muted: #D4E2D3;
    --green-wash: rgba(122,158,119,0.08);
    --green-soft: #93B590;

    /* Akzentfarben */
    --rosa: #C8908E;
    --rosa-dark: #A87270;
    --rosa-light: #E2BAB8;
    --rosa-muted: #F2DDD9;
    --rosa-soft: #D4A5A3;

    /* Textfarben */
    --brown-dark: #3B3530;
    --brown-medium: #5E564D;
    --brown-light: #746B63;

    /* Hintergründe */
    --bg-primary: #FAF7F2;
    --bg-secondary: #F3EDE4;
    --bg-rosa: #FDF5F3;
    --bg-green: #F2F6F0;
    --bg-brown-warm: #F5EDE6;
    --white: #FFFFFF;
    --dark-bg: #2F3E46;

    /* Warme Brauntöne für CTA & Footer */
    --brown-cta: #6B5F55;
    --brown-footer: #3B3530;

    /* Borders */
    --border-light: rgba(59, 53, 48, 0.08);

    /* Typografie */
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    /* Spacing */
    --section-py: clamp(80px, 12vh, 140px);
    --section-px: clamp(24px, 5vw, 80px);
    --content-max: 1100px;
    --content-narrow: 720px;
    --gap-xs: 8px;
    --gap-sm: clamp(16px, 2vw, 24px);
    --gap-md: clamp(32px, 4vw, 56px);
    --gap-lg: clamp(48px, 6vw, 80px);
    --gap-xl: clamp(64px, 10vh, 120px);

    /* Ticker + Navigation */
    --ticker-height: 24px;
    --nav-height: 80px;
}


/* ===== UTILITY CLASSES ===== */
.block { display: block; }
.text-body-lg { font-size: 1.1rem; }
.text-body-md { font-size: 1.05rem; }
.text-body-sm { font-size: 0.95rem; }
.aspect-4-3 { aspect-ratio: 4/3; }
.no-animation { animation: none !important; }
.dot-sm { width: 6px; height: 6px; }

/* ===== 2. BASE STYLES ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--brown-medium);
    background-color: var(--bg-primary);
    line-height: 1.75;
    font-size: 1.05rem;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brown-dark);
    line-height: 1.15;
    font-weight: 700;
}

h1 { font-size: clamp(2.8rem, 6.5vw, 4.8rem) !important; line-height: 1.08 !important; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem) !important; line-height: 1.12 !important; letter-spacing: -0.025em; font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem) !important; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.2rem) !important; font-weight: 600; line-height: 1.35; }

p {
    max-width: var(--content-narrow);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--green-muted);
    color: var(--brown-dark);
}

/* Skip-to-Content Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 100;
    padding: 12px 24px;
    background: var(--green);
    color: var(--white);
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: var(--white);
}

/* Focus-Visible States */
:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.nav-cta:focus-visible,
.btn-primary:focus-visible {
    outline-color: var(--white);
    outline-offset: 4px;
}

.btn-secondary:focus-visible {
    outline-color: var(--green);
    outline-offset: 4px;
}

.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
    outline: none;
}


/* ===== 3. SECTION LABELS & HEADERS ===== */
.section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green);
    margin-bottom: 12px;
    display: block;
}

.section-label--rosa {
    color: var(--rosa);
}

.section-divider {
    width: 96px;
    height: 4px;
    border-radius: 9999px;
    margin: 0 auto;
}


/* ===== 4. NEURO-ANIMATIONEN (30s Zyklus) ===== */

/* Hintergrund + Rahmen (sanft) */
@keyframes neuroShimmer {
    0%, 100% { background-color: var(--green-soft); border-color: var(--green-soft); }
    50% { background-color: var(--rosa-soft); border-color: var(--rosa-soft); }
}

/* Text-Farbe (sanft) */
@keyframes neuroText {
    0%, 100% { color: var(--green-soft); }
    50% { color: var(--rosa-soft); }
}

/* Rahmen + Text (sanft) */
@keyframes neuroBorder {
    0%, 100% { border-color: var(--green-soft); color: var(--green-soft); }
    50% { border-color: var(--rosa-soft); color: var(--rosa-soft); }
}

/* SVG / Icon (sanft) */
@keyframes neuroFill {
    0%, 100% { color: var(--green-soft); }
    50% { color: var(--rosa-soft); }
}

/* Availability Pulse */
@keyframes availPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(122, 158, 119, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(122, 158, 119, 0); }
}

/* Hero Floating Blobs */
/* Utility classes */
.neuro-bg { animation: neuroShimmer 30s ease-in-out infinite; }
.neuro-text { animation: neuroText 30s ease-in-out infinite; }
.neuro-border { animation: neuroBorder 30s ease-in-out infinite; }
.neuro-icon { animation: neuroFill 30s ease-in-out infinite; }


/* ===== 5. SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger for card grids */
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }


/* ===== 5b. SCROLL PIN (Sticky-Schritte beim Scrollen) ===== */
.scroll-pin-wrapper {
    position: relative;
}

.scroll-pin-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-start;
    padding-top: calc(var(--nav-height) + var(--ticker-height) + 24px);
    padding-bottom: 24px;
}

/* Pin-Steps: Initial unsichtbar, werden per JS aktiviert */
.pin-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-step.active {
    opacity: 1;
    transform: translateY(0);
}


/* ===== 6. NAVIGATION ===== */
.nav {
    position: fixed;
    top: var(--ticker-height);
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: transparent;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 4vw, 60px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

.nav.scrolled {
    /* kein box-shadow bei transparenter Nav */
}

/* Nav schrumpft beim Scrollen auf 50% — nur Desktop */
@media (min-width: 768px) {
    .nav.nav-shrunk {
        transform: scale(0.5);
        transform-origin: center top;
    }
}

/* Nav ausblenden im Footer-Bereich */
.nav.nav-footer-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Kontrast: helle Schrift nur über Testimonials (dunkler Hintergrund) */
.nav.nav-on-dark .nav-logo,
.nav.nav-on-dark .nav-logo span {
    color: #FAF7F2 !important;
    animation: none !important;
}

.nav.nav-on-dark .nav-links a {
    color: rgba(250, 247, 242, 0.9);
}

.nav.nav-on-dark .nav-links a:hover,
.nav.nav-on-dark .nav-links a.active {
    color: #fff;
}

.nav.nav-on-dark .nav-water-pill {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.nav.nav-on-dark .nav-cta {
    color: #FAF7F2 !important;
}

.nav.nav-on-dark .nav-hamburger span {
    background: #FAF7F2;
}

/* Floating CTA Button — appears when nav is hidden */
.floating-cta {
    position: fixed;
    top: 20px;
    right: clamp(16px, 4vw, 60px);
    z-index: 51;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brown-dark);
    letter-spacing: -0.02em;
}

.nav-logo span {
    font-style: italic;
    animation: neuroText 30s ease-in-out infinite;
}

/* Water-Design Pill um die Menüpunkte */
.nav-water-pill {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 9999px;
    padding: 10px 32px;
    box-shadow:
        0 2px 12px rgba(122, 158, 119, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-water-pill:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 4px 16px rgba(122, 158, 119, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(20px, 2.5vw, 40px);
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brown-medium);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 9999px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white) !important;
    padding: 10px 28px;
    border-radius: 9999px;
    animation:
        neuroShimmer 30s ease-in-out infinite,
        ctaGlow 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

@keyframes ctaGlow {
    0%, 100% {
        box-shadow:
            0 2px 8px rgba(147, 181, 144, 0.25),
            0 0 16px rgba(147, 181, 144, 0.15);
    }
    50% {
        box-shadow:
            0 2px 12px rgba(147, 181, 144, 0.4),
            0 0 28px rgba(147, 181, 144, 0.25),
            0 0 48px rgba(147, 181, 144, 0.12);
    }
}

.nav-cta:hover {
    transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 60;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--brown-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-hamburger span:nth-child(3) { bottom: 0; }

.nav-hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-mobile.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-mobile a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brown-dark);
    transition: color 0.3s ease;
}

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

.nav-mobile .nav-cta {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-top: 16px;
}


/* ===== 7. HERO ===== */
.hero {
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + var(--ticker-height) + 40px) var(--section-px) 64px;
    position: relative;
    overflow: hidden;
}

/* Hero Hintergrundbild */
.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    z-index: 0;
}

.hero-bg-img,
.hero-bg-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 20%;
}

.hero-bg-video.autoplay-failed {
    display: none;
}

.hero-bg.autoplay-fallback {
    background-image: url('../images/hero-cranio.jpg');
    background-size: cover;
    background-position: 70% 20%;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #FAF7F2 0%,
        rgba(250, 247, 242, 0.98) 25%,
        rgba(250, 247, 242, 0.6) 40%,
        rgba(250, 247, 242, 0.1) 50%,
        transparent 58%
    );
}

.hero-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(24px, 5vw, 80px);
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1 1 55%;
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-title em {
    font-style: italic;
    animation: neuroText 30s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--brown-medium);
    max-width: 540px;
    margin: 24px 0 0;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Availability (oben, über der Headline) */
.hero-avail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--brown-light);
}

.hero-avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: availPulse 2s ease-in-out infinite;
}

/* Hero Trust Badges */
.hero-trust {
    display: flex;
    gap: 24px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brown-light);
}

.hero-trust-item svg {
    color: var(--green);
    opacity: 0.7;
}

/* Hero Visual — Foto */
.hero-visual {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-photo {
    width: 100%;
    max-width: clamp(280px, 30vw, 540px);
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(59, 53, 48, 0.15),
                0 8px 24px rgba(59, 53, 48, 0.08);
}


/* ===== 8. BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    animation: neuroShimmer 30s ease-in-out infinite;
    box-shadow: 0 4px 14px rgba(147, 181, 144, 0.3);
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(147, 181, 144, 0.35);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-primary--large {
    padding: 18px 48px;
    font-size: 1.125rem;
}

/* Hero CTA micro-context line */
.hero-cta-context {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-dark);
    margin-bottom: 10px;
}

/* Subtle CTA pulse (3x, then stops) */
@keyframes ctaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.025); }
}

.hero-actions .btn-primary--large {
    animation: ctaPulse 2s ease-in-out 3, neuroShimmer 30s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero-actions .btn-primary--large {
        animation: none;
    }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--green);
    color: var(--green);
    background: transparent;
    animation: neuroBorder 30s ease-in-out infinite;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    background: var(--green-wash);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--green);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: gap 0.3s ease;
}

.btn-ghost:hover {
    gap: 10px;
}

.btn-ghost svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-ghost:hover svg {
    transform: translateX(4px);
}

/* Button on dark bg */
.btn-primary--dark {
    background: var(--white);
    color: var(--brown-dark);
    animation: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-primary--dark:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: var(--brown-dark);
}


/* ===== 9. HERO TRUST BAR (Static + Marquee) ===== */
.hero-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(122, 158, 119, 0.2);
    padding: 16px 0;
    z-index: 5;
}

/* Marquee: standardmäßig versteckt (nur auf Mobile sichtbar) */
.hero-ticker-marquee {
    display: none;
}

.hero-ticker-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.hero-ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 0 28px;
}

.hero-ticker-item svg {
    color: var(--green);
    opacity: 0.85;
}

.hero-ticker-item span {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brown);
}

.hero-ticker-separator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0.6;
    flex-shrink: 0;
}

/* Marquee-Track Styles */
.hero-ticker-marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: heroTrustScroll 18s linear infinite;
}

@keyframes heroTrustScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes credentials-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-ticker-track {
        animation: none;
    }
    .seo-ticker-bar-track {
        animation: none;
    }
}

/* ===== 9b. SEO TICKER BAR (Above Nav, Fixed) ===== */
.seo-ticker-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    background-color: #3B3530;
    border-bottom: none;
    padding: 5px 0;
    z-index: 51;
    height: var(--ticker-height);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.seo-ticker-bar.ticker-hidden {
    transform: translateY(-100%);
    visibility: hidden;
    opacity: 0;
}

.seo-ticker-bar-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: seoTickerScroll 35s linear infinite;
}

.seo-ticker-bar-track span {
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
    padding: 0 12px;
}

.seo-dot {
    display: inline-block;
    width: 3px !important;
    height: 3px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    padding: 0 !important;
    flex-shrink: 0;
}

@keyframes seoTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ===== 10. CARDS ===== */
.card {
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(59, 53, 48, 0.04);
    padding: clamp(28px, 4vw, 48px);
    background: var(--white);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    border-color: var(--green);
    box-shadow: 0 12px 40px rgba(59, 53, 48, 0.1);
}

.card--rosa:hover {
    border-color: var(--rosa);
}

/* Problem Card */
.problem-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(59, 53, 48, 0.06);
}

/* Service Card */
.service-card {
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(59, 53, 48, 0.06);
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 12px 40px rgba(59, 53, 48, 0.12);
}

.service-card-img {
    height: 14rem;
    overflow: hidden;
    position: relative;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.03);
}

.service-card-body {
    padding: clamp(24px, 3vw, 36px);
}

/* Testimonial Card (Glassmorphism) */
.testimonial-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: clamp(28px, 4vw, 40px);
    transition: background 0.4s ease;
}

.testimonial-glass:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Pricing Card */
.pricing-card {
    border-radius: 16px;
    border: 1px solid var(--border-light);
    background: var(--white);
    padding: clamp(16px, 2.5vw, 22px);
    text-align: center;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    box-shadow: 0 12px 40px rgba(59, 53, 48, 0.1);
}

.pricing-card--featured {
    border: 2px solid var(--green);
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(122, 158, 119, 0.15);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

.pricing-amount {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--brown-dark);
    margin: 4px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-amount span {
    font-size: 0.35em;
    font-weight: 400;
    color: var(--brown-light);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    text-align: center;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 3px 0;
    font-size: 0.85rem;
    color: var(--brown-medium);
    text-align: left;
}

.pricing-features li svg,
.pricing-features li .check-icon {
    flex-shrink: 0;
    color: var(--green);
    margin-top: 2px;
}

/* Compact pricing section to fit viewport */
#preise h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
}

#preise .btn-primary,
#preise .btn-secondary {
    padding: 12px 32px;
    font-size: 0.9rem;
}

/* ===== 11. FAQ ACCORDION ===== */
.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brown-dark);
    text-align: left;
    transition: color 0.3s ease;
}

.faq-num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--green-muted);
    letter-spacing: 0.05em;
    min-width: 2rem;
    flex-shrink: 0;
}

.faq-label {
    flex: 1;
}

/* Active FAQ item: left border accent */
.faq-item.active {
    border-left: 3px solid var(--green);
    padding-left: 12px;
    margin-left: -12px;
}

.faq-question:hover {
    color: var(--green);
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.faq-item.active .faq-content {
    grid-template-rows: 1fr;
}

.faq-content-inner {
    overflow: hidden;
}

.faq-content-inner p {
    padding-bottom: 24px;
    font-size: 0.95rem;
    color: var(--brown-medium);
    line-height: 1.7;
}


/* ===== 12. CONTACT FORM ===== */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(59, 53, 48, 0.15);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--brown-dark);
    background: var(--bg-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(122, 158, 119, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 6px;
}


/* ===== 12a. SITZUNGSABLAUF SCROLL-PIN — alle Geräte ===== */
.ablauf-pin-wrapper {
    position: relative;
}

.ablauf-pinned-section {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-start;
    padding-top: calc(var(--nav-height) + var(--ticker-height) + 8px);
    padding-bottom: 12px;
}

/* Kompaktere Abstände damit alles ins Viewport passt */
.ablauf-pinned-section .text-center.mb-16 {
    margin-bottom: 50px;
}
.ablauf-pinned-section h2 {
    margin-bottom: 0.25rem;
}
.ablauf-pinned-section .timeline-step {
    padding-bottom: 32px;
}
.ablauf-pinned-section .timeline-step:last-child {
    padding-bottom: 0;
}
.ablauf-pinned-section .timeline-step p {
    font-size: 0.88rem;
    line-height: 1.55;
}
.ablauf-pinned-section .lg\:p-10 {
    padding: 1.5rem !important;
}
.ablauf-pinned-section .mb-5 {
    margin-bottom: 0.75rem !important;
}
.ablauf-pinned-section .mb-6 {
    margin-bottom: 0.75rem !important;
}

/* CTA-Sidebar: Mitte auf Höhe von Step 2 (Desktop) */
@media (min-width: 1024px) {
    .ablauf-pinned-section .flex.flex-col.lg\:flex-row {
        align-items: flex-start;
    }
    .ablauf-pinned-section .lg\:w-2\/5 {
        margin-top: 80px;
    }
    #preise {
        padding-top: 3rem;
    }
}

/* ===== 12b. TIMELINE / SITZUNGSABLAUF ===== */
.timeline {
    position: relative;
    padding-left: 48px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 20px;
    bottom: var(--line-bottom, 20px);
    width: 2px;
    background: var(--border-light);
    z-index: 0;
}

.timeline-progress {
    position: absolute;
    left: 19px;
    top: 20px;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, var(--green), var(--rosa));
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

/* Sitzungsablauf: Progress-Bar wird per JS segmentweise gesteuert */

.timeline-step {
    position: relative;
    padding-bottom: 48px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step.revealed {
    opacity: 1;
    transform: translateY(0);
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step-number {
    position: absolute;
    left: -48px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brown-light);
    z-index: 2;
    transition: all 0.5s ease;
}

.timeline-step.revealed .timeline-step-number {
    border-color: var(--green);
    color: var(--white);
    background: var(--green);
    box-shadow: 0 4px 12px rgba(122, 158, 119, 0.3);
}

.timeline-step:nth-child(2).revealed .timeline-step-number {
    background: var(--rosa);
    border-color: var(--rosa);
    box-shadow: 0 4px 12px rgba(200, 144, 142, 0.3);
}

.timeline-step:nth-child(3).revealed .timeline-step-number {
    background: var(--brown-medium);
    border-color: var(--brown-medium);
    box-shadow: 0 4px 12px rgba(94, 86, 77, 0.3);
}

.timeline-step h3 {
    margin-bottom: 8px;
}

.timeline-step p {
    font-size: 0.95rem;
    color: var(--brown-medium);
    line-height: 1.75;
}

/* Stagger-Delays jetzt in JS gesteuert (step-by-step reveal) */

/* ===== 12c. CONTACT SIDEBAR (zart, sanft) ===== */
.contact-sidebar {
    background: var(--green-muted);
    color: var(--brown-medium);
}

.contact-sidebar h3 {
    color: var(--brown-dark);
}

.contact-sidebar a {
    color: var(--brown-medium);
}

.contact-sidebar .font-bold {
    color: var(--brown-dark);
}

.contact-sidebar .border-t {
    border-color: rgba(59, 53, 48, 0.12);
}

.contact-sidebar-accent {
    width: 48px;
    height: 3px;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--green-soft), var(--rosa-soft));
    margin-bottom: 24px;
}

/* Pricing Anchor (Streichpreis) */
.pricing-anchor {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--brown-light);
    text-decoration: line-through;
    opacity: 0.6;
    margin-bottom: -8px;
    display: block;
    min-height: 1.5em;
}

.pricing-anchor[aria-hidden="true"] {
    opacity: 0;
    text-decoration: none;
}

/* ===== 13. SCARCITY BADGE ===== */
.scarcity-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--rosa-dark);
    background: var(--rosa-muted);
}


/* ===== 14. BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(59, 53, 48, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 40;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: 0 8px 24px rgba(59, 53, 48, 0.15);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: var(--brown-dark);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ===== 15. STICKY MOBILE CTA ===== */
.sticky-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 16px;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -2px 12px rgba(59, 53, 48, 0.06);
    display: none;
    gap: 8px;
    z-index: 40;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sticky-cta-mobile.visible {
    opacity: 1;
    transform: translateY(0);
}

.sticky-cta-mobile .btn-primary,
.sticky-cta-mobile .btn-secondary {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.75rem;
    text-align: center;
}


/* ===== 16. FOOTER ===== */

/* Footer Grid — Mobile: 2 Spalten, Desktop: 4 Spalten */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
}

.footer-brand {
    grid-column: span 2;
}

.footer-brand-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand-hours {
    line-height: 1.5;
}

.footer-maps {
    grid-column: span 2;
}

.footer-maps .footer-minimap {
    margin-top: 0;
    height: 160px;
}

/* Desktop: 4-Spalten-Layout */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
        gap: 2rem 3rem;
    }
    .footer-brand { grid-column: 1; grid-row: 1 / 3; }
    .footer-nav { grid-column: 2; grid-row: 1 / 3; }
    .footer-contact { grid-column: 3; grid-row: 1; }
    .footer-maps { grid-column: 3; grid-row: 2; }
    .footer-legal { grid-column: 4; grid-row: 1; }
    .footer-hours { grid-column: 4; grid-row: 2; }
    .footer-maps .footer-minimap { height: 120px; }
    .footer-brand-hours { display: none; }
}

/* Tablet: 2-Spalten */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-brand-hours { display: none; }
}

/* Mobile: Explizites Grid-Layout wie im Design */
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 1.5rem 1.25rem;
    }
    .footer-brand { grid-column: 1 / -1; grid-row: 1; }
    .footer-hours { grid-column: 1 / -1; grid-row: 2; }
    .footer-nav { grid-column: 1; grid-row: 3; }
    .footer-contact { grid-column: 2; grid-row: 3; }
    .footer-legal { grid-column: 1; grid-row: 4; }
    .footer-maps { grid-column: 2; grid-row: 4; }

    .footer-brand-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-brand-hours {
        display: none;
    }
    .footer-maps .footer-minimap {
        height: 180px;
    }
}

.footer-minimap {
    display: block;
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 12px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-minimap iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.footer-minimap-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-disclaimer {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    max-width: 700px;
    line-height: 1.6;
}

.footer-disclaimer strong {
    color: rgba(255,255,255,0.55);
}


/* ===== 17. LEGAL PAGES ===== */
.legal-page {
    padding-top: calc(var(--nav-height) + var(--ticker-height) + 48px);
    padding-bottom: var(--section-py);
}

.legal-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 16px;
}

.legal-page h3 {
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-page h4 {
    font-size: 1rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-page p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-page a {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-page a:hover {
    color: var(--green);
}

.legal-disclaimer-box {
    margin-top: 32px;
    padding: 24px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--green);
}


/* ===== 18. ÜBER MICH + MEIN WEG — Combined Scroll-Pin ===== */

/* Combined Pin Wrapper — tall for scroll distance */
.combined-about-pin {
    position: relative;
    /* height set by JS on desktop */
}

/* Sticky container fills viewport — alle Geräte */
.combined-about-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* About content — shrinks to upper portion, stays visible */
.about-shrinkable {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center top;
    will-change: transform, opacity;
    z-index: 2;
    transition: z-index 0s;
}

/* Weg content — lower third of viewport */
.weg-revealable {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 67%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 4vh;
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
    z-index: 1;
    pointer-events: none;
}

.weg-revealable.is-visible {
    pointer-events: auto;
}

/* Phone-only: About scrollt normal, Weg-CoverFlow pinnt separat */
@media (max-width: 767px) {
    #combined-about-pin {
        overflow-x: clip;
    }
    .combined-about-sticky {
        position: relative;
        height: auto;
        overflow: visible;
        display: block;
        padding-top: var(--section-py);
        padding-bottom: 0;
    }
    .about-shrinkable {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        display: block;
        height: auto;
        transform: none !important;
        opacity: 1 !important;
        z-index: auto;
    }
    /* Force reveal — IntersectionObserver triggert im Pin-Container nicht */
    .about-shrinkable .reveal,
    .about-shrinkable .reveal-stagger > .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .weg-revealable {
        position: relative;
        top: auto;
        height: auto;
        min-height: auto;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 48px 0 32px;
        margin-top: 24px;
        background: var(--bg-primary);
        z-index: auto;
    }
    /* Cover-Flow Overflow clippen */
    .weg-coverflow {
        overflow: hidden;
        width: 100%;
    }
    /* Größere Schrift im Cover Flow */
    .weg-slide-label {
        font-size: 1.5rem;
        white-space: normal;
        text-align: center;
        max-width: 280px;
    }
    .weg-slide-year {
        font-size: 0.9rem;
    }
    .weg-coverflow-track {
        height: 140px;
    }
}

/* Tablet (768-1023): Desktop-Scroll-Pin mit angepassten Größen */
@media (min-width: 768px) and (max-width: 1023px) {
    .about-split-photo {
        width: 240px;
    }
    .about-split-text h2 {
        font-size: 2.2rem;
    }
    .about-quote-large {
        font-size: 1.05rem;
    }
    .about-split-text p {
        font-size: 0.95rem;
    }
    .about-credential {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .weg-slide {
        min-width: clamp(100px, 12vw, 180px);
    }
    #combined-about-pin {
        overflow-x: clip;
    }
}

/* Zwei-Spalten Layout: Text links, Foto rechts */
.about-split {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .about-split {
        flex-direction: row;
        align-items: flex-start;
    }
}

.about-split-text {
    flex: 1;
    min-width: 0;
}

.about-split-photo {
    width: clamp(220px, 25vw, 400px);
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(59, 53, 48, 0.1);
}

@media (min-width: 768px) {
    .about-split-photo {
        width: 320px;
    }
}

.about-split-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
    object-position: center 15%;
}

/* Quote */
.about-quote-large {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    font-style: italic;
    color: var(--brown-dark);
    line-height: 1.45;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--green);
}

/* Credentials Tags */
.about-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-credential {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--brown-medium);
    background: rgba(122, 158, 119, 0.08);
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(122, 158, 119, 0.15);
}

/* ===== Mein Weg — Horizontal Cover Flow ===== */

.weg-coverflow {
    position: relative;
    margin-top: 16px;
}

.weg-coverflow-track {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weg-slide {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    min-width: clamp(120px, 15vw, 220px);
    will-change: transform, opacity, filter;
    cursor: default;
}

.weg-slide-year {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--brown-light);
    line-height: 1;
    text-transform: uppercase;
}

.weg-slide.is-active .weg-slide-year {
    color: var(--green);
}

.weg-slide-label {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--brown-dark);
    white-space: nowrap;
    line-height: 1.2;
}

.weg-slide.is-active .weg-slide-label {
    color: var(--green-dark);
}

/* Cover Flow Progress Dots — hidden (scroll-driven auf allen Geräten) */
.weg-coverflow-dots {
    display: none;
}

.weg-coverflow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    border: none;
    transition: all 0.4s ease;
}

.weg-coverflow-dot.active {
    background: var(--green);
    transform: scale(1.5);
}

/* Desktop: Mein Weg — weiter runter + 25% größer */
@media (min-width: 1024px) {
    .weg-revealable {
        padding-top: 30px;
    }
    .weg-revealable h3 {
        font-size: clamp(2rem, 3.5vw, 2.8rem) !important;
    }
    .weg-slide-label {
        font-size: clamp(1.6rem, 3vw, 2.25rem);
    }
    .weg-slide-year {
        font-size: 0.95rem;
    }
    .weg-coverflow-track {
        height: 150px;
    }
    .weg-slide {
        min-width: clamp(160px, 18vw, 280px);
    }
}

/* Mobile Anpassungen */
@media (max-width: 767px) {
    .about-split {
        text-align: center;
    }
    .about-split-photo {
        width: 220px;
        order: -1;
    }
    .about-split-photo img {
        object-position: center 25%;
    }
    .about-quote-large {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }
    .about-credentials {
        justify-content: center;
    }
    .weg-coverflow-track {
        height: 120px;
    }
    .weg-slide {
        padding: 12px 16px;
        min-width: 140px;
    }
    .weg-slide-label {
        font-size: 1.1rem;
    }
    .weg-coverflow-dots {
        margin-top: 16px;
    }
}


/* ===== 18b. LOTTIE ANIMATIONS ===== */
.lottie-hero-wave {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 500px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

/* (Trust-Glow entfernt — Ticker nutzt kein Lottie mehr) */

.lottie-form-success {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

/* Dark CTA Social Proof */
.dark-cta-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Form reassurance */
.form-reassurance {
    text-align: center;
    font-size: 0.78rem;
    color: var(--brown-light);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ===== 19. REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* ===== 19. RESPONSIVE ===== */

@media (max-width: 1023px) {
    .hero-ticker-item span {
        font-size: 0.82rem;
    }
}

/* 2.4 Tablet-Portrait Hero-Anpassung */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-bg {
        width: 100%;
        height: 60%;
        top: auto;
        bottom: 0;
    }
    .hero-bg-img,
    .hero-bg-video {
        object-position: center 30%;
        margin-top: 0;
    }
    .hero-bg-overlay {
        background: linear-gradient(180deg,
            #FAF7F2 0%,
            rgba(250,247,242,0.95) 10%,
            rgba(250,247,242,0.5) 30%,
            rgba(250,247,242,0.15) 45%,
            transparent 55%);
    }

    /* === Image #10: Ablauf CTA-Box zentriert & kompakter === */
    .ablauf-pinned-section .flex.flex-col {
        align-items: center;
    }
    .ablauf-pinned-section .lg\:w-2\/5 {
        width: 100%;
        max-width: 420px;
        margin-top: 0;
    }
    .ablauf-pinned-section .lg\:w-2\/5 .bg-white {
        padding: 1.25rem 1.5rem;
    }
    .ablauf-pinned-section .lg\:w-2\/5 h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.4rem;
    }
    .ablauf-pinned-section .lg\:w-2\/5 p {
        font-size: 0.82rem;
        line-height: 1.5;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    .ablauf-pinned-section .lg\:w-2\/5 .btn-primary {
        width: auto;
        padding: 10px 28px;
        font-size: 0.9rem;
    }
    .ablauf-pinned-section .lg\:w-2\/5 .w-12 {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.5rem !important;
    }

    /* === Image #11: Testimonials untereinander, zentriert === */
    #erfahrungen .grid {
        grid-template-columns: 1fr !important;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        gap: 1.5rem;
    }

    /* === Tablet: Scroll-Pin Über-Mich + Mein Weg optimiert === */
    .about-shrinkable {
        padding-top: 20px;
    }
    .weg-revealable {
        padding-bottom: 2vh;
        padding-top: 50px;
        justify-content: center;
        height: 65%;
    }
    .weg-revealable .section-label {
        font-size: 0.95rem;
    }
    .weg-revealable h3 {
        margin-bottom: 0.5rem !important;
        font-size: clamp(2rem, 3.5vw, 2.6rem) !important;
    }
    .weg-coverflow-track {
        height: 155px;
    }
    .weg-slide {
        min-width: clamp(140px, 18vw, 250px);
    }
    .weg-slide-label {
        font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    }
    .weg-slide-year {
        font-size: 0.95rem;
    }

    /* === Image #13: Ablauf Inhalt nach oben === */
    .ablauf-pinned-section {
        padding-top: calc(var(--nav-height) + var(--ticker-height) - 22px);
    }
    .ablauf-pinned-section .text-center.mb-8 {
        margin-bottom: 20px;
    }

    /* === Angebot-Karten untereinander auf Tablet === */
    #angebot .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        gap: 2rem;
    }

    /* === Image #14: Preise Value-Items nebeneinander === */
    #preise .grid.grid-cols-2 {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.5rem;
    }
    #preise .grid.grid-cols-2 .font-bold {
        font-size: 0.72rem;
    }
    #preise .grid.grid-cols-2 .text-xs {
        font-size: 0.65rem;
    }
    #preise .grid.grid-cols-2 .w-5 {
        width: 1rem;
        height: 1rem;
    }
    #preise .grid.grid-cols-2 .flex {
        gap: 0.35rem;
    }
}

@media (max-width: 767px) {
    :root {
        --nav-height: 64px;
    }

    .nav-water-pill {
        display: none;
    }

    /* Logo: 50% kleiner + Wassereffekt (Glasmorphism) */
    .nav-logo {
        font-size: 0.75rem;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 9999px;
        padding: 6px 14px;
        box-shadow:
            0 2px 12px rgba(122, 158, 119, 0.08),
            inset 0 1px 2px rgba(255, 255, 255, 0.5);
    }

    .nav-cta:not(.nav-mobile .nav-cta) {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .sticky-cta-mobile {
        display: flex;
    }

    /* 2.5 Back-to-Top: above sticky CTA, smaller */
    .back-to-top {
        bottom: 56px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        padding-top: calc(var(--nav-height) + var(--ticker-height) + 32px);
        padding-bottom: 64px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: left;
    }

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

    .hero-subtitle {
        margin: 24px auto 0 0;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero {
        padding-top: calc(var(--nav-height) + var(--ticker-height) + 7px);
    }

    .hero-trust {
        justify-content: flex-start;
    }

    .hero-visual {
        flex: none;
        width: 100%;
        max-width: clamp(260px, 60vw, 380px);
        margin: 0 auto;
    }

    .hero-photo {
        max-width: 100%;
        border-radius: 20px;
    }

    .pricing-card--featured {
        transform: none;
    }

    /* 2.1 Hero-Hintergrund auf Mobile */
    .hero-bg {
        width: 100%;
        height: 60%;
        top: auto;
        bottom: 0;
    }
    .hero-bg-img,
    .hero-bg-video {
        object-position: center 30%;
        margin-top: 0;
    }
    .hero-bg-overlay {
        background: linear-gradient(180deg,
            #FAF7F2 0%,
            rgba(250,247,242,0.95) 25%,
            rgba(250,247,242,0.6) 55%,
            rgba(250,247,242,0.2) 85%,
            transparent 100%);
    }

    /* 2.2 Trust-Leiste: Statisch ausblenden, Marquee einblenden */
    .hero-ticker-static {
        display: none !important;
    }
    .hero-ticker-marquee {
        display: block;
        overflow: hidden;
        padding: 10px 0;
        mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    }
    .hero-ticker-marquee .hero-ticker-item {
        padding: 0 14px;
        gap: 6px;
    }
    .hero-ticker-marquee .hero-ticker-item span {
        font-size: 0.8rem;
    }
    .hero-ticker-marquee .hero-ticker-separator {
        display: block;
    }

    /* 2.3 Timeline (Sitzungsablauf) mobil kompakter */
    .timeline {
        padding-left: 36px;
    }
    .timeline::before,
    .timeline-progress {
        left: 13px;
    }
    .timeline-step-number {
        left: -36px;
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .btn-primary, .btn-secondary {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}


/* ===== 20. LARGE SCREEN BREAKPOINTS ===== */

@media (min-width: 1280px) {
    :root { --content-max: 1200px; }
    body { font-size: 1.08rem; }
    .hero-photo { max-width: 420px; }
    .about-split-photo { width: 360px; }
}

@media (min-width: 1440px) {
    :root { --content-max: 1320px; }
    body { font-size: 1.1rem; }
    .hero-bg { width: 50%; }
    .about-split-photo { width: 380px; }
    .weg-slide { min-width: 220px; }
}

@media (min-width: 1680px) {
    :root { --content-max: 1440px; }
    body { font-size: 1.15rem; }
    .hero-photo { max-width: 500px; }
    .about-split-photo { width: 400px; }
    .hero { padding-top: calc(var(--nav-height) + var(--ticker-height) + 56px); }
}

@media (min-width: 1920px) {
    :root { --content-max: 1520px; }
    body { font-size: 1.18rem; }
    .hero-photo { max-width: 540px; }
}


/* ===== 21. LANDSCAPE MODE ===== */

/* Phone Landscape — short viewport, narrow height */
@media (orientation: landscape) and (max-height: 500px) {
    .seo-ticker-bar { display: none; }
    :root {
        --ticker-height: 0px;
        --nav-height: 48px;
    }
    .hero {
        height: auto;
        min-height: auto;
        padding-top: calc(var(--nav-height) + 16px);
        padding-bottom: 24px;
    }
    .hero h1 { font-size: clamp(1.8rem, 5vw, 2.5rem) !important; }
    .hero-subtitle { font-size: clamp(0.9rem, 1.4vw, 1.1rem); margin-top: 12px; }
    .hero-bg { width: 40%; }
    .hero-inner { gap: 24px; }
    .hero-actions { margin-top: 20px; gap: 10px; }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary { padding: 10px 24px; font-size: 0.85rem; }
    .sticky-cta-mobile { display: none !important; }
    .hero-ticker { display: none; }
    .back-to-top { bottom: 16px; right: 16px; width: 36px; height: 36px; }
    section {
        padding-top: clamp(32px, 5vh, 60px);
        padding-bottom: clamp(32px, 5vh, 60px);
    }
    .nav-logo { font-size: 1.1rem; }
}

/* Tablet Landscape — more width, still short */
@media (orientation: landscape) and (max-height: 700px) and (min-width: 768px) {
    .seo-ticker-bar { display: none; }
    :root { --ticker-height: 0px; }
    .hero {
        padding-top: calc(var(--nav-height) + 16px);
        padding-bottom: 32px;
    }
    .hero h1 { font-size: clamp(2rem, 4vw, 3rem) !important; }
    .hero-subtitle { margin-top: 16px; }
    section {
        padding-top: clamp(48px, 6vh, 80px);
        padding-bottom: clamp(48px, 6vh, 80px);
    }
}


/* ===== 22. CROSS-BROWSER FALLBACKS ===== */

/* Backdrop-filter fallback (Firefox < 103, older browsers) */
@supports not (backdrop-filter: blur(1px)) {
    .nav-water-pill { background: rgba(255, 255, 255, 0.85); }
    .nav-mobile { background: rgba(250, 247, 242, 1); }
    .hero-ticker { background: rgba(255, 255, 255, 0.95); }
    .seo-ticker-bar { background: #3B3530; }
    .sticky-cta-mobile { background: rgba(250, 247, 242, 1); }
    .testimonial-glass { background: rgba(255, 255, 255, 0.25); }
}

/* Safari fallback for overflow-x: clip */
@supports not (overflow-x: clip) {
    html { overflow-x: hidden; }
    body { overflow-x: hidden; }
}

/* iOS Safari: extra touch-action constraint to prevent horizontal pan */
@media (pointer: coarse) {
    html, body {
        touch-action: pan-y pinch-zoom;
    }
}


/* ===== 23. COOKIE-CONSENT-BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner.hiding {
    opacity: 0;
    transform: translateY(100%);
}

.cookie-banner-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 20px clamp(24px, 4vw, 40px);
    background: rgba(59, 53, 48, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(122, 158, 119, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-inner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    max-width: none;
    flex: 1;
    min-width: 240px;
}

.cookie-banner-inner a {
    color: var(--green-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-inner a:hover {
    color: var(--green);
}

.cookie-banner-btn {
    padding: 10px 32px;
    border-radius: 9999px;
    background: var(--green);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.cookie-banner-btn:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
        gap: 12px;
    }
    .cookie-banner-inner p {
        min-width: auto;
    }
    .cookie-banner-btn {
        width: 100%;
    }
}

/* Back-to-top on legal pages: neuro-shimmer like CTA buttons */
.page-legal .back-to-top {
    animation: neuroShimmer 30s ease-in-out infinite;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(122, 158, 119, 0.3);
}

.page-legal .back-to-top svg {
    stroke: var(--white);
}

.page-legal .back-to-top:hover {
    box-shadow: 0 8px 24px rgba(122, 158, 119, 0.4);
}

/* Legal pages: all green accents get neuro animation */
.page-legal .legal-page a {
    animation: neuroText 30s ease-in-out infinite;
    text-decoration-color: currentColor;
}

.page-legal .legal-page a:hover {
    opacity: 0.8;
}

.page-legal .legal-disclaimer-box {
    animation: neuroBorderLeft 30s ease-in-out infinite;
}

.page-legal .legal-list li::before {
    animation: neuroText 30s ease-in-out infinite;
}

@keyframes neuroBorderLeft {
    0%, 100% { border-left-color: var(--green-soft); }
    50% { border-left-color: var(--rosa-soft); }
}

/* Legal page lists */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.legal-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 600;
}
