/* ============================================================================
   PICCO-AI · License Server
   CINEMATIC STUDIO EDITION — v6
   Design rule: Dark. Cinematic. Production-grade. Orange burns through.
   ============================================================================ */

/* ── Web fonts — system stack (DSGVO: no external font CDN) ── */
/* Inter and JetBrains Mono served as system/fallback fonts — no Google CDN request */


/* ── Markenschriften lokal gebuendelt (20.08.2026) ────────────────────────────
   Space Grotesk (Headlines/UI/Wortmarke) + Caveat (ausschliesslich das "ai").
   Beide OFL. Selbst gehostet: kein Third-Party-Request, kein Consent noetig,
   identische Dateien wie im Tool -> Website und Tool sind typografisch deckungsgleich. */
@font-face { font-family:'Space Grotesk'; font-style:normal; font-weight:300 700; font-display:swap; src:url('/static/fonts/space-grotesk-var.woff2?v=0') format('woff2'); }
@font-face { font-family:'Caveat'; font-style:normal; font-weight:400 700; font-display:swap; src:url('/static/fonts/caveat-var.woff2?v=0') format('woff2'); }

:root {
    --bg:            #0B0B0C;
    --bg-deep:       #060607;
    --bg-card:       rgba(20,20,22,0.94);
    --bg-card-alt:   rgba(27,27,29,0.96);

    /* Primary: Amber/Orange — LCARS action color
       FIX (06.09.2026, Nebenfund beim Hero-Padding-Fix, User-Freigabe): war
       die legacy Farbe #FF6A00 -- verifizierte SSOT
       (teaser-factory_design-system_v1.0.md) ist #FF952F mit den hier
       uebernommenen, dort ebenfalls dokumentierten abgeleiteten Toenen.
       var(--accent) wird ueber diese Datei 180x verwendet -- der Fix an der
       Wurzel deckt alle Stellen automatisch ab, ohne sie einzeln anzufassen. */
    --accent:        #FF952F;
    --accent-2:      #ff7905;
    --accent-3:      #ffd090;
    --accent-soft:   rgba(255,149,47,0.12);
    --accent-glow:   rgba(255,149,47,0.45);
    --accent-line:   rgba(255,149,47,0.50);

    /* Marketing / newsletter accent */
    --mkt-blue:        #38bdf8;
    --mkt-blue-dim:    rgba(56,189,248,0.14);
    --mkt-blue-border: rgba(56,189,248,0.28);

    /* Secondary: Green — data readouts */
    --cyan:          #3dff8f;
    --cyan-glow:     rgba(61,255,143,0.28);
    --cyan-line:     rgba(61,255,143,0.38);
    --cyan-soft:     rgba(61,255,143,0.08);

    /* Borders */
    --border:        rgba(255,149,47,0.18);
    --border-strong: rgba(255,149,47,0.40);

    /* Text */
    --text:          #F6F6F4;
    --text-dim:      #8A8A88;
    --muted:         rgba(246,246,244,0.52);
    --muted-2:       rgba(246,246,244,0.28);

    /* State */
    --success:  #3dff8f;
    --warning:  #ffe040;
    --danger:   #ff4040;

    --font-ui:   'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica Neue, sans-serif;
    --font-script: 'Caveat', 'Segoe Script', cursive;  /* NUR fuer das "ai" der Wortmarke */
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
}

/* ─ Marketing-page accent (blue replaces orange) ───────────────── */
.is-marketing-page {
  --accent: #38bdf8;
  --cyan: #0ea5e9;
}
.is-marketing-page .top-nav::before {
  background: #38bdf8;
  box-shadow: 0 0 18px rgba(56,189,248,0.55), 0 0 40px rgba(56,189,248,0.18);
}
.is-marketing-page .top-nav::after {
  background: linear-gradient(90deg, #38bdf8 0%, #38bdf8 200px, transparent 600px);
  box-shadow: 0 0 10px rgba(56,189,248,0.35);
}
html.light-mode .is-marketing-page {
  --accent: #0284c7;
  --cyan: #0369a1;
}

/* Newsletter sections always use blue accent */
.section-newsletter, .has-mkt-blue {
  --accent: var(--mkt-blue);
  --accent-border: var(--mkt-blue-border);
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: #000; text-shadow: none; }
html, body {
    margin: 0; padding: 0;
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 15px; line-height: 1.60;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ── Global heading type scale — Inter with tight tracking ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-ui);
    font-feature-settings: 'kern' 1, 'liga' 1;
    line-height: 1.20;
    letter-spacing: -0.01em;
}
h1 { font-weight: 800; letter-spacing: -0.025em; }
h2 { font-weight: 700; letter-spacing: -0.018em; }
h3 { font-weight: 600; letter-spacing: -0.012em; }
h4 { font-weight: 600; letter-spacing: -0.008em; }

/* Mono elements — consistent JetBrains Mono weight */
code, pre, .mono,
[class*="font-mono"], [class*="text-mono"] {
    font-family: var(--font-mono);
    font-weight: 400;
    font-feature-settings: 'liga' 0;
}

/* Labels and overlines — Inter 600 small caps style */
.section-label, .sp-label, .lp-label,
.stat-label, .brand-version,
[class*="-eyebrow"], [class*="-tag"] {
    font-family: var(--font-ui);
    font-weight: 600;
}
body { padding-top: 62px; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-3); text-decoration: underline; }
code, pre, .mono { font-family: var(--font-mono); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #080e1c; }
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
    box-shadow: 0 0 8px var(--accent-glow);
}
* { scrollbar-color: var(--accent) #080e1c; scrollbar-width: thin; }

/* ============================================================================
   CINEMATIC GRID — amber tone, 7% opacity, production console feel
   ============================================================================ */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,149,47,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,149,47,0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 160% 130% at 50% 0%, black 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 160% 130% at 50% 0%, black 10%, transparent 80%);
    animation: grid-scroll 50s linear infinite;
}

/* CRT raster */
body::after {
    content: '';
    position: fixed; inset: 0; z-index: 9997;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px, transparent 2px,
        rgba(0,0,0,0.10) 2px, rgba(0,0,0,0.10) 3px
    );
}

@keyframes grid-scroll {
    from { background-position: 0 0; }
    to   { background-position: 0 52px; }
}

/* ============================================================================
   ATMOSPHERE — cinematic background images, operator cockpit feel
   ============================================================================ */
.atmosphere {
    position: fixed; inset: 0; z-index: -2;
    background: var(--bg-deep);
    pointer-events: none;
}
.atmosphere.has-bg-corridor {
    background-image:
        linear-gradient(180deg, rgba(8,14,26,0.18) 0%, rgba(8,14,26,0.52) 100%),
        url('/static/img/bg-corridor.jpg?v=5c93708b');
    background-size: cover; background-position: center; background-attachment: fixed;
    filter: saturate(1.30) contrast(1.02) brightness(0.85);
}
.atmosphere.has-bg-cockpit,
.atmosphere.has-bg-admin {
    background-image:
        linear-gradient(180deg, rgba(8,14,26,0.18) 0%, rgba(8,14,26,0.55) 60%, rgba(8,14,26,0.80) 100%),
        url('/static/img/bg-cockpit.jpg?v=e59bff84');
    background-size: cover; background-position: center 20%; background-attachment: fixed;
    filter: saturate(1.30) contrast(1.02) brightness(0.85);
}
.atmosphere.has-bg-portal {
    background-image:
        linear-gradient(180deg, rgba(8,14,26,0.18) 0%, rgba(8,14,26,0.48) 100%),
        url('/static/img/bg-portal.jpg?v=6e0ed569');
    background-size: cover; background-position: center; background-attachment: fixed;
    filter: saturate(1.30) contrast(1.02) brightness(0.85);
}
.atmosphere.has-bg-tunnel {
    background-image:
        linear-gradient(180deg, rgba(8,14,26,0.18) 0%, rgba(8,14,26,0.50) 100%),
        url('/static/img/bg-tunnel.jpg?v=665025ed');
    background-size: cover; background-position: center; background-attachment: fixed;
    filter: saturate(1.30) contrast(1.02) brightness(0.85);
}
.atmosphere.has-bg-mascot {
    background-image:
        linear-gradient(180deg, rgba(8,14,26,0.18) 0%, rgba(8,14,26,0.52) 100%),
        url('/static/img/bg-mascot.jpg?v=1dd8f54f');
    background-size: cover; background-position: center; background-attachment: fixed;
    filter: saturate(1.30) contrast(1.02) brightness(0.85);
}
.atmosphere.has-bg-studio {
    background-image:
        linear-gradient(180deg, rgba(8,14,26,0.18) 0%, rgba(8,14,26,0.48) 100%),
        url('/static/img/bg-studio.jpg?v=956b55e1');
    background-size: cover; background-position: center; background-attachment: fixed;
    filter: saturate(1.30) contrast(1.02) brightness(0.85);
}

/* ============================================================================
   SWEEP LINES — camera/projector scan across the frame
   ============================================================================ */
.scan-vertical {
    position: fixed; left: 0; right: 0; top: 0;
    height: 3px; z-index: 9999; pointer-events: none;
    overflow: hidden;
    background-image: linear-gradient(90deg,
        transparent 0%,
        rgba(255,149,47,0) 8%,
        rgba(255,149,47,0.35) 30%,
        rgba(255,149,47,0.80) 50%,
        rgba(255,149,47,0.35) 70%,
        rgba(255,149,47,0) 92%,
        transparent 100%);
    background-size: 60% 100%;
    background-repeat: no-repeat;
    box-shadow: 0 0 12px 2px rgba(255,149,47,0.30), 0 0 28px 4px rgba(255,149,47,0.12);
    animation: tf-web-scanline-flow 1.8s linear infinite;
    mix-blend-mode: screen;
}
/* Fix 2026-09-01 (User-Vorgabe, ZWINGEND): der frühere vertikal ueber die
   ganze Seite herunterlaufende Streifen (translateY(-4px)->100vh, 8s) ist
   ersetzt durch dieselbe Scanline-Technik wie im Tool selbst (.tf-scanline
   in script/web_ui/static/style.css) -- ein fixer 3px-Balken am oberen Rand,
   dessen Farbverlauf endlos horizontal durchfliesst (background-position).
   Zwei weitere Balken derselben Technik: .tf-web-scanline-nav (dünn, direkt
   unter dem Menü, im normalen Fluss) und .tf-web-scanline-bottom (am unteren
   Seitenrand, fixed) -- beide in lib/site_nav.php, site-weit auf jeder Seite. */
.tf-web-scanline-nav,
.tf-web-scanline-bottom {
    left: 0; right: 0;
    height: 3px; z-index: 9998; pointer-events: none;
    overflow: hidden;
    background-image: linear-gradient(90deg,
        transparent 0%,
        rgba(255,149,47,0) 8%,
        rgba(255,149,47,0.35) 30%,
        rgba(255,149,47,0.80) 50%,
        rgba(255,149,47,0.35) 70%,
        rgba(255,149,47,0) 92%,
        transparent 100%);
    background-size: 60% 100%;
    background-repeat: no-repeat;
    box-shadow: 0 0 12px 2px rgba(255,149,47,0.30);
    animation: tf-web-scanline-flow 1.8s linear infinite;
}
.tf-web-scanline-bottom { position: fixed; bottom: 0; }
@keyframes tf-web-scanline-flow {
    0%   { background-position: -60% 0; }
    100% { background-position: 160% 0; }
}

/* ============================================================================
   KEYFRAMES
   ============================================================================ */
@keyframes glow-breathe {
    0%, 100% { box-shadow: 0 0 10px rgba(255,149,47,0.35), 0 0 24px rgba(255,149,47,0.12); }
    50%       { box-shadow: 0 0 22px rgba(255,149,47,0.75), 0 0 55px rgba(255,149,47,0.30); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--success), 0 0 16px var(--success); }
    50%       { opacity: 0.55; box-shadow: 0 0 4px var(--success); }
}
@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 8px rgba(255,149,47,0.50); }
    50%       { text-shadow: 0 0 18px rgba(255,149,47,0.90), 0 0 36px rgba(255,149,47,0.35); }
}
@keyframes modal-fade  { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes btn-loading { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes cookie-in   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes corner-anim {
    0%, 100% { opacity: 0.55; }
    50%       { opacity: 1.00; }
}

/* ============================================================================
   BETA BANNER — sticky top notice bar (used on admin pages)
   ============================================================================ */
.beta-banner {
    position: sticky; top: 0; z-index: 100;
    background: var(--accent);
    color: #0a0500;
    padding: 7px 18px;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
    border-bottom: 1px solid rgba(5,11,26,0.35);
}
.beta-banner a { color: inherit; text-decoration: underline; }

/* ============================================================================
   TOP NAV — LCARS command bridge header
   ============================================================================ */
.top-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 90;
    background: rgba(8,14,26,0.97);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 2px solid var(--accent);
    box-shadow:
        0 0 28px rgba(255,149,47,0.18),
        0 0 0 1px rgba(255,149,47,0.08) inset;
    padding: 0 28px;
    height: 62px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.top-nav.is-hidden {
    transform: translateY(-100%);
}

/* Left LCARS orange bar */
.top-nav::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--accent);
    box-shadow: 0 0 20px rgba(255,149,47,0.90), 0 0 40px rgba(255,149,47,0.45);
}

/* Bottom accent sweep */
.top-nav::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg,
        var(--accent) 0%, var(--accent) 200px,
        var(--cyan) 300px, transparent 600px);
    box-shadow: 0 0 16px rgba(255,149,47,0.60);
}

/* ── HAMBURGER BUTTON — hidden on desktop/tablet, shown on mobile ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid rgba(255,149,47,0.30);
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    position: relative; z-index: 91;
}
.nav-hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}
.top-nav.is-open .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.top-nav.is-open .nav-hamburger span:nth-child(2) {
    opacity: 0; transform: scaleX(0);
}
.top-nav.is-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── THEME TOGGLE — sun/moon button ── */
.theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: transparent;
    border: 1px solid rgba(255,149,47,0.28);
    border-radius: 50%;
    cursor: pointer;
    color: var(--accent);
    font-size: 15px; line-height: 1;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.18s, border-color 0.18s;
    position: relative; z-index: 91;
}
.theme-toggle:hover {
    background: rgba(255,149,47,0.10);
    border-color: rgba(255,149,47,0.50);
}
.theme-toggle .icon-light { display: none; }
html.light-mode .theme-toggle .icon-dark  { display: none; }
html.light-mode .theme-toggle .icon-light { display: block; }

.top-nav .nav-links { display: flex; gap: 2px; align-items: center; }
.top-nav .nav-links a {
    padding: 8px 16px;
    font-family: var(--font-ui); font-size: 11px; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--muted); text-decoration: none;
    border: 1px solid transparent; border-radius: 3px;
    transition: all 0.15s;
}
.top-nav .nav-links a:hover {
    color: var(--accent);
    border-color: rgba(255,149,47,0.30);
    background: rgba(255,149,47,0.06);
    text-shadow: 0 0 10px rgba(255,149,47,0.60);
    text-decoration: none;
}
.top-nav .nav-links a.is-cta {
    color: var(--accent);
    border: 1px solid var(--accent-line);
    background: rgba(255,149,47,0.10);
    box-shadow: 0 0 16px rgba(255,149,47,0.20), inset 0 0 16px rgba(255,149,47,0.05);
    text-shadow: 0 0 8px rgba(255,149,47,0.60);
}
.top-nav .nav-links a.is-cta:hover {
    background: rgba(255,149,47,0.22);
    box-shadow: 0 0 28px rgba(255,149,47,0.45), inset 0 0 20px rgba(255,149,47,0.10);
    text-decoration: none;
}

/* ── Brand block ── */
.brand-block { display: inline-flex; align-items: center; gap: 14px; }
.brand-block .brand-logo {
    width: 46px; height: 46px; border-radius: 8px;
    background: var(--accent);
    background-size: cover; background-position: center;
    flex-shrink: 0; overflow: hidden; position: relative;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset, 0 0 0 2px var(--accent);
    animation: glow-breathe 3.5s ease-in-out infinite;
}
.brand-block .brand-logo.has-image { background-image: url('/static/img/logo.jpg?v=db746218'); }
.brand-block .brand-logo img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 8px; display: block;
    position: absolute; inset: 0;
}
.brand-block .brand-logo span {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 18px; color: #0a0500; letter-spacing: 0.5px;
}
.brand-block .brand-logo.has-image span { display: none; }

.brand-block .brand-stack { display: flex; flex-direction: column; gap: 2px; }
.brand-block .brand-name {
    font-size: 15px; font-weight: 900; letter-spacing: 1.8px;
    color: var(--text); line-height: 1; text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255,149,47,0.30);
}
.brand-block .brand-version {
    font-family: var(--font-mono); font-size: 9px; padding: 2px 9px;
    border: 1px solid var(--accent-line);
    border-radius: 2px;
    color: var(--accent); background: rgba(255,149,47,0.10);
    width: fit-content; letter-spacing: 0.8px; text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255,149,47,0.25);
}

/* Language toggle */
.lang-toggle {
    display: inline-flex; align-items: stretch;
    border: 1px solid rgba(255,149,47,0.30);
    border-radius: 2px;
    background: rgba(255,149,47,0.04);
    overflow: hidden;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; font-weight: 700;
}
.lang-toggle a {
    padding: 6px 12px; color: var(--muted-2);
    text-decoration: none; text-transform: uppercase; transition: all 0.15s;
}
.lang-toggle a:hover { color: var(--accent); background: rgba(255,149,47,0.10); text-decoration: none; }
.lang-toggle a.is-current {
    color: var(--accent); background: rgba(255,149,47,0.18);
    text-shadow: 0 0 10px rgba(255,149,47,0.40);
}
.lang-toggle .lang-sep { width: 1px; background: rgba(255,149,47,0.28); }

/* ----------------------------------------------------------------------------
   Sprachwaehler als Aufklappmenue (10.09.2026)
   ----------------------------------------------------------------------------
   Loest die Reihe ".lang-toggle" (DE | EN) ab: mit fuenf Sprachen wuerde eine
   nebeneinanderliegende Liste die Navigationsleiste sprengen. Markup steht in
   lib/site_nav.php -> tf_lang_switcher() und ist ein <details>/<summary>, damit
   die Sprachwahl auch ohne JavaScript und per Tastatur funktioniert.
   Die alten .lang-toggle-Regeln bleiben absichtlich stehen — sie schaden nicht
   und decken evtl. verbliebene Alt-Einbindungen ab.
---------------------------------------------------------------------------- */
.lang-dd { position: relative; display: inline-block; }

.lang-dd > summary.lang-dd-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 9px 6px 10px;
    border: 1px solid rgba(255,149,47,0.30);
    border-radius: 3px;
    background: rgba(255,149,47,0.04);
    color: var(--muted-2);
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 1.2px; font-weight: 700; text-transform: uppercase;
    cursor: pointer; user-select: none;
    list-style: none; /* Firefox */
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
/* Das voreingestellte Dreieck des Browsers weg — wir zeichnen einen eigenen Pfeil. */
.lang-dd > summary.lang-dd-btn::-webkit-details-marker { display: none; }
.lang-dd > summary.lang-dd-btn::marker { content: ""; }

.lang-dd > summary.lang-dd-btn:hover,
.lang-dd[open] > summary.lang-dd-btn {
    color: var(--accent);
    background: rgba(255,149,47,0.12);
    border-color: rgba(255,149,47,0.50);
}
.lang-dd > summary.lang-dd-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.lang-dd-globe { opacity: 0.75; flex-shrink: 0; }
.lang-dd-cur   { line-height: 1; }
.lang-dd-caret { opacity: 0.6; flex-shrink: 0; transition: transform 0.18s ease; }
.lang-dd[open] .lang-dd-caret { transform: rotate(180deg); }

.lang-dd-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 1200;
    min-width: 168px; margin: 0; padding: 5px;
    list-style: none;
    background: #12100e;
    border: 1px solid rgba(255,149,47,0.30);
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,149,47,0.05);
}
.lang-dd-menu li { margin: 0; padding: 0; list-style: none; }

.lang-dd-item {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 10px;
    border-radius: 4px;
    color: var(--text-dim);
    text-decoration: none;
    /* Die Navigation richtet ihre Inhalte teils rechtsbuendig aus — ohne diese
       Zeile erbt das Menue das und die Sprachnamen rutschen an den Rand. */
    text-align: left;
    font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 500;
    transition: color 0.12s, background 0.12s;
}
.lang-dd-item:hover {
    color: var(--text);
    background: rgba(255,149,47,0.10);
    text-decoration: none;
}
.lang-dd-item.is-current { color: var(--accent); font-weight: 700; }

.lang-dd-code {
    flex-shrink: 0; min-width: 24px;
    font-family: var(--font-mono); font-size: 9.5px;
    letter-spacing: 0.9px; font-weight: 700; text-transform: uppercase;
    opacity: 0.65;
}
.lang-dd-item.is-current .lang-dd-code { opacity: 1; }
.lang-dd-name { flex: 1; white-space: nowrap; }
.lang-dd-tick { flex-shrink: 0; font-size: 12px; color: var(--accent); }

/* Aufklappen ohne Bewegung fuer Nutzer, die Animationen abgewaehlt haben. */
@media (prefers-reduced-motion: reduce) {
    .lang-dd-caret, .lang-dd-item, .lang-dd > summary.lang-dd-btn { transition: none; }
}

/* Beruehrungsgeraete: Zeilen auf 44px Mindesthoehe, Menue nicht am Rand kleben. */
@media (max-width: 900px) {
    .lang-dd-menu { right: auto; left: 0; min-width: 180px; }
    .lang-dd-item { padding: 11px 12px; min-height: 44px; box-sizing: border-box; }
    .lang-dd > summary.lang-dd-btn { padding: 10px 12px; min-height: 40px; box-sizing: border-box; }
}

