/*
 * m.stromfee.ai — Slider-Framework
 * Geteiltes CSS für alle Slider-Pages (5 Slides + CTA-Slide pro Page)
 * Vorlage: radar-mobile.html — Lavender-Branding + Story-Slider
 */

:root {
    --lav-300: #c4b5fd;
    --lav-400: #a78bfa;
    --lav-500: #8b5cf6;
    --lav-600: #7c3aed;
    --lav-700: #6d28d9;
    --lav-900: #4c1d95;
    --lav-950: #2e1065;
    --slate-900: #0f172a;
    --bg: #0a0612;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    /* Vertikales Scrollen erlaubt (Facts unter Slider), horizontal blockiert */
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 100%;
}
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: #fff;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: contain;
    user-select: none;
    -webkit-user-select: none;
}

/* ────────── Stage = horizontal slider ────────── */
.stage {
    width: 100vw;
    height: 100vh; height: 100svh;
    display: flex; flex-direction: row; flex-wrap: nowrap;
    transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}
.slide {
    flex: 0 0 100vw;
    height: 100vh; height: 100svh;
    padding: env(safe-area-inset-top, 18px) 18px env(safe-area-inset-bottom, 18px);
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}

/* ────────── Topbar ────────── */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: env(safe-area-inset-top, 0) 16px 0;
    background: linear-gradient(to bottom, rgba(10,6,18,0.85), rgba(10,6,18,0));
    pointer-events: none;
}
.topbar-inner {
    height: 48px;
    display: flex; align-items: center; gap: 8px;
}
.topbar .brand-text {
    font-weight: 700; font-size: 12px; letter-spacing: -0.01em; flex: 1; opacity: 0.92;
}
.topbar .brand-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--lav-400);
    box-shadow: 0 0 8px var(--lav-400);
}
.topbar .topbar-link {
    pointer-events: auto;
    font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ────────── Progress-Bar ────────── */
.progress-bar {
    position: fixed; top: env(safe-area-inset-top, 0); left: 0; right: 0; z-index: 1001;
    display: flex; gap: 4px; padding: 8px 16px 0;
}
.progress-bar .seg {
    flex: 1; height: 3px; border-radius: 2px;
    background: rgba(255,255,255,0.18);
    overflow: hidden; position: relative;
}
.progress-bar .seg .fill {
    position: absolute; top: 0; left: 0; height: 100%;
    background: #fff; width: 0;
}
.progress-bar .seg.done .fill { width: 100%; }
.progress-bar .seg.active .fill { animation: progressFill var(--dur, 5000ms) linear forwards; }
@keyframes progressFill { from { width: 0; } to { width: 100%; } }

/* ────────── HERO Slide ────────── */
.s-hero {
    background: linear-gradient(160deg, #1e1b4b 0%, var(--lav-900) 50%, var(--lav-600) 100%);
    justify-content: center; text-align: center;
    padding-top: 70px;
}
.s-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(167,139,250,0.4) 0%, transparent 60%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.4em;
    color: rgba(255,255,255,0.7); margin-bottom: 14px; font-weight: 700;
}
.hero-title {
    font-size: clamp(34px, 11vw, 52px); font-weight: 900; letter-spacing: -0.04em;
    line-height: 1.0; margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, var(--lav-300) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: 14px; color: rgba(255,255,255,0.85);
    margin: 0 auto 22px; line-height: 1.45;
    max-width: 300px;
}

/* ────────── Inhalts-Slide ────────── */
.s-content {
    background: linear-gradient(170deg, #18152e 0%, #2a1758 60%, var(--lav-700) 110%);
    justify-content: center;
    padding-top: 70px;
}
.s-content::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(167,139,250,0.25), transparent 55%);
}
.content-inner { position: relative; z-index: 2; }

/* ────────── BG-Image-Variante (für Slides mit Foto) ──────────
   Slide bekommt zusätzlich class="s-bg" + style="background-image:url(...)"
   Bild wird durch dunklen Lavender-Overlay halbtransparent —
   Text bleibt klar lesbar, Bild gibt Stimmung statt zu dominieren. */
