/* Emergency Command – Leitstellen-Oberfläche. Referenz 1920×1080, proportional skaliert (F26). */
:root, .immer-dunkel {
  --bg: #0b1117; --p1: #111a23; --p2: #16212c; --p3: #1d2a37; --p4: #253445; --ln: #2b3b4c; --ln2: #3a4d61;
  --tx: #dbe3ea; --mu: #8b9bab; --mu2: #64748a; --ac: #4c8dff; --ac2: #2c5fb8;
  --rea: #e8590c; --ok: #2fb36d; --warn: #e6a700; --err: #d9423a;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --s0: #A72A28; --s1: #64AA32; --s2: #148C14; --s3: #14558C; --s4: #8C2814; --s5: #E67E22; --s6: #646464;
  --s7: #1E148C; --s8: #5A148C; --s9: #2EC27E; --s10: #253241; --sA: #253241; --sB: #3B4F65; --sC: #F5C211; --sD: #654F3B;
  /* Tönungen (Hinweise, Chips, Meldungen) – hell überschrieben, Darstellung 2026-11-19 */
  --ok-bg: #123d27; --ok-tx: #bff0d3; --warn-bg: #3d3000; --warn-tx: #ffe28a; --err-bg: #4a1714; --err-tx: #ffc9c4;
  --info-bg: #0d2b55; --info-bg2: #14243a; --info-tx: #cfe0ff; --link: #9cc2ff; --inp: #0a1016; --rea-bg: #3a1a0a; --rea-tx: #ffb98a;
  --vio-bg: #2c1f4a; --vio-tx: #d9c8ff; --rand: #04070a; --schatten: #000c; --schleier: #0009;
  /* Knopfrollen (Skizze darstellung-hell.html D3) */
  --b-weiter: #4cc27a; --b-weiter-ln: #2f9e5b; --b-weiter-tx: #06240f;
  --b-zurueck: #f28b82; --b-zurueck-ln: #d9574c; --b-zurueck-tx: #3b0906;
  --b-gefahr: #c62828; --b-gefahr-ln: #ef5350; --b-neu: #3b82f6; --b-neu-ln: #2563eb;
  --b-ausgabe: #9b8cf7; --b-ausgabe-ln: #7c6cf0; --b-ausgabe-tx: #160c45; --an-tx: #fff;
  color-scheme: dark;
}
/* Helle Darstellung (je Arbeitsplatz, rahmen/darstellung.js); .immer-dunkel (Stabswand) bleibt dunkel */
:root[data-darstellung="hell"] {
  --bg: #eef1f5; --p1: #ffffff; --p2: #f6f8fa; --p3: #edf1f5; --p4: #e0e7ee; --ln: #d3dbe3; --ln2: #b4c1ce;
  --tx: #16202a; --mu: #536373; --mu2: #7a8897; --ac: #2563eb; --ac2: #d3e2ff;
  --ok: #178a45; --warn: #a66a00; --err: #d32f2f;
  --ok-bg: #dcf5e6; --ok-tx: #14532d; --warn-bg: #fff3c4; --warn-tx: #6b4b00; --err-bg: #fde4e1; --err-tx: #9b1c14;
  --info-bg: #e3edff; --info-bg2: #eef4ff; --info-tx: #1e3a8a; --link: #1d4ed8; --inp: #ffffff; --rea-bg: #ffe8d9; --rea-tx: #9a3a05;
  --vio-bg: #efe9ff; --vio-tx: #4c1d95; --rand: #c4ccd5; --schatten: #0f172a33; --schleier: #0f172a55;
  --b-weiter: #5fd08c; --b-zurueck: #f6a39c; --b-zurueck-ln: #e0675d; --b-ausgabe: #b3a8fa; --b-ausgabe-ln: #8a7cf2; --an-tx: #123a8c;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--rand); overflow: hidden; }
body { display: flex; align-items: center; justify-content: center; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tx); }
button, input, select, textarea { font: inherit; color: inherit; }
.buehne { position: relative; width: 1920px; height: 1080px; flex: none; background: var(--bg); font-size: 15px; line-height: 1.3; overflow: hidden; }
.start-hinweis { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mu); font-size: 22px; }

