/* ── Troncom Enterprise · Oberfläche ───────────────────────────────
   Ruhig und edel in Ebenen: schwarzer Grund für Leiste und Kopfleiste,
   darauf das dunkle Panel der Seite mit feiner Kante, darin Karten mit
   sehr feinem Korn. Kein Glas, keine
   bunten Kacheln: Farbe tragen die Daten (Token, Websuchen,
   Nutzungszeiten, Unternehmen in den Diagrammen) und die Zustände;
   Bernstein bleibt dem einen Hauptknopf einer Ansicht. Rastergit darf
   bunt sein (Datei-Icons, Projektfarben). Schrift Inter, dazu die
   Troncom-Wortmarke als SVG. Dunkel ist die Vorgabe, hell schaltet
   html.hell (thema.js).                                              */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(schriften/inter-latin.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  /* Tiefes Dunkel: Leiste schwarz, Arbeitsfläche fast schwarz, Karten
     eine Spur darüber mit feiner Kante – Farbe kommt aus den Elementen */
  --bg: #000;                  /* Grund: Leiste und Kopfleiste */
  --panel: #050506;            /* die Seite – dunkel */
  --panel-rand: #141518;
  --korn: url(bilder/korn.png?v=7);  /* Dithering im Verlauf der Karten */
  /* Karten wie bei Linear: oben angeleuchtet, nach unten in die Seite
     übergehend; die Kante oben heller. Abstufungen aus dem Vorbild über
     die wahrgenommene Helligkeit (CIELAB) auf den dunkleren Grund übertragen */
  --karte-oben: #0b0c0e;        /* oben der hellere Bereich – bewusst sehr dunkel … */
  --karte-unten: #050506;       /* … nach unten in die Seite übergehend */
  --karte-gruen: #090c0a;       /* oben mit ganz leichtem Grünstich */
  --kante-oben: #191a1d;
  --kante: #141518;
  --flaeche: #0b0c0e;          /* flache Flächen (Code, Listen in Rastergit) */
  --flaeche-2: #16171a;        /* Dialoge, Menüs */
  --feld: #060607;             /* Eingaben – eine Spur tiefer als die Karte */
  --knopf: #17181c;
  --knopf-hover: #1e1f24;
  --leiste-bg: var(--bg);
  --leiste-an: #141518;
  --segment-bg: #060607;
  --segment-an: #1f2025;
  --karte-rand: #1a1b1e;       /* feine Kante um Karten */
  --leiste-rand: transparent;
  --rand: #1f2024;             /* Trennlinien und Umrisse */
  --rand-2: #292a2f;
  --rand-3: #3d3e44;
  --linie: #1a1b1f;            /* Zeilen in Tabellen und Listen */
  --ink: #ececed;
  --ink-2: #a3a4a8;
  --ink-3: #75767b;
  --hover: rgba(255,255,255,.03);
  --aktiv: rgba(255,255,255,.06);
  --schatten: inset 0 1px 0 rgba(255,255,255,.03);
  --schatten-pop: 0 18px 50px rgba(0,0,0,.6);
  --fokus-ring: rgba(255,255,255,.09);
  --stark: #fff;               /* Gegenstück zum Grund: Fokus, Schalter, Anmelden */
  --auf-stark: #000;
  --bernstein: #FFC46B;        /* nur Hauptknöpfe */
  --bernstein-hover: #FFD08A;
  --auf-bernstein: #000;

  /* Daten – Paare und Stufen mit dem Paletten-Prüfer auf Farbsehschwächen geprüft */
  --s-ein: #3987e5;            /* Token ein */
  --s-aus: #d55181;            /* Token aus */
  --s-suche: #9085e9;          /* Websuchen */
  --kat-0: #5c5c5c;            /* „Andere" */
  --kat-1: #199e70; --kat-2: #d95926; --kat-3: #3987e5; --kat-4: #d55181;
  --kat-5: #008300; --kat-6: #9085e9; --kat-7: #e66767;
  /* Kästchen (Nutzungszeiten, Aktivität): Grün wie bei GitHub, leer = grau */
  --heat-0: #18191c; --heat-1: #13603a; --heat-2: #1b8a4a; --heat-3: #2cb35d; --heat-4: #5be38a;
  --gitter: #17181b;
  --basis: #2a2b30;

  --gut: #3ecf8e; --gut-text: #4ade94; --gut-flaeche: rgba(62,207,142,.12);
  --warn: #f5a524; --warn-text: #f7b955; --warn-flaeche: rgba(245,165,36,.12);
  --kritisch: #e5484d; --kritisch-text: #ff6b6f; --kritisch-flaeche: rgba(229,72,77,.13);
  --akzent-text: #6aa5f0; --akzent-flaeche: rgba(57,135,229,.15);

  /* Code: Hervorhebung und Diffs */
  --code-bg: #09090b;
  --abz-grau: #1d1e22; --abz-grau-text: #c9cacd;
  --hl-k: #ff7b72; --hl-s: #a5d6ff; --hl-c: #6e7681; --hl-n: #79c0ff; --hl-f: #d2a8ff; --hl-t: #ffa657; --hl-p: #7ee787;
  --diff-plus: rgba(46,160,67,.15); --diff-plus-nr: rgba(46,160,67,.22);
  --diff-minus: rgba(248,81,73,.13); --diff-minus-nr: rgba(248,81,73,.2);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22,1,.36,1);
  --swift: cubic-bezier(.32,.72,0,1);
  --leiste: 232px;
}
html.hell {
  color-scheme: light;
  --bg: #f4f4f5;
  --flaeche: #fff;
  --flaeche-2: #fff;
  --feld: #fff;
  --knopf: #fff;
  --knopf-hover: #f7f7f8;
  --leiste-bg: var(--bg);
  --leiste-an: rgba(0,0,0,.06);
  --panel: #ffffff;
  --panel-rand: #e4e4e7;
  --korn: none;
  --karte-oben: #ffffff;
  --karte-unten: #ffffff;
  --karte-gruen: #ffffff;
  --kante-oben: #e4e4e7;
  --kante: #e7e7ea;
  --segment-bg: #f0f0f2;
  --segment-an: #fff;
  --karte-rand: #e7e7ea;
  --leiste-rand: transparent;
  --rand: #e4e4e7;
  --rand-2: #d6d6da;
  --rand-3: #a1a1aa;
  --linie: #ededf0;
  --ink: #18181b;
  --ink-2: #52525b;
  --ink-3: #71717a;
  --hover: rgba(0,0,0,.035);
  --aktiv: rgba(0,0,0,.06);
  --schatten: 0 1px 2px rgba(16,24,40,.05);
  --schatten-pop: 0 18px 50px rgba(16,24,40,.14);
  --fokus-ring: rgba(0,0,0,.08);
  --stark: #111;
  --auf-stark: #fff;
  --s-ein: #2a78d6;
  --s-aus: #d6457e;
  --s-suche: #6250d6;
  --kat-0: #b5b5b5;
  --kat-1: #1baf7a; --kat-2: #eb6834; --kat-3: #2a78d6; --kat-4: #e87ba4;
  --kat-5: #008300; --kat-6: #6250d6; --kat-7: #e34948;
  --heat-0: #ececef; --heat-1: #6cc387; --heat-2: #3fa961; --heat-3: #2a8a49; --heat-4: #1b5e33;
  --gitter: #f0f0f2;
  --basis: #d4d4d8;
  --gut: #16a34a; --gut-text: #15803d; --gut-flaeche: rgba(22,163,74,.1);
  --warn: #d97706; --warn-text: #b45309; --warn-flaeche: rgba(245,158,11,.13);
  --kritisch: #dc2626; --kritisch-text: #c81e1e; --kritisch-flaeche: rgba(220,38,38,.08);
  --akzent-text: #1d64c0; --akzent-flaeche: rgba(42,120,214,.1);
  --code-bg: #fbfbfc;
  --abz-grau: #ececee; --abz-grau-text: #3f3f46;
  --hl-k: #cf222e; --hl-s: #0a3069; --hl-c: #6e7781; --hl-n: #0550ae; --hl-f: #8250df; --hl-t: #953800; --hl-p: #116329;
  --diff-plus: #e6ffec; --diff-plus-nr: #ccffd8;
  --diff-minus: #ffebe9; --diff-minus-nr: #ffd7d5;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font); font-size: 13.5px; line-height: 1.5; font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--stark); color: var(--auf-stark); }
:focus-visible { outline: 1.5px solid var(--stark); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.zahl { font-variant-numeric: tabular-nums; }
.leise { color: var(--ink-3); }
.mittel { color: var(--ink-2); }

/* ── Navigation links ──────────────────────────────────────────────
   Eine feste Leiste: oben die Marke, darunter die Bereiche in drei
   Gruppen, unten Live-Zustand und Konto. Schmal klappt sie aus. */
.seitenleiste {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: var(--leiste);
  display: flex; flex-direction: column; padding: 9px 10px 12px;
  background: var(--leiste-bg); border-right: 1px solid var(--leiste-rand);
}
.marke { display: flex; align-items: center; gap: 11px; height: 32px; padding: 0 10px; flex: none; color: var(--ink); }
.marke-logo { width: 92px; height: 19px; color: var(--ink); fill: currentColor; stroke: none; display: block; flex: none; }
.marke-name { font-size: 14px; font-weight: 500; letter-spacing: -.01em; padding-left: 11px;
  border-left: 1px solid var(--rand-3); line-height: 17px; }
.seitenleiste .marke { height: 36px; margin-bottom: 22px; }
.navi { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.navi-gruppe { display: flex; flex-direction: column; gap: 1px; }
.navi-titel { padding: 0 10px 6px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.navi a {
  display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 8px; flex: none;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.navi a .ic { width: 16px; height: 16px; color: var(--ink-3); transition: color .2s; }
.navi a:hover { color: var(--ink); background: var(--hover); }
.navi a.an { color: var(--ink); background: var(--leiste-an); box-shadow: inset 0 0 0 1px var(--rand); }
.navi a.an .ic { color: var(--ink); }
.navi .live-punkt { margin-left: auto; width: 6px; height: 6px; }
.leiste-fuss { flex: none; display: flex; flex-direction: column; gap: 4px; padding-top: 10px; }
.live-anzeige { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 10px; font-size: 12px; color: var(--ink-3); }
.live-anzeige.an { color: var(--ink-2); }
.konto { display: flex; align-items: center; gap: 2px; }
.ich { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2); transition: color .2s, background .2s; }
.ich:hover { color: var(--ink); background: var(--hover); }
.ich .ic { width: 16px; height: 16px; }
.ich span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navi-schleier, .kopfleiste .nur-schmal { display: none; }

/* ── Rahmen: Kopfleiste auf dem Grund, die Seite in ihrem Panel ─────
   Wie bei Linear: das dunkle Panel hebt sich nur mit feiner Kante ab,
   die Karten darin tragen ein sehr feines Korn.                      */
.bereich { margin-left: var(--leiste); min-width: 0; padding: 0 10px 10px 0; }
.kopfleiste { position: sticky; top: 0; z-index: 40; height: 54px; display: flex; align-items: center; gap: 10px;
  padding: 0 2px 0 8px; background: var(--bg); }
.brotkrumen { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; color: var(--ink-3); }
.brotkrumen > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brotkrumen > :last-child { color: var(--ink); font-weight: 500; }
.brotkrumen a:hover { color: var(--ink); }
.brotkrumen .trenner { color: var(--rand-3); flex: none; }
.kopfleiste-rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.suche-knopf { display: inline-flex; align-items: center; gap: 9px; width: 248px; height: 32px; padding: 0 5px 0 11px; border-radius: 9px;
  background: var(--feld); border: 1px solid var(--rand); color: var(--ink-3); font: inherit; font-size: 13px; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease); }
.suche-knopf:hover { border-color: var(--rand-2); color: var(--ink-2); }
.suche-knopf .ic { width: 15px; height: 15px; }
.suche-knopf kbd { margin-left: auto; }
kbd { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 6px; border-radius: 5px; font: 500 11px/1 var(--font);
  color: var(--ink-3); background: var(--knopf); border: 1px solid var(--rand-2); }
.kopfleiste .live-anzeige { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rand); gap: 8px; font-size: 12.5px; }
.panel { min-height: calc(100vh - 64px); border-radius: 16px; border: 1px solid var(--panel-rand); background: var(--panel); }

.haupt { max-width: 1280px; margin: 0 auto; padding: 32px 36px 80px; }
.seitenkopf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.seitenkopf-text { flex: 1; min-width: 240px; }
.titel { font-size: 24px; font-weight: 600; letter-spacing: -.024em; margin: 0; line-height: 1.2; }
.untertitel { color: var(--ink-3); margin: 5px 0 0; font-size: 13.5px; }
.seitenkopf-rechts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

#inhalt { transition: opacity .2s var(--ease); }
#inhalt.laedt { opacity: .5; }
.seite-rein { animation: rein .35s var(--ease) both; }
@keyframes rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Karten ────────────────────────────────────────────────────── */
.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.raster, .kpis, .hinweisband, .filterzeile, .seiten-text { margin-bottom: 16px; }
.b-12 { grid-column: span 12; } .b-9 { grid-column: span 9; } .b-8 { grid-column: span 8; }
.b-7 { grid-column: span 7; } .b-6 { grid-column: span 6; } .b-5 { grid-column: span 5; }
.b-4 { grid-column: span 4; } .b-3 { grid-column: span 3; }

.abschnitt { min-width: 0; display: flex; flex-direction: column; padding: 18px 22px 22px;
  background: var(--flaeche); border: 1px solid var(--karte-rand); border-radius: 14px; box-shadow: var(--schatten); }
.abschnitt-kopf { display: flex; align-items: center; gap: 10px; min-height: 30px; margin-bottom: 16px; flex-wrap: wrap; row-gap: 8px; }
.abschnitt-kopf h2 { font-size: 13.5px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.abschnitt-kopf .unter { font-size: 12.5px; color: var(--ink-3); }
.abschnitt-kopf .rechts { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.abschnitt-text { color: var(--ink-3); font-size: 13px; margin: -6px 0 18px; max-width: 72ch; }
.abschnitt.gefahr { border-color: rgba(229,72,77,.35); }
.abschnitt.nur-tabelle { padding: 6px 22px 8px; }
.seiten-text { color: var(--ink-3); font-size: 13px; max-width: 80ch; margin-top: -8px; }

/* ── Kennzahlen: eine Leiste, Werte nebeneinander, feine Trenner ── */
.kpis { display: flex; flex-wrap: wrap; overflow: hidden; background: var(--flaeche); border: 1px solid var(--karte-rand);
  border-radius: 14px; box-shadow: var(--schatten); }
.kpi { container-type: inline-size; flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 16px;
  box-shadow: -1px 0 0 var(--linie), 0 -1px 0 var(--linie); }
.held { flex-grow: 1.5; }
.kpi-label { font-size: 12.5px; color: var(--ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-zeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; min-width: 0; }
.kpi-wert { font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; min-width: 0;
  font-variant-numeric: tabular-nums; }
.kpi-wert small { font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.kpi-teile { display: flex; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.kpi-teile span { display: inline-flex; align-items: center; gap: 7px; }
.kpi-fuss { margin-top: auto; padding-top: 10px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.kpi-delta { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-delta b { color: var(--ink-2); font-weight: 500; }
.kpi-delta.hoch-schlecht b { color: var(--kritisch-text); }
.kpi-kurve { width: 72px; height: 26px; flex: none; margin-bottom: 3px; }
.held .kpi-kurve { width: 112px; height: 30px; }
@container (max-width: 210px) { .kpi-kurve { display: none; } }
@container (max-width: 400px) { .held .kpi-kurve { width: 140px; height: 44px; } }

.punkt { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: none; }
.punkt.ein { background: var(--s-ein); } .punkt.aus { background: var(--s-aus); } .punkt.suche { background: var(--s-suche); }

/* ── Bedienelemente ────────────────────────────────────────────── */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--rand-2);
  background: var(--knopf); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  box-shadow: var(--schatten);
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), opacity .2s;
}
.knopf:hover { border-color: var(--rand-3); background: var(--knopf-hover); }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
.knopf .ic { width: 15px; height: 15px; }
/* Der eine Hauptknopf einer Ansicht – Bernstein, flach */
.knopf-primaer { background: var(--bernstein); border-color: var(--bernstein); color: var(--auf-bernstein); }
.knopf-primaer:hover { background: var(--bernstein-hover); border-color: var(--bernstein-hover); }
.knopf-geist { background: transparent; border-color: transparent; color: var(--ink-2); box-shadow: none; }
.knopf-geist:hover { color: var(--ink); background: var(--hover); border-color: transparent; }
.knopf-gefahr { color: var(--kritisch-text); }
.knopf-gefahr:hover { border-color: rgba(229,72,77,.5); background: var(--kritisch-flaeche); }
.knopf-gefahr-voll { background: var(--kritisch); border-color: var(--kritisch); color: #fff; }
.knopf-gefahr-voll:hover { opacity: .9; background: var(--kritisch); border-color: var(--kritisch); }
.knopf-klein { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.knopf-icon { width: 34px; padding: 0; border-radius: 999px; }
.knopf-klein.knopf-icon { width: 28px; border-radius: 999px; }

.segment { display: inline-flex; border: 1px solid var(--rand); background: var(--segment-bg); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segment button { height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-3);
  font-size: 12.5px; font-weight: 500; cursor: pointer; transition: color .2s, background .2s; }
.segment button:hover { color: var(--ink); }
.segment button.an { background: var(--segment-an); color: var(--ink); box-shadow: var(--schatten); }
.segment .segment-link { height: 28px; padding: 0 11px; border-radius: 7px; display: inline-flex; align-items: center;
  color: var(--ink-3); font-size: 12.5px; font-weight: 500; transition: color .2s, background .2s; }
.segment .segment-link:hover { color: var(--ink); }
.segment .segment-link.an { background: var(--segment-an); color: var(--ink); box-shadow: var(--schatten); }

.schalter { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 13px; color: var(--ink-2); }
.schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schalter-bahn { position: relative; width: 34px; height: 20px; border-radius: 20px; flex: none;
  background: var(--rand-2); transition: background .25s var(--ease); }
.schalter-bahn::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-3); transition: transform .25s var(--ease), background .25s; }
html.hell .schalter-bahn::after { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.schalter input:checked + .schalter-bahn { background: var(--gut); }
.schalter input:checked + .schalter-bahn::after { transform: translateX(14px); background: #fff; }
.schalter input:focus-visible + .schalter-bahn { outline: 1.5px solid var(--stark); outline-offset: 2px; }
.schalter input:disabled + .schalter-bahn { opacity: .4; }

/* Felder: ruhige Kästen; die Anmeldung behält die Linie wie bei Kepler */
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px 20px; }
.felder.weit { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld > span { font-size: 12px; font-weight: 500; color: var(--ink-2); display: flex; gap: 6px; align-items: baseline; }
.feld > span em { font-style: normal; font-weight: 400; margin-left: auto; color: var(--ink-3); }
.feld.ganz { grid-column: 1 / -1; }
.feld input, .feld select, .eingabe {
  width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--rand-2); border-radius: 8px;
  background: var(--feld); color: var(--ink); font-size: 13.5px; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.feld input:hover, .feld select:hover, .eingabe:hover { border-color: var(--rand-3); }
.feld input:focus, .feld select:focus, .eingabe:focus { border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--fokus-ring); }
.feld input:disabled { opacity: .5; }
.feld input::placeholder, .eingabe::placeholder { color: var(--ink-3); opacity: .75; }
.feld textarea { width: 100%; min-height: 84px; padding: 10px 12px; border: 1px solid var(--rand-2); border-radius: 8px;
  background: var(--feld); color: var(--ink); resize: vertical; outline: none; }
.feld textarea:focus { border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--fokus-ring); }
.feld select option, select.eingabe option { background: var(--flaeche-2); color: var(--ink); }
.feld.geerbt input { color: var(--ink-3); }
.feld-hinweis { font-size: 11.5px; color: var(--ink-3); margin: 6px 0 0; }
.aktionen { display: flex; gap: 10px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.aktionen .rechts { margin-left: auto; display: flex; gap: 10px; }

/* Zustände: Symbol und Wort, als weiche Pille */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.chip .ic { width: 13px; height: 13px; }
.chip.gut, .chip.kritisch, .chip.warn, .chip.akzent, .chip.leise { height: 22px; padding: 0 9px 0 7px; border-radius: 999px; font-weight: 500; }
.chip.gut { color: var(--gut-text); background: var(--gut-flaeche); }
.chip.kritisch { color: var(--kritisch-text); background: var(--kritisch-flaeche); }
.chip.warn { color: var(--warn-text); background: var(--warn-flaeche); }
.chip.akzent { color: var(--akzent-text); background: var(--akzent-flaeche); }
.chip.leise { color: var(--ink-3); background: var(--hover); }
.status-punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); display: inline-block; flex: none; }
.status-punkt.gut { background: var(--gut); }
.status-punkt.kritisch { background: var(--kritisch); }

.live-punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--rand-3); position: relative; flex: none; display: inline-block; }
.live-punkt.an { background: var(--gut); }
.live-punkt.an::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--gut);
  animation: puls 2s var(--ease) infinite; opacity: 0; }
@keyframes puls { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ── Tabellen ──────────────────────────────────────────────────── */
.tabelle-huelle { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabelle th { text-align: left; font-weight: 500; font-size: 11.5px; color: var(--ink-3); padding: 10px 12px;
  border-bottom: 1px solid var(--linie); white-space: nowrap; }
.tabelle td { padding: 12px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle th:first-child, .tabelle td:first-child { padding-left: 0; }
.tabelle th:last-child, .tabelle td:last-child { padding-right: 0; }
.tabelle tbody tr { transition: background .15s; }
.tabelle tbody tr:hover td { background: var(--hover); }
.tabelle tbody tr.klickbar { cursor: pointer; }
.tabelle .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabelle .eng { width: 1%; white-space: nowrap; }
.name-zelle { display: flex; flex-direction: column; min-width: 0; }
.name-zelle b { font-weight: 500; color: var(--ink); }
.name-zelle small { color: var(--ink-3); font-size: 11.5px; }
.firmenname { display: flex; align-items: center; gap: 10px; }
.zeilen-aktionen { display: flex; gap: 2px; justify-content: flex-end; opacity: .6; transition: opacity .2s; }
tr:hover .zeilen-aktionen, .zeilen-aktionen:focus-within { opacity: 1; }

.minibalken { display: flex; height: 6px; width: 110px; gap: 2px; align-items: center; }
.minibalken i { height: 6px; display: block; }
.minibalken i:first-child { border-radius: 2px 0 0 2px; }
.minibalken i:last-child { border-radius: 0 2px 2px 0; }
.minibalken i:only-child { border-radius: 2px; }
.minibalken .ein { background: var(--s-ein); } .minibalken .aus { background: var(--s-aus); }
.farbmarke { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }

/* ── Diagramme ─────────────────────────────────────────────────── */
.dg-legende { display: flex; gap: 6px 16px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.dg-legende span { display: inline-flex; align-items: center; gap: 7px; }
.dg-legende i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dg-flaeche { position: relative; width: 100%; }
.fuellend { display: flex; flex-direction: column; }
.dg-flaeche.fuellt { flex: 1; min-height: 240px; }
.dg-flaeche.fuellt > .dg { position: absolute; left: 0; top: 0; }
/* Breite Kalender: auf schmalen Schirmen seitlich schieben, das Heute steht rechts */
.dg-flaeche.quer { overflow-x: auto; overflow-y: hidden; }
.dg-flaeche.quer .heat-legende { position: sticky; left: 0; }
.dg { display: block; overflow: visible; }
.dg-gitter { stroke: var(--gitter); stroke-width: 1; shape-rendering: crispEdges; }
.dg-basis { stroke: var(--basis); stroke-width: 1; shape-rendering: crispEdges; }
.dg-achse { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; font-family: var(--font); }
.dg-saeule { transition: opacity .15s; }
.dg.schwebt .dg-saeule { opacity: .45; }
.dg.schwebt .dg-saeule.aktiv { opacity: 1; }
.dg-hit { fill: transparent; cursor: crosshair; outline: none; }
.dg-linie { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dg-faden { stroke: var(--rand-3); stroke-width: 1; opacity: 0; pointer-events: none; }
.dg-linien.schwebt .dg-faden { opacity: 1; }
.dg-punkte { pointer-events: none; }
.dg-punkt-ring { fill: var(--flaeche); }
.dg-leer-text { fill: var(--ink-3); font-size: 13px; font-family: var(--font); }
.dg-feld { transition: opacity .15s; }
.dg-feld:hover, .dg-feld:focus { outline: none; stroke: var(--stark); stroke-width: 1.5; }
.heat-legende { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); margin-top: 12px; justify-content: flex-end; }
.heat-legende i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.heat-legende span { margin: 0 4px; }

.hbalken { display: flex; flex-direction: column; gap: 14px; }
.hbalken-zeile { display: grid; grid-template-columns: minmax(90px, 180px) minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.hbalken-zeile.klickbar { cursor: pointer; }
.hbalken-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 9px; }
.hbalken-spur { display: flex; gap: 2px; height: 12px; align-items: stretch; }
.hbalken-spur i { display: block; height: 100%; min-width: 0; border-radius: 0 4px 4px 0; transition: opacity .15s; }
.hbalken-wert { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 62px; text-align: right; }
.hbalken-zeile:hover .hbalken-spur i { opacity: .82; }

.tip {
  position: fixed; z-index: 1000; pointer-events: none; min-width: 150px; max-width: 320px;
  padding: 10px 12px; border-radius: 10px; background: var(--flaeche-2); border: 1px solid var(--rand-2);
  box-shadow: var(--schatten-pop); font-size: 12px; opacity: 0; transform: translateY(3px);
  transition: opacity .12s, transform .12s;
}
.tip.zeigen { opacity: 1; transform: none; }
.tip-titel { color: var(--ink-3); margin-bottom: 6px; font-size: 11.5px; }
.tip-zeile { display: flex; align-items: center; gap: 8px; line-height: 1.7; }
.tip-zeile i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.tip-zeile b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 60px; }
.tip-zeile span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-summe { border-top: 1px solid var(--rand); margin-top: 5px; padding-top: 5px; }

/* ── Live ──────────────────────────────────────────────────────── */
.live-liste { display: flex; flex-direction: column; }
.live-zeile {
  display: grid; align-items: center; gap: 14px;
  grid-template-columns: 70px 124px minmax(0, 1.4fr) minmax(0, 1fr) 140px 128px 104px;
  padding: 11px 0; font-size: 13px; position: relative; border-bottom: 1px solid var(--linie);
}
.live-zeile:last-child { border-bottom: 0; }
.live-zeile.neu { animation: neu 1.4s var(--ease); }
@keyframes neu { 0% { background: var(--akzent-flaeche); } 100% { background: transparent; } }
.live-zeile.laeuft .live-zeit::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--s-ein); margin-right: 7px; vertical-align: 1px; animation: atmen 1.2s ease-in-out infinite; }
@keyframes atmen { 50% { opacity: .25; } }
.live-zeile.fehler .live-art { color: var(--kritisch-text); }
.live-zeit { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; }
.live-art { display: flex; align-items: center; gap: 9px; font-weight: 500; min-width: 0; }
.live-art .ic { width: 15px; height: 15px; color: var(--ink-3); }
.art-chat .ic { color: var(--s-ein); }
.art-suche .ic, .art-bildsuche .ic { color: var(--s-suche); }
.art-abgewiesen .ic { color: var(--kritisch-text); }
.live-art small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.live-wer { min-width: 0; display: flex; flex-direction: column; }
.live-wer b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-wer small { color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-modell { min-width: 0; color: var(--ink-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-tokens { display: flex; flex-direction: column; gap: 3px; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-2); }
.live-tokens span { display: inline-flex; align-items: center; gap: 6px; }
.live-dauer { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 12px; }
.live-dauer small { display: block; color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.live-status { text-align: right; display: flex; justify-content: flex-end; }
.live-kopf { color: var(--ink-3); font-size: 11.5px; padding-top: 4px; }
.live-kopf > * { font-weight: 500; }
.live-kompakt .live-zeile { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px; }
.mehr-laden { display: flex; justify-content: center; margin-top: 16px; }
.filterzeile { display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; }
.filterzeile .eingabe { width: auto; min-width: 200px; }
.suchfeld { position: relative; display: flex; align-items: center; }
.suchfeld .ic { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; }
.suchfeld .eingabe { padding-left: 34px; min-width: 260px; }

/* ── Limits ────────────────────────────────────────────────────── */
.meter { display: flex; flex-direction: column; gap: 7px; min-width: 0; width: 100%; }
.meter-spur { height: 6px; border-radius: 6px; background: var(--rand-2); overflow: hidden; }
.meter-spur i { display: block; height: 100%; border-radius: 6px; background: var(--s-ein); transition: width .6s var(--ease); }
.meter.knapp .meter-spur i { background: var(--warn); }
.meter.voll .meter-spur i { background: var(--kritisch); }
.meter-text { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.meter-text b { color: var(--ink); font-weight: 500; }
.meter.knapp .meter-text span:last-child { color: var(--warn-text); }
.meter.voll .meter-text span:last-child { color: var(--kritisch-text); }
.meter.klein { width: 150px; gap: 5px; }
.meter.klein .meter-spur { height: 4px; }
.meter.klein .meter-text { font-size: 11px; white-space: nowrap; }
.limit-zelle { min-width: 140px; }
.limit-liste { display: flex; flex-direction: column; }
.limit-zeile { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.limit-zeile:first-child { padding-top: 0; }
.limit-zeile:last-child { border-bottom: 0; }
.limit-name { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.limit-name .ic { width: 14px; height: 14px; color: var(--ink-3); }
.limit-name span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.limit-name b { font-weight: 500; }
.limit-vorschau { font-size: 11.5px; color: var(--ink-2); min-height: 16px; font-variant-numeric: tabular-nums; }
.limit-stand { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--linie); display: flex; flex-direction: column; gap: 12px; }
.limit-stand-zahlen { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.schnellwahl { display: flex; gap: 2px; }
.schnellwahl .knopf { height: 24px; padding: 0 7px; font-size: 11.5px; }

.steuer-liste { display: flex; flex-direction: column; }
.steuer-zeile { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.steuer-zeile:first-child { padding-top: 0; }
.steuer-zeile:last-child { border-bottom: 0; }
.steuer-zeile > div:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.steuer-zeile b { font-weight: 500; font-size: 13.5px; }
.steuer-zeile small { color: var(--ink-3); font-size: 12px; }
.steuer-zeile.spalte { flex-direction: column; align-items: stretch; gap: 10px; }
.steuer-notiz { margin-top: 12px; font-size: 12.5px; color: var(--ink-2); white-space: pre-wrap; }

/* ── Token, Modell-Auswahl ─────────────────────────────────────── */
.geheimnis { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 10px;
  border: 1px solid var(--rand-2); background: var(--feld); font-family: var(--mono); font-size: 13px; color: var(--ink); word-break: break-all; }
.geheimnis code { flex: 1; }
.warnhinweis { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); margin-top: 14px; }
.warnhinweis .ic { color: var(--warn-text); margin-top: 1px; }

.wahl { position: relative; }
.wahl-knopf { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  min-height: 52px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--rand-2); background: var(--feld);
  transition: border-color .2s; }
.wahl-knopf:hover { border-color: var(--rand-3); }
.wahl-knopf .wahl-text { flex: 1; min-width: 0; }
.wahl-knopf b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wahl-knopf small { display: block; color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wahl-liste { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); max-height: 380px; overflow: hidden;
  display: flex; flex-direction: column; border-radius: 12px; background: var(--flaeche-2); border: 1px solid var(--rand-2);
  box-shadow: var(--schatten-pop); }
.wahl-suche { padding: 8px 12px; border-bottom: 1px solid var(--linie); }
.wahl-suche input { width: 100%; height: 34px; border: 0; background: transparent; outline: none; }
.wahl-eintraege { overflow-y: auto; padding: 6px; }
.wahl-eintrag { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.wahl-eintrag:hover, .wahl-eintrag.fokus { background: var(--aktiv); }
.wahl-eintrag.an b::after { content: " ✓"; color: var(--ink-3); }
.wahl-eintrag b { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wahl-eintrag code { grid-column: 1; font-family: var(--mono); font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wahl-eintrag .wahl-meta { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 11.5px; color: var(--ink-3); }
.wahl-marken { display: flex; gap: 6px; }
.marke-klein { font-size: 10.5px; color: var(--ink-2); }
.wahl-leer { padding: 18px; color: var(--ink-3); text-align: center; font-size: 13px; }

.wirksam { display: flex; flex-wrap: wrap; gap: 6px; }
.wirksam .chip { border: 1px solid var(--rand-2); background: var(--feld); border-radius: 7px; padding: 3px 9px; color: var(--ink-3); }
.wirksam .chip b { font-weight: 500; color: var(--ink); }
.wirksam .chip.eigen { border-color: var(--s-ein); }
.unterabschnitt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  margin: 26px 0 14px; display: flex; align-items: center; gap: 12px; }
.unterabschnitt::after { content: ""; flex: 1; height: 1px; background: var(--linie); }

.ergebnis { margin-top: 16px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px;
  border-radius: 10px; background: var(--hover); border: 1px solid var(--rand); }
.ergebnis.ok { background: var(--gut-flaeche); border-color: transparent; }
.ergebnis.nein { background: var(--kritisch-flaeche); border-color: transparent; }
.ergebnis.ok > div > b { color: var(--gut-text); font-weight: 500; }
.ergebnis.nein > div > b { color: var(--kritisch-text); font-weight: 500; }
.ergebnis .ic { display: none; }
.ergebnis dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 6px 0 0; font-size: 12.5px; }
.ergebnis dt { color: var(--ink-3); } .ergebnis dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ── Dialoge, Meldungen ────────────────────────────────────────── */
.schleier { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px;
  background: rgba(0,0,0,.7); animation: blende .18s var(--ease); }
html.hell .schleier { background: rgba(24,24,27,.35); }
@keyframes blende { from { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 16px; padding: 26px 28px 24px;
  background: var(--flaeche-2); border: 1px solid var(--rand-2); box-shadow: var(--schatten-pop); animation: hoch .25s var(--ease); }
@keyframes hoch { from { opacity: 0; transform: translateY(8px); } }
.modal h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; }
.modal p.lead { color: var(--ink-3); margin: 0 0 20px; font-size: 13.5px; }
.modal .aktionen { justify-content: flex-end; margin-top: 26px; }
.wahlkarten { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wahlkarte { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--rand-2); background: var(--feld); transition: border-color .2s, background .2s; position: relative; }
.wahlkarte input { position: absolute; opacity: 0; }
.wahlkarte b { font-weight: 500; font-size: 13.5px; }
.wahlkarte small { color: var(--ink-3); font-size: 12px; }
.wahlkarte:hover { border-color: var(--rand-3); }
.wahlkarte:has(input:checked) { border-color: var(--s-ein); background: var(--akzent-flaeche); }
.wahlkarte:has(input:focus-visible) { outline: 1.5px solid var(--stark); outline-offset: 2px; }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 1100; transform: translate(-50%, 16px); opacity: 0;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 10px; font-size: 13px;
  background: var(--flaeche-2); border: 1px solid var(--rand-2); box-shadow: var(--schatten-pop);
  transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none; max-width: calc(100vw - 40px); }
.toast.zeigen { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: var(--gut); }
.toast.fehler .ic { color: var(--kritisch); }

.leer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 0; color: var(--ink-3); }
.leer .ic { display: none; }
.leer b { color: var(--ink-2); font-weight: 500; font-size: 13.5px; }
.leer p { margin: 0; max-width: 52ch; font-size: 13px; }

.hinweisband { display: flex; gap: 14px; align-items: center; padding: 13px 16px 13px 18px; border-radius: 12px;
  border: 1px solid var(--warn-flaeche); background: var(--warn-flaeche); font-size: 13px; color: var(--ink-2); }
.hinweisband .ic { display: none; }
.hinweisband b { color: var(--ink); font-weight: 500; }
.hinweisband .knopf { margin-left: auto; }

/* ── Anmeldung (wie bei Kepler: Bild links, Formular rechts) ───── */
.anmeldung { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); min-height: 100vh; background: #000; }
html.hell .anmeldung { background: #fff; }
.anmeldung-bild { position: relative; overflow: hidden; background: #050505; isolation: isolate; }
.anmeldung-video, .anmeldung-poster { position: absolute; left: 0; right: 0; top: -16.5%; height: 133%; width: 100%;
  object-fit: cover; display: block; z-index: 0; }
.anmeldung-video { animation: videoAuf .9s var(--ease) both; }
@keyframes videoAuf { from { opacity: 0; } }
.anmeldung-bild::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.08) 30%, rgba(0,0,0,.25) 58%, rgba(0,0,0,.85) 100%); }
.anmeldung-marke { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none;
  animation: markeAuf 1.1s var(--swift) .15s both; }
@keyframes markeAuf { from { opacity: 0; transform: translateY(8px); } }
.anmeldung-marke .marke-gross { width: min(340px, 52%); height: auto; aspect-ratio: 928 / 192; color: #fff; fill: currentColor;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,.45)); }
.anmeldung-inhalt { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(30px, 3.6vw, 52px); }
.anmeldung-claim { margin: 0; font-size: clamp(21px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.03em; line-height: 1.26;
  color: rgba(255,255,255,.94); }
.anmeldung-note { margin: 14px 0 0; font-size: 11.5px; font-weight: 500; letter-spacing: .11em; text-transform: uppercase;
  color: rgba(255,255,255,.45); }
.anmeldung-seite { display: grid; place-items: center; padding: 48px 24px; }
.anmeldung-form { width: min(384px, 100%); animation: rein .4s var(--swift) both; }
.anmeldung-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.anmeldung-kopf .marke-logo { width: 126px; height: 26px; }
.anmeldung-kopf .marke-name { font-size: 16px; line-height: 20px; }
.anmeldung h1 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 6px; }
.anmeldung-sub { font-size: 13px; color: var(--ink-3); line-height: 1.55; margin: 0 0 26px; }
.anmeldung .feld { margin-bottom: 20px; gap: 2px; }
.anmeldung .feld > span { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }
.anmeldung .feld input { height: 38px; padding: 0; border: 0; border-bottom: 1px solid var(--rand-2); border-radius: 0;
  background: transparent; font-size: 15px; box-shadow: none; }
.anmeldung .feld input:hover { border-bottom-color: var(--rand-3); }
.anmeldung .feld input:focus { border-bottom-color: var(--stark); box-shadow: none; }
.anmeldung-fehler { margin: 0 0 18px; padding: 1px 0 1px 11px; border-left: 2px solid #e0574f; font-size: 12.5px; color: var(--ink-2); }
.anmeldung-knopf { width: 100%; height: 46px; margin-top: 8px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--stark); color: var(--auf-stark); font-size: 14px; font-weight: 500; letter-spacing: .01em; transition: opacity .2s; }
.anmeldung-knopf:hover:not(:disabled) { opacity: .88; }
.anmeldung-knopf:disabled { opacity: .6; cursor: default; }
.anmeldung-fuss { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--linie); font-size: 11.5px; color: var(--ink-3); }

/* ── Reiter (Unternehmen, Projekte, Merge-Requests) ────────────── */
.reiter { display: flex; gap: 2px; border-bottom: 1px solid var(--rand); margin: -6px 0 22px; overflow-x: auto; scrollbar-width: none; }
.reiter::-webkit-scrollbar { display: none; }
.reiter a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: color .15s; }
.reiter a .ic { width: 15px; height: 15px; }
.reiter a:hover { color: var(--ink); }
.reiter a.an { color: var(--ink); }
.reiter a.an::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.reiter .zahl-chip { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--aktiv); color: var(--ink-2);
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }

/* ── Etiketten (Pastell mit dunkler Schrift) und Personen ──────── */
.abz { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px;
  font-weight: 600; letter-spacing: .005em; background: var(--abz-grau); color: var(--abz-grau-text); white-space: nowrap; vertical-align: 1px; }
.abz .ic { width: 12px; height: 12px; stroke-width: 2; }
.abz.blau { background: #a9c9ff; color: #0b2447; }
.abz.gruen { background: #d4f08f; color: #263300; }
.abz.rot { background: #ffb8b4; color: #4d0f0c; }
.abz.gelb { background: #f6df8a; color: #3d2e00; }
.abz.violett { background: #cfc0ff; color: #24165e; }
.abz.rosa { background: #f6b8d4; color: #4b1030; }
.abz.orange { background: #ffc8a1; color: #4a2205; }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-size: 10px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.avatar.gross { width: 30px; height: 30px; font-size: 12px; }
.avatar .ic { width: 13px; height: 13px; color: #fff; }
.wer { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.wer b { font-weight: 500; }
.sha { font-family: var(--mono); font-size: 12px; color: var(--ink-2); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--rand-2);
  background: var(--feld); cursor: pointer; white-space: nowrap; }
.sha:hover { color: var(--ink); border-color: var(--rand-3); }

/* ── Rastergit: Kopf, Werkzeugleiste, Dateien ──────────────────── */
.rg-marke { display: inline-flex; align-items: center; gap: 10px; }
.rg-marke .ic { width: 26px; height: 26px; color: var(--ink); }
.rg-leiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rg-leiste .rechts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.rg-pfad { display: flex; align-items: center; gap: 4px; font-size: 14px; min-width: 0; flex-wrap: wrap; }
.rg-pfad a { color: var(--s-ein); font-weight: 500; }
.rg-pfad a:hover { text-decoration: underline; }
.rg-pfad .trenner { color: var(--ink-3); margin: 0 2px; }
.rg-pfad b { font-weight: 600; }
.wahlknopf { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; border-radius: 8px;
  border: 1px solid var(--rand-2); background: var(--knopf); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; max-width: 280px; }
.wahlknopf:hover { border-color: var(--rand-3); }
.wahlknopf .ic { width: 15px; height: 15px; color: var(--ink-3); }
.wahlknopf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menue { position: absolute; z-index: 70; min-width: 280px; max-width: 360px; max-height: 420px; display: flex; flex-direction: column;
  border-radius: 12px; background: var(--flaeche-2); border: 1px solid var(--rand-2); box-shadow: var(--schatten-pop); overflow: hidden; }
.menue-kopf { padding: 10px 12px 8px; border-bottom: 1px solid var(--linie); font-size: 12px; color: var(--ink-3); font-weight: 600; }
.menue-suche { padding: 8px 10px; border-bottom: 1px solid var(--linie); }
.menue-suche input { width: 100%; height: 32px; border-radius: 7px; border: 1px solid var(--rand-2); background: var(--feld); color: var(--ink); padding: 0 10px; outline: none; }
.menue-liste { overflow-y: auto; padding: 6px; }
.menue-gruppe { font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 8px 8px 4px; letter-spacing: .04em; text-transform: uppercase; }
.menue-eintrag { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--ink); }
.menue-eintrag:hover, .menue-eintrag.fokus { background: var(--aktiv); }
.menue-eintrag .ic { width: 14px; height: 14px; color: var(--ink-3); }
.menue-eintrag .haken { margin-left: auto; color: var(--ink-2); }
.menue-eintrag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rg-commitzeile { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--karte-rand); border-bottom: 0;
  border-radius: 12px 12px 0 0; background: var(--flaeche); font-size: 13px; min-width: 0; }
.rg-commitzeile .nachricht { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.rg-commitzeile .nachricht a:hover { color: var(--ink); text-decoration: underline; }
.rg-commitzeile .meta { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.rg-dateien { border: 1px solid var(--karte-rand); border-radius: 0 0 12px 12px; overflow: hidden; background: var(--flaeche); margin-bottom: 16px; }
.rg-dateien.allein { border-radius: 12px; }
.rg-commitzeile + .rg-dateien { border-top-color: var(--linie); }
.rg-commitzeile + .code-karte { border-top-color: var(--linie); }
.rg-datei { display: grid; grid-template-columns: 22px minmax(120px, 1fr) minmax(0, 1.5fr) 72px 112px; gap: 12px; align-items: center; padding: 9px 16px;
  border-top: 1px solid var(--linie); font-size: 13px; }
.rg-datei:first-child { border-top: 0; }
.rg-datei:hover { background: var(--hover); }
.rg-datei .ic { width: 16px; height: 16px; color: var(--ink-3); }
.ft { width: 16px; height: 16px; flex: none; display: block; }
.code-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.code-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-datei .ic.ordner { color: var(--s-ein); }
.rg-datei a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-datei a:hover { color: var(--s-ein); text-decoration: underline; }
.rg-datei small { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.rg-datei-commit { min-width: 0; overflow: hidden; }
.rg-datei-commit a { display: block; color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-datei-commit a:hover { color: var(--ink); }
.rg-datei-groesse, .rg-datei-zeit { text-align: right; white-space: nowrap; }
.rg-datei-zeit { animation: rein .3s var(--ease) both; }
.rg-datei-zeit:empty { animation: none; }

/* README und Markdown */
.md-karte { border: 1px solid var(--karte-rand); border-radius: 12px; background: var(--flaeche); margin-bottom: 16px; overflow: hidden; }
.md-karte-kopf { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--rand); font-size: 13px; font-weight: 600; }
.md-karte-kopf .ic { width: 15px; height: 15px; color: var(--ink-3); }
.md-karte-kopf .rechts { margin-left: auto; display: flex; gap: 6px; }
.markdown { padding: 22px 28px 26px; font-size: 14px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.markdown > :first-child { margin-top: 0; }
.markdown > :last-child { margin-bottom: 0; }
.markdown .md-h { font-weight: 600; letter-spacing: -.015em; line-height: 1.3; margin: 1.6em 0 .6em; }
.markdown h1.md-h { font-size: 24px; padding-bottom: .35em; border-bottom: 1px solid var(--linie); }
.markdown h2.md-h { font-size: 19px; padding-bottom: .3em; border-bottom: 1px solid var(--linie); }
.markdown h3.md-h { font-size: 16px; }
.markdown h4.md-h, .markdown h5.md-h, .markdown h6.md-h { font-size: 14px; }
.markdown p, .markdown ul, .markdown ol, .markdown blockquote, .markdown .md-pre, .markdown .md-tabelle { margin: 0 0 1em; }
.markdown a { color: var(--s-ein); }
.markdown a:hover { text-decoration: underline; }
.markdown .md-liste { padding-left: 1.6em; }
.markdown li + li { margin-top: .25em; }
.markdown .md-aufgabe { list-style: none; margin-left: -1.3em; }
.markdown .md-aufgabe input { margin-right: .5em; vertical-align: -1px; }
.markdown blockquote { padding: 0 1em; border-left: 3px solid var(--rand-3); color: var(--ink-2); }
.markdown .md-code { font-family: var(--mono); font-size: .86em; padding: .15em .4em; border-radius: 5px; background: var(--aktiv); }
.markdown .md-pre { padding: 14px 16px; border-radius: 10px; background: var(--code-bg); border: 1px solid var(--rand); overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55; }
.markdown .md-pre code { white-space: pre; }
.markdown hr { border: 0; border-top: 1px solid var(--rand); margin: 1.6em 0; }
.markdown img { max-width: 100%; border-radius: 6px; }
.markdown .md-tabelle { overflow-x: auto; }
.markdown table { border-collapse: collapse; font-size: 13px; }
.markdown th, .markdown td { border: 1px solid var(--rand); padding: 6px 12px; }
.markdown th { background: var(--hover); font-weight: 600; }
.markdown.kompakt { padding: 0; font-size: 13.5px; }

/* Code mit Zeilennummern */
.code-karte { border: 1px solid var(--karte-rand); border-radius: 12px; background: var(--flaeche); overflow: hidden; margin-bottom: 16px; }
.code-kopf { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 16px; border-bottom: 1px solid var(--rand); font-size: 12.5px;
  color: var(--ink-3); flex-wrap: wrap; }
.code-kopf .rechts { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.code-kopf .trenn { width: 1px; height: 14px; background: var(--rand-2); }
.code-huelle { overflow: auto; max-height: none; background: var(--code-bg); }
.code { border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; line-height: 20px; width: 100%; }
.code td { padding: 0; vertical-align: top; }
.code .nr { width: 1%; min-width: 52px; padding: 0 14px 0 16px; text-align: right; color: var(--ink-3); opacity: .7; user-select: none;
  cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
.code .nr:hover { opacity: 1; color: var(--ink); }
.code .zeile { padding: 0 16px 0 8px; white-space: pre; tab-size: 4; }
.code tr.markiert td { background: color-mix(in srgb, var(--warn) 14%, transparent); }
.code tr:first-child td { padding-top: 10px; }
.code tr:last-child td { padding-bottom: 12px; }
.bild-vorschau { padding: 24px; display: grid; place-items: center; background: var(--code-bg); }
.bild-vorschau img, .bild-vorschau video { max-width: 100%; max-height: 70vh; border-radius: 6px; }

/* Hervorhebung – leise, gut lesbar in beiden Themen */
.hl-k { color: var(--hl-k); }
.hl-s { color: var(--hl-s); }
.hl-c { color: var(--hl-c); font-style: italic; }
.hl-n { color: var(--hl-n); }
.hl-f { color: var(--hl-f); }
.hl-t { color: var(--hl-t); }
.hl-p { color: var(--hl-p); }
.hl-v { color: var(--hl-t); }

/* ── Commits ───────────────────────────────────────────────────── */
.tag-gruppe { margin-bottom: 18px; }
.tag-gruppe-kopf { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin: 0 0 8px 2px; }
.tag-gruppe-kopf .ic { width: 14px; height: 14px; }
.liste-karte { border: 1px solid var(--karte-rand); border-radius: 12px; background: var(--flaeche); overflow: hidden; }
.liste-zeile { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--linie); min-width: 0; }
.liste-zeile:first-child { border-top: 0; }
.liste-zeile:hover { background: var(--hover); }
.liste-zeile .haupt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.liste-zeile .haupt-text > a, .liste-zeile .haupt-text > b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-zeile .haupt-text > a:hover { color: var(--s-ein); }
.liste-zeile .unter-text { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; min-width: 0; }
.liste-zeile .seite { display: flex; align-items: center; gap: 8px; flex: none; }
.status-ic { width: 18px; height: 18px; flex: none; }
.status-ic.offen { color: var(--gut); }
.status-ic.gemergt { color: var(--s-suche); }
.status-ic.geschlossen { color: var(--kritisch-text); }
.status-ic.entwurf { color: var(--ink-3); }

.commit-kopf { padding: 20px 22px; border: 1px solid var(--karte-rand); border-radius: 12px; background: var(--flaeche); margin-bottom: 16px; }
.commit-kopf h2 { font-size: 19px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.015em; line-height: 1.35; }
.commit-kopf pre { margin: 6px 0 14px; white-space: pre-wrap; font-family: var(--font); font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.commit-meta { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3);
  padding-top: 14px; border-top: 1px solid var(--linie); }
.commit-meta .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.diff-summe { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); margin: 0 0 12px 2px; }
.diff-summe .plus { color: var(--gut-text); font-weight: 600; }
.diff-summe .minus { color: var(--kritisch-text); font-weight: 600; }

/* ── Diffs ─────────────────────────────────────────────────────── */
.diff-datei { border: 1px solid var(--karte-rand); border-radius: 12px; background: var(--flaeche); margin-bottom: 14px; overflow: hidden; }
.diff-kopf { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--rand); cursor: pointer;
  position: sticky; top: 0; z-index: 2; background: var(--flaeche); font-size: 13px; user-select: none; }
.diff-datei.zu .diff-kopf { border-bottom: 0; }
.diff-datei.zu .diff-koerper { display: none; }
.diff-klapp { border: 0; background: none; color: var(--ink-3); padding: 2px; cursor: pointer; display: inline-flex; }
.diff-klapp .ic { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .15s; }
.diff-datei.zu .diff-klapp .ic { transform: none; }
.diff-status { width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; flex: none; }
.diff-status.s-neu { background: var(--gut-flaeche); color: var(--gut-text); }
.diff-status.s-geloescht { background: var(--kritisch-flaeche); color: var(--kritisch-text); }
.diff-status.s-geaendert { background: var(--warn-flaeche); color: var(--warn-text); }
.diff-status.s-umbenannt, .diff-status.s-kopiert { background: var(--akzent-flaeche); color: var(--akzent-text); }
.diff-pfad { font-family: var(--mono); font-size: 12.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diff-zahlen { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.diff-zahlen .plus { color: var(--gut-text); font-weight: 600; }
.diff-zahlen .minus { color: var(--kritisch-text); font-weight: 600; }
.diff-balken { display: inline-flex; gap: 1px; }
.diff-balken i { width: 7px; height: 7px; border-radius: 1.5px; background: var(--rand-2); display: inline-block; }
.diff-balken i.p { background: var(--gut); }
.diff-balken i.m { background: var(--kritisch); }
.diff-koerper { overflow-x: auto; background: var(--code-bg); }
.diff-hinweis { padding: 16px; font-size: 13px; color: var(--ink-3); }
.diff-tabelle { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 12.5px; line-height: 20px; }
.diff-tabelle td { padding: 0; vertical-align: top; }
.diff-abschnitt td { padding: 4px 16px; color: var(--ink-3); background: var(--akzent-flaeche); font-size: 12px; }
.z-nr { width: 1%; min-width: 44px; padding: 0 10px !important; text-align: right; color: var(--ink-3); opacity: .65; user-select: none;
  white-space: nowrap; font-variant-numeric: tabular-nums; }
.z-code { white-space: pre; padding: 0 16px 0 22px !important; position: relative; }
.z-code::before { content: attr(data-zeichen); position: absolute; left: 8px; color: var(--ink-3); }
.z-plus td { background: var(--diff-plus); }
.z-plus .z-nr { background: var(--diff-plus-nr); }
.z-minus td { background: var(--diff-minus); }
.z-minus .z-nr { background: var(--diff-minus-nr); }
.z-plus .z-code::before { color: var(--gut-text); }
.z-minus .z-code::before { color: var(--kritisch-text); }

/* ── Branches: vor/hinter ──────────────────────────────────────── */
.vorhinter { display: grid; grid-template-columns: 1fr 1fr; width: 150px; gap: 0; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.vorhinter span:first-child { text-align: right; padding-right: 6px; border-right: 1px solid var(--rand-2); }
.vorhinter span:last-child { padding-left: 6px; }
.vorhinter-spur { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; height: 4px; margin-top: 4px; }
.vorhinter-spur i { display: block; height: 4px; }
.vorhinter-spur i:first-child { justify-self: end; background: var(--rand-3); border-radius: 2px 0 0 2px; }
.vorhinter-spur i:last-child { background: var(--s-ein); border-radius: 0 2px 2px 0; }

/* ── Merge-Request ─────────────────────────────────────────────── */
.mr-kopf { margin-bottom: 18px; }
.mr-kopf .zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.status-pille { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #fff; }
.status-pille .ic { width: 15px; height: 15px; }
.status-pille.offen { background: #1f883d; }
.status-pille.gemergt { background: #8250df; }
.status-pille.geschlossen { background: #cf222e; }
.status-pille.entwurf { background: #59636e; }
.branch-chip { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--akzent-flaeche); color: var(--akzent-text); }
.zeitleiste { display: flex; flex-direction: column; gap: 14px; }
.beitrag { border: 1px solid var(--karte-rand); border-radius: 12px; background: var(--flaeche); overflow: hidden; }
.beitrag-kopf { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--rand);
  font-size: 13px; color: var(--ink-3); background: var(--hover); }
.beitrag-kopf b { color: var(--ink); font-weight: 600; }
.beitrag .markdown { padding: 14px 16px; }
.merge-box { display: flex; flex-direction: column; gap: 0; }
.pruef-zeile { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--linie); font-size: 13px; }
.pruef-zeile:first-child { padding-top: 0; }
.pruef-zeile .ic { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.pruef-zeile.gut .ic { color: var(--gut); }
.pruef-zeile.schlecht .ic { color: var(--kritisch-text); }
.pruef-zeile.info .ic { color: var(--ink-3); }
.pruef-zeile small { display: block; color: var(--ink-3); font-size: 12px; }

/* ── Releases ──────────────────────────────────────────────────── */
.release { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--linie); }
.release:first-child { border-top: 0; padding-top: 4px; }
.release-seite { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.release-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink); }
.release-tag .ic { width: 15px; height: 15px; color: var(--ink-3); }
.release h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release-assets { margin-top: 16px; border: 1px solid var(--rand); border-radius: 10px; overflow: hidden; }
.release-asset { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--linie); font-size: 13px; }
.release-asset:first-child { border-top: 0; }
.release-asset .ic { width: 15px; height: 15px; color: var(--ink-3); }
.release-asset a:hover { color: var(--s-ein); text-decoration: underline; }
.release-asset small { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ausroll-stand { margin-top: 16px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--rand); display: flex; flex-direction: column; gap: 10px; }
.ausroll-stand .kopfzeile { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.ausroll-stand .kopfzeile .rechts { margin-left: auto; }
.fortschritt { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--rand-2); gap: 2px; }
.fortschritt i { display: block; height: 100%; }
.fortschritt .f-fertig { background: var(--gut); }
.fortschritt .f-laeuft { background: var(--s-ein); }
.fortschritt .f-fehler { background: var(--kritisch); }
.version-pille { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 6px;
  border: 1px solid var(--rand-2); color: var(--ink); white-space: nowrap; }
.version-pille.neueste { border-color: transparent; background: var(--gut-flaeche); color: var(--gut-text); }
.version-pille.alt { color: var(--warn-text); border-color: transparent; background: var(--warn-flaeche); }
.version-pille.leer { color: var(--ink-3); }

/* ── Auslieferung: Verteilung, Phasen ──────────────────────────── */
.verteilung { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; margin: 4px 0 14px; }
.verteilung i { display: block; height: 100%; min-width: 4px; }
.phase { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.phase .ic { width: 14px; height: 14px; }
.phase.ok { color: var(--gut-text); }
.phase.laeuft { color: var(--akzent-text); }
.phase.fehler { color: var(--kritisch-text); }
.phase.wartet { color: var(--ink-3); }
.phase.laeuft .ic { animation: drehen 1.4s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.zeitstrahl { display: flex; flex-direction: column; }
.zeitstrahl-eintrag { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; position: relative; font-size: 13px; }
.zeitstrahl-eintrag::before { content: ""; position: absolute; left: 8.5px; top: 26px; bottom: -9px; width: 1px; background: var(--rand); }
.zeitstrahl-eintrag:last-child::before { display: none; }
.zeitstrahl-eintrag .punkt-ic { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--flaeche); border: 1px solid var(--rand-2); z-index: 1; }
.zeitstrahl-eintrag .punkt-ic .ic { width: 11px; height: 11px; }
.zeitstrahl-eintrag small { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.zeitstrahl-eintrag .text { min-width: 0; }
.zeitstrahl-eintrag .text span { color: var(--ink-3); }

/* ── Agenten: Schritte mit Befehlen ────────────────────────────── */
.befehl { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-radius: 10px; background: var(--code-bg);
  border: 1px solid var(--rand); font-family: var(--mono); font-size: 12px; color: var(--ink); margin: 8px 0 14px; }
.befehl code { flex: 1; white-space: pre-wrap; word-break: break-all; line-height: 1.55; }
.schritt { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.schritt-nr { width: 24px; height: 24px; border-radius: 50%; background: var(--aktiv); color: var(--ink); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; }
.schritt b { font-weight: 600; font-size: 13.5px; }
.schritt p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.rechte-liste { display: grid; gap: 8px; }
.recht-wahl { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rand-2);
  cursor: pointer; background: var(--feld); }
.recht-wahl:has(input:checked) { border-color: var(--s-ein); background: var(--akzent-flaeche); }
.recht-wahl input { margin: 2px 0 0; accent-color: var(--s-ein); }
.recht-wahl b { font-weight: 600; font-size: 13px; font-family: var(--mono); }
.recht-wahl small { display: block; color: var(--ink-3); font-size: 12px; }
.leer-gross { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 46px 20px; color: var(--ink-3); }
.leer-gross .ic { width: 34px; height: 34px; color: var(--ink-3); }
.leer-gross b { color: var(--ink); font-size: 16px; font-weight: 600; }
.leer-gross p { margin: 0; max-width: 56ch; font-size: 13.5px; }
.leer-gross .befehl { text-align: left; width: min(620px, 100%); }

/* ── Schmal ────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .live-zeile { grid-template-columns: 64px 112px minmax(0, 1fr) 132px 96px; }
  .live-zeile .live-modell, .live-zeile .live-dauer { display: none; }
}
@media (max-width: 1180px) {
  .b-8, .b-7, .b-6, .b-5, .b-4, .b-3, .b-9 { grid-column: span 12; }
}
@media (max-width: 1024px) {
  /* Leiste klappt aus: oben bleibt ein schmaler Streifen mit Menü und Marke */
  .seitenleiste { transform: translateX(-100%); transition: transform .3s var(--swift), box-shadow .3s; }
  body.navi-offen .seitenleiste { transform: none; box-shadow: 0 0 80px rgba(0,0,0,.55); }
  .navi-schleier { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); }
  html.hell .navi-schleier { background: rgba(24,24,27,.25); }
  body.navi-offen .navi-schleier { display: block; }
  .bereich { margin-left: 0; padding: 0; }
  .kopfleiste .nur-schmal { display: flex; }
  .kopfleiste { padding: 0 10px; border-bottom: 1px solid var(--panel-rand); }
  .kopfleiste .brotkrumen { display: none; }
  .suche-knopf { width: 34px; padding: 0; justify-content: center; }
  .suche-knopf span, .suche-knopf kbd { display: none; }
  .panel { border-radius: 0; border: 0; min-height: calc(100vh - 54px); }
  .haupt { padding: 28px 24px 80px; }
}
@media (max-width: 760px) {
  .rg-datei { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .rg-datei-commit, .rg-datei-groesse { display: none; }
  .release { grid-template-columns: 1fr; gap: 10px; }
  .rg-commitzeile { flex-wrap: wrap; }
  .rg-commitzeile .meta { width: 100%; }
  .markdown { padding: 18px 16px 20px; }
  .vorhinter { display: none; }
  .haupt { padding: 22px 14px 60px; }
  .titel { font-size: 22px; }
  .kpi { flex-basis: 140px; padding: 14px 16px; }
  .kpi .kpi-kurve { display: none; }
  .raster { gap: 12px; }
  .raster, .kpis, .hinweisband, .filterzeile, .seiten-text { margin-bottom: 12px; }
  .abschnitt { padding: 16px 16px 18px; border-radius: 12px; }
  .abschnitt.nur-tabelle { padding: 4px 16px 6px; }
  .live-zeile { grid-template-columns: 56px minmax(0, 1fr) 84px; }
  .live-zeile .live-wer, .live-zeile .live-tokens { display: none; }
  .live-kopf { display: none; }
  .wahlkarten { grid-template-columns: 1fr; }
  .hinweisband { flex-wrap: wrap; }
  .anmeldung { grid-template-columns: 1fr; }
  .anmeldung-bild { display: none; }
  .suchfeld .eingabe, .filterzeile .eingabe { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Bausteine: ruhig, einfarbig, mit feinen Kanten ───────────────
   Farbe tragen nur Daten (Diagramme) und Zustände (grün/gelb/rot).
   Ausnahme Rastergit: Projekte haben eine feste Farbe („bunt").       */

/* Icon in einer Kachel mit feiner Kante */
.ikachel { width: 32px; height: 32px; border-radius: 9px; flex: none; display: inline-grid; place-items: center;
  color: var(--ink-2); background: var(--knopf); box-shadow: inset 0 0 0 1px var(--rand-2); }
.ikachel .ic { width: 16px; height: 16px; color: inherit; }
.ikachel.klein { width: 28px; height: 28px; border-radius: 8px; }
.ikachel.klein .ic { width: 14px; height: 14px; }
.ikachel.gross { width: 42px; height: 42px; border-radius: 12px; }
.ikachel.gross .ic { width: 19px; height: 19px; }

/* Initialen */
.kachel { width: 36px; height: 36px; border-radius: 10px; flex: none; display: inline-grid; place-items: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; line-height: 1; user-select: none;
  color: var(--ink-2); background: linear-gradient(180deg, var(--knopf-hover), var(--knopf)); box-shadow: inset 0 0 0 1px var(--rand-2); }
.kachel.klein { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.kachel.mini { width: 22px; height: 22px; border-radius: 7px; font-size: 9.5px; }
.kachel.gross { width: 48px; height: 48px; border-radius: 13px; font-size: 16px; }
.kachel.rund { border-radius: 50%; }
.kachel .ic { width: 46%; height: 46%; color: inherit; }
.kachel.bunt { --f: var(--kat-3); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  background: linear-gradient(160deg, color-mix(in srgb, var(--f) 88%, #fff) 0%, color-mix(in srgb, var(--f) 78%, #000) 100%); }

/* Zustand: Punkt und Pille */
.status-punkt { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; background: var(--rand-3); }
.status-punkt.gut { background: var(--gut); box-shadow: 0 0 0 3px var(--gut-flaeche); }
.status-punkt.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-flaeche); }
.status-punkt.fehler { background: var(--kritisch); box-shadow: 0 0 0 3px var(--kritisch-flaeche); }
.status-pille { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px; flex: none;
  font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--knopf); border: 1px solid var(--rand); white-space: nowrap; }
.status-pille .ic { width: 13px; height: 13px; }

/* Systemstatus in der Übersicht */
.statuszeile { display: flex; flex-wrap: wrap; overflow: hidden; margin-bottom: 16px; background: var(--flaeche);
  border: 1px solid var(--karte-rand); border-radius: 14px; box-shadow: var(--schatten); }
.status-teil { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 14px 18px;
  box-shadow: -1px 0 0 var(--linie), 0 -1px 0 var(--linie); color: var(--ink); transition: background .2s var(--ease); }
.status-teil.breit { flex: 1.7 1 280px; }
a.status-teil:hover { background: var(--hover); }
.status-teil small { font-size: 12px; color: var(--ink-3); }
.status-teil b { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-teil b .ic { width: 14px; height: 14px; color: var(--ink-3); }

/* Unternehmen und Projekte als Karten */
.karten-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.objekt-karte { display: flex; flex-direction: column; min-width: 0; padding: 18px 18px 16px; border-radius: 14px; cursor: pointer;
  background: var(--flaeche); border: 1px solid var(--karte-rand); box-shadow: var(--schatten); color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease); }
.objekt-karte:hover { border-color: var(--rand-3); }
.objekt-karte:focus-visible { outline: 2px solid var(--fokus-ring); outline-offset: 2px; }
.objekt-kopf { display: flex; align-items: center; gap: 12px; min-width: 0; }
.objekt-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.objekt-name b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.objekt-name small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.objekt-beschreibung { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.name-marke { display: inline-flex; vertical-align: -2px; margin-left: 7px; color: var(--ink-3); }
.name-marke .ic { width: 14px; height: 14px; }
.objekt-wert { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 18px; }
.objekt-wert small { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.objekt-wert b { font-size: 22px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.objekt-wert .kpi-kurve { width: 120px; height: 36px; margin: 0; }
.objekt-fakten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--linie); }
.objekt-wert, .objekt-commit { margin-bottom: 16px; }
.objekt-fakten small { display: block; font-size: 11.5px; color: var(--ink-3); }
.objekt-fakten b { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.objekt-fuss { display: flex; align-items: center; gap: 12px; margin-top: 14px; min-height: 28px; font-size: 12.5px; }
.objekt-fuss .meter { flex: 1; }
.objekt-fuss .rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; cursor: default; }
.objekt-commit { display: flex; align-items: center; gap: 9px; min-width: 0; margin-top: 14px; padding: 8px 10px; border-radius: 9px;
  background: var(--feld); border: 1px solid var(--rand); font-size: 12.5px; color: var(--ink-2); }
.objekt-commit .nachricht { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.objekt-commit small { flex: none; color: var(--ink-3); font-size: 11.5px; }
.objekt-commit .ic { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
.objekt-neu { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 220px; padding: 20px;
  border-radius: 14px; border: 1px dashed var(--rand-2); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 500;
  text-align: center; background: transparent; cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease); }
.objekt-neu:hover { border-color: var(--rand-3); color: var(--ink); }
.objekt-neu small { color: var(--ink-3); font-weight: 400; max-width: 230px; line-height: 1.45; }

/* Seitenkopf mit Kachel (Unternehmen, Projekt) */
.seitenkopf-bild { display: flex; }
.seitenkopf-bild[hidden] { display: none; }

/* Leere Zustände */
.leer.mit-icon { align-items: center; text-align: center; padding: 26px 0 22px; }
.leer.mit-icon p { max-width: 40ch; }
.leer .ikachel { margin-bottom: 8px; }
.leer .ikachel .ic { display: block; }

/* Rastergit: drei Schritte nebeneinander */
.schritte-quer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.schritte-quer .schritt { margin: 0; min-width: 0; }

/* Suche (⌘K) */
.palette-huelle { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start;
  padding: 12vh 16px 16px; background: rgba(0,0,0,.55); animation: rein .18s var(--ease) both; }
html.hell .palette-huelle { background: rgba(24,24,27,.25); }
.palette { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px;
  background: var(--flaeche-2); border: 1px solid var(--rand-2); box-shadow: var(--schatten-pop); }
.palette-kopf { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--rand); }
.palette-kopf > .ic { width: 17px; height: 17px; color: var(--ink-3); }
.palette-eingabe { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 14.5px; }
.palette-eingabe::placeholder { color: var(--ink-3); }
.palette-liste { flex: 1; overflow-y: auto; padding: 6px; }
.palette-zeile { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; color: var(--ink-2); }
.palette-zeile.an { background: var(--aktiv); color: var(--ink); }
.palette-ic { width: 22px; height: 22px; display: inline-grid; place-items: center; flex: none; color: var(--ink-3); }
.palette-ic .ic { width: 16px; height: 16px; }
.palette-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-unter { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.palette-art { margin-left: auto; padding-left: 12px; flex: none; font-size: 12px; color: var(--ink-3); }
.palette-leer { padding: 22px 12px; text-align: center; color: var(--ink-3); font-size: 13px; }
.palette-fuss { display: flex; gap: 18px; padding: 10px 14px; border-top: 1px solid var(--rand); font-size: 12px; color: var(--ink-3); }
.palette-fuss span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 900px) {
  .schritte-quer { grid-template-columns: 1fr; gap: 14px; }
}

/* ── Karten wie bei Linear ────────────────────────────────────────
   Drei Ebenen im Hintergrund der Karte: oben das Dithering (Kachel
   doppelt so fein gezeichnet wie angezeigt), darunter der Verlauf der
   Fläche (oben 60 px der hellere Bereich, bis 420 px in die Seite
   übergehend; „gruenstich" oben mit einem Hauch Grün – Live, Status,
   Kästchen-Diagramme), ganz unten der Verlauf der Kante – sie liegt im
   transparenten Rahmen.
   Steht am Ende, damit es die Kartenregeln oben ergänzt.             */
.abschnitt, .kpis, .statuszeile, .objekt-karte, .liste-karte, .commit-kopf, .md-karte {
  border-color: transparent; border-radius: 12px;
  background:
    var(--korn) 0 0 / 128px 128px padding-box,
    linear-gradient(180deg, var(--karte-oben) 0, var(--karte-oben) 60px, var(--karte-unten) 420px) padding-box,
    linear-gradient(180deg, var(--kante-oben) 0, var(--kante) 48px) border-box; }
.gruenstich { --karte-oben: var(--karte-gruen); }

/* ── Live: still neu zeichnen ──────────────────────────────────────
   Die neue Fassung entsteht unsichtbar in voller Breite (Diagramme
   messen sich dort), dann wird in einem Zug getauscht – ohne Animation. */
.live-puffer { position: fixed; left: 0; top: 0; visibility: hidden; pointer-events: none; z-index: -1; contain: layout paint; }
.live-tausch, .live-tausch *, .live-tausch *::before, .live-tausch *::after { animation: none !important; transition: none !important; }
.kpi-zahl { font-variant-numeric: tabular-nums; }
.jetzt-zahl { font-variant-numeric: tabular-nums; transition: color .3s var(--ease); }
.jetzt-zahl.an { color: var(--gut-text); }
.last-jetzt { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; justify-content: space-between;
  margin: -6px 0 12px; font-size: 13px; color: var(--ink-2); }
.last-jetzt b { color: var(--ink); font-weight: 600; }

/* ── Zustand (Health) ─────────────────────────────────────────────── */
.zustand-pille { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--rand); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.zustand-pille[hidden] { display: none; }
.zustand-pille:hover { border-color: var(--rand-3); }
.zustand-punkt { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; background: var(--rand-3); }
.zustand-punkt.gut { background: var(--gut); box-shadow: 0 0 0 4px var(--gut-flaeche); }
.zustand-punkt.warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-flaeche); }
.zustand-punkt.fehler { background: var(--kritisch); box-shadow: 0 0 0 4px var(--kritisch-flaeche); }
.zustand-banner { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 16px; border-radius: 12px;
  border: 1px solid var(--karte-rand); background: var(--korn) 0 0 / 128px 128px, var(--flaeche); }
.zustand-banner.gut { border-color: color-mix(in srgb, var(--gut) 30%, var(--karte-rand)); }
.zustand-banner.warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--karte-rand)); }
.zustand-banner.fehler { border-color: color-mix(in srgb, var(--kritisch) 45%, var(--karte-rand)); }
.zustand-banner .zustand-punkt { width: 12px; height: 12px; }
.zustand-banner b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.zustand-banner small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.zustand-banner .zustand-zeit { margin-left: auto; flex: none; }
.zustand-karte { margin-bottom: 16px; }
.zustand-zeile { display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(0, 2fr) auto 72px; gap: 20px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--linie); }
.zustand-zeile:last-child { border-bottom: 0; }
.zustand-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.zustand-name b { display: block; font-size: 13.5px; font-weight: 600; }
.zustand-name small { display: block; font-size: 12px; color: var(--ink-3); }
.zustand-meldung { min-width: 0; font-size: 13px; color: var(--ink-2); }
.zustand-zeile.warn .zustand-meldung > span { color: var(--warn-text); }
.zustand-zeile.fehler .zustand-meldung > span { color: var(--kritisch-text); }
.zustand-werte { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 5px; font-size: 12px; color: var(--ink-2); }
.zustand-werte small { color: var(--ink-3); margin-right: 5px; }
.zustand-tage { display: flex; gap: 2px; align-items: stretch; height: 28px; }
.zustand-tage i { width: 3px; border-radius: 2px; background: var(--rand); cursor: default; }
.zustand-tage i.gut { background: var(--gut); opacity: .85; }
.zustand-tage i.warn { background: var(--warn); }
.zustand-tage i.fehler { background: var(--kritisch); }
.zustand-tage i:hover { opacity: 1; transform: scaleY(1.08); }
.zustand-quote { text-align: right; }
.zustand-quote b { display: block; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.zustand-quote small { font-size: 11px; color: var(--ink-3); }
.vorfall-liste { display: flex; flex-direction: column; }
.vorfall { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--linie); font-size: 13px; }
.vorfall:last-child { border-bottom: 0; }
.vorfall-zeit { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.vorfall-wechsel { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.vorfall small { display: block; margin-top: 2px; }
@media (max-width: 1100px) {
  .zustand-zeile { grid-template-columns: minmax(0, 1fr) 72px; }
  .zustand-meldung { grid-column: 1 / -1; grid-row: 2; }
  .zustand-tage { grid-column: 1 / -1; grid-row: 3; overflow: hidden; }
}

/* ── Tickets: Board, Karten, Ziehen, Ticket-Ansicht ─────────────────
   Spalten sind Karten wie überall; die Ticket-Karten darin eine Stufe
   heller und flach. Beim Ziehen hängt eine Kopie am Zeiger, an der
   Zielstelle öffnet sich ein gestrichelter Platz.                     */
:root { --tk-bg: #0d0e11; --tk-hover: #101115; --tk-rand: #1b1c20; --tk-schatten: inset 0 1px 0 rgba(255,255,255,.025), 0 1px 2px rgba(0,0,0,.35); }
html.hell { --tk-bg: #fff; --tk-hover: #fcfcfd; --tk-rand: #e4e4e7; --tk-schatten: 0 1px 2px rgba(16,24,40,.06); }

.ticket-leiste { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 14px; }
.ticket-leiste .rechts { margin-left: auto; }
.segment .segment-link .ic { width: 14px; height: 14px; margin-right: 6px; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(224px, 1fr); gap: 12px; overflow-x: auto;
  align-items: stretch; padding-bottom: 6px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.board-spalte { display: flex; flex-direction: column; min-width: 0; min-height: max(420px, calc(100vh - 330px));
  border: 1px solid transparent; border-radius: 12px;
  background:
    var(--korn) 0 0 / 128px 128px padding-box,
    linear-gradient(180deg, var(--karte-oben) 0, var(--karte-oben) 60px, var(--karte-unten) 420px) padding-box,
    linear-gradient(180deg, var(--kante-oben) 0, var(--kante) 48px) border-box;
  transition: box-shadow .2s var(--ease); }
.board-spalte.ziel { box-shadow: 0 0 0 1px var(--rand-2); }
.board-kopf { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px 0 14px; font-size: 13px; }
.board-kopf b { font-weight: 600; }
.board-kopf .zahl-chip { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--aktiv); color: var(--ink-2);
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.board-kopf .rechts { margin-left: auto; }
@media (hover: hover) {
  .board-kopf .knopf { opacity: 0; transition: opacity .15s; }
  .board-spalte:hover .board-kopf .knopf, .board-kopf .knopf:focus-visible { opacity: 1; }
}
.board-liste { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 2px 8px 10px; min-height: 80px; }
.board-leer { display: none; }
.board-liste.ist-leer .board-leer { display: flex; align-items: center; justify-content: center; height: 68px; border: 1px dashed var(--rand);
  border-radius: 10px; color: var(--ink-3); font-size: 12px; }
.board-liste:has(.ticket-platz) .board-leer { display: none; }
.board-hinweis { font-size: 12px; color: var(--ink-3); margin: 12px 2px 0; }
@media (hover: none) { .board-hinweis { display: none; } }

.ticket-karte { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 10px; min-width: 0;
  background: var(--tk-bg); border: 1px solid var(--tk-rand); border-radius: 10px; box-shadow: var(--tk-schatten);
  cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: border-color .15s var(--ease), background .15s var(--ease); }
.ticket-karte:hover { border-color: var(--rand-2); background: var(--tk-hover); }
.ticket-karte:focus-visible { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--fokus-ring); }
.ticket-karte[hidden], .ticket-karte.ticket-weg { display: none; }
.ticket-karte.gelandet { animation: tk-gelandet .7s var(--ease); }
@keyframes tk-gelandet { from { border-color: var(--ink-3); } }
.ticket-geist { position: fixed; z-index: 1000; margin: 0; pointer-events: none; cursor: grabbing; will-change: transform;
  border-color: var(--rand-3); box-shadow: var(--schatten-pop); opacity: .97; transform-origin: 50% 50%; }
.ticket-platz { flex: none; border: 1px dashed var(--rand-3); border-radius: 10px; background: var(--hover); }
body.zieht, body.zieht * { cursor: grabbing !important; user-select: none !important; }

.tk-oben { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); min-width: 0; }
.tk-nr { font-variant-numeric: tabular-nums; font-weight: 500; }
.tk-rechts { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.tk-titel { font-size: 13.5px; font-weight: 500; line-height: 1.42; color: var(--ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tk-marken { display: flex; flex-wrap: wrap; gap: 4px; }
.tk-label, .tk-kepler { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px;
  border: 1px solid var(--rand); font-size: 11px; color: var(--ink-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tk-kepler .ic { width: 12px; height: 12px; color: var(--s-suche); flex: none; }
.tk-unten { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); min-height: 22px; }
.tk-zahl { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.tk-zahl .ic { width: 13px; height: 13px; }
.t-art { height: 18px; padding: 0 7px; font-size: 10.5px; }

.tstatus { width: 14px; height: 14px; flex: none; display: inline-block; }
.tstatus-zeichen { fill: none; stroke: var(--panel); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.t-prio { width: 14px; height: 14px; flex: none; }
.t-prio rect { fill: var(--rand-2); }
.t-prio rect.an { fill: var(--ink-2); }
.t-prio .t-prio-feld { fill: var(--kritisch); }
.t-prio .t-prio-zeichen { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }

/* Liste */
.t-zelle { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-zelle .t-art { min-width: 64px; justify-content: center; }
.segment-zahl { margin-left: 7px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.t-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; color: var(--ink-2); }

/* Ein Ticket */
.t-raster { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.t-haupt { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.t-beschreibung .markdown { padding: 0; }
.t-fakten { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 22px; }
.t-fakten small { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 3px; }
.t-fakten span, .t-fakten a { font-size: 13px; overflow-wrap: anywhere; }
.t-fakten .mono { font-size: 12.5px; }
.t-zeitleiste { position: relative; display: flex; flex-direction: column; gap: 12px; }
.t-zeitleiste::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 1px; background: var(--rand); }
.t-zeitleiste .beitrag { position: relative; }
.t-ereignis { position: relative; display: flex; align-items: center; gap: 10px; min-height: 24px; font-size: 12.5px; color: var(--ink-3); }
.t-ereignis b { color: var(--ink-2); font-weight: 500; }
.t-ereignis small { margin-left: auto; white-space: nowrap; padding-left: 12px; }
.t-ereignis-punkt { width: 23px; height: 23px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--panel); border: 1px solid var(--rand); }
.t-ereignis-punkt .ic { width: 12px; height: 12px; color: var(--ink-3); }
.t-ereignis-punkt .tstatus { width: 12px; height: 12px; }
.t-schreiben { margin-top: 16px; padding: 14px 16px; }
.t-schreiben .aktionen { margin-top: 10px; }
.t-seite { position: sticky; top: 16px; display: flex; flex-direction: column; padding: 4px 18px; border: 1px solid transparent; border-radius: 12px;
  background:
    var(--korn) 0 0 / 128px 128px padding-box,
    linear-gradient(180deg, var(--karte-oben) 0, var(--karte-oben) 60px, var(--karte-unten) 420px) padding-box,
    linear-gradient(180deg, var(--kante-oben) 0, var(--kante) 48px) border-box; }
.t-feld { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.t-feld:last-child { border-bottom: 0; }
.t-feld > small { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.t-wahl { display: flex; flex-wrap: wrap; gap: 4px; }
.t-wahl button { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: var(--ink-3); font-size: 12.5px; cursor: pointer; transition: color .15s, background .15s; }
.t-wahl button:hover { color: var(--ink); background: var(--hover); }
.t-wahl button.an { color: var(--ink); background: var(--segment-an); border-color: var(--rand); }
.t-wahl button .abz { pointer-events: none; }
.t-mir { border: 0; background: none; padding: 0; color: var(--ink-2); font-size: 11.5px; font-weight: 500; cursor: pointer; }
.t-mir:hover { color: var(--ink); text-decoration: underline; }
.t-labels { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.t-labels .tk-label { padding-right: 3px; }
.t-labels .tk-label button { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 0 3px; font-size: 14px; line-height: 1; }
.t-labels .tk-label button:hover { color: var(--ink); }
.t-labels .eingabe { height: 30px; font-size: 12.5px; }
.t-feld .eingabe { height: 32px; font-size: 13px; }
.t-mr { display: flex; align-items: center; gap: 6px; }
.t-mr span { color: var(--ink-3); font-weight: 600; }
.t-daten { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.t-datum small { display: block; font-size: 11.5px; color: var(--ink-3); }
.t-datum span { display: block; font-size: 13px; margin-top: 2px; }
.t-datum small.leise { margin-top: 1px; font-size: 11px; }
.t-status-gross { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border: 1px solid var(--rand);
  border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
@media (max-width: 1000px) {
  .t-raster { grid-template-columns: minmax(0, 1fr); }
  .t-seite { position: static; }
}
.schalter .segment-zahl { margin-left: -3px; }

/* ── Pipelines: Status, Liste, Graph, Tests, Log ─────────────────────
   Symbole voll (fertig) oder als Ring (läuft, wartet); Grün, Rot und
   Blau nur für den Zustand. Das Log ist ein ruhiges Terminal mit den
   üblichen ANSI-Farben – je Thema eigene Abstufungen.                */
:root {
  --ci-zeichen: #07110b;
  --log-bg: #050506; --log-text: #c9cacd; --log-nr: #45464c;
  --a-schwarz: #6e7681; --a-rot: #ff7b72; --a-gruen: #7ee787; --a-gelb: #e3b341; --a-blau: #79c0ff; --a-magenta: #d2a8ff; --a-cyan: #76e3ea; --a-weiss: #e6edf3;
  --a-hell-schwarz: #8b949e; --a-hell-rot: #ffa198; --a-hell-gruen: #a5f0b4; --a-hell-gelb: #f2cc60; --a-hell-blau: #a5d6ff; --a-hell-magenta: #e2c5ff; --a-hell-cyan: #b3f0ff; --a-hell-weiss: #ffffff;
}
html.hell {
  --ci-zeichen: #ffffff;
  --log-bg: #fbfbfc; --log-text: #27272a; --log-nr: #a1a1aa;
  --a-schwarz: #24292f; --a-rot: #cf222e; --a-gruen: #116329; --a-gelb: #7d4e00; --a-blau: #0550ae; --a-magenta: #8250df; --a-cyan: #1b7c83; --a-weiss: #6e7781;
  --a-hell-schwarz: #57606a; --a-hell-rot: #a40e26; --a-hell-gruen: #1a7f37; --a-hell-gelb: #633c01; --a-hell-blau: #0969da; --a-hell-magenta: #6639ba; --a-hell-cyan: #3192aa; --a-hell-weiss: #8c959f;
}
.ci-ic { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }
.ci-ic.gross { width: 20px; height: 20px; }
.ci-erfolgreich { color: var(--gut); }
.ci-fehlgeschlagen, .ci-fehler { color: var(--kritisch); }
.ci-laeuft { color: var(--s-ein); }
.ci-wartet, .ci-bereit, .ci-abgebrochen, .ci-uebersprungen { color: var(--ink-3); }
.ci-ic .ci-flaeche, .ci-ic .ci-punkt { fill: currentColor; }
.ci-ic .ci-zeichen { fill: none; stroke: var(--ci-zeichen); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ci-ic .ci-ring { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .25; }
.ci-ic .ci-bogen { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transform-origin: 8px 8px; animation: ci-dreh .9s linear infinite; }
.ci-ic .ci-ring-voll, .ci-ic .ci-ring-wartet { fill: none; stroke: currentColor; stroke-width: 1.5; }
.ci-ic .ci-ring-wartet { stroke-dasharray: 2.4 2; }
.ci-ic .ci-strich { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ci-dreh { to { transform: rotate(360deg); } }

.ci-pille { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border: 1px solid var(--rand); border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--ink); white-space: nowrap; background: var(--flaeche); }
.ci-pille.ci-erfolgreich { border-color: color-mix(in srgb, var(--gut) 35%, var(--rand)); background: var(--gut-flaeche); }
.ci-pille.ci-fehlgeschlagen, .ci-pille.ci-fehler { border-color: color-mix(in srgb, var(--kritisch) 40%, var(--rand)); background: var(--kritisch-flaeche); }
.ci-pille.ci-laeuft { border-color: color-mix(in srgb, var(--s-ein) 40%, var(--rand)); background: var(--akzent-flaeche); }
a.ci-pille:hover { border-color: var(--rand-3); }
.ci-marke { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; }
.ci-marke:hover { background: var(--hover); }

.ci-balken { display: flex; gap: 2px; width: 100%; min-width: 60px; height: 8px; }
.ci-balken.schmal { height: 6px; }
.ci-balken i { display: block; min-width: 3px; border-radius: 3px; }
.ci-balken i.gut { background: var(--gut); }
.ci-balken i.schlecht { background: var(--kritisch); }
.ci-balken i.aus { background: var(--rand-3); }
.ci-dauer { font-variant-numeric: tabular-nums; }
.ci-dauer.laeuft { color: var(--akzent-text); }

/* Liste */
.ci-runner { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.ci-runner i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.ci-runner.an { color: var(--ink-2); }
.ci-runner.an i { background: var(--gut); box-shadow: 0 0 0 3px var(--gut-flaeche); }
.ci-hinweis { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--rand); border-radius: 10px;
  font-size: 13px; color: var(--ink-2); background: var(--flaeche); }
.ci-hinweis .ic { width: 15px; height: 15px; color: var(--ink-3); }
.ci-liste { padding: 0; }
.ci-zeile { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 210px 96px; align-items: center; gap: 16px; padding: 14px 18px;
  border-bottom: 1px solid var(--linie); color: inherit; transition: background .15s; }
.ci-zeile:last-child { border-bottom: 0; }
.ci-zeile:hover { background: var(--hover); }
.ci-zeile-haupt { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ci-zeile-titel { display: flex; gap: 8px; align-items: baseline; min-width: 0; font-size: 13.5px; }
.ci-zeile-titel b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-zeile-unter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: var(--ink-3); }
.ci-ref { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border: 1px solid var(--rand); border-radius: 6px;
  font-family: var(--mono, ui-monospace, monospace); font-size: 11.5px; color: var(--ink-2); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-ref .ic { width: 12px; height: 12px; flex: none; }
.ci-zeile-jobs { display: flex; gap: 3px; }
.ci-zeile-tests { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ci-zeile-tests small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-fehler-text { font-size: 12px; color: var(--kritisch-text); }
.ci-zeile-zeit { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12.5px; color: var(--ink-2); }
.ci-zeile-zeit small { font-size: 11.5px; color: var(--ink-3); }
.ci-leer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; padding: 28px; border: 1px dashed var(--rand-2); border-radius: 14px; }
.ci-leer-text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ci-leer-text b { font-size: 15px; font-weight: 600; margin-top: 4px; }
.ci-leer-text p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; max-width: 52ch; }
.ci-leer-text p.leise { color: var(--ink-3); }
.ci-vorlage { border: 1px solid var(--rand); border-radius: 12px; overflow: hidden; background: var(--code-bg); min-width: 0; }
.ci-vorlage-kopf { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--rand); font-size: 12px; color: var(--ink-2); }
.ci-vorlage pre { margin: 0; padding: 14px 16px; font-size: 12px; line-height: 1.6; overflow: auto; color: var(--ink-2); }

/* Eine Pipeline */
.ci-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -4px 0 16px; font-size: 12.5px; color: var(--ink-2); }
.ci-meta a { color: var(--ink); }
.ci-meta .rechts { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.ci-meta .rechts .ic { width: 14px; height: 14px; color: var(--ink-3); }
.ci-kpis { margin-bottom: 16px; }
.ci-kpis .kpi-teile { width: 100%; }
.ci-kpi-schlecht .kpi-zahl { color: var(--kritisch-text); }
.abschnitt + .abschnitt, .kpis + .abschnitt, .ci-meta + .abschnitt { margin-top: 16px; }
.ci-konfigfehler pre { margin: 0; padding: 12px 14px; border-radius: 9px; background: var(--kritisch-flaeche); color: var(--kritisch-text); font-size: 12.5px; white-space: pre-wrap; }
.ci-rot .abschnitt-kopf h2 { color: var(--kritisch-text); }

.ci-graph { position: relative; display: flex; gap: 64px; overflow-x: auto; padding: 2px 2px 6px; }
.ci-kanten { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; overflow: visible; }
.ci-kanten path { fill: none; stroke: var(--rand-3); stroke-width: 1.5; }
.ci-stufe { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; width: 264px; flex: none; }
.ci-stufe-kopf { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-bottom: 2px; }
.ci-job { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--tk-rand); border-radius: 10px;
  background: var(--tk-bg); box-shadow: var(--tk-schatten); color: inherit; transition: border-color .15s, background .15s; }
.ci-job:hover { border-color: var(--rand-3); background: var(--tk-hover); }
.ci-job.ci-fehlgeschlagen, .ci-job.ci-fehler { border-color: color-mix(in srgb, var(--kritisch) 45%, var(--tk-rand)); }
.ci-job.ci-laeuft { border-color: color-mix(in srgb, var(--s-ein) 55%, var(--tk-rand)); }
.ci-job-kopf { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ci-job-kopf b { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-job-kopf .ci-ic { margin-left: auto; }
.ci-sprache { width: 16px; height: 16px; flex: none; }
.ci-job-bild { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-job-fuss { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-2); }
.ci-job-fuss span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ci-tests { display: flex; flex-direction: column; }
.ci-test { border-bottom: 1px solid var(--linie); }
.ci-test:last-child { border-bottom: 0; }
.ci-test-zeile { display: flex; align-items: center; gap: 10px; padding: 9px 4px; font-size: 13px; list-style: none; }
summary.ci-test-zeile { cursor: pointer; }
summary.ci-test-zeile::-webkit-details-marker { display: none; }
summary.ci-test-zeile:hover { background: var(--hover); }
.ci-test-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ci-test-name b { font-weight: 500; color: var(--ink); }
.ci-test-suite { color: var(--ink-3); }
.ci-test-job { font-size: 11px; color: var(--ink-3); border: 1px solid var(--rand); border-radius: 6px; padding: 1px 6px; }
.ci-test-dauer { flex: none; min-width: 64px; text-align: right; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ci-test-koerper { display: flex; flex-direction: column; gap: 10px; padding: 2px 4px 14px 30px; }
.ci-test-meldung { font-size: 13px; color: var(--kritisch-text); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.ci-test-details { margin: 0; padding: 12px 14px; border-radius: 9px; background: var(--log-bg); border: 1px solid var(--rand); color: var(--log-text);
  font-size: 12px; line-height: 1.55; max-height: 380px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.ci-test-datei { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; align-self: flex-start; }
.ci-test-datei .ic { width: 13px; height: 13px; }
.ci-gruppen-raster { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.ci-gruppe { border-bottom: 1px solid var(--linie); }
.ci-gruppe:last-child { border-bottom: 0; }
.ci-gruppe > summary { display: grid; grid-template-columns: minmax(0, 1fr) 130px 170px 64px; align-items: center; gap: 14px; padding: 10px 4px;
  cursor: pointer; list-style: none; font-size: 13px; }
.ci-gruppe > summary::-webkit-details-marker { display: none; }
.ci-gruppe > summary:hover { background: var(--hover); }
.ci-gruppe-name { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ci-gruppe-name::before { content: ""; flex: none; width: 6px; height: 6px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(-45deg); transition: transform .15s; }
.ci-gruppe[open] > summary .ci-gruppe-name::before { transform: rotate(45deg); }
.ci-gruppe-zahl { font-size: 12px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.ci-gruppe .ci-tests { padding: 0 0 8px 16px; }
.ci-laedt { padding: 10px 4px; font-size: 12.5px; }
.ci-langsam { border: 1px solid var(--rand); border-radius: 10px; padding: 12px 14px; }
.ci-langsam-kopf { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 6px; }
.ci-langsam-zeile { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 12.5px; }
.ci-langsam-zeile span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ci-langsam-zeile b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Ein Job: Log */
.ci-jobwahl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ci-jobwahl-eintrag { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--rand); border-radius: 8px;
  font-size: 12.5px; color: var(--ink-2); transition: border-color .15s, background .15s; }
.ci-jobwahl-eintrag:hover { border-color: var(--rand-3); color: var(--ink); }
.ci-jobwahl-eintrag.an { background: var(--segment-an); border-color: var(--rand-2); color: var(--ink); }
.ci-job-tests { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 12.5px; color: var(--ink-2); }
.ci-job-tests .ci-balken { max-width: 240px; }
.log-huelle { border: 1px solid var(--rand); border-radius: 12px; overflow: hidden; background: var(--log-bg); }
.log-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 9px 12px; border-bottom: 1px solid var(--rand); background: var(--flaeche); }
.log-leiste .suchfeld .eingabe { height: 32px; min-width: 240px; }
.log-leiste .rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.log-treffer { font-size: 12px; color: var(--ink-3); }
.log { height: max(380px, calc(100vh - 330px)); overflow: auto; padding: 6px 0 14px; color: var(--log-text); outline: none;
  font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: 12.5px; line-height: 1.62; overscroll-behavior: contain; }
.log-kopf { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 16px 6px 22px; border: 0; background: none; color: var(--ink);
  font: 500 12.5px/1.5 var(--mono, ui-monospace, monospace); text-align: left; cursor: pointer; }
.log-kopf:hover { background: var(--hover); }
.log-pfeil { width: 6px; height: 6px; flex: none; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; margin-right: 2px; }
.log-abschnitt.zu .log-pfeil { transform: rotate(-45deg); }
.log-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-dauer { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.log-abschnitt.zu .log-zeilen { display: none; }
.log-zeilen { padding: 2px 0 8px; }
.lz { display: flex; min-height: 1.62em; padding-right: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lz::before { content: attr(data-nr); flex: none; width: 60px; padding-right: 16px; text-align: right; color: var(--log-nr); user-select: none; }
.lz:hover { background: var(--hover); }
.lz.treffer { background: rgba(245,165,36,.12); }
.lz.treffer.aktiv { background: rgba(245,165,36,.3); }
.log-leer { padding: 20px 24px; color: var(--ink-3); font-family: inherit; }
.a-fett { font-weight: 700; } .a-matt { opacity: .62; } .a-kursiv { font-style: italic; } .a-unter { text-decoration: underline; }
.a-schwarz { color: var(--a-schwarz); } .a-rot { color: var(--a-rot); } .a-gruen { color: var(--a-gruen); } .a-gelb { color: var(--a-gelb); }
.a-blau { color: var(--a-blau); } .a-magenta { color: var(--a-magenta); } .a-cyan { color: var(--a-cyan); } .a-weiss { color: var(--a-weiss); }
.a-hell-schwarz { color: var(--a-hell-schwarz); } .a-hell-rot { color: var(--a-hell-rot); } .a-hell-gruen { color: var(--a-hell-gruen); } .a-hell-gelb { color: var(--a-hell-gelb); }
.a-hell-blau { color: var(--a-hell-blau); } .a-hell-magenta { color: var(--a-hell-magenta); } .a-hell-cyan { color: var(--a-hell-cyan); } .a-hell-weiss { color: var(--a-hell-weiss); }
.a-hg-rot { background: color-mix(in srgb, var(--a-rot) 22%, transparent); } .a-hg-gruen { background: color-mix(in srgb, var(--a-gruen) 22%, transparent); }
.a-hg-gelb { background: color-mix(in srgb, var(--a-gelb) 22%, transparent); } .a-hg-blau { background: color-mix(in srgb, var(--a-blau) 22%, transparent); }
@media (max-width: 1100px) {
  .ci-zeile { grid-template-columns: 22px minmax(0, 1fr) 150px; }
  .ci-zeile-jobs, .ci-zeile-zeit { display: none; }
  .ci-gruppen-raster, .ci-leer { grid-template-columns: minmax(0, 1fr); }
  .ci-gruppe > summary { grid-template-columns: minmax(0, 1fr) 90px 64px; }
  .ci-gruppe-zahl { display: none; }
}
.ci-graph.einstufig { display: block; overflow: visible; }
.ci-graph.einstufig .ci-stufe { width: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