.s-bg {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Bild ein bisschen dunkler/sättigt zur besseren Verträglichkeit mit Text */
    background-color: #0f0a1f;
}
/* Starker Lavender-Overlay: lässt Bild zu ~25% durchscheinen */
.s-bg::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(170deg,
            rgba(15,10,35,0.78) 0%,
            rgba(46,16,101,0.74) 45%,
            rgba(76,29,149,0.85) 100%);
}
.s-bg.s-hero::before {
    background:
        linear-gradient(160deg,
            rgba(30,27,75,0.85) 0%,
            rgba(76,29,149,0.82) 55%,
            rgba(124,58,237,0.92) 100%);
}
.s-bg.s-cta::before {
    background:
        linear-gradient(160deg,
            rgba(76,29,149,0.92) 0%,
            rgba(124,58,237,0.86) 60%,
            rgba(167,139,250,0.82) 100%);
}
.s-bg .hero-inner,
.s-bg .content-inner,
.s-bg .cta-inner {
    position: relative; z-index: 2;
    /* Doppel-Schatten als zusätzliches Lesbarkeits-Polster */
    text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 0 24px rgba(0,0,0,0.25);
}
/* Ausnahme: Pills + CTAs sollen NICHT als Schatten flattern */
.s-bg .pill,
.s-bg .cta-pill,
.s-bg .cta-button,
.s-bg .stat-trio .cell { text-shadow: none; }
.content-eyebrow {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em;
    color: var(--lav-300); margin-bottom: 12px; font-weight: 700;
}
.content-title {
    font-size: clamp(28px, 8vw, 38px); font-weight: 900; letter-spacing: -0.03em;
    line-height: 1.05; margin-bottom: 18px;
    color: #fff;
}
.content-body {
    font-size: 14px; line-height: 1.55;
    color: rgba(255,255,255,0.9);
    margin-bottom: 22px;
}
.content-body strong { color: var(--lav-300); font-weight: 800; }
.content-pills {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 24px;
}
.content-pills .pill {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 8px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.95);
}