/* ---------- Rahmen ---------- */
.tb { position: absolute; left: 0; top: 0; right: 0; height: 44px; background: var(--p1); border-bottom: 1px solid var(--ln); display: flex; align-items: center; gap: 14px; padding: 0 12px; }
.tb .logo { width: 30px; height: 30px; border-radius: 6px; background: var(--ac2); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.tb .titel { font-size: 17px; font-weight: 600; white-space: nowrap; }
.tb .titel b { color: var(--mu); font-weight: 500; }
.tb .fen { font-size: 12px; color: var(--mu); border: 1px solid var(--ln2); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.tb .reiter { display: flex; gap: 2px; align-self: flex-end; height: 36px; min-width: 0; overflow: hidden; }
.tb .reiter button { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--p2); border: 1px solid var(--ln); border-bottom: none; border-radius: 6px 6px 0 0; color: var(--mu); font-size: 14px; white-space: nowrap; cursor: pointer; }
.tb .reiter button.an { background: var(--bg); color: var(--tx); font-weight: 600; box-shadow: inset 0 2px 0 var(--ac); }
.tb .reiter .x { color: var(--mu2); font-size: 12px; padding: 0 2px; border-radius: 3px; }
.tb .reiter .x:hover { background: var(--p4); color: var(--tx); }
.tb .meldungsplatz { flex: 1; display: flex; justify-content: center; min-width: 0; }
.tb .rechts { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
.tb select.lage { background: var(--p2); border: 1px solid var(--ln2); border-radius: 6px; padding: 4px 8px; font-size: 14px; max-width: 260px; }
.tb .dtg { font-family: var(--mono); font-size: 14px; color: var(--mu); }
.tb .uhr { font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: .5px; min-width: 104px; }
.tb .benutzer { font-size: 14px; color: var(--mu); background: none; border: 1px solid transparent; border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.tb .benutzer:hover { border-color: var(--ln2); color: var(--tx); }

.toast { padding: 6px 14px; border-radius: 6px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 760px; border: 1px solid; }
.toast.info { background: var(--info-bg); border-color: var(--ac); color: var(--info-tx); }
.toast.erfolg { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-tx); }
.toast.warnung { background: var(--warn-bg); border-color: var(--warn); color: var(--warn-tx); }
.toast.fehler { background: var(--err-bg); border-color: var(--err); color: var(--err-tx); }

.rail { position: absolute; right: 0; top: 44px; bottom: 32px; width: 124px; background: var(--p1); border-left: 1px solid var(--ln); display: flex; flex-direction: column; padding: 6px; gap: 4px; }
.rail button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 6px; background: var(--p2); border: 1px solid var(--ln); font-size: 12.5px; text-align: center; line-height: 1.1; padding: 4px 2px; cursor: pointer; hyphens: manual; }
.rail button:hover { border-color: var(--ln2); background: var(--p3); }
.rail button:focus-visible { outline: 2px solid var(--ac); outline-offset: 1px; }
.rail .ic { font-size: 17px; line-height: 1; }
.rail .k { position: absolute; right: 3px; top: 2px; font-size: 10px; color: var(--mu); font-family: var(--mono); }
.rail .w { position: absolute; left: 3px; top: 2px; font-size: 10px; color: var(--link); font-family: var(--mono); }
.rail button.an { background: var(--ac2); border-color: var(--ac); }
.rail button.rea { background: var(--rea); border-color: #ff8a4c; color: #fff; font-weight: 700; }
.rail button.rea .k { color: #fff; }
.rail .sep { height: 1px; background: var(--ln); margin: 3px 4px; flex: none; }
.rail .platz { flex: 1; }

.sb { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; background: var(--p1); border-top: 1px solid var(--ln); display: flex; align-items: center; font-size: 13px; }
.sb > div { display: flex; align-items: center; gap: 6px; padding: 0 12px; height: 100%; border-right: 1px solid var(--ln); white-space: nowrap; }
.sb > div:last-child { border-right: none; }
.sb .ticker { flex: 1; overflow: hidden; color: var(--mu); }
.punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--mu2); display: inline-block; }
.punkt.verbunden { background: var(--ok); }
.punkt.wird { background: var(--warn); }
.punkt.keine, .punkt.fehlgeschlagen { background: var(--err); }
.zaehler { display: inline-block; min-width: 22px; text-align: center; border-radius: 4px; padding: 1px 6px; font-weight: 700; color: #fff; }

.inhalt { position: absolute; left: 0; top: 44px; right: 124px; bottom: 32px; padding: 6px; }
.ansicht { position: absolute; inset: 6px; display: none; }
.ansicht.an { display: block; }

/* ---------- Bausteine ---------- */
.pn { background: var(--p1); border: 1px solid var(--ln); border-radius: 6px; display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.pn > .h { display: flex; align-items: center; gap: 8px; height: 28px; flex: none; padding: 0 10px; background: var(--p2); border-bottom: 1px solid var(--ln); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--mu); }
.pn > .b { padding: 10px 12px; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 5px; background: var(--p3); border: 1px solid var(--ln2); font-size: 14px; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--p4); }
.btn:focus-visible, .inp:focus-visible, select:focus-visible { outline: 2px solid var(--ac); outline-offset: 1px; }
.btn:disabled { opacity: .5; cursor: default; }
/* Knopfrollen (Skizze darstellung-hell.html D3); Zuordnung automatisch in kern/dom.js und rahmen/dialog.js */
.btn.pri, .btn.weiter { background: var(--b-weiter); border-color: var(--b-weiter-ln); color: var(--b-weiter-tx); font-weight: 600; }
.btn.zurueck { background: var(--b-zurueck); border-color: var(--b-zurueck-ln); color: var(--b-zurueck-tx); font-weight: 600; }
.btn.gefahr { background: var(--b-gefahr); border-color: var(--b-gefahr-ln); color: #fff; font-weight: 600; }
.btn.neu { background: var(--b-neu); border-color: var(--b-neu-ln); color: #fff; font-weight: 600; }
.btn.ausgabe { background: var(--b-ausgabe); border-color: var(--b-ausgabe-ln); color: var(--b-ausgabe-tx); font-weight: 600; }
.btn.pri:hover, .btn.weiter:hover, .btn.zurueck:hover, .btn.gefahr:hover, .btn.neu:hover, .btn.ausgabe:hover { filter: brightness(1.08); }
.btn.klein { height: 26px; padding: 0 8px; font-size: 13px; }
.btn.an { background: var(--ac2); border-color: var(--ac); color: var(--an-tx); }
.inp { height: 32px; padding: 0 9px; border-radius: 5px; background: var(--inp); border: 1px solid var(--ln2); font-size: 14px; min-width: 0; }
textarea.inp { height: auto; padding: 6px 9px; resize: none; }
.feld { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feld > label, .lbl { font-size: 12px; color: var(--mu); }
.zeile { display: flex; gap: 8px; align-items: center; }
.mu { color: var(--mu); }
.hinweis { font-size: 13px; color: var(--mu); }
.fehlertext { color: var(--err-tx); font-size: 13.5px; min-height: 18px; }
.seg { display: inline-flex; border: 1px solid var(--ln2); border-radius: 5px; overflow: hidden; }
.seg button { padding: 5px 12px; font-size: 13.5px; background: var(--p3); border: none; border-right: 1px solid var(--ln2); cursor: pointer; }
.seg button:last-child { border-right: none; }
.seg button.an { background: var(--ac2); color: var(--an-tx); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--p3); border: 1px solid var(--ln2); font-size: 12.5px; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-tx); }
.chip.warn { background: var(--warn-bg); border-color: var(--warn); color: var(--warn-tx); }
table.tab { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.tab th, table.tab td { border-bottom: 1px solid var(--ln); padding: 5px 8px; text-align: left; white-space: nowrap; }
table.tab th { color: var(--mu); font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; }

/* Statusfarben */
.s0 { background: var(--s0); } .s1 { background: var(--s1); } .s2 { background: var(--s2); } .s3 { background: var(--s3); } .s4 { background: var(--s4); }
.s5 { background: var(--s5); color: #101820 !important; } .s6 { background: var(--s6); } .s7 { background: var(--s7); } .s8 { background: var(--s8); } .s9 { background: var(--s9); }

/* Synchrones Blinken über den gemeinsamen Takt (Klasse .takt am html-Element) */
.takt .blinkt-5 { box-shadow: inset 0 0 0 4px #ffd2a6; }
.takt .blinkt-0 { box-shadow: inset 0 0 0 4px #fff; filter: brightness(1.4); }

/* ---------- Dialoge ---------- */
.dlg-hintergrund { position: absolute; inset: 0; z-index: 100; background: #0009; display: grid; place-items: center; }
.dlg { background: var(--p1); border: 1px solid var(--ln2); border-radius: 8px; box-shadow: 0 16px 50px #000c; display: flex; flex-direction: column; max-height: 900px; }
.dlg-kopf { height: 40px; display: flex; align-items: center; padding: 0 8px 0 14px; background: var(--p3); border-radius: 8px 8px 0 0; font-weight: 600; font-size: 15px; }
.dlg-x { margin-left: auto; background: none; border: none; color: var(--mu); font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.dlg-x:hover { background: var(--p4); color: var(--tx); }
.dlg-inhalt { padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: auto; min-height: 0; }
.dlg-inhalt p { margin: 0; }
.dlg-knoepfe { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--ln); }

/* ---------- Anmeldung ---------- */
.anmeldung { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, var(--info-bg2), var(--bg) 60%); }
.anmeldung .karte { width: 520px; background: var(--p1); border: 1px solid var(--ln2); border-radius: 10px; box-shadow: 0 20px 60px #000a; padding: 30px 34px; display: flex; flex-direction: column; gap: 14px; }
.anmeldung .kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.anmeldung .kopf .logo { width: 52px; height: 52px; border-radius: 10px; background: var(--ac2); display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.anmeldung h1 { margin: 0; font-size: 26px; }
.anmeldung .inp { height: 42px; font-size: 16px; }
.anmeldung .btn.pri { height: 46px; font-size: 17px; }
.anmeldung .fuss { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--mu); margin-top: 4px; }
.anmeldung a, .link { color: var(--link); text-decoration: none; cursor: pointer; background: none; border: none; padding: 0; font-size: inherit; }
.anmeldung a:hover, .link:hover { text-decoration: underline; }
.anmeldung .verb { position: absolute; bottom: 14px; left: 16px; font-size: 13px; color: var(--mu); display: flex; gap: 6px; align-items: center; }
.impressum-text { white-space: pre-wrap; font-size: 13.5px; line-height: 1.5; max-height: 640px; overflow: auto; margin: 0; font-family: inherit; }

/* ---------- Platzhalter-Ansichten ---------- */
.platzhalter { position: absolute; inset: 0; display: grid; place-items: center; border: 1px dashed var(--ln2); border-radius: 8px; background: repeating-linear-gradient(135deg, transparent 0 22px, #ffffff04 22px 44px); }
.platzhalter .karte { width: 760px; background: var(--p1); border: 1px solid var(--ln); border-radius: 10px; padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.platzhalter .ic { font-size: 44px; }
.platzhalter h2 { margin: 0; font-size: 28px; }
.platzhalter ul { margin: 0; padding-left: 20px; color: var(--mu); line-height: 1.6; }

/* ---------- Tools ---------- */
.tools { position: absolute; inset: 0; display: grid; grid-template-columns: 260px 1fr; gap: 6px; }
.tools .liste { display: flex; flex-direction: column; gap: 4px; padding: 6px; background: var(--p1); border: 1px solid var(--ln); border-radius: 6px; }
.tools .liste button { text-align: left; padding: 9px 12px; border-radius: 5px; background: var(--p2); border: 1px solid var(--ln); cursor: pointer; font-size: 14.5px; display: flex; justify-content: space-between; }
.tools .liste button.an { background: var(--ac2); border-color: var(--ac); }
.tools .liste button .ph { font-size: 11px; color: var(--mu); }
.nachricht { display: flex; gap: 10px; padding: 6px 10px; border-radius: 5px; background: var(--p2); font-size: 14px; }
.nachricht .zeit { font-family: var(--mono); color: var(--mu); }
.nachricht.fehler { box-shadow: inset 3px 0 0 var(--err); } .nachricht.warnung { box-shadow: inset 3px 0 0 var(--warn); }
.nachricht.erfolg { box-shadow: inset 3px 0 0 var(--ok); } .nachricht.info { box-shadow: inset 3px 0 0 var(--ac); }

/* ---------- Arbeitsplatz ---------- */
.ap-zeile { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: end; }
.blinkt-fenster { animation: fensterblink .4s 3; }
@keyframes fensterblink { 50% { box-shadow: inset 0 0 0 6px var(--ac); } }

/* ---------- Einsatzmittel-Kacheln (Phase 2) ---------- */
.emk { position: relative; min-height: 44px; border-radius: 5px; padding: 6px 9px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-width: 0; cursor: pointer; user-select: none; }
.emk .z { position: absolute; right: 8px; top: 4px; font-size: 40px; font-weight: 800; line-height: 1; opacity: .95; }
.emk .o { font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 40px; }
.emk .n { font-size: 16px; font-weight: 700; padding-right: 40px; line-height: 1.15; max-height: 2.3em; overflow: hidden; }
.emk .d { font: 600 10.5px/1.15 var(--mono); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 40px; }
.emk.klein .d { font-size: 9.5px; padding-right: 24px; }
.emk .e { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #0006; margin: 4px -9px -6px; padding: 2px 9px; }
.emk .flag { position: absolute; left: 4px; top: 3px; font-size: 10px; font-weight: 800; background: #000a; border-radius: 3px; padding: 0 4px; color: #fff; }
.emk .flag ~ .o { margin-top: 12px; }
.emk .notiz { font-weight: 400; }
.emk.pseudo { box-shadow: inset 0 0 0 2px #fff8; }
.emk.gesperrt::after { content: "🔒"; position: absolute; right: 6px; bottom: 4px; font-size: 11px; }
.emk.klein { padding: 3px 6px; min-height: 30px; }
.emk.klein .z { font-size: 20px; top: 50%; transform: translateY(-50%); right: 6px; }
.emk.klein .o { font-size: 10.5px; padding-right: 24px; }
.emk.klein .n { font-size: 12.5px; padding-right: 24px; max-height: 1.2em; }
.emk.klein .e { font-size: 10.5px; margin: 2px -6px -3px; padding: 1px 6px; }
.emk.markiert { outline: 3px solid #fff; outline-offset: -3px; }
.platz-leer { border: 1px dashed var(--ln); border-radius: 5px; color: var(--mu2); display: grid; place-items: center; font-size: 12px; }
.platz-ueberschrift { border-radius: 5px; background: var(--p4); border: 1px solid var(--ln2); display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; padding: 4px; }
.ziel-drop { outline: 3px dashed var(--ac); outline-offset: -3px; }

/* Kontextmenü */
.ctx { position: absolute; z-index: 120; background: var(--p2); border: 1px solid var(--ln2); border-radius: 6px; box-shadow: 0 8px 28px #000a; padding: 4px; min-width: 240px; font-size: 14px; display: flex; flex-direction: column; }
.ctx button { text-align: left; padding: 6px 10px; border-radius: 4px; background: none; border: none; cursor: pointer; white-space: nowrap; }
.ctx button:hover:not(:disabled), .ctx button:focus { background: var(--ac2); outline: none; }
.ctx button:disabled { color: var(--mu2); cursor: default; }
.ctx hr { border: none; border-top: 1px solid var(--ln); margin: 3px 0; }
.ctx-titel { padding: 2px 10px 4px; font-size: 12px; color: var(--mu); }
.ctx-gruppe { position: relative; }
.ctx-sub { display: none; position: static; box-shadow: none; border: none; padding: 0 0 0 12px; min-width: 0; }
.ctx-sub.offen { display: flex; }

/* Statusleiste: Ticker */
.sb .tk { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; }
.sb .tk i { font-style: normal; display: inline-block; min-width: 20px; text-align: center; border-radius: 3px; padding: 0 4px; font-weight: 700; }
.sb .zaehler { cursor: pointer; }

/* ---------- Einsatzübersicht ---------- */
.eu { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 520px; grid-template-rows: 46px 1fr; gap: 6px; }
.eu-filter { grid-column: 1 / 3; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: var(--p1); border: 1px solid var(--ln); border-radius: 6px; }
.eu-liste { flex: 1; overflow: auto; outline: none; }
.eu-zeile { display: grid; grid-template-columns: 78px 62px 88px minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 34px 96px 150px 104px; gap: 0 10px; align-items: center; padding: 0 10px; height: 34px; border-bottom: 1px solid #1c2733; font-size: 14px; white-space: nowrap; cursor: pointer; }
.eu-zeile > * { overflow: hidden; text-overflow: ellipsis; }
.eu-zeile.kopf { height: 30px; font-size: 11.5px; font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .5px; background: var(--p2); cursor: default; }
.eu-zeile:hover:not(.kopf) { background: var(--p2); }
.eu-zeile.rea { background: var(--rea-bg); box-shadow: inset 4px 0 0 var(--rea); }
.eu-zeile.gewaehlt { background: var(--ac2) !important; box-shadow: inset 4px 0 0 #fff; }
.eu-liste:focus-visible .eu-zeile.gewaehlt { outline: 2px solid #fff; outline-offset: -2px; }
.emk-liste { display: flex; gap: 3px; align-items: center; }
.emk-liste i { font-style: normal; font-size: 11.5px; padding: 1px 5px; border-radius: 3px; font-weight: 600; white-space: nowrap; }
.st { font-size: 12px; border-radius: 3px; padding: 1px 6px; border: 1px solid var(--ln2); }
.eu-vorschau .b { overflow: hidden; }
.eu-em { display: flex; flex-direction: column; gap: 4px; }
.eu-em .emk { min-height: 38px; }
.mono { font-family: var(--mono); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 3px 10px; font-size: 13.5px; }
.kv > span:nth-child(odd) { color: var(--mu); }
.list { display: flex; flex-direction: column; gap: 2px; }
.li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 4px; background: var(--p2); font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.pn > .h .r { margin-left: auto; display: flex; gap: 6px; align-items: center; text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ---------- Tableau ---------- */
.tl { position: absolute; inset: 0; display: grid; grid-template-rows: 44px 1fr; gap: 6px; }
.tl-leiste { display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--p1); border: 1px solid var(--ln); border-radius: 6px; min-width: 0; }
.tl-reiter { display: flex; gap: 4px; overflow: hidden; min-width: 0; }
.tl-reiter .chip { cursor: pointer; height: 28px; font-size: 13.5px; }
.chip.an { background: var(--ac2); border-color: var(--ac); }
.tl-raster { display: grid; gap: 6px; min-height: 0; position: relative; overflow: auto; --emk-min: 62px; }
.tl-raster.dicht { --emk-min: 46px; }
.tl-raster .emk .z { font-size: 44px; }
.tl-raster .emk .n { font-size: 17px; padding-right: 46px; }
.tl-raster .emk .o { font-size: 13px; padding-right: 46px; }
.tl-raster.dicht .emk .z { font-size: 26px; }
.tl-raster.dicht .emk .n { font-size: 13px; padding-right: 28px; }
.tl-raster.dicht .emk .o { font-size: 11px; padding-right: 28px; }
.tl-auswahl { left: 1340px; top: 420px; width: 440px; height: 520px; z-index: 40; position: absolute; }
.win { position: absolute; z-index: 15; background: var(--p1); border: 1px solid var(--ln2); border-radius: 8px; box-shadow: 0 12px 40px #000c; display: flex; flex-direction: column; overflow: hidden; }
.win > .h { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; background: var(--p3); font-weight: 600; font-size: 14px; cursor: move; user-select: none; }
.win > .b { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.tl-auswahl-liste { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.tl-auswahl-liste .emk { min-height: 50px; flex: none; }
.tl-zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-height: 520px; overflow: auto; }
.tl-zweispaltig label { padding: 2px 0; }

/* ---------- Statusübersicht ---------- */
.su { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.su-block { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.su-gruppe { display: flex; flex-direction: column; background: var(--p1); border: 1px solid var(--ln); border-radius: 6px; min-height: 0; overflow: hidden; }
.su-kopf { display: flex; align-items: center; gap: 10px; height: 42px; flex: none; padding: 0 12px; font-size: 19px; font-weight: 700; }
.su-kopf .z { font: 800 28px var(--mono); }
.su-kopf .n { margin-left: auto; font-size: 15px; background: #0005; border-radius: 4px; padding: 1px 8px; }
.su-liste { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(50px, auto); gap: 4px; padding: 5px; align-content: start; }
.su-leer { grid-column: 1 / -1; color: var(--mu2); text-align: center; padding: 6px; }
.emk.klein .flag { display: none; }
.emk.klein .flag ~ .o { margin-top: 0; }

/* Darstellung (2026-11-19): Vorschau im Arbeitsplatz-Dialog, Leisten-Knopf; Stabswand bleibt dunkel */
.ap-darst-vs { display: flex; gap: 6px; }
.ap-darst-vs i { width: 54px; height: 32px; border-radius: 5px; border: 1px solid var(--ln2); display: block; position: relative; }
.ap-darst-vs i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 6px; border-radius: 2px; background: #8b9bab; }
.ap-darst-vs i.d { background: #0b1117; } .ap-darst-vs i.h { background: #eef1f5; }
.immer-dunkel { color: var(--tx); color-scheme: dark; }