/* Hellmodus */
html.light-mode .lang-dd > summary.lang-dd-btn {
    color: #4a3a2a;
    background: rgba(191,94,0,0.06);
    border-color: rgba(191,94,0,0.30);
}
html.light-mode .lang-dd > summary.lang-dd-btn:hover,
html.light-mode .lang-dd[open] > summary.lang-dd-btn {
    color: var(--accent);
    background: rgba(191,94,0,0.12);
    border-color: rgba(191,94,0,0.45);
}
html.light-mode .lang-dd-menu {
    background: #fffdfa;
    border-color: rgba(191,94,0,0.28);
    box-shadow: 0 14px 34px rgba(60,40,20,0.16);
}
html.light-mode .lang-dd-item { color: #4a3a2a; }
html.light-mode .lang-dd-item:hover { color: #1a1206; background: rgba(191,94,0,0.10); }
html.light-mode .lang-dd-item.is-current { color: var(--accent); }

/* ============================================================================
   PAGE LAYOUT — full-width, inner content centered via .dash-inner
   ============================================================================ */
.dash {
    width: 100%;
    padding: 0 0 60px;
    position: relative; z-index: 2;
}

/* Content centering wrapper — used inside .dash and .page-section */
.dash-inner {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 28px;
}
@media (max-width: 720px) { .dash-inner { padding: 0 16px; } }

/* First content block after the HUD hero — pulls up to overlap the hero's dark exit zone */
.hud-hero + .dash-inner {
    margin-top: -40px;
    position: relative;
    z-index: 2;
}
@media (max-width: 680px) {
    .hud-hero + .dash-inner { margin-top: -20px; }
}

/* Full-width section wrapper with optional background image accent */
.page-section {
    position: relative;
    overflow: hidden;
    padding: 64px 28px; /* generous vertical breathing room between sections */
}
.page-section::before {
    content: '';
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 40%;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}
.page-section > * { position: relative; z-index: 1; }

.page-section--cockpit::before { background-image: url('/static/img/bg-cockpit.jpg?v=e59bff84'); opacity: 0.12; }
.page-section--tunnel::before  { background-image: url('/static/img/bg-tunnel.jpg?v=665025ed');  opacity: 0.12; }
.page-section--portal::before  { background-image: url('/static/img/bg-portal.jpg?v=6e0ed569');  opacity: 0.10; }
.page-section--studio::before  { background-image: url('/static/img/bg-studio.jpg?v=956b55e1');  opacity: 0.10; }

@media (max-width: 720px) { .page-section { padding: 40px 16px; } }

/* ============================================================================
   HERO CARD — command bridge primary readout
   ============================================================================ */
.hero-card {
    position: relative;
    background: rgba(10,17,34,0.92);
    border: 1px solid rgba(255,149,47,0.35);
    border-left: 4px solid var(--accent);
    border-radius: 0;
    padding: 36px 40px;
    margin-bottom: 24px;
    overflow: hidden;
    /* Angular cut corner top-right */
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
    filter: drop-shadow(0 0 24px rgba(255,149,47,0.22)) drop-shadow(0 8px 40px rgba(5,11,26,0.70));
}
/* Cockpit background tinted behind hero text */
.hero-card::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url('/static/img/bg-cockpit.jpg?v=e59bff84');
    background-size: cover; background-position: center 40%;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}
.hero-card::before {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(10,17,34,0.60) 0%, rgba(10,17,34,0.25) 60%, rgba(10,17,34,0.10) 100%);
    pointer-events: none;
}
.hero-card > * { position: relative; z-index: 2; }
.hero-card.has-bg > .bg-layer {
    position: absolute; inset: 0;
    background-image: var(--hero-bg, none);
    background-size: cover; background-position: center;
    opacity: 0.3; z-index: 0;
}
.hero-card > * { position: relative; z-index: 1; }

.hero-card .hero-eyebrow {
    font-family: var(--font-mono); font-size: 11px; color: var(--cyan);
    text-transform: uppercase; font-weight: 700;
    margin-bottom: 8px; letter-spacing: 1.8px;
    text-shadow: 0 0 12px var(--cyan-glow);
}
.hero-card .hero-title {
    font-size: 34px; font-weight: 900; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--text);
    margin: 0 0 12px 0; line-height: 1.05;
    text-shadow: 0 0 30px rgba(255,149,47,0.20);
}
@media (max-width: 720px) { .hero-card .hero-title { font-size: 26px; } }
.hero-card .hero-sub {
    font-size: 14px; line-height: 1.55; color: var(--text-dim); margin: 0; max-width: 700px;
}
.hero-card .hero-meta {
    margin-top: 16px;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px;
    background: rgba(5,11,26,0.65);
    border: 1px solid var(--cyan-line);
    border-radius: 2px;
    font-family: var(--font-mono); font-size: 11px; color: var(--muted);
    letter-spacing: 0.6px;
    box-shadow: 0 0 16px rgba(61,255,143,0.08) inset;
}
.hero-card .hero-meta .meta-key { color: var(--cyan); opacity: 0.55; }
.hero-card .hero-meta .meta-val { color: var(--accent); font-weight: 800; text-shadow: 0 0 8px rgba(255,149,47,0.50); }

/* ============================================================================
   FLOW STEPS — 2-step action indicator (license first, then download)
   ============================================================================ */
.flow-steps {
    display: flex; align-items: stretch;
    margin-bottom: 22px;
    background: rgba(10,18,36,0.92);
    border: 1px solid rgba(255,149,47,0.22);
    border-left: 4px solid var(--accent);
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.flow-step {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 26px; flex: 1;
    transition: background 0.15s;
}
.flow-step.is-active {
    background: rgba(255,149,47,0.07);
    border-right: 1px solid rgba(255,149,47,0.18);
}
.flow-step .fs-num {
    font-family: var(--font-mono); font-size: 30px; font-weight: 900;
    color: rgba(255,149,47,0.18); line-height: 1; flex-shrink: 0;
    letter-spacing: -1px;
}
.flow-step.is-active .fs-num {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(255,149,47,0.55);
}
.flow-step .fs-body { display: flex; flex-direction: column; gap: 2px; }
.flow-step .fs-label {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    color: var(--muted-2); letter-spacing: 2px; text-transform: uppercase;
}
.flow-step.is-active .fs-label { color: var(--accent); opacity: 0.70; }
.flow-step .fs-title {
    font-size: 14px; font-weight: 800;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px;
}
.flow-step.is-active .fs-title { color: var(--text); text-shadow: 0 0 10px rgba(255,149,47,0.18); }
.flow-sep {
    font-family: var(--font-mono); font-size: 22px;
    color: rgba(255,149,47,0.28);
    padding: 0 12px;
    display: flex; align-items: center; flex-shrink: 0;
}
@media (max-width: 540px) {
    .flow-steps { flex-direction: column; }
    .flow-step.is-active { border-right: none; border-bottom: 1px solid rgba(255,149,47,0.18); }
    .flow-sep { padding: 6px 26px; font-size: 16px; transform: rotate(90deg); }
}

/* License-required notice inside download section */
.lic-req-notice {
    font-size: 13px; line-height: 1.55;
    color: var(--text-dim);
    background: rgba(61,255,143,0.05);
    border: 1px solid rgba(61,255,143,0.22);
    border-left: 3px solid var(--cyan);
    padding: 11px 16px;
    margin-bottom: 22px;
    font-family: var(--font-mono);
    letter-spacing: 0.3px;
}
.lic-req-notice strong { color: var(--accent); font-weight: 800; }

/* ============================================================================
   HUD HERO — Full-viewport spaceship command console (replaces splash-hero)
   ============================================================================ */
.hud-hero {
    position: relative;
    width: 100%;
    min-height: max(580px, calc(100vh - 94px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-deep);
    padding: 80px 32px 120px; /* extra bottom so content can overlap */
    margin-bottom: 0;
}

/* Full-bleed cinematic background */
.hud-bg {
    position: absolute; inset: 0; z-index: 0;
    background-image: url('/static/img/bg-cockpit.jpg?v=e59bff84');
    background-size: cover;
    background-position: center 30%;
}
.hud-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg,
            rgba(8,14,26,0.55) 0%,
            rgba(8,14,26,0.08) 26%,
            rgba(8,14,26,0.48) 68%,
            rgba(8,14,26,0.92) 84%,
            rgba(8,14,26,1.00) 100%),  /* fully opaque at bottom — no hard edge */
        linear-gradient(90deg,
            rgba(8,14,26,0.35) 0%,
            transparent 25%,
            transparent 75%,
            rgba(8,14,26,0.35) 100%);
}

/* CRT scan line texture overlay */
.hud-scanlines {
    position: absolute; inset: 0; z-index: 1;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px, transparent 2px,
        rgba(0,0,0,0.035) 2px, rgba(0,0,0,0.035) 4px
    );
    pointer-events: none;
}

/* Slow-moving orange scan beam */
.hud-scanbeam {
    position: absolute; left: 0; right: 0; z-index: 2;
    height: 220px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255,149,47,0.022) 35%,
        rgba(255,149,47,0.055) 50%,
        rgba(255,149,47,0.022) 65%,
        transparent 100%);
    animation: hudScanBeam 16s linear infinite;
    pointer-events: none;
}
@keyframes hudScanBeam {
    0%   { top: -220px; }
    100% { top: 100%; }
}

/* LCARS top colour bars */
.hud-top-bar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 10;
    display: flex; gap: 4px; height: 7px;
}
.htb-a { background: var(--accent); width: 160px; box-shadow: 0 0 16px rgba(255,149,47,0.60); }
.htb-b { background: var(--accent); opacity: 0.55; width: 44px; }
.htb-c { background: var(--cyan); width: 84px; opacity: 0.75; box-shadow: 0 0 12px rgba(61,255,143,0.40); }
.htb-b2 { background: var(--accent); opacity: 0.40; width: 30px; }
.htb-d { background: var(--accent); opacity: 0.18; flex: 1; }

/* LCARS left edge accent */
.hud-left-bar {
    position: absolute; top: 7px; left: 0; bottom: 36px; z-index: 10;
    width: 4px;
    background: linear-gradient(180deg,
        var(--accent) 0%, rgba(255,149,47,0.25) 55%, transparent 100%);
    box-shadow: 2px 0 14px rgba(255,149,47,0.20);
}

/* HUD corner brackets */
.hud-corner {
    position: absolute; z-index: 12;
    width: 54px; height: 54px;
}
.hud-corner--tl {
    top: 16px; left: 10px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    box-shadow: -3px -3px 18px rgba(255,149,47,0.30);
}
.hud-corner--tr {
    top: 16px; right: 10px;
    border-top: 2px solid rgba(255,149,47,0.55);
    border-right: 2px solid rgba(255,149,47,0.55);
}
.hud-corner--bl {
    bottom: 46px; left: 10px;
    border-bottom: 2px solid rgba(61,255,143,0.50);
    border-left: 2px solid rgba(61,255,143,0.50);
    box-shadow: -2px 2px 12px rgba(61,255,143,0.15);
}
.hud-corner--br {
    bottom: 46px; right: 10px;
    border-bottom: 2px solid rgba(61,255,143,0.50);
    border-right: 2px solid rgba(61,255,143,0.50);
}

/* Pulsing targeting rings around the card */
.hud-ring {
    position: absolute; z-index: 3;
    border-radius: 50%;
    border: 1px solid rgba(255,149,47,0.07);
    animation: hudRingPulse 7s ease-in-out infinite;
    pointer-events: none;
}
.hud-ring--1 { width: 540px; height: 540px; animation-delay: 0s; }
.hud-ring--2 { width: 740px; height: 740px; border-color: rgba(61,255,143,0.04); animation-delay: 2.3s; }
.hud-ring--3 { width: 960px; height: 960px; animation-delay: 4.6s; border-color: rgba(255,149,47,0.035); }
@keyframes hudRingPulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50%       { opacity: 1.00; transform: scale(1.012); }
}

/* Bottom LCARS status bar */
.hud-statusbar {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
    height: 36px;
    background: rgba(8,14,26,0.95); /* matches --bg-deep, no visible seam */
    border-top: none; /* removed — was creating a hard separator line */
    display: flex; align-items: center;
    padding: 0 20px; gap: 0;
    font-family: var(--font-mono); font-size: 9.5px;
    color: rgba(255,255,255,0.30);
    letter-spacing: 1px; text-transform: uppercase;
    overflow: hidden;
}
.hud-sb-item {
    display: flex; align-items: center; gap: 7px;
    padding: 0 16px 0 0;
    margin-right: 16px;
    border-right: 1px solid rgba(255,149,47,0.12);
    flex-shrink: 0;
}
.hud-sb-item:last-of-type { border-right: none; margin-right: 0; }
.hud-sb-dot {
    width: 5px; height: 5px; border-radius: 50%;
    flex-shrink: 0;
    animation: sbDotPulse 2.8s ease-in-out infinite;
}
.hud-sb-dot--ok   { background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.hud-sb-dot--warn { background: var(--accent); box-shadow: 0 0 8px rgba(255,149,47,0.70); animation-delay: 1s; }
@keyframes sbDotPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.18; }
}
.hud-sb-spacer { flex: 1; }
.hud-sb-date   { color: rgba(255,255,255,0.16); letter-spacing: 1.4px; font-size: 9px; }

/* Scroll hint */
.hud-scroll-hint {
    position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
    z-index: 11;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-family: var(--font-mono); font-size: 7.5px;
    color: rgba(255,255,255,0.20); letter-spacing: 3px;
    animation: scrollHint 4s ease-in-out infinite;
    pointer-events: none; user-select: none;
}
.hud-scroll-hint::after { content: '▼'; font-size: 9px; color: rgba(255,149,47,0.30); }
@keyframes scrollHint {
    0%, 60%, 100% { opacity: 0.5; }
    30%            { opacity: 1; }
}

/* LCARS horizontal section rule — between sections */
.lcars-rule {
    position: relative;
    display: flex; align-items: center;
    height: 16px; margin: 0 0 22px;
    overflow: hidden;
}
.lcars-rule::before {
    content: '';
    width: 130px; height: 6px;
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: 4px 0 12px rgba(255,149,47,0.40);
}
.lcars-rule::after {
    content: '';
    flex: 1; height: 1px; margin-left: 6px;
    background: linear-gradient(90deg, rgba(255,149,47,0.50) 0%, transparent 100%);
}

@media (max-width: 680px) {
    .hud-hero { padding: 60px 20px 48px; }
    .hud-corner { width: 34px; height: 34px; }
    .hud-ring--2, .hud-ring--3 { display: none; }
    .hud-ring--1 { width: 320px; height: 320px; }
    .hud-sb-item:nth-child(n+3) { display: none; }
    .hud-statusbar { padding: 0 14px; gap: 0; }
}

.splash-card {
    position: relative; z-index: 2;
    max-width: 460px; width: 100%;
    background: rgba(10,17,34,0.88);
    border: 1px solid rgba(255,149,47,0.55);
    border-left: 4px solid var(--accent);
    border-radius: 0;
    padding: 40px 36px;
    text-align: center;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    filter: drop-shadow(0 0 40px rgba(255,149,47,0.35)) drop-shadow(0 0 80px rgba(255,149,47,0.12));
}

.splash-card .logo-large {
    width: 94px; height: 94px;
    margin: 0 auto 24px;
    border-radius: 12px;
    background: var(--accent);
    background-size: cover; background-position: center;
    box-shadow:
        0 0 0 2px var(--accent),
        0 0 40px rgba(255,149,47,0.70),
        0 0 80px rgba(255,149,47,0.35);
    position: relative; overflow: hidden;
    animation: glow-breathe 3s ease-in-out infinite;
}
.splash-card .logo-large.has-image { background-image: url('/static/img/logo-picco.png?v=eb0ec8c4'); background-size: cover; }
.splash-card h1 {
    font-size: 28px; font-weight: 900;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--text); margin: 0 0 14px 0; line-height: 1.1;
    text-shadow: 0 0 20px rgba(255,149,47,0.30);
}
.splash-card .version-pill {
    display: inline-block;
    font-family: var(--font-mono); font-size: 11px;
    padding: 5px 16px;
    border: 1px solid var(--accent);
    border-radius: 2px;
    color: var(--accent);
    background: rgba(255,149,47,0.12);
    letter-spacing: 1px; margin-bottom: 22px; font-weight: 800;
    box-shadow: 0 0 16px rgba(255,149,47,0.35), inset 0 0 16px rgba(255,149,47,0.08);
    text-shadow: 0 0 10px rgba(255,149,47,0.70);
}
.splash-card .splash-line { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin: 6px 0; }
.splash-card .splash-line strong { color: var(--accent); font-weight: 700; text-shadow: 0 0 8px rgba(255,149,47,0.50); }
.splash-card .splash-fineline {
    font-family: var(--font-mono); font-size: 10px;
    color: var(--cyan); letter-spacing: 2px; text-transform: uppercase;
    margin: 20px 0 26px 0;
    text-shadow: 0 0 14px var(--cyan-glow);
}
.splash-card .splash-cta { display: block; width: 100%; }

/* ============================================================================
   PANEL — LCARS data terminal, angular, glowing
   ============================================================================ */
.panel {
    background: rgba(10,18,36,0.93);
    border: 1px solid rgba(255,149,47,0.30);
    border-left: 4px solid var(--accent);
    border-radius: 0;
    padding: 0 32px 28px;
    margin-bottom: 22px;
    position: relative;
    overflow: visible;
    /* Angled cut top-right corner — LCARS signature */
    clip-path: polygon(
        0 0,
        calc(100% - 22px) 0,
        100% 22px,
        100% 100%,
        0 100%
    );
    filter:
        drop-shadow(-5px 0 18px rgba(255,149,47,0.22))
        drop-shadow(0 8px 40px rgba(5,11,26,0.65));
}
@media (max-width: 720px) { .panel { padding: 0 20px 22px; } }

/* ── Panel header — full-width LCARS colored bar ── */
.panel-h {
    clip-path: none; /* allow it to be a block within the panel */
    background: linear-gradient(90deg,
        rgba(255,149,47,0.22) 0%,
        rgba(255,149,47,0.08) 50%,
        rgba(61,255,143,0.04) 100%);
    border-bottom: 2px solid rgba(255,149,47,0.50);
    margin: 0 -32px 22px;
    padding: 14px 32px 14px 20px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 2px 20px rgba(255,149,47,0.15);
}
@media (max-width: 720px) {
    .panel-h { margin: 0 -20px 22px; padding: 12px 20px 12px 16px; }
}

.panel-h .h-id {
    font-family: var(--font-mono); font-size: 10px;
    color: var(--cyan); letter-spacing: 1.8px; text-transform: uppercase;
    padding: 3px 10px;
    border: 1px solid var(--cyan-line);
    border-radius: 2px; background: rgba(61,255,143,0.10);
    font-weight: 700;
    text-shadow: 0 0 10px var(--cyan-glow);
    box-shadow: 0 0 12px rgba(61,255,143,0.15) inset;
}
.panel-h .h-title {
    font-size: 17px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.4px; color: var(--text); margin: 0;
    text-shadow: 0 0 12px rgba(255,149,47,0.20);
}
.panel-h .h-meta {
    margin-left: auto;
    font-family: var(--font-mono); font-size: 11px; color: var(--cyan);
    opacity: 0.60; letter-spacing: 0.6px;
}

/* Section label */
.section-label {
    font-family: var(--font-mono); font-size: 10px;
    color: var(--cyan); text-transform: uppercase; letter-spacing: 2px;
    margin: 0 0 14px 0; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
    text-shadow: 0 0 10px var(--cyan-glow);
}
.section-label::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(61,255,143,0.40), transparent);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px;
    border-radius: 2px; border: none;
    font-family: var(--font-mono); font-size: 12px; font-weight: 800;
    cursor: pointer; text-decoration: none;
    text-transform: uppercase; letter-spacing: 1.4px;
    position: relative; overflow: hidden;
    transition: filter 0.12s, box-shadow 0.18s, transform 0.08s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.40; cursor: not-allowed; }

.btn-primary {
    background: var(--accent);
    background: linear-gradient(180deg, #ffb240 0%, #ff8a20 60%, #e06500 100%);
    color: #0a0500;
    border: 1px solid rgba(255,255,255,0.20);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.15) inset,
        0 0 24px rgba(255,149,47,0.65),
        0 0 60px rgba(255,149,47,0.25),
        0 4px 16px rgba(5,11,26,0.50);
}
.btn-primary:hover:not(:disabled) {
    filter: brightness(1.12);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.25) inset,
        0 0 40px rgba(255,149,47,0.85),
        0 0 90px rgba(255,149,47,0.40),
        0 4px 20px rgba(5,11,26,0.50);
    text-decoration: none;
}

.btn-secondary {
    background: rgba(255,149,47,0.08);
    border: 1px solid var(--accent-line);
    color: var(--accent);
    box-shadow: 0 0 14px rgba(255,149,47,0.18), inset 0 0 14px rgba(255,149,47,0.06);
    text-shadow: 0 0 8px rgba(255,149,47,0.50);
}
.btn-secondary:hover:not(:disabled) {
    background: rgba(255,149,47,0.18);
    box-shadow: 0 0 28px rgba(255,149,47,0.45), inset 0 0 20px rgba(255,149,47,0.10);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(246,246,244,0.28);
    color: rgba(246,246,244,0.82);
    box-shadow: none;
    text-shadow: none;
}
.btn-ghost:hover:not(:disabled) {
    border-color: rgba(246,246,244,0.55);
    background: rgba(246,246,244,0.08);
    color: #fff;
    text-decoration: none;
}

.btn-danger {
    background: transparent; border: 1px solid rgba(255,64,64,0.50); color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
    border-color: var(--danger); background: rgba(255,64,64,0.12);
    box-shadow: 0 0 16px rgba(255,64,64,0.25);
    text-decoration: none;
}

.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 10px; letter-spacing: 1px; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: '...';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #0a0500; font-weight: 900; letter-spacing: 5px;
    animation: btn-loading 1.0s ease-in-out infinite;
}
.btn-secondary.is-loading::after,
.btn-ghost.is-loading::after,
.btn-danger.is-loading::after { color: var(--accent); }

/* ============================================================================
   STEP INDICATOR
   ============================================================================ */
.steps {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 8px; margin-bottom: 24px;
}
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .steps { grid-template-columns: repeat(2, 1fr); } }

.step {
    background: rgba(5,11,26,0.55); border: 1px solid var(--border);
    border-radius: 0; padding: 12px 14px;
    display: flex; align-items: flex-start; gap: 10px; transition: all 0.15s;
}
.step .step-num {
    width: 24px; height: 24px; border-radius: 0;
    background: rgba(5,11,26,0.60); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    color: var(--muted); flex-shrink: 0;
}
.step .step-label { font-size: 12px; color: var(--text-dim); line-height: 1.35; }
.step.is-done { border-color: rgba(61,255,143,0.45); background: rgba(61,255,143,0.04); }
.step.is-done .step-num { background: rgba(61,255,143,0.15); border-color: rgba(61,255,143,0.55); color: var(--success); box-shadow: 0 0 8px rgba(61,255,143,0.30) inset; }
.step.is-done .step-num::before { content: '✓'; font-size: 14px; }
.step.is-done .step-num span { display: none; }
.step.is-current {
    border-color: var(--accent);
    background: rgba(255,149,47,0.07);
    box-shadow: -3px 0 16px rgba(255,149,47,0.30), 0 0 20px rgba(255,149,47,0.08);
}
.step.is-current .step-num { background: rgba(255,149,47,0.20); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 10px rgba(255,149,47,0.40) inset; }
.step.is-current .step-label { color: var(--text); }

/* ============================================================================
   CONCEPT CARD — LCARS data sub-panel
   ============================================================================ */