/* Mid-Slide CTA (klein, oberhalb von next-Hint) */
.mid-cta {
    margin: 16px 0 8px;
    text-align: center;
}
.mid-cta .cta-pill {
    display: inline-block;
    background: rgba(255,255,255,0.92);
    color: var(--lav-700);
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px; font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.next-hint {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    font-size: 11px; color: rgba(255,255,255,0.55);
    letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}

/* ────────── CTA Slide (Lead-Capture) ────────── */
.s-cta {
    background: linear-gradient(160deg, var(--lav-900) 0%, var(--lav-600) 60%, var(--lav-400) 100%);
    justify-content: center; text-align: center;
    padding-top: 70px;
}
.s-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 80%, rgba(255,255,255,0.18), transparent 60%);
}
.cta-inner { position: relative; z-index: 2; }
.cta-title {
    font-size: clamp(28px, 9vw, 40px); font-weight: 900; letter-spacing: -0.03em;
    line-height: 1.05; margin-bottom: 18px;
}
.cta-title em { color: #fde047; font-style: normal; }
.cta-sub {
    font-size: 14px; color: rgba(255,255,255,0.92); line-height: 1.5;
    margin: 0 auto 28px; max-width: 320px;
}
.cta-button {
    display: block; margin: 0 auto 14px;
    background: #fff; color: var(--lav-700);
    padding: 16px 28px; border-radius: 999px;
    font-size: 16px; font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    max-width: 320px;
}
.cta-button.secondary {
    background: rgba(255,255,255,0.18); color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.cta-contact {
    margin-top: 22px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 14px; padding: 12px 16px;
    font-size: 12px; line-height: 1.6;
    backdrop-filter: blur(10px);
    max-width: 320px; margin-left: auto; margin-right: auto;
}
.cta-contact a { color: #fff; text-decoration: none; font-weight: 700; }
.cta-footer {
    position: absolute; bottom: 12px; left: 18px; right: 18px;
    text-align: center;
    font-size: 9px; color: rgba(255,255,255,0.55); line-height: 1.5;
}
.cta-footer a { color: rgba(255,255,255,0.78); text-decoration: none; margin: 0 6px; }

/* ════════════════════════════════════════════════
   UNTER DEM SLIDER: Fact-Cards + Bottom-CTA
   Erscheint wenn der User vertikal nach unten scrollt
   ════════════════════════════════════════════════ */

/* Scroll-Hint am Slider-Ende (Pfeil nach unten + Pulse) */
.scroll-hint {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    z-index: 5;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: rgba(255,255,255,0.7);
    font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
    pointer-events: none;
}
.scroll-hint .arrow {
    width: 14px; height: 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: scrollPulse 1.6s infinite;
    margin-bottom: 4px;
}
@keyframes scrollPulse {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.7; }
    50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

/* Facts-Sektion */
.facts-section {
    background: linear-gradient(180deg, var(--bg) 0%, #160d2e 100%);
    padding: 56px 18px 40px;
    user-select: text;
    -webkit-user-select: text;
}
.facts-section .section-eyebrow {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em;
    color: var(--lav-300); font-weight: 700;
    text-align: center; margin-bottom: 8px;
}
.facts-section .section-title {
    font-size: clamp(24px, 7vw, 32px); font-weight: 900;
    letter-spacing: -0.03em; line-height: 1.1;
    text-align: center; margin-bottom: 28px;
    color: #fff;
}
.fact-grid {
    display: flex; flex-direction: column; gap: 12px;
    max-width: 480px; margin: 0 auto;
}
.fact-card {
    background: linear-gradient(135deg,
        rgba(124,58,237,0.16) 0%,
        rgba(76,29,149,0.20) 100%);
    border: 1px solid rgba(167,139,250,0.22);
    border-radius: 16px;
    padding: 18px 18px 16px;
    backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
}
.fact-card .num {
    font-size: clamp(28px, 9vw, 38px);
    font-weight: 900; letter-spacing: -0.04em; line-height: 1;
    background: linear-gradient(135deg, #fff 0%, var(--lav-300) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}
.fact-card .num-label {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--lav-300); font-weight: 700;
    margin-bottom: 12px;
}
.fact-card .fact-title {
    font-size: 16px; font-weight: 800; line-height: 1.25;
    margin-bottom: 6px;
    color: #fff;
}
.fact-card .fact-body {
    font-size: 13px; line-height: 1.45;
    color: rgba(255,255,255,0.82);
}
.fact-card .fact-body strong { color: var(--lav-300); font-weight: 700; }

/* Bottom-CTA: kompakter zweiter Lead-Aufschlag nach den Facts */
.bottom-cta {
    background: linear-gradient(160deg, var(--lav-900) 0%, var(--lav-700) 60%, var(--lav-500) 100%);
    padding: 44px 18px 32px;
    text-align: center;
    user-select: text;
    -webkit-user-select: text;
}
.bottom-cta::before {
    content: ''; position: absolute; left: 0; right: 0;
    height: 40px; transform: translateY(-40px);
    background: linear-gradient(180deg, transparent 0%, rgba(76,29,149,0.4) 100%);
    pointer-events: none;
}
.bottom-cta .bc-eyebrow {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em;
    color: rgba(255,255,255,0.85); font-weight: 700; margin-bottom: 8px;
}
.bottom-cta .bc-title {
    font-size: clamp(24px, 8vw, 32px); font-weight: 900;
    letter-spacing: -0.03em; line-height: 1.1;
    margin-bottom: 12px;
}
.bottom-cta .bc-sub {
    font-size: 14px; color: rgba(255,255,255,0.92); line-height: 1.5;
    margin: 0 auto 22px; max-width: 320px;
}
.bottom-cta .bc-btn {
    display: inline-block;
    background: #fff; color: var(--lav-700);
    padding: 14px 28px; border-radius: 999px;
    font-size: 16px; font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    margin: 0 auto 12px;
    min-width: 240px;
}
.bottom-cta .bc-btn.secondary {
    background: rgba(255,255,255,0.18); color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.bottom-cta .bc-foot {
    margin-top: 20px;
    font-size: 11px; color: rgba(255,255,255,0.7);
    line-height: 1.6;
}
.bottom-cta .bc-foot a {
    color: rgba(255,255,255,0.92);
    text-decoration: none; margin: 0 6px; font-weight: 600;
}

/* ────────── Pause-Hint ────────── */
.pause-hint {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.85);
    padding: 6px 14px; border-radius: 999px;
    font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
    pointer-events: none;
    opacity: 0; transition: opacity 0.3s;
}
.pause-hint.show { opacity: 1; }
