/* WANTED @ BluFox Studio - Marketing-Landingpage fuer die Root-Domain.
   Bewusst dauerhaft dunkel (kein Light-Mode-Toggle) - Nacht-Verfolgungsjagd
   ist die Kernfantasie der Marke, ein heller Modus wuerde das verwaessern.
   Farbpalette 1:1 aus der echten App (assets/css/style.css) uebernommen -
   keine neue Marke erfinden, sondern die bestehende ernst nehmen. */

:root {
    --bg: #0b0e17;
    --bg-elevated: #171d2c;
    --bg-card: #1c2334;
    --bg-card-2: #212a3f;
    --border: #2b3348;
    --border-soft: #232b3f;
    --text: #eef1f8;
    --text-dim: #9aa4bd;
    --accent: #F3A93A;
    --accent-2: #FFCB73;
    --accent-dim: #B9791F;
    --detective: #3ca7ff;
    --success: #34c77b;
    --danger: #D64545;
    --mrx: #ff5b3c;
    --ease: cubic-bezier(.2,.8,.2,1);
    --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
    margin: 0;
    text-wrap: balance;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(243,169,58,.18); flex-shrink: 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .95rem;
    padding: 15px 26px; border-radius: 13px; border: 1px solid transparent; cursor: pointer;
    transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s ease, background .15s ease;
}
.btn--primary {
    background: linear-gradient(155deg, var(--accent-2), var(--accent-dim));
    color: #241900; box-shadow: 0 14px 32px -10px rgba(243,169,58,.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -8px rgba(243,169,58,.65); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn svg { flex-shrink: 0; }

/* ---- Nav ---- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11,14,23,.72); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 28px; width: auto; display: block; }
.nav__links { display: none; align-items: center; gap: 28px; font-size: .88rem; font-weight: 700; color: var(--text-dim); }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: none; }
@media (min-width: 860px) {
    .nav__links { display: flex; }
    .nav__cta { display: inline-flex; padding: 11px 20px; font-size: .85rem; }
}

/* ---- Hero ---- */
.hero { position: relative; padding-block: 64px 40px; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: -20% -10% auto -10%; height: 640px; z-index: -1;
    background:
        radial-gradient(620px 420px at 15% 0%, rgba(243,169,58,.20), transparent 60%),
        radial-gradient(520px 380px at 90% 10%, rgba(60,167,255,.14), transparent 55%);
    pointer-events: none;
}
.hero__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 60px; } }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { color: var(--text-dim); font-size: 1.08rem; max-width: 46ch; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px; }
.fact-chip {
    display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--text-dim);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px;
}
.fact-chip svg { color: var(--success); flex-shrink: 0; }

/* Geraete-Rahmen fuer den animierten Netzwerk-Visual (ersetzt die fruehere
   flache Screenshot-Optik - dasselbe Rahmen-Chrome bleibt, der Inhalt ist
   jetzt ein generatives, live wirkendes Liniennetz statt eines Standbilds). */
.device {
    position: relative; border-radius: 22px; overflow: hidden;
    border: 1px solid var(--border-soft); background: var(--bg-elevated);
    box-shadow: var(--shadow-pop, 0 30px 70px -24px rgba(0,0,0,.7));
    transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
}
.device__bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg-card); border-bottom: 1px solid var(--border-soft); }
.device__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.device img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .device { transform: none; } }

/* ---- Netzwerk-Visual: echte Stadt (CARTO-Kacheln, Frankfurt, aus dem
   echten Spiel-Datensatz zusammengesetzt - siehe assets/img/city-bg.jpg)
   als Hintergrund, darueber eine choreografierte Jagd-Szene statt eines
   Standbilds: Linien laden sich ein (pathLength="100" normalisiert JEDEN
   Pfad auf dieselbe Dash-Skala - dasselbe Prinzip wie der Routen-Draw-in in
   der echten App, hier per SMIL/CSS ohne JS), ein Target flieht, ein Hunter
   verfehlt es knapp, ein zweiter Hunter holt es ein. Alle Zeitangaben sind
   Bruchteile EINER gemeinsamen Master-Loop-Dauer (siehe --loop je Element) -
   dadurch bleiben unabhaengige SMIL-/CSS-Animationen dauerhaft synchron,
   ohne dass irgendetwas per JS zurueckgesetzt werden muss. */