.concept-card {
    position: relative;
    background: rgba(9,16,32,0.90);
    border: 1px solid rgba(255,149,47,0.35);
    border-left: 3px solid var(--accent);
    border-radius: 0;
    padding: 20px 22px;
    margin-bottom: 12px;
    transition: filter 0.2s, border-color 0.2s;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    filter: drop-shadow(-3px 0 10px rgba(255,149,47,0.18));
}
.concept-card:hover {
    border-color: var(--accent);
    filter:
        drop-shadow(-3px 0 20px rgba(255,149,47,0.45))
        drop-shadow(0 0 30px rgba(255,149,47,0.15));
}
.concept-card .cc-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.concept-card .cc-tag {
    font-family: var(--font-mono); font-size: 10px; color: var(--cyan);
    letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
    text-shadow: 0 0 10px var(--cyan-glow);
}
.concept-card .cc-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--accent-line); border-radius: 2px;
    font-family: var(--font-mono); font-size: 10px;
    color: var(--accent); background: rgba(255,149,47,0.10);
    letter-spacing: 0.8px; text-transform: uppercase; font-weight: 700;
    text-shadow: 0 0 8px rgba(255,149,47,0.50);
}
.concept-card .cc-title { font-size: 17px; font-weight: 700; color: var(--text); margin: 0 0 10px 0; line-height: 1.3; }
.concept-card .cc-body  { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin: 0 0 12px 0; }
.concept-card .cc-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.concept-card .cc-tags .tag {
    padding: 3px 9px; border: 1px solid var(--border); border-radius: 2px;
    font-size: 11px; color: var(--muted); background: rgba(5,11,26,0.40);
}

.concept-card.is-platform { display: flex; flex-direction: column; gap: 12px; }
.concept-card.is-platform .platform-row { display: flex; align-items: center; gap: 14px; }
.concept-card.is-platform .platform-icon {
    width: 54px; height: 54px; border-radius: 0;
    background: rgba(255,149,47,0.10); border: 1px solid var(--accent-line);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800; color: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(255,149,47,0.20) inset, 0 0 8px rgba(255,149,47,0.15);
    text-shadow: 0 0 12px rgba(255,149,47,0.70);
}
.concept-card.is-platform .platform-meta { display: flex; flex-direction: column; gap: 3px; }
.concept-card.is-platform .platform-name { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: 0.5px; }
.concept-card.is-platform .platform-info { font-size: 11px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.6px; }

.dl-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; margin-bottom: 4px;
}
@media (max-width: 800px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-grid .concept-card { margin-bottom: 0; }

/* ============================================================================
   REQUIREMENTS CHIPS
   ============================================================================ */
.req-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 10px; margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(61,255,143,0.20);
}
@media (max-width: 720px) { .req-row { grid-template-columns: 1fr 1fr; } }
.req-chip {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px;
    background: rgba(5,11,26,0.55); border: 1px solid var(--border); border-radius: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.req-chip:hover {
    border-color: var(--cyan-line);
    box-shadow: 0 0 16px rgba(61,255,143,0.12);
}
.req-chip.is-optional { border-style: dashed; border-color: rgba(246,246,244,0.18); }
.req-chip .chip-icon { color: var(--accent); font-weight: 900; flex-shrink: 0; line-height: 1.3; font-family: var(--font-mono); }
.req-chip .chip-label { font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; display: block; color: var(--text); }
.req-chip .chip-meta  { color: var(--muted); font-size: 11px; display: block; margin-top: 2px; line-height: 1.4; }

/* ============================================================================
   FORMS
   ============================================================================ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; position: relative; }
.form-group label, .form-group .term-prompt {
    display: block; font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 1.6px; color: var(--cyan); text-transform: uppercase;
    margin-bottom: 6px; font-weight: 700;
    text-shadow: 0 0 8px var(--cyan-glow);
}

input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    background: rgba(5,11,26,0.70); border: 1px solid rgba(61,255,143,0.25);
    border-radius: 0; padding: 12px 14px; color: var(--text);
    font-size: 14px; font-family: var(--font-ui);
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--accent);
    background: rgba(5,11,26,0.85);
    box-shadow: 0 0 0 3px rgba(255,149,47,0.14), 0 0 20px rgba(255,149,47,0.12);
}
textarea { resize: vertical; min-height: 80px; }

.checkbox-row {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--text-dim); line-height: 1.5;
}
.checkbox-row input[type="checkbox"] { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }

.license-terminal { max-width: 580px; margin: 0 auto; }

/* ============================================================================
   LICENSE RESULT
   ============================================================================ */
.license-result {
    background: rgba(5,11,26,0.75);
    border: 1px solid var(--accent-line);
    border-left: 4px solid var(--accent);
    border-radius: 0; padding: 18px; margin-top: 16px;
    font-family: var(--font-mono); font-size: 13px;
    color: var(--accent); word-break: break-all; cursor: pointer;
    transition: box-shadow 0.15s;
    text-align: center; letter-spacing: 0.8px; font-weight: 700;
    box-shadow: 0 0 30px rgba(255,149,47,0.16) inset;
    text-shadow: 0 0 10px rgba(255,149,47,0.60);
}
.license-result:hover {
    box-shadow: 0 0 50px rgba(255,149,47,0.30) inset, 0 0 30px rgba(255,149,47,0.20);
}
.mascot {
    width: 96px; height: 96px; border-radius: 0;
    margin: 0 auto 16px;
    background: var(--bg-card-alt); background-size: cover; background-position: center;
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(255,149,47,0.45);
    position: relative; overflow: hidden;
}
.mascot.has-image { background-image: url('/static/img/bg-mascot.jpg?v=1dd8f54f'); }

/* ============================================================================
   MESSAGES
   ============================================================================ */
.msg { padding: 13px 16px; border-radius: 0; font-size: 13.5px; margin-bottom: 16px; border: 1px solid; border-left: 4px solid; line-height: 1.5; }
.msg-success { background: rgba(61,255,143,0.06);  border-color: rgba(61,255,143,0.40);  color: var(--success); box-shadow: 0 0 20px rgba(61,255,143,0.08) inset; }
.msg-error   { background: rgba(255,64,64,0.06);   border-color: rgba(255,64,64,0.40);    color: var(--danger);  box-shadow: 0 0 20px rgba(255,64,64,0.08) inset; }
.msg-info    { background: rgba(255,149,47,0.06);  border-color: rgba(255,149,47,0.40);   color: var(--accent);  box-shadow: 0 0 20px rgba(255,149,47,0.08) inset; }

/* ============================================================================
   FOOTER STATUS BAR — LCARS system readout
   ============================================================================ */
.tool-footer {
    margin-top: 22px; padding: 12px 20px;
    background: rgba(5,11,26,0.85);
    border: 1px solid rgba(61,255,143,0.22);
    border-top: 2px solid rgba(61,255,143,0.30);
    border-radius: 0;
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    font-family: var(--font-mono); font-size: 11px;
    box-shadow: 0 0 30px rgba(61,255,143,0.08) inset, 0 -4px 20px rgba(5,11,26,0.50);
}
.tool-footer .fp { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); letter-spacing: 0.5px; }
.tool-footer .fp .fp-key { color: var(--cyan); opacity: 0.82; }
.tool-footer .fp .fp-val { color: var(--text-dim); }
.tool-footer .fp.is-success .fp-pulse {
    display: inline-block; width: 7px; height: 7px;
    border-radius: 50%; background: var(--success);
    box-shadow: 0 0 10px var(--success), 0 0 20px rgba(61,255,143,0.40);
    animation: pulse-dot 2s ease-in-out infinite;
}
.tool-footer .fp.is-success .fp-val { color: var(--success); text-shadow: 0 0 10px rgba(61,255,143,0.50); }
.tool-footer .fp-pill {
    padding: 3px 8px; border-radius: 2px;
    background: rgba(255,149,47,0.14); border: 1px solid var(--accent-line);
    color: var(--accent); font-weight: 700; text-transform: lowercase; letter-spacing: 0.6px;
    box-shadow: 0 0 10px rgba(255,149,47,0.20);
    text-shadow: 0 0 8px rgba(255,149,47,0.50);
}
.tool-footer .fp-divider { color: rgba(61,255,143,0.30); }
.tool-footer .fp-spacer  { flex: 1; }
.tool-footer .fp-link {
    padding: 4px 10px; border: 1px solid var(--cyan-line); border-radius: 2px;
    color: var(--cyan); text-transform: uppercase; letter-spacing: 1px;
    font-weight: 700; text-decoration: none; font-size: 10px;
    transition: all 0.15s;
    text-shadow: 0 0 8px var(--cyan-glow);
}
.tool-footer .fp-link:hover { background: rgba(61,255,143,0.12); box-shadow: 0 0 16px rgba(61,255,143,0.20); text-decoration: none; }

/* ============================================================================
   MINI DISCLAIMER
   ============================================================================ */
.mini-disclaimer { text-align: center; font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 22px; padding: 16px 20px; }
.mini-disclaimer a { color: var(--accent); }
.mini-disclaimer summary {
    cursor: pointer; color: var(--accent); font-weight: 700;
    text-transform: uppercase; font-size: 11px; letter-spacing: 1.4px;
    list-style: none; font-family: var(--font-mono);
    text-shadow: 0 0 8px rgba(255,149,47,0.40);
}
.mini-disclaimer summary::-webkit-details-marker { display: none; }
.mini-disclaimer details[open] summary { margin-bottom: 12px; }
.mini-disclaimer details {
    background: rgba(5,11,26,0.70); border: 1px solid rgba(61,255,143,0.15);
    border-left: 3px solid var(--cyan); border-radius: 0;
    padding: 14px 18px; text-align: left; margin-top: 8px;
}
.mini-disclaimer details p { margin: 8px 0; line-height: 1.6; }
.legal-footer { margin-top: 14px; text-align: center; font-size: 11px; color: rgba(246,246,244,0.55); }
.legal-footer a { color: rgba(246,246,244,0.70); margin: 0 8px; }
.legal-footer a:hover { color: var(--accent); }
/* WCAG 2.5.8 target-size: enlarge click area of small legal links without changing visible text size */
.legal-footer a, .fp-legal-menu a { display: inline-block; padding: 6px 3px; }

/* ============================================================================
   MODAL — LCARS emergency/dialog overlay
   ============================================================================ */
.modal-bg {
    display: none; position: fixed; inset: 0;
    background: rgba(5,11,26,0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 1000; align-items: center; justify-content: center; padding: 16px;
}
.modal-bg.show { display: flex; animation: modal-fade 0.18s ease-out; }
.modal {
    background: rgba(10,18,36,0.98);
    border: 1px solid rgba(255,149,47,0.50);
    border-left: 4px solid var(--accent);
    border-radius: 0;
    padding: 30px 32px;
    max-width: 540px; width: 100%;
    box-shadow:
        0 0 60px rgba(255,149,47,0.25),
        0 0 120px rgba(255,149,47,0.08),
        0 32px 80px rgba(5,11,26,0.90);
    position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.modal::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 60%, var(--cyan) 100%);
    box-shadow: 0 0 20px rgba(255,149,47,0.80);
}
.modal-large { max-width: 680px; padding: 36px; }
.modal-eyebrow {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px;
    color: var(--cyan); text-transform: uppercase; font-weight: 800; margin-bottom: 6px;
    text-shadow: 0 0 12px var(--cyan-glow);
}
.modal h3 {
    font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.2px;
    margin: 0 0 16px 0; color: var(--text);
    text-shadow: 0 0 14px rgba(255,149,47,0.25);
}
.terms-body {
    background: rgba(5,11,26,0.65); border: 1px solid rgba(61,255,143,0.18);
    border-radius: 0; padding: 16px 18px;
    margin: 14px 0 16px 0; font-size: 13px; line-height: 1.65;
    max-height: 320px; overflow-y: auto;
}
.terms-body p { margin: 0 0 10px 0; }
.terms-body p:last-child { margin-bottom: 0; }
.terms-body h4 {
    font-size: 10px; text-transform: uppercase; letter-spacing: 1.8px;
    color: var(--cyan); margin: 12px 0 6px 0; font-weight: 800;
    font-family: var(--font-mono); text-shadow: 0 0 8px var(--cyan-glow);
}
.terms-body h4:first-child { margin-top: 0; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.modal-actions .btn { min-width: 140px; }

/* ============================================================================
   ADMIN — command center layout
   ============================================================================ */
.app-header {
    background: rgba(8,14,26,0.98);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 0 40px rgba(255,149,47,0.25), 0 0 0 1px rgba(255,149,47,0.10) inset;
    padding: 0 28px; height: 62px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
    position: sticky; top: 28px; z-index: 50;
}
.app-body { padding: 28px; max-width: 1400px; margin: 0 auto; width: 100%; position: relative; z-index: 2; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

.stat {
    background: rgba(9,16,32,0.90);
    border: 1px solid rgba(61,255,143,0.22);
    border-top: 3px solid rgba(61,255,143,0.50);
    border-radius: 0;
    padding: 20px 22px 18px;
    transition: border-color 0.18s, box-shadow 0.18s;
    position: relative;
    box-shadow: 0 0 20px rgba(5,11,26,0.50), 0 0 14px rgba(61,255,143,0.06) inset;
}
.stat:hover {
    border-color: rgba(61,255,143,0.50);
    box-shadow: 0 0 30px rgba(61,255,143,0.12), 0 0 60px rgba(5,11,26,0.60);
}
.stat-label {
    font-family: var(--font-mono); font-size: 9.5px; color: var(--cyan);
    text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 8px;
    text-shadow: 0 0 8px var(--cyan-glow);
}
.stat-value {
    font-size: 32px; font-weight: 900; color: var(--accent);
    line-height: 1; font-variant-numeric: tabular-nums;
    text-shadow: 0 0 24px rgba(255,149,47,0.60), 0 0 60px rgba(255,149,47,0.20);
}

.section-title {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    margin: 28px 0 14px 0; color: var(--cyan); text-transform: uppercase; letter-spacing: 1.8px;
    display: flex; align-items: center; gap: 10px;
    text-shadow: 0 0 10px var(--cyan-glow);
}
.section-title::before {
    content: ''; display: inline-block; width: 4px; height: 16px;
    background: var(--accent); border-radius: 0;
    box-shadow: 0 0 12px rgba(255,149,47,0.70), 0 0 24px rgba(255,149,47,0.30);
}
.section-title::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(61,255,143,0.35), transparent);
}

/* Tables */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input[type="text"], .toolbar select { max-width: 280px; background: rgba(5,11,26,0.60); }
.toolbar .spacer { flex: 1; }

.table-wrap {
    overflow-x: auto; background: rgba(5,11,26,0.65);
    border: 1px solid rgba(61,255,143,0.18); border-radius: 0;
    box-shadow: 0 0 40px rgba(5,11,26,0.60);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(255,149,47,0.10); white-space: nowrap; }
th {
    background: rgba(5,11,26,0.80); font-family: var(--font-mono); font-weight: 700;
    color: var(--cyan); text-transform: uppercase; font-size: 9.5px; letter-spacing: 1.5px;
    cursor: pointer; user-select: none; position: sticky; top: 0;
    border-bottom: 1px solid rgba(61,255,143,0.25);
    text-shadow: 0 0 8px var(--cyan-glow);
}
th:hover { color: var(--text); }
th.sort-asc::after  { content: ' ▲'; color: var(--accent); font-size: 9px; }
th.sort-desc::after { content: ' ▼'; color: var(--accent); font-size: 9px; }
tbody tr { transition: background 0.10s; position: relative; }
tbody tr:hover { background: rgba(255,149,47,0.05); }
tbody tr:last-child td { border-bottom: none; }
tbody tr::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: var(--accent); transition: width 0.12s;
    box-shadow: none;
}
tbody tr:hover::before { width: 3px; box-shadow: 3px 0 12px rgba(255,149,47,0.50); }

.badge {
    display: inline-block; padding: 3px 9px; border-radius: 2px;
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
}
.badge-active    { background: rgba(61,255,143,0.14); color: var(--success); box-shadow: 0 0 10px rgba(61,255,143,0.15); text-shadow: 0 0 8px rgba(61,255,143,0.50); }
.badge-suspended { background: rgba(255,224,64,0.14); color: var(--warning); }
.badge-expired   { background: rgba(255,64,64,0.14);  color: var(--danger); }

.key-cell { font-family: var(--font-mono); font-size: 12px; color: var(--accent); text-shadow: 0 0 8px rgba(255,149,47,0.40); }
.row-actions { display: flex; gap: 6px; }

.pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
    border-radius: 2px; border: 1px solid var(--border);
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    color: var(--muted); background: rgba(5,11,26,0.50); letter-spacing: 0.7px; line-height: 1.4;
}
.pill-accent  { border-color: var(--accent-line); color: var(--accent); background: rgba(255,149,47,0.10); text-shadow: 0 0 8px rgba(255,149,47,0.40); }
.pill-success { border-color: rgba(61,255,143,0.45); color: var(--success); background: rgba(61,255,143,0.06); }
.pill-danger  { border-color: rgba(255,64,64,0.45);  color: var(--danger);  background: rgba(255,64,64,0.06); }
.pill code { color: inherit; font-family: inherit; font-size: 10px; }

.footer-status-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }

footer.footer {
    padding: 18px 24px; text-align: center; font-size: 11px; color: var(--muted);
    border-top: 1px solid rgba(61,255,143,0.15);
    background: rgba(5,11,26,0.80);
}

.pulse-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success), 0 0 20px rgba(61,255,143,0.40);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ============================================================================
   PROJECT LIST
   ============================================================================ */
.project-list { display: flex; flex-direction: column; gap: 8px; }
.project-list .pl-item {
    background: rgba(5,11,26,0.60); border: 1px solid rgba(61,255,143,0.18);
    border-radius: 0; padding: 16px 18px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; transition: all 0.15s; text-decoration: none; color: inherit;
}
.project-list .pl-item:hover { border-color: var(--accent-line); box-shadow: -3px 0 14px rgba(255,149,47,0.22); text-decoration: none; }
.project-list .pl-item.is-active { border-color: var(--accent); border-left-width: 3px; background: rgba(255,149,47,0.05); box-shadow: -4px 0 20px rgba(255,149,47,0.30); }
.project-list .pl-name { font-size: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.project-list .pl-meta { font-size: 12px; color: var(--accent); margin-top: 2px; }
.project-list .pl-right { text-align: right; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }

/* ============================================================================
   COOKIE BANNER
   ============================================================================ */
.cookie-banner {
    position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 480px;
    margin: 0 auto;
    background: rgba(10,17,34,0.97);
    border: 1px solid rgba(255,149,47,0.55);
    border-left: 4px solid var(--accent);
    border-radius: 0; padding: 16px 18px; z-index: 998;
    box-shadow: 0 0 50px rgba(255,149,47,0.25), 0 20px 50px rgba(5,11,26,0.80);
    display: none;
}
.cookie-banner.show { display: block; animation: cookie-in 0.3s ease-out; }
.cookie-banner-heading {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.6px;
    color: var(--accent); text-transform: uppercase; font-weight: 800; margin: 0 0 6px 0;
    text-shadow: 0 0 10px rgba(255,149,47,0.50);
}
.cookie-banner p { font-size: 12px; color: var(--text-dim); line-height: 1.55; margin: 0 0 12px 0; }
.cookie-banner .cookie-actions { display: flex; gap: 8px; }
.cookie-banner .cookie-actions .btn { flex: 1; padding: 8px 12px; font-size: 11px; }

/* ============================================================================
   UTILITIES
   ============================================================================ */
.hidden      { display: none !important; }
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); text-shadow: 0 0 8px rgba(255,149,47,0.40); }
.text-mono   { font-family: var(--font-mono); }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.page { min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 2; }

.card {
    background: rgba(10,18,36,0.96);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,149,47,0.40);
    border-left: 4px solid var(--accent);
    border-radius: 0;
    padding: 36px;
    box-shadow: -5px 0 24px rgba(255,149,47,0.25), 0 0 80px rgba(255,149,47,0.10), 0 24px 60px rgba(5,11,26,0.80);
    position: relative; overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    filter: drop-shadow(0 0 30px rgba(255,149,47,0.20));
}
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent) 50%, var(--cyan) 100%);
    box-shadow: 0 0 16px var(--accent-glow);
}
.card-narrow { max-width: 480px; width: 100%; }
.card-title { font-size: 20px; font-weight: 800; margin: 0; color: var(--text); text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 0 14px rgba(255,149,47,0.20); }

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    .scan-vertical, .scan-vertical::before, .scan-vertical::after,
    .tf-web-scanline-nav, .tf-web-scanline-bottom,
    .pulse-dot, .modal-bg, .cookie-banner, .brand-block .brand-logo,
    .beta-banner, body::before { animation: none !important; }
}

/* ============================================================================
   LEGAL PAGES
   ============================================================================ */
.legal {
    max-width: 820px; margin: 0 auto;
    padding: 28px 28px 56px;
    position: relative; z-index: 2;
}
.legal h1 { font-size: 32px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text); margin: 14px 0 8px 0; text-shadow: 0 0 20px rgba(255,149,47,0.20); }
.legal .legal-eyebrow { font-family: var(--font-mono); font-size: 10px; color: var(--cyan); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; text-shadow: 0 0 10px var(--cyan-glow); }
.legal h2 { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); text-transform: uppercase; letter-spacing: 1.8px; font-weight: 800; margin: 32px 0 10px 0; text-shadow: 0 0 8px var(--cyan-glow); }
.legal h3 { font-size: 15px; color: var(--text); text-transform: uppercase; letter-spacing: 0.6px; margin: 22px 0 8px 0; }
.legal p, .legal ul, .legal ol { font-size: 14px; line-height: 1.7; color: var(--text-dim); margin: 0 0 12px 0; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(61,255,143,0.25), transparent); margin: 28px 0; }
.legal a { color: var(--accent); }
.legal .system-info { background: rgba(5,11,26,0.70); border: 1px solid rgba(61,255,143,0.18); border-left: 3px solid var(--cyan); border-radius: 0; padding: 18px 20px; margin: 28px 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--text-dim); }
.legal .system-info .si-key { color: var(--cyan); opacity: 0.65; display: inline-block; min-width: 140px; }
.legal .system-info .si-val { color: var(--accent); text-shadow: 0 0 8px rgba(255,149,47,0.40); }

/* ============================================================================
   COMPATIBILITY LAYER
   ============================================================================ */
.atmosphere-grid {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        linear-gradient(rgba(61,255,143,0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61,255,143,0.10) 1px, transparent 1px);
    background-size: 52px 52px;
}
.particles {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 20% 30%, var(--accent), transparent 50%),
        radial-gradient(1px 1px at 60% 70%, var(--cyan), transparent 50%),
        radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.60), transparent 50%),
        radial-gradient(1px 1px at 30% 80%, var(--accent), transparent 50%),
        radial-gradient(1px 1px at 90% 60%, var(--cyan), transparent 50%);
    opacity: 0.55;
}
.reactor, .reactor-light {
    position: fixed; left: 50%; bottom: -180px;
    transform: translateX(-50%);
    width: 700px; height: 420px;
    background: radial-gradient(circle at 50% 100%, rgba(255,149,47,0.40) 0%, rgba(255,149,47,0.10) 35%, transparent 65%);
    filter: blur(70px); z-index: -1; pointer-events: none; opacity: 0.55;
}

