/* =====================================================================
   Leitstelle St. Pölten – Oberfläche
   Designsystem: dunkle Leitstellen-Konsole, ruhige Flächen, klare Hierarchie,
   Organisationsfarben nur als Kennung. Layout passt sich in vier Stufen an:
   ≥1440 Leitstand · ≥1180 Laptop · ≥821 Tablet (Fahrzeuge als Schublade) · Handy (Tab-Leiste)
   ===================================================================== */
:root {
  --bg: #080c13;
  --surface: #0e141f;
  --surface-2: #131a27;
  --surface-3: #192232;
  --hover: rgba(148, 170, 210, 0.07);
  --line: #1f293a;
  --line-2: #2a3649;
  --text: #e7ebf3;
  --text-2: #b4bfd1;
  --muted: #7d8aa1;
  --faint: #566277;
  --accent: #5aaeff;
  --accent-bg: rgba(90, 174, 255, 0.12);
  --accent-line: rgba(90, 174, 255, 0.45);
  --fw: #f0524a;
  --rd: #ff8a1f;
  --pol: #4f8dff;
  --ok: #34c77b;
  --warn: #f5a524;
  --crit: #ef4444;
  --s1: #34c77b;  /* frei Funk */
  --s2: #1f9d61;  /* frei Wache */
  --sA: #ff7a45;  /* alarmiert */
  --s3: #f8c537;  /* Anfahrt */
  --s4: #ef4444;  /* vor Ort */
  --s7: #b37feb;  /* Transport */
  --s8: #7c8cff;  /* Zielort */
  --radius: 12px;
  --radius-s: 8px;
  --gap: 10px;
  --top-h: 56px;
  --tab-h: 0px;
  --lw: 340px;   /* linke Spalte */
  --rw: 350px;   /* rechte Spalte */
  --dock-h: 250px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: dark;
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01", "tnum";
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
body { display: flex; flex-direction: column; overflow: hidden; height: 100dvh; }
button { font: inherit; color: inherit; cursor: pointer; }
select, input { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 7px 9px; }
select:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90,174,255,.16); }
select option { background: #121a28; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #243046; border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #31405b; }
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: #243046 transparent; }

/* ---------------- Kopfzeile ---------------- */
.top { height: var(--top-h); flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 1300; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 8px 4px 0; text-align: left; }
.brand-pfeil { color: var(--faint); font-size: 11px; }
.brand-t b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.1px; white-space: nowrap; }
.brand-t small { display: block; color: var(--muted); font-size: 11px; }
/* Logo: Einsatzort-Pin im Ring aus Feuerwehr-Rot, Rettungs-Orange und Polizei-Blau (static/logo.svg) */
.app-logo { width: 30px; height: 30px; flex: none; border-radius: 8px; background: url(/static/logo.svg) center / contain no-repeat; box-shadow: 0 2px 8px rgba(0,0,0,.35); }

