/* black neon traffic – Oberfläche
   Schwarz ist die Bühne, Orange ist die Marke, Status-Farben sind Licht. */
:root {
  --black: #000;
  --raised: #141414;
  --raised-2: #1c1c1c;
  --line: #2a2a2a;
  --line-strong: #3a3a3a;
  --text: #ededed;
  --muted: #8c8c8c;
  --faint: #5c5c5c;
  --orange: #F99C1B;
  --orange-dim: rgba(249, 156, 27, .14);
  --up: #34d27b;
  --warning: #ffd23f;
  --down: #ff2e4d;
  --ack: #b28cff;
  --unknown: #6b6b6b;
  --paused: #4f8dff;
  --radius: 6px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font: "Futura PT", Futura, "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--black); color: var(--text); }
body { font-family: var(--font); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
input[type=checkbox], input[type=radio] { accent-color: var(--orange); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.hidden { display: none !important; }

/* ---------- Kopfzeile ---------- */
.top {
  position: sticky; top: 0; z-index: 30; height: 56px; display: flex; align-items: center; gap: 20px;
  padding: 0 20px; background: rgba(0,0,0,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.brand b { font-weight: 500; }
.brand span { color: var(--orange); padding-left: 12px; border-left: 1px solid var(--line); line-height: 22px; }
img.logo { display: block; height: 30px; width: auto; flex: none; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--faint); }
.crumbs .cur { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .spacer { flex: 1; }
.pulse-counts { display: flex; gap: 6px; }
.count {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px;
  border: 1px solid var(--line); font-variant-numeric: tabular-nums; font-size: 13px; cursor: pointer; background: none;
}
.count i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.count.down { color: var(--down); border-color: rgba(255,46,77,.45); background: rgba(255,46,77,.08); }
.count.warning { color: var(--warning); border-color: rgba(255,210,63,.35); }
.count.up { color: var(--up); }
.count.zero { opacity: .45; }
.iconbtn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius);
  border: 1px solid transparent; background: none; cursor: pointer; color: var(--muted);
}
.iconbtn:hover { color: var(--text); border-color: var(--line); }
.iconbtn svg { width: 18px; height: 18px; }

/* ---------- Seitenlayout ---------- */
.page { padding: 28px 28px 80px; max-width: 1480px; margin: 0 auto; }
.page.wide { max-width: none; padding: 0; }
h1 { font-weight: 500; font-size: 30px; line-height: 1.15; margin: 0; letter-spacing: -.005em; }
h2 { font-weight: 500; font-size: 19px; margin: 0 0 12px; }
h3 { font-weight: 500; font-size: 15px; margin: 0 0 8px; }
.head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head .meta { color: var(--muted); margin-top: 6px; }
.head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Buttons & Formulare ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--raised); cursor: pointer; white-space: nowrap; font-size: 14px;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--orange); color: #000; border-color: var(--orange); font-weight: 500; }
.btn.primary:hover { background: #ffb042; }
.btn.danger { color: var(--down); border-color: rgba(255,46,77,.4); }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); border-color: var(--line); }
.btn.small { height: 28px; padding: 0 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; }
label.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
label.field > span.hint { color: var(--faint); font-size: 12px; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=email], input:not([type]), select, textarea {
  width: 100%; height: 36px; padding: 0 10px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--black); color: var(--text); font-size: 14px;
}
textarea { height: auto; min-height: 80px; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text); font-size: 14px; }
.check input { accent-color: var(--orange); width: 16px; height: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.seg button { height: 30px; padding: 0 12px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 13px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--orange-dim); color: var(--orange); }

/* ---------- Status ---------- */
.st { --c: var(--unknown); }
.st-up { --c: var(--up); } .st-warning { --c: var(--warning); } .st-down { --c: var(--down); }
.st-ack { --c: var(--ack); } .st-paused { --c: var(--paused); } .st-unknown { --c: var(--unknown); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.st-down .dot, .dot.st-down { box-shadow: 0 0 0 3px rgba(255,46,77,.18), 0 0 10px rgba(255,46,77,.7); }
.st-warning .dot, .dot.st-warning { box-shadow: 0 0 8px rgba(255,210,63,.45); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px;
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent); white-space: nowrap;
}
.phase { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; border: 1px solid var(--line-strong); color: var(--muted); }
.phase.live { color: var(--orange); border-color: rgba(249,156,27,.5); background: var(--orange-dim); }
.phase.setup, .phase.teardown { color: var(--text); }

/* Statusbalken (Verteilung der Sensoren) */
.bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--raised-2); min-width: 120px; }
.bar i { display: block; height: 100%; }

/* ---------- Projektliste ---------- */
.projects { border-top: 1px solid var(--line); }
.prow {
  display: grid; grid-template-columns: 14px minmax(220px, 2.2fr) 120px minmax(140px, 1fr) minmax(160px, 1.4fr) 90px;
  gap: 18px; align-items: center; padding: 16px 6px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.prow:hover { background: var(--raised); }
.prow .name { font-size: 17px; font-weight: 500; }
.prow .sub { color: var(--muted); font-size: 13px; }
.prow .nums { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 34px 0 8px; color: var(--muted); font-size: 14px; }
.empty { padding: 48px 0; color: var(--muted); max-width: 520px; }
.empty h2 { color: var(--text); }

/* ---------- Projekt: Tabs ---------- */
.ptabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 0; padding: 0 20px; background: var(--black); position: sticky; top: 56px; z-index: 20; }
.ptabs a { padding: 12px 14px 11px; color: var(--muted); border-bottom: 2px solid transparent; font-size: 14px; }
.ptabs a:hover { color: var(--text); }
.ptabs a.on { color: var(--text); border-bottom-color: var(--orange); }
.ptabs .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.phead { display: flex; align-items: center; gap: 14px; padding: 18px 20px 14px; flex-wrap: wrap; }
.phead h1 { font-size: 24px; }
.phead .meta { color: var(--muted); }