.hud { position: relative; }
.hud-tr, .hud-bl, .hud > .hud-tr, .hud > .hud-bl {
    position: absolute; width: 14px; height: 14px;
    border: 1.5px solid var(--accent); pointer-events: none; opacity: 0.65; display: block;
    box-shadow: 0 0 8px rgba(255,149,47,0.40);
}
.hud > .hud-tr, .hud-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.hud > .hud-bl, .hud-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.hud::before { content: ''; position: absolute; top: 8px; left: 8px; width: 14px; height: 14px; border: 1.5px solid var(--accent); border-right: none; border-bottom: none; pointer-events: none; opacity: 0.65; }
.hud::after  { content: ''; position: absolute; bottom: 8px; right: 8px; width: 14px; height: 14px; border: 1.5px solid var(--accent); border-left: none; border-top: none; pointer-events: none; opacity: 0.65; }
.stat.hud { padding-top: 24px; padding-bottom: 22px; }

/* ============================================================================
   RESPONSIVE — FULL MOBILE COVERAGE
   Typography, navigation, layout, components — all breakpoints
   ============================================================================ */

/* ── Fix: iOS Safari ignores background-attachment:fixed inside scroll containers ── */
@media (max-width: 768px) {
    .atmosphere.has-bg-corridor,
    .atmosphere.has-bg-cockpit,
    .atmosphere.has-bg-admin,
    .atmosphere.has-bg-portal,
    .atmosphere.has-bg-tunnel,
    .atmosphere.has-bg-mascot,
    .atmosphere.has-bg-studio {
        background-attachment: scroll;
    }
}

/* ── BETA BANNER — mobile: tighter padding ── */
@media (max-width: 540px) {
    .beta-banner { padding: 6px 12px; }
}

/* ── TABLET (900px–1024px): nur noch nicht-Nav-Anpassungen ──
   FIX (06.09.2026, User-Meldung mit Windows/Chrome-Screenshot): Diese Stufe
   zwang bis zu 9 Nav-Links + Brand + Sprach-/Theme-Umschalter auf EINE Zeile
   bei fixer Nav-Hoehe (56px). Passte die Textbreite bei abweichendem
   Font-Rendering (verifiziert konkret auf Windows/Chrome) nicht exakt, brach
   der Flex-Umbruch (`.top-nav` erbt `flex-wrap:wrap` von der Basisregel) in
   eine zweite Zeile um -- die Nav-Box blieb aber bei 56px fixer Hoehe, die
   zweite Zeile ueberlappte das direkt folgende Pre-Launch-Band. Fix: die
   Hamburger-Schwelle direkt unten deckt jetzt 900-1024px mit ab (Nav-Links
   werden dort zum Dropdown, kein Inline-Umbruch mehr moeglich). Was hier
   bleibt, ist nur noch tablet-spezifisch, nicht nav-bezogen. */
@media (min-width: 900px) and (max-width: 1024px) {
    /* Tablet: download cards 2 columns */
    .dl-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── TOP NAV — MOBILE+TABLET (≤1024px): hamburger overlay menu (widened
   06.08.2026 auf 899px, "8 Nav-Items passen bei 768px nicht"; erneut
   erweitert 06.09.2026 auf 1024px, siehe Kommentar oben -- derselbe
   Ueberlauf-Fehler kehrte zurueck, weil seither ein 9. Nav-Item
   ("Pre-Launch Founders Offer") dazukam) ── */
@media (max-width: 1024px) {
    /* Show hamburger button */
    .nav-hamburger { display: flex; }

    .top-nav {
        height: 56px;
        padding: 0 16px;
        flex-wrap: nowrap;
        gap: 0;
        align-items: center;
        overflow: visible;
    }
    /* Brand compact */
    .brand-block {
        flex: 1 1 auto;
        padding: 0;
        gap: 10px;
    }
    .brand-block .brand-logo  { width: 34px; height: 34px; border-radius: 6px; }
    .brand-block .brand-name  { font-size: 12px; letter-spacing: 1px; }
    .brand-block .brand-version { font-size: 8px; padding: 1px 7px; letter-spacing: 0.5px; }

    /* Dropdown overlay — hidden by default */
    .top-nav .nav-links {
        position: absolute;
        top: 100%;
        left: -16px;
        right: -16px;
        background: rgba(8,14,26,0.99);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 2px solid var(--accent);
        box-shadow: 0 8px 40px rgba(0,0,0,0.70);
        padding: 16px 20px 28px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        overflow-x: visible;
        overflow-y: auto;
        max-height: calc(100vh - 56px);
        z-index: 99;
        /* Closed state */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.20s ease, transform 0.20s ease;
    }
    /* Open state */
    .top-nav.is-open .nav-links {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }
    .top-nav .nav-links a {
        width: 100%;
        padding: 13px 16px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1.5px;
        min-height: 44px;
        display: flex;
        align-items: center;
        white-space: normal;
        flex-shrink: unset;
        border-radius: 3px;
        border-color: transparent;
    }
    .top-nav .nav-links a.is-cta { margin-bottom: 6px; }
    .lang-toggle {
        margin-top: 12px;
        margin-left: 0;
        font-size: 11px;
        flex-shrink: 0;
        width: fit-content;
    }
    .lang-toggle a { padding: 12px 16px; min-height: 44px; display: inline-flex; align-items: center; }
    /* Prevent body scroll when menu is open */
    body.nav-open { overflow: hidden; }
}

/* ── SPLASH HERO — reduce height and padding on phones ── */
@media (max-width: 600px) {
    .splash-hero {
        min-height: 360px;
        padding: 32px 14px;
        clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    }
    .splash-card {
        padding: 26px 20px;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    }
    .splash-card .logo-large { width: 70px; height: 70px; margin-bottom: 14px; }
    .splash-card h1 { font-size: 22px; letter-spacing: 1.2px; }
    .splash-card .version-pill { font-size: 10px; padding: 4px 12px; margin-bottom: 16px; }
    .splash-card .splash-line { font-size: 13px; }
    .splash-card .splash-fineline { font-size: 9px; margin: 14px 0 20px; letter-spacing: 1.5px; }
}

/* ── HERO CARD ── */
@media (max-width: 600px) {
    .hero-card {
        padding: 20px 18px;
        clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
    }
    .hero-card .hero-meta { flex-wrap: wrap; gap: 6px 10px; font-size: 10px; }
}

/* ── PANEL HEADER — hide right-side meta on tiny screens ── */
@media (max-width: 520px) {
    .panel-h { gap: 8px; }
    .panel-h .h-meta { display: none; }
    .panel-h .h-title { font-size: 14px; letter-spacing: 0.8px; }
    .panel-h .h-id { font-size: 9px; }
}

/* ── REQUIREMENTS CHIPS — single column on narrow phones ── */
@media (max-width: 460px) {
    .req-row { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
}

/* ── DOWNLOAD CARDS — tighten on narrow screens ── */
@media (max-width: 480px) {
    .concept-card { padding: 16px 16px; }
    .concept-card.is-platform .platform-icon { width: 44px; height: 44px; font-size: 22px; }
}

/* ── TOOL FOOTER — slim on mobile, hide secondary items on very narrow ── */
@media (max-width: 640px) {
    .tool-footer { padding: 10px 14px; gap: 6px; font-size: 10px; }
}
@media (max-width: 420px) {
    .fp-hide-mobile { display: none; }
    .tool-footer .fp-spacer { display: none; }
    .tool-footer .fp-link { margin-left: auto; }
}

/* ── CARD (recover / error pages) ── */
@media (max-width: 520px) {
    .card {
        padding: 22px 18px;
        clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    }
    .card-narrow { max-width: 100%; }
    .center { padding: 20px 12px; align-items: stretch; }
}

/* ── MODALS ── */
@media (max-width: 560px) {
    .modal-bg { padding: 10px; align-items: flex-end; }
    .modal, .modal-large {
        padding: 22px 18px;
        max-width: 100%;
        border-left-width: 4px;
        clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    }
    .terms-body { max-height: 200px; }
    .modal-actions { flex-direction: column-reverse; gap: 8px; }
    .modal-actions .btn { min-width: auto; width: 100%; }
}

/* ── LEGAL PAGES ── */
@media (max-width: 600px) {
    .legal { padding: 18px 16px 36px; }
    .legal h1 { font-size: 24px; }
}

/* ── ADMIN LAYOUT ── */
@media (max-width: 640px) {
    .app-header { top: 0; padding: 0 16px; height: 52px; }
    .app-body { padding: 16px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar input[type="text"], .toolbar select { max-width: none; }
    .table-wrap { font-size: 12px; }
    th, td { padding: 10px 12px; }
}
@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr; }
}

/* ── MOBILE TOUCH TARGETS: forms & buttons ≥ 44px ── */
@media (max-width: 680px) {
    input[type="text"], input[type="email"], input[type="password"], textarea, select {
        padding: 15px 16px;
        font-size: 16px; /* prevents iOS auto-zoom on focus */
    }
    .btn:not(.btn-sm) { min-height: 44px; }
}

/* ── COOKIE BANNER ── */
@media (max-width: 480px) {
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 14px; }
}

/* ── EXTRA SMALL (iPhone SE / ≤380px) ── */
@media (max-width: 380px) {
    .beta-banner { font-size: 9.5px; padding: 5px 10px; }
    .brand-block .brand-name { font-size: 11px; }
    /* Terms modal: ensure confirm button always visible */
    .terms-body { max-height: 140px; }
    /* Modals: tighter on very small screens */
    .modal, .modal-large { padding: 18px 14px; }
    /* SP-hero: tighten bottom spacing */
    .sp-hero { padding: 100px 16px 60px; }
}

/* ============================================================================
   LP — LANDING PAGE DESIGN SYSTEM
   Full-width, conversion-optimised. No max-width on sections.
   ============================================================================ */

.lp-main { width: 100%; overflow-x: hidden; }

/* ── Hero ── */
.lp-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 32px 160px; /* extra bottom padding for stat-bar overlap */
  overflow: hidden;
}

/* Stat bar rises from the hero's dark exit zone — creates seamless flow */
.lp-hero + .lp-stat-bar {
  margin-top: -80px;
  position: relative;
  z-index: 2;
}
.lp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: 0;
}
.lp-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,14,28,0.50) 0%,
    rgba(8,14,28,0.28) 35%,
    rgba(8,14,28,0.65) 72%,
    rgba(8,14,28,1.00) 100%
  );
}
/* Jungle LP backgrounds — standardized filter */
.lp-hero-bg.is-jungle {
  filter: saturate(1.30) contrast(1.02) brightness(0.85);
}
.lp-hero > *:not(.lp-hero-bg) { position: relative; z-index: 1; }
.lp-hero-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  opacity: 0.90;
}
.lp-hero-h1 {
  font-size: clamp(34px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 960px;
  margin: 0 auto 26px;
  text-shadow: 0 4px 48px rgba(0,0,0,0.55);
}
.lp-hero-h1 em {
  font-style: normal;
  color: var(--accent);
}
.lp-hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.58;
  color: rgba(246,246,244,0.80);
  max-width: 660px;
  margin: 0 auto 44px;
}
.lp-hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 17px 40px;
  background: linear-gradient(90deg, #e06800, #FF952F);
  color: #000;
  font-size: 15px;
  font-weight: 800;
  border-radius: 9px;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 0 48px rgba(255,149,47,0.42), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.15s, box-shadow 0.15s;
}
.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 72px rgba(255,149,47,0.62), inset 0 1px 0 rgba(255,255,255,0.18);
  color: #000;
  text-decoration: none;
}
.lp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 34px;
  background: rgba(246,246,244,0.07);
  color: rgba(246,246,244,0.82);
  font-size: 15px;
  font-weight: 700;
  border-radius: 9px;
  border: 1.5px solid rgba(246,246,244,0.22);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s;
}
.lp-btn-ghost:hover {
  border-color: rgba(246,246,244,0.50);
  color: #fff;
  background: rgba(246,246,244,0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Sections ── */
.lp-section {
  width: 100%;
  padding: 100px 32px;
}
.lp-section-alt  { background: rgba(255,149,47,0.025); border-top: 1px solid rgba(255,149,47,0.04); border-bottom: 1px solid rgba(255,149,47,0.04); }
.lp-section-dark { background: #080e1c; }
.lp-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.lp-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.80;
}
.lp-h2 {
  font-size: clamp(26px, 3.8vw, 50px);
  font-weight: 900;
  line-height: 1.10;
  letter-spacing: -0.022em;
  color: var(--text);
  margin: 0 0 14px;
}
.lp-h2-sub {
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 52px;
}

/* ── Grids ── */
.lp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.lp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.lp-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 960px)  { .lp-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .lp-grid-3, .lp-grid-2, .lp-grid-5 { grid-template-columns: 1fr; } }
@media (max-width: 800px)  { .lp-grid-5 { grid-template-columns: 1fr 1fr; } }

/* ── Cards ── */
.lp-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,149,47,0.13);
  border-radius: 16px;
  padding: 34px 30px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.lp-card:hover {
  border-color: rgba(255,149,47,0.40);
  box-shadow: 0 0 40px rgba(255,149,47,0.17);
  transform: translateY(-3px);
}
.lp-card-ico {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,149,47,0.10);
  border: 1px solid rgba(255,149,47,0.18);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--accent);
}
.lp-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.lp-card-text {
  font-size: 14px;
  line-height: 1.67;
  color: var(--muted);
  margin: 0;
}
.lp-card-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.70;
}

/* ── Stats bar ── */
.lp-stat-bar {
  width: 100%;
  background: linear-gradient(90deg, #c85800, #FF952F, #ffa94d);
  padding: 52px 32px;
}
.lp-stat-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.lp-stat-num {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 900;
  color: #000;
  line-height: 1;
  letter-spacing: -0.035em;
}
.lp-stat-label {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(0,0,0,0.65);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 8px;
}
@media (max-width: 640px) { .lp-stat-bar-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ── Pipeline steps ── */
.lp-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 56px;
}
.lp-pipeline::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(10% + 16px);
  right: calc(10% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(255,149,47,0.15));
  z-index: 0;
}
.lp-pipe-step {
  text-align: center;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}
.lp-pipe-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e06800, var(--accent));
  color: #000;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 32px rgba(255,149,47,0.55), 0 0 0 4px rgba(255,149,47,0.12);
}
.lp-pipe-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.lp-pipe-text {
  font-size: 11.5px;
  line-height: 1.58;
  color: var(--muted);
}
.lp-pipe-tool {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
  opacity: 0.75;
}
.sp-pipeline-phase { margin-bottom: 28px; }
.sp-pipeline-phase-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 12px;
  padding-left: 2px;
}
@media (max-width: 860px)  {
  .lp-pipeline { grid-template-columns: 1fr 1fr; gap: 24px; }
  .lp-pipeline::before { display: none; }
}
@media (max-width: 480px)  { .lp-pipeline { grid-template-columns: 1fr; } }

/* ── Pill tags ── */
.lp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.lp-pill {
  background: rgba(255,149,47,0.09);
  border: 1px solid rgba(255,149,47,0.24);
  border-radius: 100px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s;
}
.lp-pill:hover {
  background: rgba(255,149,47,0.16);
  border-color: rgba(255,149,47,0.45);
}

/* ── Comparison table ── */
.lp-compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  font-size: 14px;
}
.lp-compare th {
  text-align: left;
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,149,47,0.14);
}
.lp-compare th:first-child { color: var(--text-dim); }
.lp-compare td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,149,47,0.07);
  color: var(--muted);
  vertical-align: middle;
}
.lp-compare td:first-child { color: var(--text); font-weight: 600; }
.lp-compare td.lp-yes { color: #3dff8f; font-weight: 700; }
.lp-compare td.lp-no  { color: rgba(246,246,244,0.28); }
.lp-compare tr:hover td { background: rgba(255,149,47,0.03); }
.lp-compare .lp-col-tf { background: rgba(255,149,47,0.05); }

/* ── CTA block ── */
.lp-cta-block {
  width: 100%;
  padding: 110px 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,149,47,0.06) 0%, rgba(8,14,28,0) 100%);
  border-top: 1px solid rgba(255,149,47,0.16);
}
.lp-cta-h {
  font-size: clamp(28px, 4.2vw, 58px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 auto 20px;
  max-width: 840px;
  color: var(--text);
}
.lp-cta-sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 auto 44px;
  max-width: 560px;
  line-height: 1.60;
}
.lp-cta-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
  opacity: 0.65;
}

/* ── FAQ accordion ── */
.lp-faq { max-width: 820px; margin: 48px auto 0; }
.lp-faq-item { border-bottom: 1px solid rgba(255,149,47,0.13); }
.lp-faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 700;
  text-align: left;
  padding: 24px 48px 24px 0;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  line-height: 1.42;
  transition: color 0.15s;
  letter-spacing: -0.005em;
}
.lp-faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.25s;
}
.lp-faq-item.is-open .lp-faq-q::after { content: '\2212'; }
.lp-faq-q:hover { color: var(--accent); }
.lp-faq-a {
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
  padding: 0 48px 24px 0;
  display: none;
}
.lp-faq-item.is-open .lp-faq-a { display: block; }

/* ── LP footer ── */
.lp-footer {
  width: 100%;
  padding: 28px 32px;
  border-top: 1px solid rgba(255,149,47,0.10);
  text-align: center;
}
.lp-footer-links {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.60;
}
.lp-footer-links a { color: inherit; text-decoration: none; }
.lp-footer-links a:hover { opacity: 1; color: var(--text); }
.lp-footer-copy {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  opacity: 0.38;
}

/* ── Responsive section padding ── */
@media (max-width: 768px) {
  .lp-section { padding: 56px 20px; }
  .lp-stat-bar { padding: 32px 20px; }
  .lp-cta-block { padding: 64px 20px; }
  .lp-hero { padding: 72px 20px 56px; }
  .lp-footer { padding: 24px 20px; }
}

/* ── Ecosystem footer micro-links ── */
.eco-links {
    margin-top: 8px;
    font-size: 10px;
    color: rgba(246,246,244,0.50);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
}
.eco-links a {
    color: inherit;
    text-decoration: none;
}
.eco-links a:hover { opacity: 0.7; }
.eco-links span { opacity: 0.5; }

/* ── Beta Modal — centered overlay, LCARS panel style ── */
.beta-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(5, 11, 26, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: betaBgIn 0.28s ease;
}
.beta-modal-bg[hidden] { display: none !important; }

@keyframes betaBgIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.beta-modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: rgba(10, 17, 34, 0.99);
  border: 1px solid rgba(255, 106, 0, 0.35);
  border-left: 4px solid var(--accent);
  padding: 36px 36px 32px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  box-shadow:
    0 0 0 1px rgba(255, 106, 0, 0.10) inset,
    -6px 0 40px rgba(255, 106, 0, 0.18),
    0 32px 80px rgba(0, 0, 0, 0.75);
  animation: betaModalIn 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes betaModalIn {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.beta-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--cyan-glow);
}
.beta-modal-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(61,255,143,0.40), transparent);
}

.beta-modal-badge {
  background: var(--accent);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 10px 2px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.50);
}

.beta-modal h2 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.25;
  text-shadow: 0 0 18px rgba(255, 106, 0, 0.18);
}

.beta-modal-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
  margin: 0 0 28px;
}
.beta-modal-body strong { color: var(--text); font-weight: 700; }

.beta-modal-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,149,47,0.25), transparent);
  margin: 0 0 24px;
}

.beta-modal-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.beta-modal-actions .btn { flex: 1; min-width: 140px; }

.beta-modal-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}
.beta-modal-link:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 540px) {
  .beta-modal { padding: 28px 22px 26px; clip-path: none; border-left-width: 4px; }
  .beta-modal h2 { font-size: 16px; }
  .beta-modal-body { font-size: 13.5px; }
  .beta-modal-actions { flex-direction: column; }
  .beta-modal-actions .btn { width: 100%; }
  .beta-modal-link { text-align: center; }
}

/* ============================================================================
   FAQ ACCORDION — LCARS minimal
   ============================================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-item details {
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-left: 3px solid rgba(255, 106, 0, 0.35);
  background: rgba(10, 18, 36, 0.60);
  transition: border-left-color 0.15s;
}
.faq-item details[open] {
  border-left-color: var(--accent);
  background: rgba(10, 18, 36, 0.85);
}

.faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item details[open] summary { color: var(--text); }
.faq-item details[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--text); }

.faq-body {
  padding: 0 18px 18px 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dim);
}
.faq-body a { color: var(--accent); text-decoration: none; }
.faq-body a:hover { text-decoration: underline; }
.faq-body strong { color: var(--text); font-weight: 700; }
.faq-body ul { margin: 8px 0 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.faq-body ul li { padding-left: 16px; position: relative; }
.faq-body ul li::before { content: '▶'; position: absolute; left: 0; font-size: 8px; top: 4px; color: var(--accent); }

/* ============================================================================
   LIGHT MODE — Star Trek Voyager · futuristisch hell · modern
   Toggled via html.light-mode (set by inline script + nav.js)
   ============================================================================ */

html.light-mode {
  color-scheme: light;
}