.net {
    display: block; width: 100%; height: auto;
    background: linear-gradient(180deg, rgba(11,14,23,.35), rgba(11,14,23,.75)), url('/assets/img/city-bg.jpg') center/cover no-repeat;
}
/* .net-route: der Pfad, dem einer der Punkte unten via <mpath> tatsaechlich
   folgt - KEINE freistehende Deko-Linie. Das Ein-/Auszeichnen laeuft per
   SMIL <animate> auf stroke-dashoffset, mit denselben keyTimes-Bruchteilen
   wie die Punktbewegung und Ping/Near-Miss/Catch derselben Szene - eine
   fruehere Version nutzte hierfuer eine CSS-@keyframes-Animation mit
   eigener, ABWEICHENDER Dauer (5.5s) neben der 13s/6s-Bewegung der Punkte -
   beides lief staendig gegeneinander auseinander, wirkte dadurch beliebig/
   zufaellig statt wie eine choreografierte Szene. Jetzt: eine Uhr fuer alles. */
.net-route { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; filter: drop-shadow(0 0 3px rgba(0,0,0,.6)); }
/* Zweite Variante (Showcase-Sektion): der Rest der Stadt bleibt sichtbar,
   aber gedimmt - GENAU das Verhalten, das die echte App beim Zielwaehlen/
   Reisen zeigt (nur die aktiv genutzte Linie bleibt farbig, alle anderen
   werden gedimmt statt versteckt). Auch hier: Draw-in per SMIL, synchron
   zur 6s-Bewegung des Punktes auf derselben Route (siehe HTML). */
.net-line--active { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; filter: drop-shadow(0 0 5px currentColor); }
.net-station { fill: var(--bg-elevated); stroke-width: 2; }
/* Puls laeuft per SMIL <animate> auf r/opacity direkt im HTML (synchron zur
   6s-Bewegung des Punktes) - hier nur die statische Basis, keine eigene
   CSS-Animation mehr (die wuerde mit der SMIL-Animation um dieselben
   Attribute konkurrieren). */
.net-station-ring { fill: none; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }

/* ---- Jagd-Choreografie (Hero) - eine 13s-Loop mit drei Momenten:
   Sichtung (Ping), knapp verfehlt (Near-Miss), gefasst (Catch-Burst).
   Jedes Element bekommt dieselbe Gesamt-dur wie die Master-Loop, mit
   keyTimes/Werten fuer NUR sein kurzes Zeitfenster darin - so bleiben alle
   Effekte fuer immer phasengleich, ganz ohne JS-Reset. */
.net-ping-ring, .net-ping-core { transform-box: fill-box; transform-origin: center; }
.net-ping-ring { fill: none; stroke-width: 2.5; }
.net-nearmiss { fill: none; stroke-width: 2.5; }
.net-catch-ring { fill: none; stroke-width: 3; }
.net-catch-burst { fill: currentColor; }
.net-dot { filter: drop-shadow(0 0 5px currentColor); }
/* Haltestellen entlang der Routen - dieselbe Optik wie ein echtes
   Stop-Icon im Spiel (singleStopIcon in arealayer.js): heller Kreis mit
   farbigem Rand, keine Animation, reine "hier gibt es einen Halt"-Textur. */
.net-stop { fill: var(--bg-elevated); stroke-width: 2; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
    /* Alle Bewegung in .net ist inzwischen SMIL (siehe HTML) - CSS
       "animation"/"transition" hat darauf keinen Zugriff, SMIL wird
       stattdessen per svg.pauseAnimations() in main.js pausiert. */
}

/* Grossflaechige, sehr dezente Zweitkopie als Ambient-Hintergrund hinter dem
   ganzen Hero (nicht nur im Geraete-Rahmen) - macht die Sektion selbst zur
   "Karte", statt die Animation nur auf ein Fenster zu beschraenken. */
.hero__bgnet { position: absolute; inset: -8% -6%; z-index: -1; opacity: .22; pointer-events: none; }

