/* Nexus Gateway — ein Stylesheet, zwei Marken (body.brand-nexus / body.brand-neutral) */

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #1c2430;
  --muted: #6b7482;
  --line: #e3e6ea;
  --error: #a4283a;
}
body.brand-neutral { --accent: #3d5a80; --accent-ink: #ffffff; }
body.brand-nexus   { --accent: #bf4515; --accent-ink: #ffffff; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---- Landing / Login ---- */
.center {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1100px 500px at 50% -10%,
      color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    var(--bg);
}
.card {
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px 36px 32px;
  box-shadow: 0 1px 2px rgba(20, 28, 40, .04), 0 12px 32px rgba(20, 28, 40, .07);
}
.mark { text-align: center; margin-bottom: 28px; }
.glyph {
  width: 40px; height: 40px;
  stroke: var(--accent); fill: var(--accent);
  stroke-width: 1.6;
}
.glyph line, .glyph path { fill: none; }
.glyph rect { fill: none; stroke-width: 1.8; }
.mark h1 {
  margin: 10px 0 2px;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.claim {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .02em;
}

form label {
  display: block;
  margin: 14px 0 5px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--muted);
  text-transform: uppercase;
}
form input {
  width: 100%;
  padding: 10px 12px;
  font-size: .95rem;
  color: var(--ink);
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
form button {
  width: 100%;
  margin-top: 22px;
  padding: 11px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: filter .12s;
}
form button:hover { filter: brightness(1.08); }
.error {
  margin: 0 0 4px;
  padding: 9px 12px;
  font-size: .85rem;
  color: var(--error);
  background: color-mix(in srgb, var(--error) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--error) 25%, #fff);
  border-radius: 6px;
}

/* ---- App-Rumpf ---- */
.shell { display: flex; min-height: 100vh; }
.nav {
  display: flex;
  flex-direction: column;
  width: 216px;
  flex-shrink: 0;
  background: #202834;
  color: #cfd6df;
}
.nav-mark {
  padding: 22px 20px 18px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav nav { flex: 1; padding: 10px 0; }
.nav nav a {
  display: block;
  padding: 10px 20px;
  font-size: .9rem;
  color: inherit;
  text-decoration: none;
}
.nav nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}
.nav nav a.soon { opacity: .45; cursor: default; }
.nav nav a.soon::after { content: " ·"; }
.nav footer {
  padding: 16px 20px;
  font-size: .8rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.who { display: block; margin-bottom: 6px; color: #9aa4b1; }
.logout { color: #cfd6df; }
.content { flex: 1; padding: 34px 42px; }
.content h2 { margin: 0 0 12px; font-size: 1.25rem; }
.muted { color: var(--muted); }

/* ═══ Status-Seite — nach Knowledge/design/mikes-intuition.md ═══
   Haarlinien statt Kästen · Füllungslogik (rot gefüllt springt, gelb Umriss
   warnt, ok klein schwarz) · Beschriftung links · kompakte Dichte · keine
   Deko-Konturen. Warnfarben bewusst nur für Zustände (System vor Komponente). */

.status-server { margin: 0 0 34px; }
.status-kopf {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 14px 0 8px;
  font-size: 1.06rem; font-weight: 700; letter-spacing: .01em;
  border-bottom: 1px solid var(--line);
}
.status-kopf.ok   { color: var(--ink); }
.status-kopf.warn { color: #8a6d00; }
.status-kopf.err  { color: var(--error); }
.status-meta { margin-left: auto; font-size: .78rem; font-weight: 400;
               color: var(--muted); }

.glyph-status { display: inline-flex; align-items: center; }
.glyph-ok   { width: 13px; height: 13px; color: var(--ink); }
.glyph-warn { width: 19px; height: 19px; color: #b8860b; }
.glyph-err  { width: 19px; height: 19px; color: var(--error); }

.status-tabelle { width: 100%; border-collapse: collapse;
                  font-size: .86rem; }
.status-tabelle td { padding: 7px 10px 7px 0;
                     border-bottom: 1px solid var(--line); vertical-align: top; }
.status-tabelle tr:last-child td { border-bottom: none; }
.status-zelle-zustand { width: 30px; padding-top: 8px; }
.status-zelle-name { font-weight: 600; white-space: nowrap; }
.status-zelle-detail { color: var(--muted); }
.status-zelle-vor { width: 90px; text-align: right; color: var(--muted);
                    white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Zeile selbst schweigt — der Zustand lebt allein in der Glyphe (Regel 2) */

/* ═══ Status-Seite — nach Knowledge/design/mikes-intuition.md ═══
   Haarlinien statt Kästen · Füllungslogik (rot gefüllt springt, gelb Umriss
   warnt, ok klein schwarz) · Beschriftung links · kompakte Dichte · keine
   Deko-Konturen. Warnfarben bewusst nur für Zustände (System vor Komponente). */

.status-server { margin: 0 0 34px; }
.status-kopf {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 14px 0 8px;
  font-size: 1.06rem; font-weight: 700; letter-spacing: .01em;
  border-bottom: 1px solid var(--line);
}
.status-kopf.ok   { color: var(--ink); }
.status-kopf.warn { color: #8a6d00; }
.status-kopf.err  { color: var(--error); }
.status-meta { margin-left: auto; font-size: .78rem; font-weight: 400;
               color: var(--muted); }

.glyph-status { display: inline-flex; align-items: center; }
.glyph-ok   { width: 13px; height: 13px; color: var(--ink); }
.glyph-warn { width: 19px; height: 19px; color: #b8860b; }
.glyph-err  { width: 19px; height: 19px; color: var(--error); }

.status-tabelle { width: 100%; border-collapse: collapse;
                  font-size: .86rem; }
.status-tabelle td { padding: 7px 10px 7px 0;
                     border-bottom: 1px solid var(--line); vertical-align: top; }
.status-tabelle tr:last-child td { border-bottom: none; }
.status-zelle-zustand { width: 30px; padding-top: 8px; }
.status-zelle-name { font-weight: 600; white-space: nowrap; }
.status-zelle-detail { color: var(--muted); }
.status-zelle-vor { width: 90px; text-align: right; color: var(--muted);
                    white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Zeile selbst schweigt — der Zustand lebt allein in der Glyphe (Regel 2) */

/* ---- Anpassen-Modus (07.10.): persoenliches Layout, Drag & Drop ---- */
.status-leiste { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.pille {
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent; border-radius: 999px;
  padding: 5px 16px; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.pille:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.griff { cursor: grab; color: var(--muted); font-size: 1rem; padding: 0 2px; }
.block[draggable="true"] { outline: 1px dashed var(--line); outline-offset: 4px; }
.block-schalter {
  font-size: .74rem; font-weight: 400; color: var(--muted);
  display: inline-flex; gap: 4px; align-items: center; margin-left: 10px;
  cursor: pointer;
}
.status-server.ausgeblendet .status-kopf { color: var(--muted); }

/* ═══ Status-Seite — nach Knowledge/design/mikes-intuition.md ═══
   Haarlinien statt Kästen · Füllungslogik (rot gefüllt springt, gelb Umriss
   warnt, ok klein schwarz) · Beschriftung links · kompakte Dichte · keine
   Deko-Konturen. Warnfarben bewusst nur für Zustände (System vor Komponente). */

.status-server { margin: 0 0 34px; }
.status-kopf {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 14px 0 8px;
  font-size: 1.06rem; font-weight: 700; letter-spacing: .01em;
  border-bottom: 1px solid var(--line);
}
.status-kopf.ok   { color: var(--ink); }
.status-kopf.warn { color: #8a6d00; }
.status-kopf.err  { color: var(--error); }
.status-meta { margin-left: auto; font-size: .78rem; font-weight: 400;
               color: var(--muted); }

.glyph-status { display: inline-flex; align-items: center; }
.glyph-ok   { width: 13px; height: 13px; color: var(--ink); }
.glyph-warn { width: 19px; height: 19px; color: #b8860b; }
.glyph-err  { width: 19px; height: 19px; color: var(--error); }

.status-tabelle { width: 100%; border-collapse: collapse;
                  font-size: .86rem; }
.status-tabelle td { padding: 7px 10px 7px 0;
                     border-bottom: 1px solid var(--line); vertical-align: top; }
.status-tabelle tr:last-child td { border-bottom: none; }
.status-zelle-zustand { width: 30px; padding-top: 8px; }
.status-zelle-name { font-weight: 600; white-space: nowrap; }
.status-zelle-detail { color: var(--muted); }
.status-zelle-vor { width: 90px; text-align: right; color: var(--muted);
                    white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Zeile selbst schweigt — der Zustand lebt allein in der Glyphe (Regel 2) */

/* ---- Anpassen-Modus (07.10.): persoenliches Layout, Drag & Drop ---- */
.status-leiste { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.pille {
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent; border-radius: 999px;
  padding: 5px 16px; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.pille:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.griff { cursor: grab; color: var(--muted); font-size: 1rem; padding: 0 2px; }
.block[draggable="true"] { outline: 1px dashed var(--line); outline-offset: 4px; }
.block-schalter {
  font-size: .74rem; font-weight: 400; color: var(--muted);
  display: inline-flex; gap: 4px; align-items: center; margin-left: 10px;
  cursor: pointer;
}
.status-server.ausgeblendet .status-kopf { color: var(--muted); }

/* Netz-Herkunft: dezente Marke, klein und grau (Kennzeichnung, kein Alarm) */
.netz-marke {
  font-size: .68rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 1px 6px; margin-left: 2px;
}

/* ═══ Status-Seite — nach Knowledge/design/mikes-intuition.md ═══
   Haarlinien statt Kästen · Füllungslogik (rot gefüllt springt, gelb Umriss
   warnt, ok klein schwarz) · Beschriftung links · kompakte Dichte · keine
   Deko-Konturen. Warnfarben bewusst nur für Zustände (System vor Komponente). */

.status-server { margin: 0 0 34px; }
.status-kopf {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 14px 0 8px;
  font-size: 1.06rem; font-weight: 700; letter-spacing: .01em;
  border-bottom: 1px solid var(--line);
}
.status-kopf.ok   { color: var(--ink); }
.status-kopf.warn { color: #8a6d00; }
.status-kopf.err  { color: var(--error); }
.status-meta { margin-left: auto; font-size: .78rem; font-weight: 400;
               color: var(--muted); }

.glyph-status { display: inline-flex; align-items: center; }
.glyph-ok   { width: 13px; height: 13px; color: var(--ink); }
.glyph-warn { width: 19px; height: 19px; color: #b8860b; }
.glyph-err  { width: 19px; height: 19px; color: var(--error); }

.status-tabelle { width: 100%; border-collapse: collapse;
                  font-size: .86rem; }
.status-tabelle td { padding: 7px 10px 7px 0;
                     border-bottom: 1px solid var(--line); vertical-align: top; }
.status-tabelle tr:last-child td { border-bottom: none; }
.status-zelle-zustand { width: 30px; padding-top: 8px; }
.status-zelle-name { font-weight: 600; white-space: nowrap; }
.status-zelle-detail { color: var(--muted); }
.status-zelle-vor { width: 90px; text-align: right; color: var(--muted);
                    white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Zeile selbst schweigt — der Zustand lebt allein in der Glyphe (Regel 2) */

/* ---- Anpassen-Modus (07.10.): persoenliches Layout, Drag & Drop ---- */
.status-leiste { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.pille {
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent; border-radius: 999px;
  padding: 5px 16px; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.pille:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.griff { cursor: grab; color: var(--muted); font-size: 1rem; padding: 0 2px; }
.block[draggable="true"] { outline: 1px dashed var(--line); outline-offset: 4px; }
.block-schalter {
  font-size: .74rem; font-weight: 400; color: var(--muted);
  display: inline-flex; gap: 4px; align-items: center; margin-left: 10px;
  cursor: pointer;
}
.status-server.ausgeblendet .status-kopf { color: var(--muted); }

/* Netz-Herkunft: dezente Marke, klein und grau (Kennzeichnung, kein Alarm) */
.netz-marke {
  font-size: .68rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 1px 6px; margin-left: 2px;
}

/* ---- Kachelwand (Übersicht, 07.10.) ---- */
.kachel-wand {
  display: grid;
  grid-template-columns: repeat(auto-fill, 240px);
  justify-content: start;
  align-items: start;
  gap: 14px; margin-top: 10px;
}
.kachel {
  background: var(--card); border-radius: 10px;
  padding: 14px 16px 12px; min-height: 96px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 2px rgba(20,28,40,.05);
}
.kachel[draggable="true"] { outline: 1px dashed var(--line); outline-offset: 3px; cursor: grab; }
.kachel-kopf { display: flex; align-items: center; gap: 8px; }
.kachel-titel { font-weight: 600; font-size: .88rem; }
.kachel-wert { font-size: 1.02rem; color: var(--ink); overflow: hidden;
               text-overflow: ellipsis; white-space: nowrap; }
.kachel.zustand-err .kachel-titel { color: var(--error); }
.kachel.zustand-warn .kachel-titel { color: #8a6d00; }
.balken { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.balken-fuellung { height: 100%; border-radius: 3px; }
.kachel-menue {
  position: fixed; z-index: 50; background: var(--card);
  border-radius: 8px; box-shadow: 0 6px 24px rgba(20,28,40,.18);
  padding: 6px; display: flex; flex-direction: column; min-width: 130px;
}
.menue-eintrag {
  border: none; background: none; text-align: left; font: inherit;
  font-size: .84rem; padding: 7px 12px; border-radius: 5px; cursor: pointer;
}
.menue-eintrag:hover { background: var(--bg); }
.menue-eintrag.aktiv { font-weight: 700; color: var(--accent); }

/* ═══ Status-Seite — nach Knowledge/design/mikes-intuition.md ═══
   Haarlinien statt Kästen · Füllungslogik (rot gefüllt springt, gelb Umriss
   warnt, ok klein schwarz) · Beschriftung links · kompakte Dichte · keine
   Deko-Konturen. Warnfarben bewusst nur für Zustände (System vor Komponente). */

.status-server { margin: 0 0 34px; }
.status-kopf {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 14px 0 8px;
  font-size: 1.06rem; font-weight: 700; letter-spacing: .01em;
  border-bottom: 1px solid var(--line);
}
.status-kopf.ok   { color: var(--ink); }
.status-kopf.warn { color: #8a6d00; }
.status-kopf.err  { color: var(--error); }
.status-meta { margin-left: auto; font-size: .78rem; font-weight: 400;
               color: var(--muted); }

.glyph-status { display: inline-flex; align-items: center; }
.glyph-ok   { width: 13px; height: 13px; color: var(--ink); }
.glyph-warn { width: 19px; height: 19px; color: #b8860b; }
.glyph-err  { width: 19px; height: 19px; color: var(--error); }

.status-tabelle { width: 100%; border-collapse: collapse;
                  font-size: .86rem; }
.status-tabelle td { padding: 7px 10px 7px 0;
                     border-bottom: 1px solid var(--line); vertical-align: top; }
.status-tabelle tr:last-child td { border-bottom: none; }
.status-zelle-zustand { width: 30px; padding-top: 8px; }
.status-zelle-name { font-weight: 600; white-space: nowrap; }
.status-zelle-detail { color: var(--muted); }
.status-zelle-vor { width: 90px; text-align: right; color: var(--muted);
                    white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Zeile selbst schweigt — der Zustand lebt allein in der Glyphe (Regel 2) */

/* ---- Anpassen-Modus (07.10.): persoenliches Layout, Drag & Drop ---- */
.status-leiste { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.pille {
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent; border-radius: 999px;
  padding: 5px 16px; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.pille:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.griff { cursor: grab; color: var(--muted); font-size: 1rem; padding: 0 2px; }
.block[draggable="true"] { outline: 1px dashed var(--line); outline-offset: 4px; }
.block-schalter {
  font-size: .74rem; font-weight: 400; color: var(--muted);
  display: inline-flex; gap: 4px; align-items: center; margin-left: 10px;
  cursor: pointer;
}
.status-server.ausgeblendet .status-kopf { color: var(--muted); }

/* Netz-Herkunft: dezente Marke, klein und grau (Kennzeichnung, kein Alarm) */
.netz-marke {
  font-size: .68rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 1px 6px; margin-left: 2px;
}

/* ---- Kachelwand (Übersicht, 07.10.) ---- */
.kachel-wand {
  display: grid;
  grid-template-columns: repeat(auto-fill, 240px);
  justify-content: start;
  align-items: start;
  gap: 14px; margin-top: 10px;
}
.kachel {
  background: var(--card); border-radius: 10px;
  padding: 14px 16px 12px; min-height: 96px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 2px rgba(20,28,40,.05);
}
.kachel[draggable="true"] { outline: 1px dashed var(--line); outline-offset: 3px; cursor: grab; }
.kachel-kopf { display: flex; align-items: center; gap: 8px; }
.kachel-titel { font-weight: 600; font-size: .88rem; }
.kachel-wert { font-size: 1.02rem; color: var(--ink); overflow: hidden;
               text-overflow: ellipsis; white-space: nowrap; }
.kachel.zustand-err .kachel-titel { color: var(--error); }
.kachel.zustand-warn .kachel-titel { color: #8a6d00; }
.balken { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.balken-fuellung { height: 100%; border-radius: 3px; }
.kachel-menue {
  position: fixed; z-index: 50; background: var(--card);
  border-radius: 8px; box-shadow: 0 6px 24px rgba(20,28,40,.18);
  padding: 6px; display: flex; flex-direction: column; min-width: 130px;
}
.menue-eintrag {
  border: none; background: none; text-align: left; font: inherit;
  font-size: .84rem; padding: 7px 12px; border-radius: 5px; cursor: pointer;
}
.menue-eintrag:hover { background: var(--bg); }
.menue-eintrag.aktiv { font-weight: 700; color: var(--accent); }

/* ---- ⋮-Konfiguration (Regel 15: Anzeige rein, Konfiguration beim Element) ---- */
.drei-punkte {
  margin-left: auto; border: none; background: none; color: var(--muted);
  font-size: 1.05rem; line-height: 1; padding: 2px 7px; border-radius: 5px;
  cursor: pointer; opacity: 0; transition: opacity .12s;
}
.status-kopf .drei-punkte { margin-left: 0; }
.status-kopf:hover .drei-punkte, .kachel:hover .drei-punkte,
.drei-punkte:focus { opacity: 1; }
.drei-punkte:hover { background: var(--bg); color: var(--ink); }
.menue-trenner { height: 1px; background: var(--line); margin: 5px 8px; }
.dialog-huelle {
  position: fixed; inset: 0; background: rgba(20,28,40,.32);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.dialog {
  background: var(--card); border-radius: 12px; padding: 22px 24px;
  min-width: 300px; box-shadow: 0 18px 48px rgba(20,28,40,.25);
}
.dialog h3 { margin: 0 0 4px; font-size: 1rem; }
.dialog-zeile { display: flex; align-items: center; justify-content: space-between;
                gap: 18px; margin: 14px 0; font-size: .9rem; }
.dialog-fuss { display: flex; justify-content: flex-end; margin-top: 16px; }

/* ═══ Status-Seite — nach Knowledge/design/mikes-intuition.md ═══
   Haarlinien statt Kästen · Füllungslogik (rot gefüllt springt, gelb Umriss
   warnt, ok klein schwarz) · Beschriftung links · kompakte Dichte · keine
   Deko-Konturen. Warnfarben bewusst nur für Zustände (System vor Komponente). */

.status-server { margin: 0 0 34px; }
.status-kopf {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 14px 0 8px;
  font-size: 1.06rem; font-weight: 700; letter-spacing: .01em;
  border-bottom: 1px solid var(--line);
}
.status-kopf.ok   { color: var(--ink); }
.status-kopf.warn { color: #8a6d00; }
.status-kopf.err  { color: var(--error); }
.status-meta { margin-left: auto; font-size: .78rem; font-weight: 400;
               color: var(--muted); }

.glyph-status { display: inline-flex; align-items: center; }
.glyph-ok   { width: 13px; height: 13px; color: var(--ink); }
.glyph-warn { width: 19px; height: 19px; color: #b8860b; }
.glyph-err  { width: 19px; height: 19px; color: var(--error); }

.status-tabelle { width: 100%; border-collapse: collapse;
                  font-size: .86rem; }
.status-tabelle td { padding: 7px 10px 7px 0;
                     border-bottom: 1px solid var(--line); vertical-align: top; }
.status-tabelle tr:last-child td { border-bottom: none; }
.status-zelle-zustand { width: 30px; padding-top: 8px; }
.status-zelle-name { font-weight: 600; white-space: nowrap; }
.status-zelle-detail { color: var(--muted); }
.status-zelle-vor { width: 90px; text-align: right; color: var(--muted);
                    white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Zeile selbst schweigt — der Zustand lebt allein in der Glyphe (Regel 2) */

/* ---- Anpassen-Modus (07.10.): persoenliches Layout, Drag & Drop ---- */
.status-leiste { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.pille {
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent; border-radius: 999px;
  padding: 5px 16px; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.pille:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.griff { cursor: grab; color: var(--muted); font-size: 1rem; padding: 0 2px; }
.block[draggable="true"] { outline: 1px dashed var(--line); outline-offset: 4px; }
.block-schalter {
  font-size: .74rem; font-weight: 400; color: var(--muted);
  display: inline-flex; gap: 4px; align-items: center; margin-left: 10px;
  cursor: pointer;
}
.status-server.ausgeblendet .status-kopf { color: var(--muted); }

/* Netz-Herkunft: dezente Marke, klein und grau (Kennzeichnung, kein Alarm) */
.netz-marke {
  font-size: .68rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 1px 6px; margin-left: 2px;
}

/* ---- Kachelwand (Übersicht, 07.10.) ---- */
.kachel-wand {
  display: grid;
  grid-template-columns: repeat(auto-fill, 240px);
  justify-content: start;
  align-items: start;
  gap: 14px; margin-top: 10px;
}
.kachel {
  background: var(--card); border-radius: 10px;
  padding: 14px 16px 12px; min-height: 96px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 2px rgba(20,28,40,.05);
}
.kachel[draggable="true"] { outline: 1px dashed var(--line); outline-offset: 3px; cursor: grab; }
.kachel-kopf { display: flex; align-items: center; gap: 8px; }
.kachel-titel { font-weight: 600; font-size: .88rem; }
.kachel-wert { font-size: 1.02rem; color: var(--ink); overflow: hidden;
               text-overflow: ellipsis; white-space: nowrap; }
.kachel.zustand-err .kachel-titel { color: var(--error); }
.kachel.zustand-warn .kachel-titel { color: #8a6d00; }
.balken { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.balken-fuellung { height: 100%; border-radius: 3px; }
.kachel-menue {
  position: fixed; z-index: 50; background: var(--card);
  border-radius: 8px; box-shadow: 0 6px 24px rgba(20,28,40,.18);
  padding: 6px; display: flex; flex-direction: column; min-width: 130px;
}
.menue-eintrag {
  border: none; background: none; text-align: left; font: inherit;
  font-size: .84rem; padding: 7px 12px; border-radius: 5px; cursor: pointer;
}
.menue-eintrag:hover { background: var(--bg); }
.menue-eintrag.aktiv { font-weight: 700; color: var(--accent); }

/* ---- ⋮-Konfiguration (Regel 15: Anzeige rein, Konfiguration beim Element) ---- */
.drei-punkte {
  margin-left: auto; border: none; background: none; color: var(--muted);
  font-size: 1.05rem; line-height: 1; padding: 2px 7px; border-radius: 5px;
  cursor: pointer; opacity: 0; transition: opacity .12s;
}
.status-kopf .drei-punkte { margin-left: 0; }
.status-kopf:hover .drei-punkte, .kachel:hover .drei-punkte,
.drei-punkte:focus { opacity: 1; }
.drei-punkte:hover { background: var(--bg); color: var(--ink); }
.menue-trenner { height: 1px; background: var(--line); margin: 5px 8px; }
.dialog-huelle {
  position: fixed; inset: 0; background: rgba(20,28,40,.32);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.dialog {
  background: var(--card); border-radius: 12px; padding: 22px 24px;
  min-width: 300px; box-shadow: 0 18px 48px rgba(20,28,40,.25);
}
.dialog h3 { margin: 0 0 4px; font-size: 1rem; }
.dialog-zeile { display: flex; align-items: center; justify-content: space-between;
                gap: 18px; margin: 14px 0; font-size: .9rem; }
.dialog-fuss { display: flex; justify-content: flex-end; margin-top: 16px; }

/* Server-Komposition: Zeilen (Load, Platten, Updates) untereinander */
.kachel-zeilen { display: flex; flex-direction: column; gap: 5px; }
.kachel-zeile { display: flex; justify-content: space-between; gap: 10px;
                font-size: .8rem; align-items: baseline; }
.z-label { color: var(--muted); font-weight: 500; }
.z-wert { font-variant-numeric: tabular-nums; }
.kachel .balken { margin-top: -2px; }
.kachel-fuss { margin-top: 6px; font-size: .7rem; color: var(--muted); }

/* ═══ Status-Seite — nach Knowledge/design/mikes-intuition.md ═══
   Haarlinien statt Kästen · Füllungslogik (rot gefüllt springt, gelb Umriss
   warnt, ok klein schwarz) · Beschriftung links · kompakte Dichte · keine
   Deko-Konturen. Warnfarben bewusst nur für Zustände (System vor Komponente). */

.status-server { margin: 0 0 34px; }
.status-kopf {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 14px 0 8px;
  font-size: 1.06rem; font-weight: 700; letter-spacing: .01em;
  border-bottom: 1px solid var(--line);
}
.status-kopf.ok   { color: var(--ink); }
.status-kopf.warn { color: #8a6d00; }
.status-kopf.err  { color: var(--error); }
.status-meta { margin-left: auto; font-size: .78rem; font-weight: 400;
               color: var(--muted); }

.glyph-status { display: inline-flex; align-items: center; }
.glyph-ok   { width: 13px; height: 13px; color: var(--ink); }
.glyph-warn { width: 19px; height: 19px; color: #b8860b; }
.glyph-err  { width: 19px; height: 19px; color: var(--error); }

.status-tabelle { width: 100%; border-collapse: collapse;
                  font-size: .86rem; }
.status-tabelle td { padding: 7px 10px 7px 0;
                     border-bottom: 1px solid var(--line); vertical-align: top; }
.status-tabelle tr:last-child td { border-bottom: none; }
.status-zelle-zustand { width: 30px; padding-top: 8px; }
.status-zelle-name { font-weight: 600; white-space: nowrap; }
.status-zelle-detail { color: var(--muted); }
.status-zelle-vor { width: 90px; text-align: right; color: var(--muted);
                    white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Zeile selbst schweigt — der Zustand lebt allein in der Glyphe (Regel 2) */

/* ---- Anpassen-Modus (07.10.): persoenliches Layout, Drag & Drop ---- */
.status-leiste { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.pille {
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent; border-radius: 999px;
  padding: 5px 16px; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.pille:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.griff { cursor: grab; color: var(--muted); font-size: 1rem; padding: 0 2px; }
.block[draggable="true"] { outline: 1px dashed var(--line); outline-offset: 4px; }
.block-schalter {
  font-size: .74rem; font-weight: 400; color: var(--muted);
  display: inline-flex; gap: 4px; align-items: center; margin-left: 10px;
  cursor: pointer;
}
.status-server.ausgeblendet .status-kopf { color: var(--muted); }

/* Netz-Herkunft: dezente Marke, klein und grau (Kennzeichnung, kein Alarm) */
.netz-marke {
  font-size: .68rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 1px 6px; margin-left: 2px;
}

/* ---- Kachelwand (Übersicht, 07.10.) ---- */
.kachel-wand {
  display: grid;
  grid-template-columns: repeat(auto-fill, 240px);  /* feste Breite … */
  justify-content: start;                            /* … links fortlaufend */
  align-items: start;                                /* … Hoehe je Inhalt */
  gap: 14px; margin-top: 10px;
}
.kachel {
  background: var(--card); border-radius: 10px;
  padding: 14px 16px 12px; min-height: 96px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 2px rgba(20,28,40,.05);
}
.kachel[draggable="true"] { outline: 1px dashed var(--line); outline-offset: 3px; cursor: grab; }
.kachel-kopf { display: flex; align-items: center; gap: 8px; }
.kachel-titel { font-weight: 600; font-size: .88rem; }
.kachel-wert { font-size: 1.02rem; color: var(--ink); overflow: hidden;
               text-overflow: ellipsis; white-space: nowrap; }
.kachel.zustand-err .kachel-titel { color: var(--error); }
.kachel.zustand-warn .kachel-titel { color: #8a6d00; }
.balken { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.balken-fuellung { height: 100%; border-radius: 3px; }
.kachel-menue {
  position: fixed; z-index: 50; background: var(--card);
  border-radius: 8px; box-shadow: 0 6px 24px rgba(20,28,40,.18);
  padding: 6px; display: flex; flex-direction: column; min-width: 130px;
}
.menue-eintrag {
  border: none; background: none; text-align: left; font: inherit;
  font-size: .84rem; padding: 7px 12px; border-radius: 5px; cursor: pointer;
}
.menue-eintrag:hover { background: var(--bg); }
.menue-eintrag.aktiv { font-weight: 700; color: var(--accent); }

/* ---- ⋮-Konfiguration (Regel 15: Anzeige rein, Konfiguration beim Element) ---- */
.drei-punkte {
  margin-left: auto; border: none; background: none; color: var(--muted);
  font-size: 1.05rem; line-height: 1; padding: 2px 7px; border-radius: 5px;
  cursor: pointer; opacity: 0; transition: opacity .12s;
}
.status-kopf .drei-punkte { margin-left: 0; }
.status-kopf:hover .drei-punkte, .kachel:hover .drei-punkte,
.drei-punkte:focus { opacity: 1; }
.drei-punkte:hover { background: var(--bg); color: var(--ink); }
.menue-trenner { height: 1px; background: var(--line); margin: 5px 8px; }
.dialog-huelle {
  position: fixed; inset: 0; background: rgba(20,28,40,.32);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.dialog {
  background: var(--card); border-radius: 12px; padding: 22px 24px;
  min-width: 300px; box-shadow: 0 18px 48px rgba(20,28,40,.25);
}
.dialog h3 { margin: 0 0 4px; font-size: 1rem; }
.dialog-zeile { display: flex; align-items: center; justify-content: space-between;
                gap: 18px; margin: 14px 0; font-size: .9rem; }
.dialog-fuss { display: flex; justify-content: flex-end; margin-top: 16px; }

/* Server-Komposition: Zeilen (Load, Platten, Updates) untereinander */
.kachel-zeilen { display: flex; flex-direction: column; gap: 5px; }
.kachel-zeile { display: flex; justify-content: space-between; gap: 10px;
                font-size: .8rem; align-items: baseline; }
.z-label { color: var(--muted); font-weight: 500; }
.z-wert { font-variant-numeric: tabular-nums; }
.kachel .balken { margin-top: -2px; }
.kachel-fuss { margin-top: 6px; font-size: .7rem; color: var(--muted); }

/* ---- Grid-Span (1/2/3 Zellen) ---- */
.kachel-span-2 { grid-column: span 2; }
.kachel-span-3 { grid-column: span 3; }