/* Shared text-safe orange for inline color:var(--legal-accent) usages (legal pages, manage-abo). Dark default falls back to Signal Orange via the var() fallback; light mode swaps to the AA-passing text variant. */
html.light-mode { --legal-accent: #AA4600; }

html.light-mode body {
  --bg-deep:       #d0e6f8;
  --bg-mid:        #ddeefb;
  --bg-surface:    #ecf6ff;
  --text:          #071525;
  --text-dim:      #25437a;
  --muted:         rgba(7,21,37,0.72);
  --muted-2:       rgba(7,21,37,0.50);
  --border:        rgba(170,100,20,0.26);
  --border-strong: rgba(170,100,20,0.52);
  --accent:        #bf5e00;
  --cyan:          #077060;
  --cyan-glow:     rgba(7,112,96,0.22);
  --cyan-soft:     rgba(7,112,96,0.10);
  --success:       #15803d;  /* v47: neon #3dff8f → WCAG-AA dark green on light backgrounds */
  background: linear-gradient(160deg, #c8e4ff 0%, #d4edff 35%, #dff5ff 60%, #cae2f8 100%);
}

/* LCARS grid overlay — crisp Voyager circuit lines */
html.light-mode body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(30,80,160,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,80,160,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Atmosphere backgrounds — visible with light Voyager overlay (NOT hidden) */
html.light-mode .atmosphere { display: block; }
html.light-mode .atmosphere.has-bg-cockpit,
html.light-mode .atmosphere.has-bg-admin {
  background-image:
    linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)),
    url('/static/img/bg-cockpit.jpg?v=e59bff84');
  filter: saturate(0.85) contrast(1.05) brightness(1.08);
}
html.light-mode .atmosphere.has-bg-corridor {
  background-image:
    linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)),
    url('/static/img/bg-corridor.jpg?v=5c93708b');
  filter: saturate(0.85) contrast(1.05) brightness(1.08);
}
html.light-mode .atmosphere.has-bg-portal {
  background-image:
    linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)),
    url('/static/img/bg-portal.jpg?v=6e0ed569');
  filter: saturate(0.85) contrast(1.05) brightness(1.08);
}
html.light-mode .atmosphere.has-bg-tunnel {
  background-image:
    linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)),
    url('/static/img/bg-tunnel.jpg?v=665025ed');
  filter: saturate(0.85) contrast(1.05) brightness(1.08);
}
html.light-mode .atmosphere.has-bg-mascot {
  background-image:
    linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)),
    url('/static/img/bg-mascot.jpg?v=1dd8f54f');
  filter: saturate(0.85) contrast(1.05) brightness(1.08);
}
html.light-mode .atmosphere.has-bg-studio {
  background-image:
    linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)),
    url('/static/img/bg-studio.jpg?v=956b55e1');
  filter: saturate(0.85) contrast(1.05) brightness(1.08);
}
html.light-mode .scan-vertical,
html.light-mode .tf-web-scanline-nav,
html.light-mode .tf-web-scanline-bottom {
  display: block;
  mix-blend-mode: multiply;
  background-image: linear-gradient(90deg,
    transparent 0%,
    rgba(191,94,0,0) 8%,
    rgba(191,94,0,0.35) 30%,
    rgba(191,94,0,0.75) 50%,
    rgba(191,94,0,0.35) 70%,
    rgba(191,94,0,0) 92%,
    transparent 100%);
  background-size: 60% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 0 12px 2px rgba(191,94,0,0.35);
}

/* ── NAV ── */
html.light-mode .top-nav {
  background: rgba(210,232,248,0.97);
  box-shadow: 0 2px 24px rgba(170,100,20,0.18), 0 0 0 1px rgba(170,100,20,0.10) inset;
}
html.light-mode .top-nav::before {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(170,100,20,0.55), 0 0 32px rgba(170,100,20,0.25);
}
html.light-mode .top-nav::after {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 200px, var(--cyan) 300px, transparent 600px);
  box-shadow: 0 0 10px rgba(170,100,20,0.40);
}
html.light-mode .brand-name  { color: var(--accent); }
html.light-mode .brand-version { color: var(--text-dim); }
html.light-mode .brand-logo {
  background-color: rgba(170,100,20,0.10);
  border-color: rgba(170,100,20,0.38);
  color: var(--accent);
  box-shadow: none;
  animation: none;
}
html.light-mode .top-nav .nav-links a { color: var(--text-dim); }
html.light-mode .top-nav .nav-links a:hover {
  color: var(--accent);
  background: rgba(170,100,20,0.08);
  border-color: rgba(170,100,20,0.28);
  text-shadow: none;
}
html.light-mode .top-nav .nav-links a.is-cta {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
html.light-mode .top-nav .nav-links a.is-current,
html.light-mode .lang-toggle a.is-current { color: var(--accent); font-weight: 800; }
html.light-mode .lang-sep { background: rgba(170,100,20,0.30); }
html.light-mode .nav-hamburger {
  border-color: rgba(170,100,20,0.28);
}
html.light-mode .nav-hamburger span { background: var(--accent); }

/* ── HERO (index / main sales page) ── */
html.light-mode .sp-hero-bg {
  opacity: 0.82;
  filter: saturate(0.85) contrast(1.05) brightness(1.08);
}
html.light-mode .sp-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(190,218,248,0.15) 0%,
    rgba(190,218,248,0.08) 30%,
    rgba(190,218,248,0.40) 70%,
    rgba(190,218,248,0.80) 100%
  );
}
html.light-mode .sp-kicker { color: var(--accent); text-shadow: none; }
html.light-mode .sp-h1 { color: var(--text); text-shadow: none; }
html.light-mode .sp-sub { color: var(--muted); }
html.light-mode .sp-chip { color: var(--text-dim); }
html.light-mode .sp-step-circle {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px rgba(170,100,20,0.35);
}
html.light-mode .sp-step { background: rgba(255,255,255,0.88); border-color: rgba(191,94,0,0.16); }
html.light-mode .sp-step-name { color: var(--text); }
html.light-mode .sp-step-by  { color: var(--accent); }
html.light-mode .sp-h2 { color: var(--text); }
html.light-mode .sp-stat-num { color: var(--accent); text-shadow: none; }
html.light-mode .sp-stat-label { color: var(--text-dim); }
html.light-mode .sp-stat-sub { color: var(--muted); }
html.light-mode .sp-cap {
  background: rgba(224,240,255,0.85);
  border-color: rgba(170,100,20,0.12);
}
html.light-mode .sp-cap:hover {
  background: rgba(210,232,250,0.97);
  border-color: rgba(170,100,20,0.26);
}
html.light-mode .sp-cap-icon {
  background: rgba(170,100,20,0.10);
  color: var(--accent);
}
html.light-mode .sp-cap-title { color: var(--text); }
html.light-mode .sp-cap-desc  { color: var(--muted); }

/* ── LP HERO ── */
html.light-mode .lp-hero-bg {
  opacity: 0.80;
  filter: saturate(0.85) contrast(1.05) brightness(1.08);
}
html.light-mode .lp-hero-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(190,218,248,0.12) 0%,
    rgba(190,218,248,0.08) 35%,
    rgba(190,218,248,0.42) 75%,
    rgba(190,218,248,0.85) 100%
  );
}
html.light-mode .lp-hero-h1   { color: var(--text); text-shadow: none; }
html.light-mode .lp-hero-sub  { color: var(--text-dim); }
html.light-mode .lp-hero-tag  { color: var(--accent); }

/* ── STAT BAR ── */
html.light-mode .lp-stat-bar {
  background: rgba(208,228,248,0.98);
  border-top-color:    rgba(170,100,20,0.18);
  border-bottom-color: rgba(170,100,20,0.12);
}
html.light-mode .lp-stat-num  { color: var(--accent); text-shadow: none; }
html.light-mode .lp-stat-label { color: var(--text-dim); }

/* ── PANELS ── */
html.light-mode .panel {
  background: rgba(232,244,255,0.98);
  border-color: rgba(170,100,20,0.18);
  border-left-color: var(--accent);
  filter:
    drop-shadow(-4px 0 12px rgba(170,100,20,0.14))
    drop-shadow(0 4px 28px rgba(5,20,55,0.10));
}
html.light-mode .panel-h {
  background: linear-gradient(90deg,
    rgba(170,100,20,0.12) 0%,
    rgba(170,100,20,0.04) 50%,
    rgba(7,112,96,0.03) 100%);
  border-bottom-color: rgba(170,100,20,0.28);
}
html.light-mode .panel-h .panel-h-title { color: var(--text); }

/* ── CARDS / CONCEPT-CARDS ── */
html.light-mode .lp-card,
html.light-mode .concept-card {
  background: rgba(245,251,255,0.98);
  border-color: rgba(170,100,20,0.16);
}
html.light-mode .lp-card-ico   { color: var(--accent) !important; background: rgba(170,100,20,0.08) !important; border-color: rgba(170,100,20,0.20) !important; }
html.light-mode .lp-card-title { color: var(--text); }
html.light-mode .lp-card-text  { color: var(--muted); }
html.light-mode .lp-card-tag   { color: var(--accent) !important; }
html.light-mode .lp-pipe-num   { background: var(--accent); color: #fff; }
html.light-mode .lp-pipe-title { color: var(--text); }
html.light-mode .lp-pipe-text  { color: var(--muted); }
html.light-mode .lp-pipe-tool  {
  border-color: rgba(170,100,20,0.28);
  color: var(--accent);
  background: rgba(170,100,20,0.07);
}
html.light-mode .lp-pipe-arrow { color: var(--accent); opacity: 0.70; }

/* ── SECTION BACKGROUNDS ── */
html.light-mode .lp-section-alt {
  background: rgba(218,236,252,0.55);
}
html.light-mode .lp-eyebrow { color: var(--accent); }
html.light-mode .lp-h2      { color: var(--text); text-shadow: none; }
html.light-mode .lp-h2-sub  { color: var(--muted); }

/* ── SPLASH CARD ── */
html.light-mode .splash-card {
  background: rgba(250,253,255,0.99);
  border-color: rgba(170,100,20,0.16);
}
html.light-mode .splash-card .splash-line { color: var(--text-dim); }
html.light-mode .splash-card .splash-line strong { color: var(--accent); text-shadow: none; }
html.light-mode .splash-card .splash-fineline { color: var(--cyan); text-shadow: none; }

/* ── FORMS / LICENSE TERMINAL ── */
html.light-mode .license-terminal,
html.light-mode .adm-login,
html.light-mode .recover-wrap .panel {
  background: rgba(250,253,255,0.99);
  border-color: rgba(170,100,20,0.16);
}
html.light-mode input[type=text],
html.light-mode input[type=email],
html.light-mode input[type=password],
html.light-mode textarea,
html.light-mode select {
  background: rgba(245,251,255,0.98);
  border-color: rgba(170,100,20,0.26);
  color: var(--text);
}
html.light-mode input:focus,
html.light-mode textarea:focus,
html.light-mode select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(170,100,20,0.14);
}
html.light-mode .term-prompt { color: var(--text-dim); }
html.light-mode .checkbox-row span { color: var(--text-dim); }
html.light-mode .checkbox-row a { color: var(--accent); }

/* ── BUTTONS ── */
html.light-mode .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #a05000 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(170,100,20,0.35);
}
html.light-mode .btn-ghost {
  border-color: rgba(170,100,20,0.35);
  color: var(--accent);
}
html.light-mode .btn-ghost:hover {
  background: rgba(170,100,20,0.08);
}

/* ── REQ CHIPS ── */
html.light-mode .req-chip {
  background: rgba(245,251,255,0.97);
  border-color: rgba(170,100,20,0.18);
}
html.light-mode .chip-label { color: var(--text); }
html.light-mode .chip-meta  { color: var(--text-dim); }
html.light-mode .chip-icon  { color: var(--accent); }

/* ── FAQ / ACCORDION ── */
html.light-mode .faq-item,
html.light-mode .acc-item {
  background: rgba(245,251,255,0.97);
  border-color: rgba(170,100,20,0.14);
}
html.light-mode summary      { color: var(--text); }
html.light-mode .faq-body    { color: var(--text-dim); }
html.light-mode .faq-body strong { color: var(--text); }
html.light-mode .faq-body a  { color: var(--accent); }

/* ── COMPARISON TABLE ── */
html.light-mode .sp-cmp-grid > div {
  background: rgba(245,251,255,0.97);
  border-color: rgba(170,100,20,0.14);
}
html.light-mode .sp-cmp-grid > div:first-child {
  background: rgba(170,100,20,0.10);
  border-color: rgba(170,100,20,0.30);
}

/* ── LEGAL PAGES ── */
html.light-mode .legal { color: var(--text); }
html.light-mode .legal h1, html.light-mode .legal h2 { color: var(--text); }
html.light-mode .legal p, html.light-mode .legal li { color: var(--text-dim); }
html.light-mode .legal a { color: var(--accent); }
html.light-mode .legal-eyebrow { color: var(--accent); }
html.light-mode .legal-footer a { color: var(--accent); }
html.light-mode hr { border-color: rgba(170,100,20,0.15); }

/* ── INSTALL PAGE ── */
html.light-mode .warn-box,
html.light-mode .warn-card,
html.light-mode .warn-quote {
  background: rgba(255,244,220,0.95);
  border-color: rgba(170,100,20,0.32);
}
html.light-mode .content { color: var(--text); }

/* ── DOWNLOAD PAGE ── */
html.light-mode .dl-content { color: var(--text); }
html.light-mode .section-label { color: var(--accent); }

/* ── FOOTER ── */
html.light-mode .site-footer,
html.light-mode footer {
  background: rgba(248,252,255,0.99) !important;
  border-top-color: rgba(170,100,20,0.14);
  color: var(--text-dim);
}
html.light-mode .site-footer a { color: var(--accent); }

/* ── DIVIDERS ── */
html.light-mode .sp-divider {
  background: linear-gradient(90deg, transparent, rgba(170,100,20,0.18), transparent);
}

/* ── MOBILE NAV IN LIGHT MODE ── */
@media (max-width: 767px) {
  html.light-mode .top-nav.is-open .nav-links {
    background: rgba(210,230,248,0.99);
    border-top-color: rgba(170,100,20,0.20);
  }
}

/* ============================================================================
   LIGHT MODE — CONTRAST FIXES
   Ensures ≥4.5:1 contrast ratio on all text elements.
   All backgrounds are light; all text must be dark navy / accent orange.
   ============================================================================ */