/* ---- Sections ---- */
.section { padding-block: 76px; }
.section--tight { padding-block: 56px; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
.section-head p { color: var(--text-dim); font-size: 1.02rem; margin-top: 12px; }
.divider { border: none; border-top: 1px solid var(--border-soft); margin: 0; }

.lede {
    font-size: 1.15rem; color: var(--text-dim); max-width: 74ch; line-height: 1.7;
}
.lede strong { color: var(--text); }

/* Steps */
.steps { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { display: flex; gap: 16px; padding: 22px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); }
.step__num {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1rem;
    background: rgba(243,169,58,.14); color: var(--accent); border: 1px solid rgba(243,169,58,.3);
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: .92rem; margin: 0; }

/* Feature grid */
.features { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
    padding: 22px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border);
    transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature__icon {
    width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-card-2); color: var(--accent); margin-bottom: 14px;
}
.feature h3 { font-size: .98rem; margin-bottom: 6px; }
.feature p { color: var(--text-dim); font-size: .88rem; margin: 0; line-height: 1.5; }

/* Ticket-System - dieselben 9 Ticket-Typen/Icons/Labels wie im echten
   Ticket-Panel (siehe assets/js/icons.js TRANSPORT_ICON + play.js
   TICKET_LABEL) - keine erfundene Vereinfachung, sondern 1:1 der echte
   Mechanismus, den Spieler im Case sehen. */
.tickets { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ticket-chip {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
    transition: border-color .2s ease, transform .2s ease;
}
.ticket-chip:hover { border-color: var(--ticket-color, var(--accent)); transform: translateY(-2px); }
.ticket-chip__icon {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--ticket-color, var(--accent)) 20%, transparent);
    color: var(--ticket-color, var(--accent)); flex-shrink: 0;
}
.ticket-chip__label { font-size: .86rem; font-weight: 700; }
.ticket-chip__count { color: var(--text-dim); font-size: .74rem; font-weight: 600; }

/* Modes */
.modes { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 720px) { .modes { grid-template-columns: repeat(2, 1fr); } }
.mode {
    position: relative; padding: 24px; border-radius: 18px; border: 1px solid var(--border);
    background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
}
.mode__tag {
    display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--mode-color, var(--accent)); background: color-mix(in srgb, var(--mode-color, var(--accent)) 16%, transparent);
    border: 1px solid var(--mode-color, var(--accent)); border-radius: 999px; padding: 4px 10px; margin-bottom: 12px;
}
.mode h3 { font-size: 1.1rem; margin-bottom: 8px; }
.mode p { color: var(--text-dim); font-size: .92rem; margin: 0; }

/* Showcase */
.showcase { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .showcase { grid-template-columns: .95fr 1.05fr; } }
.showcase__list { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.showcase__item { display: flex; gap: 14px; }
.showcase__dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--detective); margin-top: 8px; }
.showcase__item h4 { font-size: .96rem; margin-bottom: 3px; }
.showcase__item p { color: var(--text-dim); font-size: .88rem; margin: 0; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; max-width: 76ch; }
.faq details {
    border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); padding: 4px 20px;
}
.faq summary {
    cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: .98rem;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; flex-shrink: 0; width: 18px; height: 18px;
    background: linear-gradient(currentColor, currentColor) center/12px 2px no-repeat,
                linear-gradient(currentColor, currentColor) center/2px 12px no-repeat;
    color: var(--text-dim); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-dim); font-size: .92rem; margin: 0 0 18px; line-height: 1.6; }

/* Final CTA band */
.cta-band {
    border-radius: 26px; padding: 56px 32px; text-align: center;
    background: radial-gradient(600px 300px at 50% 0%, rgba(243,169,58,.18), transparent 65%), var(--bg-elevated);
    border: 1px solid var(--border-soft);
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); margin-bottom: 26px; }
.cta-band .hero__ctas { justify-content: center; margin-bottom: 0; }

/* Footer */
.footer { border-top: 1px solid var(--border-soft); padding-block: 40px; color: var(--text-dim); font-size: .85rem; }
.footer__row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.footer__brand { display: flex; align-items: center; }
.footer__logo { height: 22px; width: auto; display: block; opacity: .9; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a:hover { color: var(--text); }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border-soft); padding-top: 18px; font-size: .78rem; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--accent); color: #241900;
    padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 800; z-index: 200;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
    .device, .feature, .btn { transition: none !important; }
}