/* ---------- Karte ---------- */
.mapwrap { position: relative; height: calc(100vh - 56px - 108px); min-height: 460px; overflow: hidden; background: var(--black); }
.mapwrap.kiosk { height: 100vh; }
.mapwrap.kiosk .legend { bottom: 58px; }
.mapwrap svg.map { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; }
.mapwrap svg.map.panning { cursor: grabbing; }
.maptools { position: absolute; left: 16px; top: 16px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.maptools .panel { background: rgba(20,20,20,.92); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; display: flex; gap: 4px; }
.legend { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); background: rgba(0,0,0,.75); padding: 8px 10px; border-radius: var(--radius); border: 1px solid var(--line); }
.legend .ramp { width: 140px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #3a3a3a, #7a4b0c 20%, var(--orange) 55%, #ff7a2e 80%, var(--down)); }
.node { cursor: pointer; }
.node rect.body { fill: #0d0d0d; stroke: var(--line-strong); stroke-width: 1.2; }
.node:hover rect.body { stroke: var(--muted); }
.node.sel rect.body { stroke: var(--orange); stroke-width: 2; }
.node text { fill: var(--text); font-size: 16px; font-weight: 500; font-family: var(--font); }
.node text.sub { fill: var(--muted); font-size: 12.5px; font-weight: 400; }
.node .ring { fill: none; stroke-width: 2.5; }
.node.st-down rect.body { stroke: var(--down); fill: #1a0509; }
.node.st-warning rect.body { stroke: rgba(255,210,63,.7); }
@media (prefers-reduced-motion: no-preference) {
  .node.st-down .halo { animation: halo 1.6s ease-out infinite; }
}
@keyframes halo { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
.node .halo { fill: none; stroke: var(--down); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.link .tube { fill: none; stroke-linecap: round; }
.link .glow { fill: none; stroke-linecap: round; filter: url(#neon); opacity: .9; }
.link .hit { fill: none; stroke: transparent; stroke-width: 18; cursor: pointer; }
.link.down .tube { stroke: var(--down) !important; stroke-dasharray: 6 7; }
.link text { font-size: 13px; fill: var(--text); font-family: var(--font); paint-order: stroke; stroke: #000; stroke-width: 4px; font-variant-numeric: tabular-nums; }
.link.sel .tube { stroke: #fff !important; }
.mapside {
  position: absolute; right: 0; top: 0; bottom: 0; width: 380px; max-width: 100%; background: rgba(12,12,12,.97);
  border-left: 1px solid var(--line); overflow: auto; padding: 18px; z-index: 3;
}
.mapside .close { position: absolute; right: 10px; top: 10px; }
.mapside h2 { padding-right: 36px; }

/* ---------- Geräte-Baum ---------- */
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.tools input[type=search] { width: 260px; height: 34px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--black); padding: 0 10px; }
.group { padding: 0 20px; }
.group-h { display: flex; align-items: center; gap: 10px; padding: 18px 0 8px; color: var(--muted); font-size: 13px; }
.group-h b { color: var(--text); font-weight: 500; font-size: 15px; }
.dev {
  display: grid; grid-template-columns: 12px minmax(180px, 260px) minmax(120px, 170px) 1fr auto; gap: 14px; align-items: center;
  padding: 10px 8px; border-top: 1px solid var(--line); cursor: pointer;
}
.dev:hover { background: var(--raised); }
.dev .n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev .h { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 3px; }
.chip { width: 14px; height: 14px; border-radius: 3px; background: var(--c); opacity: .85; cursor: pointer; border: 0; padding: 0; }
.chip:hover { opacity: 1; outline: 2px solid #fff; outline-offset: 1px; }
.chip.st-up { opacity: .55; }
.chip.st-down { box-shadow: 0 0 6px rgba(255,46,77,.8); opacity: 1; }
.dev .cnt { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Sensorliste (Gerät) ---------- */
.sensors { border-top: 1px solid var(--line); }
.srow {
  display: grid; grid-template-columns: 24px 12px minmax(160px, 280px) 120px 1fr 160px; gap: 14px; align-items: center;
  padding: 10px 8px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.srow:hover { background: var(--raised); }
.srow .sn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .typ { color: var(--muted); font-size: 12px; }
.srow .msg { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.srow.st-down .msg { color: #ff8a9b; }
.srow.st-warning .msg { color: #ffe28a; }
.srow canvas { width: 160px; height: 30px; display: block; }
.srow input[type=checkbox] { accent-color: var(--orange); }

.devhead { display: grid; grid-template-columns: 1fr auto; gap: 20px; margin-bottom: 18px; }
.facts { display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 10px; }
.facts b { display: block; color: var(--text); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- Sensor-Detail ---------- */
.big { display: flex; gap: 36px; flex-wrap: wrap; margin: 6px 0 22px; }
.big .v { font-size: 34px; font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums; }
.big .l { color: var(--muted); font-size: 13px; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.big .l i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.chartbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 8px; background: #050505; }
.chartbox canvas { width: 100%; height: 340px; display: block; }
.chartbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chlist { display: flex; gap: 6px; flex-wrap: wrap; }
.chbtn { height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--line-strong); background: none; color: var(--muted); cursor: pointer; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.chbtn i { width: 8px; height: 8px; border-radius: 50%; }
.chbtn.on { color: var(--text); border-color: var(--muted); }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 18px; }
.statgrid > div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statgrid .k { color: var(--muted); font-size: 12px; }
.statgrid .v { font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 16px; }
.thr { display: grid; grid-template-columns: 1fr 74px 74px; gap: 6px 8px; align-items: center; font-size: 13px; }
.thr input { height: 30px; }
.thr .hd { color: var(--faint); font-size: 12px; }

/* ---------- Ereignisse ---------- */
.events { border-top: 1px solid var(--line); }
.erow { display: grid; grid-template-columns: 150px 130px minmax(160px, 1fr) 2fr; gap: 14px; padding: 9px 8px; border-bottom: 1px solid var(--line); align-items: center; font-size: 13px; }
.erow .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.erow .m { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Tabellen ---------- */
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.t td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: var(--raised); }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Dialoge ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal {
  background: #0d0d0d; border: 1px solid var(--line-strong); border-radius: 10px; width: min(560px, 100%); max-height: calc(100vh - 40px);
  display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.modal.wide { width: min(980px, 100%); }
.modal header { padding: 18px 20px 6px; display: flex; align-items: center; gap: 10px; }
.modal header h2 { margin: 0; }
.modal .body { padding: 14px 20px; overflow: auto; }
.modal footer { padding: 14px 20px 18px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line); }
.modal footer .left { margin-right: auto; }
.note { font-size: 13px; color: var(--muted); }
.err { color: #ff8a9b; font-size: 13px; }
.progress { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--raised-2); border: 1px solid var(--line-strong); padding: 10px 16px; border-radius: var(--radius); z-index: 200; font-size: 14px; }
.toast.bad { border-color: var(--down); }

/* ---------- Tooltip ---------- */
.tip { position: fixed; z-index: 150; pointer-events: none; background: #111; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px 10px; font-size: 12px; max-width: 320px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.tip b { font-weight: 500; font-size: 13px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { position: relative; overflow: hidden; border-right: 1px solid var(--line); }
.login .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.login .art .claim { position: absolute; left: 48px; bottom: 48px; font-size: 34px; font-weight: 500; line-height: 1.15; max-width: 420px; }
.login .art .claim span { display: block; color: var(--muted); font-size: 15px; font-weight: 400; margin-top: 10px; }
.login form { align-self: center; justify-self: center; width: min(360px, 90vw); display: grid; gap: 16px; }
.login form .brand { font-size: 22px; margin-bottom: 14px; gap: 16px; }
.login form .brand img.logo { height: 52px; }
.login form .brand span { line-height: 34px; padding-left: 16px; }

/* ---------- Kiosk ---------- */
.kiosk-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 18px; padding: 14px 20px; background: linear-gradient(#000, rgba(0,0,0,0)); z-index: 4; }
.kiosk-top h1 { font-size: 22px; }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: rgba(0,0,0,.88); border-top: 1px solid var(--line); padding: 10px 20px; display: flex; gap: 22px; overflow: hidden; white-space: nowrap; font-size: 14px; }
.ticker .it { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Einstellungen ---------- */
.settings { display: grid; grid-template-columns: 200px 1fr; gap: 32px; }
.snav { display: grid; gap: 2px; align-content: start; position: sticky; top: 80px; }
.snav a { padding: 8px 10px; border-radius: var(--radius); color: var(--muted); }
.snav a.on { background: var(--raised); color: var(--text); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--raised); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
pre.code { padding: 12px; white-space: pre-wrap; display: block; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .page { padding: 18px 16px 60px; }
  .top { padding: 0 12px; gap: 10px; }
  .brand small { display: none; }
  .top img.logo { height: 26px; }
  .crumbs { display: none; }
  .prow { grid-template-columns: 12px 1fr 90px; }
  .prow .loc, .prow .barcell { display: none; }
  .prow .nums { grid-column: 3; }
  .dev { grid-template-columns: 12px 1fr auto; }
  .dev .hcell, .dev .chips { display: none; }
  .srow { grid-template-columns: 12px 1fr 100px; }
  .srow .typ, .srow .msg, .srow .selcell { display: none; }
  .srow canvas { width: 100px; }
  .two, .settings, .grid2, .grid3 { grid-template-columns: 1fr; }
  .snav { position: static; display: flex; overflow: auto; }
  .erow { grid-template-columns: 90px 1fr; }
  .erow .m, .erow .s2 { grid-column: 1 / -1; }
  .login { grid-template-columns: 1fr; }
  .login .art { display: none; }
  .mapside { width: 100%; top: auto; height: 55%; border-left: 0; border-top: 1px solid var(--line); }
  .ptabs { overflow-x: auto; padding: 0 8px; }
  .pulse-counts .count.up { display: none; }
}

/* ---------- Connector getrennt ---------- */
.stalebar { background: rgba(255,46,77,.1); border-bottom: 1px solid rgba(255,46,77,.45); color: #ffb3bf; padding: 10px 20px; font-size: 14px; }
.stalebar b { color: #fff; font-weight: 500; }
.stalebar.inline { border: 1px solid rgba(255,46,77,.45); border-radius: var(--radius); margin-bottom: 20px; }
.mapwrap.stale svg.map { filter: grayscale(.85) brightness(.6); }
a.badge { text-decoration: none; }

/* ---------- Protokoll-Mix ---------- */
.mixrow { display: grid; grid-template-columns: minmax(150px, 230px) 1fr 100px 60px; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.mixrow:first-of-type { border-top: 0; }
.mbar { height: 8px; background: var(--raised-2); border-radius: 4px; overflow: hidden; }
.mbar i { display: block; height: 100%; background: var(--orange); border-radius: 4px; }
.mixrow .mv, .mixrow .mp { text-align: right; color: var(--muted); }
@media (max-width: 900px) { .mixrow { grid-template-columns: 1fr 80px 50px; } .mixrow .mbar { display: none; } }

/* ================= Wanddisplay / NOC ================= */
html.noc-mode { font-size: clamp(12px, 0.78vw, 32px); }
html.noc-mode body { overflow: hidden; }
.kiosk { position: relative; height: 100vh; overflow: hidden; }
.kstage { position: relative; height: 100%; overflow: hidden; }
.kswitch { position: fixed; z-index: 50; right: 1rem; bottom: 1rem; display: flex; gap: .3rem; align-items: center; padding: .3rem;
  background: rgba(16,16,16,.94); border: 1px solid var(--line-strong); border-radius: 2rem; opacity: 0; transition: opacity .25s; }
.kswitch.show, .kswitch:hover { opacity: 1; }
.kswitch button { height: 2rem; padding: 0 .9rem; border-radius: 1rem; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .85rem; }
.kswitch button.on { background: var(--orange-dim); color: var(--orange); }
.kswitch .krot { color: var(--faint); font-size: .75rem; padding-right: .6rem; }
.kswitch .krot:empty { display: none; }
.kexit { position: fixed; right: 1rem; bottom: 1rem; font-size: .8rem; color: var(--faint); z-index: 50; }
.kexit:hover { color: var(--text); }
.mapwrap.fill { height: 100%; min-height: 0; }

.noc { height: 100%; display: grid; gap: .75rem; padding: .75rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr) minmax(0, 1.15fr);
  grid-template-rows: auto minmax(0, 1.12fr) minmax(0, 1fr) auto;
  grid-template-areas: "head head head" "prob map top" "prob charts matrix" "foot foot foot"; }
.noc .nhead { grid-area: head; }
.noc .nprob { grid-area: prob; }
.noc .nmap { grid-area: map; padding: 0; overflow: hidden; }
.noc .ncharts { grid-area: charts; min-height: 0; }
.noc .ntop { grid-area: top; }
.noc .nmatrix { grid-area: matrix; }
.noc .nfoot { grid-area: foot; }
.noc.stale > section, .noc.stale .kpis { filter: grayscale(.8) brightness(.6); }
.noc.stale .nhead::after { content: "Connector getrennt – Werte veraltet"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  background: var(--down); color: #fff; padding: .4rem 1rem; border-radius: .3rem; font-size: 1.1rem; }
.noc .nhead { position: relative; }

.nhead { display: flex; align-items: stretch; gap: 1.5rem; padding: .2rem .25rem .75rem; border-bottom: 1px solid var(--line); }
.nbrand { display: flex; flex-direction: column; justify-content: center; min-width: 13rem; }
.nbrand > div:first-child { font-size: .95rem; color: var(--muted); }
.nlogo { display: flex; align-items: center; gap: .7rem; margin-bottom: .35rem; }
.nlogo img.logo { height: 2.1rem; }
.nlogo span { font-size: 1.05rem; letter-spacing: .03em; }
.nbrand b { color: var(--text); font-weight: 500; }
.nbrand span { color: var(--orange); }
.nproj { font-size: 1.6rem; font-weight: 500; line-height: 1.15; margin-top: .15rem; }
.nclock { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; margin-left: auto; min-width: 11rem; }
.nclock b { font-size: 2rem; font-weight: 500; line-height: 1; }
.nclock span { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.nhead.small .nclock { font-size: 1.6rem; }
.kpis { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(5, minmax(0, 1fr)); gap: .75rem; flex: 1; }
.kpi { --c: var(--line-strong); border-left: .22rem solid var(--c); padding: .2rem .8rem; min-width: 0; }
.kpi.st-up { --c: var(--up); } .kpi.st-warning { --c: var(--warning); } .kpi.st-down, .kpi.st-ack { --c: var(--down); }
.kpi .kl { color: var(--muted); font-size: .8rem; }
.kpi .kval { font-size: 1.55rem; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .kval .k2 { color: var(--muted); font-size: 1.1rem; margin-left: .5rem; }
.kpi .ks { color: var(--faint); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.npanel { background: #070707; border: 1px solid var(--line); border-radius: .4rem; padding: .8rem .9rem; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.npanel h2 { font-size: .95rem; color: var(--muted); font-weight: 500; margin: 0 0 .6rem; }
.nlist { overflow: hidden; display: flex; flex-direction: column; gap: .35rem; }
.prow2 { --c: var(--unknown); display: grid; grid-template-columns: .25rem minmax(0, 1fr) auto; gap: .7rem; align-items: start; padding: .5rem .2rem .5rem 0; border-bottom: 1px solid var(--line); }
.prow2.st-down { --c: var(--down); } .prow2.st-warning { --c: var(--warning); } .prow2.st-ack { --c: var(--ack); }
.prow2 > i { display: block; align-self: stretch; background: var(--c); border-radius: .15rem; }
.prow2.st-down > i { box-shadow: 0 0 .6rem rgba(255,46,77,.7); }
.prow2 .pn { font-size: 1rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow2 .pm { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow2 .pt { color: var(--faint); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.allok { display: flex; gap: .8rem; align-items: center; padding: 1rem 0; }
.allok i { width: .9rem; height: .9rem; border-radius: 50%; background: var(--up); box-shadow: 0 0 .8rem rgba(52,210,123,.6); }
.allok b { display: block; font-weight: 500; font-size: 1.05rem; }
.allok span { color: var(--muted); font-size: .85rem; }

.cgrid { height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: .75rem; }
.ctile { --c: var(--line); background: #070707; border: 1px solid var(--line); border-top: .18rem solid var(--c); border-radius: .4rem; padding: .6rem .7rem .4rem; display: flex; flex-direction: column; min-height: 0; }
.ctile.st-up { --c: #2a2a2a; } .ctile.st-warning { --c: var(--warning); } .ctile.st-down { --c: var(--down); }
.ctile .ch { display: flex; flex-direction: column; gap: .15rem; }
.ctile .ctitle { font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctile .cnum { display: flex; gap: .9rem; font-size: .85rem; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.ctile .cin { color: var(--orange); } .ctile .cout { color: #e8e8e8; } .ctile .cutil { color: var(--faint); }
.ctile .cbox { flex: 1; min-height: 0; position: relative; margin-top: .3rem; }
.ctile .cbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mixtile .mixtotal { font-size: 1.4rem; font-weight: 500; margin: .2rem 0 .4rem; }
.nmix { display: flex; flex-direction: column; gap: .25rem; overflow: hidden; }
.mrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 2.6rem; gap: .5rem; align-items: center; font-size: .78rem; }
.mrow > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.mrow .mb { height: .45rem; background: var(--raised-2); border-radius: .25rem; overflow: hidden; }
.mrow .mb i { display: block; height: 100%; background: var(--orange); }
.mrow > span:last-child { text-align: right; color: var(--muted); }

.toplinks { display: flex; flex-direction: column; gap: .45rem; overflow: hidden; }
.trow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 5.4rem; gap: .6rem; align-items: center; font-size: .85rem; }
.trow .tn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .tbar { height: .55rem; background: var(--raised-2); border-radius: .3rem; overflow: hidden; }
.trow .tbar i { display: block; height: 100%; border-radius: .3rem; }
.trow .tv { text-align: right; color: var(--muted); }
.trow.st-down .tn, .trow.st-down .tv { color: var(--down); }

.matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr)); gap: .4rem; overflow: hidden; align-content: start; }
.mtile { --c: var(--unknown); border: 1px solid var(--line); border-left: .25rem solid var(--c); border-radius: .3rem; padding: .35rem .5rem; min-width: 0; background: #0b0b0b; }
.mtile.st-up { --c: var(--up); } .mtile.st-warning { --c: var(--warning); } .mtile.st-down { --c: var(--down); background: rgba(255,46,77,.12); } .mtile.st-ack { --c: var(--ack); }
.mtile .mn { font-size: .82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtile .ms { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

.nfoot { display: flex; align-items: center; gap: 1.6rem; overflow: hidden; white-space: nowrap; font-size: .85rem; border-top: 1px solid var(--line); padding: .55rem .25rem 0; }
.nfoot .fl { color: var(--faint); }
.nfoot .fe { display: inline-flex; gap: .5rem; align-items: center; }
.nfoot .fe i { width: .55rem; height: .55rem; border-radius: 50%; display: inline-block; }

/* Gerätekacheln groß */
.mview { height: 100%; display: flex; flex-direction: column; padding: .75rem; gap: .75rem; }
.bigmatrix { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .7rem; align-content: start; overflow: hidden; }
.bigmatrix .mtile { padding: .9rem 1rem; border-left-width: .4rem; }
.bigmatrix .mtile .mn { font-size: 1.35rem; }
.bigmatrix .mtile .ms { font-size: 1rem; margin-top: .2rem; }

/* Leitstelle */
.noc.fleet { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "head head" "prob tiles"; }
.noc.fleet .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ptwrap { grid-area: tiles; min-height: 0; overflow: hidden; }
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); gap: .75rem; align-content: start; }
.ptile { --c: var(--line-strong); display: flex; flex-direction: column; gap: .55rem; background: #070707; border: 1px solid var(--line); border-top: .25rem solid var(--c); border-radius: .4rem; padding: .8rem .9rem; color: var(--text); }
.ptile.st-up { --c: var(--up); } .ptile.st-warning { --c: var(--warning); } .ptile.st-down { --c: var(--down); }
.ptile .pth { display: flex; align-items: center; gap: .6rem; }
.ptile .pth i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--c); }
.ptile .ptn { font-size: 1.2rem; font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptile .ptk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; font-size: .75rem; color: var(--muted); }
.ptile .ptk b { display: block; color: var(--text); font-size: 1.15rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptile .ptk .bad b { color: var(--down); } .ptile .ptk .ok b { color: var(--up); }
.ptile .ptw { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.ptile .ptw .num { color: var(--text); }
.ptile .ptc canvas { width: 100%; height: 3rem; display: block; }
.ptile .ptp { font-size: .8rem; display: flex; flex-direction: column; gap: .15rem; }
.ptile .ptp div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc .phase { font-size: .75rem; height: auto; padding: .1rem .5rem; }

@media (max-width: 1100px) {
  html.noc-mode { font-size: 13px; }
  html.noc-mode body { overflow: auto; }
  .noc { height: auto; grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "head" "prob" "map" "charts" "top" "matrix" "foot"; }
  .noc .nmap { height: 60vh; } .noc .ncharts { height: auto; } .cgrid { grid-template-columns: 1fr; grid-auto-rows: 14rem; }
  .noc.fleet { grid-template-areas: "head" "prob" "tiles"; }
  .nhead { flex-wrap: wrap; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================= Slideshow ================= */
.klayer { position: absolute; inset: 0; transition: opacity .7s ease, transform .7s ease; }
.klayer.enter { opacity: 0; transform: translateX(1.5%); }
.klayer.leave { opacity: 0; transform: translateX(-1.5%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .klayer, .klayer.enter, .klayer.leave { transition: opacity .3s; transform: none; } }
.kprog { position: fixed; left: 0; right: 0; bottom: 0; height: .2rem; background: rgba(255,255,255,.04); z-index: 40; }
.kprog i { display: block; height: 100%; width: 0; background: var(--orange); box-shadow: 0 0 .6rem rgba(249,156,27,.6); }
.kdots { position: fixed; right: 1rem; bottom: .6rem; z-index: 41; display: flex; gap: .35rem; align-items: center; font-size: .72rem; color: var(--faint); }
.kdots span { width: .45rem; height: .45rem; border-radius: 50%; background: #333; }
.kdots span.on { background: var(--orange); width: 1.4rem; border-radius: .25rem; }
.kdots b { font-weight: 400; margin-right: .5rem; color: var(--muted); }
.kswitch { bottom: 1.8rem; flex-wrap: wrap; max-width: calc(100vw - 2rem); justify-content: flex-end; }
.kswitch .ksep { width: 1px; height: 1.4rem; background: var(--line-strong); margin: 0 .2rem; }
.kswitch button.in { color: var(--text); }

/* ================= Screens allgemein ================= */
.screen { height: 100%; display: flex; flex-direction: column; gap: .75rem; padding: .75rem .75rem 1.1rem; }
.sbody { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .75rem; }
.shead { display: flex; align-items: center; gap: 1.6rem; padding: .2rem .25rem .75rem; border-bottom: 1px solid var(--line); }
.shead .stitle { font-size: 1.6rem; font-weight: 500; padding-left: 1.6rem; border-left: 1px solid var(--line-strong); }
.shead .sextra { flex: 1; display: flex; justify-content: flex-end; min-width: 0; }
.shead .sclock { font-size: 2rem; font-weight: 500; min-width: 9rem; text-align: right; }
.flegend { display: flex; gap: 1.2rem; font-size: .8rem; color: var(--muted); align-items: center; flex-wrap: wrap; }
.flegend span { display: inline-flex; align-items: center; gap: .45rem; }
.flegend i { width: .9rem; height: .7rem; border-radius: .15rem; display: inline-block; }
.flegend .l-idle { background: #2e8b57; } .flegend .l-busy { background: var(--orange); } .flegend .l-full { background: var(--down); }
.flegend .l-down { background: #1a0509; border: 1px solid var(--down); } .flegend .l-unmon { background: #0d0d0d; border: 1px solid #2a2a2a; }
.flegend .ramp, .hlegend i { width: 9rem; height: .45rem; border-radius: .25rem; background: linear-gradient(90deg, #16241c, #7a4b0c 15%, var(--orange) 45%, #ff7a2e 75%, var(--down)); display: inline-block; }
.hlegend { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .8rem; }
.mapbox { flex: 1; padding: 0; }

/* Datenverkehr */
.tgrid { flex: 1; min-height: 0; display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "left chart" "left links"; }
.tleft { grid-area: left; display: flex; flex-direction: column; justify-content: center; padding: 0 1rem; min-width: 0; }
.tchart { grid-area: chart; } .tlinks { grid-area: links; }
.tchart .cbox { flex: 1; min-height: 0; position: relative; }
.tchart .cbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tlabel { color: var(--muted); font-size: 1rem; margin-bottom: .6rem; }
.tbig { font-size: 7.2rem; font-weight: 500; line-height: .95; letter-spacing: -.02em; color: var(--orange); text-shadow: 0 0 2.5rem rgba(249,156,27,.35); white-space: nowrap; }
.tbig2 { font-size: 3.6rem; font-weight: 500; line-height: 1.1; color: var(--text); margin-top: .4rem; white-space: nowrap; }
.tbig .arrow, .tbig2 .arrow { font-size: .5em; margin-right: .3em; vertical-align: .35em; color: var(--muted); }
.tsub { color: var(--muted); font-size: 1.05rem; margin-top: .6rem; }
.ttiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.5rem; margin-top: 2.4rem; }
.ttile { border-top: 1px solid var(--line-strong); padding-top: .6rem; min-width: 0; }
.ttile .tl { color: var(--muted); font-size: .85rem; }
.ttile .tv { font-size: 2.1rem; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.ttile .ts { color: var(--faint); font-size: .8rem; }
.toplinks.big { gap: .7rem; }
.toplinks.big .trow { font-size: 1.05rem; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 7.5rem; }
.toplinks.big .tbar { height: .8rem; }

/* Switch-Frontplatten */
.fgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(36rem, 1fr)); grid-auto-rows: minmax(min-content, 1fr); gap: .75rem; overflow: hidden; }
.fplate { --c: var(--line-strong); background: linear-gradient(#111, #0a0a0a); border: 1px solid #262626; border-radius: .45rem; padding: .8rem 1rem .7rem;
  display: flex; flex-direction: column; gap: .7rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); min-width: 0; }
.fplate.st-up { --c: var(--up); } .fplate.st-warning { --c: var(--warning); } .fplate.st-down { --c: var(--down); }
.fplate .fh { display: flex; align-items: baseline; gap: .7rem; min-width: 0; }
.fplate .fh i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 .5rem var(--c); flex: none; align-self: center; }
.fplate .fn { font-size: 1.25rem; font-weight: 500; white-space: nowrap; }
.fplate .fm { color: var(--faint); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbody { flex: 1; display: flex; flex-direction: column; justify-content: center; background: #050505; border: 1px solid #1d1d1d; border-radius: .3rem; padding: .7rem .6rem; }
.fports { display: flex; gap: .3rem; justify-content: center; }
.pcol { flex: 1 1 0; max-width: 3.4rem; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.port.ghost { visibility: hidden; }
.port { display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 0; }
.port i { width: 100%; aspect-ratio: 1.15; border-radius: .18rem; background: #0d0d0d; border: 1px solid #2c2c2c; position: relative; }
.port i::after { content: ""; position: absolute; left: 18%; right: 18%; top: 14%; height: 22%; border-radius: .12rem; background: var(--pc, transparent); box-shadow: 0 0 .5rem var(--pc, transparent); }
.port.busy i::after { box-shadow: 0 0 .7rem var(--pc); }
.port.down i { border-color: rgba(255,46,77,.6); background: #160307; }
.port.down i::after { box-shadow: none; opacity: .9; }
.port.sfp i { aspect-ratio: 1.6; border-radius: .1rem; background: #121212; }
.port.unmon i::after { display: none; }
.port.unmon span { color: #333; }
.port span { font-size: .62rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.fstats { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: .75rem; color: var(--faint); }
.fstats b { display: block; color: var(--text); font-weight: 500; font-size: 1.05rem; }
.fpoe { min-width: 7rem; }
.fpb { display: block; height: .3rem; background: var(--raised-2); border-radius: .2rem; margin-top: .2rem; overflow: hidden; }
.fpb i { display: block; height: 100%; background: var(--orange); }
.ftop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; font-size: .78rem; color: var(--muted); border-top: 1px solid #1d1d1d; padding-top: .5rem; }
.ftop div { display: flex; justify-content: space-between; gap: .5rem; min-width: 0; }
.ftop div span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftop .num { color: var(--text); white-space: nowrap; }

/* Heatmap */
.hbox { flex: 1; padding: 1rem; }
.hbox canvas { width: 100%; height: 100%; display: block; }

/* Antwortzeiten */
.lsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.lstat { border-left: .22rem solid var(--line-strong); padding: .2rem .9rem; }
.lstat .kl { color: var(--muted); font-size: .85rem; } .lstat .kval { font-size: 2rem; font-weight: 500; } .lstat .ks { color: var(--faint); font-size: .78rem; }
.lgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); grid-auto-rows: minmax(8.5rem, 1fr); gap: .6rem; overflow: hidden; align-content: start; }
.lcard { --c: var(--up); background: #070707; border: 1px solid var(--line); border-radius: .4rem; padding: .7rem .8rem .5rem; display: grid;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto minmax(2.5rem, 1fr); gap: .1rem .6rem; min-height: 0; }
.lcard.st-down { --c: var(--down); background: rgba(255,46,77,.08); border-color: rgba(255,46,77,.4); } .lcard.slow { --c: var(--warning); } .lcard.st-unknown { --c: var(--unknown); }
.lcard .lh { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.lcard .lh i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); flex: none; }
.lcard .ln { font-weight: 500; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard .lk { color: var(--faint); font-size: .72rem; margin-left: auto; white-space: nowrap; }
.lcard .lv { font-size: 1.9rem; font-weight: 500; line-height: 1.15; color: var(--text); }
.lcard.st-down .lv { color: var(--down); font-size: 1.3rem; }
.lcard .ls { grid-column: 1 / -1; color: var(--faint); font-size: .75rem; }
.lcard .lc { grid-column: 1 / -1; min-height: 0; position: relative; margin-top: .3rem; }
.lcard .lc canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Protokolle */
.pgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: .75rem; }
.pmix { align-items: center; }
.pmix h2 { align-self: flex-start; }
.pdonut { width: min(100%, 26rem); }
.donut { width: 100%; height: auto; display: block; }
.donut .dv { fill: var(--text); font-size: 17px; font-weight: 500; font-family: var(--font); }
.donut .dl { fill: var(--muted); font-size: 8.5px; font-family: var(--font); }
.plegend { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1.4rem; margin-top: 1rem; }
.pl { display: grid; grid-template-columns: .7rem minmax(0, 1fr) auto 3.2rem; gap: .5rem; align-items: center; font-size: .85rem; }
.pl i { width: .7rem; height: .7rem; border-radius: .15rem; }
.pl .pn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl .pv, .pl .pp { color: var(--muted); text-align: right; white-space: nowrap; }
.pright { display: grid; grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; min-height: 0; }
.pfacts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.pfact { border-left: .22rem solid var(--line-strong); padding: .2rem .8rem; min-width: 0; }
.pfact.st-up { border-color: var(--up); } .pfact.st-down { border-color: var(--down); } .pfact.st-warning { border-color: var(--warning); }
.pfact .kl { color: var(--muted); font-size: .8rem; } .pfact .kval { font-size: 1.45rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfact .ks { color: var(--faint); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptl { display: flex; flex-direction: column; gap: .7rem; overflow: hidden; }
.ptr { display: grid; grid-template-columns: 10rem 11rem minmax(0, 1fr) 7.5rem; gap: .9rem; align-items: center; font-size: 1.05rem; }
.ptr.g { grid-template-columns: 10rem minmax(0, 1fr) 10rem 7.5rem; }
.ptr > span:last-child { text-align: right; }
.ptr .tbar { height: .55rem; background: var(--raised-2); border-radius: .3rem; overflow: hidden; }
.ptr .tbar i { display: block; height: 100%; background: var(--orange); }

/* Logbuch */
.lgrid2 { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
.term { background: #040404; border: 1px solid #1f1f1f; border-radius: .4rem; display: flex; flex-direction: column; min-height: 0; overflow: hidden; font-family: var(--mono); }
.term .tt { display: flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-bottom: 1px solid #1a1a1a; color: #3a3a3a; font-size: .7rem; }
.term .tt b { color: var(--muted); font-weight: 400; margin-left: .6rem; font-size: .8rem; }
.term .tbody { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: .5rem .8rem; }
.tline { flex: none; white-space: pre; font-size: .78rem; line-height: 1.55; color: #bdbdbd; overflow: hidden; text-overflow: ellipsis; }
.tline .tm { color: #5f5f5f; margin-right: .9rem; }
.tline .td { color: #e0e0e0; } .tline .ts { color: #8a8a8a; } .tline .tmsg { color: #9a9a9a; }
.lv-down { color: var(--down); font-weight: 500; } .lv-warn { color: var(--warning); } .lv-up { color: var(--up); } .lv-ack { color: var(--ack); } .lv-unk { color: #6b6b6b; } .lv-ph { color: var(--orange); }
.blink { color: var(--orange); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

/* In Zahlen */
.sgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: .75rem; }
.stile { background: #070707; border: 1px solid var(--line); border-radius: .4rem; padding: 1.1rem 1.3rem; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 0; overflow: hidden; }
.stile.wide { grid-column: span 2; background: radial-gradient(120% 140% at 0% 100%, rgba(249,156,27,.16), transparent 60%), #070707; border-color: rgba(249,156,27,.35); }
.stile .sl { color: var(--muted); font-size: 1rem; }
.stile .sv { font-size: 3.6rem; font-weight: 500; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.stile.wide .sv { font-size: 5.4rem; color: var(--orange); }
.stile.good .sv { color: var(--up); } .stile.warm .sv { color: var(--warning); }
.stile .ss { color: var(--faint); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Uhr */
.s-clock { justify-content: center; align-items: center; }
.cwrap { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; width: min(100%, 120rem); }
.cbrand { color: var(--muted); font-size: 1.1rem; display: flex; align-items: center; gap: 1rem; }
.cbrand img.logo { height: 2.6rem; }
.cbrand b { color: var(--text); font-weight: 500; } .cbrand > span:first-of-type { color: var(--orange); }
.cbrand .cproj { color: var(--faint); margin-left: 1.2rem; }
.cbig { font-size: 17rem; font-weight: 500; line-height: .9; letter-spacing: -.03em; display: flex; align-items: flex-start; gap: 1.5rem; }
.cbig .csec { font-size: .32em; color: var(--orange); margin-top: .35em; letter-spacing: 0; text-shadow: 0 0 2rem rgba(249,156,27,.4); }
.cticks { display: grid; grid-template-columns: repeat(60, minmax(0, 1fr)); gap: .25rem; width: 100%; }
.cticks i { height: .5rem; background: #1a1a1a; border-radius: .1rem; }
.cticks i.on { background: #4a4a4a; }
.cticks i.on:last-of-type, .cticks i.on:nth-child(5n) { background: #6a6a6a; }
.cdate { font-size: 2.4rem; color: var(--text); }
.cfacts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; width: 100%; margin-top: 1.4rem; }
.cf { border-top: 1px solid var(--line-strong); padding-top: .6rem; }
.cf .kl { color: var(--muted); font-size: .9rem; } .cf .kval { font-size: 1.7rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1100px) {
  .screen { height: auto; min-height: 100%; }
  .tgrid, .pgrid, .lgrid2 { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: none; }
  .tgrid > * { grid-area: auto; } .tchart { height: 22rem; }
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 10rem; }
  .cfacts, .pfacts, .lsum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cbig { font-size: 8rem; } .tbig { font-size: 4.5rem; }
  .fgrid { grid-template-columns: 1fr; }
}

/* Wanddisplay-Auswahl */
.wpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wopt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.wopt:hover { border-color: var(--line-strong); }
.wopt input { margin-top: 3px; accent-color: var(--orange); }
.wopt b { display: block; font-weight: 500; }
.wopt span { color: var(--muted); font-size: 12px; }
.wopt.na { opacity: .45; cursor: default; }
@media (max-width: 700px) { .wpick { grid-template-columns: 1fr; } }

/* ================= Bericht ================= */
.rpage { max-width: 1100px; }
.rctrl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.rctrl input[type=date] { width: 150px; height: 30px; }
.rwrap { display: flex; justify-content: center; }
.rsheet { --ink: #121212; --soft: #5f5f5f; --rule: #dedede; width: 210mm; max-width: 100%; min-height: 297mm; background: #fff; color: var(--ink);
  display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.5); font-size: 10.5pt; line-height: 1.5; }
.rhead { background: #000; color: #fff; padding: 12mm 15mm 9mm; display: grid; gap: 4mm; }
.rbrand { font-size: 9pt; color: #9a9a9a; } .rbrand b { color: #fff; font-weight: 500; }
.rbrand img.logo { height: 11mm; }
.rtitle div { color: #F99C1B; font-size: 11pt; }
.rtitle h1 { font-size: 24pt; line-height: 1.1; margin: 1mm 0 0; font-weight: 500; text-wrap: balance; }
.rmeta { color: #cfcfcf; font-size: 10pt; }
.rbody { padding: 9mm 15mm 4mm; flex: 1; display: flex; flex-direction: column; gap: 7mm; }
.rlead { margin: 0; font-size: 11pt; line-height: 1.6; max-width: 165mm; }
.rkpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4mm; border-top: 2px solid var(--ink); padding-top: 3mm; }
.rk .rkl { color: var(--soft); font-size: 8.5pt; }
.rk .rkv { font-size: 15pt; font-weight: 500; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk .rks { color: var(--soft); font-size: 8pt; }
.rk:first-child .rkv { color: #d97f00; }
.rsec h2 { font-size: 12pt; font-weight: 500; margin: 0 0 2mm; }
.rnote { color: var(--soft); font-size: 8.5pt; margin: 0 0 2mm; }
.rchart { width: 100%; height: auto; display: block; font-family: var(--font); }
.rtab { width: 100%; border-collapse: collapse; font-size: 9pt; }
.rtab th { text-align: left; font-weight: 500; color: var(--soft); border-bottom: 1px solid var(--ink); padding: 1.5mm 2mm 1.5mm 0; }
.rtab td { border-bottom: 1px solid var(--rule); padding: 1.5mm 2mm 1.5mm 0; vertical-align: top; }
.rtab .r { text-align: right; } .rtab .n { font-variant-numeric: tabular-nums; white-space: nowrap; } .rtab .m { color: var(--soft); }
.rinv p { margin: 0 0 1.5mm; }
.rfoot { display: flex; justify-content: space-between; gap: 6mm; flex-wrap: wrap; padding: 4mm 15mm 8mm; border-top: 1px solid var(--rule); margin: 0 0; font-size: 8pt; color: var(--soft); }
.rfoot b { color: var(--ink); font-weight: 500; }
.socialprev { max-width: 520px; }
@media (max-width: 900px) { .rkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rsheet { min-height: 0; } }

@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; }
  .top, .ptabs, .phead, .rctrl, .stalebar, #toast-root, #modal-root, .kswitch, .no-print { display: none !important; }
  .page { padding: 0 !important; max-width: none !important; }
  .rwrap, .lwrap { display: block; }
  .rsheet { box-shadow: none; width: 210mm; min-height: 297mm; }
  .rsheet, .rhead { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rtab tr { break-inside: avoid; }
}

/* ---------- Betrieb: Etiketten, QR, Backups, Abnahme, WLAN ---------- */
h3.sec { font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 32px 0 12px; }
.lprev { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; min-height: 90px; padding: 14px; background: #0b0b0b; border: 1px solid var(--line); border-radius: var(--radius); max-height: 46vh; overflow: auto; }
.lprev img { max-width: 100%; max-height: 220px; background: #fff; border-radius: 3px; box-shadow: 0 0 0 1px #333, 0 8px 24px rgba(0,0,0,.5); image-rendering: pixelated; }
.lpick { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.lchecks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; max-height: 160px; overflow: auto; margin-top: 8px; }
.lchecks .check { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrwrap { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.qrbox { background: #fff; padding: 10px; border-radius: 8px; } .qrbox svg { display: block; width: 100%; height: auto; }
.qrwrap code { word-break: break-all; font-family: var(--mono); font-size: 12px; color: var(--orange); }
.cfg2 { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; min-height: 50vh; }
.cfglist { display: flex; flex-direction: column; gap: 4px; max-height: 64vh; overflow: auto; }
.cfglist button { text-align: left; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; }
.cfglist button.on { border-color: var(--orange); background: var(--orange-dim); }
.cfglist b { display: block; font-weight: 500; font-size: 13px; } .cfglist span { color: var(--muted); font-size: 12px; }
.cfgview { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
pre.cfg, pre.diff { margin: 0; background: #070707; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-family: var(--mono); font-size: 12px;
  line-height: 1.5; max-height: 56vh; overflow: auto; white-space: pre; color: #cfcfcf; }
pre.diff span { display: block; }
pre.diff .add { color: var(--up); background: rgba(52,210,123,.08); }
pre.diff .rem { color: var(--down); background: rgba(255,46,77,.08); }
pre.diff .hunk { color: var(--orange); }
.alist { display: flex; flex-direction: column; gap: 12px; }
.acard { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #080808; }
.ahead { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .ahead b { font-weight: 500; font-size: 16px; }
.achecks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; }
.ach { --c: var(--unknown); border-left: 2px solid var(--c); padding: 4px 10px; }
.ach.st-up { --c: var(--up); } .ach.st-warning { --c: var(--warning); } .ach.st-down { --c: var(--down); } .ach.st-paused { --c: var(--faint); }
.achl { display: flex; align-items: center; gap: 7px; font-weight: 500; } .achl i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.achs { color: var(--muted); font-size: 12px; }
.wlive { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 8px; }
.wcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #080808; }
.wh { display: flex; align-items: center; gap: 8px; } .wh .dot { width: 8px; height: 8px; border-radius: 50%; } .wh .muted { margin-left: auto; font-size: 12px; text-align: right; }
.wnums { display: flex; gap: 28px; margin: 10px 0; } .wnums div { color: var(--muted); font-size: 12px; } .wnums b { display: block; font-size: 26px; font-weight: 500; color: var(--text); }
.wbar { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; margin: 4px 0; }
.wbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wbar b { text-align: right; font-weight: 500; }
.wbar > i { height: 6px; background: #1a1a1a; border-radius: 3px; overflow: hidden; } .wbar > i > i { display: block; height: 100%; background: var(--orange); }
.wpick.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; }
.rpage.public { max-width: 1100px; margin: 0 auto; padding-top: 24px; }
@media (max-width: 720px) { .qrwrap, .cfg2 { grid-template-columns: 1fr; } .wpick.compact { grid-template-columns: 1fr 1fr; } }

/* ---------- Screens: Audio, Uplink, WLAN ---------- */
.alay { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: .75rem; }
.agrid { min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); grid-auto-rows: minmax(7.4rem, auto); gap: .55rem; overflow: hidden; align-content: start; }
.agrid.few { grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); grid-auto-rows: minmax(11rem, auto); }
.agrid.few .adev { padding: 1rem 1.2rem; gap: .3rem; } .agrid.few .an { font-size: 1.5rem; } .agrid.few .am { font-size: .95rem; }
.agrid.few .atag { font-size: .9rem; padding: .05rem .65rem; } .agrid.few .ai { font-size: .85rem; }
.adev { --c: var(--up); background: #070707; border: 1px solid var(--line); border-radius: .4rem; padding: .65rem .8rem; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.adev.odd { --c: var(--warning); border-color: rgba(255,210,63,.45); background: rgba(255,210,63,.05); }
.adev.master { border-color: rgba(249,156,27,.6); background: radial-gradient(120% 140% at 0% 100%, rgba(249,156,27,.16), transparent 60%), #070707; }
.adev .an { display: flex; align-items: center; gap: .45rem; font-weight: 500; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adev .an i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 .6rem var(--c); }
.adev .am { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adev .ar { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: auto; } .adev .ai { color: var(--faint); font-size: .7rem; }
.atag { border: 1px solid var(--line-strong); border-radius: 1rem; padding: 0 .5rem; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.atag.bad { color: var(--warning); border-color: var(--warning); } .atag.clk { color: var(--orange); border-color: var(--orange); }
.aempty { grid-column: 1 / -1; color: var(--muted); font-size: 1.3rem; padding: 3rem 1rem; text-align: center; }
.aside { display: flex; flex-direction: column; gap: .6rem; min-height: 0; overflow: hidden; }
.atile { --c: var(--line); background: #070707; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: .4rem; padding: .8rem 1rem; }
.atile.st-up { --c: var(--up); } .atile.st-warning { --c: var(--warning); } .atile.st-down { --c: var(--down); }
.atile .kl { color: var(--muted); font-size: .85rem; } .atile .kval { font-size: 1.7rem; font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atile .ks { color: var(--faint); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ulay { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: .75rem; }
.ul { display: flex; flex-direction: column; gap: .75rem; min-height: 0; } .ur { display: flex; flex-direction: column; gap: .75rem; min-height: 0; }
.uhero { border: 1px solid var(--line); border-radius: .4rem; padding: 1.4rem 1.6rem; background: radial-gradient(120% 160% at 0% 100%, rgba(52,210,123,.12), transparent 60%), #070707; }
.uhero.backup { border-color: rgba(249,156,27,.6); background: radial-gradient(120% 160% at 0% 100%, rgba(249,156,27,.24), transparent 60%), #070707; }
.uhero.down { border-color: rgba(255,46,77,.6); background: radial-gradient(120% 160% at 0% 100%, rgba(255,46,77,.2), transparent 60%), #070707; }
.uhero .ul1 { color: var(--up); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; } .uhero.backup .ul1 { color: var(--orange); } .uhero.down .ul1 { color: var(--down); }
.uhero .ul2 { font-size: 4.6rem; font-weight: 500; line-height: 1.05; letter-spacing: -.01em; } .uhero .ul3 { color: var(--muted); font-size: 1rem; }
.ukpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.uk { background: #070707; border: 1px solid var(--line); border-radius: .4rem; padding: .8rem 1rem; } .uk .kl { color: var(--muted); font-size: .85rem; }
.uk .kval { font-size: 2.2rem; font-weight: 500; } .uk.warn .kval { color: var(--warning); }
.uchart, .wchart { flex: 1; min-height: 8rem; position: relative; background: #070707; border: 1px solid var(--line); border-radius: .4rem; }
.uchart canvas, .wchart canvas { position: absolute; inset: .6rem; width: calc(100% - 1.2rem); height: calc(100% - 1.2rem); }
.ucell, .uhist { background: #070707; border: 1px solid var(--line); border-radius: .4rem; padding: 1rem 1.1rem; } .uhist { flex: 1; min-height: 0; overflow: hidden; }
.ucell .kl, .uhist .kl { color: var(--muted); font-size: .85rem; margin-bottom: .4rem; } .ucell .ks, .uhist .ks { color: var(--faint); font-size: .85rem; }
.ucq b { font-size: 2.4rem; font-weight: 500; margin-right: .6rem; } .ucq span { color: var(--muted); }
.ubar { height: .55rem; background: #1a1a1a; border-radius: .3rem; overflow: hidden; margin: .6rem 0; }
.ubar i { display: block; height: 100%; background: linear-gradient(90deg, var(--down), var(--warning) 35%, var(--up) 70%); }
.ucv { color: var(--muted); font-size: .9rem; }
.uh { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
.uh i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--up); } .uh.bk i { background: var(--orange); } .uh .num { margin-left: auto; color: var(--muted); font-size: .85rem; }
.wlay { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
.wl { display: flex; flex-direction: column; gap: .75rem; min-height: 0; }
.wbig { border: 1px solid rgba(249,156,27,.35); border-radius: .4rem; padding: 1.2rem 1.5rem; background: radial-gradient(120% 140% at 0% 100%, rgba(249,156,27,.16), transparent 60%), #070707; }
.wbig .kl { color: var(--muted); } .wbig .wn { font-size: 6rem; font-weight: 500; line-height: 1; color: var(--orange); } .wbig .ks { color: var(--faint); }
.wssid { display: flex; flex-direction: column; gap: .45rem; }
.wrow { display: grid; grid-template-columns: 11rem 1fr 4rem; gap: .8rem; align-items: center; font-size: 1.1rem; }
.wrow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wrow b { text-align: right; font-weight: 500; }
.wrow > i { height: .6rem; background: #151515; border-radius: .3rem; overflow: hidden; } .wrow > i > i { display: block; height: 100%; background: var(--orange); }
.waps { min-height: 0; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); grid-auto-rows: 2.6rem; gap: .4rem; align-content: start; }
.wap { display: flex; align-items: center; gap: .5rem; background: #070707; border: 1px solid var(--line); border-radius: .35rem; padding: 0 .7rem; min-width: 0; }
.wap i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--up); flex: none; } .wap.down { border-color: rgba(255,46,77,.5); } .wap.down i { background: var(--down); }
.wap span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; } .wap b { font-weight: 500; color: var(--muted); }
@media (max-width: 900px) { .alay, .ulay, .wlay { grid-template-columns: 1fr; } .ukpis { grid-template-columns: 1fr 1fr; } }

/* ---------- Flotte ---------- */
.kexits { position: fixed; right: 1rem; bottom: 1rem; display: flex; gap: 1.2rem; z-index: 50; }
.kexits .kexit { position: static; }
.fkpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 6px 0 16px; }
.fk { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: #080808; }
.fk .kl { color: var(--muted); font-size: 12px; } .fk .kval { font-size: 26px; font-weight: 500; line-height: 1.2; } .fk .ks { color: var(--faint); font-size: 12px; }
.fk.bad { border-color: rgba(255,46,77,.45); } .fk.bad .kval { color: var(--down); }
.fk.warn { border-color: rgba(255,210,63,.4); } .fk.warn .kval { color: var(--warning); }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.fchip { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line-strong); background: none; color: var(--muted); cursor: pointer; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }
.fchip span { color: var(--faint); font-variant-numeric: tabular-nums; } .fchip.on { border-color: var(--orange); color: var(--orange); background: var(--orange-dim); } .fchip.on span { color: var(--orange); }
.fsearch { margin-left: auto; height: 30px; min-width: 240px; background: #0a0a0a; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0 10px; }
.fbulk { display: none; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; border: 1px solid rgba(249,156,27,.4); background: var(--orange-dim); border-radius: var(--radius); position: sticky; top: 64px; z-index: 5; }
.fbulk.on { display: flex; } .fbulk b { font-weight: 500; margin-right: 6px; }
.ftab tbody tr { cursor: pointer; } .ftab tbody tr:hover { background: #0c0c0c; } .ftab tr.sel { background: rgba(249,156,27,.06); }
.ftab .fname { font-weight: 500; } .ftab td { vertical-align: top; }
.stock { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.stock.s-kunde { color: var(--orange); border-color: rgba(249,156,27,.5); } .stock.s-unterwegs { color: #8fb4ff; border-color: rgba(79,141,255,.5); }
.stock.s-fest { color: var(--text); } .stock.s-service { color: var(--down); border-color: rgba(255,46,77,.45); }
.overdue { color: var(--down); font-size: 12px; } .bkup { color: var(--orange); }
.fwrap { flex-wrap: wrap; margin-top: 12px; }
.fcmds { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .fcmds div { display: flex; justify-content: space-between; gap: 12px; }
.flog { max-height: 56vh; overflow: auto; border-top: 1px solid var(--line); }
.fl { display: grid; grid-template-columns: 130px 100px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fl .num { color: var(--muted); } .fk2 { color: var(--faint); } .fl.k-verbindung .fk2 { color: var(--paused); } .fl.k-befehl .fk2 { color: var(--orange); } .fl.k-notiz .fk2 { color: var(--text); }
details.card summary { cursor: pointer; list-style: none; } details.card summary b { font-weight: 500; }
.maintbar { background: rgba(178,140,255,.1); border-bottom: 1px solid rgba(178,140,255,.45); color: #d9c9ff; padding: 10px 20px; font-size: 14px; }
.maintbar b { color: #fff; font-weight: 500; }
.mrow { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); } .mrow .btn { margin-left: 0 !important; } .mnow { color: var(--ack); font-weight: 500; }
@media (max-width: 900px) { .fkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fsearch { margin-left: 0; min-width: 0; width: 100%; } }

/* Flotten-Wanddisplay */
.noc.fwall { display: flex; flex-direction: column; gap: .75rem; }
.noc.fwall .kpis { flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); grid-auto-rows: minmax(12rem, auto); gap: .7rem; align-content: start; overflow: hidden; }
.fgrid.dense { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); grid-auto-rows: minmax(10rem, auto); }
.ftile { --c: var(--line-strong); background: #070707; border: 1px solid var(--line); border-top: .25rem solid var(--c); border-radius: .4rem; padding: .85rem 1rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ftile.st-up { --c: var(--up); } .ftile.st-warning { --c: var(--warning); } .ftile.st-unknown, .ftile.st-idle { --c: #333; opacity: .72; }
.ftile.st-down { --c: var(--down); background: rgba(255,46,77,.07); border-color: rgba(255,46,77,.4); border-top-color: var(--down); }
.fth { display: flex; align-items: center; gap: .55rem; } .fth i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 .7rem var(--c); flex: none; }
.fth b { font-weight: 500; font-size: 1.35rem; } .fth .stock { margin-left: auto; font-size: .75rem; }
.ftp { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fts { color: var(--faint); font-size: .8rem; min-height: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftm { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .9rem; margin-top: .35rem; }
.ftm span { display: block; color: var(--faint); font-size: .7rem; } .ftm b { font-weight: 500; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ftf { margin-top: auto; color: var(--faint); font-size: .75rem; }

/* Assistent */
.wiz { display: flex; flex-direction: column; gap: 18px; min-height: 52vh; }
.wsteps { display: flex; gap: 6px; flex-wrap: wrap; }
.ws { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); padding: 6px 12px 6px 6px; border-radius: 20px; border: 1px solid var(--line); }
.ws span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #151515; font-size: 12px; }
.ws.on { color: var(--orange); border-color: rgba(249,156,27,.5); } .ws.on span { background: var(--orange); color: #000; }
.ws.done { color: var(--muted); } .ws.done span { background: rgba(52,210,123,.18); color: var(--up); }
.wmain { flex: 1; display: flex; flex-direction: column; gap: 14px; } .wmain h3 { font-weight: 500; font-size: 18px; margin: 0; }
.wfoot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.wchoices { display: grid; gap: 8px; }
.wchoice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.wchoice.on { border-color: var(--orange); background: var(--orange-dim); } .wchoice input { margin-top: 4px; accent-color: var(--orange); }
.wchoice b { display: block; font-weight: 500; } .wchoice span { color: var(--muted); font-size: 13px; }
.wsum { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; } .wsum b { font-weight: 500; }
.wways { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.wway { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wway.rec { border-color: rgba(249,156,27,.5); } .wway b { font-weight: 500; } .wway ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
.wway pre { white-space: pre-wrap; word-break: break-all; font-size: 11.5px; margin: 0; }
.wlive { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.wl { display: grid; grid-template-columns: 14px 220px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.wl i { width: 10px; height: 10px; border-radius: 50%; background: #333; animation: wpulse 1.4s infinite; } .wl.ok i { background: var(--up); animation: none; box-shadow: 0 0 10px var(--up); }
.wl b { font-weight: 500; } .wl span { color: var(--muted); font-size: 13px; }
.wdone { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: rgba(52,210,123,.1); border: 1px solid rgba(52,210,123,.4); }
@keyframes wpulse { 50% { opacity: .35; } }
@media (max-width: 720px) { .wways { grid-template-columns: 1fr; } .wl { grid-template-columns: 14px 1fr; } .wl span { grid-column: 2; } }

/* ---------- Windows-Konsole verbinden ---------- */
.csteps { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.csteps li::marker { color: var(--orange); font-weight: 500; }
.ccopy { display: grid; gap: 4px; }
.ccval { display: flex; gap: 10px; align-items: center; background: #0a0a0a; border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px; }
.ccval code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--text); }
.cstatus { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); padding-top: 4px; }