/* 1. Body and base text */
html.light-mode body { color: #0a1628; }

/* 2. Headings */
html.light-mode h1,
html.light-mode h2,
html.light-mode h3,
html.light-mode h4 { color: #0a1628; }

/* 3. Paragraph and list text */
html.light-mode p,
html.light-mode li { color: #1e3a5f; }

/* 4. Section text elements (sp- and lp- prefixed) */
html.light-mode .sp-h1,
html.light-mode .sp-h2,
html.light-mode .sp-h3 { color: #0a1628; }
html.light-mode .sp-sub,
html.light-mode .sp-lead { color: #1e3a5f; }
html.light-mode .sp-label,
html.light-mode .lp-label { color: #bf5e00; }
html.light-mode .sp-cap-title,
html.light-mode .lp-feature-title { color: #0a1628; }
html.light-mode .sp-cap-body,
html.light-mode .lp-feature-body { color: #1e3a5f; }
html.light-mode .sp-fact-label { color: #bf5e00; }
html.light-mode .sp-fact-value { color: #0a1628; }
html.light-mode .sp-pipeline-label,
html.light-mode .sp-step-title { color: #0a1628; }
html.light-mode .sp-step-body { color: #3a5a80; }
html.light-mode .sp-stat-val { color: #bf5e00; }
html.light-mode .sp-stat-label { color: #1e3a5f; }
html.light-mode .sp-cmp-check { color: #047857; }
html.light-mode .sp-cmp-cross { color: #dc2626; }
html.light-mode .sp-pipeline-phase-label { color: #bf5e00; }

/* 4b. Table headers — global th rule sets rgba(5,11,26,0.80) dark bg (admin style) */
html.light-mode th {
  background: rgba(240,248,255,0.98);
  color: var(--text);
  border-bottom-color: rgba(170,100,20,0.18);
  text-shadow: none;
}

/* 5. Cards and panels */
html.light-mode .card,
html.light-mode .panel,
html.light-mode .hud {
  background: rgba(255,255,255,0.82);
  border-color: rgba(30,80,160,0.18);
  color: #0a1628;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,40,100,0.10), inset 0 1px 0 rgba(255,255,255,0.60);
}
html.light-mode .sp-cap,
html.light-mode .sp-cap-grid .sp-cap {
  background: rgba(255,255,255,0.80);
  border-color: rgba(191,94,0,0.20);
}
html.light-mode .sp-section { background: transparent; }
html.light-mode .sp-pipeline-outer {
  background: rgba(255,255,255,0.60);
  border-color: rgba(30,80,160,0.15);
}

/* 6. Forms and inputs */
html.light-mode input[type="text"],
html.light-mode input[type="email"],
html.light-mode input[type="password"],
html.light-mode select,
html.light-mode textarea {
  background: rgba(255,255,255,0.92);
  border-color: rgba(30,80,160,0.28);
  color: #0a1628;
}
html.light-mode input::placeholder,
html.light-mode textarea::placeholder { color: #7a9abc; }
html.light-mode label,
html.light-mode .term-prompt { color: #1e3a5f; }
html.light-mode .form-group { color: #0a1628; }

/* 7. FAQ */
html.light-mode .sp-faq-item {
  background: rgba(255,255,255,0.80);
  border-color: rgba(30,80,160,0.16);
}
html.light-mode .sp-faq-q { color: #0a1628; }
html.light-mode .sp-faq-a { color: #1e3a5f; }

/* 8. Comparison table / persona grid */
html.light-mode .sp-persona-card {
  background: rgba(255,255,255,0.80);
  border-color: rgba(30,80,160,0.16);
}
html.light-mode .sp-persona-title { color: #0a1628; }
html.light-mode .sp-persona-body { color: #1e3a5f; }
html.light-mode .sp-cmp-grid .sp-cmp-col { background: rgba(255,255,255,0.75); }
html.light-mode .sp-cmp-header { color: #bf5e00; }
html.light-mode .sp-cmp-row {
  color: #1e3a5f;
  border-bottom-color: rgba(30,80,160,0.10);
}

/* 9. Beta deal section */
html.light-mode .sp-beta-deal-title { color: #0a1628; }
html.light-mode .sp-beta-deal-desc { color: #1e3a5f; }
html.light-mode .sp-beta-deal-list li { color: #1e3a5f; }
html.light-mode .sp-beta-deal-pct { color: #bf5e00; }
html.light-mode .sp-beta-deal-pct-sub { color: #3a5a80; }

/* 10. Pipeline steps */
html.light-mode .sp-pipeline-step {
  background: rgba(255,255,255,0.75);
  border-color: rgba(191,94,0,0.20);
}
html.light-mode .sp-step-num { color: rgba(191,94,0,0.55); }
html.light-mode .sp-step-sys { color: #bf5e00; }
html.light-mode .lp-pipeline-step {
  background: rgba(255,255,255,0.75);
  border-color: rgba(191,94,0,0.20);
}
html.light-mode .lp-step-title { color: #0a1628; }
html.light-mode .lp-step-body { color: #3a5a80; }
html.light-mode .lp-step-badge {
  background: rgba(191,94,0,0.12);
  color: #bf5e00;
  border-color: rgba(191,94,0,0.25);
}

/* 11. Stats section */
html.light-mode .sp-stat { border-color: rgba(30,80,160,0.14); }
html.light-mode .sp-stat-val { color: #bf5e00; }
html.light-mode .sp-stat-label { color: #3a5a80; }
html.light-mode .sp-stat-source { color: #7a9abc; }

/* 12. Dividers and misc */
html.light-mode .sp-divider { border-color: rgba(30,80,160,0.14); }
html.light-mode .text-muted { color: #5a7a9a; }
html.light-mode .text-dim { color: #3a5a80; }
html.light-mode .text-accent { color: #bf5e00; }
html.light-mode code {
  background: rgba(56,160,240,0.10);
  color: #0369a1;
  border-color: rgba(56,160,240,0.22);
}
html.light-mode .license-result {
  background: rgba(255,255,255,0.90);
  color: #0369a1;
  border-color: rgba(56,160,240,0.28);
}
html.light-mode .msg-error {
  background: rgba(220,38,38,0.08);
  border-color: rgba(220,38,38,0.30);
  color: #b91c1c;
}
html.light-mode .msg-success {
  background: rgba(5,150,105,0.08);
  border-color: rgba(5,150,105,0.30);
  color: #047857;
}
html.light-mode .msg-info {
  background: rgba(56,160,240,0.08);
  border-color: rgba(56,160,240,0.28);
  color: #0369a1;
}
html.light-mode .beta-banner {
  background: rgba(191,94,0,0.10);
  border-bottom-color: rgba(191,94,0,0.28);
  color: #7c3000;
}
html.light-mode .beta-banner a { color: #bf5e00; }
html.light-mode .sticky-cta {
  background: rgba(255,255,255,0.90);
  border-color: rgba(30,80,160,0.18);
}
html.light-mode .sticky-cta-text { color: #3a5a80; }
html.light-mode .sticky-cta-text strong { color: #0a1628; }

/* 13. LP page sections (ki-*.php pages) */
html.light-mode .lp-hero-inner h1 { color: #0a1628; }
html.light-mode .lp-hero-inner .lp-hero-sub { color: #1e3a5f; }
html.light-mode .lp-section { color: #0a1628; }
html.light-mode .lp-section-title { color: #0a1628; }
html.light-mode .lp-section-sub { color: #1e3a5f; }

/* ─ Simple 3-Phase Pipeline ─────────────────────────────────── */
.tf-phases {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 32px 0;
  flex-wrap: wrap;
}
.tf-phase {
  flex: 1;
  min-width: 180px;
  background: rgba(255,149,47,0.05);
  border: 1px solid rgba(255,149,47,0.20);
  border-radius: 6px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tf-phase-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255,149,47,0.45);
  padding: 0 10px;
  flex-shrink: 0;
}
.tf-phase-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(255,149,47,0.85);
  font-family: var(--font-mono);
}
.tf-phase-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.tf-phase-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
}
.tf-phase-tools {
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding-top: 8px;
  border-top: 1px solid rgba(255,149,47,0.14);
}
html.light-mode .tf-phase {
  background: rgba(255,255,255,0.78);
  border-color: rgba(191,94,0,0.22);
}
html.light-mode .tf-phase-name { color: #0a1628; }
html.light-mode .tf-phase-desc { color: #3a5a80; }
html.light-mode .tf-phase-tools { color: #bf5e00; border-top-color: rgba(191,94,0,0.15); }
html.light-mode .tf-phase-arrow { color: rgba(191,94,0,0.40); }
html.light-mode .tf-phase-num { color: #9a4900; }
@media (max-width: 700px) {
  .tf-phases { flex-direction: column; }
  .tf-phase-arrow { transform: rotate(90deg); padding: 6px 0; align-self: center; }
}

/* ── Pipeline Flow Diagram ── */
.tf-flow-diagram {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 0 0 0;
  overflow: hidden;
  padding: 4px 0;
}
.tf-flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 110px;
  padding: 16px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,149,47,0.18);
  background: rgba(255,255,255,0.05);
  text-align: center;
}
.tf-flow-node svg { color: var(--accent); opacity: 0.85; }
.tf-flow-node span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.2;
  font-family: var(--font-ui);
}
.tf-flow-node small {
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.3;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.tf-flow-input, .tf-flow-output {
  border-color: rgba(61,255,143,0.22);
  background: rgba(61,255,143,0.04);
}
.tf-flow-input svg, .tf-flow-output svg { color: var(--cyan); }
.tf-flow-arrow {
  color: rgba(255,149,47,0.35);
  padding: 0 4px;
  flex-shrink: 0;
  align-self: center;
  display: flex;
  align-items: center;
}
html.light-mode .tf-flow-node {
  background: rgba(248,253,255,0.97);
  border-color: rgba(191,94,0,0.16);
}
html.light-mode .tf-flow-input,
html.light-mode .tf-flow-output {
  background: rgba(240,255,250,0.96);
  border-color: rgba(7,112,96,0.20);
}
html.light-mode .tf-flow-arrow { color: rgba(191,94,0,0.30); }
@media (max-width: 860px) {
  .tf-flow-diagram { gap: 0; }
  .tf-flow-node small { display: none; }
  .tf-flow-node { padding: 12px 6px; }
  .tf-flow-node span { font-size: 10px; }
}
@media (max-width: 767px) {
  .tf-flow-diagram { display: none; }
  .tf-flow-list-mobile { display: block; }
}
/* ── Etappen pipeline steps (features page) ── */
.tf-etappe {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,149,47,0.08);
}
.tf-etappe:last-child { border-bottom: none; }
.tf-etappe-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255,149,47,0.10);
  border: 1px solid rgba(255,149,47,0.20);
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 44px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.tf-etappe-body { flex: 1; }
.tf-etappe-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tf-etappe-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(255,149,47,0.12);
  border-radius: 4px;
  padding: 3px 8px;
  flex-shrink: 0;
}
.tf-etappe-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
html.light-mode .tf-etappe { border-bottom-color: rgba(191,94,0,0.08); }
html.light-mode .tf-etappe-num { background: rgba(191,94,0,0.08); border-color: rgba(191,94,0,0.20); }
html.light-mode .tf-etappe-badge { background: rgba(191,94,0,0.10); }
@media (max-width: 560px) {
  .tf-etappe { gap: 14px; }
  .tf-etappe-num { padding: 5px 8px; min-width: 36px; }
}

.tf-flow-list-mobile {
  display: none;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: flow-step;
}
.tf-flow-list-mobile li {
  counter-increment: flow-step;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,149,47,0.12);
  font-size: 14px;
}
.tf-flow-list-mobile li:last-child { border-bottom: none; }
.tf-flow-list-mobile li::before {
  content: counter(flow-step);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,149,47,0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.tf-flow-list-mobile li span { display: block; color: var(--fg); font-weight: 600; }
.tf-flow-list-mobile li small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
html.light-mode .tf-flow-list-mobile li::before { background: rgba(191,94,0,0.12); }

/* ── Static gradient connector between flow diagram and phases ── */
.tf-progress-track {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,149,47,0.55) 30%, rgba(255,149,47,0.55) 70%, transparent 100%);
  margin: 24px 0 32px;
  position: relative;
}
.tf-progress-fill {
  display: none;
}
html.light-mode .tf-progress-track {
  background: linear-gradient(90deg, transparent 0%, rgba(191,94,0,0.45) 30%, rgba(191,94,0,0.45) 70%, transparent 100%);
}

/* ── Marketing-blue accent override (fuer-marketing.php) ── */
.marketing-page body,
.marketing-page html.light-mode body {
  --accent: #2979e0;
  --border: rgba(41,121,224,0.22);
  --border-strong: rgba(41,121,224,0.50);
  --cyan: #0a5bbf;
  --cyan-glow: rgba(41,121,224,0.20);
  --cyan-soft: rgba(41,121,224,0.08);
}
.marketing-page { --accent: #2979e0; --border: rgba(41,121,224,0.22); --border-strong: rgba(41,121,224,0.50); }

/* ══ MISSING LIGHT-MODE OVERRIDES — Global Audit Fix ══════════════════ */

/* Hero card (install/license page) */
html.light-mode .hero-card {
  background: rgba(255,255,255,0.93) !important;
  border-color: rgba(170,100,20,0.28);
  box-shadow: 0 4px 24px rgba(0,40,100,0.09);
  filter: none;
}
html.light-mode .hero-title { color: #0a1628; }
html.light-mode .hero-content { color: #1e3a5f; }

/* Flow steps (license → download 2-step UI) */
html.light-mode .flow-steps {
  background: rgba(255,255,255,0.90);
  border-color: rgba(170,100,20,0.22);
}
html.light-mode .flow-step { color: #1e3a5f; }
html.light-mode .flow-step.is-active { background: rgba(170,100,20,0.06); }
html.light-mode .flow-step-num { color: #bf5e00; }
html.light-mode .flow-step-label { color: #0a1628; }
html.light-mode .flow-step-sep { background: rgba(170,100,20,0.28); }

/* Modal backdrop */
html.light-mode .modal-bg {
  background: rgba(160,200,240,0.65);
  backdrop-filter: blur(8px);
}

/* Modal popup */
html.light-mode .modal {
  background: rgba(255,255,255,0.97);
  border-color: rgba(170,100,20,0.32);
  box-shadow: 0 20px 60px rgba(0,30,80,0.16), -5px 0 24px rgba(170,100,20,0.12);
  color: #0a1628;
}
html.light-mode .modal h2,
html.light-mode .modal h3 { color: #0a1628; }
html.light-mode .modal p,
html.light-mode .modal li { color: #1e3a5f; }
html.light-mode .modal .modal-close { color: #bf5e00; }
html.light-mode .modal-title { color: #0a1628; }

/* Cookie banner */
html.light-mode .cookie-banner {
  background: rgba(255,255,255,0.97);
  border-color: rgba(170,100,20,0.32);
  box-shadow: 0 4px 24px rgba(0,30,80,0.10);
}
html.light-mode .cookie-banner-heading { color: #bf5e00; text-shadow: none; }
html.light-mode .cookie-banner p,
html.light-mode .cookie-banner span { color: #1e3a5f; }
html.light-mode .cookie-banner a { color: #bf5e00; }

/* Beta modal (registration popup) */
html.light-mode .beta-modal {
  background: rgba(255,255,255,0.97);
  border-color: rgba(170,100,20,0.35);
  box-shadow: 0 20px 60px rgba(0,30,80,0.16);
}
html.light-mode .beta-modal-eyebrow { color: #077060; text-shadow: none; }
html.light-mode .beta-modal-eyebrow::after { background: linear-gradient(90deg, rgba(7,112,96,0.35), transparent); }

/* LP section dark → warm light grey */
html.light-mode .lp-section-dark {
  background: rgba(210,228,248,0.75);
}

/* Mascot avatar background */
html.light-mode .mascot {
  background-color: rgba(200,224,248,0.60);
}

/* Sticky CTA bar (features page) */
html.light-mode .sticky-cta {
  background: rgba(248,252,255,0.97);
  border-top-color: rgba(170,100,20,0.22);
  backdrop-filter: blur(16px);
}
html.light-mode .sticky-cta-text { color: #1e3a5f; }
html.light-mode .sticky-cta-text strong { color: #0a1628; }

/* HUD hero (install / license page dark background) */
html.light-mode .hud-hero {
  background: transparent;
}

/* Req chips / install requirements */
html.light-mode .req-grid { color: #0a1628; }
html.light-mode .req-chip {
  background: rgba(220,238,255,0.90);
  border-color: rgba(170,100,20,0.18);
}
html.light-mode .chip-label { color: #0a1628; }
html.light-mode .chip-meta  { color: #3a5a80; }

/* Download page — dl-card or download card */
html.light-mode .dl-card,
html.light-mode .download-card {
  background: rgba(255,255,255,0.90);
  border-color: rgba(170,100,20,0.20);
  color: #0a1628;
}
html.light-mode .dl-title { color: #0a1628; }
html.light-mode .dl-note  { color: #3a5a80; }

/* Stat band on features page */
html.light-mode .sp-stat-band {
  background: rgba(210,232,248,0.55);
  border-top-color: rgba(170,100,20,0.14);
  border-bottom-color: rgba(170,100,20,0.14);
}
html.light-mode .sp-stat { border-right-color: rgba(170,100,20,0.12); }

/* CTA section bg image */
html.light-mode .sp-cta-bg { opacity: 0.10; filter: saturate(0.85) contrast(1.05) brightness(1.08); }
html.light-mode .sp-cta-h2 { color: #0a1628; }
html.light-mode .sp-cta-h2 em { color: #bf5e00; }
html.light-mode .sp-cta-sub { color: #1e3a5f; }

/* Features hero overlay → much lighter for light mode */
html.light-mode .sp-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(190,218,248,0.12) 0%,
    rgba(190,218,248,0.06) 30%,
    rgba(190,218,248,0.40) 70%,
    rgba(190,218,248,0.82) 100%
  );
}
html.light-mode .sp-hero-tag { color: #0c2040; text-shadow: none; }
html.light-mode .sp-hero-sub { color: #1e3a60; }

/* Fact section */
html.light-mode .sp-fact { border-top-color: rgba(170,100,20,0.28); }
html.light-mode .sp-fact-step { color: #9a4900; opacity: 1; }
html.light-mode .sp-fact-title { color: #0a1628; }
html.light-mode .sp-fact-desc { color: #1e3a60; }
html.light-mode .sp-resolution-text { color: #0a1628; }
html.light-mode .sp-resolution-text strong { color: #bf5e00; }

/* Capabilities grid */
html.light-mode .sp-cap {
  background: rgba(255,255,255,0.90) !important;
  border-color: rgba(30,80,160,0.10) !important;
}
html.light-mode .sp-cap:hover {
  background: rgba(228,242,255,0.98) !important;
  border-color: rgba(170,100,20,0.22) !important;
}

/* Comparison grid */
html.light-mode .sp-cmp-col.oth {
  background: rgba(255,255,255,0.72);
  border-color: rgba(30,80,160,0.12);
}
html.light-mode .sp-cmp-head.oth { color: #3a5a80; }
html.light-mode .sp-cmp-note { color: #4a6e96; }
html.light-mode .sp-cmp-row { color: #1e3a60; border-bottom-color: rgba(30,80,160,0.08); }
html.light-mode .sp-mk.no  { color: #94a3b8; }
html.light-mode .sp-mk.par { color: #b45309; }

/* Persona cards */
html.light-mode .sp-persona {
  background: rgba(255,255,255,0.90);
  border-color: rgba(170,100,20,0.16);
}
html.light-mode .sp-persona-title { color: #0a1628; }
html.light-mode .sp-persona-hook {
  color: #bf5e00;
  border-left-color: rgba(170,100,20,0.42);
}
html.light-mode .sp-persona-desc { color: #1e3a60; }
html.light-mode .sp-persona-list li { color: #1e3a60; }
html.light-mode .sp-persona-tag { color: #9a4900; }
html.light-mode .sp-persona::before { background: linear-gradient(90deg, #bf5e00, transparent); }

/* Recover page / forms */
html.light-mode .recover-wrap { color: #0a1628; }
html.light-mode .recover-title { color: #0a1628; }
html.light-mode .recover-sub { color: #1e3a5f; }

/* Install page extra items */
html.light-mode .warn-box h3,
html.light-mode .warn-card h3,
html.light-mode .warn-quote { color: #0a1628; }
html.light-mode .warn-box p,
html.light-mode .warn-card p { color: #1e3a5f; }

/* ueber-uns / about page */
html.light-mode .about-section { color: #0a1628; }
html.light-mode .about-h { color: #0a1628; }
html.light-mode .about-text { color: #1e3a5f; }

/* Downloads page */
html.light-mode .download-section h2 { color: #0a1628; }
html.light-mode .download-section p { color: #1e3a5f; }
html.light-mode .platform-card {
  background: rgba(255,255,255,0.88);
  border-color: rgba(170,100,20,0.20);
}
html.light-mode .platform-card h3 { color: #0a1628; }
html.light-mode .platform-card p { color: #1e3a5f; }

/* Navigation links in light mode — stronger contrast */
html.light-mode .top-nav .nav-links a { color: #25437a; font-weight: 600; }
html.light-mode .top-nav .nav-links a:hover { color: #bf5e00; }
html.light-mode .top-nav .nav-links a.is-cta { color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   LIGHT MODE — COMPREHENSIVE DEEP FIX (v2)
   Fixes: CSS variable gap, opaque hero overlays, all missing dark-bg elements.
   Uses !important on hero overlays to beat inline <style> blocks in PHP pages.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. CSS VARIABLE GAP: add missing --bg-card / --bg-card-alt ── */
/* These were defined only in :root (dark) — never overridden for light mode.
   Any element using var(--bg-card) would appear dark. Fix: re-declare on body. */
html.light-mode body {
  --bg-card:     rgba(220,238,255,0.90);
  --bg-card-alt: rgba(210,230,252,0.94);
  --bg:          #c8e4ff;
  --bg-deep:     #d0e6f8;
  --bg-mid:      #ddeefb;
  --bg-surface:  #ecf6ff;
}

/* ── 2. HERO BACKGROUND IMAGES — clearly visible, light mode treatment ── */
/* Images are brightened so they look light/airy (not cinematic-dark).
   Overlay is just a subtle dark top-vignette for text contrast.
   Text is white + strong shadow → readable over any photo. */

html.light-mode .sp-hero-bg {
  display: block !important;
  visibility: visible !important;
  opacity: 1.0 !important;
  filter: saturate(0.85) brightness(1.35) !important;
  background-color: transparent !important;
}
html.light-mode .sp-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,5,20,0.42) 0%,
    rgba(0,5,20,0.22) 40%,
    rgba(0,5,20,0.08) 75%,
    rgba(0,5,20,0.02) 100%
  ) !important;
}

html.light-mode .lp-hero-bg {
  display: block !important;
  visibility: visible !important;
  opacity: 1.0 !important;
  filter: saturate(0.85) brightness(1.35) !important;
  background-color: transparent !important;
}
html.light-mode .lp-hero-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(0,5,20,0.42) 0%,
    rgba(0,5,20,0.22) 40%,
    rgba(0,5,20,0.08) 75%,
    rgba(0,5,20,0.02) 100%
  ) !important;
}

/* HUD hero (install page) */
html.light-mode .hud-bg {
  display: block !important;
  visibility: visible !important;
  opacity: 1.0 !important;
  filter: saturate(0.85) brightness(1.35) !important;
  background-color: transparent !important;
}
html.light-mode .hud-bg::after {
  background: linear-gradient(
    180deg,
    rgba(0,5,20,0.45) 0%,
    rgba(0,5,20,0.25) 45%,
    rgba(0,5,20,0.08) 100%
  ) !important;
}
html.light-mode .hud-scanlines,
html.light-mode .hud-scanbeam { display: none; }
html.light-mode .htb-a { background: #bf5e00; box-shadow: 0 0 10px rgba(191,94,0,0.45); }
html.light-mode .htb-b, html.light-mode .htb-b2,
html.light-mode .htb-d { background: rgba(191,94,0,0.45); box-shadow: none; }
html.light-mode .htb-c { background: #077060; box-shadow: 0 0 8px rgba(7,112,96,0.35); }

/* ── 3. ATMOSPHERE BACKGROUNDS — explicitly transparent in sections ── */
/* Sections inherit the body light-blue gradient — no extra dark tinting */
html.light-mode .sp-section,
html.light-mode .sp-section-wide { background: transparent; }

/* ── 4. INPUT FOCUS STATE — was rgba(5,11,26,0.85) = very dark ── */
html.light-mode input:focus,
html.light-mode textarea:focus,
html.light-mode select:focus {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 0 0 3px rgba(191,94,0,0.16), 0 0 12px rgba(191,94,0,0.10) !important;
}

/* ── 5. STEP ELEMENTS (install / pipeline pages) ── */
html.light-mode .step {
  background: rgba(220,238,255,0.82);
  border-color: rgba(170,100,20,0.18);
}
html.light-mode .step .step-num {
  background: rgba(200,222,248,0.90);
  border-color: rgba(170,100,20,0.22);
  color: #1e3a5f;
}
html.light-mode .step .step-label { color: #25437a; }
html.light-mode .step.is-done {
  background: rgba(7,112,96,0.07);
  border-color: rgba(7,112,96,0.28);
}
html.light-mode .step.is-done .step-num {
  background: rgba(7,112,96,0.14);
  border-color: rgba(7,112,96,0.38);
  color: #047857;
  box-shadow: none;
}

/* ── 6. HUD STATUS BAR (install page bottom bar) ── */
html.light-mode .hud-statusbar {
  background: rgba(210,232,250,0.97) !important;
  border-top: 1px solid rgba(170,100,20,0.18) !important;
  color: rgba(7,21,37,0.55);
}
html.light-mode .hud-sb-item { color: rgba(7,21,37,0.48); }
html.light-mode .hud-sb-sep { background: rgba(170,100,20,0.22); }
html.light-mode .hud-sb-item.is-warn,
html.light-mode .hud-sb-item.is-accent { color: #bf5e00; }

/* HUD brackets and decorative LCARS elements */
html.light-mode .hud-bracket {
  border-color: rgba(170,100,20,0.35);
  color: rgba(170,100,20,0.45);
}
html.light-mode .hud-id,
html.light-mode .h-id,
html.light-mode .hud-label {
  color: #077060;
  border-color: rgba(7,112,96,0.28);
  background: rgba(7,112,96,0.07);
  box-shadow: none;
  text-shadow: none;
}
html.light-mode .hud-coord { color: rgba(7,21,37,0.45); }

/* ── 7. TOOL FOOTER (tf-ui app page) ── */
html.light-mode .tool-footer {
  background: rgba(210,230,250,0.92) !important;
  border-color: rgba(170,100,20,0.22) !important;
  border-top-color: rgba(170,100,20,0.30) !important;
  box-shadow: none !important;
  color: #3a5a80;
}
html.light-mode .tool-footer .fp { color: #3a5a80; }
html.light-mode .tool-footer .fp .fp-key { color: #077060; opacity: 1; }
html.light-mode .tool-footer .fp .fp-val { color: #25437a; }

/* ── 8. MISC TOOL-PAGE ELEMENTS ── */
/* Status/readout tags (system info, monospace data items) */
html.light-mode .status-tag,
html.light-mode .sys-tag,
html.light-mode .lic-req-notice {
  background: rgba(7,112,96,0.07);
  border-color: rgba(7,112,96,0.26);
  color: #047857;
}
html.light-mode .lic-req-notice strong { color: #bf5e00; }

html.light-mode .legal .system-info {
  background: rgba(210,230,248,0.82);
  border-color: rgba(7,112,96,0.24);
  color: #25437a;
}

/* Concept card tags (tf-ui) */
html.light-mode .concept-card .cc-tags .tag {
  background: rgba(218,236,252,0.82);
  border-color: rgba(170,100,20,0.18);
  color: #25437a;
}

/* Panel-H (admin/panel headers visible on tf-ui) */
html.light-mode .panel-h {
  background: linear-gradient(90deg, rgba(191,94,0,0.10) 0%, rgba(191,94,0,0.03) 100%);
  border-bottom-color: rgba(191,94,0,0.30);
  box-shadow: none;
}
html.light-mode .panel-h .h-title {
  color: #0a1628;
  text-shadow: none;
}
html.light-mode .panel-h .h-meta { color: #077060; opacity: 1; }

/* Section label (mono label above panels) */
html.light-mode .section-label { color: #077060; text-shadow: none; }
html.light-mode .section-label::before,
html.light-mode .section-label::after { background: rgba(7,112,96,0.22); }

/* ── 9. SP-HERO / LP-HERO TEXT — white with shadow on dark-vignette-over-photo ── */
/* Hero images are now clearly visible with a dark vignette overlay.
   Text must be white/light with text-shadow for maximum contrast. */
html.light-mode .sp-hero-inner h1,
html.light-mode .sp-h1 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.95) !important;
}
html.light-mode .sp-hero-tag {
  color: rgba(255,255,255,0.92) !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.80) !important;
}
html.light-mode .sp-hero-sub {
  color: rgba(255,255,255,0.88) !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.80) !important;
}
html.light-mode .sp-kicker {
  color: #FFB763 !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.70) !important;
}
html.light-mode .sp-chip { color: rgba(255,255,255,0.80) !important; }

html.light-mode .lp-hero-h1 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.95) !important;
}
html.light-mode .lp-hero-sub {
  color: rgba(255,255,255,0.88) !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.80) !important;
}
html.light-mode .lp-hero-tag {
  color: #FFB763 !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.70) !important;
}

/* HUD hero text (install page) */
html.light-mode .hero-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.95) !important;
}
html.light-mode .hero-content { color: rgba(255,255,255,0.88) !important; }
html.light-mode .hero-sub {
  color: rgba(255,255,255,0.85) !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.80) !important;
}
html.light-mode .hud-hero h1,
html.light-mode .hud-hero h2 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.95) !important;
}
html.light-mode .hud-hero p { color: rgba(255,255,255,0.88) !important; }

/* ── 10. STAT BAND — needs solid background so text is readable ── */
html.light-mode .sp-stat-band {
  background: rgba(210,232,250,0.96) !important;
  border-top: 1px solid rgba(170,100,20,0.16) !important;
  border-bottom: 1px solid rgba(170,100,20,0.16) !important;
}
html.light-mode .sp-stat-num { color: #bf5e00 !important; text-shadow: none !important; }
html.light-mode .sp-stat-label { color: #1e3a5f !important; }
html.light-mode .sp-stat-sub { color: #3a5a80 !important; }

/* ── 11. SP-SECTION solid backgrounds (alternating) ── */
/* Without explicit background, sections inherit the body gradient.
   When bg-images bleed through, alternating sections need a solid fill. */
html.light-mode .sp-section-alt,
html.light-mode section.sp-alt { background: rgba(206,230,252,0.55); }

/* ── 12. FOOTER text ── */
html.light-mode .site-footer,
html.light-mode footer {
  color: #1e3a5f;
}
html.light-mode footer p,
html.light-mode footer small,
html.light-mode footer span { color: #3a5a80; }
html.light-mode .footer-copy { color: #3a5a80; }

/* ── 13. BETA BANNER — strong dark orange text, very light bg ── */
html.light-mode .beta-banner {
  background: rgba(191,94,0,0.09) !important;
  border-bottom-color: rgba(191,94,0,0.22) !important;
  color: #7c3000 !important;
}

/* ── 14. MOBILE NAV DROPDOWN — desktop breakpoint too (not just ≤767px) ── */
html.light-mode .top-nav.is-open .nav-links {
  background: rgba(210,230,248,0.99);
  border-bottom-color: rgba(170,100,20,0.22);
  box-shadow: 0 8px 32px rgba(0,40,100,0.14);
}

/* ── 15. SP-HERO CHIPS background tag badge ── */
html.light-mode .sp-kicker {
  border-color: rgba(191,94,0,0.30) !important;
  background: rgba(191,94,0,0.07) !important;
}

/* ── 16. ICON GLOWS — remove neon glow effects in light mode ── */
html.light-mode .sp-stat-num,
html.light-mode .sp-cap-icon,
html.light-mode .lp-pipe-num { text-shadow: none; box-shadow: none; }
html.light-mode .sp-step-circle { box-shadow: 0 2px 10px rgba(191,94,0,0.25); }

/* ── 17. LIC-REQ / WARN BOXES ── */
html.light-mode .warn-box,
html.light-mode .warn-card {
  background: rgba(255,244,218,0.96) !important;
  border-color: rgba(191,94,0,0.32) !important;
  color: #5a2d00;
}
html.light-mode .warn-box h3,
html.light-mode .warn-card h3 { color: #3a1800 !important; }
html.light-mode .warn-box p,
html.light-mode .warn-card p { color: #5a2d00 !important; }

/* ── ADDITIONAL LIGHT MODE FIXES — remaining dark inline backgrounds ── */
/* sticky-cta bar (index.php line 712) */
html.light-mode .sticky-cta {
  background: rgba(240,248,255,0.98) !important;
  border-top-color: rgba(191,94,0,0.22) !important;
}
html.light-mode .sticky-cta-text { color: #1e3a5f !important; }

/* any remaining dark section containers */
html.light-mode .sp-section,
html.light-mode .sp-section-inner,
html.light-mode section.sp-section {
  color: #071525;
}

/* ── INLINE STYLE OVERRIDES — beat inline <style> blocks in PHP pages ── */
/* These elements have hardcoded dark backgrounds in inline page CSS */
html.light-mode .sp-cap { background: rgba(246,251,255,0.98) !important; border-color: rgba(30,80,160,0.08) !important; }
html.light-mode .sp-cap:hover { background: rgba(252,254,255,1.0) !important; border-color: rgba(191,94,0,0.22) !important; }
html.light-mode .sp-persona { background: rgba(246,251,255,0.98) !important; border-color: rgba(191,94,0,0.12) !important; }
html.light-mode .sp-persona-title { color: #071525 !important; }
html.light-mode .sp-persona-hook { color: #bf5e00 !important; }
html.light-mode .sp-persona-desc { color: #1e3a5f !important; }
html.light-mode .sp-persona-list li { color: #1e3a5f !important; }
html.light-mode .sp-persona-tag { color: #9a4900 !important; }
html.light-mode .sp-cmp-col.oth { background: rgba(220,236,252,0.80) !important; border-color: rgba(30,80,160,0.14) !important; }
html.light-mode .sp-cmp-head.oth { color: #3a5a80 !important; }
html.light-mode .sp-cmp-note { color: #4a6e96 !important; }
html.light-mode .sp-cmp-row { color: #1e3a5f !important; border-bottom-color: rgba(30,80,160,0.08) !important; }
html.light-mode .sp-mk.no { color: #94a3b8 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   LIGHT MODE — WHITE FILTER + LIGHTER GRAYS (v3)
   1. Body gradient → near-white (not medium blue)
   2. Section alt/dark backgrounds → very light
   3. Hero overlays → white fog (instead of dark vignette)
   4. Hero text → dark navy (readable over white-fog image)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. MUCH LIGHTER BODY GRADIENT ── */
html.light-mode body {
  background: linear-gradient(160deg, #edf6ff 0%, #f2f9ff 35%, #f8fcff 60%, #ecf6ff 100%) !important;
}

/* ── 2. LIGHTER SECTION BACKGROUNDS ── */
html.light-mode .lp-section-dark,
html.light-mode .sp-section-dark {
  background: rgba(242,249,255,0.97) !important;
}
html.light-mode .lp-section-alt {
  background: rgba(245,251,255,0.82) !important;
  border-top-color: rgba(170,100,20,0.08) !important;
  border-bottom-color: rgba(170,100,20,0.08) !important;
}
html.light-mode .sp-section-alt,
html.light-mode section.sp-alt {
  background: rgba(245,251,255,0.82) !important;
}

/* ── 3. HERO WHITE-FOG FILTER — overlays become light, not dark ── */
/* The images are already brightened (brightness 1.35). Adding a white fog
   overlay on top makes them look airy and light-mode-native. */

html.light-mode .sp-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.38) 0%,
    rgba(255,255,255,0.22) 35%,
    rgba(255,255,255,0.52) 70%,
    rgba(255,255,255,0.90) 100%
  ) !important;
}
html.light-mode .lp-hero-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.38) 0%,
    rgba(255,255,255,0.22) 35%,
    rgba(255,255,255,0.52) 70%,
    rgba(255,255,255,0.90) 100%
  ) !important;
}
html.light-mode .hud-bg::after {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.20) 45%,
    rgba(255,255,255,0.78) 100%
  ) !important;
}

/* ── 4. HERO TEXT — dark navy over white-fog image ── */
/* White fog makes the image bright → text must be dark, not white. */

html.light-mode .sp-hero-inner h1,
html.light-mode .sp-h1 {
  color: #071525 !important;
  text-shadow: 0 1px 6px rgba(255,255,255,0.85), 0 2px 14px rgba(255,255,255,0.60) !important;
}
html.light-mode .sp-hero-tag {
  color: #bf5e00 !important;
  text-shadow: 0 1px 4px rgba(255,255,255,0.80) !important;
}
html.light-mode .sp-hero-sub {
  color: #1e3a5f !important;
  text-shadow: 0 1px 4px rgba(255,255,255,0.80) !important;
}
html.light-mode .sp-kicker {
  color: #bf5e00 !important;
  text-shadow: none !important;
}
html.light-mode .sp-chip {
  color: rgba(7,21,37,0.72) !important;
}

html.light-mode .lp-hero-h1 {
  color: #071525 !important;
  text-shadow: 0 1px 6px rgba(255,255,255,0.85), 0 2px 14px rgba(255,255,255,0.60) !important;
}
html.light-mode .lp-hero-sub {
  color: #1e3a5f !important;
  text-shadow: 0 1px 4px rgba(255,255,255,0.80) !important;
}
html.light-mode .lp-hero-tag {
  color: #bf5e00 !important;
  text-shadow: none !important;
}

html.light-mode .hero-title {
  color: #071525 !important;
  text-shadow: 0 1px 6px rgba(255,255,255,0.85) !important;
}
html.light-mode .hero-content { color: #1e3a5f !important; }
html.light-mode .hero-sub {
  color: #25437a !important;
  text-shadow: 0 1px 4px rgba(255,255,255,0.80) !important;
}
html.light-mode .hud-hero h1,
html.light-mode .hud-hero h2 {
  color: #071525 !important;
  text-shadow: 0 1px 6px rgba(255,255,255,0.85) !important;
}
html.light-mode .hud-hero p { color: #1e3a5f !important; }

/* ── Stat icon — light mode ── */
html.light-mode .sp-stat-icon {
  background: rgba(191,94,0,0.08);
  border-color: rgba(191,94,0,0.22);
  color: #bf5e00;
}

/* ── LLM icon container — light mode ── */
html.light-mode .llm-icon {
  background: rgba(56,160,240,0.07) !important;
  border-color: rgba(56,160,240,0.22) !important;
  color: #0369a1 !important;
}
html.light-mode .llm-card.featured .llm-icon { color: #bf5e00 !important; border-color: rgba(191,94,0,0.28) !important; background: rgba(191,94,0,0.07) !important; }

/* ── Theme toggle — geometric CSS symbols, no emoji rendering ── */
/* Hide the Unicode character in the span and show a pure geometric via ::before */
.theme-toggle .icon-dark,
.theme-toggle .icon-light {
  font-size: 0 !important;  /* suppress the character itself */
  line-height: 1;
}
.theme-toggle .icon-dark::before {
  content: '◑';   /* CIRCLE WITH RIGHT HALF BLACK — pure geometric */
  font-size: 15px;
  font-family: var(--font-ui);
  line-height: 1;
}
.theme-toggle .icon-light::before {
  content: '◐';   /* CIRCLE WITH LEFT HALF BLACK — pure geometric */
  font-size: 15px;
  font-family: var(--font-ui);
  line-height: 1;
}

/* ── LOGO LIGHT-MODE — explicit override ensures background-image always wins ── */
html.light-mode .brand-block .brand-logo.has-image {
  background-image: url('/static/img/logo.jpg?v=db746218') !important;
  background-size: cover !important;
  background-position: center !important;
}

/* ══════════════════════════════════════════════════════════════════════
   v34 — Global light-mode white-floor: all surfaces to near-white
   ══════════════════════════════════════════════════════════════════════ */

/* Force all remaining dark card/section backgrounds to near-white */
html.light-mode .sp-section,
html.light-mode .sp-section-wide,
html.light-mode section.sp-section,
html.light-mode .sp-section-inner { background: transparent !important; }

html.light-mode .lp-section { background: transparent !important; }
html.light-mode .lp-section-dark { background: rgba(244,250,255,0.98) !important; }
html.light-mode .sp-section-dark { background: rgba(244,250,255,0.98) !important; }

html.light-mode .faq-item,
html.light-mode .acc-item { background: rgba(250,253,255,0.99) !important; border-color: rgba(170,100,20,0.12) !important; }

html.light-mode .site-footer,
html.light-mode footer { background: rgba(248,252,255,0.99) !important; }

html.light-mode .sp-stat-band { background: rgba(248,252,255,0.98) !important; }

html.light-mode .req-chip { background: rgba(250,253,255,0.99) !important; border-color: rgba(170,100,20,0.14) !important; }

html.light-mode .concept-card,
html.light-mode .lp-card { background: rgba(250,253,255,0.99) !important; border-color: rgba(170,100,20,0.13) !important; }

html.light-mode .license-terminal { background: rgba(250,253,255,0.99) !important; }

html.light-mode .splash-card { background: rgba(250,253,255,0.99) !important; }

html.light-mode .sp-cap,
html.light-mode .sp-cap-grid .sp-cap { background: rgba(250,253,255,0.99) !important; border-color: rgba(30,80,160,0.07) !important; }

html.light-mode .sp-cmp-grid > div { background: rgba(250,253,255,0.99) !important; }

html.light-mode .sp-persona { background: rgba(250,253,255,0.99) !important; border-color: rgba(191,94,0,0.10) !important; }

html.light-mode .sp-persona-card { background: rgba(250,253,255,0.99) !important; }

/* Nav font already var(--font-ui) — ensure letter-spacing is readable */
html.light-mode .top-nav .nav-links a { letter-spacing: 0.04em; }

/* Brand logo via img tag — no CSS cascade dependency */
.brand-block .brand-logo img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 8px; display: block;
  position: absolute; inset: 0;
}
/* In light mode, logo container gets lighter background as placeholder */
html.light-mode .brand-logo {
  background-color: rgba(245,248,252,0.95) !important;
  border-color: rgba(170,100,20,0.30) !important;
  animation: none !important;
  box-shadow: none !important;
}

/* ============================================================================
   LIGHT MODE — COMPREHENSIVE FIX PASS (v34)
   Font unification, white body, dark-card overrides, section whites
   ============================================================================ */

/* ── 1. FONT UNIFICATION: Inter everywhere in light mode ──
   Every UI element that hardcodes --font-mono for labels/stats/eyebrows
   gets overridden to Inter. code/pre/kbd stay mono. */
html.light-mode :not(code):not(pre):not(kbd):not(samp):not(textarea) {
  font-family: var(--font-ui) !important;
}
html.light-mode code,
html.light-mode pre,
html.light-mode kbd,
html.light-mode samp,
html.light-mode .license-key,
html.light-mode .key-cell,
html.light-mode .key-display { font-family: var(--font-mono) !important; }

/* ── 2. TRULY WHITE BODY ── */
html.light-mode body {
  background: linear-gradient(160deg, #f5faff 0%, #f8fcff 35%, #fefeff 60%, #f4f9ff 100%) !important;
}

/* ── 3. ÜBER-UNS: dark inline-style card overrides ── */
html.light-mode .au-brand-card,
html.light-mode .au-belief,
html.light-mode .au-contact-item {
  background: rgba(250,253,255,0.99) !important;
  border-color: rgba(170,100,20,0.14) !important;
}
html.light-mode .au-brand-card::before,
html.light-mode .au-belief::before { opacity: 0.5; }
html.light-mode .au-brand-name,
html.light-mode .au-belief-title,
html.light-mode .au-contact-val { color: #071525 !important; }
html.light-mode .au-brand-desc,
html.light-mode .au-belief-desc,
html.light-mode .au-contact-sub { color: #1e3a5f !important; }
html.light-mode .au-belief-icon { background: rgba(191,94,0,0.10) !important; }
html.light-mode .au-p { color: #1e3a5f !important; }
html.light-mode .au-h2 { color: #071525 !important; }
html.light-mode .au-story-quote { color: #071525 !important; }
html.light-mode .au-mascot-caption { color: #3a5a80 !important; }
html.light-mode .au-logo-text { color: #1e3a5f !important; }

/* ── 4. SECTION ALT truly near-white ── */
html.light-mode .sp-section-alt,
html.light-mode section.sp-alt,
html.light-mode .lp-section-alt {
  background: rgba(248,252,255,0.85) !important;
}

/* ── 5. LLP-FOOTER / LEGAL-FOOTER text legibility ── */
html.light-mode .lp-footer { background: transparent !important; }
html.light-mode .lp-footer-links { color: #3a5a80 !important; opacity: 1 !important; }
html.light-mode .lp-footer-links a { color: #3a5a80 !important; }
html.light-mode .lp-footer-copy { color: #5a7a9a !important; opacity: 1 !important; }

/* ── 6. LANG TOGGLE ── */
html.light-mode .lang-toggle {
  background: rgba(191,94,0,0.05) !important;
  border-color: rgba(191,94,0,0.28) !important;
}
html.light-mode .lang-toggle a { color: #4a3a2a !important; }
html.light-mode .lang-toggle a:hover { color: var(--accent) !important; background: rgba(191,94,0,0.10) !important; }
html.light-mode .lang-toggle a.is-current { color: var(--accent) !important; background: rgba(191,94,0,0.14) !important; }
html.light-mode .lang-toggle .lang-sep { background: rgba(191,94,0,0.25) !important; }

/* ── 7. BRAND VERSION badge ── */
html.light-mode .brand-version {
  background: rgba(191,94,0,0.08) !important;
  border-color: rgba(191,94,0,0.30) !important;
  box-shadow: none !important;
}

/* ── 8. STAT NUMBERS — no neon text-shadow ── */
html.light-mode .sp-stat-num,
html.light-mode .lp-stat-num { text-shadow: none !important; }

/* ── 9. SP-STEP circles & labels ── */
html.light-mode .sp-step-eyebrow { color: #bf5e00 !important; }
html.light-mode .sp-step-sub { color: #1e3a5f !important; }

/* ── 10. ACC / FAQ header text ── */
html.light-mode .faq-q,
html.light-mode summary { color: #071525 !important; }
html.light-mode .sp-faq-q { color: #071525 !important; }

/* ── 11. NAV hamburger lines in light mode ── */
html.light-mode .nav-hamburger span { background: #071525 !important; }

/* ── 12. SCROLLBAR light ── */
html.light-mode ::-webkit-scrollbar-track { background: #edf3fa; }
html.light-mode ::-webkit-scrollbar-thumb { background: rgba(191,94,0,0.40); }

/* ══════════════════════════════════════════════════════════════════
   FINAL FIX v38 — Nuclear font unification + comprehensive light-mode
   ══════════════════════════════════════════════════════════════════ */

/* ─ 1. FONT: Remove mono from ALL UI elements — both dark and light mode ─ */
.sp-step-circle,
.sp-fact-step,
.sp-step-by,
.sp-pipeline-phase-label,
.tf-phase-num,
.tf-phase-tools,
.sp-chip,
.sp-step-name,
.sp-step-eyebrow,
.sp-step-sub,
.em-engine,
.em-attr-label,
.em-val,
.em-engine small,
.brand-version,
.fp-key,
.fp-val,
.fp-pill,
.fp-link,
.cc-tag,
.cc-pill,
.chip-label,
.chip-meta,
.section-label,
.sp-persona-tag,
.sp-cmp-head,
.sp-cmp-note,
.sp-stat-label,
.sp-stat-sub,
.sp-beta-deal-badge,
.au-stat-label,
.au-tl-year,
.au-tl-title,
.au-tl-desc,
.sp-kicker,
.sp-label { font-family: var(--font-ui) !important; }

/* ─ 2. LIGHT MODE — force all remaining dark cards to near-white ─ */
html.light-mode .sp-cap { background: rgba(250,253,255,0.99) !important; border-color: rgba(170,100,20,0.10) !important; }
html.light-mode .sp-cap-title { color: #071525 !important; }
html.light-mode .sp-cap-desc { color: #1e3a5f !important; }
html.light-mode .sp-cap-icon { background: rgba(191,94,0,0.07) !important; border-color: rgba(191,94,0,0.18) !important; color: #bf5e00 !important; }

html.light-mode .sp-cmp-col.tf { background: rgba(255,149,47,0.06) !important; border-color: rgba(191,94,0,0.28) !important; }
html.light-mode .sp-cmp-col.oth { background: rgba(250,253,255,0.98) !important; border-color: rgba(30,80,160,0.10) !important; }
html.light-mode .sp-cmp-head.oth { color: #3a5a80 !important; }
html.light-mode .sp-cmp-note { color: #4a6e96 !important; }
html.light-mode .sp-cmp-row { color: #1e3a5f !important; border-bottom-color: rgba(30,80,160,0.07) !important; }
html.light-mode .sp-mk.no { color: #94a3b8 !important; }
html.light-mode .sp-mk.par { color: #b45309 !important; }

html.light-mode .sp-fact-step { color: #9a4900 !important; opacity: 1 !important; }
html.light-mode .sp-fact-title { color: #071525 !important; }
html.light-mode .sp-fact-desc { color: #1e3a5f !important; }
html.light-mode .sp-resolution-text { color: #071525 !important; }

html.light-mode .sp-step-circle { background: var(--accent) !important; color: #fff !important; box-shadow: 0 4px 16px rgba(191,94,0,0.28) !important; }
html.light-mode .sp-step-name { color: #071525 !important; }
html.light-mode .sp-step-by { color: #bf5e00 !important; }
html.light-mode .sp-pipeline-outer { background: rgba(250,253,255,0.99) !important; border-color: rgba(191,94,0,0.18) !important; }
html.light-mode .sp-pipeline::before { background: linear-gradient(90deg, transparent 0%, rgba(191,94,0,0.45) 20%, var(--accent) 50%, rgba(191,94,0,0.45) 80%, transparent 100%) !important; }

html.light-mode .llm-card { background: rgba(250,253,255,0.99) !important; border-color: rgba(30,80,160,0.12) !important; }
html.light-mode .llm-title { color: #071525 !important; }
html.light-mode .llm-desc { color: #1e3a5f !important; }
html.light-mode .llm-note { color: #4a6e96 !important; border-top-color: rgba(30,80,160,0.10) !important; }
html.light-mode .llm-icon { background: rgba(191,94,0,0.07) !important; border-color: rgba(191,94,0,0.22) !important; color: #bf5e00 !important; }
html.light-mode .llm-card:nth-child(2) .llm-icon { color: #077060 !important; }
html.light-mode .llm-card:nth-child(3) .llm-icon { color: #1e50a0 !important; }
html.light-mode .privacy-note { background: rgba(7,112,96,0.05) !important; border-left-color: #077060 !important; color: #1e3a5f !important; }
html.light-mode .privacy-note strong { color: #071525 !important; }

html.light-mode .concept-card.is-platform { background: rgba(250,253,255,0.99) !important; border-color: rgba(170,100,20,0.14) !important; }
html.light-mode .platform-name { color: #071525 !important; }
html.light-mode .platform-info { color: #3a5a80 !important; }
html.light-mode .cc-tag { color: #bf5e00 !important; }
html.light-mode .platform-icon { color: #bf5e00 !important; }

html.light-mode .mini-disclaimer summary { color: #3a5a80 !important; }
html.light-mode .mini-disclaimer p { color: #1e3a5f !important; }
html.light-mode .mini-disclaimer details { background: transparent !important; border-color: rgba(30,80,160,0.12) !important; }
html.light-mode .legal-footer { color: #3a5a80 !important; }
html.light-mode .legal-footer a { color: #9a4900 !important; }

html.light-mode .lic-req-notice { color: #1e3a5f !important; background: rgba(191,94,0,0.06) !important; border-color: rgba(191,94,0,0.18) !important; }

html.light-mode .sp-persona { background: rgba(250,253,255,0.99) !important; border-color: rgba(191,94,0,0.12) !important; }
html.light-mode .sp-persona-tag { color: #9a4900 !important; }
html.light-mode .sp-persona-title { color: #071525 !important; }
html.light-mode .sp-persona-hook { color: #bf5e00 !important; border-left-color: rgba(191,94,0,0.35) !important; }
html.light-mode .sp-persona-desc { color: #1e3a5f !important; }
html.light-mode .sp-persona-list li { color: #1e3a5f !important; }
html.light-mode .sp-persona-list li::before { color: #bf5e00 !important; }

html.light-mode .sp-stat-band { background: rgba(244,250,255,0.92) !important; border-color: rgba(191,94,0,0.12) !important; }
html.light-mode .sp-stat { border-right-color: rgba(191,94,0,0.10) !important; }
html.light-mode .sp-stat-icon { background: rgba(191,94,0,0.07) !important; border-color: rgba(191,94,0,0.18) !important; color: #bf5e00 !important; }

html.light-mode .sticky-cta { background: rgba(248,252,255,0.98) !important; border-top-color: rgba(191,94,0,0.20) !important; }
html.light-mode .sticky-cta-text { color: #1e3a5f !important; }
html.light-mode .sticky-cta-text strong { color: #071525 !important; }

html.light-mode .sp-h2 { color: #071525 !important; }
html.light-mode .sp-sub { color: #1e3a5f !important; }
html.light-mode .sp-label { color: #bf5e00 !important; }
html.light-mode .sp-kicker { color: #bf5e00 !important; border-color: rgba(191,94,0,0.28) !important; }

html.light-mode .tf-phase { background: rgba(250,253,255,0.99) !important; border-color: rgba(191,94,0,0.12) !important; }
html.light-mode .tf-phase-num { color: #9a4900 !important; }
html.light-mode .tf-phase-name { color: #071525 !important; }
html.light-mode .tf-phase-desc { color: #1e3a5f !important; }
html.light-mode .tf-phase-tools { color: #3a5a80 !important; }

/* ============================================================================
   CONTRAST FIX v40 — WCAG AA compliance for light-mode text
   #5a7a9a (4.47:1 on white, fails) → #3a5a80 (6.82:1)
   #7a9abc (2.91:1, fails) → #4a6e96 (5.30:1)
   #94a3b8 (2.55:1, fails) → #4a6a8a (5.59:1)
   ============================================================================ */
html.light-mode .text-muted { color: #3a5a80 !important; }
html.light-mode .lp-footer-copy { color: #3a5a80 !important; opacity: 1 !important; }
html.light-mode textarea::placeholder { color: #4a6e96 !important; opacity: 1 !important; }
html.light-mode .sp-stat-source { color: #4a6e96 !important; }
html.light-mode .sp-mk.no  { color: #4a6a8a !important; }
html.light-mode .sp-mk.ok  { color: #15803d !important; }  /* v46: #4ade80 → WCAG-AA dark green */
html.light-mode .sp-mk.par { color: #b45309 !important; }  /* v46: deduplicate — also set inline in features/index */

/* ============================================================================
   FONT UNIFICATION v42 — All UI elements → var(--font-ui) (sans-serif)
   Buttons, section labels, notices, footer, nav, download page, forms, modals
   ============================================================================ */

/* BUTTONS — most impactful: every CTA sitewide */
.btn, .btn-primary, .btn-ghost, .btn-danger,
.lp-btn-primary, .lp-btn-ghost,
button.btn { font-family: var(--font-ui) !important; letter-spacing: 0.04em !important; }

/* SECTION LABELS — panel headers, download area labels */
.section-label { font-family: var(--font-ui) !important; }

/* LICENSE NOTICE — the "license required" info box */
.lic-req-notice { font-family: var(--font-ui) !important; letter-spacing: 0 !important; }

/* FLOW STEPS — license/download 2-step indicator labels */
.flow-step .fs-label { font-family: var(--font-ui) !important; }

/* FOOTER LINKS & COPY */
.lp-footer-links, .lp-footer-links a,
.lp-footer-copy,
.legal-footer, .legal-footer a,
.tool-footer, .fp, .fp-key, .fp-val, .fp-link { font-family: var(--font-ui) !important; }

/* COOKIE BANNER */
.cookie-banner, .cookie-banner-heading,
.cookie-banner p, .cookie-banner button { font-family: var(--font-ui) !important; }

/* BETA MODAL & POPUPS */
.beta-modal, .beta-modal h2, .beta-modal p,
.beta-modal label, .beta-modal input,
.beta-modal button, .beta-modal-note { font-family: var(--font-ui) !important; }

/* DOWNLOAD PAGE — version rows, platform cards */
.version-name, .version-meta, .version-badge,
.platform-name, .platform-info,
.cc-tag, .cc-pill { font-family: var(--font-ui) !important; }

/* NAV LINKS — ensure sans-serif everywhere */
.nav-links a, .top-nav .nav-links a { font-family: var(--font-ui) !important; }

/* MINI DISCLAIMER & BETA NOTICE */
.mini-disclaimer, .mini-disclaimer p,
.warn-card, .warn-card h3, .warn-card p,
.beta-notice, .lic-notice { font-family: var(--font-ui) !important; }

/* FORM LABELS, CHECKBOXES, INPUTS */
.checkbox-row span, .term-label,
.form-row label, .form-row input,
.form-row textarea, .form-row select { font-family: var(--font-ui) !important; }

/* STAT LABELS & CHIPS that should be UI */
.au-stat-label, .au-stat-num,
.au-tl-year, .au-tl-title, .au-tl-desc { font-family: var(--font-ui) !important; }

/* DOWNLOAD PAGE PANEL HEADERS */
.panel-h .h-title { font-family: var(--font-ui) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE PERFECTION v43 — Mobile/tablet overrides, touch targets,
   overflow prevention, grid collapses. All breakpoints consolidated here.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Overflow prevention (global) ── */
body { overflow-x: hidden; }
.lp-compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Touch targets (≤768px) ── */
@media (max-width: 768px) {
    .btn, .lp-btn-primary, .lp-btn-ghost {
        min-height: 44px;
        padding: 12px 24px;
    }
    .lang-toggle a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 0 14px;
    }
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ── TABLET (≤768px) — 2-column grids, stacking ── */
@media (max-width: 768px) {
    /* Mode grid: 2 columns */
    .sp-mode-grid { grid-template-columns: 1fr 1fr; }

    /* Story/about grid: stack */
    .au-story-grid { grid-template-columns: 1fr; }

    /* Contact: 2 columns on tablet */
    .au-contact-grid { grid-template-columns: 1fr 1fr; }

    /* Platform download cards: 2 columns */
    .dl-platform-grid { grid-template-columns: 1fr 1fr; }

    /* Pipeline: tighten gaps */
    .lp-pipeline { gap: 16px; }

    /* Compare table: scroll container */
    .lp-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── MOBILE (≤480px) — single-column, tight padding ── */
@media (max-width: 480px) {
    /* Section containers */
    .sp-section,
    .sp-section-wide { padding: 48px 16px !important; }
    .au-wrap { padding: 48px 16px !important; }

    /* Hero */
    /* Hero -- Top-Padding halbiert (06.09.2026, User-Meldung mit Screenshot:
       zu grosse dunkle Luecke zwischen Pre-Launch-Banner und Hero-Kicker auf
       Mobil). War 80px, dieselbe Beschwerde betraf nicht den unteren Abstand
       -- 48px unveraendert gelassen. */
    .sp-hero { padding: 40px 16px 48px !important; }
    .sp-hero-inner h1,
    .sp-hero h1 { font-size: 28px !important; line-height: 1.2 !important; }
    .sp-hero-sub { font-size: 15px !important; }

    /* CTA inner */
    .sp-cta-inner { padding: 40px 16px !important; }

    /* Landing page grids → single column */
    .lp-pain-grid,
    .lp-cap-grid,
    .lp-use-grid,
    .lp-format-grid { grid-template-columns: 1fr !important; }

    /* LLM grid → single column */
    .llm-grid { grid-template-columns: 1fr !important; }

    /* Mode grid → single column */
    .sp-mode-grid { grid-template-columns: 1fr !important; }

    /* Contact grid → single column */
    .au-contact-grid { grid-template-columns: 1fr !important; }

    /* Belief grid → single column */
    .au-belief-grid { grid-template-columns: 1fr !important; }

    /* Brand row → single column */
    .au-brand-row { grid-template-columns: 1fr !important; }

    /* Download platform cards → single column */
    .dl-platform-grid { grid-template-columns: 1fr !important; gap: 10px !important; }

    /* Compare table: force scroll */
    .lp-compare { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }

    /* Flow diagram: prevent overflow, hide if still breaks */
    .tf-flow-diagram { overflow-x: auto; flex-wrap: wrap; gap: 8px; }

    /* Pipeline: single column */
    .lp-pipeline { grid-template-columns: 1fr !important; }

    /* About story grid: single column */
    .au-story-grid { grid-template-columns: 1fr !important; }

    /* Version rows: tighten */
    .version-row { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
    .version-row .btn { width: 100%; text-align: center; justify-content: center; }
}

/* ── FAQ LIGHT MODE — orange accent background ──────────────────────────── */
html.light-mode .faq-item details {
  background: rgba(191,94,0,0.07);
  border-color: rgba(191,94,0,0.22);
  border-left-color: rgba(191,94,0,0.40);
}
html.light-mode .faq-item details[open] {
  background: rgba(191,94,0,0.13);
  border-left-color: var(--accent);
}
html.light-mode .faq-item summary { color: #071525; }
html.light-mode .faq-item details[open] summary { color: #071525; font-weight: 800; }
html.light-mode .faq-body { color: #1e3a5f; }
html.light-mode .faq-body strong { color: #071525; }

html.light-mode .lp-faq-item { border-bottom-color: rgba(191,94,0,0.18); }
html.light-mode .lp-faq-q { color: #071525; }
html.light-mode .lp-faq-q:hover { color: var(--accent); }
html.light-mode .lp-faq-a { color: #1e3a5f; background: rgba(191,94,0,0.07); border-radius: 0 0 6px 6px; padding: 16px 20px 20px; }

/* btn-ghost light mode */
html.light-mode .btn-ghost {
  border-color: rgba(0,40,80,0.25) !important;
  color: #1e3a5f !important;
  background: transparent !important;
}
html.light-mode .btn-ghost:hover:not(:disabled) {
  border-color: rgba(191,94,0,0.50) !important;
  color: var(--accent) !important;
  background: rgba(191,94,0,0.06) !important;
}

/* ============================================================================
   SVG VISUALIZATIONS — v45 additions
   Animated flow path, icon cards, time-savings bar, before/after comparison
   ============================================================================ */

/* ── Animated pipeline path (index.php "Wie es funktioniert") ── */
@keyframes flow-path-dash {
  0%   { stroke-dashoffset: 400; opacity: 0.4; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.4; }
}
@keyframes flow-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 8px rgba(255,149,47,0.35)); }
  50%       { filter: drop-shadow(0 0 10px var(--accent)) drop-shadow(0 0 22px rgba(255,149,47,0.70)); }
}
@keyframes node-pop {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1.00); opacity: 1; }
}
@keyframes time-bar-fill {
  from { width: 0%; }
  to   { width: var(--bar-target, 86%); }
}
@keyframes before-after-reveal {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0% 0 0); }
}

/* ── Flow connector SVG ── */
.tf-flow-connector-svg {
  display: block;
  width: 100%;
  overflow: visible;
  margin: 8px 0 0;
}
.tf-flow-connector-svg .flow-track {
  stroke: rgba(255,149,47,0.18);
  stroke-width: 2;
  fill: none;
}
.tf-flow-connector-svg .flow-pulse {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 120 280;
  stroke-dashoffset: 400;
  stroke-linecap: round;
  animation: flow-path-dash 3.2s ease-in-out infinite;
  animation-fill-mode: both;
}
.tf-flow-connector-svg .flow-node-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(255,149,47,0.80));
}
@media (prefers-reduced-motion: reduce) {
  .tf-flow-connector-svg .flow-pulse { animation: none; stroke-dashoffset: 0; }
}
html.light-mode .tf-flow-connector-svg .flow-track { stroke: rgba(191,94,0,0.14); }
html.light-mode .tf-flow-connector-svg .flow-pulse { stroke: var(--accent); }

/* ── Pain-point icon cards ── */
.sp-fact-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: rgba(255,149,47,0.08);
  border: 1px solid rgba(255,149,47,0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
}
.sp-fact:hover .sp-fact-icon {
  background: rgba(255,149,47,0.16);
  box-shadow: 0 0 20px rgba(255,149,47,0.28);
}
html.light-mode .sp-fact-icon { background: rgba(191,94,0,0.09); border-color: rgba(191,94,0,0.22); color: var(--accent); }

/* ── Capability icon badge ── */
.sp-cap-icon svg { display: block; }
.sp-cap:hover .sp-cap-icon {
  background: rgba(255,149,47,0.18);
  box-shadow: 0 0 16px rgba(255,149,47,0.32);
}

/* ── Time-savings bar (fuer-marketing.php) ── */
.tf-time-bar-wrap {
  margin: 36px 0 28px;
  padding: 28px 32px;
  background: rgba(3,6,12,0.92);
  border: 1px solid rgba(255,149,47,0.18);
  border-left: 4px solid var(--accent);
  border-radius: 0;
}
.tf-time-bar-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255,149,47,0.45);
}
.tf-time-bar-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.tf-time-bar-name {
  font-size: 12px; color: var(--text-dim); min-width: 120px; flex-shrink: 0;
  font-family: var(--font-mono); letter-spacing: 0.06em;
}
.tf-time-bar-track {
  flex: 1; height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px; overflow: hidden; position: relative;
}
.tf-time-bar-fill {
  height: 100%; border-radius: 4px;
  animation: time-bar-fill 1.4s cubic-bezier(0.34,1.36,0.64,1) both;
  animation-delay: var(--bar-delay, 0s);
}
.tf-time-bar-fill.is-before { background: rgba(255,255,255,0.22); --bar-target: 100%; }
.tf-time-bar-fill.is-after  { background: linear-gradient(90deg, var(--accent), #3dff8f); box-shadow: 0 0 12px rgba(61,255,143,0.40); }
.tf-time-bar-val {
  font-family: var(--font-mono); font-size: 12px; font-weight: 800;
  min-width: 52px; text-align: right; color: var(--text);
}
.tf-time-bar-val.is-after { color: #3dff8f; text-shadow: 0 0 10px rgba(61,255,143,0.55); }
html.light-mode .tf-time-bar-wrap { background: rgba(230,240,255,0.90); border-color: rgba(191,94,0,0.18); }
html.light-mode .tf-time-bar-name { color: #1e3a60; }
html.light-mode .tf-time-bar-track { background: rgba(0,0,0,0.08); }
html.light-mode .tf-time-bar-fill.is-before { background: rgba(0,0,0,0.14); }
html.light-mode .tf-time-bar-fill.is-after  { background: linear-gradient(90deg, var(--accent), #15803d) !important; box-shadow: none !important; }
html.light-mode .tf-time-bar-val.is-after   { color: #15803d !important; text-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .tf-time-bar-fill { animation: none; width: var(--bar-target, 86%); }
}

/* ── Before/after comparison visual (fuer-filmemacher.php) ── */
.tf-before-after {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 36px 0 28px;
}
.tf-ba-col {
  padding: 22px 20px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.tf-ba-col.is-before {
  background: rgba(20,10,0,0.70);
  border-color: rgba(255,80,80,0.22);
}
.tf-ba-col.is-after {
  background: rgba(0,12,8,0.70);
  border-color: rgba(61,255,143,0.28);
}
.tf-ba-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 9px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 2px; margin-bottom: 14px;
}
.tf-ba-col.is-before .tf-ba-badge { color: rgba(255,80,80,0.90); background: rgba(255,80,80,0.10); border: 1px solid rgba(255,80,80,0.28); }
.tf-ba-col.is-after  .tf-ba-badge { color: #3dff8f; background: rgba(61,255,143,0.10); border: 1px solid rgba(61,255,143,0.30); }
.tf-ba-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13px; color: var(--text-dim); padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05); line-height: 1.45;
}
.tf-ba-item:last-child { border-bottom: none; }
.tf-ba-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.tf-ba-col.is-before .tf-ba-dot { background: rgba(255,80,80,0.70); }
.tf-ba-col.is-after  .tf-ba-dot { background: #3dff8f; box-shadow: 0 0 8px rgba(61,255,143,0.50); }
@media (max-width: 600px) { .tf-before-after { grid-template-columns: 1fr; } }
html.light-mode .tf-ba-col.is-before { background: rgba(255,230,225,0.60); border-color: rgba(200,50,50,0.22); }
html.light-mode .tf-ba-col.is-after  { background: rgba(220,255,235,0.60); border-color: rgba(20,150,80,0.28); }
html.light-mode .tf-ba-item { color: #1e3a60; border-bottom-color: rgba(0,0,0,0.07); }
/* v46: After-column badge & dot readable on light green background — WCAG AA */
html.light-mode .tf-ba-col.is-after .tf-ba-badge { color: #15803d; background: rgba(21,128,61,0.10); border-color: rgba(21,128,61,0.32); }
html.light-mode .tf-ba-col.is-after .tf-ba-dot   { background: #15803d; box-shadow: none; }
html.light-mode .tf-ba-col.is-before .tf-ba-badge { color: #b91c1c; background: rgba(185,28,28,0.10); border-color: rgba(185,28,28,0.30); }
html.light-mode .tf-ba-col.is-before .tf-ba-dot   { background: #b91c1c; box-shadow: none; }

/* ── About timeline ── */
.tf-timeline {
  display: flex; flex-direction: column; gap: 0;
  margin: 28px 0; position: relative;
  padding-left: 40px;
}
.tf-timeline::before {
  content: ''; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(61,255,143,0.60), transparent);
}
.tf-tl-item {
  position: relative; padding: 0 0 28px 24px;
}
.tf-tl-dot {
  position: absolute; left: -27px; top: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255,149,47,0.25);
  box-shadow: 0 0 12px rgba(255,149,47,0.55), 0 0 24px rgba(255,149,47,0.20);
}
.tf-tl-year {
  font-family: var(--font-mono); font-size: 10px; font-weight: 800;
  letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase;
  margin-bottom: 4px; text-shadow: 0 0 10px rgba(255,149,47,0.45);
}
.tf-tl-text { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.tf-tl-text strong { color: var(--text); }
html.light-mode .tf-timeline::before { background: linear-gradient(180deg, var(--accent), rgba(20,150,80,0.50), transparent); }
html.light-mode .tf-tl-text { color: #1e3a60; }

/* ── Platform SVG badges (ueber-uns.php) ── */
.tf-platform-badges {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 24px 0;
}
.tf-platform-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px;
  background: rgba(3,6,12,0.90);
  border: 1px solid rgba(255,149,47,0.22);
  border-radius: 2px;
  font-size: 12px; font-weight: 700; color: var(--text-dim);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tf-platform-badge:hover { border-color: rgba(255,149,47,0.50); box-shadow: 0 0 16px rgba(255,149,47,0.18); }
.tf-platform-badge svg { color: var(--accent); flex-shrink: 0; }
html.light-mode .tf-platform-badge { background: rgba(225,235,250,0.90); border-color: rgba(191,94,0,0.22); color: #1e3a60; }

/* ── AI engine spectrum bar (picco-ai-features.php) ── */
.tf-spectrum-bar {
  margin: 28px 0;
}
.tf-spectrum-label-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 10px;
}
.tf-spectrum-track {
  height: 10px; border-radius: 5px;
  background: linear-gradient(90deg,
    rgba(61,255,143,0.70) 0%,
    rgba(0,223,255,0.70) 35%,
    rgba(255,149,47,0.90) 70%,
    rgba(255,149,47,1.0) 100%);
  box-shadow: 0 0 24px rgba(255,149,47,0.28);
  position: relative;
}
.tf-spectrum-marker {
  position: absolute; top: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(255,149,47,0.60);
  transform: translateX(-50%);
}
.tf-spectrum-names {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.08em;
}
html.light-mode .tf-spectrum-track { box-shadow: 0 0 14px rgba(191,94,0,0.20); }

/* ============================================================================
   LIGHT-MODE v47 — INLINE-STYLE COLOR OVERRIDES
   !important required to beat inline style="" attributes on HTML elements.
   ============================================================================ */

/* tf-engine-trait: ki-software-filmproduktion.php hardcodes #c97aff/#49be82/#60a5fa */
html.light-mode .tf-engine-trait {
  color: var(--text) !important;
  border-color: rgba(170,100,20,0.22) !important;
  background: rgba(170,100,20,0.06) !important;
}

/* Spectrum mode labels: one span uses #a78bfa (light purple) — override all to legible */
html.light-mode .tf-spectrum-names span { color: var(--text-dim) !important; }

/* Newsletter bar link in index.php: color:#38bdf8 hardcoded inline */
html.light-mode .newsletter-bar { background: rgba(7,112,96,0.06) !important; border-bottom-color: rgba(7,112,96,0.18) !important; }
html.light-mode .newsletter-bar a { color: var(--accent) !important; }

/* lp-btn-ghost in light mode — matches btn-ghost light style on index.php */
html.light-mode .lp-btn-ghost {
  color: #1e3a5f !important;
  border-color: rgba(0,40,80,0.25) !important;
  background: transparent !important;
}
html.light-mode .lp-btn-ghost:hover {
  border-color: rgba(191,94,0,0.50) !important;
  color: var(--accent) !important;
  background: rgba(191,94,0,0.06) !important;
}

/* ════════════════════════════════════════════════════════════════
   ADMIN MOBILE NAV — hamburger + overlay actions panel
   Used by admin/index.php (dashboard) and admin/analytics.php
   ════════════════════════════════════════════════════════════════ */
.app-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,149,47,0.30);
  border-radius: 3px;
  cursor: pointer; padding: 0;
  flex-shrink: 0;
  position: relative; z-index: 91;
}
.app-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.app-header.is-open .app-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.app-header.is-open .app-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.app-header.is-open .app-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
html.light-mode .app-hamburger { border-color: rgba(170,100,20,0.40); }
html.light-mode .app-hamburger span { background: #071525; }

/* Mobile: show hamburger, collapse actions into overlay panel */
@media (max-width: 768px) {
  .app-hamburger { display: flex; }
  .app-header { position: relative; }
  .app-actions {
    display: none !important;
    position: absolute;
    top: calc(100% + 6px); right: 0; left: 0;
    background: rgba(13,17,23,0.98);
    border: 1px solid rgba(255,149,47,0.30);
    border-radius: 6px;
    padding: 18px 16px;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    z-index: 90;
    box-shadow: 0 12px 32px rgba(0,0,0,0.50);
  }
  .app-header.is-open .app-actions {
    display: flex !important;
  }
  .app-actions > * {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .app-header.is-open .app-actions .pill {
    display: flex !important;
  }
  .app-actions .pill,
  .app-actions .text-muted {
    display: flex; align-items: center; justify-content: center;
    width: 100%; text-align: center;
  }
  .app-actions .theme-toggle {
    margin: 0 auto;
  }
  .app-actions .lang-toggle {
    display: flex; justify-content: center; gap: 8px;
  }
  .app-actions .btn { width: 100%; }
  html.light-mode .app-actions {
    background: rgba(245,250,255,0.99);
    border-color: rgba(170,100,20,0.30);
    box-shadow: 0 12px 32px rgba(7,21,37,0.16);
  }
}

/* ── TRIAL/CHECKOUT MODAL (co-*) — 06.09.2026 ─────────────────────────────
   Aus pricing.php in die geteilte Stylesheet verschoben, damit jede Seite
   (nicht nur pricing.php) denselben Trial-Popup ohne CSS-Duplikat einbinden
   kann (partials/trial-widget.php). Single Source. */
.co-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.co-overlay.show { display: flex; }
.co-modal {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 32px 30px;
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.co-modal h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.co-modal p  { font-size: 13px; color: var(--text-dim); margin: 0 0 20px; }
/* FIX (06.09.2026, Befund: Trial-Popup wirkte auf gaengigen Windows-Laptop-
   Aufloesungen wie 1366x768 riesig -- 90vh Hoehen-Budget plus das volle
   Registrierungsformular (partials/trial-widget.php) uebersteigt dort bereits
   knapp die eigene Hoehen-Grenze. Nur innerhalb von .co-modal kompimiert
   (nicht sitzweit an .sp-h2/.sp-sub/.form-group -- die werden auch ausserhalb
   von Popups genutzt, z.B. index.php#license). */
.co-modal .sp-label { font-size: 12px; margin-bottom: 6px; }
.co-modal .sp-h2 { font-size: 22px; margin: 0 0 10px; }
.co-modal .sp-sub { font-size: 13.5px; line-height: 1.5; margin-bottom: 18px; }
.co-modal .form-group { margin-bottom: 14px; }
@media (max-height:740px) {
  .co-modal { padding: 20px 22px; max-height: 88vh; }
  .co-modal .sp-label { font-size: 11px; margin-bottom: 4px; }
  .co-modal .sp-h2 { font-size: 19px; margin: 0 0 6px; }
  .co-modal .sp-sub { font-size: 12.5px; line-height: 1.4; margin-bottom: 12px; }
  .co-modal .form-group { margin-bottom: 10px; }
}
.co-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--muted);
  line-height: 1;
  padding: 4px;
}
.co-close:hover { color: var(--text); }
.co-step { display: none; }
.co-step.active { display: block; }
.co-loading { text-align: center; padding: 24px; color: var(--muted); }
.co-spinner {
  width: 24px; height: 24px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: co-spin 0.7s linear infinite;
  margin: 0 auto 10px;
}
@keyframes co-spin { to { transform: rotate(360deg); } }
html.light-mode .co-modal { background: #fff; border-color: rgba(0,0,0,.12); }