.top-status { display: flex; gap: 6px; margin-left: 8px; }
.kpi { display: flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); }
.kpi:hover { border-color: var(--line-2); background: var(--surface-3); }
.kpi-v { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-l { color: var(--muted); font-size: 11px; }
.kpi-calls.aktiv { border-color: rgba(239,68,68,.6); background: rgba(239,68,68,.14); animation: kpiPuls 1.2s infinite; }
.kpi-calls.aktiv .kpi-v { color: #ff8a8a; }
@keyframes kpiPuls { 50% { box-shadow: 0 0 0 4px rgba(239,68,68,.12); } }

/* Lageblock: Tageszeit + Uhr + Datum | Wetter mit Fahrhinweis */
.lage { margin-left: auto; display: flex; align-items: stretch; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); }
.lage-trenn { width: 1px; margin: 8px 0; background: var(--line-2); }
.clock { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 0 14px 0 12px; border-radius: 11px 0 0 11px; }
.clock:hover { background: var(--hover); }
.clock-t { display: flex; flex-direction: column; line-height: 1.1; }
.clock-t > span { font-size: 20px; font-weight: 700; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.clock-t small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.clock-t small .ft { color: var(--warn); font-weight: 600; }
.clock-t small .d-kurz { display: none; }
.tp-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; }
.tp-ico.tag { color: #ffd666; background: rgba(255,214,102,.12); }
.tp-ico.daemmerung { color: #ffa45c; background: rgba(255,164,92,.12); }
.tp-ico.nacht { color: #b6c6ff; background: rgba(140,160,255,.12); }
.wetter { display: flex; align-items: center; gap: 9px; padding: 0 14px 0 12px; }
.wx-t { display: flex; flex-direction: column; line-height: 1.1; }
.wx-t b { font-size: 16px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wx-t b i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-2); margin-left: 1px; }
.wx-t small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.wx-hinweis { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11px; font-weight: 600; white-space: nowrap;
  color: #ffd27a; background: rgba(245,165,36,.12); border: 1px solid rgba(245,165,36,.35); }
.wx-hinweis svg { fill: currentColor; }
.wx-hinweis.stark { color: #ff8f8f; background: rgba(255,77,79,.12); border-color: rgba(255,77,79,.4); }
.wx-ico { display: inline-flex; color: #ffd666; }
.wx-ico.bewoelkt, .wx-ico.nebel { color: #bfc8d8; } .wx-ico.regen, .wx-ico.starkregen { color: #69b1ff; }
.wx-ico.gewitter { color: #ffc53d; } .wx-ico.sturm { color: #95de64; } .wx-ico.schnee, .wx-ico.glaette { color: #e6f4ff; }

.ctl { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.seg { display: flex; padding: 2px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.seg button { background: none; border: 0; padding: 5px 9px; color: var(--muted); border-radius: 7px; font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.seg button:hover { color: var(--text); background: var(--hover); }
.seg button.on { background: var(--accent); color: #04121f; }
.rate { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.rate select { padding: 5px 7px; }
.kopf-score { display: flex; gap: 2px; padding-left: 10px; border-left: 1px solid var(--line); }
.kopf-score div { display: flex; flex-direction: column; align-items: center; min-width: 50px; }
.kopf-score span { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kopf-score small { color: var(--muted); font-size: 10.5px; }
.icon { width: 32px; height: 32px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; }
.icon:hover { background: var(--surface-3); border-color: var(--line-2); }
.icon svg { fill: var(--text-2); }
.icon:hover svg { fill: var(--text); }
#ton .strich { stroke: var(--crit); display: none; }
#ton.aus .strich { display: inline; }
#ton.aus .glocke { fill: var(--faint); }
body:not(.admin) .dev-btn, body:not(.admin) .devpanel { display: none !important; }
body:not(.admin) .clock { cursor: default; }
body:not(.admin) .clock:hover { background: none; }
.dev-btn { width: auto; padding: 0 10px; font-weight: 800; font-size: 11px; letter-spacing: .8px; color: #f5a524; border-color: rgba(245,165,36,.35); }
.dev-btn.on { background: rgba(245,165,36,.18); }
.conn { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--crit); box-shadow: 0 0 0 3px rgba(239,68,68,.18); }
.conn.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(52,199,123,.16); }

/* ---------------- Grundlayout ---------------- */
.shell { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--lw) minmax(0, 1fr) var(--rw); gap: var(--gap); padding: var(--gap); }
.col { min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.col-mid { gap: var(--gap); }
.mapwrap { position: relative; flex: 1; min-height: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b1020; }
#map { position: absolute; inset: 0; background: #0b1020; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.panel.grow { flex: 1; }
.panel h2 { margin: 0; padding: 0 12px; height: 42px; flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-2); display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.panel h2 .ttl { white-space: nowrap; }
.badge { min-width: 20px; text-align: center; background: var(--surface-3); color: var(--text-2); border-radius: 20px; padding: 1px 7px; font-size: 11px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.badge.crit:not(:empty):not([data-null]) { background: rgba(239,68,68,.18); color: #ff8a8a; }
.list { overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 0; flex: 1; }
.list > * { flex: none; }
.empty { color: var(--faint); text-align: center; padding: 18px 8px; font-size: 12px; }
.p-calls { flex: none; max-height: 34%; }
.p-calls .list { flex: 0 1 auto; }
.p-vk { flex: none; max-height: 28%; }
.panel.blink, .col-right.blink > .panel { animation: hervor .9s ease; }
@keyframes hervor { 30% { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90,174,255,.2); } }
.drawer-x { display: none; margin-left: 4px; background: none; border: 0; color: var(--muted); font-size: 14px; padding: 4px 6px; border-radius: 6px; }
.drawer-x:hover { background: var(--hover); color: var(--text); }

/* ---------------- Notrufe ---------------- */
.call { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(239,68,68,.45); background: linear-gradient(90deg, rgba(239,68,68,.16), rgba(239,68,68,.06)); cursor: pointer; position: relative; overflow: hidden; }
.call::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--crit); animation: klingel 1s infinite; }
.call:hover { border-color: rgba(239,68,68,.8); }
@keyframes klingel { 50% { opacity: .25; } }
.call .num { font-weight: 800; font-size: 14px; min-width: 46px; text-align: center; padding: 5px 6px; border-radius: 7px; background: rgba(239,68,68,.22); color: #ffb3b3; }
.call .who b { display: block; font-size: 13px; }
.call .who small { color: var(--text-2); font-size: 11.5px; }
.call .wait { font-variant-numeric: tabular-nums; color: #ff9b9b; font-weight: 700; font-size: 13px; }

/* ---------------- Einsätze ---------------- */
.inc { position: relative; padding: 9px 10px 9px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.inc::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-2); }
.inc.org-FW::before { background: var(--fw); } .inc.org-RD::before { background: var(--rd); } .inc.org-POL::before { background: var(--pol); }
.inc:hover { border-color: var(--line-2); background: var(--surface-3); }
.inc.sel { border-color: var(--accent-line); background: rgba(90,174,255,.08); }
.inc .row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.inc .title { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inc .addr { color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inc .meta { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.inc.offen { border-color: rgba(245,165,36,.5); }
.inc.warn { border-color: rgba(239,68,68,.6); }
.inc.fertig { opacity: .55; }
.inc.fertig:hover { opacity: .85; }
.code { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.code.FW { color: #ff8a83; } .code.RD { color: #ffc266; } .code.POL { color: #8db4ff; }
.pill { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 20px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.pill.warn { background: rgba(245,165,36,.16); color: #ffc266; }
.pill.crit { background: rgba(239,68,68,.16); color: #ff8a8a; }
.pill.ok { background: rgba(52,199,123,.14); color: #5fd99a; }

/* ---------------- Fahrzeuge ---------------- */
.filters { margin-left: auto; display: flex; gap: 2px; padding: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; }
.filters button { border: 0; background: none; color: var(--muted); padding: 2px 7px; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.filters button:hover { color: var(--text); }
.filters button.on { background: var(--surface-3); color: var(--text); }
.fz-such { padding: 8px 8px 0; flex: none; }
.fz-such input { width: 100%; }
.wache { margin-top: 2px; }
.wache h3 { margin: 8px 4px 3px; font-size: 11px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.wache h3 .dot { width: 7px; height: 7px; margin: 0; }
.wache h3.reg, .region h3.reg { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); margin: 10px 2px 4px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.region h3.reg:hover { color: var(--text); }
.region h3.reg .badge, .wache h3.reg .badge { margin-left: auto; font-weight: 600; text-transform: none; letter-spacing: 0; }
.veh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 7px; cursor: pointer; }
.veh:hover { background: var(--hover); }
.veh .ruf { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.veh .typ { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.fms { min-width: 22px; height: 20px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11.5px; color: #06101a; font-variant-numeric: tabular-nums; }
.fms.s1 { background: var(--s1); } .fms.s2 { background: var(--s2); } .fms.sA { background: var(--sA); } .fms.s3 { background: var(--s3); }
.fms.s4 { background: var(--s4); color: #fff; } .fms.s7 { background: var(--s7); } .fms.s8 { background: var(--s8); } .fms.s6 { background: #4a5263; color: #ddd; }

/* ---------------- Protokolle (Dock unter der Karte) ---------------- */
.dock { flex: none; height: var(--dock-h); display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: height .2s ease; }
.dock-tabs { display: none; align-items: center; gap: 4px; padding: 0 8px; height: 44px; flex: none; border-bottom: 1px solid var(--line); }
.dock-tabs .sp { flex: 1; }
.dock-min, .lp-min { border: 0; background: none; color: var(--faint); width: 28px; height: 28px; border-radius: 7px; cursor: pointer; flex: none; font-size: 12px; }
.dock-min:hover, .lp-min:hover { background: var(--hover); color: var(--text); }
.dock-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 3fr 2fr; }
.logp { min-height: 0; display: flex; flex-direction: column; }
.logp + .logp { border-left: 1px solid var(--line); }
/* Kopf je Spalte: Reiter als Segmentschalter mit Symbol und Anzahl */
.lp-kopf { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 10px; flex: none; border-bottom: 1px solid var(--line); }
.lp-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.dock-tabs.lp-tabs { display: none; padding: 0 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.lp-tab { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--muted);
  font: 600 12.5px/1 var(--font); letter-spacing: 0; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.lp-tab:hover { color: var(--text); background: var(--hover); }
.lp-tab.on { color: var(--text); background: var(--surface-3); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 1px 3px rgba(0,0,0,.25); }
/* Anzahl ungelesener Einträge */
.lp-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 10.5px/18px var(--font);
  text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface); }
.lp-n:empty { display: none; }
.lp-n[data-n="lage"] { background: #ff8a1f; }
/* Lagemeldungen: eigene Karten statt Funkgespräch – Farbe der meldenden Organisation, Nachforderungen hervorgehoben */
.log > .lk { position: relative; margin: 4px 2px 8px; padding: 9px 12px 10px 14px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--line); --lk: #5aaeff; }
.log > .lk::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: var(--lk); }
.lk.lk-FW { --lk: #e62828; } .lk.lk-RD { --lk: #ff8a1f; } .lk.lk-POL { --lk: #1e6bff; }
.lk.klick { cursor: pointer; } .lk.klick:hover { border-color: var(--line-2); background: var(--surface-3); }
.lk-kopf { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lk-kopf b { font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.lk-kopf time { color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.lk-org { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px;
  color: #fff; background: var(--lk); }
.lk-wo { margin-top: 2px; color: var(--muted); font-size: 12px; }
.lk-wo span { margin-left: 4px; }
.lk-text { margin-top: 6px; color: #dfe5f0; line-height: 1.5; }
.lk-erh { margin-top: 6px; color: #ffcf7a; font-weight: 600; }
.lk-nf { margin-top: 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.lk-nf-t { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #ffcf7a; margin-right: 2px; }
.lk-chip { padding: 2px 8px; border-radius: 6px; background: rgba(245,165,36,.14); border: 1px solid rgba(245,165,36,.35); color: #ffd99a; font-size: 12px; }
.lk.lk-dringend { border-color: rgba(245,165,36,.45); }
/* Nachforderung: auffällig – orangefarbener Rahmen, Band oben, größere Kästchen, Knopf zum Disponieren */
.log > .lk.lk-mit-nf { border: 2px solid #ff8a1f; background: linear-gradient(180deg, rgba(255,138,31,.16), var(--surface-2) 60%);
  box-shadow: 0 0 0 3px rgba(255,138,31,.12), 0 6px 18px rgba(0,0,0,.35); padding-top: 0; overflow: hidden; }
.lk-mit-nf::before { display: none; }
.lk-nf-band { display: flex; align-items: center; gap: 8px; margin: 0 -12px 8px -14px; padding: 6px 12px; background: #ff8a1f; color: #1b0d00;
  font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.lk-nf-band small { font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .75; }
/* Laufweite des Bandes (letter-spacing) nicht aufs Rufzeichen übertragen – sonst sitzt es links neben der Mitte */
.lk-nf-ico { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #1b0d00; color: #ff8a1f; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; line-height: 1; letter-spacing: 0; text-indent: 0; padding: 0; animation: nf-puls 1.4s ease-in-out infinite; }
@keyframes nf-puls { 50% { transform: scale(1.25); } }
.lk-mit-nf .lk-chip { background: rgba(255,138,31,.22); border-color: rgba(255,138,31,.6); color: #ffe2c2; font-weight: 600; font-size: 12.5px; padding: 3px 9px; }
.lk-nf-btn { margin-left: auto; border: 0; border-radius: 8px; padding: 6px 12px; background: #ff8a1f; color: #1b0d00; font: 700 12px var(--font); cursor: pointer; }
.lk-nf-btn:hover { filter: brightness(1.1); }
@media (prefers-reduced-motion: reduce) { .lk-nf-ico { animation: none; } }
.lp-i { width: 14px; height: 14px; flex: none; background: currentColor; opacity: .85;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.i-funk { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 9h10a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2Zm1 4v2h8v-2H8Zm0 4v2h3v-2H8ZM8 2l9.6 5.4-1 1.7L7 3.7 8 2Z'/%3E%3C/svg%3E"); }
.i-lage { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v2h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h3V2Zm0 8v2h6v-2H9Zm0 4v2h8v-2H9Zm-2-4v2h1v-2H7Zm0 4v2h1v-2H7Z'/%3E%3C/svg%3E"); }
.i-bew { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.3 6.9.9-5 4.8 1.2 6.9L12 17.6 5.9 20.9 7.1 14l-5-4.8 6.9-.9L12 2Z'/%3E%3C/svg%3E"); }
.i-spiel { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v2H4V5Zm0 6h16v2H4v-2Zm0 6h10v2H4v-2Z'/%3E%3C/svg%3E"); }
.logp[data-sub="funk"] #lagemeld, .logp[data-sub="lage"] #funk, .logp[data-sub="bew"] #spielprot, .logp[data-sub="spiel"] #bewert { display: none; }
/* Einträge: Uhrzeit links, farbige Markierung je Art; eigene Klassennamen (lg-…), damit nichts mit anderen UI-Klassen kollidiert */
.log { flex: 1; min-height: 0; overflow: auto; padding: 6px 8px 8px; font-family: var(--font); font-size: 12.5px; line-height: 1.45; }
.log > .lg { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 8px; align-items: start; padding: 6px 8px 6px 10px; margin: 0;
  color: #c3ccdb; border-radius: 8px; }
.log > .lg + .lg { margin-top: 1px; }
.log > .lg::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--lg-c, transparent); }
.log > .empty { padding: 14px 10px; color: var(--faint); }
.lg time { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 11.5px; padding-top: 1px; }
.lg-z { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.lg-k { color: var(--text); }
.lg-d { color: var(--muted); }
.lg.a-warn { --lg-c: var(--warn); } .lg.a-warn .lg-k { color: #ffcf7a; }
.lg.a-lage { --lg-c: #5aaeff; } .lg.a-fertig { --lg-c: var(--ok); } .lg.a-anruf { --lg-c: #ff7b7b; } .lg.a-verkehr { --lg-c: #ff9f45; }
.lg.a-alarm { --lg-c: #c08bff; } .lg.a-status { --lg-c: #3a4659; } .lg.a-info, .lg.a-funk { --lg-c: #3a4659; }
.lg.a-status .lg-k { color: var(--text-2); }
.lg.klick { cursor: pointer; } .lg.klick:hover { background: var(--hover); }
/* Funkgespräch: Sprecher als kleine Marke, Wortlaut daneben */
.lg-f { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 8px; row-gap: 3px; align-items: baseline; }
.lg-w { font-size: 11px; font-weight: 600; color: var(--text-2); padding: 1px 6px; border-radius: 5px; background: rgba(148,170,210,.10); white-space: nowrap;
  max-width: 170px; overflow: hidden; text-overflow: ellipsis; justify-self: start; }
.lg-w.lst { background: var(--accent-bg); color: #9fd0ff; }
.lg-s { color: #d5dceb; }
.lg-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 1px 6px; margin-right: 6px; border-radius: 5px; vertical-align: 1px;
  background: rgba(148,170,210,.12); color: var(--text-2); }
.lg-tag.t-lage { background: rgba(90,174,255,.16); color: #9fd0ff; } .lg-tag.t-warn { background: rgba(245,165,36,.16); color: #ffcf7a; }
/* Bewertungen als Karten mit Punkte-Abzeichen */
.lg.bew { grid-template-columns: 58px minmax(0, 1fr) auto; align-items: start; }
.lg-pkt { min-width: 44px; padding: 4px 8px; border-radius: 9px; text-align: center; font-weight: 800; font-size: 14px; line-height: 1.1; font-variant-numeric: tabular-nums;
  background: rgba(52,199,123,.14); color: #6fe0a2; }
.lg-pkt small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .03em; opacity: .85; }
.lg-pkt.mittel { background: rgba(245,165,36,.14); color: #ffcf7a; } .lg-pkt.schlecht { background: rgba(239,68,68,.14); color: #ff8a8a; }
body.dock-zu .dock { height: 46px; }
body.dock-zu .dock .log { display: none; }
body.dock-zu .lp-min, body.dock-zu .dock-min { transform: rotate(180deg); }
/* Einsatzprotokoll in der Detailansicht: kompakter */
.box .log { padding: 0; }
.box .log > .lg { grid-template-columns: 52px minmax(0, 1fr); padding: 4px 6px 4px 9px; }

/* ---------------- Karte ---------------- */
.legend { position: absolute; left: 10px; bottom: 10px; z-index: 500; display: flex; gap: 12px; background: rgba(10,14,22,.82); backdrop-filter: blur(8px); padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); font-size: 11.5px; color: var(--text-2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot.juh { background: #d81b45; } .dot.fw { background: var(--fw); } .dot.rd { background: var(--rd); } .dot.pol { background: var(--pol); }
.leaflet-container { font: inherit; }
.leaflet-tile-pane .luft { filter: saturate(.9) contrast(1.05) brightness(.92); }
.leaflet-tile-pane .luft-nacht { filter: brightness(.42) saturate(.55) contrast(1.15) hue-rotate(-8deg); }
.leaflet-tile-pane .overlay-nacht { filter: brightness(1.35); }
.leaflet-tile-pane .leaflet-gl-layer { z-index: 0; }   /* Grundkarte (Vektor) unter allen Ebenen */
.leaflet-tile-pane .welt:not(.plan-nacht) { filter: saturate(.85) brightness(1.02); }
.leaflet-tile-pane .plan-nacht { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.75); }
.kartenwahl { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.kw-schalter { display: flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(14,20,31,.94); backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.kw-schalter button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); padding: 6px 11px; border-radius: 7px; font-weight: 600; font-size: 12px; }
.kw-schalter button svg { fill: currentColor; }
.kw-schalter button:hover { color: var(--text); }
.kw-schalter button.on { background: var(--surface-3); color: var(--text); }
.leaflet-control-attribution { background: rgba(10,14,22,.75) !important; color: var(--muted) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--accent) !important; }
.leaflet-top.leaflet-left .leaflet-control-zoom { margin-top: 8px; }
.leaflet-control-zoom { border: 1px solid var(--line-2) !important; border-radius: 10px !important; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.4) !important; }
.leaflet-control-zoom a { background: rgba(14,20,31,.94) !important; color: var(--text) !important; border-color: var(--line) !important; width: 32px !important; height: 32px !important; line-height: 32px !important; }
.leaflet-control-zoom a:hover { background: var(--surface-3) !important; }
.st-ico { box-sizing: border-box; width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.st-ico.FW { background: linear-gradient(160deg, #ff7a6e, #d92d22); } .st-ico.RD { background: linear-gradient(160deg, #ffc857, #e08a00); }
.st-ico.POL { background: linear-gradient(160deg, #5aa0ff, #1f5fd1); } .st-ico.KH { background: #fff; border-color: #d93025; }
.st-ico.KH svg { fill: #d93025; }
/* alle Wachensymbole gleich groß: 28 × 28 px Außenmaß, Bildzeichen ohne Emblem 16 px */
.st-ico:not(.logo) svg { width: 16px; height: 16px; }
/* eigene Wachenembleme (keine Original-Logos oder Schutzzeichen) */
.st-ico.logo { padding: 0; border: 0; background: none; border-radius: 0; box-shadow: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)); }
.st-ico.logo svg { width: 28px; height: 28px; display: block; }
.st-ico.logo.FW svg { width: 23px; height: 29px; }
#map.pick, #map.pick .leaflet-interactive { cursor: crosshair !important; }

/* Marker-Kasten größer als das Symbol, damit Ring, Schatten und Blaulicht nicht abgeschnitten werden;
   anklickbar ist nur das Symbol selbst */
.leaflet-marker-icon.mk-box { display: flex; align-items: center; justify-content: center; pointer-events: none !important; background: none; border: 0; }
.leaflet-marker-icon.mk-box > * { pointer-events: auto; flex: none; }
.leaflet-marker-icon.mk-box .halo, .leaflet-marker-icon.mk-box .ring, .leaflet-marker-icon.mk-box .vlab { pointer-events: none; }
/* Fahrzeuge auf der Karte (Draufsicht) */
.vmk { position: relative; width: 44px; height: 44px; pointer-events: auto; }
.vmk .vrot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 0; transition: transform .25s linear; isolation: isolate; }
.vmk .vrot svg { position: relative; }
.vmk .vrot svg.kar { filter: drop-shadow(0 1.5px 2px rgba(0,0,0,.55)); }
.vmk.gross .vrot svg.kar { transform: scale(1.3); }
/* Lichtkegel der Blaulichter: eigene Ebene unter dem Fahrzeug, dreht mit */
.vmk .vrot svg.licht { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; overflow: visible; filter: blur(.5px); }
.vmk.gross .vrot svg.licht { transform: translate(-50%, -50%) scale(1.3); }
.vmk .gl { opacity: 0; }
.vmk .gl.a { animation: blitzL .75s infinite; }
.vmk .gl.b { animation: blitzR .75s infinite; }
.vmk .lb { fill: #1d4fae; stroke: rgba(0,0,0,.35); stroke-width: .3; }   /* ausgeschaltet: dunkles Blau (Linsenfarbe) */
/* Blaulicht: zwei abwechselnd aufblitzende Lichtkegel, Rhythmus ~0,75 s */

/* Lichtschein fest am Fahrzeug (dreht mit): vorne am Fahrerhaus und hinten am Heck, abwechselnd */
.vmk .vrot .halo { position: absolute; inset: -16px -14px; pointer-events: none; z-index: -1; }
.vmk .halo i { position: absolute; left: 50%; width: 40px; height: 32px; margin-left: -20px; border-radius: 50%; opacity: 0;
  background: radial-gradient(ellipse, rgba(210,230,255,.8) 0%, rgba(40,120,255,.6) 22%, rgba(20,90,255,.22) 48%, rgba(20,90,255,0) 70%); }
.vmk .halo .vo { top: -2px; animation: blitzL .75s infinite; }
.vmk .halo .hi { bottom: -2px; animation: blitzR .75s infinite; }
/* herausgezoomt: ein einzelnes Blaulicht mittig am Fahrzeug – ruhiger Doppelblitz alle 1,3 s (viele Fahrzeuge sollen nicht flimmern) */
.vmk.klein .vrot .halo { inset: 0; }
.vmk.klein .halo .mi { left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; animation: blitzM 1.3s ease-in-out infinite;
  background: radial-gradient(circle, rgba(215,232,255,.9) 0%, rgba(40,120,255,.75) 24%, rgba(20,90,255,.28) 50%, rgba(20,90,255,0) 70%); }
@keyframes blitzM { 0% { opacity: 0; } 6%, 14% { opacity: .95; } 22% { opacity: .2; } 30%, 38% { opacity: .85; } 50%, 100% { opacity: 0; } }
@keyframes blitzL { 0%, 10% { opacity: .9; } 18%, 24% { opacity: .1; } 30%, 38% { opacity: .8; } 48%, 100% { opacity: 0; } }
@keyframes blitzR { 0%, 50% { opacity: 0; } 52%, 60% { opacity: .9; } 68%, 74% { opacity: .1; } 80%, 88% { opacity: .8; } 98%, 100% { opacity: 0; } }
.vmk.sosi .lb.a { animation: lbA .75s steps(1) infinite; }
.vmk.sosi .lb.b { animation: lbB .75s steps(1) infinite; }
/* Doppelblitz: Linse leuchtet im selben Takt wie ihr Lichtkegel */
@keyframes lbA { 0% { fill: #eaf3ff; } 12% { fill: #1d4fae; } 26% { fill: #eaf3ff; } 40% { fill: #1d4fae; } }
@keyframes lbB { 0% { fill: #1d4fae; } 50% { fill: #eaf3ff; } 62% { fill: #1d4fae; } 76% { fill: #eaf3ff; } 90% { fill: #1d4fae; } }
.vmk .rotor { transform-origin: 17px 17px; }
/* Rotordrehung steuert app.js (rotorDrehen): Aus- und Anlaufen nach Spielzeit */
@keyframes rotor { to { transform: rotate(360deg); } }
.vmk .vlab { position: absolute; left: 33px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 3px; height: 17px; padding: 0 2px 0 6px; border-radius: 9px; background: rgba(12,17,28,.88); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 10px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.vmk.gross .vlab { left: 38px; }
.vmk .vlab b { font-weight: 800; letter-spacing: .2px; }
.vmk .vlab::before { content: ""; width: 6px; height: 6px; border-radius: 50%; margin-right: 1px; }
.vmk .vlab.FW::before { background: var(--fw); } .vmk .vlab.RD::before { background: var(--rd); } .vmk .vlab.POL::before { background: var(--pol); }
.vmk .vlab .fms { min-width: 14px; height: 13px; font-size: 9.5px; border-radius: 6px; }
.vmk.klein { width: 18px; height: 18px; }
.vmk.klein .pfeil { stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.vmk.klein.FW .pfeil { fill: #d92d22; } .vmk.klein.RD .pfeil { fill: #e08a00; } .vmk.klein.POL .pfeil { fill: #1f5fd1; }
/* Einsatzstellen */
.inc-mk { position: relative; width: 36px; height: 36px; }
.inc-mk .disc { position: absolute; inset: 2px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 3px 14px rgba(0,0,0,.6); background: #ff4d4f; }
.inc-mk.FW .disc { background: radial-gradient(circle at 35% 30%, #ff8a7f, #d92d22); }
.inc-mk.RD .disc { background: radial-gradient(circle at 35% 30%, #ffb15c, #ef6c00); }
.inc-mk.POL .disc { background: radial-gradient(circle at 35% 30%, #7db4ff, #1f5fd1); }
.inc-mk.neu .disc { background: radial-gradient(circle at 35% 30%, #cf8bff, #8e24d8); }
.inc-mk .ring { position: absolute; inset: 2px; border-radius: 50%; border: 2px solid rgb(var(--puls)); opacity: 0; }
.inc-mk.anruf .ring, .inc-mk.offen .ring { animation: wave 1.4s infinite; }
.inc-mk .ring2 { display: none; }
/* Einsatzstelle mit Kräften vor Ort: pulsierender Doppelring in der Farbe der Einsatzart
/* Kräfte vor Ort: pulsierender Doppelring in der Farbe der Einsatzart (Feuerwehr rot, Rettung gelb, Polizei blau) */
/* Jede Einsatzart hat eine eigene, auf hellem und dunklem Kartengrund gut sichtbare Farbe – keine doppelt:
   Feuerwehr Rot, Rettung kräftiges Orange (statt blassem Gelb), Polizei Blau, unklassifizierter Notruf Violett.
   Ein schmaler dunkler Rand hebt den Ring zusätzlich vom Kartengrund ab. */
.inc-mk { --puls: 30,107,255; }
.inc-mk.FW { --puls: 230,40,40; } .inc-mk.RD { --puls: 255,128,0; } .inc-mk.POL { --puls: 30,107,255; } .inc-mk.neu { --puls: 170,60,255; }
.inc-mk.blau .ring, .inc-mk.blau .ring2 { display: block; border: 3px solid rgb(var(--puls)); box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 0 10px rgba(var(--puls),.9), inset 0 0 0 1px rgba(0,0,0,.35), inset 0 0 6px rgba(var(--puls),.6); animation: wave-blau 1.8s ease-out infinite; }
.inc-mk.blau .disc { box-shadow: 0 0 0 3px rgba(var(--puls),.75), 0 0 14px rgba(var(--puls),.55), 0 3px 14px rgba(0,0,0,.6); }
.inc-mk.blau .ring2 { animation-delay: .9s; }
@keyframes wave-blau { 0% { transform: scale(1); opacity: 1; } 70% { opacity: .35; } 100% { transform: scale(2.3); opacity: 0; } }
.inc-mk.fertig .disc { background: #2fd27a; opacity: .75; }
@keyframes wave { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.inc-mk .orgs { position: absolute; top: -3px; right: -5px; display: flex; gap: 1px; }
.inc-mk .orgs i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; }
.inc-mk .orgs i.FW { background: var(--fw); } .inc-mk .orgs i.RD { background: var(--rd); } .inc-mk .orgs i.POL { background: var(--pol); }
/* ungefährer Standort (nur Handyortung): gelbes Fadenkreuz, gestrichelter Rand */
.inc-mk.ungenau { --puls: 255,176,32; }
.inc-mk.ungenau .disc { background: radial-gradient(circle at 35% 30%, #ffd36b, #ffb020); border: 2px dashed #fff; }
.inc-mk.ungenau .lbl { color: #ffd36b; }
.inc-mk .lbl { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: rgba(10,14,22,.9); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; font-size: 10.5px; font-weight: 700; color: #fff; }
.leaflet-container:not(.nah) .inc-mk .lbl { display: none; }
.leaflet-tooltip { background: rgba(14,20,31,.96); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.45); font-size: 12px; }
.leaflet-tooltip-top::before { border-top-color: rgba(14,20,31,.96); }
.leaflet-tooltip.vlabel { background: rgba(10,14,22,.88); border-radius: 6px; padding: 1px 6px; font-size: 11px; box-shadow: none; }
.leaflet-tooltip.vlabel::before { display: none; }

/* ---------------- Detailfenster (Einsatz, Wache, Fahrzeug, Verkehr) ---------------- */
.sheet { position: fixed; top: calc(var(--top-h) + var(--gap) + 8px); right: calc(var(--rw) + var(--gap) * 2 + 8px); width: min(460px, calc(100vw - var(--lw) - var(--rw) - 80px)); max-height: calc(100dvh - var(--top-h) - var(--dock-h) - var(--gap) * 4 - 16px); overflow: auto; z-index: 1050; background: rgba(14,20,31,.98); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); animation: einblenden .16s ease-out; }
body.dock-zu .sheet { max-height: calc(100dvh - var(--top-h) - 37px - var(--gap) * 4 - 16px); }
@keyframes einblenden { from { opacity: 0; transform: translateY(6px); } }
.sheet.hidden, .modal.hidden { display: none; }
.sheet header { position: sticky; top: 0; z-index: 2; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; background: rgba(14,20,31,.98); }
.sheet header h3 { margin: 0; font-size: 15px; font-weight: 700; flex: 1; line-height: 1.3; }
.sheet header small { display: block; color: var(--muted); font-weight: 400; margin-top: 3px; font-size: 12px; }
.sheet .x { background: none; border: 0; font-size: 18px; color: var(--muted); width: 30px; height: 30px; border-radius: 7px; flex: none; }
.sheet .x:hover { background: var(--hover); color: var(--text); }
.sheet .body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.box h4 { margin: 0 0 7px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.anruftext { font-size: 13.5px; line-height: 1.5; font-style: italic; }
.lage { color: #9fd0ff; font-size: 13px; line-height: 1.45; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line-2); background: var(--surface-3); border-radius: var(--radius-s); padding: 8px 13px; font-weight: 600; font-size: 12.5px; }
.btn:hover { background: #212c40; border-color: #36445c; }
.btn.primary { background: linear-gradient(180deg, #f0524a, #d33a33); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,.25); }
.btn.primary:hover { background: linear-gradient(180deg, #f5625a, #db433c); }
.btn.accent { background: var(--accent); color: #04121f; border-color: transparent; }
.btn.warn { background: rgba(245,165,36,.16); border-color: rgba(245,165,36,.45); color: #ffc266; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.u-row { display: flex; align-items: center; gap: 8px; padding: 4px 2px; }
.u-row .ruf { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-row .eta { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.u-row .rm { background: none; border: 0; color: var(--muted); border-radius: 6px; padding: 2px 6px; }
.u-row .rm:hover { background: var(--hover); color: var(--crit); }
.pat { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.stufe { font-weight: 800; width: 22px; text-align: center; border-radius: 5px; font-size: 11px; padding: 1px 0; }
.stufe.E, .stufe.D { background: var(--crit); color: #fff; } .stufe.C { background: var(--warn); color: #1d1300; } .stufe.B { background: #ffd666; color: #1d1300; } .stufe.A, .stufe.O { background: #52c41a; color: #06140a; }
.score { font-size: 28px; font-weight: 800; }
.det { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); line-height: 1.6; }
.klick { cursor: pointer; }
.klick:hover { color: var(--accent); }
.u-row.klick:hover { background: var(--hover); border-radius: 7px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 12.5px; }
.kv span { color: var(--muted); }
.box .pill { display: inline-block; margin: 2px 2px 2px 0; }

/* ---------------- Disposition (Modal) ---------------- */
.modal { position: fixed; inset: 0; z-index: 1500; background: rgba(3,6,12,.66); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); padding: 16px; }
.modal-card { width: min(1180px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.7); animation: einblenden .16s ease-out; }
.modal-card > header { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex: none; }
.modal-card > header h3 { margin: 0; flex: 1; font-size: 16px; font-weight: 700; min-width: 0; }
.modal-card .grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px; padding: 14px 18px; overflow: auto; flex: 1; min-height: 0; }
.modal-card > footer { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex: none; background: var(--surface); }
.modal-card > footer .sp { flex: 1; color: var(--muted); font-size: 12.5px; }
.modal-card .help { overflow: auto; }
.orgtabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.orgtabs label { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: 12.5px; }
.orgtabs label:hover { background: var(--surface-3); }
.orgtabs input { accent-color: var(--accent); margin: 0; }
.orgtabs label.FW.on { border-color: var(--fw); background: rgba(240,82,74,.12); }
.orgtabs label.RD.on { border-color: var(--rd); background: rgba(245,165,36,.12); }
.orgtabs label.POL.on { border-color: var(--pol); background: rgba(79,141,255,.12); }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.codes button { text-align: left; border: 1px solid var(--line); background: var(--surface-2); border-radius: 9px; padding: 7px 9px; }
.codes button:hover { border-color: var(--line-2); background: var(--surface-3); }
.codes button b { display: block; font-size: 12.5px; }
.codes button small { color: var(--muted); font-size: 11px; }
.codes button.on { border-color: var(--accent); background: var(--accent-bg); }
.orgblock { margin-bottom: 14px; }
.orgblock h5 { margin: 0 0 7px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.unitlist { display: flex; flex-direction: column; gap: 2px; }
.unitlist label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.unitlist label:hover { background: var(--hover); }
.unitlist label.sel { background: var(--accent-bg); }
.unitlist input { accent-color: var(--accent); }
.unitlist .ruf { flex: 1; min-width: 0; }
.unitlist .eta { color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; font-weight: 600; }
.unitlist .caps { color: var(--muted); font-size: 11px; }
.fehlt { color: #ffc266; font-size: 12px; margin-top: 6px; }
/* AMPDS-Codeauswahl Rettungsdienst */
.rd-akt { padding: 8px 10px; border: 1px solid var(--accent-line); background: var(--accent-bg); border-radius: 9px; margin-bottom: 7px; font-size: 12.5px; line-height: 1.45; }
.rd-akt small { display: block; color: var(--muted); font-size: 11px; }
.rd-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.rd-wahl select, .rd-wahl input { width: 100%; min-width: 0; }
.rd-liste { max-height: 270px; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; padding: 4px; display: flex; flex-direction: column; gap: 3px; background: var(--bg); }
.rd-grp { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 7px 6px 3px; }
.rd-code { position: relative; display: grid; grid-template-columns: 62px 1fr auto; gap: 8px; align-items: center; text-align: left; border: 1px solid transparent; background: var(--surface-2); border-radius: 7px; padding: 5px 8px; font-size: 12px; color: var(--text); }
.rd-code:hover { background: var(--surface-3); }
.rd-code.on { border-color: var(--accent); background: var(--accent-bg); }
.rd-code b { font-variant-numeric: tabular-nums; }
.rd-code.var { margin-left: 18px; background: transparent; font-size: 11.5px; }
.rd-var { position: absolute; right: -2px; top: -5px; font-size: 9.5px; font-weight: 700; padding: 0 5px; border-radius: 8px; background: #263147; color: #c9d6f2; border: 1px solid rgba(255,255,255,.16); cursor: pointer; }
.rd-var.auf { background: var(--accent); color: #06101a; }
.dispo { display: inline-block; white-space: nowrap; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid currentColor; }
.dispo.als-rot, .dispo.bls-rot { color: #ff6b6b; }
.dispo.als-orange { color: #ffa94d; }
.dispo.als-gelb, .dispo.bls-gelb { color: #ffd43b; }
.dispo.als-grün, .dispo.bls-grün, .dispo.akuttransport-grün { color: #69db7c; }
.dispo.aufwertbar { color: #74c0fc; }
.dispo.telemedizin, .dispo.weitergabe { color: #b197fc; }
.dispo.großunfall, .dispo.alpinunfall { color: #ff8787; }
/* Stichwortsuche */
/* Stichwortsuche: eigener Bereich (Disposition), bewusst anders als das Gespräch mit dem Anrufer */
.sw-suche { position: relative; margin-top: 14px; padding: 10px 12px 12px; border-radius: 12px; border: 1px solid rgba(167,139,250,.28);
  border-left: 3px solid #a78bfa; background: linear-gradient(180deg, rgba(167,139,250,.07), rgba(167,139,250,.02)); }
.sw-kopf { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #c4b5fd; }
.sw-kopf span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 11px; }
.sw-feld { position: relative; }
.sw-feld svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #c4b5fd; pointer-events: none; }
.sw-suche input { width: 100%; padding: 10px 12px 10px 34px; font-size: 13.5px; border-radius: 999px; background: rgba(0,0,0,.28);
  border: 1px solid rgba(167,139,250,.35); }
.sw-suche input:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.18); }
.sw-suche input::placeholder { color: rgba(196,181,253,.55); }
.sw-suche .sw-item.on, .sw-suche .sw-item:hover { border-color: rgba(167,139,250,.5); background: rgba(167,139,250,.1); }
.sw-suche .sw-chip { background: rgba(167,139,250,.12); border-color: rgba(167,139,250,.45); }
.sw-list { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.sw-item { display: flex; align-items: center; gap: 8px; text-align: left; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.sw-item.on, .sw-item:hover { border-color: var(--accent-line); background: var(--accent-bg); }
.sw-name { flex: 1; font-weight: 600; }
.sw-var { color: var(--muted); font-weight: 500; font-size: 11px; }
.sw-codes { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.sw-leer { color: var(--muted); font-size: 12px; padding: 4px 2px; }
.sw-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 6px 4px 10px; border-radius: 20px; background: var(--accent-bg); border: 1px solid var(--accent-line); font-size: 12px; }
.sw-chip button { background: none; border: 0; color: var(--muted); font-size: 15px; line-height: 1; }
/* Notrufabfrage */
.chat { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; padding-right: 4px; }
.chat.klein { max-height: 220px; }
.msg { max-width: 90%; padding: 7px 11px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.msg span { display: block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.msg p { margin: 0; }
.msg.anrufer { background: var(--surface-3); border: 1px solid var(--line-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.disponent { background: rgba(90,174,255,.13); border: 1px solid rgba(90,174,255,.32); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.spricht span::after { content: " ● spricht"; color: #34c77b; letter-spacing: .03em; animation: tippt 1s infinite; }
.tippt { display: inline-block; color: var(--muted); animation: tippt 1s infinite; letter-spacing: 2px; }
@keyframes tippt { 50% { opacity: .3; } }
.frage-form { display: flex; gap: 6px; margin-top: 10px; }
.frage-input { flex: 1; min-width: 0; padding: 9px 11px; font-size: 13.5px; border-radius: 10px; }
.frage-info { min-height: 14px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.ungenau { color: #ffc266; }
.rueckruf-btn { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 10px 14px; text-align: left;
  background: rgba(90,174,255,.12); border-color: rgba(90,174,255,.45); color: #cfe6ff; }
.rueckruf-btn:hover { background: rgba(90,174,255,.2); border-color: var(--accent); }
.rueckruf-btn svg { flex: none; color: var(--accent); }
.rueckruf-btn span { display: flex; flex-direction: column; font-size: 13.5px; }
.rueckruf-btn small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.rueckruf-btn.dringend { background: rgba(245,165,36,.14); border-color: rgba(245,165,36,.55); color: #ffd48a; animation: rr-puls 2.2s ease-in-out infinite; }
.rueckruf-btn.dringend svg, .rueckruf-btn.dringend small { color: #ffc266; }
@keyframes rr-puls { 50% { box-shadow: 0 0 0 4px rgba(245,165,36,.18); } }
.rueckruf.offen { margin-top: 10px; padding: 10px; border: 1px solid rgba(90,174,255,.45); border-radius: var(--radius-s); background: rgba(90,174,255,.07); }
.rueckruf-kopf { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.rueckruf-kopf svg { color: var(--accent); }
.rueckruf-kopf button { margin-left: auto; }
.rueckruf.offen .frage-form { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .rueckruf-btn.dringend { animation: none; } }

/* ---------------- Toasts ---------------- */
#toasts { position: absolute; right: 12px; bottom: 12px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; background: rgba(14,20,31,.97); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 10px; padding: 9px 13px; max-width: 360px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: tin .22s ease-out; font-size: 12.5px; }
.toast.warn { border-left-color: var(--warn); } .toast.ok { border-left-color: var(--ok); } .toast.crit { border-left-color: var(--crit); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---------------- Hilfe ---------------- */
.help { padding: 6px 20px 20px; line-height: 1.6; }
.help h4 { margin: 16px 0 6px; font-size: 13px; }
.help table { border-collapse: collapse; width: 100%; font-size: 12px; }
.help td { padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------------- Verkehrslage ---------------- */
.vk-list { gap: 4px; }
.vk-tod { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.vk { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.vk:hover { border-color: rgba(250,140,22,.55); }
.vk-t { flex: 1; min-width: 0; }
.vk-t b { display: block; font-size: 12px; }
.vk-t small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.vk-zeit { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.vk-ico { width: 24px; height: 24px; flex: none; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.vk .vk-ico { width: 22px; height: 22px; box-shadow: none; }
.vk-ico.stau { background: #f5222d; } .vk-ico.unfall { background: #d4380d; } .vk-ico.baustelle { background: #fadb14; }
.vk-ico.sperre { background: #a8071a; } .vk-ico.ampel { background: #fa8c16; } .vk-ico.schranke { background: #722ed1; }
.vk-tag { color: var(--muted); font-size: 10.5px; margin-right: 6px; letter-spacing: 0; }
.tr { font-style: normal; margin-left: 3px; font-size: 9px; } .tr.up { color: #ff7875; } .tr.down { color: #95de64; }

/* ---------------- Zeitsteuerung / DEV-Tool ---------------- */
.zeitpop { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); z-index: 1400; width: 380px; cursor: default; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(14,20,31,.98); box-shadow: var(--shadow); text-align: left; }
.zeitpop.hidden { display: none; }
.zeitpop h4 { margin: 0 0 8px; font-size: 13px; }
.zeitpop input { width: 100%; }
.devpanel { position: fixed; top: calc(var(--top-h) + 8px); right: 10px; width: 390px; max-width: calc(100vw - 20px); max-height: calc(100dvh - var(--top-h) - var(--tab-h) - 18px); z-index: 1250; display: flex; flex-direction: column; background: rgba(14,20,31,.98); border: 1px solid rgba(245,165,36,.35); border-radius: 14px; box-shadow: var(--shadow); }
.devpanel.hidden { display: none; }
.devpanel header { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px 8px; }
.devpanel header b { color: #f5a524; letter-spacing: .5px; }
.devpanel header small { color: var(--muted); flex: 1; }
.devpanel .x { background: none; border: 0; font-size: 18px; color: var(--muted); }
.dv-tabs { display: flex; gap: 2px; padding: 0 10px 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dv-tabs button { border: 0; background: none; color: var(--muted); padding: 5px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.dv-tabs button.on { background: rgba(245,165,36,.16); color: #ffd591; }
.dv-body { overflow: auto; padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.dv-sec h5 { margin: 0 0 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.dv-sec input[type=datetime-local] { width: 100%; }
.dv-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.dv-chips button, .zp-row button:not(.btn), .dv-row button, .dv-wxgrid button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 7px; padding: 5px 9px; font-size: 12px; }
.dv-chips button.on, .dv-wxgrid button.on { border-color: #f5a524; background: rgba(245,165,36,.15); }
.dv-chips button:hover, .dv-row button:hover, .dv-wxgrid button:hover, .zp-row button:not(.btn):hover { border-color: rgba(245,165,36,.6); }
.dv-wxgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.dv-wx { display: flex; align-items: center; gap: 8px; }
.dv-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.dv-t { flex: 1; min-width: 0; font-size: 12px; }
.dv-t small { display: block; color: var(--muted); font-size: 11px; }
.dv-check { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 6px; color: var(--text-2); }
.dv-pre { background: var(--bg); border-radius: 8px; padding: 8px; font-size: 11px; max-height: 240px; overflow: auto; white-space: pre-wrap; font-family: var(--mono); }
.dv-pick { margin: 0 14px 12px; padding: 8px 10px; border-radius: 9px; background: rgba(245,165,36,.15); color: #ffd591; display: flex; align-items: center; gap: 8px; }
.dv-pick button { margin-left: auto; }
.zp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 8px 0; }
.zp-grid button { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 7px; padding: 5px 4px; }
.zp-grid button:hover { border-color: rgba(245,165,36,.6); }
.zp-grid b { display: block; font-size: 13px; }
.zp-grid small { color: var(--muted); font-size: 10px; }
.zp-row { display: flex; gap: 5px; margin-top: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.zp-hint { color: var(--muted); font-size: 11px; margin: 6px 0 0; line-height: 1.4; }

/* ---------------- Neues Spiel / Spielmenü ---------------- */
.neu-intro { margin: 0; color: var(--text-2); line-height: 1.55; font-size: 13.5px; }
.neu-warn { margin: 0; padding: 8px 12px; border-radius: 9px; background: rgba(245,165,36,.12); border: 1px solid rgba(245,165,36,.35); color: #ffc266; }
.stand-karte { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--accent-line);
  background: linear-gradient(90deg, rgba(90,174,255,.12), rgba(90,174,255,.03)); }
.stand-karte .bz-form { width: 50px; height: 50px; }
.stand-karte .bz-form path { fill-rule: evenodd; fill: rgba(90,174,255,.3); stroke: var(--accent); }
.stand-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.stand-info b { font-size: 15px; }
.stand-info small { color: var(--text-2); font-size: 12px; }
.stand-btn { padding: 10px 18px; font-size: 13.5px; }
.neu-trenner { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.neu-trenner::before, .neu-trenner::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bz-suche { width: 100%; margin-bottom: 10px; }
.bz-grp { font-size: 11px; font-weight: 600; color: var(--faint); margin: 10px 2px 6px; }
.bz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.bz-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 112px; padding: 14px 10px 12px; border-radius: 12px; border: 1px solid var(--line); text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.bz-card:hover { border-color: var(--line-2); background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); transform: translateY(-1px); }
.bz-card b { font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--text-2); }
.bz-form { width: 54px; height: 54px; flex: none; }
.bz-form path { fill-rule: evenodd; fill: rgba(148,170,210,.13); stroke: #5b6b86; stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill .15s, stroke .15s; }
.bz-card:hover .bz-form path { stroke: #8494b0; fill: rgba(148,170,210,.2); }
.bz-card.on { border-color: var(--accent); background: linear-gradient(180deg, rgba(90,174,255,.16), rgba(90,174,255,.06)); box-shadow: 0 0 0 1px var(--accent) inset, 0 6px 22px rgba(90,174,255,.15); }
.bz-card.on b { color: var(--text); }
.bz-card.on .bz-form path { fill-rule: evenodd; fill: rgba(90,174,255,.35); stroke: var(--accent); }
.bz-card.on::after { content: "✓"; position: absolute; top: 7px; right: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #04121f; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.zeit-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.zc { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.zc:hover { border-color: var(--line-2); }
.zc.on { border-color: var(--accent); background: var(--accent-bg); }
.zc b { font-size: 14px; font-variant-numeric: tabular-nums; }
.zc small { color: var(--muted); font-size: 11px; }
.zeit-row { display: flex; align-items: flex-end; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.zeit-row.aus { opacity: .35; pointer-events: none; }
.zeit-row label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.zeit-tag { color: var(--text-2); font-weight: 600; padding-bottom: 8px; }
.seg-gross { display: inline-flex; }
.seg-gross button { padding: 8px 16px; font-size: 13px; }
.menue-kopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.menue-kopf div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.menue-kopf small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.menue-kopf b { font-size: 14px; }
.link-row { display: flex; gap: 6px; }
.login-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.login-form input { flex: 1 1 160px; min-width: 0; }
.login-fehler { flex-basis: 100%; color: #ff8a8a; font-size: 12px; min-height: 0; }
.login-fehler:empty { display: none; }
.link-row input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; }

/* ---------------- Tab-Leiste (nur kleine Bildschirme) ---------------- */
.tabbar { display: none; }

/* =====================================================================
   Anpassung an die Bildschirmgröße
   ===================================================================== */

/* großer Leitstand */
@media (min-width: 1800px) {
  :root { --lw: 380px; --rw: 380px; --dock-h: 240px; font-size: 13.5px; }
  html, body { font-size: 13.5px; }
}
/* Laptop */
@media (max-width: 1439px) {
  :root { --lw: 300px; --rw: 300px; --dock-h: 180px; }
  .rate span { display: none; }
  .brand-t small { display: none; }
}
@media (max-width: 1320px) {
  .kopf-score { display: none; }
}
.kpi-fz { display: none; }
.kpi-fz .kpi-l { color: var(--text-2); font-weight: 600; }
/* Tablet quer / kleiner Laptop: Fahrzeuge als Schublade, Protokolle als Tabs */
@media (max-width: 1179px) {
  :root { --rw: 0px; --lw: 290px; --dock-h: 170px; }
  .shell { grid-template-columns: var(--lw) minmax(0, 1fr); }
  .col-right { position: fixed; z-index: 1100; top: calc(var(--top-h) + 8px); right: 8px; bottom: 8px; width: min(360px, calc(100vw - 16px)); transform: translateX(calc(100% + 16px)); transition: transform .22s ease; box-shadow: var(--shadow); border-radius: var(--radius); }
  body[data-view="fahrzeuge"] .col-right { transform: none; }
  .col-right .drawer-x { display: inline-flex; }
  .kpi-fz { display: flex; }
  body[data-view="fahrzeuge"] .kpi-fz { border-color: var(--accent-line); background: var(--accent-bg); }
  .brand-t { display: none; }
  .dock-tabs, .dock-tabs.lp-tabs { display: flex; }
  .lp-kopf { display: none; }
  .dock-body { grid-template-columns: 1fr; }
  .logp + .logp { border-left: 0; }
  .dock[data-tab="funk"] .spielp, .dock[data-tab="lage"] .spielp, .dock:not([data-tab]) .spielp, .dock[data-tab="spiel"] .funkp, .dock[data-tab="bew"] .funkp { display: none; }
  body.dock-zu .dock { height: 41px; }
  .sheet { right: calc(var(--gap) + 8px); width: min(440px, calc(100vw - var(--lw) - 50px)); }
  .wx-t small, .wx-hinweis { display: none; }
}
/* Tablet hoch & Handy: Karte vollflächig, Bereiche über die Tab-Leiste */
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  :root { --top-h: 52px; --tab-h: calc(60px + env(safe-area-inset-bottom)); --gap: 0px; --dock-h: 100%; }
  .top { gap: 8px; padding: 0 10px; }
  .top-status, .rate, .kopf-score, #hilfe-btn { display: none; }
  .lage { margin-left: 0; height: 40px; }
  .clock { padding: 0 8px; gap: 7px; }
  .clock-t > span { font-size: 17px; }
  .tp-ico, .clock-t small .ft, .clock-t small .d-lang { display: none; }
  .clock-t small .d-kurz { display: inline; }
  .wetter { padding: 0 9px 0 8px; gap: 6px; }
  .wx-t small, .wx-hinweis { display: none; }
  .wx-t b { font-size: 14px; }
  .ctl { gap: 6px; }
  .seg button { padding: 5px 7px; }
  .shell { display: block; position: relative; padding: 0; }
  .col-left, .col-right, .dock { position: absolute; inset: 0; z-index: 1150; border-radius: 0; display: none; padding: 8px; background: var(--bg); transform: none !important; width: auto; box-shadow: none; top: 0; right: 0; bottom: 0; left: 0; }
  .col-mid { position: absolute; inset: 0; }
  .mapwrap { border-radius: 0; border: 0; }
  .col-mid > .dock { display: none; }
  body[data-view="notrufe"] .col-left, body[data-view="einsaetze"] .col-left { display: flex; }
  body[data-view="notrufe"] .p-inc { display: none; }
  body[data-view="einsaetze"] .p-calls, body[data-view="einsaetze"] .p-vk { display: none; }
  body[data-view="notrufe"] .p-calls { max-height: none; flex: 1; }
  body[data-view="notrufe"] .p-vk { max-height: 40%; }
  body[data-view="fahrzeuge"] .col-right { display: flex; }
  body[data-view="protokoll"] .col-mid > .dock { display: flex; position: absolute; inset: 0; height: auto; border-radius: 0; border: 0; padding: 0; z-index: 1150; }
  .col-right .panel.blink, .col-right.blink > .panel { animation: hervor .9s ease; }
@keyframes hervor { 30% { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90,174,255,.2); } }
.drawer-x { display: none; }
  .dock-min { display: none; }
  body.dock-zu .dock .log { display: block; }
  .tabbar { display: flex; flex: none; height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); position: relative; z-index: 1300; }
  .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; color: var(--muted); font-size: 10.5px; font-weight: 600; position: relative; }
  .tabbar svg { width: 22px; height: 22px; fill: currentColor; }
  .tabbar button.on { color: var(--accent); }
  .tb-badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--crit); color: #fff; font-size: 10px; font-weight: 800; font-style: normal; display: none; align-items: center; justify-content: center; }
  .tb-badge.n { background: var(--surface-3); color: var(--text); }
  .tb-badge.zeigen { display: flex; }
  .sheet { left: 0; right: 0; top: auto; bottom: var(--tab-h); width: auto; max-height: 72dvh; border-radius: 16px 16px 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
  body.dock-zu .sheet { max-height: 72dvh; }
  .modal { padding: 0; }
  .modal-card { width: 100%; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
  .modal-card .grid { grid-template-columns: 1fr; padding: 12px; }
  .modal-card > header, .modal-card > footer { padding: 10px 12px; }
  .devpanel { top: var(--top-h); right: 0; left: 0; width: auto; max-width: none; border-radius: 0 0 14px 14px; }
  .zeitpop { position: fixed; left: 8px; right: 8px; width: auto; transform: none; top: calc(var(--top-h) + 4px); }
  .legend { display: none; }
  #toasts { left: 10px; right: 10px; align-items: stretch; }
  .toast { max-width: none; }
  .rd-wahl { grid-template-columns: 1fr; }
  .bz-grid { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 6px; }
  .bz-card { min-height: 92px; padding: 10px 6px; gap: 6px; }
  .bz-card b { font-size: 12px; }
  .bz-form { width: 40px; height: 40px; }
  .stand-karte { flex-wrap: wrap; }
  .stand-btn { width: 100%; }
}
@media (max-width: 420px) {
  .seg button[data-speed="10"] { display: none; }
  .dev-btn { padding: 0 7px; }
  .logo { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .call::before, .kpi-calls.aktiv, .inc-mk .ring { animation: none !important; }
  .inc-mk.blau .ring { opacity: .7; transform: scale(1.35); }
}

/* =====================================================================
   Startseite – eigene Seite vor der Leitstelle (Bezirk, Dienstbeginn, Weiterspielen)
   ===================================================================== */
.startseite { display: none; }
body.auf-start .top, body.auf-start .shell, body.auf-start .tabbar, body.auf-start #detail, body.auf-start #devpanel { display: none !important; }
body.auf-start .startseite { display: block; position: fixed; inset: 0; z-index: 1400; overflow-y: auto; background: #060a11; }
.st-laden { height: 100%; display: flex; align-items: center; justify-content: center; }
.st-laden .app-logo { width: 56px; height: 56px; border-radius: 13px; animation: logoPuls 1.6s ease-in-out infinite; }
@keyframes logoPuls { 50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(61,139,255,.10), 0 0 28px rgba(255,154,31,.18); } }
.st-licht { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(239,68,68,.16), transparent 60%),
    radial-gradient(900px 620px at 100% 0%, rgba(79,141,255,.18), transparent 60%),
    radial-gradient(700px 500px at 60% 110%, rgba(90,174,255,.08), transparent 60%),
    linear-gradient(180deg, #070b13, #05080e); }
.st-licht::after { content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%); }
.st-kopf, .st-main { position: relative; z-index: 1; }
.st-kopf { display: flex; align-items: center; gap: 12px; max-width: 1320px; margin: 0 auto; padding: 22px 32px 0; }
.st-kopf .app-logo { width: 34px; height: 34px; }
.st-marke b { display: block; font-size: 15px; font-weight: 700; }
.st-marke small { color: var(--muted); font-size: 11.5px; }
.st-kopf .sp { flex: 1; }
.st-main { max-width: 1240px; margin: 0 auto; padding: 18px 32px 40px; display: flex; flex-direction: column; gap: 34px; }
.st-kopf { max-width: 1240px; }
.st-hilfe { margin-right: 4px; background: transparent; border-color: transparent; color: var(--text-2); }
.st-hilfe:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* Hero: Titel, Kennzahlen und Weiterspielen bzw. Vorschau */
.st-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 48px; align-items: center; padding-top: 26px; }
.st-hero-text { display: flex; flex-direction: column; gap: 18px; animation: stHoch .6s ease both; }
@keyframes stHoch { from { opacity: 0; transform: translateY(10px); } }
.st-eyebrow { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; padding: 6px 12px 6px 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); color: var(--text-2); font-size: 12px; font-weight: 600; }
.st-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: stLive 2s infinite; }
@keyframes stLive { 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.st-hero h1 { margin: 0; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.0; font-weight: 800; letter-spacing: -.04em; }
/* ganze Überschrift im Verlauf: schräg, damit beide Zeilen alle drei Farben bekommen; Breite = Textbreite */
.st-hero h1.st-titel { display: inline-block; padding-bottom: .06em; background-image: linear-gradient(100deg, #ff6b6b 0%, #ffa94d 33%, #5aa2ff 68%); }
.st-grad { background: linear-gradient(95deg, #ff6b6b 0%, #ffa94d 45%, #5aa2ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-lead { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 540px; }
.st-fakten { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
.st-fakten div { display: flex; flex-direction: column; gap: 2px; }
.st-fakten dt { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-fakten dd { margin: 0; color: var(--muted); font-size: 12px; }

/* Weiterspielen */
.st-weiter { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 20px; animation: stHoch .6s ease .1s both;
  border: 1px solid rgba(90,174,255,.28); background: linear-gradient(160deg, rgba(36,64,108,.55), rgba(14,20,31,.82) 60%); backdrop-filter: blur(12px);
  box-shadow: 0 24px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); }
.st-weiter-kopf { display: flex; align-items: center; justify-content: space-between; }
.st-weiter-kopf small { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.st-live { display: inline-flex; align-items: center; gap: 7px; color: #6ee7b7; font-size: 12px; font-weight: 700; }
.st-live i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: stLive 2s infinite; }
.st-weiter-mitte { display: flex; align-items: center; gap: 16px; }
.st-weiter-mitte .bz-form { width: 64px; height: 64px; flex: none; }
.st-weiter-mitte .bz-form path { fill-rule: evenodd; fill: rgba(90,174,255,.35); stroke: #8cc4ff; stroke-width: 1.6; }
.st-weiter-mitte b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.st-weiter-mitte small { color: var(--text-2); font-size: 12.5px; }
.st-weiter-zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.st-weiter-zahlen div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.st-weiter-zahlen dt { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-weiter-zahlen dd { margin: 0; color: var(--muted); font-size: 11.5px; }
.st-weiter .stand-frist { margin: -4px 0 0; }

/* Vorschau (ohne Spielstand): angedeutete Meldungen der Leitstelle */
.st-demo { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.st-demo-karte { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(16,23,35,.82); backdrop-filter: blur(10px); box-shadow: 0 14px 40px rgba(0,0,0,.35); animation: stDemo .7s cubic-bezier(.2,.8,.2,1) both; }
.st-demo-karte div { flex: 1; min-width: 0; }
.st-demo-karte small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.st-demo-karte b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.st-demo-karte em { font-style: normal; font-family: var(--mono); font-size: 12px; color: #fca5a5; }
.st-demo-karte.d1 { border-color: rgba(255,77,79,.45); background: linear-gradient(90deg, rgba(255,77,79,.16), rgba(16,23,35,.85) 60%); animation-delay: .15s; }
.st-demo-karte.d2 { margin-left: 28px; animation-delay: .3s; } .st-demo-karte.d3 { margin-left: 12px; animation-delay: .45s; } .st-demo-karte.d4 { margin-left: 40px; animation-delay: .6s; }
@keyframes stDemo { from { opacity: 0; transform: translateX(18px); } }
.st-demo-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #ef4444; animation: stKlingeln 1.6s ease-in-out infinite; }
.st-demo-ico svg { width: 18px; height: 18px; fill: #fff; }
@keyframes stKlingeln { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); } 60% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } }
.st-demo-st { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; font-weight: 800; font-size: 15px; color: #fff; }
.st-demo-st.fw { background: #e5484d; } .st-demo-st.rd { background: #f08c00; } .st-demo-st.pol { background: #2f6fe0; }

/* Dienst einrichten */
.st-setup { padding: 26px; border-radius: 22px; border: 1px solid rgba(255,255,255,.08); background: rgba(12,18,28,.72); backdrop-filter: blur(12px);
  box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.st-setup-kopf h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.st-setup-kopf p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.st-setup-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr); gap: 30px; margin-top: 22px; align-items: start; }
.st-schritt h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.st-nr { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800;
  background: rgba(90,174,255,.16); color: #9ccbff; border: 1px solid rgba(90,174,255,.35); }
.st-s23 { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 16px; }
.st-gebiet { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; align-items: stretch; }
.st-karte { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.07);
  background: radial-gradient(ellipse at 50% 45%, rgba(90,174,255,.08), rgba(8,12,19,.6) 70%); }
.st-suche { width: 100%; height: 38px; padding: 0 12px 0 34px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 13px;
  background: rgba(8,12,19,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237d8aa0'%3E%3Cpath d='M10 3a7 7 0 0 1 5.6 11.2l4.6 4.6-1.4 1.4-4.6-4.6A7 7 0 1 1 10 3zm0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10z'/%3E%3C/svg%3E") 11px center / 15px no-repeat; }
.st-suche:focus { outline: none; border-color: var(--accent-line, #5aaeff); }
.noe-karte { display: block; width: 100%; height: auto; max-height: 440px; min-height: 220px; margin: 0 auto; overflow: visible; }
.noe-karte .bzk { fill-rule: evenodd; fill: rgba(148,170,210,.10); stroke: #2f3b52; stroke-width: 1.4; stroke-linejoin: round; cursor: pointer; transition: fill .15s, stroke .15s, opacity .15s; }
.noe-karte .bzk:hover { fill: rgba(148,170,210,.26); stroke: #8494b0; }
.noe-karte .bzk.on { fill: rgba(90,174,255,.42); stroke: #8cc4ff; stroke-width: 2.2; filter: drop-shadow(0 0 14px rgba(90,174,255,.45)); }
.noe-karte .bzk.gedimmt { opacity: .25; }
.st-bz-info { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid rgba(90,174,255,.25);
  background: linear-gradient(180deg, rgba(90,174,255,.10), rgba(90,174,255,.02)); transition: border-color .15s, background .15s; }
.st-bz-info.vorschau { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.st-bz-info > small { color: var(--muted); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.st-bz-info > b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.st-bz-sub { color: var(--text-2); font-size: 12px; }
.st-bz-zahlen { list-style: none; margin: 12px 0 6px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-bz-zahlen li { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border-left: 3px solid; }
.st-bz-zahlen li b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-bz-zahlen li span { color: var(--muted); font-size: 10.5px; line-height: 1.2; hyphens: manual; }
.st-bz-zahlen .fw { border-color: #ff4d4f; } .st-bz-zahlen .rd { border-color: #ff9a1f; } .st-bz-zahlen .pol { border-color: #3d8bff; } .st-bz-zahlen .kh { border-color: #e9edf3; }
.st-bz-fz { color: var(--muted); font-size: 11.5px; }
.st-bz-tipp { margin-top: auto; padding-top: 12px; color: var(--faint, #5d6b80); font-size: 11.5px; }
.st-bz-leer { margin: 0; color: var(--muted); font-size: 13px; }
.st-s23 .zeit-chips { grid-template-columns: repeat(4, 1fr); }
.st-s23 .zc { background: rgba(19,26,39,.75); }
.st-cta { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid rgba(90,174,255,.25); background: rgba(90,174,255,.06); }
.st-sum { display: flex; flex-direction: column; gap: 2px; }
.st-sum b { font-size: 16px; }
.st-sum span { color: var(--text-2); font-size: 12.5px; }
.st-go { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; font-size: 15px; border-radius: 11px; }
.st-go span { transition: transform .15s; }
.st-go:hover span { transform: translateX(4px); }

/* Was dich erwartet */
.st-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.st-features article { padding: 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.07); background: rgba(14,20,31,.6); }
.st-features h3 { margin: 12px 0 4px; font-size: 14.5px; font-weight: 700; }
.st-features p { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.st-f-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(90,174,255,.12); border: 1px solid rgba(90,174,255,.25); }
.st-f-ico svg { width: 18px; height: 18px; fill: #9ccbff; }
.st-features article:nth-child(1) .st-f-ico { background: rgba(255,77,79,.12); border-color: rgba(255,77,79,.3); } .st-features article:nth-child(1) svg { fill: #ff8a8b; }
.st-features article:nth-child(2) .st-f-ico { background: rgba(255,154,31,.12); border-color: rgba(255,154,31,.3); } .st-features article:nth-child(2) svg { fill: #ffb45c; }

@media (max-width: 1080px) {
  .st-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 10px; }
  .st-demo { display: none; }
  .st-setup-grid { grid-template-columns: 1fr; }
  .st-s23 { position: static; }
  .st-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .st-kopf { padding: 16px 16px 0; }
  .st-hilfe { display: none; }
  .st-kopf { gap: 10px; }
  .st-kopf .st-marke b { font-size: 14px; } .st-kopf .st-marke small { display: none; }
  .st-kopf [data-start-zurueck] { padding: 7px 10px; font-size: 12px; white-space: nowrap; }
  .st-eyebrow { display: none; }
  .st-fakten { display: grid; grid-template-columns: 1fr 1fr; }
  .st-main { padding: 12px 16px 120px; gap: 24px; }
  .st-hero h1 { font-size: 40px; }
  .st-lead { font-size: 14.5px; }
  .st-fakten { gap: 10px 22px; } .st-fakten dt { font-size: 21px; }
  .st-weiter { padding: 18px; }
  .st-setup { padding: 16px; border-radius: 18px; backdrop-filter: none; background: rgba(12,18,28,.9); }   /* sonst hängt die fixierte Startleiste am Kasten */
  .st-gebiet { grid-template-columns: 1fr; }
  .st-karte { padding: 10px; }
  .st-s23 .zc { padding: 7px 8px; }
  .st-s23 .zeit-chips:not(.aufkommen) .zc small { display: none; }
  .st-s23 .aufkommen .zc small { font-size: 10px; }
  .st-features { grid-template-columns: 1fr; }
  .st-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; border-radius: 16px 16px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    flex-direction: row; align-items: center; background: rgba(10,14,22,.97); border-color: var(--line-2); }
  .st-sum { flex: 1; min-width: 0; }
  .st-sum b { font-size: 14px; }
  .st-sum span { font-size: 11px; }
  .st-go { padding: 12px 14px; font-size: 14px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .st-hero-text, .st-weiter, .st-demo-karte, .st-demo-ico, .st-eyebrow i, .st-live i { animation: none !important; } }

/* ---------------- Menü (oben rechts) ---------------- */
.menue-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 11px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 600; font-size: 12.5px; }
.menue-btn svg { fill: var(--text-2); }
.menue-btn:hover, .menue-btn.on { background: var(--surface-3); border-color: #3a4862; }
.menue-btn.on { border-color: var(--accent-line); }
.menue { position: fixed; top: calc(var(--top-h) + 6px); right: 10px; z-index: 1350; width: 340px; max-width: calc(100vw - 20px); max-height: calc(100dvh - var(--top-h) - 20px);
  overflow-y: auto; padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(14,20,31,.98); backdrop-filter: blur(14px);
  box-shadow: var(--shadow); animation: einblenden .14s ease-out; }
.menue.hidden { display: none; }
.mn-kopf { padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.mn-kopf b { display: block; font-size: 15px; }
.mn-kopf small { color: var(--muted); font-size: 11.5px; }
.mn-sek { padding: 12px 10px 5px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.mn-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none; text-align: left; }
.mn-item:hover { background: var(--hover); }
.mn-item svg { fill: var(--text-2); flex: none; }
.mn-item b { display: block; font-size: 13px; font-weight: 600; }
.mn-item small { display: block; color: var(--muted); font-size: 11.5px; }
.mn-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; font-size: 13px; }
.mn-zeile.mn-spalte { flex-direction: column; align-items: stretch; }
.mn-rate { display: grid; grid-template-columns: repeat(4, 1fr); }
.mn-rate button { padding: 6px 4px; }
.mn-form { padding: 4px 10px 8px; margin-top: 0; }
.schalter { position: relative; width: 38px; height: 22px; flex: none; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-3); transition: background .15s; }
.schalter::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #8391a8; transition: transform .15s, background .15s; }
.schalter.on { background: var(--accent); border-color: var(--accent); }
.schalter.on::after { transform: translateX(16px); background: #fff; }
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .menue-btn span { display: none; }
  .menue-btn { padding: 0 9px; }
  .menue { left: 8px; right: 8px; width: auto; max-width: none; }
}

/* ---------- Pausenseite ---------- */
.pausenseite { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: radial-gradient(ellipse at 50% 30%, rgba(30,60,110,.55), rgba(4,7,12,.92) 70%); backdrop-filter: blur(14px) saturate(.7); -webkit-backdrop-filter: blur(14px) saturate(.7);
  animation: einblenden .2s ease-out; }
.ps-karte { width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 34px 30px 24px;
  border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(20,28,42,.94), rgba(11,16,25,.96)); box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.ps-symbol { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; color: var(--accent);
  background: var(--accent-bg); border: 1px solid var(--accent-line); box-shadow: 0 0 0 8px rgba(90,174,255,.06); animation: ps-atmen 2.6s ease-in-out infinite; }
.ps-symbol svg { fill: currentColor; }
@keyframes ps-atmen { 50% { box-shadow: 0 0 0 14px rgba(90,174,255,.02); } }
.ps-ober { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.pausenseite h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.ps-uhr { display: flex; flex-direction: column; align-items: center; margin: 10px 0 4px; font-family: var(--mono); font-size: 42px; font-weight: 600; letter-spacing: .02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ps-uhr span { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.ps-text { margin: 6px 0 14px; max-width: 400px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.ps-zahlen { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.ps-zahl { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.ps-zahl b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ps-zahl span { font-size: 11.5px; color: var(--muted); }
.ps-zahl.rot { border-color: rgba(255,77,79,.45); background: rgba(255,77,79,.08); } .ps-zahl.rot b { color: #ff6b6d; }
.ps-zahl.gelb { border-color: rgba(245,165,36,.45); background: rgba(245,165,36,.07); } .ps-zahl.gelb b { color: var(--warn); }
.ps-knoepfe { width: 100%; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ps-knoepfe .btn { min-height: 42px; padding: 0 18px; }
.ps-weiter { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 100%; justify-content: center; font-size: 15px; font-weight: 700; min-height: 48px !important; }
.ps-weiter svg { fill: currentColor; }
.ps-hinweis { margin-top: 12px; color: var(--muted); font-size: 11.5px; }
@media (max-width: 520px) {
  .ps-karte { padding: 26px 16px 18px; }
  .ps-zahlen { grid-template-columns: repeat(2, 1fr); }
  .ps-uhr { font-size: 34px; }
  .pausenseite h2 { font-size: 25px; }
}
@media (hover: none) { .ps-hinweis { display: none; } }

/* Hinweis bei ungültigem Spielstand-Link (über der Startseite) */
.link-hinweis { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 1700; width: min(520px, calc(100vw - 32px)); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: rgba(14,20,31,.97); border: 1px solid var(--line-2); border-left: 3px solid var(--warn); box-shadow: var(--shadow); animation: einblenden .2s ease-out; font-size: 13px; }
.link-hinweis span { grid-column: 1; color: var(--text-2); font-size: 12.5px; }
.link-hinweis .btn { grid-column: 2; grid-row: 1 / span 2; }
.wx-ico.nacht { color: #c9d4ff; }
/* Kopfzeile Handy: Logo nie zusammendrücken; auf sehr schmalen Geräten ohne 10×-Stufe */
.brand { flex: none; }
@media (max-width: 420px) {
  .top { gap: 6px; padding: 0 8px; }
  .clock { padding: 0 6px; }
  .wetter { padding: 0 7px 0 6px; }
  #tempo button { padding: 5px 5px; }
}

/* Spielstand-Link */
.modal-card.mc-klein { width: min(560px, 100%); }
.sl { padding: 6px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.sl p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.sl-feld { display: flex; gap: 8px; }
.sl-feld input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; font-family: var(--mono); font-size: 12.5px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; }
.sl-feld .btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; white-space: nowrap; font-weight: 700; }
.sl-feld .btn svg { fill: currentColor; }
.sl-feld .btn.kopiert { background: var(--ok); }
.sl-warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; color: var(--text-2);
  background: rgba(245,165,36,.08); border: 1px solid rgba(245,165,36,.3); }
.sl-warn svg { fill: var(--warn); flex: none; margin-top: 1px; }
.sl-warn b { color: var(--text); }
@media (max-width: 520px) { .sl-feld { flex-direction: column; } }
@media (max-width: 1320px) { .wx-htxt { display: none; } .wx-hinweis { padding: 0 6px; } }
@media (max-width: 1000px) { .tp-ico, .wx-hinweis { display: none; } }

/* Umdisponieren: eingesetzte Kräfte */
.ie-kopf { margin: 0 0 8px; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.ie-liste { margin-bottom: 14px; }
.ie-zeile { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.ie-zeile + .ie-zeile { margin-top: 6px; }
.ie-zeile .ruf { flex: 1; min-width: 0; line-height: 1.25; }
.ie-zeile.weg { opacity: .6; border-style: dashed; }
.ie-zeile.weg .ruf { text-decoration: line-through; }
.ie-btn { height: 30px; padding: 0 10px; font-size: 12px; }
.ie-btn.an { border-color: rgba(245,165,36,.5); color: var(--warn); }
.ie-fest { font-size: 11.5px; color: var(--muted); }
.fz-hinweis { font-size: 12px; color: var(--muted); align-self: center; }
.stand-frist { margin: 8px 2px 0; color: var(--muted); font-size: 11.5px; }

/* Sekundärtransporte (Johanniter) */
.sek-info { border-color: rgba(216, 27, 69, .45); }
.sek-info h4 { color: #ff6b8b; }
.sek-route { display: flex; align-items: center; gap: 6px; margin: -2px 0 8px; font-size: 12.5px; color: var(--muted); }
.sek-route b { color: var(--text); }

/* Hubschrauber-Landeplatz: gelbes H im Kreis wie eine Landeplatzmarkierung; gestrichelt, solange nur ausgewählt */
.lp-mk { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2.5px dashed #ffd54a; background: rgba(20, 24, 32, .55); box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.lp-mk span { color: #ffd54a; font: 900 15px/1 var(--font, sans-serif); }
.lp-mk.gelandet { border-style: solid; background: rgba(20, 24, 32, .75); }

/* Ziel der hervorgehobenen Fahrzeugroute */
.leaflet-tooltip.route-ziel { background: rgba(11,15,23,.9); color: #fff; border: 1px solid rgba(255,255,255,.25); font-weight: 700; font-size: 12px; padding: 3px 7px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.leaflet-tooltip.route-ziel::before { display: none; }

/* Startseite: Hinweis, Notrufnummern, Version */
.st-fuss { position: relative; max-width: 1240px; margin: 8px auto 0; padding: 18px 28px 26px; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.st-fuss p { margin: 0 0 6px; }
.st-fuss .st-hinweis b, .st-fuss .st-notruf b { color: var(--text); }
.st-fuss-zeile { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; margin-top: 8px; }
.st-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.st-version { font-variant-numeric: tabular-nums; opacity: .8; }
@media (max-width: 720px) { .st-fuss { padding: 16px 16px 22px; } }
/* Hinweis-Dialog */
.modal-card.mc-hinweise { width: min(680px, 100%); }
.hinweise { padding: 6px 22px 8px; overflow-y: auto; font-size: 13.5px; line-height: 1.55; }
.hinweise h4 { margin: 16px 0 4px; font-size: 13px; }
.hinweise p { margin: 0; color: var(--text-2, var(--text)); }
.hinweise-fuss { display: flex; justify-content: flex-end; padding: 12px 22px 18px; }
.hinweise-fuss:empty { display: none; }

/* Besatzung im Fahrzeug-Infofenster */
.crew { display: flex; flex-direction: column; gap: 8px; }
.crew-zeile { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 2px 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.crew-zeile:first-child { border-top: 0; padding-top: 0; }
.crew-rolle { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.crew-name { font-weight: 650; font-size: 13px; }
.crew-name small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.crew-dg { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; background: var(--surface-3, rgba(255,255,255,.08)); font-size: 11px; font-weight: 700; color: var(--text); }
.crew-quali { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px; }
.crew-quali span { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.crew-kader { margin-top: 8px; font-size: 11.5px; color: var(--muted); }

/* Gesprächsende im Notruf */
#chat .msg.ende { align-self: center; max-width: none; background: none; border: 0; padding: 4px 0; }
#chat .msg.ende p { margin: 0; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.modal-card.gespraech-endet .frage-form, .modal-card.gespraech-endet [data-alarm], .modal-card.gespraech-endet .dispo-fuss button { pointer-events: none; opacity: .45; }

.crew-dienst { font-size: 11.5px; color: var(--muted); margin: -2px 0 8px; }
.pat-pers { color: var(--muted); font-weight: 400; }

/* Einsatzaufkommen direkt in der Kopfleiste (neben der Spielgeschwindigkeit) */
.seg.aufk { align-items: center; }
.seg.aufk .seg-lbl { padding: 0 6px 0 7px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seg.aufk .kurz { display: none; }
@media (max-width: 1439px) { .seg.aufk .seg-lbl { display: none; } }
@media (max-width: 1320px) { .seg.aufk .lang { display: none; } .seg.aufk .kurz { display: inline; } }
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .seg.aufk button:not(.on) { display: none; }
  .seg.aufk .seg-lbl { display: none; }
  .seg.aufk .lang { display: inline; } .seg.aufk .kurz { display: none; }
}

/* Route des angeklickten Fahrzeugs: Striche laufen in Fahrtrichtung */
.leaflet-overlay-pane path.route-lauf { animation: routeLauf .9s linear infinite; }
@keyframes routeLauf { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -18; } }
@media (prefers-reduced-motion: reduce) { .leaflet-overlay-pane path.route-lauf { animation: none; } }

/* kein Fokusrahmen um Fahrzeuge, Wachen, Einsätze und Routen auf der Karte (Klick setzt dort den Fokus) */
.leaflet-container .leaflet-marker-icon:focus, .leaflet-container .leaflet-marker-icon:focus-visible,
.leaflet-container path.leaflet-interactive:focus, .leaflet-container path.leaflet-interactive:focus-visible,
.leaflet-container:focus, .leaflet-container:focus-visible { outline: none; }

/* Besatzungs-Kurzinfo in der Fahrzeugliste (Dispo) */
.q-badge { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 700; line-height: 15px;
  background: var(--surface-3, rgba(255,255,255,.08)); color: var(--text); border: 1px solid var(--line-2); vertical-align: 1px; }

/* Protokolle auf Handy/Tablet: eine Reiterleiste (waagrecht scrollbar), Sprecher über dem Wortlaut */
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .dock-tabs.lp-tabs { overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .dock-tabs.lp-tabs::-webkit-scrollbar { display: none; }
  .dock-tabs .lp-tab { padding: 0 9px; }
  .log > .lg { grid-template-columns: 44px minmax(0, 1fr); }
  .lg-f { grid-template-columns: minmax(0, 1fr); row-gap: 1px; }
  .lg-f .lg-s { margin-bottom: 4px; }
}

/* Manuelle Fahrzeugsuche im Dispositionsfenster */
.fz-suche { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fz-suche > input { width: 100%; box-sizing: border-box; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text); font: 13px var(--font); }
.fz-suche > input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-bg); }
#fz-treffer { margin-top: 8px; max-height: 240px; overflow: auto; }
#fz-treffer:empty { display: none; }
#fz-treffer .empty { padding: 8px 2px; color: var(--muted); font-size: 12.5px; }

/* ---------------- Ladebildschirm ---------------- */
.lade { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px; background: #060a11; color: #e8edf5; font-family: Inter, system-ui, sans-serif; overflow: hidden;
  transition: opacity .5s ease, visibility .5s; }
.lade.weg { opacity: 0; visibility: hidden; pointer-events: none; }
.lade.aus { display: none; }
.lade-bg { position: absolute; inset: 0; pointer-events: none; }
.lade-bg i { position: absolute; pointer-events: none; }
.lade-glow { filter: blur(60px); opacity: .55; border-radius: 50%; width: 40vmax; height: 40vmax; animation: ladeSchweben 14s ease-in-out infinite alternate; }
.lade-glow.g1 { background: radial-gradient(circle, rgba(255,77,79,.20), transparent 65%); left: -12vmax; top: -16vmax; }
.lade-glow.g2 { background: radial-gradient(circle, rgba(61,139,255,.30), transparent 65%); right: -10vmax; bottom: -14vmax; animation-delay: -5s; }
.lade-glow.g3 { background: radial-gradient(circle, rgba(255,154,31,.16), transparent 65%); right: 4vmax; top: -22vmax; animation-delay: -9s; }
@keyframes ladeSchweben { to { transform: translate(4vmax, 3vmax) scale(1.08); } }
.lade-raster { inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%); }
.lade-radar { left: 50%; top: 42%; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(90,174,255,.10), rgba(90,174,255,0) 60deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 38%); mask-image: radial-gradient(circle, #000 0, transparent 38%); animation: ladeDrehen 6s linear infinite; }
@keyframes ladeDrehen { to { transform: rotate(360deg); } }
.lade-mitte { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; width: min(420px, 100%); }
.lade-logo { position: relative; width: 96px; height: 96px; margin-bottom: 26px; }
.lade-logo svg { position: relative; width: 100%; height: 100%; display: block; border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04);
  animation: ladeEin .7s cubic-bezier(.2,.8,.2,1.2) both; }
@keyframes ladeEin { from { transform: scale(.82); opacity: 0; } }
.lade-ring { transform-box: view-box; transform-origin: 32px 32px; animation: ladeDrehen 9s linear .9s infinite; }
.lade-ring path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: ladeStrich .55s ease-out forwards; }
.lade-ring .s1 { animation-delay: .25s; } .lade-ring .s2 { animation-delay: .4s; } .lade-ring .s3 { animation-delay: .55s; }
@keyframes ladeStrich { to { stroke-dashoffset: 0; } }
.lade-pin { transform-box: view-box; transform-origin: 32px 45px; animation: ladePin .6s cubic-bezier(.3,1.6,.5,1) .15s both; }
@keyframes ladePin { from { transform: translateY(-9px) scale(.6); opacity: 0; } }
.lade-puls { position: absolute; inset: 0; border-radius: 26px; border: 2px solid rgba(90,174,255,.45); animation: ladePuls 2.4s ease-out 1s infinite; opacity: 0; }
.lade-puls.p2 { border-color: rgba(255,154,31,.35); animation-delay: 2.2s; }
@keyframes ladePuls { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.45); opacity: 0; } }
.lade-titel { margin: 0; font-size: clamp(22px, 4.6vw, 30px); font-weight: 800; letter-spacing: -.5px; line-height: 1.15; animation: ladeHoch .6s ease .3s both; }
.lade-sub { margin: 6px 0 30px; color: #8b98ab; font-size: 12px; font-weight: 600; letter-spacing: 3.2px; text-transform: uppercase; animation: ladeHoch .6s ease .4s both; }
@keyframes ladeHoch { from { transform: translateY(8px); opacity: 0; } }
.lade-balken { position: relative; width: min(280px, 80vw); height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; animation: ladeHoch .6s ease .5s both; }
.lade-balken i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; transition: width .6s cubic-bezier(.3,.7,.3,1);
  background: linear-gradient(90deg, #ff4d4f, #ff9a1f 50%, #3d8bff); box-shadow: 0 0 12px rgba(255,154,31,.45); }
.lade-balken i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%); animation: ladeGlanz 1.4s ease-in-out infinite; }
@keyframes ladeGlanz { to { transform: translateX(100%); } }
.lade-schritt { min-height: 20px; margin: 14px 0 0; color: #b3bfd0; font-size: 13px; animation: ladeHoch .6s ease .55s both; }
.lade-schritt.neu { animation: ladeText .35s ease; }
@keyframes ladeText { from { opacity: 0; transform: translateY(4px); } }
.lade-fehler { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.35); color: #ffc9c9; font-size: 13px; }
.lade-fehler[hidden] { display: none; }
.lade.fehler .lade-balken i { background: #ef4444; box-shadow: none; } .lade.fehler .lade-balken i::after { display: none; }
.lade-tipp { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); margin: 0; text-align: center;
  color: #8b98ab; font-size: 13px; line-height: 1.5; opacity: 0; transition: opacity .5s ease; }
.lade-tipp.an { opacity: 1; }
.lade-tipp b { color: #dfe6f0; font-weight: 600; margin-right: 6px; }
.lade-fuss { position: absolute; bottom: 22px; left: 0; right: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px;
  color: #5d6b80; font-size: 11px; letter-spacing: .4px; }
.lade-fuss .o::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.lade-fuss .fw::before { background: #ff4d4f; } .lade-fuss .rd::before { background: #ff9a1f; } .lade-fuss .pol::before { background: #3d8bff; }
.lade-fuss #lade-version:not(:empty)::before { content: "·"; margin-right: 16px; }
@media (max-height: 560px) { .lade-tipp { display: none; } .lade-logo { width: 72px; height: 72px; margin-bottom: 16px; } .lade-sub { margin-bottom: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .lade *, .lade *::before, .lade *::after { animation: none !important; }
  .lade-ring path { stroke-dashoffset: 0; }
}
.hinweise p + p { margin-top: 8px; }

/* Untertitel am Handy zweizeilig ohne hängenden Punkt */
@media (max-width: 640px) { .lade-sep { display: block; height: 0; overflow: hidden; } }

/* ---------- Startseite: Was ist neu (Changelog) ---------- */
.st-neu-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.st-neu-kopf h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.st-neu-kopf .st-link { margin-left: auto; }
.st-neu-badge { font-size: 12px; font-weight: 700; color: #7ff0b0; background: rgba(47,210,122,.12); border: 1px solid rgba(47,210,122,.35); border-radius: 999px; padding: 4px 10px; }
.st-neu-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: start; }
.cl-karte { display: block; width: 100%; text-align: left; color: inherit; font: inherit; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,.07); background: rgba(14,20,31,.6); }
.cl-aktuell { border-color: rgba(90,162,255,.28); background: linear-gradient(160deg, rgba(31,51,84,.55), rgba(14,20,31,.7)); }
.cl-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cl-kopf b { font-size: 16px; font-weight: 750; }
.cl-kopf span { color: var(--text-2); font-size: 12px; white-space: nowrap; }
.cl-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cl-liste li { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: baseline; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.cl-art { justify-self: start; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; border: 1px solid; }
.cl-art.neu { color: #7ff0b0; border-color: rgba(47,210,122,.4); background: rgba(47,210,122,.1); }
.cl-art.besser { color: #9cc6ff; border-color: rgba(90,162,255,.4); background: rgba(90,162,255,.1); }
.cl-art.behoben { color: #ffc27a; border-color: rgba(255,154,31,.4); background: rgba(255,154,31,.1); }
.cl-art.entfernt { color: #c3c9d4; border-color: rgba(195,201,212,.3); background: rgba(195,201,212,.08); }
.cl-frueher { display: flex; flex-direction: column; gap: 10px; }
.cl-kurz { cursor: pointer; padding: 14px 16px; transition: border-color .15s, background .15s; }
.cl-kurz:hover { border-color: rgba(90,162,255,.35); background: rgba(20,28,42,.75); }
.cl-kurz .cl-kopf { margin-bottom: 4px; }
.cl-kurz .cl-kopf b { font-size: 14px; }
.cl-kurz small { display: block; color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.cl-kurz small i { font-style: normal; color: var(--accent); white-space: nowrap; }
.cl-kurz.ungelesen { border-color: rgba(47,210,122,.35); }
.cl-alle { align-self: flex-start; }
.cl-alle-liste .cl-version { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); scroll-margin-top: 8px; }
.cl-alle-liste .cl-version:first-child { padding-top: 0; }
.cl-alle-liste .cl-version:last-child { border-bottom: 0; }
@media (max-width: 1080px) { .st-neu-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .st-neu-kopf h2 { font-size: 19px; }
  .cl-liste li { grid-template-columns: auto 1fr; gap: 8px; font-size: 13px; }
  .cl-karte { padding: 14px; }
}

/* =====================================================================
   Handy & Tablet (2026-10-18): Kopfzeile passt immer in die Breite, Notch/Statusleiste wird freigehalten
   ===================================================================== */
:root { --top-h: calc(56px + env(safe-area-inset-top)); }
.top { padding-top: env(safe-area-inset-top); padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); overflow: hidden; }
.top > * { flex-shrink: 0; }
.top .lage { flex-shrink: 1; min-width: 0; }
.mn-aufk { display: none; }
.mn-aufk .seg { flex-wrap: nowrap; }
.mn-aufk .seg button { padding: 5px 8px; }
/* Tablet quer / kleiner Laptop */
@media (max-width: 1179px) {
  .top { gap: 10px; }
  .menue-btn > span { display: none; }
  .menue-btn { padding: 0 9px; }
}
/* Tablet hoch & Handy */
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  :root { --top-h: calc(52px + env(safe-area-inset-top)); }
  .top { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  .tabbar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .tabbar button { min-height: 44px; }
}
/* Handy */
@media (max-width: 560px) {
  .top { gap: 6px; }
  .app-logo { width: 28px; height: 28px; }
  #aufkommen { display: none; }
  .mn-aufk { display: flex; flex-wrap: wrap; gap: 8px; }
  #tempo button:not([data-speed="0"]):not(.zeig) { display: none; }
  #tempo button { min-width: 38px; padding: 6px 8px; }
  .lage { height: 40px; }
  .clock { padding: 0 7px; }
  .clock-t > span { font-size: 16px; }
  .wetter { padding: 0 8px 0 6px; gap: 5px; }
  .wx-t b { font-size: 13px; }
  .menue-btn { width: 38px; height: 36px; padding: 0; justify-content: center; }
  .ctl { gap: 6px; }
}
@media (max-width: 360px) {
  .wetter svg, .wetter img { display: none; }
}
@media (max-width: 560px) { #tempo button.zeig { display: inline-block; } }
/* Handy quer: niedrige Kopf- und Tab-Leiste, damit die Karte Platz hat */
@media (max-height: 500px) and (pointer: coarse) {
  :root { --top-h: calc(46px + env(safe-area-inset-top)); --tab-h: calc(46px + env(safe-area-inset-bottom)); }
  .lage { height: 36px; }
  .tabbar button { flex-direction: row; gap: 7px; font-size: 12px; min-height: 40px; }
  .tabbar svg { width: 19px; height: 19px; }
  .tb-badge { top: 3px; left: calc(50% + 2px); }
  .sheet { max-height: calc(100dvh - var(--top-h) - var(--tab-h)); }
}
/* Tablet hoch: Einsatz-/Fahrzeugdetails als Seitenleiste rechts statt als Blatt von unten – die Karte bleibt sichtbar */
@media (min-width: 600px) and (max-width: 820px) and (min-height: 701px) {
  .sheet, body.dock-zu .sheet { left: auto; right: 0; top: var(--top-h); bottom: var(--tab-h); width: min(440px, 60vw); max-height: none; border-radius: 16px 0 0 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
}

/* =====================================================================
   Einschulung (Tour): Spotlight auf den echten Bereich + Erklärkarte
   ===================================================================== */
.tour { position: fixed; inset: 0; z-index: 3000; }
.tour[hidden] { display: none; }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(4,7,13,.74), 0 0 0 2px var(--accent), 0 0 28px rgba(90,174,255,.45);
  transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease; pointer-events: none; }
.tour-karte { position: fixed; width: min(400px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 18px 18px 14px; border-radius: 16px;
  background: linear-gradient(170deg, #17223a, #0f1626); border: 1px solid rgba(90,174,255,.35); box-shadow: 0 18px 50px rgba(0,0,0,.6); color: var(--text);
  transition: left .28s ease, top .28s ease; }
.tour-karte.mitte { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 24px)); }
.tour-karte.unten { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom)); max-height: 58dvh; }
.tour-kopf { display: flex; align-items: center; justify-content: space-between; color: var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tour-x { background: none; border: 0; color: var(--muted); font-size: 16px; padding: 4px 6px; cursor: pointer; }
.tour-karte h3 { margin: 6px 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.tour-karte > p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.tour-karte > p b { color: var(--text); }
.tour-bild { margin-top: 14px; padding: 12px; border-radius: 12px; background: rgba(5,9,16,.55); border: 1px solid rgba(255,255,255,.07); }
.tour-fuss { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.tour-dots { display: flex; gap: 5px; margin-right: auto; flex-wrap: wrap; }
.tour-dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); cursor: pointer; }
.tour-dots button.war { background: rgba(90,174,255,.5); }
.tour-dots button.on { background: var(--accent); width: 18px; border-radius: 4px; }
/* Bildbeispiele */
.tm-ablauf { display: flex; align-items: center; justify-content: space-between; gap: 4px; flex-wrap: wrap; }
.tm-ablauf > div { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 66px; text-align: center; }
.tm-ablauf span { font-size: 22px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(90,174,255,.1); border: 1px solid rgba(90,174,255,.25); }
.tm-ablauf span svg { width: 22px; height: 22px; fill: #9cc6ff; }
.tm-ablauf small { font-size: 10.5px; color: var(--text-2); line-height: 1.25; }
.tm-ablauf > i { color: var(--muted); font-style: normal; }
.tm-reihe { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: center; }
.tm-ico { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; min-width: 52px; }
.tm-ico small { font-size: 10.5px; color: var(--text-2); line-height: 1.25; }
.tm-mk { width: 36px; height: 36px; position: relative; }
.tm-pfeil { align-self: center; color: var(--muted); font-size: 20px; }
.tm-call { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,77,79,.5); background: rgba(255,77,79,.1); animation: tmPuls 1.6s infinite; }
.tm-call b { background: #ff4d4f22; color: #ff8a8a; padding: 4px 8px; border-radius: 6px; font-size: 14px; }
.tm-call span { display: flex; flex-direction: column; flex: 1; } .tm-call small { color: var(--text-2); font-size: 11.5px; }
.tm-call em { font-style: normal; color: #ff8a8a; font-variant-numeric: tabular-nums; font-weight: 700; }
@keyframes tmPuls { 50% { box-shadow: 0 0 0 4px rgba(255,77,79,.18); } }
.tm-chat { display: flex; flex-direction: column; gap: 6px; }
.tm-chat p { margin: 0; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; max-width: 88%; }
.tm-chat .l, .tm-chat .d { align-self: flex-end; background: rgba(90,162,255,.16); border: 1px solid rgba(90,162,255,.3); }
.tm-chat .d { background: rgba(90,162,255,.28); }
.tm-chat .a { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.tm-chat .f { max-width: none; background: rgba(255,154,31,.1); border: 1px solid rgba(255,154,31,.3); }
.tm-chat .f b { display: block; font-size: 11px; color: #ffc27a; margin-bottom: 2px; }
.tm-input { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; padding: 7px 8px 7px 10px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; }
.tm-input b { background: var(--accent); color: #06101a; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; }
.tm-codes { display: flex; flex-direction: column; gap: 7px; }
.tm-zeile { display: flex; gap: 8px; align-items: baseline; } .tm-zeile small { color: var(--text-2); font-size: 12px; }
.tm-vorschlag { display: flex; flex-direction: column; gap: 5px; }
.tm-fz { display: grid; grid-template-columns: 20px auto 1fr; gap: 8px; align-items: baseline; padding: 6px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,.07); font-size: 12.5px; }
.tm-fz.on { border-color: rgba(90,162,255,.4); background: rgba(90,162,255,.08); }
.tm-fz i { font-style: normal; color: var(--accent); } .tm-fz small { color: var(--text-2); text-align: right; }
.tm-alarm { align-self: flex-end; margin-top: 4px; padding: 6px 14px; border-radius: 8px; background: linear-gradient(180deg, #ff5a4f, #d83a30); font-weight: 700; font-size: 12.5px; }
.tm-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tm-status > div { display: flex; align-items: center; gap: 7px; } .tm-status small { color: var(--text-2); font-size: 11.5px; line-height: 1.2; }
.tm-bew { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.tm-bew > div { display: flex; justify-content: space-between; color: var(--text-2); } .tm-bew span { color: var(--text); font-variant-numeric: tabular-nums; }
.tm-bew .sum { border-top: 1px solid rgba(255,255,255,.1); padding-top: 6px; margin-top: 2px; } .tm-bew .sum span { color: #7ff0b0; font-weight: 700; }
@media (max-width: 640px) { .tour-dots { display: none; } .tour-fuss { justify-content: flex-end; } .tm-status { grid-template-columns: repeat(2, 1fr); } .tour-karte h3 { font-size: 17px; } .tour-karte > p { font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-karte { transition: none; } .tm-call { animation: none; } }
/* Ablauf der Einschulung: sechs Schritte in einer Reihe (Handy: zwei Reihen) */
.tm-ablauf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tm-ablauf > i { display: none; }
.tm-ablauf > div { width: auto; }
@media (max-width: 640px) { .tm-ablauf { grid-template-columns: repeat(3, 1fr); row-gap: 12px; } }

/* Einstiegsfrage bei neuem Spielstand */
.einstieg { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.einstieg > p { margin: 4px 0 6px; color: var(--text-2); font-size: 14px; }
.einstieg-wahl { position: relative; display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; transition: border-color .15s, background .15s; }
.einstieg-wahl:hover { border-color: var(--accent-line, rgba(90,174,255,.5)); background: var(--surface-3); }
.einstieg-wahl b { font-size: 15px; } .einstieg-wahl small { color: var(--text-2); font-size: 12.5px; line-height: 1.4; }
.einstieg-wahl.empf { border-color: rgba(90,174,255,.5); background: linear-gradient(160deg, rgba(31,51,84,.7), rgba(14,20,31,.7)); }
.einstieg-wahl i { position: absolute; top: 12px; right: 14px; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #7ff0b0; background: rgba(47,210,122,.12); border: 1px solid rgba(47,210,122,.35); padding: 2px 7px; border-radius: 999px; }

/* Einschulung mit Übungseinsatz: Begleitfenster (nicht modal – das Spiel bleibt bedienbar) */
.coach { position: fixed; z-index: 2600; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(380px, calc(100vw - 24px));
  max-height: min(60dvh, 520px); overflow: auto; padding: 14px 16px 12px; border-radius: 16px; background: rgba(14,20,32,.97);
  border: 1px solid rgba(90,174,255,.45); box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 4px rgba(90,174,255,.08); color: var(--text); }
.coach[hidden] { display: none; }
.coach-kopf { display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.coach-kopf span { flex: 1; }
.coach-mini { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 8px; cursor: pointer; }
.coach h3 { margin: 6px 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.coach-text { color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.coach-text b { color: var(--text); }
.coach-check { list-style: none; padding: 0; margin: 8px 0; }
.coach-check li { padding: 3px 0 3px 26px; position: relative; color: var(--text); }
.coach-check li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,.35); }
.coach-check li.ok::before { background: #2fbf71; border-color: #2fbf71; }
.coach-check li.ok::after { content: ""; position: absolute; left: 7px; top: 7px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.coach-check small { color: var(--muted); }
.coach-bew { margin: 8px 0; padding-left: 18px; font-size: 12.5px; }
.coach-hinweis { margin: 8px 0 0; color: #ffb020; font-size: 12.5px; }
.coach-fuss { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.coach-warte { color: var(--muted); font-size: 12px; margin-right: auto; }
.coach-warte::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--accent); animation: coachPuls 1.4s ease-in-out infinite; }
.coach.klein { width: auto; max-height: none; padding: 8px 12px; }
.coach.klein h3, .coach.klein .coach-text, .coach.klein .coach-fuss { display: none; }
.coach-ziel { outline: 2px solid var(--accent) !important; outline-offset: 3px; border-radius: 10px; animation: coachZiel 1.6s ease-in-out infinite; }
@keyframes coachZiel { 0%, 100% { box-shadow: 0 0 0 0 rgba(90,174,255,.55); } 50% { box-shadow: 0 0 0 8px rgba(90,174,255,0); } }
@keyframes coachPuls { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .coach { left: 8px; right: 8px; width: auto; bottom: calc(var(--tab-h, 56px) + 8px + env(safe-area-inset-bottom)); max-height: 42dvh; padding: 10px 12px; }
  .coach h3 { font-size: 15px; } .coach-text { font-size: 13px; }
  body.coach-an .modal .modal-card { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .coach-ziel, .coach-warte::before { animation: none; } }
/* Notruffenster neben dem Begleitfenster, damit nichts verdeckt wird */
@media (min-width: 1100px) { body.coach-an .modal { padding-left: 412px; } }
@media (min-width: 821px) and (max-width: 1099px) { body.coach-an .coach { width: 300px; } body.coach-an .modal { padding-left: 316px; } }
.ueb-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(90,174,255,.2); color: var(--accent); vertical-align: 1px; }
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) { body.coach-an:has(#modal:not(.hidden)) .coach { max-height: 32dvh; } }
/* Einschulung: alles außer dem aktuellen Schritt abdunkeln (nur optisch – Klicks gehen durch) */
.coach-dim { position: fixed; inset: 0; z-index: 2500; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.coach-dim[hidden] { display: none; }
.coach-dim.an { opacity: 1; }
.coach-dim svg { display: block; }
.coach-dim svg > rect { fill: rgba(3,6,12,.66); }
.coach-dim rect[fill="#000"] { transition: all .25s ease; }
/* Einschulung: Themen der Abfrage mit Status (keine Ankreuzkästchen – nur Anzeige) */
.coach-themen { display: grid; gap: 6px; margin: 10px 0; }
.coach-themen > div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.coach-themen span { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.coach-themen span b { color: var(--text); font-size: 13.5px; }
.coach-themen span i { color: var(--muted); font-size: 12.5px; font-style: normal; }
.coach-themen em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.07); white-space: nowrap; }
.coach-themen > div.ok { border-color: rgba(47,191,113,.4); background: rgba(47,191,113,.08); }
.coach-themen > div.ok em { color: #2fbf71; background: rgba(47,191,113,.15); }

/* ---------- Besondere Anrufe: eCall, Rückruf, Doppelmeldungen ---------- */
.msd { margin-bottom: 10px; border-color: rgba(90,174,255,.45); background: linear-gradient(160deg, rgba(31,51,84,.55), rgba(14,20,31,.4)); }
.msd .kv b { font-weight: 600; }
.warn-txt { color: var(--warn); }
.hinweis-zeile { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px;
  border: 1px solid rgba(245,165,36,.45); background: rgba(245,165,36,.1); color: #ffd690; }
.hinweis-zeile svg { flex: none; }
.leitung-weg { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding: 8px 8px 8px 12px; border-radius: 10px;
  border: 1px solid rgba(239,68,68,.5); background: rgba(239,68,68,.1); font-size: 13px; font-weight: 600; color: #ffb3b3; }
.leitung-weg .btn { display: inline-flex; align-items: center; gap: 6px; }
.laeutet { animation: laeuten 1.2s ease-in-out infinite; }
@keyframes laeuten { 50% { opacity: .45; } }
#chat .msg.info p, .chat .msg.info p { color: var(--accent); text-transform: none; letter-spacing: 0; font-style: italic; }
.frage-input:disabled { opacity: .5; cursor: not-allowed; }
.naehe { margin-bottom: 10px; border-color: rgba(245,165,36,.45); }
.naehe-zeile { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.naehe-zeile:first-of-type { border-top: 0; }
.naehe-zeile > div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; }
.naehe-zeile small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.naehe-zeile .btn { flex: none; }
/* Massenanfall */
.manv { border-color: rgba(239,68,68,.5); }
.manv-farben { display: flex; gap: 8px; margin-bottom: 10px; }
.mf { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.mf b { font-size: 20px; letter-spacing: 0; }
.mf.rot { background: rgba(239,68,68,.18); color: #ff9a9a; }
.mf.gelb { background: rgba(245,190,36,.16); color: #ffd76a; }
.mf.gruen { background: rgba(52,199,123,.16); color: #7fe0ab; }
.manv-info { font-size: 12.5px; color: var(--muted); margin: 4px 0 8px; }
.manv .btn.warn { width: 100%; }
.manv-kh { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 8px; }
.manv-kh th { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 2px; text-align: center; }
.manv-kh th:first-child, .manv-kh td:first-child { text-align: left; }
.manv-kh th small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; }
.manv-kh th.rot { color: #ff9a9a; } .manv-kh th.gelb { color: #ffd76a; } .manv-kh th.gruen { color: #7fe0ab; }
.manv-kh td { padding: 5px 2px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
.manv-kh td small { display: block; color: var(--muted); font-size: 10.5px; }
.manv-kh td.ueber .stepper b { color: var(--crit); }
.manv-kh tfoot td { font-weight: 700; }
.manv-kh td.fehlt-n { color: var(--warn); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--text); line-height: 1; padding: 0; cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper b { min-width: 14px; }
.manv-kh td .leer { color: var(--muted); }

/* ---------- Wartung ---------- */
.wartung { position: fixed; inset: 0; z-index: 2400; display: grid; place-items: center; padding: 16px; overflow-y: auto; overflow-x: hidden; isolation: isolate;
  background: #05080e; animation: einblenden .3s ease-out; }
.wartung::before, .wartung::after { content: ""; position: fixed; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.wartung::before { left: -25vmax; top: -30vmax; background: radial-gradient(circle, rgba(90,174,255,.55), transparent 65%); animation: wt-schweben 18s ease-in-out infinite alternate; }
.wartung::after { right: -25vmax; bottom: -32vmax; background: radial-gradient(circle, rgba(245,165,36,.32), rgba(240,82,74,.18) 45%, transparent 68%); animation: wt-schweben 22s ease-in-out infinite alternate-reverse; }
.wartung.leicht { background: rgba(5,8,14,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .3s; }
.wartung.leicht::after { opacity: .25; }
.wartung.weg { opacity: 0; }
@keyframes wt-schweben { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
.wt-karte { position: relative; width: min(520px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 34px 26px;
  border-radius: 26px; border: 1px solid rgba(255,255,255,.09); background: linear-gradient(180deg, rgba(22,31,47,.78), rgba(10,15,24,.86));
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); animation: wt-auf .5s cubic-bezier(.2,.8,.2,1); }
.wt-karte::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(90,174,255,.55), transparent 35%, transparent 65%, rgba(245,165,36,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.wt-karte.klein { width: min(440px, 100%); padding: 32px 28px 26px; }
@keyframes wt-auf { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.wt-symbol { position: relative; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; color: #ffd27a;
  background: radial-gradient(circle at 30% 25%, rgba(245,165,36,.32), rgba(245,165,36,.08) 70%); border: 1px solid rgba(245,165,36,.45); }
.wt-symbol svg { fill: currentColor; animation: wt-wackeln 3.2s ease-in-out infinite; transform-origin: 70% 70%; }
.wt-symbol::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px dashed rgba(245,165,36,.4); animation: wt-drehen 14s linear infinite; }
.wt-symbol.ok { color: var(--ok); background: radial-gradient(circle at 30% 25%, rgba(52,199,123,.32), rgba(52,199,123,.08) 70%); border-color: rgba(52,199,123,.5); }
.wt-symbol.ok svg { animation: wt-pop .5s cubic-bezier(.2,1.6,.4,1); }
.wt-symbol.ok::after { border-color: rgba(52,199,123,.35); }
.wt-symbol.drehen { color: var(--accent); background: radial-gradient(circle at 30% 25%, rgba(90,174,255,.3), rgba(90,174,255,.07) 70%); border-color: var(--accent-line); }
.wt-symbol.drehen svg { animation: wt-drehen 1.6s linear infinite; transform-origin: 50% 50%; }
.wt-symbol.drehen::after { border-color: rgba(90,174,255,.35); }
@keyframes wt-drehen { to { transform: rotate(360deg); } }
@keyframes wt-wackeln { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-5deg); } }
@keyframes wt-pop { from { transform: scale(.3); opacity: 0; } }
.wt-marke { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.wartung h1 { margin: 2px 0 0; font-size: clamp(24px, 4.6vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  background: linear-gradient(180deg, #fff, #c9d4e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wt-text { margin: 4px 0 10px; max-width: 400px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; white-space: pre-line; }
.wt-zeit { width: 100%; margin: 6px 0 10px; padding: 14px 16px 16px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.wt-zeit-kopf { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wt-zeit-kopf span:first-child { text-align: left; } .wt-zeit-kopf span:last-child { text-align: right; }
.wt-zeit-kopf b { color: var(--text); font-size: 15px; font-weight: 700; }
.wt-balken { position: relative; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.07); }
.wt-balken i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #3d8fe0, var(--accent) 60%, #9dd0ff); transition: width 1s linear;
  box-shadow: 0 0 14px rgba(90,174,255,.55); }
.wt-balken i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); background-size: 60px 100%;
  background-repeat: no-repeat; animation: wt-glanz 2.2s ease-in-out infinite; }
.wt-balken.ueber i { background: linear-gradient(90deg, #c77f12, var(--warn)); box-shadow: 0 0 14px rgba(245,165,36,.5); }
.wt-balken.offen i { width: 35%; animation: wt-pendel 2.4s ease-in-out infinite; }
@keyframes wt-glanz { from { background-position: -60px 0; } to { background-position: calc(100% + 60px) 0; } }
@keyframes wt-pendel { 0% { left: -35%; } 100% { left: 100%; } }
.wt-punkte { width: 100%; list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.wt-punkte li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.wt-punkte svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: var(--ok); }
.wt-punkte span { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.wt-punkte b { color: var(--text); font-size: 13px; font-weight: 650; }
.wt-fuss { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.wt-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.wt-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52,199,123,.6); animation: wt-puls 1.8s ease-out infinite; }
.wt-live.off i { background: var(--warn); animation: none; }
@keyframes wt-puls { to { box-shadow: 0 0 0 9px rgba(52,199,123,0); } }
#wt-pruefen { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; }
#wt-pruefen svg { fill: currentColor; }
#wt-pruefen.laedt svg { animation: wt-drehen .8s linear infinite; }
.wt-weiter { margin-top: 4px; color: var(--faint); font-size: 11.5px; }
.wt-lade { width: 160px; height: 4px; margin-top: 10px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.07); position: relative; }
.wt-lade i { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: inherit; background: var(--accent); animation: wt-pendel 1.3s ease-in-out infinite; }
.fertig .wt-lade i { background: var(--ok); }
@media (max-width: 520px) {
  .wt-karte { padding: 30px 18px 20px; border-radius: 22px; }
  .wt-punkte { grid-template-columns: 1fr; }
  .wt-fuss { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .wartung *, .wartung::before, .wartung::after { animation: none !important; }
}
/* Ankündigung im Spiel */
.wartung-banner { position: fixed; z-index: 1450; left: 50%; top: calc(var(--top-h) + 10px); transform: translateX(-50%); width: min(620px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(43,33,12,.94), rgba(22,20,16,.94)); border: 1px solid rgba(245,165,36,.45);
  box-shadow: 0 16px 44px rgba(0,0,0,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: wb-rein .4s cubic-bezier(.2,.8,.2,1); }
body.auf-start .wartung-banner { top: 12px; }
.wartung-banner.bald { border-color: rgba(240,82,74,.6); background: linear-gradient(135deg, rgba(60,20,18,.95), rgba(26,16,16,.95)); }
.wartung-banner.admin { border-color: var(--accent-line); background: linear-gradient(135deg, rgba(16,32,56,.95), rgba(12,18,28,.95)); }
@keyframes wb-rein { from { opacity: 0; transform: translate(-50%, -12px); } }
.wb-icon { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #ffd27a; background: rgba(245,165,36,.14); border: 1px solid rgba(245,165,36,.35); }
.wb-icon svg { width: 18px; height: 18px; fill: currentColor; }
.wartung-banner.admin .wb-icon { color: var(--accent); background: var(--accent-bg); border-color: var(--accent-line); }
.wb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wb-text b { font-size: 13.5px; font-weight: 700; }
.wb-text small { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-zu { flex: none; width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.wb-zu:hover { background: rgba(255,255,255,.07); color: var(--text); }
/* Wartung verwalten (Admin) */
.wa-karte { align-items: stretch; text-align: left; gap: 12px; }
.wa-kopf { display: flex; gap: 12px; align-items: flex-start; }
.wa-kopf h2 { margin: 0 0 2px; font-size: 20px; }
.wa-kopf small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.wa-karte label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.wa-karte input, .wa-karte textarea, .wa-karte select { font: inherit; font-size: 14px; font-weight: 400; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 9px 11px; resize: vertical; }
.wa-karte input:focus, .wa-karte textarea:focus, .wa-karte select:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-bg); }
.wa-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wa-status { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.wa-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.wa-status.an { color: var(--text); border-color: rgba(245,165,36,.45); } .wa-status.an i { background: var(--warn); animation: wt-puls 1.8s ease-out infinite; }
.wa-status.geplant { color: var(--text); border-color: var(--accent-line); } .wa-status.geplant i { background: var(--accent); }
.wa-karte .ps-knoepfe { justify-content: flex-end; }
@media (max-width: 520px) { .wa-zeile { grid-template-columns: 1fr; } }
