/* =====================================================================
   Einsatzbearbeitung – Der Simulator · Landingpage
   Eigene Gestaltung. Farben stehen hier und nur hier.
   ===================================================================== */
:root {
    --grund: #0B1016;          /* Seite */
    --grund-2: #0F1720;        /* abgesetzte Abschnitte */
    --flaeche: #131D28;        /* Karten, Kacheln */
    --kante: #22303F;
    --schrift: #E8EEF5;
    --schrift-leise: #A5B3C2;  /* 8,1:1 auf --grund */
    --blau: #3B8BFF;           /* Blaulicht, Handlung */
    --blau-dunkel: #1F5FD6;
    --rot: #FF3D3D;            /* Einsatz, Signal */
    --gelb: #FFC53D;
    --gruen: #3DDC84;
    --radius: 14px;
    --schatten: 0 20px 50px rgba(0, 0, 0, .45);
    --schrift-familie: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--grund); }
body {
    margin: 0; font-family: var(--schrift-familie); font-size: 17px; line-height: 1.6;
    color: var(--schrift); background: var(--grund); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blau); }
a:hover { color: #6EA8FF; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.rahmen { width: min(1180px, 100% - 40px); margin-inline: auto; }
.rahmen-schmal { width: min(780px, 100% - 40px); }

.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 16px; top: 16px; z-index: 100; background: var(--blau); color: #fff; padding: 8px 14px; border-radius: 8px; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; border-radius: 6px; }

/* ---------- Knoepfe ---------- */
.knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
    padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
    background: var(--blau); color: #fff;
    box-shadow: 0 8px 24px rgba(59, 139, 255, .35);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.knopf:hover { color: #fff; background: #5299FF; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(59, 139, 255, .45); }
.knopf-geist { background: transparent; border-color: var(--kante); box-shadow: none; color: var(--schrift); }
.knopf-geist:hover { background: var(--flaeche); border-color: var(--blau); box-shadow: none; }
.knopf-klein { padding: .55em 1.1em; font-size: .9rem; }

/* ---------- Kopfleiste ---------- */
.kopfleiste {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 16, 22, .82); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(34, 48, 63, .7);
}
.kopfleiste-innen { display: flex; align-items: center; gap: 24px; height: 68px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--schrift); }
.marke-text { display: flex; flex-direction: column; line-height: 1.1; }
.marke-oben { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--schrift-leise); }
.marke-unten { font-weight: 800; font-size: 1.05rem; }
.hauptnav { display: flex; gap: 22px; margin-left: auto; }
.hauptnav a { color: var(--schrift-leise); text-decoration: none; font-weight: 600; font-size: .95rem; }
.hauptnav a:hover { color: var(--schrift); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; padding: 72px 0 88px;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(59, 139, 255, .16), transparent 60%),
        radial-gradient(700px 400px at 10% 90%, rgba(255, 61, 61, .10), transparent 60%);
}
.hero-innen { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.vorzeile {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem;
    letter-spacing: .08em; text-transform: uppercase; color: var(--blau);
    background: rgba(59, 139, 255, .1); border: 1px solid rgba(59, 139, 255, .3);
    padding: 6px 12px; border-radius: 999px;
}
.punkt-live { width: 8px; height: 8px; border-radius: 50%; background: var(--rot); box-shadow: 0 0 0 0 rgba(255, 61, 61, .7); animation: puls 1.8s infinite; }
@keyframes puls { 70% { box-shadow: 0 0 0 10px rgba(255, 61, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 61, 0); } }
.betont { background: linear-gradient(90deg, #6EA8FF, var(--blau) 50%, #9CC3FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-unterzeile { font-size: 1.12rem; color: var(--schrift-leise); max-width: 36em; }
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-punkte { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--schrift-leise); font-size: .95rem; }
.hero-punkte li::before { content: "✓"; color: var(--gruen); font-weight: 800; margin-right: 6px; }

.hero-karte { position: relative; }
#karte { width: 100%; border-radius: 18px; box-shadow: var(--schatten); border: 1px solid var(--kante); }
.kartenschrift { font: 700 11px var(--schrift-familie); fill: var(--schrift-leise); letter-spacing: .04em; }
.blaulicht { fill: #3B8BFF; animation: blinken .5s steps(2) infinite; }
.blaulicht-2 { animation-delay: .25s; }
@keyframes blinken { 0% { fill: #3B8BFF; filter: drop-shadow(0 0 4px #3B8BFF); } 50% { fill: #0E2A55; filter: none; } }

.einsatzkarte {
    position: absolute; left: -28px; bottom: -26px; width: 248px;
    background: rgba(19, 29, 40, .96); border: 1px solid var(--kante); border-radius: var(--radius);
    padding: 14px 16px; box-shadow: var(--schatten); font-size: .85rem;
}
.einsatzkarte-kopf { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.marke-einsatz { background: var(--rot); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 6px; }
.einsatzkarte-ort { color: var(--schrift-leise); margin: 2px 0 8px; }
.einsatzkarte-fz { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.einsatzkarte-fz li { display: flex; align-items: center; gap: 8px; }
.fms { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 800; font-size: .8rem; color: #0B1016; }
.fms-3 { background: var(--gelb); }
.fms-4 { background: var(--gruen); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 96px 0; }
.abschnitt-dunkel { background: var(--grund-2); border-block: 1px solid var(--kante); }
.abschnitt-vorzeile { color: var(--blau); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; margin-bottom: .6em; }
.abschnitt-text { color: var(--schrift-leise); font-size: 1.1rem; max-width: 46em; }

.schritte { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.schritte li { background: var(--flaeche); border: 1px solid var(--kante); border-radius: var(--radius); padding: 28px; }
.schritte p { color: var(--schrift-leise); margin: 0; }
.schritt-nr {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--blau), var(--blau-dunkel)); font-weight: 800; font-size: 1.2rem;
}

.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.kachel {
    background: var(--flaeche); border: 1px solid var(--kante); border-radius: var(--radius); padding: 26px;
    transition: transform .2s ease, border-color .2s ease;
}
.kachel:hover { transform: translateY(-3px); border-color: rgba(59, 139, 255, .5); }
.kachel p { color: var(--schrift-leise); margin: 0; }
.kachel-symbol {
    width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 14px;
    border-radius: 12px; background: rgba(59, 139, 255, .12); color: var(--blau);
}
.kachel-symbol svg { width: 26px; height: 26px; }

/* ---------- Raenge ---------- */
.rangleiste {
    list-style: none; padding: 0; margin: 44px 0 0;
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; position: relative;
}
.rangleiste::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 3px; background: linear-gradient(90deg, var(--kante), var(--blau)); }
.rangleiste li { position: relative; text-align: center; font-weight: 600; font-size: .88rem; color: var(--schrift-leise); }
.abzeichen {
    display: block; width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%;
    background: var(--flaeche); border: 2px solid var(--kante); position: relative;
}
/* Abzeichen: Streifen je Stufe, eigene Gestaltung */
.abzeichen::after {
    content: ""; position: absolute; inset: 18px 16px;
    background: repeating-linear-gradient(180deg, var(--blau) 0 4px, transparent 4px 9px);
    clip-path: polygon(0 0, 50% 30%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.abzeichen[data-stufe="1"]::after { inset: 26px 18px; }
.abzeichen[data-stufe="2"]::after { inset: 24px 17px; }
.abzeichen[data-stufe="3"]::after { inset: 21px 16px; }
.abzeichen[data-stufe="5"]::after,
.abzeichen[data-stufe="6"]::after { background: repeating-linear-gradient(180deg, var(--gelb) 0 4px, transparent 4px 9px); }
.rang-ziel { color: var(--schrift) !important; }
.rang-ziel .abzeichen { border-color: var(--gelb); box-shadow: 0 0 0 6px rgba(255, 197, 61, .12), 0 0 30px rgba(255, 197, 61, .25); }
.rang-ziel .abzeichen::after { background: repeating-linear-gradient(180deg, var(--gelb) 0 5px, transparent 5px 8px); }

/* ---------- Fair ---------- */
.fair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.fair-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fair-liste li {
    background: var(--flaeche); border: 1px solid var(--kante); border-left: 4px solid var(--gruen);
    border-radius: 10px; padding: 14px 18px; color: var(--schrift-leise);
}
.fair-liste strong { color: var(--schrift); }

/* ---------- Fragen ---------- */
.fragen { margin-top: 32px; display: grid; gap: 12px; }
.fragen details { background: var(--flaeche); border: 1px solid var(--kante); border-radius: 12px; padding: 0 20px; }
.fragen summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; color: var(--blau); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details p { color: var(--schrift-leise); margin: 0 0 18px; }

/* ---------- Warteliste ---------- */
.abschnitt-cta {
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(59, 139, 255, .22), transparent 70%),
        var(--grund-2);
    border-top: 1px solid var(--kante);
}
.cta { text-align: center; }
.cta > p { color: var(--schrift-leise); font-size: 1.1rem; }
.warteliste { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 28px; text-align: left; }
.warteliste input[type="email"] {
    font: inherit; padding: .85em 1.2em; border-radius: 999px; border: 2px solid var(--kante);
    background: var(--grund); color: var(--schrift);
}
.warteliste input[type="email"]:focus { border-color: var(--blau); outline: none; }
.zustimmung { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--schrift-leise); }
.zustimmung input { margin-top: .35em; accent-color: var(--blau); }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.warteliste-meldung { grid-column: 1 / -1; min-height: 1.6em; margin: 0; font-weight: 600; text-align: center; }
.warteliste-meldung.gut { color: var(--gruen); }
.warteliste-meldung.fehler { color: #FF7A7A; }

/* ---------- Fuss ---------- */
.fuss { padding: 40px 0; border-top: 1px solid var(--kante); color: var(--schrift-leise); font-size: .9rem; }
.fuss-innen { display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: center; }
.fuss-marke { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--schrift); }
.fuss-nav { display: flex; gap: 20px; }
.fuss-nav a { color: var(--schrift-leise); text-decoration: none; }
.fuss-nav a:hover { color: var(--schrift); }
.fuss-klein { grid-column: 1 / -1; margin: 0; font-size: .82rem; }
.fuss-klein a { color: var(--schrift-leise); }

/* ---------- Rechtsseiten ---------- */
.rechtstext { padding: 64px 0 96px; }
.rechtstext h1 { font-size: 2.2rem; }
.rechtstext h2 { font-size: 1.3rem; margin-top: 1.6em; }
.rechtstext p, .rechtstext li { color: var(--schrift-leise); }
.platzhalter { background: rgba(255, 197, 61, .15); color: var(--gelb); padding: 0 4px; border-radius: 4px; }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 960px) {
    .hero-innen, .fair { grid-template-columns: 1fr; }
    .hero-karte { max-width: 560px; margin: 0 auto 30px; }
    .einsatzkarte { left: 12px; bottom: -30px; }
    .kacheln { grid-template-columns: repeat(2, 1fr); }
    .rangleiste { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
    .rangleiste::before { display: none; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .hauptnav { display: none; }
    .kopfleiste .knopf-klein { margin-left: auto; }
    .marke-oben { display: none; }
    .hero { padding: 40px 0 70px; }
    .schritte, .kacheln { grid-template-columns: 1fr; }
    .rangleiste { grid-template-columns: repeat(2, 1fr); }
    .abschnitt { padding: 64px 0; }
    .warteliste { grid-template-columns: 1fr; }
    .fuss-innen { grid-template-columns: 1fr; }
}

/* Wer weniger Bewegung moechte, bekommt eine ruhige Seite. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
