/* byte_leitstelle – Einsatzleitsystem im Stil von Byte Development */
@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; }

:root {
  --bg: #0a090d;
  --bg-2: #111016;
  --bg-3: #18161e;
  --bg-4: #201d27;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eceaf0;
  --muted: #8d8a96;
  --dim: #5f5c68;
  --sun-1: #ffc23d;
  --sun-2: #ff6a3d;
  --sun-3: #ff2e7e;
  --sun: linear-gradient(180deg, var(--sun-1), var(--sun-2) 50%, var(--sun-3));
  --ok: #4ade80;
  --danger: #ff4d64;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Archivo", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: transparent; font: 400 13px/1.4 var(--body); color: var(--text); user-select: none; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Kein weißer Rahmen nach dem Anklicken; nur bei Tastatur-Bedienung eine dezente Markierung */
button:focus, [tabindex]:focus { outline: none; }
button:focus-visible { outline: 2px solid var(--sun-2); outline-offset: 2px; }
.radio button:focus-visible { outline: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--sun); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-corner { background: transparent; }
.ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Bausteine ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 30px; padding: 0 12px; border: 0; border-radius: 5px; background: var(--sun-2); color: #140a06; cursor: pointer; white-space: nowrap; font: 700 11px/1 var(--body); font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.15s, opacity 0.15s; flex: none; }
.btn:hover { background: var(--sun-1); }
.btn:disabled { opacity: 0.4; cursor: default; background: var(--sun-2); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: var(--bg-4); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #ff7083; }
.btn--ok { background: var(--ok); color: #06210f; }
.btn--ok:hover { background: #6ee7a0; }
.btn--sm { height: 26px; padding: 0 9px; font-size: 10px; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; flex: none; }
.icon-btn:hover { background: var(--bg-4); color: var(--text); }
.label { margin: 0; font: 600 10px/1 var(--body); font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.fms { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 4px; color: #000; font: 600 12px/1 var(--mono); flex: none; }
.fms--off { background: var(--bg-4); color: var(--dim); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px; border-radius: 4px; background: var(--bg-4); font: 500 10px/1 var(--mono); color: var(--muted); white-space: nowrap; flex: none; }
.pill--hot { background: rgba(255, 46, 126, 0.16); color: #ff8fb6; }
.pill--warn { background: rgba(255, 194, 61, 0.14); color: var(--sun-1); }
.pill--ok { background: rgba(74, 222, 128, 0.14); color: var(--ok); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot--blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.input, .select, .textarea { width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--bg-3); outline: none; font: 400 12px/1 var(--mono); }
.textarea { height: auto; min-height: 70px; padding: 8px 10px; line-height: 1.4; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--sun-2); }
.select option, .select optgroup { background: var(--bg-2); }
.empty { display: grid; place-items: center; min-height: 56px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 6px; color: var(--dim); text-align: center; font-size: 12px; }

/* ---------- Tablet-Rahmen ---------- */
.tablet {
  position: absolute; inset: 2.5vh 2vw; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.75), 0 0 0 8px rgba(18, 16, 23, 0.92);
  overflow: hidden; animation: tbIn 0.3s var(--ease) both;
}
/* Fahrzeug-Menü: oben mittig, wächst mit dem Inhalt (höchstens 88 % der Bildschirmhöhe, dann scrollen) */
.tablet--unit { inset: 4vh 0 auto 0; margin: 0 auto; width: min(820px, 94vw); height: auto; max-height: 88vh; background: var(--bg-2); }
.tablet--unit .tb-main { flex: 0 1 auto; }
.tablet--unit .uv { height: auto; max-height: calc(88vh - 52px); }
.tablet--unit .tb-head { background: var(--bg-3); }
.tablet--unit .vlist { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.tablet--unit .uv__map { height: 280px; }
@keyframes tbIn { from { opacity: 0; transform: translateY(16px) scale(0.985); } }

.tb-head { display: flex; align-items: center; gap: 18px; height: 50px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); flex: none; min-width: 0; }
.tb-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.tb-logo { display: grid; place-items: center; height: 24px; padding: 0 7px; border-radius: 4px; background: var(--sun); color: #140a06; font: 800 12px/1 var(--body); letter-spacing: 0.06em; flex: none; }
.tb-name { font: 800 19px/1 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-stats { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.tb-stat { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 5px; background: var(--bg-3); font: 500 11px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.tb-stat b { color: var(--text); font-weight: 500; }
.tb-stat--hot { background: rgba(255, 46, 126, 0.14); color: #ff8fb6; }
.tb-stat--hot b { color: #fff; }
.tb-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.tb-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 6px; background: var(--bg-3); }
.tb-tabs button { height: 26px; padding: 0 11px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font: 600 11px/1 var(--body); font-stretch: 112%; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.tb-tabs button.is-active { background: var(--bg); color: var(--text); box-shadow: inset 0 -2px 0 var(--sun-2); }
.tb-clock { font: 500 14px/1 var(--mono); min-width: 44px; text-align: right; }
.tb-call { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 360px; }
.tb-call__info { display: flex; align-items: center; gap: 8px; min-width: 0; height: 32px; padding: 0 12px; border-radius: 6px; background: rgba(74, 222, 128, 0.12); color: var(--ok); font: 500 11px/1 var(--mono); white-space: nowrap; }
.tb-call__info .ellipsis { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tb-call__time { flex: none; }
.tb-call .btn { flex: none; }
.tb-main { flex: 1; min-height: 0; min-width: 0; position: relative; }

/* ---------- Leitstellen-Ansicht ---------- */
.ls { position: relative; display: grid; grid-template-columns: 320px minmax(0, 1fr) 330px; height: 100%; min-width: 0; }
/* Abfrage „Leitstelle übernehmen?“ über der ganzen Ansicht */
.desk-lock { position: absolute; inset: 0; z-index: 18; display: grid; place-items: center; padding: 20px; background: rgba(8, 7, 11, 0.8); backdrop-filter: blur(5px); }
.desk-lock__box { width: min(440px, 100%); padding: 28px 26px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-2); display: grid; gap: 14px; justify-items: center; text-align: center; animation: tbIn 0.25s var(--ease) both; }
.desk-lock__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 106, 61, 0.14); font-size: 26px; }
.desk-lock__icon.is-busy { background: rgba(255, 77, 100, 0.14); }
.col { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg-2); }
.col--left { border-right: 1px solid var(--line); }
.col--right { border-left: 1px solid var(--line); }
.sec { display: flex; flex-direction: column; min-height: 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 12px; flex: none; }
.sec__head .count { font: 500 11px/1 var(--mono); color: var(--muted); }
.sec__body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 10px; display: grid; gap: 6px; align-content: start; }
.sec--calls { flex: 0 1 42%; }
.sec--incidents { flex: 1 1 58%; }
.sec--fleet { flex: 1 1 62%; }
.sec--radio { flex: 0 1 38%; }

/* Karten-Einträge (Notrufe, Einsätze) */
.entry { position: relative; display: grid; gap: 4px; padding: 9px 10px 9px 13px; border: 1px solid transparent; border-radius: 6px; background: var(--bg-3); cursor: pointer; transition: border-color 0.15s, background 0.15s; min-width: 0; }
.entry::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--c, var(--sun-2)); }
.entry:hover { background: var(--bg-4); }
.entry.is-selected { border-color: var(--c, var(--sun-2)); background: var(--bg-4); }
.entry--ringing { animation: ring 1.1s ease-in-out infinite; }
@keyframes ring { 50% { background: #351822; } }
.entry__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.entry__title { flex: 1; font: 500 12px/1.3 var(--mono); }
.entry__time { font: 400 11px/1 var(--mono); color: var(--muted); flex: none; }
.entry__sub { font: 400 11px/1.35 var(--mono); color: var(--muted); }
.entry__text { font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.entry__actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }

/* Lagekarte */
.mapcol { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mapwrap { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #384950; }
.mapwrap canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.mapwrap canvas.is-dragging { cursor: grabbing; }
.mapwrap canvas.is-picking { cursor: crosshair; }
.map-ctrl { position: absolute; display: flex; gap: 4px; padding: 4px; border-radius: 7px; background: rgba(10, 9, 13, 0.88); border: 1px solid var(--line); }
.map-ctrl--styles { top: 10px; left: 10px; }
.map-ctrl--zoom { top: 10px; right: 10px; flex-direction: column; }
.map-ctrl button { height: 26px; min-width: 26px; padding: 0 9px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font: 600 11px/1 var(--body); letter-spacing: 0.04em; }
.map-ctrl button:hover { background: var(--bg-4); color: var(--text); }
.map-ctrl button.is-active { background: var(--bg-4); color: var(--text); box-shadow: inset 0 -2px 0 var(--sun-2); }
/* Status-Legende: schmale Leiste mit Nummern, klappt nach oben eine Liste auf */
.map-legend { position: absolute; left: 10px; bottom: 10px; display: flex; flex-direction: column; max-width: calc(100% - 20px); border: 1px solid var(--line); border-radius: 7px; background: rgba(10, 9, 13, 0.9); overflow: hidden; }
.map-legend__bar { display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.map-legend__bar:hover { background: var(--bg-3); }
.map-legend__label { margin-right: 6px; font: 600 10px/1 var(--body); font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; }
.map-legend__chip { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--c); color: #000; font: 600 10px/1 var(--mono); flex: none; }
.map-legend__caret { margin-left: 6px; font-size: 10px; }
.map-legend__list { display: grid; gap: 2px; width: 240px; max-width: 100%; padding: 8px; border-bottom: 1px solid var(--line); }
.map-legend__row { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 9px; height: 24px; padding: 0 2px; font: 400 11px/1 var(--mono); color: var(--text); }
.map-legend.is-open .map-legend__bar { color: var(--text); }
.map-pickhint { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 7px; background: var(--sun-2); color: #140a06; font: 600 12px/1 var(--body); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); white-space: nowrap; }

/* Protokoll unter der Karte */
.logstrip { flex: 0 0 132px; display: flex; flex-direction: column; min-height: 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.logstrip .sec__head { height: 32px; }
.logstrip__list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 8px; display: grid; gap: 2px; align-content: start; font: 400 11px/1.55 var(--mono); }
.logline { display: grid; grid-template-columns: 44px 16px minmax(0, 1fr); gap: 6px; color: var(--muted); }
.logline b { color: var(--text); font-weight: 500; }
.logline i { font-style: normal; text-align: center; }
.logline span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }

/* Einsatz-Details über der Karte */
.drawer { position: absolute; top: 10px; right: 46px; bottom: 10px; width: min(370px, calc(100% - 66px)); display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(17, 16, 22, 0.97); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); animation: drawerIn 0.25s var(--ease) both; min-height: 0; }
@keyframes drawerIn { from { opacity: 0; transform: translateX(12px); } }
.drawer__head { position: relative; padding: 14px 44px 12px 16px; border-bottom: 1px solid var(--line); flex: none; }
.drawer__head::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--c); }
.drawer__code { font: 900 30px/1 var(--display); text-transform: uppercase; }
.drawer__title { margin-top: 3px; font-size: 14px; }
.drawer__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.drawer__close { position: absolute; top: 8px; right: 8px; }
.drawer__body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px; display: grid; gap: 16px; align-content: start; }
.drawer__foot { display: flex; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); flex: none; }
.drawer__foot .btn { flex: 1; }
.note { margin: 0; padding: 9px 11px; border-left: 2px solid var(--c, var(--sun-2)); border-radius: 0 4px 4px 0; background: var(--bg-3); font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.block { display: grid; gap: 7px; min-width: 0; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pick { display: grid; gap: 4px; }
.pick label { display: grid; grid-template-columns: 16px 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 32px; padding: 0 9px; border-radius: 5px; background: var(--bg-3); cursor: pointer; font: 400 12px/1 var(--mono); }
.pick label:hover { background: var(--bg-4); }
.pick label.is-suggested { box-shadow: inset 0 0 0 1px rgba(255, 106, 61, 0.5); }
.pick label .dist { color: var(--muted); font-size: 11px; }
.pick input { margin: 0; accent-color: var(--sun-2); }
.assigned { display: grid; gap: 4px; }
.assigned div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 30px; padding: 0 9px; border-radius: 5px; background: var(--bg-3); font: 400 12px/1 var(--mono); }
.timeline { display: grid; gap: 3px; max-height: 140px; overflow-y: auto; font: 400 11px/1.45 var(--mono); }
.timeline div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px; color: var(--muted); }
.timeline span { color: var(--text); overflow-wrap: anywhere; }
.row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sec__head .row { gap: 10px; }
.row > .input { flex: 1; min-width: 0; }

/* Fahrzeug-Tableau */
.filters { display: flex; gap: 3px; padding: 0 10px 8px; flex: none; }
.filters button { flex: 1; height: 24px; padding: 0 6px; border: 0; border-radius: 4px; background: var(--bg-3); color: var(--muted); cursor: pointer; font: 600 10px/1 var(--body); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.filters button.is-active { background: var(--bg-4); color: var(--text); box-shadow: inset 0 -2px 0 var(--c, var(--sun-2)); }
.station { display: grid; gap: 3px; }
.station__name { margin: 6px 2px 2px; font: 600 10px/1.2 var(--body); font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.veh { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 9px; height: 38px; padding: 0 8px; border-radius: 5px; background: var(--bg-3); cursor: pointer; border: 1px solid transparent; }
.veh:hover { background: var(--bg-4); }
.veh.is-selected { border-color: var(--sun-2); }
.veh--off { opacity: 0.55; cursor: default; }
.veh--off:hover { background: var(--bg-3); }
.veh__name { min-width: 0; display: grid; gap: 2px; }
.veh__name b { font: 500 12px/1.1 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.veh__name span { font: 400 10px/1.1 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.veh__type { font: 500 10px/1 var(--mono); color: var(--dim); }

/* Unterreiter (Funk / Kliniken) */
.subtabs { display: flex; gap: 2px; }
.subtabs button { height: 24px; padding: 0 9px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font: 600 10px/1 var(--body); font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.subtabs button:hover { color: var(--text); }
.subtabs button.is-active { background: var(--bg-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--sun-2); }

/* Funk */
.channel { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 40px; padding: 5px 8px; border-radius: 5px; background: var(--bg-3); border: 1px solid transparent; }
.channel.is-active { border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.06); }
.channel__no { display: grid; place-items: center; height: 26px; border-radius: 4px; background: var(--bg-4); font: 600 11px/1 var(--mono); }
.channel.is-active .channel__no { background: var(--ok); color: #06210f; }
.channel__info { min-width: 0; display: grid; gap: 2px; }
.channel__info b { font: 500 12px/1.1 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel__info span { font: 400 10px/1.2 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Fenster (Einsatz anlegen) */
.modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(8, 7, 11, 0.72); }
.modal__box { width: min(500px, 100%); max-height: 100%; overflow-y: auto; padding: 22px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-2); animation: tbIn 0.25s var(--ease) both; display: grid; gap: 14px; }
.modal__title { margin: 0; font: 900 30px/1 var(--display); text-transform: uppercase; }
.modal__text { margin: 0; color: var(--muted); font-size: 13px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 8px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font: 600 10px/1 var(--body); font-stretch: 120%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.choices label { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 5px; cursor: pointer; font-size: 12px; white-space: nowrap; overflow: hidden; }
.choices label:has(input:checked) { border-color: var(--sun-2); background: rgba(255, 106, 61, 0.08); }
.choices input { margin: 0; accent-color: var(--sun-2); }
.picked { font: 400 11px/1.3 var(--mono); color: var(--ok); }

/* ---------- Fahrzeug-Ansicht ---------- */
.uv { height: 100%; overflow-y: auto; padding: 16px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.uv__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-width: 0; }
.uv__title { min-width: 0; }
.uv__title h2 { margin: 4px 0 0; font: 900 38px/1 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uv__status { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 10px; background: var(--c); color: #000; font: 900 34px/1 var(--display); flex: none; }
.keypad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.key { display: grid; gap: 4px; justify-items: center; align-content: center; min-height: 70px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-3); cursor: pointer; transition: transform 0.1s, border-color 0.15s; min-width: 0; }
.key:active { transform: scale(0.96); }
.key b { font: 900 28px/1 var(--display); color: var(--c); }
.key span { font-size: 10px; line-height: 1.2; color: var(--muted); text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.key.is-active { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--bg-3)); }
.mission { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--c, var(--line-strong)); border-radius: 8px; background: var(--bg-3); min-width: 0; }
.mission__code { font: 900 28px/1 var(--display); text-transform: uppercase; }
.tablet--unit .tb-stats { display: none; }

/* Logos der Fraktionen (Link aus dem Webpanel) */
.logo { display: inline-block; flex: none; border-radius: 6px; object-fit: contain; }
.logo--text { display: inline-grid; place-items: center; background: var(--c); color: #000; font-family: var(--display); font-weight: 900; line-height: 1; }
.filters button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.filters .logo { border-radius: 3px; }
.uv__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* Unterreiter in der Fahrzeug-Ansicht */
.uv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 7px; background: var(--bg-3); }
.uv-tabs button { height: 30px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font: 600 11px/1 var(--body); font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase; }
.uv-tabs button.is-active { background: var(--bg); color: var(--text); box-shadow: inset 0 -2px 0 var(--sun-2); }

/* Fahrzeugkarte: Status | Name, Besatzung, Plätze | Aktion */
.vcard { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 64px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-3); }
.vcard.is-mine { border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.05); }
.vcard.is-locked { opacity: 0.6; }
.vcard__info { display: grid; gap: 4px; min-width: 0; }
.vcard__top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.vcard__top b { font: 500 13px/1.1 var(--mono); }
.vcard__type { font: 500 10px/1 var(--mono); color: var(--dim); flex: none; }
.vcard__crew { font-size: 11px; line-height: 1.2; color: var(--muted); }
.seats { display: flex; align-items: center; gap: 3px; }
.seats i { width: 8px; height: 8px; border-radius: 2px; background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--line-strong); }
.seats i.is-taken { background: var(--ok); box-shadow: none; }
.seats span { margin-left: 5px; font: 500 10px/1 var(--mono); color: var(--muted); }

/* Aktueller Status im Tablet (gesendet wird über das Funkgerät) */
.statusline__btn { grid-column: 3; grid-row: 1 / 3; }
.statusline { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 11px; row-gap: 3px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 7px; background: var(--bg-3); }
.statusline b { grid-row: 1 / 3; display: grid; place-items: center; height: 34px; border-radius: 6px; background: var(--c); color: #000; font: 900 22px/1 var(--display); }
.statusline span { font-size: 13px; }
.statusline small { font: 400 10px/1.2 var(--mono); color: var(--muted); }

/* Besatzung des eigenen Fahrzeugs */
.crew { display: grid; gap: 7px; }
.crew__list { display: flex; flex-wrap: wrap; gap: 5px; }
.crew__list .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.uv__map { position: relative; height: 230px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #384950; }
.uv__map canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.actions2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.actions2 > :only-child { grid-column: 1 / -1; }
.vlist { display: grid; gap: 5px; }
.vbtn { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-3); cursor: pointer; text-align: left; }
.vbtn:hover:not(:disabled) { border-color: var(--sun-2); }
.vbtn:disabled { opacity: 0.45; cursor: default; }
.vbtn b { display: block; font: 500 13px/1.2 var(--mono); }
.vbtn span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Meldungen, Tooltip ---------- */
.tb-toasts { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); display: grid; gap: 6px; z-index: 30; pointer-events: none; }
.tb-toast { max-width: 460px; padding: 9px 14px; border-radius: 6px; background: var(--sun-2); color: #140a06; font: 600 12px/1.35 var(--body); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); animation: tbIn 0.25s var(--ease) both; }
.tooltip { position: fixed; z-index: 40; max-width: 260px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(17, 16, 22, 0.97); font: 400 11px/1.45 var(--mono); pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.tooltip b { display: block; font-size: 12px; font-weight: 500; }

/* ---------- Telefon (Anrufer) ---------- */
.phone { position: absolute; top: 3vh; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(15, 13, 19, 0.95); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55); animation: tbIn 0.3s var(--ease) both; }
.phone__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ok); color: #06210f; font-size: 17px; }
.phone--ringing .phone__icon { background: var(--sun-2); color: #140a06; animation: blink 1s steps(2) infinite; }
.phone__text { display: grid; gap: 2px; }
.phone__text strong { font: 600 13px/1.1 var(--body); }
.phone__text span { font: 400 11px/1.1 var(--mono); color: var(--muted); }
.phone__hint { margin-left: 6px; padding: 4px 8px; border-radius: 4px; background: var(--bg-4); font: 500 10px/1 var(--mono); color: var(--muted); }

/* ---------- Pager ---------- */
.pager { position: absolute; left: 2vw; top: 28vh; z-index: 50; width: 300px; padding: 15px 17px 17px; border-radius: 14px; background: #0f0d13; border: 2px solid #2a2532; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); font-family: var(--mono); animation: pagerIn 0.4s var(--ease) both; }
.pager.is-vibrate { animation: pagerIn 0.4s var(--ease) both, vibrate 0.12s linear 0.4s 10; }
@keyframes pagerIn { from { opacity: 0; transform: translateX(-40px); } }
@keyframes vibrate { 25% { transform: translate(-2px, 1px); } 75% { transform: translate(2px, -1px); } }
.pager__top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 600 11px/1 var(--body); letter-spacing: 0.2em; color: var(--sun-1); }
.pager__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: blink 0.8s steps(2) infinite; }
.pager__time { margin-left: auto; color: var(--muted); letter-spacing: 0; }
.pager__code { font: 900 34px/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.pager__title { margin: 2px 0 8px; font-size: 14px; }
.pager__addr { font-size: 13px; color: var(--sun-1); }
.pager__note { margin-top: 8px; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Funkgerät ---------- */
.radio { position: fixed; z-index: 45; width: 230px; height: 520px; transform-origin: 0 0; pointer-events: none; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); user-select: none; }
.radio.is-focus { pointer-events: auto; cursor: grab; }
.radio.is-dragging { cursor: grabbing; }
.radio__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.radio__hint { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); padding: 5px 9px; border-radius: 5px; background: rgba(10, 9, 13, 0.92); color: var(--text); font: 500 10px/1 var(--mono); white-space: nowrap; }
.radio__key { position: absolute; padding: 0; border: 0; cursor: pointer; color: #e7e8ea; background: transparent; }
.radio.is-focus .radio__key:hover { filter: brightness(1.25); }
.radio__key:active { transform: translateY(1px); filter: brightness(0.9); }
/* Ziffer immer an derselben Stelle (feste Spalten), Buchstaben daneben: Ziffern stehen sauber untereinander */
.radio__key--num { width: 50px; height: 27px; display: grid; grid-template-columns: 19px 25px; align-items: center; justify-content: center; column-gap: 3px; border-radius: 8px; background: linear-gradient(180deg, #3a3c41, #232428); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 0 #0b0b0c; }
.radio__key--num b { justify-self: end; font: 700 14px/1 var(--body); font-variant-numeric: tabular-nums; }
.radio__key--num small { justify-self: start; font: 600 6.5px/1 var(--body); letter-spacing: 0.04em; color: #9ea1a8; }

/* Steuerkreuz: runder Ring mit vier Pfeilen, OK in der Mitte */
.radio__dpad { position: absolute; left: 92px; top: 324px; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3b3d42, #1d1e21 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 0 #0b0b0c, 0 0 0 1px #0d0d0f; }
.radio.is-focus .radio__dpad { cursor: pointer; }
.radio__dpad-arrow { position: absolute; width: 5px; height: 5px; border: solid #c3c6cc; border-width: 1.6px 1.6px 0 0; pointer-events: none; transition: border-color 0.1s; }
.radio__dpad-arrow.is-up { left: 50%; top: 6px; transform: translateX(-50%) rotate(-45deg); }
.radio__dpad-arrow.is-down { left: 50%; bottom: 6px; transform: translateX(-50%) rotate(135deg); }
.radio__dpad-arrow.is-left { top: 50%; left: 6px; transform: translateY(-50%) rotate(-135deg); }
.radio__dpad-arrow.is-right { top: 50%; right: 6px; transform: translateY(-50%) rotate(45deg); }
.radio__dpad-ok { position: absolute; left: 13px; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(180deg, #4a4d53, #2c2e32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px #111; pointer-events: none; }
/* Beim Drüberfahren leuchtet die Richtung auf, auf die ein Klick wirkt */
.radio.is-focus .radio__dpad[data-dir="up"] .is-up,
.radio.is-focus .radio__dpad[data-dir="down"] .is-down,
.radio.is-focus .radio__dpad[data-dir="left"] .is-left,
.radio.is-focus .radio__dpad[data-dir="right"] .is-right { border-color: #fff; }
.radio.is-focus .radio__dpad[data-dir="ok"] .radio__dpad-ok { filter: brightness(1.3); }
/* Drücken: Ring kippt weich in die Richtung, Pfeil leuchtet; OK nur bei Klick in die Mitte eingedrückt */
.radio__dpad { transition: transform 0.09s ease-out; }
.radio__dpad-ok { transition: transform 0.09s ease-out, filter 0.09s; }
.radio__dpad[data-press="up"] { transform: translateY(-1.5px); }
.radio__dpad[data-press="down"] { transform: translateY(1.5px); }
.radio__dpad[data-press="left"] { transform: translateX(-1.5px); }
.radio__dpad[data-press="right"] { transform: translateX(1.5px); }
.radio__dpad[data-press="up"] .is-up,
.radio__dpad[data-press="down"] .is-down,
.radio__dpad[data-press="left"] .is-left,
.radio__dpad[data-press="right"] .is-right { border-color: #fff; }
.radio__dpad[data-press="ok"] .radio__dpad-ok { transform: scale(0.88); filter: brightness(0.85); }
.radio__key--soft { width: 50px; height: 18px; border-radius: 9px; background: linear-gradient(180deg, #3a3c41, #232428); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 0 #0b0b0c; }
.radio__key--knob { width: 44px; height: 82px; border-radius: 8px; }
.radio__key--emergency { width: 38px; height: 22px; border-radius: 6px; }
/* Display (Farb-LCD) */
.radio__screen { position: absolute; left: 36px; top: 182px; width: 158px; height: 118px; display: flex; flex-direction: column; overflow: hidden; border-radius: 4px; background: linear-gradient(180deg, #0f2236, #0a1726); color: #e8f1fb; font: 500 10px/1.25 var(--mono); }
.rs__top { display: flex; align-items: center; gap: 6px; height: 15px; padding: 0 5px; background: rgba(0, 0, 0, 0.35); font-size: 8.5px; color: #b9c9da; flex: none; }
.rs__signal { display: inline-flex; align-items: flex-end; gap: 1px; height: 11px; }
.rs__signal i { width: 2.5px; background: #8fd18f; }
.rs__clock { margin-left: auto; }
.rs__battery { display: inline-block; width: 14px; height: 7px; padding: 1px; border: 1px solid #b9c9da; border-radius: 2px; }
.rs__battery i { display: block; width: 80%; height: 100%; background: #8fd18f; }
.rs__main { flex: 1; min-height: 0; display: grid; gap: 4px; align-content: start; padding: 5px 6px; }
.rs__group { display: flex; align-items: center; gap: 5px; min-width: 0; color: #cfe1f3; }
.rs__gicon { display: inline-grid; place-items: center; width: 11px; height: 11px; border-radius: 2px; background: #2e6db4; color: #fff; font-size: 7.5px; flex: none; }
.rs__callsign { font: 800 17px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.rs__status { display: flex; align-items: center; gap: 5px; min-width: 0; }
.rs__status b { display: inline-grid; place-items: center; min-width: 16px; height: 14px; padding: 0 3px; border-radius: 3px; color: #000; font-size: 10px; flex: none; }
.rs__status span { font-size: 9.5px; color: #cfe1f3; }
.rs__sent { font-size: 9px; color: #ffd27a; }
.rs__sent.is-ack { color: #8fe0a0; }
.rs__line { font-size: 10px; color: #cfe1f3; }
.rs__msg { flex: 1; min-height: 0; display: grid; gap: 3px; align-content: start; padding: 5px 6px; background: rgba(242, 107, 29, 0.12); }
.rs__msg.alarm { background: rgba(255, 46, 126, 0.18); }
.rs__msg-title { font: 800 13px/1.05 var(--display); text-transform: uppercase; color: #ffd27a; }
.rs__msg-text { font-size: 9.5px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rs__menu { flex: 1; min-height: 0; overflow: hidden; padding: 3px 4px; display: grid; gap: 1px; align-content: start; }
.rs__menu-title { display: flex; justify-content: space-between; gap: 4px; padding: 1px 2px 3px; font-size: 9px; color: #9fb5cb; text-transform: uppercase; letter-spacing: 0.08em; }
.rs__menu-pos { color: #cfe1f3; letter-spacing: 0; }
.rs__menu-more { height: 7px; font-size: 6px; line-height: 7px; text-align: center; color: #9fb5cb; }
.rs__menu-item { padding: 2px 3px; border-radius: 2px; font-size: 9.5px; cursor: pointer; }
.rs__menu-item.is-sel { background: #2e6db4; }
.rs__menu-item.is-active span::after { content: " ●"; color: #8fe0a0; }
.rs__soft { display: flex; justify-content: space-between; height: 14px; padding: 0 6px; background: rgba(0, 0, 0, 0.35); font-size: 8.5px; line-height: 14px; color: #cfe1f3; flex: none; }

/* ---------- Pager (Digitaler Meldeempfänger) ---------- */
.pager-dev { position: fixed; z-index: 45; width: 320px; height: 150px; transform-origin: 0 0; pointer-events: none; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.55)); user-select: none; }
.pager-dev.is-focus { pointer-events: auto; cursor: grab; }
.pager-dev.is-dragging { cursor: grabbing; }
.pager-dev__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pager-dev__led { position: absolute; left: 25px; top: 44px; width: 12px; height: 12px; border-radius: 50%; background: #3a1414; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); }
.pager-dev__led.is-alarm { background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b, 0 0 2px #fff inset; animation: blink 0.9s steps(2) infinite; }
.pager-dev__btn { position: absolute; padding: 0; border: 0; cursor: pointer; background: linear-gradient(180deg, #44474d, #26282c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 0 #0b0b0c; }
.pager-dev__btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border: solid #c9ccd2; border-width: 1.8px 1.8px 0 0; }
.pager-dev__btn.is-up { left: 254px; top: 34px; width: 46px; height: 20px; border-radius: 10px 10px 6px 6px; }
.pager-dev__btn.is-up::before { transform: translate(-50%, -25%) rotate(-45deg); }
.pager-dev__btn.is-down { left: 254px; top: 106px; width: 46px; height: 20px; border-radius: 6px 6px 10px 10px; }
.pager-dev__btn.is-down::before { transform: translate(-50%, -75%) rotate(135deg); }
.pager-dev__btn.is-read { left: 257px; top: 60px; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #4b4f56, #2c2e33); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 0 #0b0b0c, 0 0 0 2px #17181b; }
.pager-dev__btn.is-read::before { width: 12px; height: 12px; border: 0; border-radius: 50%; background: radial-gradient(circle, #8fe0a0 0 35%, transparent 40%); transform: translate(-50%, -50%); }
.pager-dev.is-focus .pager-dev__btn:hover { filter: brightness(1.25); }
.pager-dev__btn:active { transform: translateY(1px); }
.pager-dev__screen { position: absolute; left: 60px; top: 34px; width: 174px; height: 90px; display: flex; flex-direction: column; overflow: hidden; border-radius: 5px; background: linear-gradient(180deg, #c3d1b2, #a9b997); color: #17210f; font: 500 10px/1.25 var(--mono); box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.25); }
.ps__top { display: flex; align-items: center; gap: 6px; height: 14px; padding: 0 5px; border-bottom: 1px solid rgba(23, 33, 15, 0.25); font-size: 8.5px; flex: none; }
.ps__count { padding: 0 3px; border-radius: 2px; background: rgba(23, 33, 15, 0.15); }
.ps__clock { margin-left: auto; }
.ps__battery { display: inline-block; width: 13px; height: 7px; padding: 1px; border: 1px solid #17210f; border-radius: 2px; }
.ps__battery i { display: block; width: 75%; height: 100%; background: #17210f; }
.ps__main { flex: 1; min-height: 0; display: grid; gap: 1px; align-content: start; padding: 3px 6px; }
.ps__meta { display: flex; align-items: center; gap: 6px; font-size: 8.5px; }
.ps__new { padding: 0 3px; border-radius: 2px; background: #17210f; color: #c3d1b2; font-size: 8px; animation: blink 0.9s steps(2) infinite; }
.ps__code { font: 900 16px/1.05 var(--display); text-transform: uppercase; }
.ps__line { font-size: 9.5px; font-weight: 600; }
.ps__text { font-size: 9px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ps__idle { flex: 1; display: grid; place-content: center; text-align: center; gap: 2px; }
.ps__big { font: 900 30px/1 var(--display); letter-spacing: 0.04em; }

/* ---------- Ausrüstung (Taste F10): Funkgerät und Pager an- und ablegen ---------- */
.equip { position: fixed; z-index: 70; left: 50%; top: 4vh; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(17, 16, 22, 0.97); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); animation: equipIn 0.25s var(--ease) both; }
@keyframes equipIn { from { opacity: 0; transform: translate(-50%, -8px); } }
.equip__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.equip__title { font: 900 20px/1 var(--display); text-transform: uppercase; }
.equip__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.equip__tile { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg-3); cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s; }
.equip__tile:hover:not(:disabled) { border-color: rgba(255, 106, 61, 0.6); }
.equip__tile.is-on { border-color: rgba(74, 222, 128, 0.55); background: rgba(74, 222, 128, 0.07); }
.equip__tile.is-missing { opacity: 0.55; cursor: default; }
.equip__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: var(--bg-4); color: var(--text); }
.equip__icon svg { width: 24px; height: 24px; }
.equip__tile.is-on .equip__icon { background: rgba(74, 222, 128, 0.16); color: var(--ok); }
.equip__text { display: grid; gap: 3px; min-width: 0; }
.equip__text b { font: 700 14px/1.1 var(--body); }
.equip__text small { font: 400 11px/1.25 var(--mono); color: var(--muted); }
.equip__state { width: 34px; height: 20px; border-radius: 10px; background: var(--bg-4); position: relative; transition: background 0.15s; }
.equip__state::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform 0.2s var(--ease), background 0.15s; }
.equip__state.is-on { background: var(--ok); }
.equip__state.is-on::after { transform: translateX(14px); background: #06210f; }

/* ---------- Einführung (Funkgerät und Tablet) ---------- */
.rtour { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.rtour > * { pointer-events: auto; }
.rtour__dim { position: absolute; inset: 0; background: rgba(6, 5, 9, 0.6); animation: fadeIn 0.2s ease both; }
.rtour__spot { position: absolute; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(6, 5, 9, 0.62), 0 0 0 2px var(--sun-2), 0 0 24px rgba(255, 106, 61, 0.45); pointer-events: none; transition: left 0.3s var(--ease), top 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease); }
.rtour__modal, .rtour__card { position: absolute; display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); color: var(--text); }
.rtour__modal { left: 50%; top: 50%; width: min(420px, calc(100vw - 32px)); transform: translate(-50%, -50%); text-align: center; justify-items: center; animation: tourIn 0.3s var(--ease) both; }
.rtour__card { width: 320px; max-width: calc(100vw - 32px); animation: fadeIn 0.25s ease both; }
@keyframes tourIn { from { opacity: 0; transform: translate(-50%, -46%); } }
@keyframes fadeIn { from { opacity: 0; } }
.rtour__badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(255, 106, 61, 0.14); color: var(--sun-2); font: 600 10px/1 var(--body); font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase; }
.rtour__title { margin: 0; font: 900 26px/1.02 var(--display); text-transform: uppercase; }
.rtour__text { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.rtour__head { display: grid; gap: 8px; }
.rtour__step { font: 500 11px/1 var(--mono); color: var(--sun-2); letter-spacing: 0.04em; }
.rtour__bar { display: flex; gap: 4px; }
.rtour__bar i { flex: 1; height: 3px; border-radius: 2px; background: var(--bg-4); }
.rtour__bar i.is-done { background: var(--sun-2); }
.rtour__actions { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 4px; }
.rtour__card .rtour__actions { justify-content: stretch; }
.icon-btn--help { font: 700 14px/1 var(--body); }

/* Kleinere Bildschirme: rechte Spalte schmaler */
@media (max-width: 1500px) {
  .ls { grid-template-columns: 290px minmax(0, 1fr) 300px; }
  .tb-stats .tb-stat:nth-child(n+4) { display: none; }
}
@media (max-width: 1250px) {
  .tb-stats { display: none; }
}

/* ---------- Radio-HUD: wer ist im Funkkanal (Webpanel → Radio-HUD) ---------- */
/* Ohne Kasten: nur Text mit leichtem Schatten, damit er auf jedem Hintergrund lesbar bleibt */
.rhud {
  position: fixed; z-index: 30; display: grid; justify-items: start; gap: 1px; max-width: 280px;
  font: 500 12px/1.2 var(--body); color: var(--text); pointer-events: none; user-select: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.75);
  transform: scale(var(--rhud-scale, 1));
}.rhud[data-pos="top-left"] { top: 24px; left: 24px; transform-origin: top left; }
.rhud[data-pos="top-right"] { top: 24px; right: 24px; transform-origin: top right; }
.rhud[data-pos="left-center"] { top: 50%; left: 24px; transform: translateY(-50%) scale(var(--rhud-scale, 1)); transform-origin: left center; }
.rhud[data-pos="right-center"] { top: 50%; right: 24px; transform: translateY(-50%) scale(var(--rhud-scale, 1)); transform-origin: right center; }
.rhud[data-pos="bottom-left"] { bottom: 24px; left: 24px; transform-origin: bottom left; }
.rhud[data-pos="bottom-right"] { bottom: 24px; right: 24px; transform-origin: bottom right; }
.tablet:not([hidden]) ~ .rhud { display: none; } /* im Tablet stört es nur */
.rhud__head { display: flex; align-items: center; gap: 6px; padding: 0 2px 4px; color: rgba(236, 234, 240, 0.55); font: 600 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.rhud__live { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.rhud__row { display: flex; align-items: center; gap: 7px; max-width: 100%; padding: 2px; color: rgba(205, 202, 212, 0.8); transition: color 0.15s; }
.rhud__row.is-self { color: rgba(236, 234, 240, 0.92); }
.rhud__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgba(200, 197, 208, 0.35); transition: background 0.15s, box-shadow 0.15s; }
.rhud__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rhud__row.is-self .rhud__name { font-weight: 700; }
.rhud__cs { flex: none; font: 500 10px/1.3 var(--mono); opacity: 0.8; }
.rhud__id { flex: none; font: 500 11px/1 var(--mono); opacity: 0.7; }
.rhud__id::before { content: "#"; opacity: 0.6; }
.rhud__row.is-talking { color: #fff; }
.rhud__row.is-talking .rhud__name { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 106, 61, 0.75); }
.rhud__row.is-talking .rhud__dot { background: var(--sun-1); box-shadow: 0 0 8px var(--sun-2), 0 0 2px var(--sun-1); animation: rhudPulse 0.9s ease-in-out infinite; }
.rhud__more { padding: 2px; color: rgba(200, 197, 208, 0.5); font: 500 10px/1 var(--mono); }
@keyframes rhudPulse { 50% { box-shadow: 0 0 14px var(--sun-2), 0 0 2px var(--sun-1); } }
