/* OMC Streaming-Leitstand (INFRA-22) – gleiche Farbwelt wie die StreamingBox-WebUI (app.css). Farben nur fuer echte Zustaende. */
:root {
  --bg: #04080f; --panel: #0a1626; --panel2: #0d1c30; --line: #16314d; --line2: #1d4468;
  --cyan: #2ec5ff; --cyan2: #7fdcff; --text: #dbe9f7; --dim: #8aa3bd; --mute: #5d738b;
  --ok: #22c55e; --warn: #f5b301; --err: #ef4444; --off: #64748b; --live: #ff3b4e;
  --r: 10px; --gap: 12px; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.stufen { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 4px; margin: 6px 0 10px; }
.stufen .st { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); font-size: 11px; color: var(--dim); text-align: center; min-width: 0; }
.stufen .st .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--off); }
.stufen .k-aktiv .dot { background: var(--ok); } .stufen .k-aktiv.q-konfiguriert .dot, .stufen .k-bereit .dot { background: var(--cyan); }
.stufen .k-warnung .dot { background: var(--warn); } .stufen .k-fehler .dot { background: var(--err); } .stufen .k-nicht_messbar .dot { background: #334155; }
.stufen .k-nicht_verbunden .dot { background: transparent; border: 2px solid var(--off); } .stufen .k-nicht_konfiguriert .dot { background: transparent; border: 2px dashed var(--off); }
.lage-fehler { margin-bottom: 10px; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 "Segoe UI", "Inter", "Roboto", system-ui, sans-serif; }
body { min-height: 100vh; overflow-x: hidden; }
button, select, input { font: inherit; color: var(--text); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.dim { color: var(--dim); } .klein { font-size: 12px; }
header.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: linear-gradient(180deg, #071426, #050c18); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.brand img { width: 32px; height: 32px; }
.brand .t1 { font-size: 20px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.brand .t1 b { color: var(--cyan); }
.brand .t2 { font-size: 11px; letter-spacing: .14em; color: var(--warn); }
.verb { font-size: 12px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line2); white-space: nowrap; }
.verb.ok { color: var(--ok); border-color: rgba(34,197,94,.5); } .verb.weg { color: #fff; background: #5a0d16; border-color: var(--err); }
.uhr { font-size: 20px; font-weight: 700; letter-spacing: .04em; }
nav.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 6px 10px; border-bottom: 1px solid var(--line); background: #050c18; scrollbar-width: none; }
nav.tabs button { min-height: 44px; padding: 8px 14px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--dim); white-space: nowrap; cursor: pointer; }
nav.tabs button[aria-selected="true"] { color: var(--cyan); background: #0b1f35; border-color: var(--line2); }
main { padding: 12px; max-width: 1500px; margin: 0 auto; }
section.tab { display: none; } section.tab.an { display: block; }
.raster { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.karte { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-width: 0; }
.karte h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: .14em; color: var(--dim); font-weight: 700; text-transform: uppercase; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.gross { font-size: 26px; font-weight: 800; letter-spacing: .03em; margin: 2px 0 6px; overflow-wrap: anywhere; }
.zeile { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin: 4px 0; }
.wert { font-size: 22px; font-weight: 700; }
.chip { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); margin: 5px 0; min-width: 0; }
.chip .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--off); }
.chip .txt { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.chip .lbl { font-size: 11px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; display: block; }
.tag { flex: none; font-size: 10px; letter-spacing: .08em; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line2); color: var(--mute); align-self: center; }
.k-aktiv .dot { background: var(--ok); box-shadow: 0 0 8px rgba(34,197,94,.7); }
.k-aktiv.q-konfiguriert .dot, .k-bereit .dot { background: var(--cyan); }
.k-warnung .dot { background: var(--warn); } .k-fehler .dot { background: var(--err); box-shadow: 0 0 8px rgba(239,68,68,.6); }
.k-fehler { border-color: rgba(239,68,68,.6); }
.k-nicht_verbunden .dot { background: transparent; border: 2px solid var(--off); } .k-nicht_messbar .dot { background: #334155; }
.k-nicht_konfiguriert .dot { background: transparent; border: 2px dashed var(--off); }
.btn { min-height: 52px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line2); background: #0b1f35; cursor: pointer; font-weight: 700; letter-spacing: .04em; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.start { background: #0c3b22; border-color: var(--ok); color: #d9ffe8; } .btn.stop { background: #4a0b12; border-color: var(--err); color: #ffe1e4; }
.btn.primaer { background: #0b2d48; border-color: var(--cyan); }
.knopfreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; }
.gesperrt { font-size: 12px; color: var(--warn); border: 1px dashed rgba(245,179,1,.6); border-radius: 8px; padding: 6px 8px; margin-top: 6px; }
select { min-height: 48px; width: 100%; background: #07111f; border: 1px solid var(--line2); border-radius: 8px; padding: 8px; }
label { font-size: 12px; color: var(--dim); letter-spacing: .08em; }
.vorschau { position: relative; background: #000; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; border: 1px solid var(--line); }
.vorschau video, .vorschau img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vorschau .platz { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--dim); background: #050a12; }
.vorschau .ecke { position: absolute; left: 6px; top: 6px; font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.65); }
.liste { list-style: none; margin: 0; padding: 0; font-size: 13px; } .liste li { padding: 4px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.weg { display: grid; gap: 8px; }
.weg .stufe { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: start; }
.weg .nr { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--panel2); border: 1px solid var(--line2); font-weight: 700; }
.meldungen .chip { margin: 4px 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; } table.t td, table.t th { padding: 4px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.anmeldung { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.anm-box { width: min(100%, 380px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-align: center; }
.anm-box h1 { margin: 6px 0; letter-spacing: .06em; } .anm-box h1 b { color: var(--cyan); }
.anm-box input { width: 100%; min-height: 52px; font-size: 24px; text-align: center; letter-spacing: .3em; background: #07111f; border: 1px solid var(--line2); border-radius: 8px; margin: 6px 0 12px; }
.anm-box .btn { width: 100%; } .fehler { color: var(--err); }
@media (max-width: 600px) { .brand .t1 { font-size: 17px; } .gross { font-size: 22px; } .uhr { font-size: 16px; } main { padding: 8px; } }
/* INFRA-23: Geraete (Zentrale) */
.k-laeuft .dot { background: var(--warn); animation: puls 1s ease-in-out infinite; } .stufen .k-laeuft .dot { background: var(--warn); }
@keyframes puls { 50% { opacity: .35; } }
.geraete-raster { display: grid; gap: var(--gap); grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .geraete-raster { grid-template-columns: minmax(0, 1fr); } }
.geraet { display: block; width: 100%; text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 0 0 8px; cursor: pointer; min-height: 64px; }
.geraet[aria-pressed="true"] { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
.geraet .kopf { display: flex; align-items: center; gap: 8px; } .geraet .name { font-weight: 800; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.geraet .zeile2 { font-size: 12px; color: var(--dim); margin-top: 4px; overflow-wrap: anywhere; }
.onl { width: 12px; height: 12px; border-radius: 50%; flex: none; background: transparent; border: 2px solid var(--off); }
.onl.an { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 8px rgba(34,197,94,.7); }
.art { font-size: 10px; letter-spacing: .1em; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line2); color: var(--cyan2); }
.art.sim { color: var(--warn); border-color: rgba(245,179,1,.6); }
.offline-banner { background: #3a0a10; border: 1px solid var(--err); color: #ffe1e4; border-radius: 8px; padding: 10px; margin: 0 0 10px; font-weight: 700; }
.detail-raster { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.wahl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin: 4px 0 10px; }
.wahl .btn { min-height: 48px; }
.szenen { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; }
.szenen .btn[aria-pressed="true"] { background: #4a0b12; border-color: var(--live); color: #fff; }
.befehlsfolge { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 4px 0 8px; }
.befehle td.z { white-space: nowrap; }
/* INFRA-24: Regie */
.regie-kopf { margin-bottom: var(--gap); }
.wahlzeile { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: start; margin: 4px 0 8px; }
.wz-lbl { font-size: 12px; letter-spacing: .12em; color: var(--dim); padding-top: 12px; font-weight: 700; }
.wahlreihe { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.wahlknopf { flex: 0 0 auto; min-width: 180px; max-width: 280px; text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; min-height: 60px; }
.wahlknopf[aria-pressed="true"] { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; background: #0b1f35; }
.wk-name { display: flex; gap: 8px; align-items: center; font-weight: 800; }
.wk-bdg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .wk-rolle { font-size: 11px; color: var(--dim); margin-top: 4px; }
.bdg { font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line2); color: var(--dim); white-space: nowrap; }
.bdg-ok { color: #bff5d2; border-color: var(--ok); } .bdg-aus { color: var(--off); border-style: dashed; }
.bdg-sim { color: var(--warn); border-color: rgba(245,179,1,.6); } .bdg-echt { color: #fff; border-color: var(--cyan); background: #0b2d48; }
.bdg-frei { color: var(--cyan2); border-color: var(--cyan); } .bdg-live { color: #fff; background: var(--live); border-color: var(--live); }
.legende { line-height: 2; }
.regie-raster { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; margin-bottom: var(--gap); }
@media (max-width: 1200px) { .regie-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } #r-aus { grid-column: 1 / -1; } }
@media (max-width: 760px) { .regie-raster { grid-template-columns: minmax(0, 1fr); } #r-prog { order: -1; } .wahlknopf { min-width: 160px; } }
.kamerareihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin: 4px 0 8px; }
.kamerareihe .btn { min-height: 48px; padding: 8px; }
.btn[aria-pressed="true"] { background: #4a0b12; border-color: var(--live); color: #fff; opacity: 1; }
.btn.live { background: #4a0b12; border-color: var(--live); color: #fff; }
.vorschau.klein-v { margin: 6px 0; }
.leitung { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.leitung meter { width: 100%; height: 14px; } .lt-name { font-weight: 700; } .lt-wert { color: var(--dim); font-size: 12px; white-space: nowrap; }
.formraster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 48%); gap: 8px 10px; align-items: center; }
.formraster input[type=number] { min-height: 44px; background: #07111f; border: 1px solid var(--line2); border-radius: 8px; padding: 6px 8px; width: 100%; }
.formraster input[type=checkbox] { width: 28px; height: 28px; justify-self: start; }
@media (max-width: 420px) { .formraster { grid-template-columns: minmax(0, 1fr); } }
input[type=file] { min-height: 48px; width: 100%; font-size: 13px; color: var(--dim); }
.rz-aktiv, .rz-live { color: var(--ok); } .rz-warnung { color: var(--warn); } .rz-fehler { color: var(--err); } .rz-laeuft { color: var(--warn); } .rz-bereit { color: var(--cyan); }
#r-ereig li.ev-warnung { color: #ffe08a; } #r-ereig li.ev-fehler { color: #ffb4b4; } #r-ereig li.ev-ok { color: #bff5d2; }
#r-ereig { max-height: 280px; overflow-y: auto; }
/* INFRA-25: Signal-Router */
.planbox { overflow-x: auto; }
.plan { display: grid; grid-template-columns: minmax(130px,1fr) 64px minmax(130px,1fr) 64px minmax(130px,1fr) 52px minmax(140px,1fr) 64px minmax(130px,1fr) 52px minmax(140px,1fr);
  gap: 10px 0; align-items: center; min-width: 1100px; }
.plan-kopf { font-size: 10px; letter-spacing: .14em; color: var(--mute); text-align: center; grid-row: 1; }
.knoten { text-align: left; background: var(--panel2); border: 2px solid var(--off); border-radius: 10px; padding: 8px; min-height: 92px; cursor: pointer; width: 100%; color: var(--text); }
.knoten.gewaehlt { box-shadow: 0 0 0 3px var(--cyan); }
.kn-art { font-size: 10px; letter-spacing: .14em; color: var(--dim); }
.kn-titel { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.kn-zeile { font-size: 12px; color: var(--text); overflow-wrap: anywhere; margin-top: 2px; }
.kn-fehler { font-size: 12px; color: #ffb4b4; }
.kn-bdg { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0; }
.knoten.k-aktiv { border-color: var(--ok); } .knoten.k-bereit { border-color: var(--cyan); } .knoten.k-warnung { border-color: var(--warn); }
.knoten.k-fehler { border-color: var(--err); } .knoten.k-aus { border-color: #334155; opacity: .75; }
.kante { position: relative; height: 54px; display: flex; align-items: center; justify-content: center; }
.kt-linie { position: absolute; left: 2px; right: 8px; top: 50%; height: 4px; transform: translateY(-50%); background: #334155; border-radius: 2px; }
.kante::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); border: 7px solid transparent; border-left-color: #334155; }
.kt-text { position: relative; font-size: 9.5px; line-height: 1.15; text-align: center; background: var(--panel); padding: 1px 3px; border-radius: 4px; max-width: 100%; overflow-wrap: anywhere; margin-top: 30px; color: var(--dim); }
.kante.k-aktiv .kt-linie { background: repeating-linear-gradient(90deg, var(--ok) 0 10px, #15803d 10px 20px); background-size: 20px 4px; animation: fluss .8s linear infinite; }
.kante.k-aktiv::after { border-left-color: var(--ok); } .kante.k-aktiv .kt-text { color: #bff5d2; }
.kante.k-bereit .kt-linie { background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 12px); } .kante.k-bereit::after { border-left-color: var(--cyan); }
.kante.k-warnung .kt-linie { background: var(--warn); } .kante.k-warnung::after { border-left-color: var(--warn); } .kante.k-warnung .kt-text { color: #ffe08a; }
.kante.k-fehler .kt-linie { background: repeating-linear-gradient(90deg, var(--err) 0 4px, transparent 4px 8px); } .kante.k-fehler::after { border-left-color: var(--err); } .kante.k-fehler .kt-text { color: #ffb4b4; }
@keyframes fluss { to { background-position: 20px 0; } }
@media (prefers-reduced-motion: reduce) { .kante.k-aktiv .kt-linie { animation: none; } }
.plan-plat { display: flex; flex-direction: column; gap: 6px; }
.plat-zeile { display: grid; grid-template-columns: 40px 1fr; align-items: center; }
.plat-zeile .kante { height: 40px; } .plat-zeile .kt-text { display: none; }
.legende-plan { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 8px; }
.lg::before { content: ""; display: inline-block; width: 22px; height: 4px; margin-right: 6px; vertical-align: middle; background: #334155; }
.lg.k-aktiv::before { background: var(--ok); } .lg.k-bereit::before { background: var(--cyan); } .lg.k-warnung::before { background: var(--warn); } .lg.k-fehler::before { background: var(--err); }
.rx-raster { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.rx-karte { text-align: left; background: var(--panel2); border: 2px solid var(--off); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--text); min-height: 44px; }
.rx-karte.k-aktiv { border-color: var(--ok); } .rx-karte.k-bereit { border-color: var(--cyan); } .rx-karte.k-warnung { border-color: var(--warn); } .rx-karte.k-fehler { border-color: var(--err); }
.linkzeile { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin: 6px 0; font-size: 12px; overflow-wrap: anywhere; }
.linkzeile code { display: block; font-size: 12px; color: var(--cyan2); margin: 4px 0; overflow-wrap: anywhere; }
.lz-kopf { font-weight: 700; }
.klein-k .btn { min-height: 44px; padding: 6px 10px; font-size: 13px; }
.tab-wrap { overflow-x: auto; }
.ausform { border: 1px dashed var(--line2); border-radius: 8px; padding: 10px; margin-top: 8px; }
.ausform input:not([type=checkbox]) { min-height: 44px; background: #07111f; border: 1px solid var(--line2); border-radius: 8px; padding: 6px 8px; width: 100%; }
#rt-detail h3 { font-size: 13px; letter-spacing: .1em; color: var(--dim); margin: 12px 0 4px; text-transform: uppercase; }
#rt-detail input[type=checkbox] { width: 26px; height: 26px; }
#rt-detail select { min-height: 40px; }
#rt-name { min-height: 44px; background: #07111f; border: 1px solid var(--line2); border-radius: 8px; padding: 6px 8px; }
@media (max-width: 900px) {
  .plan { grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 0; }
  .plan .pz { grid-column: 1 !important; grid-row: auto !important; }
  .plan-kopf { display: none; }
  .kante { height: 40px; } .kt-linie { left: 50%; right: auto; top: 2px; bottom: 10px; width: 4px; height: auto; transform: translateX(-50%); }
  .kante::after { right: auto; left: 50%; top: auto; bottom: -4px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #334155; border-left-color: transparent !important; }
  .kante.k-aktiv::after { border-top-color: var(--ok); } .kante.k-bereit::after { border-top-color: var(--cyan); } .kante.k-warnung::after { border-top-color: var(--warn); } .kante.k-fehler::after { border-top-color: var(--err); }
  .kt-text { margin: 0 0 0 64px; text-align: left; }
  .kante.k-aktiv .kt-linie { background: repeating-linear-gradient(180deg, var(--ok) 0 10px, #15803d 10px 20px); background-size: 4px 20px; animation: fluss-v .8s linear infinite; }
  .kante.k-bereit .kt-linie { background: repeating-linear-gradient(180deg, var(--cyan) 0 6px, transparent 6px 12px); }
  .kante.k-fehler .kt-linie { background: repeating-linear-gradient(180deg, var(--err) 0 4px, transparent 4px 8px); }
  .plan .pz.gemeinsam:first-of-type { margin-top: 18px; }
}
@keyframes fluss-v { to { background-position: 0 20px; } }
.plan-reihe { display: contents; } .pr-titel { display: none; }
@media (max-width: 900px) {
  .plan-reihe { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 10px; }
  .pr-titel { display: block; font-size: 11px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; margin-bottom: 4px; }
}

/* ---------------------------------------------------------------- INFRA-28 OMC Signal Director (gleiche Farben/Bausteine) */
.sd { border: 1px solid var(--line2); border-radius: var(--r); background: var(--panel2); padding: 8px 10px; margin: 6px 0 10px; }
.sd-kopf { font-size: 12px; letter-spacing: .16em; color: var(--cyan); font-weight: 800; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.sd-leiste { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.sd-feld { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sd-lbl { font-size: 10px; letter-spacing: .14em; color: var(--dim); font-weight: 700; }
.sd-feld select { min-height: 48px; }
.sd-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; grid-column: span 2; }
.sd-knoepfe .btn { min-height: 48px; padding: 8px 10px; }
.sd-infos { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); margin-top: 8px; }
.sd-info { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.sd-details { margin-top: 6px; font-size: 13px; } .sd-details summary { cursor: pointer; min-height: 32px; color: var(--dim); }
.sd-details input[type=number] { min-height: 40px; background: #07111f; border: 1px solid var(--line2); border-radius: 8px; padding: 6px; }
.sd-pruef, .sd-ablauf, .sd-dialog { border: 2px solid var(--line2); border-radius: 10px; padding: 8px 10px; margin-top: 8px; background: var(--panel); }
.sd-pruef.k-aktiv, .sd-ablauf.k-aktiv { border-color: var(--ok); } .sd-pruef.k-warnung, .sd-ablauf.k-warnung, .sd-ablauf.k-laeuft { border-color: var(--warn); }
.sd-pruef.k-fehler, .sd-ablauf.k-fehler { border-color: var(--err); } .sd-dialog { border-color: var(--cyan); }
.sd-dialog h3 { margin: 0 0 6px; font-size: 14px; }
.sd-ampel { font-weight: 800; letter-spacing: .04em; margin-bottom: 4px; }
.sd-pruef.k-aktiv .sd-ampel { color: #bff5d2; } .sd-pruef.k-warnung .sd-ampel, .sd-ablauf.k-laeuft .sd-ampel { color: #ffe08a; } .sd-pruef.k-fehler .sd-ampel, .sd-ablauf.k-fehler .sd-ampel { color: #ffb4b4; }
.sd-route { font-size: 13px; color: var(--cyan2); margin-bottom: 4px; overflow-wrap: anywhere; }
.sd-liste { margin: 4px 0; padding-left: 22px; font-size: 13px; } .sd-liste li { margin: 2px 0; overflow-wrap: anywhere; }
.sd-liste li::marker { font-weight: 700; }
.sd-p-ok::marker, .sd-p-ok > b { color: var(--ok); } .sd-p-offen::marker, .sd-p-offen > b { color: var(--warn); } .sd-p-fehler::marker, .sd-p-fehler > b { color: var(--err); } .sd-p-hinweis > b { color: var(--cyan2); }
/* Route hervorheben, andere dezent */
.plan-reihe.sd-dezent .knoten, .plan-reihe.sd-dezent .kante { opacity: .45; }
.plan-reihe.sd-route .knoten { box-shadow: 0 0 0 2px rgba(46,197,255,.55); }
.plan-reihe.sd-route .knoten.gewaehlt { box-shadow: 0 0 0 3px var(--cyan); }
.kante[data-knoten] { cursor: pointer; } .kante.gewaehlt .kt-text { outline: 2px solid var(--cyan); }
/* Linienarten (INFRA-28): durchgezogen = nachgewiesen, gestrichelt = konfiguriert, animiert = Umschaltung */
.kante.k-aktiv .kt-linie { background: var(--ok); animation: none; }
.kante.k-warnung .kt-linie { background: repeating-linear-gradient(90deg, var(--warn) 0 10px, rgba(245,179,1,.35) 10px 20px); background-size: 20px 4px; animation: fluss 1.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .kante.k-warnung .kt-linie { animation: none; } }
@media (max-width: 760px) { .sd-leiste { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sd-knoepfe { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .kante.k-aktiv .kt-linie { background: var(--ok); animation: none; }
  .kante.k-warnung .kt-linie { background: repeating-linear-gradient(180deg, var(--warn) 0 10px, rgba(245,179,1,.35) 10px 20px); background-size: 4px 20px; animation: fluss-v 1.2s linear infinite; }
}
@media (max-width: 420px) { .sd-leiste { grid-template-columns: minmax(0, 1fr); } .sd-knoepfe { grid-template-columns: 1fr; } }
.sd-kopf .klein { letter-spacing: .02em; font-weight: 400; }

/* INFRA-30 D: Fehlerzeilen im Steckbrief der echten Box (Box nicht erreichbar, Agent getrennt) */
.sd-fehler { color: var(--err); }
