/* ── Sagan · Oberfläche ──────────────────────────────────────────────
   Im Stil von Troncom Enterprise: 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. Farbe tragen die
   Daten und die Zustände; Bernstein bleibt dem einen Hauptknopf einer
   Ansicht. Schrift Inter, dazu die Troncom-Wortmarke als SVG. Dunkel
   ist die Vorgabe, hell schaltet html.hell (thema.js).
   Der erste Teil ist das Fundament von Troncom Enterprise, danach
   folgt, was Sagan dazu braucht.                                     */

@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: 18px; }
.navi { position: relative; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 16px;
  scrollbar-width: none; overscroll-behavior: contain; }
.navi::-webkit-scrollbar { display: none; width: 0; height: 0; }
.navi-gruppe { display: flex; flex-direction: column; gap: 1px; }
.navi-titel { padding: 0 10px 5px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.navi a {
  display: flex; align-items: center; gap: 10px; height: 31px; 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; }
/* Seiten-Rollbalken nur beim Rollen (siehe rollbalkenNurBeimRollen in app.js) */
html.rollbalken-still:not(.rollt) { scrollbar-width: none; }
html.rollbalken-still:not(.rollt)::-webkit-scrollbar { 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; }

.seite-rein { animation: rein .35s var(--ease) both; }
/* Wiederkehr auf eine bekannte Seite: kein Neuaufbau, nur ein Hauch */
.seite-sanft { animation: sanft-rein .16s var(--ease) both; }
@keyframes sanft-rein { from { opacity: .55; } to { opacity: 1; } }
@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; }

/* ── 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, .segment button > span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.segment button .ic { width: 14px; height: 14px; flex: none; }
.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; margin: 0 -12px; }
.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: 12px; }
.tabelle th:last-child, .tabelle td:last-child { padding-right: 12px; }
.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; }

/* ── 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; }
/* Suchfelder: in Safari ohne eigene Gestaltung, das Löschkreuz in der Farbe der Oberfläche */
.eingabe[type=search] { -webkit-appearance: none; appearance: none; }
.eingabe[type=search]::-webkit-search-decoration { -webkit-appearance: none; }
.eingabe[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin: 0 -3px 0 8px; cursor: pointer;
  background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 14px no-repeat; }
.eingabe[type=search]::-webkit-search-cancel-button:hover { background: var(--ink); }

/* ── Eigene Bereiche statt Dialogen ────────────────────────────────
   Ein Bereich nimmt die ganze Inhaltsfläche ein: Kopf wie jede Seite,
   darunter die Karte mit dem Formular und einer festen Fußleiste. */
@keyframes blende { from { opacity: 0; } }
@keyframes hoch { from { opacity: 0; transform: translateY(8px); } }
.haupt.mit-flaeche > #seitenkopf, .haupt.mit-flaeche > #inhalt { display: none; }
#app.mit-flaeche > :not(.flaeche) { display: none; }
.flaeche { max-width: 720px; animation: flaeche-rein .34s var(--swift) both; }
.flaeche.breit { max-width: 940px; }
.flaeche[hidden] { display: none; }
.flaeche.frei { margin: 0 auto; padding: clamp(28px, 6vh, 64px) 22px 56px; }
@keyframes flaeche-rein { from { opacity: 0; transform: translateY(10px); } }
.flaeche-kopf { margin-bottom: 22px; }
.flaeche-zurueck { display: inline-flex; align-items: center; gap: 7px; height: 28px; margin: -6px 0 12px -9px; padding: 0 10px 0 8px; border: 0; border-radius: 8px;
  background: none; color: var(--ink-3); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: color .15s, background .15s; }
.flaeche-zurueck .ic { width: 15px; height: 15px; transition: transform .25s var(--swift); }
.flaeche-zurueck:hover { color: var(--ink); background: var(--aktiv); }
.flaeche-zurueck:hover .ic { transform: translateX(-2px); }
.flaeche-zurueck:focus-visible { outline: 1.5px solid var(--stark); outline-offset: 1px; }
.flaeche-kopf .titel { font-size: 24px; }
.flaeche-kopf .untertitel { max-width: 72ch; line-height: 1.55; }
.flaeche-karte { padding: 26px 28px 24px; border-radius: 16px; border: 1px solid var(--karte-rand); background: var(--flaeche); box-shadow: var(--schatten); }
.flaeche-karte > .aktionen:last-child, .flaeche-karte > form:last-child > .aktionen:last-child {
  justify-content: flex-end; margin: 28px -28px -24px; padding: 16px 28px; border-top: 1px solid var(--rand); border-radius: 0 0 16px 16px; background: var(--flaeche); }
.flaeche-karte .felder { margin-top: 2px; }
/* Formulare aus der Dialog-Zeit: zwei ruhige Spalten, „ganz" über beide */
.flaeche-karte .felder, .flaeche-karte .felder.weit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.flaeche-karte .felder > .ganz { grid-column: 1 / -1; }
.flaeche-karte .wahlkarten { margin-bottom: 4px; }
.flaeche-karte p.lead { color: var(--ink-3); margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; }

/* Rückfrage an Ort und Stelle */
.rueckfrage { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin: 12px 0; padding: 14px 16px 14px 18px; border-radius: 12px;
  border: 1px solid var(--rand-2); background: var(--flaeche-2); animation: rueckfrage-rein .28s var(--swift) both; }
.rueckfrage.gefahr { border-color: rgba(229,72,77,.42); background: var(--kritisch-flaeche); }
.rueckfrage-text { flex: 1 1 260px; min-width: 0; }
.rueckfrage-text b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; }
.rueckfrage-text p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.rueckfrage-feld { flex: 1 1 100%; margin: 0; }
.rueckfrage-knoepfe { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.flaeche-karte > .rueckfrage:first-child { margin-top: 0; margin-bottom: 18px; }
.seite > .rueckfrage:first-child { margin: 0 0 16px; }
.rueckfrage-zeile > td { padding: 2px 0 10px !important; border: 0 !important; background: transparent !important; }
.rueckfrage-zeile .rueckfrage { margin: 0; }
@keyframes rueckfrage-rein { from { opacity: 0; transform: translateY(-4px); } }
.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; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; z-index: 0; }
.anmeldung-video { opacity: 0; transition: opacity 1.4s var(--ease); }
.anmeldung-video.laeuft { opacity: 1; }
.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); }

/* ── 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); }
/* Nur der Text wird gekürzt – Punkt und Puls-Ring dürfen über den Rand der Zeile hinaus */
.status-teil b { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.status-teil .status-text { min-width: 0; 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; }

/* ── Seitenwechsel: eigene Übergänge (ohne View Transitions) ──────
   Lädt eine Seite länger als einen Augenblick, tritt die alte leise
   zurück; die neue kommt mit Kopf und gestaffelten Karten herein.   */
#inhalt > .seite { transition: opacity .22s var(--ease); }
#inhalt.laedt > .seite { opacity: .45; transition-delay: .12s; }
.kopf-rein { animation: kopf-rein .42s var(--ease) both; }
@keyframes kopf-rein { from { opacity: 0; transform: translateY(8px); } }
html.thema-wechsel *, html.thema-wechsel *::before, html.thema-wechsel *::after {
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), fill .4s var(--ease), stroke .4s var(--ease), box-shadow .4s var(--ease) !important; }

/* Karten und Kennzahlen kommen gestaffelt herein */
.seite-rein .kpis, .seite-rein .statuszeile, .seite-rein .raster > *, .seite-rein .karten-raster > *, .seite-rein .reiter,
.seite-rein .filterzeile, .seite-rein .kanban-spalte, .seite-rein .beleg-raster > * > *, .seite-rein .einzeln {
  animation: hoch-rein .62s var(--ease) both; }
@keyframes hoch-rein { from { opacity: 0; transform: translateY(14px); } }
.seite-rein .raster > :nth-child(2), .seite-rein .karten-raster > :nth-child(2), .seite-rein .kanban-spalte:nth-child(2) { animation-delay: 45ms; }
.seite-rein .raster > :nth-child(3), .seite-rein .karten-raster > :nth-child(3), .seite-rein .kanban-spalte:nth-child(3) { animation-delay: 90ms; }
.seite-rein .raster > :nth-child(4), .seite-rein .karten-raster > :nth-child(4), .seite-rein .kanban-spalte:nth-child(4) { animation-delay: 135ms; }
.seite-rein .raster > :nth-child(5), .seite-rein .karten-raster > :nth-child(5), .seite-rein .kanban-spalte:nth-child(5) { animation-delay: 180ms; }
.seite-rein .raster > :nth-child(6), .seite-rein .karten-raster > :nth-child(6), .seite-rein .kanban-spalte:nth-child(6) { animation-delay: 225ms; }
.seite-rein .raster > :nth-child(n+7), .seite-rein .karten-raster > :nth-child(n+7) { animation-delay: 270ms; }
.seite-rein .raster + .raster > * { animation-delay: 120ms; }
.seite-rein .raster + .raster + .raster > * { animation-delay: 200ms; }
.seite-rein .raster + .raster + .raster + .raster > * { animation-delay: 260ms; }
.seite-rein .kpi { animation: hoch-rein .7s var(--ease) both; }
.seite-rein .kpi:nth-child(2) { animation-delay: 60ms; } .seite-rein .kpi:nth-child(3) { animation-delay: 120ms; }
.seite-rein .kpi:nth-child(4) { animation-delay: 180ms; } .seite-rein .kpi:nth-child(5) { animation-delay: 240ms; }
.seite-rein .kpi:nth-child(6) { animation-delay: 300ms; }
.seite-rein .tabelle tbody tr { animation: zeile-rein .5s var(--ease) both; }
.seite-rein .tabelle tbody tr:nth-child(2) { animation-delay: 25ms; } .seite-rein .tabelle tbody tr:nth-child(3) { animation-delay: 50ms; }
.seite-rein .tabelle tbody tr:nth-child(4) { animation-delay: 75ms; } .seite-rein .tabelle tbody tr:nth-child(5) { animation-delay: 100ms; }
.seite-rein .tabelle tbody tr:nth-child(6) { animation-delay: 125ms; } .seite-rein .tabelle tbody tr:nth-child(7) { animation-delay: 150ms; }
.seite-rein .tabelle tbody tr:nth-child(8) { animation-delay: 175ms; } .seite-rein .tabelle tbody tr:nth-child(n+9) { animation-delay: 200ms; }
@keyframes zeile-rein { from { opacity: 0; transform: translateY(6px); } }

/* Große Zahlen: in Ruhe proportional, beim Zählen gleich breit (kein Zittern) */
.kpi-wert, .objekt-wert b, .held-zahl, .summe-brutto b { font-variant-numeric: normal; }
.zaehlt { font-variant-numeric: tabular-nums !important; }

/* Ladebalken oben – nur, wenn Laden spürbar dauert */
.ladebalken { position: fixed; left: 0; top: 0; z-index: 3000; height: 2px; width: 100%; pointer-events: none; opacity: 0;
  transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, transparent, var(--bernstein) 60%, #fff);
  transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ladebalken.an { opacity: 1; transform: scaleX(.72); transition: transform 2.4s cubic-bezier(.1,.6,.2,1), opacity .2s; }
.ladebalken.fertig { opacity: 0; transform: scaleX(1); transition: transform .25s var(--ease), opacity .4s .15s; }

/* Gleitende Markierung in Segmenten und Reitern */
.segment, .reiter { position: relative; }
.gleiter { position: absolute; z-index: 0; border-radius: 7px; background: var(--segment-an); box-shadow: var(--schatten), inset 0 0 0 1px rgba(255,255,255,.035);
  transition: transform .42s var(--swift), width .42s var(--swift), opacity .2s; pointer-events: none; }
html.hell .gleiter { box-shadow: 0 1px 2px rgba(16,24,40,.08), inset 0 0 0 1px rgba(0,0,0,.04); }
.segment.mit-gleiter button, .segment.mit-gleiter .segment-link { position: relative; z-index: 1; }
.segment.mit-gleiter button.an, .segment.mit-gleiter .segment-link.an { background: transparent; box-shadow: none; }
.reiter .gleiter { top: auto; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); box-shadow: none; }
.reiter.mit-gleiter a.an::after { display: none; }

/* ── Navigation: Zähler ───────────────────────────────────────────── */
.navi-zahl { margin-left: auto; min-width: 19px; height: 18px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 500; color: var(--ink-2); background: var(--aktiv); font-variant-numeric: tabular-nums;
  transition: background .3s var(--ease), color .3s var(--ease); }
.navi-zahl.warn { color: var(--kritisch-text); background: var(--kritisch-flaeche); }
.navi .agent-punkt { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--agent); box-shadow: 0 0 0 3px var(--agent-flaeche);
  animation: atmen 1.4s ease-in-out infinite; }
.marke-name.sagan { letter-spacing: -.005em; }

/* ── Anwesenheit: wer ist da, welcher Agent arbeitet ─────────────── */
.anwesenheit { display: flex; align-items: center; padding-left: 6px; min-height: 32px; }
.anw { position: relative; width: 28px; height: 28px; margin-left: -7px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 650; letter-spacing: .02em; color: #fff; box-shadow: 0 0 0 2px var(--bg); cursor: default;
  animation: anw-rein .5s var(--swift) both; transition: transform .25s var(--ease); }
.anw:hover { transform: translateY(-2px); z-index: 3; }
.anw.agent { background: radial-gradient(120% 120% at 30% 20%, var(--kepler-a), var(--kepler-b)); }
.anw.agent .ic { width: 14px; height: 14px; color: #fff; }
.anw.agent.arbeitet::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent;
  border-top-color: var(--agent); border-right-color: var(--agent); animation: drehen .9s linear infinite; }
.anw.geht { animation: anw-raus .3s var(--ease) both; }
@keyframes anw-rein { from { opacity: 0; transform: scale(.4) translateY(4px); } }
@keyframes anw-raus { to { opacity: 0; transform: scale(.4); } }
@keyframes drehen { to { transform: rotate(360deg); } }
.anw-karte { min-width: 240px; }
.anw-zeile { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: 13px; }
.anw-zeile small { display: block; color: var(--ink-3); font-size: 11.5px; }

/* ── Meldungen der Agenten (oben rechts) ─────────────────────────── */
.meldungen { position: fixed; top: 64px; right: 20px; z-index: 1150; width: min(372px, calc(100vw - 40px)); display: flex; flex-direction: column;
  gap: 8px; pointer-events: none; }
.meldung { position: relative; pointer-events: auto; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; padding: 12px 14px 13px 12px;
  border-radius: 12px; background: var(--meldung-bg); border: 1px solid var(--rand-2); box-shadow: var(--schatten-pop); cursor: pointer; overflow: hidden;
  animation: meldung-rein .55s var(--swift) both; transition: border-color .2s; }
.meldung:hover { border-color: var(--agent-rand); }
.meldung.geht { animation: meldung-raus .32s var(--ease) both; }
.meldung-kopf { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--ink-3); min-width: 0; }
.meldung-kopf b { color: var(--ink); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.meldung-kopf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meldung-text { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere; }
.meldung-zeit { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: 0 50%; background: var(--agent); opacity: .7;
  animation: meldung-uhr linear forwards; }
.meldung:hover .meldung-zeit { animation-play-state: paused; }
.meldung .anw { margin: 0; box-shadow: none; }
@keyframes meldung-rein { from { opacity: 0; transform: translateX(24px) scale(.97); } }
@keyframes meldung-raus { to { opacity: 0; transform: translateX(24px) scale(.97); } }
@keyframes meldung-uhr { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Leuchten, wenn sich etwas live ändert – violett, wenn ein Agent es war */
.blitz { animation: blitz 1.6s var(--ease); }
@keyframes blitz { 0% { box-shadow: 0 0 0 1px var(--s-ein), 0 0 0 4px var(--akzent-flaeche); } 100% { box-shadow: 0 0 0 1px transparent, 0 0 0 4px transparent; } }
.agent-blitz { animation: agent-blitz 2.6s var(--ease); }
@keyframes agent-blitz {
  0% { box-shadow: 0 0 0 1px var(--agent), 0 0 0 5px var(--agent-flaeche), 0 0 34px rgba(144,133,233,.32); }
  100% { box-shadow: 0 0 0 1px transparent, 0 0 0 5px transparent, 0 0 34px transparent; } }
tr.blitz td, tr.agent-blitz td { animation: zeile-blitz 1.8s var(--ease); }
tr.agent-blitz td { animation-name: zeile-agent; }
tr.blitz, tr.agent-blitz { animation: none; }
@keyframes zeile-blitz { 0% { background: var(--akzent-flaeche); } 100% { background: transparent; } }
@keyframes zeile-agent { 0% { background: var(--agent-flaeche); } 100% { background: transparent; } }
.neu-rein { animation: neu-rein .7s var(--swift) both; }
@keyframes neu-rein { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
.wert-blitz { animation: wert-blitz 1.2s var(--ease); border-radius: 4px; }
@keyframes wert-blitz { 0% { background: var(--akzent-flaeche); } 100% { background: transparent; } }
.geist-raus { position: fixed !important; z-index: 5; margin: 0 !important; pointer-events: none; animation: geist-raus .38s var(--ease) both; }
@keyframes geist-raus { to { opacity: 0; transform: scale(.96); filter: blur(1px); } }

/* ── Kopf: Titel mit Begrüßung, Neu-Menü ─────────────────────────── */
.titel .gruss { color: var(--ink-3); font-weight: 500; }
.knopf .ic.klein { width: 13px; height: 13px; margin-right: -3px; opacity: .8; }
.menue { position: fixed; z-index: 1000; min-width: 220px; padding: 6px; border-radius: 12px; background: var(--flaeche-2); border: 1px solid var(--rand-2);
  box-shadow: var(--schatten-pop); transform-origin: var(--ursprung, top right); animation: menue-auf .2s var(--swift) both; }
.menue.zu { animation: menue-zu .14s var(--ease) both; }
@keyframes menue-auf { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
@keyframes menue-zu { to { opacity: 0; transform: scale(.97); } }
.menue-eintrag { width: 100%; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none;
  color: var(--ink-2); font-size: 13px; cursor: pointer; text-align: left; }
.menue-eintrag:hover, .menue-eintrag:focus-visible { background: var(--aktiv); color: var(--ink); outline: none; }
.menue-eintrag .ic { width: 15px; height: 15px; color: var(--ink-3); }
.menue-eintrag kbd { margin-left: auto; }
.menue-eintrag.gefahr { color: var(--kritisch-text); }
.menue-trenner { height: 1px; margin: 5px 4px; background: var(--rand); }
.menue-titel { padding: 6px 10px 4px; font-size: 11px; font-weight: 500; color: var(--ink-3); }

/* ── Zeitleiste ──────────────────────────────────────────────────── */
.zeitleiste { position: relative; display: flex; flex-direction: column; }
.zeitleiste::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 1px; background: var(--linie); }
.zl { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 8px 0; }
.zl-ic { position: relative; z-index: 1; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--rand-2); color: var(--zf, var(--ink-3)); }
.zl-ic .ic { width: 13px; height: 13px; }
.zl-kopf { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.zl-kopf b { font-weight: 500; }
.zl-kopf small { color: var(--ink-3); font-size: 11.5px; }
.zl-text { margin-top: 3px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; }
.zl.offen .zl-ic { box-shadow: inset 0 0 0 1.5px var(--zf); }
.art-anruf { --zf: var(--kat-3); } .art-email { --zf: var(--kat-6); } .art-termin { --zf: var(--kat-2); }
.art-notiz { --zf: var(--ink-3); } .art-aufgabe { --zf: var(--kat-1); }

/* ── Live-Strom (Protokoll) ─────────────────────────────────────── */
.strom { display: flex; flex-direction: column; }
.strom-zeile { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--linie); }
.strom-zeile:last-child { border-bottom: 0; }
.strom-zeile.lesen { opacity: .62; }
.strom-zeile.fehler .strom-was { color: var(--kritisch-text); }
.strom-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.strom-was { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strom-was b { font-weight: 500; }
.strom-wer { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.strom-zeit { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.strom-zeit small { display: block; font-size: 10.5px; }
.mcp-marke { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 10px; font-weight: 700;
  letter-spacing: .04em; color: var(--agent); background: var(--agent-flaeche); }
.mcp-marke .ic { width: 10px; height: 10px; stroke-width: 2.2; }
.avatar-rund { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 650; color: #fff; flex: none;
  line-height: 1; letter-spacing: 0; text-indent: 0; }
.avatar-rund .kuerzel, .anw .kuerzel { display: block; line-height: 1; letter-spacing: 0; text-box: trim-both cap alphabetic; }
.avatar-rund.agent { background: radial-gradient(120% 120% at 30% 20%, var(--kepler-a), var(--kepler-b)); }
.avatar-rund.agent .ic { width: 14px; height: 14px; color: #fff; }
.avatar-rund.klein { width: 22px; height: 22px; font-size: 9px; }
.avatar-rund.mini { width: 18px; height: 18px; font-size: 8px; }

/* ── Auswahl (Suchfeld mit Liste) ───────────────────────────────── */
.auswahl { position: relative; }
.auswahl-liste { position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow-y: auto; padding: 6px;
  border-radius: 12px; background: var(--flaeche-2); border: 1px solid var(--rand-2); box-shadow: var(--schatten-pop); animation: menue-auf .16s var(--swift) both; }
.auswahl-eintrag { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 13px; min-width: 0; }
.auswahl-eintrag.an, .auswahl-eintrag:hover { background: var(--aktiv); }
.auswahl-eintrag .name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auswahl-eintrag small { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.auswahl-leer { padding: 14px; text-align: center; color: var(--ink-3); font-size: 12.5px; }
.pos-tabelle .auswahl-liste { min-width: 380px; }

/* ── Suche (⌘K) mit Gruppen ─────────────────────────────────────── */
.palette-gruppe { padding: 10px 10px 4px; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.palette { animation: palette-auf .22s var(--swift) both; }
@keyframes palette-auf { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.palette-zeile { transition: background .12s; }

/* ── Agenten (MCP) ────────────────────────────────────────────────── */
.mcp-held { position: relative; overflow: hidden; padding: 26px 26px 22px; }
.mcp-held-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: center; }
.mcp-held h2 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 8px; }
.mcp-held p { color: var(--ink-2); font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; max-width: 54ch; }
.mcp-zahlen { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.mcp-zahlen div small { display: block; font-size: 11.5px; color: var(--ink-3); }
.mcp-zahlen div b { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.mcp-bild { width: 100%; height: auto; overflow: visible; }
.mcp-linie { fill: none; stroke: var(--rand-3); stroke-width: 1.2; }
.mcp-fluss { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 12; animation: fluss 1.6s linear infinite; }
.mcp-fluss.rueck { animation-direction: reverse; }
@keyframes fluss { to { stroke-dashoffset: -28; } }
.mcp-knoten rect { fill: var(--flaeche-2); stroke: var(--rand-2); }
.mcp-knoten text { fill: var(--ink); font-family: var(--font); font-size: 12px; font-weight: 500; }
.mcp-knoten .unter { fill: var(--ink-3); font-size: 10.5px; font-weight: 400; }
.mcp-kern circle.ring { fill: none; stroke: var(--rand-2); }
.mcp-kern circle.bahn { fill: none; stroke: var(--rand); stroke-dasharray: 2 5; }
.mcp-kern .trabant { fill: var(--agent); }
.mcp-kern .drehend { transform-box: view-box; animation: drehen 14s linear infinite; }
.mcp-kern .drehend.langsam { animation-duration: 26s; animation-direction: reverse; }
.mcp-kern text { fill: var(--ink); font-family: var(--font); text-anchor: middle; }
.schritt-liste { counter-reset: schritt; display: flex; flex-direction: column; gap: 14px; }
.schritt { counter-increment: schritt; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.schritt::before { content: counter(schritt); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rand-2); }
.schritt b { font-weight: 500; display: block; margin-bottom: 4px; }
.schritt p { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.code-zeile { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 9px; background: var(--feld); border: 1px solid var(--rand-2);
  font-family: var(--mono); font-size: 12px; color: var(--ink); overflow: hidden; }
.code-zeile code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.werkzeug-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.werkzeug { display: flex; flex-direction: column; gap: 4px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--rand); background: var(--feld);
  transition: border-color .2s, transform .2s var(--ease); }
.werkzeug:hover { border-color: var(--rand-2); transform: translateY(-1px); }
.werkzeug-kopf { display: flex; align-items: center; gap: 8px; }
.werkzeug-kopf code { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.werkzeug-kopf .rechts { margin-left: auto; }
.werkzeug p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.werkzeug.aus { opacity: .45; }
.art-marke { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.art-marke.lesen { color: var(--ink-3); background: var(--hover); }
.art-marke.schreiben { color: var(--akzent-text); background: var(--akzent-flaeche); }
.art-marke.gefahr { color: var(--kritisch-text); background: var(--kritisch-flaeche); }
.art-marke.verwaltung { color: var(--warn-text); background: var(--warn-flaeche); }

/* ── Kleinteile ─────────────────────────────────────────────────── */
.skelett { border-radius: 8px; background: linear-gradient(90deg, var(--knopf) 0%, var(--knopf-hover) 50%, var(--knopf) 100%) 0 0 / 200% 100%;
  animation: schimmer 1.3s linear infinite; }
@keyframes schimmer { to { background-position: -200% 0; } }
.verweis { color: var(--ink); text-decoration: none; transition: color .15s; }
.verweis:hover { color: var(--akzent-text); }
.mono-nr { font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: -.01em; }
.zahl-r { text-align: right; font-variant-numeric: tabular-nums; }
.zwei-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stapel { display: flex; flex-direction: column; gap: 16px; }
.leise-zeile { font-size: 12px; color: var(--ink-3); }
.seg-zahl { margin-left: 6px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.knopf .zaehler { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: rgba(0,0,0,.14); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.status-balken { display: flex; height: 8px; gap: 2px; border-radius: 999px; overflow: hidden; margin-bottom: 4px; }
.status-balken i { display: block; height: 100%; transition: flex-grow .7s var(--swift); min-width: 3px; }
.status-balken i:first-child { border-radius: 999px 0 0 999px; } .status-balken i:last-child { border-radius: 0 999px 999px 0; }
.status-legende { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.status-legende span { display: inline-flex; align-items: center; gap: 6px; }
.status-legende i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.mahn-punkte { display: inline-flex; gap: 3px; vertical-align: 1px; }
.mahn-punkte i { width: 6px; height: 6px; border-radius: 50%; background: var(--rand-2); }
.mahn-punkte i.an { background: var(--kritisch); }
.tabelle td .chip { vertical-align: middle; }
.tabelle-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.sortierbar { cursor: pointer; user-select: none; }
.sortierbar:hover { color: var(--ink); }
.feld .auswahl input { width: 100%; }
.zahl-eingabe { text-align: right; font-variant-numeric: tabular-nums; }
.knopf-gruppe { display: inline-flex; }
.knopf-gruppe .knopf:first-child { border-radius: 8px 0 0 8px; }
.knopf-gruppe .knopf:last-child { border-radius: 0 8px 8px 0; margin-left: -1px; padding: 0 9px; }
.kachel.sagan-kachel { color: #fff; background: radial-gradient(120% 120% at 30% 20%, #3a3b42, #101114); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }

/* Zustimmung (OAuth) */
.zustimmung h1 { margin-top: 4px; }
.zustimmung-paar { display: flex; align-items: center; gap: 0; margin: 0 0 24px; }
.zustimmung-paar .kachel { box-shadow: inset 0 0 0 1px var(--rand-2); }
.zustimmung-linie { width: 64px; height: 2px; background: repeating-linear-gradient(90deg, var(--rand-3) 0 4px, transparent 4px 9px); animation: fluss-linie 1s linear infinite; }
@keyframes fluss-linie { to { background-position: 9px 0; } }
.wahlkarten.einspaltig { grid-template-columns: 1fr; margin-bottom: 18px; }
.anmeldung-knopf.zweit { background: transparent; color: var(--ink-2); border: 1px solid var(--rand-2); margin-top: 10px; }
.anmeldung-knopf.zweit:hover { color: var(--ink); opacity: 1; border-color: var(--rand-3); }

/* Anmeldung: Marke wie oben in der Leiste – TRONCOM | Sagan, nur groß */
.anmeldung-marke .anmeldung-zeile { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 30px); }
.anmeldung-marke .anmeldung-zeile .marke-gross { width: clamp(150px, 16vw, 260px); }
.anmeldung-marke .sagan-wort { font-size: clamp(23px, 2.45vw, 40px); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; color: #fff;
  padding-left: clamp(16px, 1.9vw, 30px); border-left: 1px solid rgba(255,255,255,.5); text-shadow: 0 8px 40px rgba(0,0,0,.45); }

/* Leer und Fehler */
.einzeln { max-width: 760px; }

@media (max-width: 1180px) {
  .beleg-raster { grid-template-columns: 1fr; }
  .beleg-seite { position: static; }
  .mcp-held-raster { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .beleg-kopf-felder { grid-template-columns: 1fr 1fr; }
  .zwei-spalten { grid-template-columns: 1fr; }
  .phasen { flex-wrap: wrap; }
  .phase-schritt { clip-path: none !important; border-radius: 8px !important; flex: 1 1 30%; }
  .trichter-stufe, .trichter-quote { grid-template-columns: 90px minmax(0, 1fr) 80px; }
  .anwesenheit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
}
.chip.lila { height: 22px; padding: 0 9px 0 7px; border-radius: 999px; font-weight: 500; color: var(--agent); background: var(--agent-flaeche); }
.feld-hinweis.fehler { color: var(--kritisch-text); }
.fehlerhaft { border-color: var(--kritisch) !important; }
.warnwert { color: var(--kritisch-text); }
.zustimmung .anmeldung-kopf .marke-logo { width: 126px; height: 26px; color: var(--ink); }

/* Feinschliff */
.dg-balken .hbalken-zeile { grid-template-columns: minmax(120px, 232px) minmax(0, 1fr) auto; }
.trichter.links .trichter-spur { justify-content: flex-start; }
.trichter.links .trichter-balken { border-radius: 0 6px 6px 0; }
.sankey-text, .sankey-zahl { paint-order: stroke; stroke: var(--flaeche); stroke-width: 3.5px; stroke-linejoin: round; }
.sankey path.dg-faden-v { opacity: .6; fill: none; }
.lese-wert { display: block; padding: 8px 8px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.pos-tabelle.nur-lesen td { padding-top: 10px; padding-bottom: 10px; }
.pos-tabelle .lese-bez { padding: 0 8px; }
.pos-tabelle .lese-bez b { font-weight: 500; }
.pos-tabelle .lese-bez p { margin: 3px 0 0; font-size: 12px; color: var(--ink-3); white-space: pre-wrap; }
.feld .lese { display: flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; background: var(--hover); font-size: 13.5px; }

/* Pipeline: vier offene Spalten und rechts das Entschiedene */
.kanban { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(214px, 1fr)) minmax(196px, .86fr); }
.kanban-spalte.abschluss { gap: 8px; padding-bottom: 8px; }
.kanban-zone { display: flex; flex-direction: column; border-radius: 10px; margin: 0 6px; transition: box-shadow .25s var(--ease), background .25s var(--ease); }
.kanban-zone + .kanban-zone { border-top: 1px solid var(--linie); padding-top: 4px; }
.kanban-zone.ziel { box-shadow: 0 0 0 1px var(--rand-3), 0 0 0 4px var(--fokus-ring); background: var(--hover); }
.kanban-zone.gewonnen.ziel { box-shadow: 0 0 0 1px var(--gut), 0 0 0 4px var(--gut-flaeche); }
.kanban-zone.verloren.ziel { box-shadow: 0 0 0 1px var(--kritisch), 0 0 0 4px var(--kritisch-flaeche); }
.kanban-zone .kanban-kopf { padding: 10px 8px 6px; }
.kanban-zone .kanban-liste { padding: 2px 2px 10px; min-height: 64px; }
.kanban-zone .kanban-leer { height: 56px; }
.kanban-titel .phase-ic { width: 14px; height: 14px; }
.kanban-zone.gewonnen .phase-ic { color: var(--gut); }
.kanban-zone.verloren .phase-ic { color: var(--kritisch-text); }
.kanban-fuss { margin: auto 14px 4px; font-size: 11px; color: var(--ink-3); }
.kanban-mehr { align-self: flex-start; margin: -4px 4px 8px; }
.ck-wk { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }
.chance-karte.kompakt { gap: 5px; padding: 8px 10px; }
.chance-karte.kompakt .ck-titel.eins { -webkit-line-clamp: 1; font-size: 12.5px; color: var(--ink-2); }
.ck-wert.klein { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink); flex: none; }
.kanban-zone.verloren .chance-karte.kompakt .ck-wert { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--rand-3); }
@media (max-width: 1240px) { .kanban { grid-template-columns: repeat(5, minmax(220px, 1fr)); } }

/* Lagerplan: gleich hohe Fächer, Füllstand bis zwei Drittel, Schrift passend zum Grund */
.fach { aspect-ratio: auto; height: 70px; min-height: 0; }
.fach-fuellung { height: calc(var(--f) * 64%); }
.fach-text b { color: var(--ink); text-shadow: none; }
.fach.auf-fuellung .fach-text b { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.fach.auf-fuellung.knapp-fach .fach-text b { color: #2b1d00; text-shadow: none; }
html.hell .fach-text b { text-shadow: none; }
.kanban-zone .kanban-titel { flex-wrap: wrap; row-gap: 2px; }
.kanban-zone .kanban-titel .rechts { width: 100%; margin-left: 22px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.kanban-titel .rechts { white-space: nowrap; }
.fach-fuellung { height: calc(var(--f) * 56%); }
.fach-fuellung::before { height: 1px; background: rgba(255,255,255,.22); }
.fach-text { z-index: 1; }
.pos-tabelle th.nr { padding-top: 0; }
.pos-tabelle th.bez-spalte { width: 100%; }
.beleg-aktionen .knopf[hidden] { display: none; }

/* ══ Bernstein wie bei Kepler ════════════════════════════════════════
   Farbe schmückt nicht, sie markiert: Fokus, Auswahl, das Aktive, der
   eigene Name – und Kepler selbst. Daten tragen Bernstein als Hauptreihe
   (Hervorhebung), Blau als Gegenstück; beide Paare, die Phasen-Stufen
   und die Kästchen sind mit dem Paletten-Prüfer geprüft (hell/dunkel). */
:root {
  --akzent: #FFC46B; --akzent-rgb: 255,196,107; --akzent-tief: #E0A24E; --akzent-hell: #FFDCA3; --auf-akzent: #000;
  --akzent-text: #FFC46B; --akzent-flaeche: rgba(255,196,107,.12);
  --reihe-akzent: #FFC46B;              /* Hervorhebung: eine Reihe, der Rest grau */
  --reihe-1: #bd842c; --reihe-2: #3987e5;   /* Paare (ein/aus) */
  --ord-1: #7a5420; --ord-2: #a8742d; --ord-3: #cf9343; --ord-4: #EDB45C;
  --heat-1: #5c4019; --heat-2: #87601f; --heat-3: #b88130; --heat-4: #EDB45C;
  --agent: #FFC46B; --agent-flaeche: rgba(255,196,107,.13); --agent-rand: rgba(255,196,107,.5);
  --kepler-a: #FFDCA3; --kepler-b: #E0A24E;
  --fokus-ring: rgba(255,196,107,.14);
  --warn: #f08c2e; --warn-text: #f5a35a; --warn-flaeche: rgba(240,140,46,.13);
}
html.hell {
  --akzent: #96590C; --akzent-rgb: 150,89,12; --akzent-tief: #6E4007; --akzent-hell: #B8741A; --auf-akzent: #fff;
  --akzent-text: #96590C; --akzent-flaeche: rgba(150,89,12,.09);
  --reihe-akzent: #B8741A;
  --reihe-1: #B8741A; --reihe-2: #2a78d6;
  --ord-1: #d49a42; --ord-2: #b9792a; --ord-3: #946014; --ord-4: #6b420a;
  --heat-1: #dca24b; --heat-2: #c08128; --heat-3: #9a6215; --heat-4: #6e4609;
  --agent: #96590C; --agent-flaeche: rgba(150,89,12,.09); --agent-rand: rgba(150,89,12,.4);
  --fokus-ring: rgba(150,89,12,.12);
  --warn: #c2410c; --warn-text: #c2410c; --warn-flaeche: rgba(194,65,12,.09);
}
::selection { background: rgba(var(--akzent-rgb), .9); color: var(--auf-akzent); }
:focus-visible { outline-color: var(--akzent); }

/* Hauptknopf: einfarbig Bernstein wie in Kepler – ohne Verlauf und Schein */
.knopf-primaer { background: #FFC46B; border-color: #FFC46B; color: #000; box-shadow: none; }
.knopf-primaer:hover { background: #FFD08A; border-color: #FFD08A; box-shadow: none; }
.knopf-primaer:active { background: #F5B85C; border-color: #F5B85C; }
html.hell .knopf-primaer:hover { background: #FFCD84; border-color: #FFCD84; }
.knopf-primaer:disabled { box-shadow: none; }
.knopf-reihe { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* Eingaben: Fokus in Bernstein */
.feld input:focus, .feld select:focus, .eingabe:focus, .feld textarea:focus, .zelle:focus, .zelle-unter:focus {
  border-color: var(--akzent); box-shadow: 0 0 0 3.5px rgba(var(--akzent-rgb), .14); }
.schnell-neu:focus-within { border-color: var(--akzent); box-shadow: 0 0 0 3.5px rgba(var(--akzent-rgb), .14); }
.anmeldung .feld input:focus { border-bottom-color: var(--akzent); box-shadow: none; }
.palette-eingabe { caret-color: var(--akzent); }

/* Navigation: das Aktive mit Bernstein-Marke und -Symbol. Die Marke ist ein
   eigenes Element und gleitet beim Wechsel zum neuen Eintrag. */
.navi a { position: relative; z-index: 1; }
.navi a.an .ic { color: var(--akzent); }
.navi a.an::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 0 2px 2px 0; background: var(--akzent);
  box-shadow: 0 0 10px rgba(var(--akzent-rgb), .5); }
.navi-marke { position: absolute; left: 0; right: 0; top: 0; z-index: 0; height: 31px; border-radius: 8px; opacity: 0; pointer-events: none;
  background: var(--leiste-an); box-shadow: inset 0 0 0 1px var(--rand);
  transition: transform .42s var(--swift), height .42s var(--swift), opacity .2s var(--ease); will-change: transform; }
.navi-marke::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 0 2px 2px 0; background: var(--akzent);
  box-shadow: 0 0 10px rgba(var(--akzent-rgb), .5); }
.navi.mit-marke a.an { background: transparent; box-shadow: none; }
.navi.mit-marke a.an::before { display: none; }
.reiter .gleiter { background: var(--akzent); box-shadow: 0 0 8px rgba(var(--akzent-rgb), .45); }
.reiter a.an::after { background: var(--akzent); }

/* Schalter, Haken, Wahlkarten: an ist Bernstein */
.schalter input:checked + .schalter-bahn { background: var(--akzent); }
.schalter input:checked + .schalter-bahn::after { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.haken:hover { border-color: var(--akzent); }
.haken.an { background: linear-gradient(135deg, var(--akzent-tief), var(--akzent)); border-color: transparent; }
.haken svg { stroke: var(--auf-akzent); }
.wahlkarte:has(input:checked) { border-color: var(--akzent); background: var(--akzent-flaeche); }
.wk-ring .wert { stroke: var(--akzent); }

/* Der eigene Name in Bernstein */
.eigener-name { color: var(--akzent); }
.verweis:hover, .info-liste dd a:hover { color: var(--akzent); }

/* Menschen: Kürzel auf ruhigem Grund; man selbst in Bernstein */
.avatar-rund, .anw:not(.agent) { color: var(--ink-2); background: linear-gradient(180deg, var(--knopf-hover), var(--knopf)); box-shadow: inset 0 0 0 1px var(--rand-2); }
.avatar-rund.ich { color: var(--akzent); box-shadow: inset 0 0 0 1px rgba(var(--akzent-rgb), .45); }
.anw:not(.agent) { box-shadow: inset 0 0 0 1px var(--rand-2), 0 0 0 2px var(--bg); font-size: 10px; }
/* Agenten: Kepler mit seinem Zeichen in Bernstein auf Schwarz */
.avatar-rund.agent, .anw.agent { background: #000; color: var(--akzent); box-shadow: inset 0 0 0 1px rgba(var(--akzent-rgb), .45); }
html.hell .avatar-rund.agent, html.hell .anw.agent { background: #111; color: #FFC46B; }
.avatar-rund.agent .ic, .anw.agent .ic { color: inherit; width: 14px; height: 14px; }
.avatar-rund.agent .kepler-zeichen, .anw.agent .kepler-zeichen { width: 15px; height: 14px; }
.anw.agent { box-shadow: inset 0 0 0 1px rgba(var(--akzent-rgb), .45), 0 0 0 2px var(--bg); }
.anw.agent.arbeitet::after { border-top-color: var(--akzent); border-right-color: var(--akzent); }
.meldung .anw.agent { box-shadow: inset 0 0 0 1px rgba(var(--akzent-rgb), .45); }
.meldung::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 0 2px 2px 0; background: var(--akzent); }
.meldung:hover { border-color: rgba(var(--akzent-rgb), .45); }
.navi .agent-punkt { background: var(--akzent); box-shadow: 0 0 0 3px rgba(var(--akzent-rgb), .18); }

/* Änderungen anderer leuchten ruhig auf, Änderungen von Kepler in Bernstein */
@keyframes blitz { 0% { box-shadow: 0 0 0 1px var(--rand-3), 0 0 0 4px var(--hover); } 100% { box-shadow: 0 0 0 1px transparent, 0 0 0 4px transparent; } }
@keyframes agent-blitz {
  0% { box-shadow: 0 0 0 1px var(--akzent), 0 0 0 5px rgba(var(--akzent-rgb), .16), 0 0 36px rgba(var(--akzent-rgb), .28); }
  100% { box-shadow: 0 0 0 1px transparent, 0 0 0 5px transparent, 0 0 36px transparent; } }
@keyframes zeile-blitz { 0% { background: var(--hover); } 100% { background: transparent; } }
@keyframes zeile-agent { 0% { background: rgba(var(--akzent-rgb), .12); } 100% { background: transparent; } }
@keyframes wert-blitz { 0% { background: rgba(var(--akzent-rgb), .16); } 100% { background: transparent; } }

/* Zielring und Kurven mit warmem Schein */
.ziel-erreicht { filter: drop-shadow(0 0 12px rgba(var(--akzent-rgb), .3)); }
.ziel-prognose { stroke: var(--akzent); stroke-opacity: .28; }
html.hell .ziel-erreicht { filter: none; }

/* Firmen ohne Bildchen: Name und Nummer tragen */
.firma-text { font-weight: 500; }
.objekt-kopf { min-height: 38px; }
.firmen-karte .objekt-name b { font-size: 14.5px; }
.chip.rahmen { height: 22px; padding: 0 9px; border-radius: 999px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rand-2); }
.auswahl-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rand-2); flex: none; }
.auswahl-ic .ic { width: 13px; height: 13px; }
.ck-oben .ck-firma { font-size: 11.5px; letter-spacing: .01em; color: var(--ink-3); }
.lese .ic { width: 14px; height: 14px; color: var(--ink-3); margin-right: 8px; }
.mcp-marke { color: var(--akzent); background: rgba(var(--akzent-rgb), .12); }
.zustimmung-paar .kachel.agent-kachel { background: #000; color: #FFC46B; box-shadow: inset 0 0 0 1px rgba(255,196,107,.45); }
.zustimmung-paar .kachel svg { width: 22px; height: 22px; }
.zustimmung-paar .kachel img { width: 30px; height: 30px; border-radius: 8px; }

/* Logo für Belege: der echte Briefkopf (obere 50,5 mm des Blatts), darunter Lage, Größe, Firmenname */
.logo-ablage { position: relative; }
.bk-papier { --s: .9; position: relative; aspect-ratio: 794 / 191; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 22px 44px -22px rgba(0,0,0,.7); outline: 2px dashed transparent; outline-offset: 6px; transition: outline-color .2s; }
html.hell .bk-papier { box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 18px 40px -20px rgba(16,24,40,.25), inset 0 0 0 1px #ececef; }
.bk-papier::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--akzent); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; transition: opacity .2s; }
.bk-papier.laedt::after { opacity: .9; animation: vz-laedt 1.1s var(--ease) infinite; }
.logo-ablage.ueber .bk-papier { outline-color: var(--akzent); }
.bk-regler { position: relative; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px 28px; margin-top: 18px; }
.bk-feld { display: flex; flex-direction: column; gap: 8px; }
.bk-feld-breit { flex: 1 1 220px; min-width: 200px; }
.bk-max { margin-left: 4px; font-weight: 400; color: var(--ink-4, var(--ink-3)); }
.bk-name { height: 32px; }
.bk-gespeichert { position: absolute; right: 0; top: -1px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gut-text); opacity: 0; pointer-events: none; }
.bk-gespeichert .ic { width: 14px; height: 14px; }
.bk-gespeichert.an { animation: gespeichert 2.4s var(--ease) both; }
@keyframes gespeichert { 0% { opacity: 0; transform: translateY(3px); } 12%, 72% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.vz-satz-hinweis { font-size: 11.5px; color: var(--ink-3); }
.logo-ablage-hinweis { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 8px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: #6b420a; background: rgba(255,196,107,.42); backdrop-filter: blur(2px); pointer-events: none; }
.logo-ablage-hinweis .ic { width: 20px; height: 20px; }
.logo-ablage.ueber .logo-ablage-hinweis { display: grid; }
.logo-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 16px; }


/* ══ Mobil: wie eine App ══════════════════════════════════════════════
   Unten eine Tab-Leiste (Übersicht, Aufgaben, Suche, Firmen, Mehr),
   „Mehr" öffnet die ganze Navigation als Blatt von unten. Tabellen
   werden zu Karten, Dialoge zu Bottom-Sheets; Eingaben in 16 px (iOS
   zoomt sonst), Tippflächen mindestens 40 px, Notch und Home-Indikator
   bleiben frei (safe-area).                                           */
.tableiste { display: none; }
@media (max-width: 720px) {
  :root { --tab-h: 58px; }
  body { -webkit-tap-highlight-color: transparent; }
  .tableiste { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--panel-rand); }
  .tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 46px; border: 0; background: none;
    font: 500 10.5px/1 var(--font); color: var(--ink-3); text-decoration: none; cursor: pointer; border-radius: 12px; }
  .tab-ic { position: relative; display: grid; place-items: center; width: 44px; height: 26px; border-radius: 13px; transition: background .2s var(--ease), color .2s; }
  .tab .ic { width: 21px; height: 21px; stroke-width: 1.7; }
  .tab.an { color: var(--ink); }
  .tab.an .tab-ic { background: var(--akzent-flaeche); color: var(--akzent-text); }
  .tab:active .tab-ic { transform: scale(.92); }
  .tab-zahl { position: absolute; top: -3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; line-height: 16px; font-weight: 600;
    color: var(--auf-akzent); background: var(--akzent); text-align: center; }

  /* Kopf: schmal, mit Platz für die Statusleiste (Home-Bildschirm-App) */
  .kopfleiste { height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
  .kopfleiste > .knopf.nur-schmal, .kopfleiste .suche-knopf { display: none; }
  .kopfleiste .live-anzeige { height: 28px; padding: 0 10px; }
  .panel { min-height: calc(100dvh - 52px); }
  .haupt { padding: 18px max(14px, env(safe-area-inset-right)) calc(var(--tab-h) + 34px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }

  /* „Mehr": die Navigation als Blatt von unten */
  .seitenleiste { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(86dvh, 720px); border-right: 0; border-top: 1px solid var(--leiste-rand);
    border-radius: 20px 20px 0 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); transform: translateY(104%); transition: transform .38s var(--swift); z-index: 80; }
  .seitenleiste::before { content: ""; display: block; width: 38px; height: 5px; margin: 2px auto 8px; border-radius: 3px; background: var(--rand-3); }
  body.navi-offen .seitenleiste { transform: none; box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
  .navi-schleier { z-index: 75; }
  .navi { gap: 18px; }
  .navi a { min-height: 44px; font-size: 15px; }
  .navi .navi-marke { display: none; }

  /* Seitenkopf */
  .titel { font-size: 21px; }
  .untertitel { font-size: 13px; }
  .seitenkopf { gap: 12px; margin-bottom: 18px; }
  .seitenkopf-rechts { width: 100%; }
  .seitenkopf-rechts .knopf-primaer { margin-left: auto; }

  /* Eingaben ohne iOS-Zoom, Tippflächen */
  input, select, textarea, .eingabe { font-size: 16px !important; }
  .knopf { min-height: 40px; }
  .knopf.knopf-klein { min-height: 34px; }
  .knopf.knopf-icon { min-width: 40px; }

  /* Tabellen werden Karten: erste Spalte als Titel, der Rest beschriftet darunter */
  .tabelle-huelle { margin: 0; overflow: visible; }
  .tabelle, .tabelle tbody { display: block; width: 100%; }
  .tabelle thead { display: none; }
  .tabelle tr { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; padding: 13px 2px; border-bottom: 1px solid var(--linie); }
  .tabelle tbody tr:last-child { border-bottom: 0; }
  .tabelle td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; max-width: 100%; text-align: left !important; white-space: normal; font-size: 13px; }
  .tabelle td:first-child { flex: 1 1 100%; }
  .tabelle td:not(:first-child)[data-titel]::before { content: attr(data-titel); display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 500; color: var(--ink-3); }
  .tabelle tr.klickbar:active { background: var(--hover); }
  .dok-name-text small, .dok-name-text b { white-space: normal; }
  .abschnitt.nur-tabelle { padding: 2px 14px 4px; }

  /* Positionen im Beleg: untereinander, beschriftet */
  .pos-tabelle thead { display: none; }
  .pos-tabelle, .pos-tabelle tbody { display: block; }
  .pos-tabelle tr { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .pos-tabelle td { display: block; padding: 0 !important; border: 0 !important; }
  .pos-tabelle td.griff { display: none; }
  .pos-tabelle td.nr { width: 22px; padding-top: 10px !important; }
  .pos-tabelle td:nth-child(3), .pos-tabelle.nur-lesen td:nth-child(2) { flex: 1 1 calc(100% - 80px); min-width: 0; }
  .pos-tabelle td:last-child:has(.weg-knopf) { margin-left: auto; }
  .pos-tabelle .weg-knopf { opacity: 1; }
  .pos-tabelle td[class*="spalte-"], .pos-tabelle td.summe { flex: 1 1 calc(25% - 10px); min-width: 66px; }
  .pos-tabelle td[class*="spalte-"]::before, .pos-tabelle td.summe::before { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 500; color: var(--ink-3); text-align: left; }
  .pos-tabelle td.spalte-menge::before { content: "Menge"; } .pos-tabelle td.spalte-einheit::before { content: "Einheit"; }
  .pos-tabelle td.spalte-preis::before { content: "Preis"; } .pos-tabelle td.spalte-rabatt::before { content: "Rabatt"; } .pos-tabelle td.summe::before { content: "Gesamt"; text-align: right; }
  .pos-tabelle td.summe { text-align: right; padding-top: 0 !important; }
  .pos-tabelle td[class*="spalte-"] { text-align: left !important; }
  .pos-tabelle input.zelle, .pos-tabelle .zelle-einheit { width: 100% !important; }

  /* Bereiche: volle Breite, die Fußleiste klebt über der Tab-Leiste */
  .flaeche-kopf { margin-bottom: 16px; }
  .flaeche-kopf .titel { font-size: 22px; }
  .flaeche-karte { padding: 18px 16px 18px; border-radius: 14px; }
  .flaeche-karte .felder, .flaeche-karte .felder.weit { grid-template-columns: 1fr; gap: 14px; }
  .flaeche-karte > .aktionen:last-child, .flaeche-karte > form:last-child > .aktionen:last-child {
    position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 5; margin: 22px -16px -18px; padding: 12px 16px; flex-wrap: wrap;
    border-radius: 0 0 14px 14px; box-shadow: 0 -10px 24px -18px rgba(0,0,0,.5); }
  .flaeche .aktionen .rechts { flex: 1; display: flex; gap: 8px; margin-left: 0; }
  .flaeche .aktionen .rechts .knopf, .flaeche-karte > .aktionen > .knopf { flex: 1; justify-content: center; }
  .rueckfrage { padding: 14px; }
  .rueckfrage-knoepfe { width: 100%; }
  .rueckfrage-knoepfe .knopf { flex: 1; justify-content: center; }
  .felder.weit, .felder { grid-template-columns: 1fr; }

  /* Meldungen und Uploads über der Tab-Leiste */
  .toast { bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); }
  .upload-leiste { right: 12px; left: 12px; width: auto; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); }

  /* Kennzahlen, Fakten, Raster */
  .fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fakt { padding: 11px 12px; }
  .fakt b { font-size: 14px; }

  /* Verträge */
  .lebenszyklus { overflow-x: auto; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding: 0 14px 4px; }
  .lebenszyklus::-webkit-scrollbar { display: none; }
  .lebenszyklus li { flex: 0 0 96px; }
  .zeitleiste-vertraege { --zv-name: 108px; }
  .zv-skala span:nth-child(even) { display: none; }
  .zv-name small { display: none; }
  .zv-legende { flex-wrap: wrap; gap: 6px 10px; }
  .pos-kopf { display: none; }
  .pos-zeile { grid-template-columns: 1fr 1fr 32px; }
  .pos-zeile input:first-child { grid-column: 1 / -1; }
  .frist-eingabe { grid-template-columns: 80px minmax(0, 1fr); }

  /* Dokumente */
  .dms-haupt { padding: 12px; }
  .dms-werkzeug { flex-wrap: nowrap; }
  .dok-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dok-karte-bild { height: 104px; }
  .dok-vorschau.pdf iframe { height: 70dvh; }
  .bezug-neu { grid-template-columns: 1fr; }
  .filterzeile { gap: 10px; }
  .filterzeile .suchfeld { flex: 1 1 100%; }
  .filterzeile .suchfeld .eingabe { width: 100%; }

  /* Pipeline: Spalten wischen */
  .kanban { grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .kanban::-webkit-scrollbar { display: none; }
  .kanban-spalte { scroll-snap-align: start; }
}
@keyframes blatt-hoch { from { transform: translateY(100%); } }
/* Ohne Maus: was sonst erst beim Darüberfahren erscheint, ist da */
@media (hover: none) {
  .dms-ordner-menue, .pos-tabelle .weg-knopf { opacity: 1; }
  .dms-ordner-menue { position: static; margin-left: 2px; }
  .dms-ordner:hover small { visibility: visible; }
}
/* Als App vom Home-Bildschirm: kein Gummiband oben, Kopf unter der Statusleiste */
@media (display-mode: standalone) {
  html, body { overscroll-behavior-y: none; }
}

/* ══ Dokumente (DMS) ═════════════════════════════════════════════════ */
.datei-kachel { --g: 34px; position: relative; flex: none; display: inline-grid; place-items: end center; width: calc(var(--g) * .8); height: var(--g);
  border-radius: 5px 9px 5px 5px; background: var(--knopf); box-shadow: inset 0 0 0 1px var(--rand-2); padding-bottom: calc(var(--g) * .14); }
.datei-kachel i { position: absolute; right: 0; top: 0; width: 34%; height: 27%; border-radius: 0 8px 0 4px; background: linear-gradient(225deg, var(--panel, var(--bg)) 50%, var(--rand-2) 50%); }
.datei-kachel b { font-size: calc(var(--g) * .235); font-weight: 650; letter-spacing: .02em; color: var(--ink-2); line-height: 1; }
.datei-kachel.familie-pdf b { color: var(--akzent-text); }
.datei-kachel.klein { --g: 28px; } .datei-kachel.gross { --g: 64px; } .datei-kachel.kopf { --g: 44px; } .datei-kachel.riesig { --g: 96px; }
html.hell .datei-kachel { background: #fff; }

.dms { position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 16px; align-items: start; }
.dms-leiste { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 18px; padding: 14px 10px; background: var(--flaeche); border: 1px solid var(--karte-rand); border-radius: 14px; box-shadow: var(--schatten); }
.dms-gruppe { display: flex; flex-direction: column; gap: 1px; }
.dms-titel { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 6px 4px 8px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.dms-ansicht, .dms-ordner a { display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 0 8px; border-radius: 8px; font-size: 13px; color: var(--ink-2); text-decoration: none; min-width: 0;
  transition: background .15s, color .15s; }
.dms-ansicht .ic, .dms-ordner .ic { width: 15px; height: 15px; color: var(--ink-3); }
.dms-ansicht span, .dms-ordner a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dms-ansicht small, .dms-ordner small { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dms-ansicht:hover, .dms-ordner a:hover { background: var(--hover); color: var(--ink); }
.dms-ansicht.an, .dms-ordner.an a { background: var(--akzent-flaeche); color: var(--ink); }
.dms-ansicht.an .ic, .dms-ordner.an .ic { color: var(--akzent-text); }
.dms-ordner { position: relative; display: flex; align-items: center; padding-left: calc(var(--tiefe, 0) * 14px); }
.dms-ordner a { flex: 1; }
.dms-ordner-menue { position: absolute; right: 2px; opacity: 0; transition: opacity .15s; }
.dms-ordner:hover .dms-ordner-menue, .dms-ordner-menue:focus-visible { opacity: 1; }
.dms-ordner:hover small { visibility: hidden; }
.dms-leer { margin: 2px 8px; font-size: 12px; color: var(--ink-3); }
.dms-haupt { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; background: var(--flaeche); border: 1px solid var(--karte-rand); border-radius: 14px; box-shadow: var(--schatten); }
.dms-werkzeug { display: flex; align-items: center; gap: 10px; }
.dok-suche { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; }
.dok-suche > .ic { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.dok-suche .eingabe { width: 100%; height: 38px; padding-left: 38px; border-radius: 10px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: 999px; font-size: 12px; color: var(--ink); text-decoration: none;
  background: var(--akzent-flaeche); box-shadow: inset 0 0 0 1px rgba(var(--akzent-rgb), .28); }
.filter-chip .ic { width: 13px; height: 13px; color: var(--ink-3); }
.filter-chip:hover .ic:last-child { color: var(--ink); }
.dms-treffer { margin: 0; font-size: 12px; color: var(--ink-3); }
.dok-tabelle td { vertical-align: middle; }
.nowrap { white-space: nowrap; }
.dok-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dok-name-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dok-name-text b { display: flex; align-items: center; gap: 6px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-name-text small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 560px; }
.dok-schloss .ic { width: 13px; height: 13px; color: var(--warn-text); }
.schnipsel mark { background: rgba(var(--akzent-rgb), .22); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.bezug-reihe { display: flex; flex-wrap: wrap; gap: 4px; }
.bezug { display: inline-flex; align-items: center; gap: 5px; max-width: 190px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; color: var(--ink-2);
  background: var(--knopf); box-shadow: inset 0 0 0 1px var(--rand); text-decoration: none; }
.bezug span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bezug .ic { width: 12px; height: 12px; color: var(--ink-3); }
.bezug:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--rand-2); }
.dok-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 12px; }
.dok-karte { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; background: var(--knopf);
  box-shadow: inset 0 0 0 1px var(--rand); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.dok-karte:hover { box-shadow: inset 0 0 0 1px var(--rand-2), 0 10px 24px -14px rgba(0,0,0,.6); transform: translateY(-1px); }
.dok-karte-bild { height: 128px; display: grid; place-items: center; background: var(--feld); border-bottom: 1px solid var(--rand); overflow: hidden; }
.dok-karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.dok-karte-text { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; min-width: 0; }
.dok-karte-text b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-karte-text small { font-size: 11.5px; color: var(--ink-3); }
.dok-karte-schnipsel { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dms-ablage-leer { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 46px 20px; border-radius: 12px; border: 1.5px dashed var(--rand-2); }
.dms-ablage-leer b { font-size: 14px; font-weight: 600; }
.dms-ablage-leer p { margin: 0 0 6px; max-width: 460px; font-size: 13px; color: var(--ink-3); }
.dms-ablage-leer.klein { padding: 28px 16px; }
.dms-ablage-hinweis { position: absolute; inset: 0; z-index: 5; display: none; place-items: center; align-content: center; gap: 8px; border-radius: 14px; font-size: 14px; font-weight: 600;
  color: var(--ink); background: rgba(var(--akzent-rgb), .14); box-shadow: inset 0 0 0 2px rgba(var(--akzent-rgb), .7); pointer-events: none; }
.dms.ueber > .dms-ablage-hinweis, .dok-ablage.ueber > .dms-ablage-hinweis, .dok-ablage-bereich.ueber > .dms-ablage-hinweis { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.dms-ablage-hinweis .ic { width: 22px; height: 22px; color: var(--akzent-text); }
.dms.ueber > .dms-ablage-hinweis, .dok-ablage.ueber > .dms-ablage-hinweis, .dok-ablage-bereich.ueber > .dms-ablage-hinweis { display: grid; animation: blende .15s var(--ease); }
.dok-ablage, .dok-ablage-bereich { position: relative; }
.blaettern { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; font-size: 12.5px; }

/* Ein Dokument */
.dok-raster { align-items: start; }
.dok-vorschau-karte { min-width: 0; }
.dok-vorschau { border-radius: 10px; overflow: hidden; background: var(--feld); box-shadow: inset 0 0 0 1px var(--rand); }
.dok-vorschau.pdf iframe { display: block; width: 100%; height: max(520px, calc(100vh - 250px)); border: 0; background: #525659; }
.dok-vorschau.bild { display: grid; place-items: center; padding: 18px; background-image: conic-gradient(var(--hover) 25%, transparent 0 50%, var(--hover) 0 75%, transparent 0); background-size: 18px 18px; }
.dok-vorschau.bild img { max-width: 100%; max-height: calc(100vh - 290px); object-fit: contain; border-radius: 4px; }
.dok-vorschau.text pre { margin: 0; max-height: calc(100vh - 270px); overflow: auto; padding: 18px 20px; font: 12.5px/1.65 var(--mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.dok-vorschau.text p { margin: 0; padding: 8px 20px 12px; }
.dok-vorschau.leer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 20px; text-align: center; }
.dok-vorschau.leer b { font-size: 15px; font-weight: 600; margin-top: 8px; }
.dok-vorschau.leer p { margin: 0 0 8px; color: var(--ink-3); font-size: 13px; max-width: 420px; }
.bezug-zeile { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; border-bottom: 1px solid var(--linie); }
.bezug-zeile:last-of-type { border-bottom: 0; }
.bezug-zeile > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bezug-zeile small { font-size: 11.5px; color: var(--ink-3); }
.bezug-zeile a, .bezug-zeile span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bezug-neu { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.bezug-suche .auswahl, .bezug-suche .eingabe { width: 100%; }
.versionen { display: flex; flex-direction: column; }
.version { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.version:last-child { border-bottom: 0; }
.version-nr { flex: none; min-width: 30px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 6px; font: 600 11px/1 var(--mono); color: var(--ink-3); background: var(--knopf); box-shadow: inset 0 0 0 1px var(--rand); }
.version.aktuell .version-nr { color: var(--auf-akzent); background: var(--akzent); box-shadow: none; }
.version-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.version-text b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-text small { font-size: 11.5px; color: var(--ink-3); }
.version-text p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-2); }
.version-knoepfe { display: flex; gap: 2px; }
.mini-verlauf { display: flex; flex-direction: column; gap: 10px; }
.mini-verlauf-zeile { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; }
.mini-verlauf-zeile > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-verlauf-zeile small { font-size: 11.5px; color: var(--ink-3); }
.punkt-klein { width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--rand-3); flex: none; }
.mini-verlauf-zeile:first-child .punkt-klein { background: var(--akzent); }

/* Hochladen: Leiste unten rechts mit Fortschritt je Datei */
.upload-leiste { position: fixed; z-index: 120; right: 18px; bottom: 18px; width: min(360px, calc(100vw - 24px)); padding: 10px 10px 8px; border-radius: 14px;
  background: var(--meldung-bg, var(--flaeche)); border: 1px solid var(--rand-2); box-shadow: 0 18px 50px -12px rgba(0,0,0,.6); opacity: 0; transform: translateY(16px) scale(.98);
  pointer-events: none; transition: opacity .25s var(--ease), transform .3s var(--swift); }
.upload-leiste.an { opacity: 1; transform: none; pointer-events: auto; }
.upload-kopf { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 6px 6px; font-size: 13px; }
.upload-zeile { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 9px; }
.upload-zeile.fehler { background: var(--kritisch-flaeche); }
.upload-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.upload-name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-text small { font-size: 11px; color: var(--ink-3); }
.upload-zeile.fehler small { color: var(--kritisch-text); }
.upload-spur { height: 3px; border-radius: 3px; background: var(--rand); overflow: hidden; margin-top: 2px; }
.upload-spur i { display: block; height: 100%; background: var(--akzent); transform-origin: 0 50%; transition: transform .2s linear; }
.upload-zeile.fertig .upload-spur i { background: var(--gut); }
.upload-zeile.fehler .upload-spur i { background: var(--kritisch); }

/* ══ Konto, Betrieb, Export ════════════════════════════════════════ */
.zf-einrichten { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; margin-bottom: 14px; }
.zf-qr { padding: 10px; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.zf-qr svg { display: block; width: 100%; height: auto; }
.zf-liste { margin: 0 0 10px; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.zf-geheimnis { display: block; margin: 6px 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--flaeche-2); border: 1px solid var(--rand); font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; word-break: break-all; }
.zf-code { font-family: var(--mono); font-size: 18px; letter-spacing: .3em; text-align: center; max-width: 220px; }
.zf-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 8px 0 12px; }
.zf-codes code { padding: 8px 10px; border-radius: 8px; background: var(--flaeche-2); border: 1px solid var(--rand); font-family: var(--mono); font-size: 13px; text-align: center; letter-spacing: .08em; }
.stapel.klein { gap: 10px; }
.geraete { display: flex; flex-direction: column; }
.geraet { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rand); }
.geraet:last-child { border-bottom: 0; }
.geraet b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.geraet small { color: var(--ink-3); font-size: 12px; }
.mailvorlagen { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mailvorlage { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.mailvorlage:hover { border-color: var(--rand-2); background: var(--hover); }
.mailvorlage b { font-size: 13px; font-weight: 600; }
.mailvorlage small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mono-text { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; }
.post-liste { display: flex; flex-direction: column; }
.post { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rand); font-size: 13px; }
.post:last-child { border-bottom: 0; }
.post b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post small { display: block; color: var(--ink-3); font-size: 11.5px; }
.post .fehler-text { color: var(--kritisch-text); }
.post.gesendet .ikachel { color: var(--gut-text); }
.post.fehler .ikachel { color: var(--kritisch-text); }
.sys-zeile { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rand); font-size: 13px; }
.sys-zeile:last-child { border-bottom: 0; }
.sys-zeile span { color: var(--ink-3); }
.sys-zeile b { font-weight: 600; text-align: right; }
.gut-text { color: var(--gut-text); }
.warn-text { color: var(--akzent-text); }
.schalter-reihe { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 10px; }
.export-ergebnis { margin: 6px 0 14px; }
.export-ergebnis .fakten { margin-bottom: 10px; }
.hinweis-band.kritisch { background: var(--kritisch-flaeche); color: var(--kritisch-text); }
.anmeldung-verweis { align-self: center; margin-top: 4px; padding: 6px 8px; border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.anmeldung-verweis:hover { color: var(--ink); }
.anmeldung-hinweis { margin: 0 0 6px; padding: 10px 12px; border-radius: 10px; background: var(--gut-flaeche); color: var(--gut-text); font-size: 13px; }
.anmeldung-code { font-family: var(--mono); font-size: 20px !important; letter-spacing: .3em; text-align: center; }
.anmeldung-seite.voll { flex: 1; }
@media (max-width: 720px) {
  .zf-einrichten { grid-template-columns: 1fr; }
  .zf-qr { max-width: 200px; }
}
.wege { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.weg { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease), transform .12s var(--ease); }
.weg:hover:not(:disabled) { border-color: var(--rand-2); background: var(--hover); }
.weg:active:not(:disabled) { transform: scale(.99); }
.weg:disabled { opacity: .5; cursor: default; }
.weg.empfohlen { border-color: rgba(var(--akzent-rgb), .55); box-shadow: inset 0 0 0 1px rgba(var(--akzent-rgb), .25); }
.weg.empfohlen .ikachel { background: rgba(var(--akzent-rgb), .16); color: var(--akzent-text); }
.weg b { font-size: 13.5px; font-weight: 600; }
.weg small { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.vz-befund.gut .ic { color: var(--gut-text); }
.vz-befund.warnung .ic { color: var(--akzent-text); }
@media (max-width: 900px) { .wege { grid-template-columns: 1fr; } }


/* ══ Sagan ══════════════════════════════════════════════════════════
   Was Sagan über das Tycho-Fundament hinaus braucht: Chat und Kanäle
   in zwei Spalten, Nachrichten, Eingabe, Emoji-Auswahl, Status,
   Anrufe und die Besprechungsseite. Bernstein markiert wie überall:
   Auswahl, Fokus, das Eigene, wer gerade spricht.                    */

/* ── Volle Seiten: Chat und Teams füllen das Panel, rollen innen ── */
body.seite-voll { overflow: hidden; }
body.seite-voll .panel { height: calc(100dvh - 64px); min-height: 0; overflow: hidden; }
body.seite-voll .haupt { max-width: none; padding: 0; height: 100%; }
body.seite-voll #inhalt, body.seite-voll .seite.voll { height: 100%; }
body.seite-voll #seitenkopf { display: none; }
body.seite-voll.mit-flaeche { overflow: auto; }
body.seite-voll.mit-flaeche .panel { height: auto; min-height: calc(100vh - 64px); overflow: visible; }
body.seite-voll.mit-flaeche .haupt { padding: 32px 36px 80px; max-width: 1280px; }

.zweispaltig { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: 100%; min-height: 0; }
.spalte-liste { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--linie); }
.spalte-kopf { display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 12px 0 20px; flex: none; }
.spalte-kopf h1 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.spalte-kopf-knoepfe { margin-left: auto; display: flex; gap: 2px; }
.spalte-filter { padding: 0 14px 8px; flex: none; }
.segment.voll { display: flex; width: 100%; }
.segment.voll button { flex: 1; }
.segment.klein button { height: 26px; font-size: 12.5px; padding: 0 9px; }
.spalte-suche { position: relative; margin: 0 14px 8px; flex: none; }
.spalte-suche .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ink-3); pointer-events: none; }
.liste-suche { width: 100%; height: 32px; padding: 0 10px 0 31px; border-radius: 9px; border: 1px solid var(--rand); background: var(--feld); font-size: 13px; color: var(--ink); outline: none; transition: border-color .2s; }
.liste-suche:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(var(--akzent-rgb), .12); }
.chat-liste, .team-liste { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 14px; overscroll-behavior: contain; scrollbar-width: thin; }
.liste-titel { padding: 12px 12px 5px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.liste-leer { padding: 22px 14px; font-size: 13px; color: var(--ink-3); line-height: 1.55; }

.chat-zeile { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin: 1px 0; border-radius: 10px; color: var(--ink-2);
  transition: background .18s var(--ease), color .18s; }
.chat-zeile:hover { background: var(--hover); color: var(--ink); }
.chat-zeile.an { background: var(--aktiv); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rand); }
.chat-zeile.an::before { content: ""; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--akzent); }
.chat-zeile .avatar-rund { width: 34px; height: 34px; font-size: 12px; }
.chat-zeile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chat-zeile-oben, .chat-zeile-unten { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chat-titel { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-zeile time { flex: none; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chat-vorschau { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-zeile.ungelesen .chat-titel { font-weight: 650; }
.chat-zeile.ungelesen .chat-vorschau { color: var(--ink-2); }
.chat-zeile.ungelesen time { color: var(--akzent); }
.zahl-marke { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 650;
  background: var(--akzent); color: var(--auf-akzent); font-variant-numeric: tabular-nums; }
.zahl-marke.leise { background: var(--rand-2); color: var(--ink-2); }
.zahl-marke.erwaehnt { background: var(--kritisch); color: #fff; }
.punkt-marke { width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); flex: none; margin-left: auto; }
.laeuft-marke { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--gut-text); min-width: 0; }
.laeuft-marke .ic { width: 13px; height: 13px; }
.laeuft-marke.gross { margin-top: 14px; font-size: 13px; }
.ic.klein { width: 14px; height: 14px; }
.ic.leise { color: var(--ink-3); }

.avatar-gruppe { position: relative; width: 34px; height: 34px; flex: none; }
.avatar-gruppe .avatar-rund { position: absolute; width: 22px; height: 22px; font-size: 8.5px; }
.avatar-gruppe .avatar-rund:first-child { left: 0; top: 0; }
.avatar-gruppe .avatar-rund:nth-child(2) { right: 0; bottom: 0; box-shadow: 0 0 0 2px var(--panel), inset 0 0 0 1px var(--rand-2); }
.avatar-rund.besprechung, .avatar-rund.notizen { width: 34px; height: 34px; color: var(--ink-2); }
.avatar-rund.besprechung .ic, .avatar-rund.notizen .ic { width: 16px; height: 16px; }
.avatar-rund.gast { color: var(--ink-3); background: transparent; box-shadow: inset 0 0 0 1px var(--rand-3); }
.avatar-rund.system { color: var(--ink-3); }
.avatar-rund.system .ic { width: 13px; height: 13px; }
.avatar-rund.gross { width: 44px; height: 44px; font-size: 15px; }
.avatar-rund.riesig { width: 84px; height: 84px; font-size: 28px; font-weight: 600; }
.avatar-rund { position: relative; }

/* Status: kleiner Punkt unten rechts, mit eigener Form je Status */
.avatar-rund > .status-punkt { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; box-shadow: 0 0 0 2px var(--panel); }
.avatar-rund.klein > .status-punkt { width: 8px; height: 8px; right: -2px; bottom: -2px; }
.avatar-rund.mini > .status-punkt { display: none; }
.avatar-rund.gross > .status-punkt { width: 13px; height: 13px; }
.avatar-rund.riesig > .status-punkt { width: 20px; height: 20px; right: 2px; bottom: 2px; box-shadow: 0 0 0 3px var(--panel); }
.status-punkt.verfuegbar { background: var(--gut); }
.status-punkt.beschaeftigt { background: var(--kritisch); }
.status-punkt.nicht_stoeren { background: var(--kritisch); background-image: linear-gradient(#fff, #fff); background-size: 55% 18%; background-position: center; background-repeat: no-repeat; }
.status-punkt.gleich_zurueck, .status-punkt.abwesend { background: var(--warn); }
.status-punkt.offline { background: transparent; box-shadow: inset 0 0 0 1.6px var(--ink-3), 0 0 0 2px var(--panel); }
.menue .status-punkt { box-shadow: none; }
.menue .status-punkt.offline { box-shadow: inset 0 0 0 1.6px var(--ink-3); }

/* ── Unterhaltung: Kopf, Reiter, Nachrichten, Eingabe ──────────── */
.chat-haupt { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.chat-laden, .chat-willkommen { flex: 1; display: grid; place-items: center; align-content: center; gap: 10px; padding: 40px; text-align: center; color: var(--ink-3); }
.chat-willkommen b { color: var(--ink); font-size: 16px; font-weight: 600; }
.chat-willkommen p { margin: 0; max-width: 42ch; font-size: 13.5px; }
.chat-willkommen .knopf-reihe { margin-top: 8px; justify-content: center; }
.ikachel.gross { width: 52px; height: 52px; border-radius: 15px; }
.ikachel.gross .ic { width: 23px; height: 23px; }

.unterhaltung { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; }
.unterhaltung.ueber::after { content: "Dateien hier ablegen"; position: absolute; inset: 10px; z-index: 30; display: grid; place-items: center; border-radius: 14px;
  border: 1.5px dashed var(--akzent); background: rgba(var(--akzent-rgb), .07); color: var(--akzent); font-weight: 600; pointer-events: none; }
.unterhaltung-kopf { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--linie); flex: none; min-width: 0; }
.kopf-avatar { flex: none; display: grid; background: none; border: 0; padding: 0; cursor: pointer; }
.kopf-avatar .avatar-rund { width: 34px; height: 34px; font-size: 12px; }
.unterhaltung-titel { min-width: 0; display: flex; flex-direction: column; flex: 0 1 auto; }
.unterhaltung-titel h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.unterhaltung-unter { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unterhaltung-unter a:hover { color: var(--ink); }
.unterhaltung-reiter { display: flex; gap: 2px; margin-left: 14px; align-self: stretch; }
.unterhaltung-reiter button { position: relative; padding: 0 11px; border: 0; background: none; font-size: 13px; font-weight: 500; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.unterhaltung-reiter button:hover { color: var(--ink); }
.unterhaltung-reiter button.an { color: var(--ink); }
.unterhaltung-reiter button.an::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--akzent); }
.unterhaltung-knoepfe { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: none; }
.knopf .knopf-zahl, .schalt-knopf .knopf-zahl { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.knopf.knopf-icon:has(.knopf-zahl) { width: auto; padding: 0 9px; gap: 5px; }
.zurueck-knopf { margin-left: -8px; }
.besprechung-banner { display: flex; align-items: center; gap: 9px; padding: 9px 18px; border-bottom: 1px solid var(--linie); background: var(--gut-flaeche); font-size: 13px; flex: none; }
.besprechung-banner .ic { width: 15px; height: 15px; color: var(--gut-text); }
.besprechung-banner span { color: var(--ink-2); }
.besprechung-banner .knopf { margin-left: auto; }
.unterhaltung-koerper { flex: 1; min-height: 0; display: flex; }
.unterhaltung-inhalt { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.unterhaltung-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.reiter-inhalt { flex: 1; overflow-y: auto; padding: 18px 22px 28px; }
.nur-lesen-hinweis { padding: 14px 22px 18px; color: var(--ink-3); font-size: 13px; text-align: center; border-top: 1px solid var(--linie); }

/* Seitenpanel rechts: Mitglieder, Thread */
.seitenpanel { width: 340px; flex: none; border-left: 1px solid var(--linie); display: flex; flex-direction: column; min-height: 0; background: var(--panel); animation: panel-rein .24s var(--swift) both; }
@keyframes panel-rein { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.thread-panel { width: min(460px, 44%); }
.panel-kopf { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--linie); flex: none; }
.panel-kopf h3 { margin: 0; font-size: 14px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-liste { flex: 1; overflow-y: auto; padding: 8px 10px; }
.panel-fuss { padding: 12px 16px 16px; border-top: 1px solid var(--linie); display: flex; flex-direction: column; gap: 10px; }
.person-zeile { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; min-width: 0; }
.person-zeile:hover { background: var(--hover); }
.person-zeile.gross .avatar-rund { width: 34px; height: 34px; font-size: 12px; }
.person-zeile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-zeile-text b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-zeile-text small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.mini { height: 18px !important; padding: 0 6px !important; font-size: 10.5px; }

/* Nachrichtenliste */
.nachrichtenliste { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 8px 0 6px; overscroll-behavior: contain; scroll-padding-bottom: 20px; }
.nachrichten-innen { display: flex; flex-direction: column; padding: 0 22px; max-width: 1100px; margin: 0 auto; }
.nachrichten-leer { margin: auto; padding: 60px 20px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.tagestrenner { display: flex; align-items: center; gap: 14px; margin: 18px 0 10px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.tagestrenner::before, .tagestrenner::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.neu-trenner { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; font-size: 11.5px; font-weight: 600; color: var(--kritisch-text); }
.neu-trenner::before { content: ""; flex: 1; height: 1px; background: var(--kritisch); opacity: .55; }
.neu-trenner::after { content: ""; width: 24px; height: 1px; background: var(--kritisch); opacity: .55; }
.mehr-laden { display: flex; justify-content: center; padding: 10px 0; }

.nachricht { position: relative; display: flex; gap: 11px; padding: 6px 10px; margin: 0 -10px; border-radius: 10px; transition: background .15s; }
.nachricht.gruppiert { padding-top: 1px; padding-bottom: 1px; }
.nachricht:not(.gruppiert) { margin-top: 8px; }
.nachricht:hover { background: var(--hover); }
.nachricht-avatar { width: 32px; flex: none; display: flex; justify-content: center; padding-top: 2px; }
.nachricht-avatar .avatar-rund { width: 32px; height: 32px; font-size: 11.5px; }
.nachricht-avatar .kurzzeit { font-size: 10.5px; color: var(--ink-3); opacity: 0; padding-top: 6px; font-variant-numeric: tabular-nums; }
.nachricht:hover .kurzzeit { opacity: 1; }
.nachricht-rumpf { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.nachricht-kopf { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; font-size: 12.5px; }
.nachricht-autor { font-weight: 600; font-size: 13px; color: var(--ink); cursor: default; }
.nachricht-autor.ich { color: var(--akzent); }
.nachricht-kopf time { color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.bearbeitet { color: var(--ink-3); font-size: 11.5px; }
.agent-vermerk { display: inline-flex; align-items: center; gap: 5px; height: 19px; padding: 0 7px 0 5px; border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--akzent); background: rgba(var(--akzent-rgb), .12); }
.agent-vermerk .ic { width: 11px; height: 11px; }
.blase { max-width: min(760px, 100%); padding: 8px 13px; border-radius: 4px 14px 14px 14px; background: var(--flaeche-2); border: 1px solid var(--rand); font-size: 14px; line-height: 1.55; color: var(--ink);
  overflow-wrap: anywhere; }
.nachricht.gruppiert .blase { border-radius: 14px; }
html.hell .blase { background: #f4f4f5; border-color: #ececef; }
/* Eigene Nachrichten rechts, mit einem Hauch Bernstein */
.modus-chat .nachricht.eigen { flex-direction: row-reverse; }
.modus-chat .nachricht.eigen .nachricht-rumpf { align-items: flex-end; }
.modus-chat .nachricht.eigen .nachricht-kopf { flex-direction: row-reverse; }
.modus-chat .nachricht.eigen .nachricht-autor { display: none; }
.modus-chat .nachricht.eigen .blase { border-radius: 14px 4px 14px 14px; background: rgba(var(--akzent-rgb), .085); border-color: rgba(var(--akzent-rgb), .22); }
.modus-chat .nachricht.eigen.gruppiert .blase { border-radius: 14px; }
html.hell .modus-chat .nachricht.eigen .blase { background: rgba(var(--akzent-rgb), .07); border-color: rgba(var(--akzent-rgb), .2); }
.modus-chat .nachricht.eigen .reaktionen { justify-content: flex-end; }
.blase.erwaehnt-mich { box-shadow: inset 3px 0 0 var(--akzent); }
.blase.w-wichtig { border-color: rgba(229,72,77,.35); }
.blase.w-dringend { border-color: var(--kritisch); box-shadow: 0 0 0 1px var(--kritisch), 0 0 22px rgba(229,72,77,.18); }
.wichtigkeit { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--kritisch-text); }
.wichtigkeit .ic { width: 12px; height: 12px; }
.nachricht-betreff { font-size: 15px; font-weight: 600; margin-bottom: 3px; letter-spacing: -.01em; }
.nachricht-text p { margin: 0; }
.nachricht-text p + p, .nachricht-text p + ul, .nachricht-text ul + p, .nachricht-text p + ol, .nachricht-text ol + p, .nachricht-text p + pre, .nachricht-text pre + p, .nachricht-text blockquote + p, .nachricht-text p + blockquote { margin-top: 8px; }
.nachricht-text .liste { margin: 4px 0; padding-left: 22px; }
.nachricht-text .zitat { margin: 4px 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--rand-3); color: var(--ink-2); }
.nachricht-text .zitat p { margin: 0; }
.inline-code { font-family: var(--mono); font-size: .88em; padding: 1px 5px; border-radius: 5px; background: var(--code-bg); border: 1px solid var(--rand); }
.code-block { margin: 6px 0; padding: 10px 12px; border-radius: 9px; background: var(--code-bg); border: 1px solid var(--rand); overflow-x: auto; font: 12.5px/1.55 var(--mono); white-space: pre; max-width: 100%; }
.textlink { color: var(--akzent-text); text-decoration: underline; text-decoration-color: rgba(106,165,240,.35); text-underline-offset: 2px; }
.textlink:hover { text-decoration-color: currentColor; }
.erwaehnung { display: inline; padding: 0 3px; border-radius: 5px; font-weight: 600; color: var(--akzent-text); background: var(--akzent-flaeche); white-space: nowrap; }
.erwaehnung.ich { color: var(--akzent); background: rgba(var(--akzent-rgb), .16); }
.erwaehnung.alle { color: var(--warn-text); background: var(--warn-flaeche); }
.nachricht-text.geloescht { font-style: italic; color: var(--ink-3); }
.nachricht-text.nur-emoji { font-size: 34px; line-height: 1.25; }
.ist-geloescht .blase { background: transparent; }
.zitat-block { display: flex; flex-direction: column; gap: 1px; width: 100%; max-width: 520px; margin: 2px 0 6px; padding: 5px 10px; border: 0; border-left: 3px solid var(--rand-3); border-radius: 4px 8px 8px 4px;
  background: var(--hover); text-align: left; font: inherit; color: var(--ink-2); cursor: pointer; }
.zitat-block b { font-size: 12px; color: var(--ink); }
.zitat-block span { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.angeheftet-marke { position: absolute; top: 8px; right: 12px; color: var(--akzent); }
.angeheftet-marke .ic { width: 13px; height: 13px; }
.nachricht.aufleuchten .blase { animation: aufleuchten 1.8s var(--ease); }
@keyframes aufleuchten { 0%, 40% { box-shadow: 0 0 0 2px var(--akzent), 0 0 28px rgba(var(--akzent-rgb), .35); } 100% { box-shadow: none; } }
.nachricht.neu-rein { animation: nachricht-rein .32s var(--swift) both; }
@keyframes nachricht-rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Werkzeuge über der Nachricht */
.nachricht-werkzeuge { position: absolute; top: -16px; right: 14px; z-index: 5; display: flex; align-items: center; gap: 1px; padding: 3px; border-radius: 11px;
  background: var(--flaeche-2); border: 1px solid var(--rand-2); box-shadow: var(--schatten-pop); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .14s, transform .14s var(--ease); }
.nachricht:hover .nachricht-werkzeuge, .nachricht:focus-within .nachricht-werkzeuge { opacity: 1; transform: none; pointer-events: auto; }
.modus-chat .nachricht.eigen .nachricht-werkzeuge { right: auto; left: 14px; }
.nachricht-werkzeuge button { display: grid; place-items: center; width: 30px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; font-size: 16px; }
.nachricht-werkzeuge button:hover { background: var(--aktiv); color: var(--ink); }
.nachricht-werkzeuge .wz-emoji { transition: transform .12s var(--swift); }
.nachricht-werkzeuge .wz-emoji:hover { transform: scale(1.22); }
.nachricht-werkzeuge .ic { width: 16px; height: 16px; }

/* Reaktionen */
.reaktionen { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaktion { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--rand-2); background: var(--flaeche);
  font: 500 12px var(--font); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s, transform .12s var(--swift); }
.reaktion:hover { border-color: var(--rand-3); }
.reaktion:active { transform: scale(.94); }
.reaktion.ich { border-color: var(--akzent); background: rgba(var(--akzent-rgb), .12); color: var(--ink); }
.reaktion-emoji { font-size: 14px; line-height: 1; }
.reaktion-zahl { font-variant-numeric: tabular-nums; }
.reaktion.neu { width: 28px; padding: 0; justify-content: center; opacity: 0; transition: opacity .15s; }
.reaktion.neu .ic { width: 14px; height: 14px; }
.nachricht:hover .reaktion.neu { opacity: 1; }
.reaktionen.klein .reaktion { height: 20px; padding: 0 6px; cursor: default; }

/* Anhänge */
.anhaenge { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.nachricht-text + .anhaenge { margin-top: 8px; }
.anhang-bilder { display: grid; gap: 4px; max-width: 420px; }
.anhang-bilder.anzahl-2 { grid-template-columns: 1fr 1fr; }
.anhang-bilder.anzahl-3, .anhang-bilder.anzahl-4 { grid-template-columns: 1fr 1fr; }
.anhang-bild { display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--hover); cursor: zoom-in; }
.anhang-bild img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }
.anhang-bilder:not(.anzahl-1) .anhang-bild img { aspect-ratio: 1 !important; height: 100%; }
.anhang-datei { display: flex; align-items: center; gap: 10px; width: min(360px, 100%); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--rand-2); background: var(--flaeche); color: var(--ink); transition: border-color .15s; }
.anhang-datei:hover { border-color: var(--rand-3); }
.anhang-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.anhang-text b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anhang-text small { font-size: 11.5px; color: var(--ink-3); }
.anhang-laden { color: var(--ink-3); }
.anhang-laden .ic { width: 16px; height: 16px; }

/* Bildansicht */
.bildansicht { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 56px 72px 72px; background: rgba(0,0,0,.92); animation: bild-rein .2s var(--ease) both; outline: none; }
.bildansicht.zu { animation: bild-raus .18s var(--ease) both; }
@keyframes bild-rein { from { opacity: 0; } } @keyframes bild-raus { to { opacity: 0; } }
.bildansicht-bild { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.bildansicht-zu { position: absolute; top: 14px; right: 14px; color: #fff; }
.bildansicht-pfeil { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; }
.bildansicht-pfeil.links { left: 16px; } .bildansicht-pfeil.rechts { right: 16px; }
.bildansicht-unter { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 14px; color: rgba(255,255,255,.75); font-size: 13px; }
.bildansicht-unter b { color: #fff; font-weight: 500; }

/* Umfrage */
.umfrage { min-width: min(380px, 100%); display: flex; flex-direction: column; gap: 8px; }
.umfrage-kopf { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.umfrage-kopf .ic { color: var(--akzent); }
.umfrage-optionen { display: flex; flex-direction: column; gap: 6px; }
.umfrage-option { position: relative; display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--rand-2); background: var(--feld);
  font: inherit; font-size: 13px; color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; }
.umfrage-option:hover:not(:disabled) { border-color: var(--rand-3); }
.umfrage-option.an { border-color: var(--akzent); }
.umfrage-option:disabled { cursor: default; }
.umfrage-balken { position: absolute; inset: 0; transform-origin: 0 50%; background: rgba(var(--akzent-rgb), .13); transition: transform .6s var(--swift); }
.umfrage-option > :not(.umfrage-balken) { position: relative; }
.umfrage-wahl { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--rand-3); display: grid; place-items: center; flex: none; }
.umfrage-option.an .umfrage-wahl { border-color: var(--akzent); background: var(--akzent); color: var(--auf-akzent); }
.umfrage-wahl .ic { width: 11px; height: 11px; stroke-width: 2.4; }
.umfrage-text { flex: 1; }
.umfrage-zahl { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.umfrage-fuss { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ink-3); }
.textknopf { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 500; color: var(--akzent); cursor: pointer; }
.textknopf:hover { text-decoration: underline; }
.umfrage-felder { display: flex; flex-direction: column; gap: 6px; }
.umfrage-feld { display: flex; gap: 6px; }
.umfrage-feld .eingabe { flex: 1; }
.schalter-gruppe { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* Besprechungskarte im Chat */
.besprechungskarte { display: flex; align-items: center; gap: 12px; min-width: min(420px, 100%); margin-top: 6px; padding: 12px 12px 12px 14px; border-radius: 12px; border: 1px solid var(--rand-2); background: var(--flaeche); }
.besprechungskarte.laeuft { border-color: rgba(62,207,142,.45); box-shadow: 0 0 0 3px var(--gut-flaeche); }
.besprechungskarte-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--hover); color: var(--ink-2); }
.besprechungskarte.laeuft .besprechungskarte-ic { color: var(--gut-text); background: var(--gut-flaeche); }
.besprechungskarte-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.besprechungskarte-text b { font-size: 14px; font-weight: 600; }
.besprechungskarte-text small { font-size: 12px; color: var(--ink-3); }
.besprechungskarte-knoepfe { display: flex; gap: 6px; flex: none; }

/* Systemzeilen und Anrufe */
.systemzeile { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.systemzeile time { font-size: 11px; opacity: .8; }
.systemzeile.anruf { gap: 7px; }
.systemzeile.anruf .ic { width: 14px; height: 14px; }
.systemzeile.verpasst { color: var(--kritisch-text); }
.gelesen-zeile { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; color: var(--ink-3); }
.gelesen-zeile .ic { width: 12px; height: 12px; }
.gelesen-zeile.alle { color: var(--akzent); }

/* Schreibt … und nach unten */
.tippt { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; height: 0; padding: 0 22px; font-size: 12px; color: var(--ink-3); overflow: hidden; transition: height .2s var(--ease); max-width: 1100px; margin: 0 auto; }
.mit-tippen .tippt { height: 22px; }
.lade-punkte { display: inline-flex; gap: 3px; }
.lade-punkte i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; animation: punkt 1.2s infinite; }
.lade-punkte i:nth-child(2) { animation-delay: .15s; } .lade-punkte i:nth-child(3) { animation-delay: .3s; }
@keyframes punkt { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.nach-unten { position: sticky; bottom: 12px; left: 50%; z-index: 10; display: flex; align-items: center; gap: 6px; width: max-content; margin: 0 auto; height: 32px; padding: 0 14px 0 10px;
  border-radius: 999px; border: 1px solid var(--rand-2); background: var(--flaeche-2); color: var(--ink); font: 500 12.5px var(--font); box-shadow: var(--schatten-pop); cursor: pointer; transform: translateX(-50%); }
.nach-unten .ic { width: 15px; height: 15px; color: var(--akzent); }

/* Eingabe */
.eingabe-box { position: relative; flex: none; padding: 6px 22px 16px; max-width: 1144px; width: 100%; margin: 0 auto; }
.eingabe-box.kompakt { padding: 8px 12px 12px; }
.eingabe-rahmen { border-radius: 14px; border: 1px solid var(--rand-2); background: var(--feld); transition: border-color .2s, box-shadow .2s; }
.eingabe-rahmen:focus-within { border-color: rgba(var(--akzent-rgb), .7); box-shadow: 0 0 0 3.5px rgba(var(--akzent-rgb), .11); }
.betreff-feld { width: 100%; padding: 12px 14px 4px; border: 0; border-bottom: 1px solid var(--linie); background: none; font: 600 15px var(--font); color: var(--ink); outline: none; }
.editor { min-height: 42px; max-height: 40vh; overflow-y: auto; padding: 11px 14px 4px; font-size: 14px; line-height: 1.55; color: var(--ink); outline: none; overflow-wrap: anywhere; }
.editor.ist-leer::before { content: attr(data-platzhalter); position: absolute; color: var(--ink-3); pointer-events: none; }
.editor p, .editor div { margin: 0; }
.editor ul, .editor ol { margin: 2px 0; padding-left: 22px; }
.editor blockquote { margin: 2px 0; padding-left: 10px; border-left: 3px solid var(--rand-3); color: var(--ink-2); }
.editor code { font-family: var(--mono); font-size: .88em; padding: 1px 4px; border-radius: 4px; background: var(--code-bg); }
.editor a { color: var(--akzent-text); }
.editor .erwaehnung { cursor: default; user-select: all; }
.eingabe-werkzeuge { display: flex; align-items: center; gap: 2px; padding: 4px 6px 6px 8px; }
.eingabe-knopf { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--ink-3); cursor: pointer; transition: color .15s, background .15s; }
.eingabe-knopf:hover { color: var(--ink); background: var(--hover); }
.eingabe-knopf.an { color: var(--akzent); background: rgba(var(--akzent-rgb), .1); }
.eingabe-knopf.dringend { color: var(--kritisch-text); }
.eingabe-knopf .ic { width: 17px; height: 17px; }
.eingabe-platz { flex: 1; }
.senden-knopf { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--akzent); color: var(--auf-akzent); cursor: pointer; transition: opacity .2s, transform .12s var(--swift); }
.senden-knopf:disabled { background: var(--rand-2); color: var(--ink-3); cursor: default; }
.senden-knopf:not(:disabled):active { transform: scale(.94); }
.senden-knopf .ic { width: 16px; height: 16px; stroke-width: 1.8; }
.format-leiste { display: flex; align-items: center; gap: 2px; padding: 5px 8px; border-bottom: 1px solid var(--linie); }
.format-leiste button { display: grid; place-items: center; width: 30px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); cursor: pointer; }
.format-leiste button:hover { background: var(--hover); color: var(--ink); }
.format-leiste .ic { width: 15px; height: 15px; }
.format-trenner { width: 1px; height: 18px; margin: 0 4px; background: var(--rand-2); }
.eingabe-zusatz { display: flex; flex-direction: column; gap: 6px; }
.eingabe-zusatz:not(:empty) { margin-bottom: 8px; }
.eingabe-hinweis { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: 10px; background: var(--hover); font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.eingabe-hinweis > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eingabe-hinweis .ic { width: 14px; height: 14px; color: var(--akzent); flex: none; }
.eingabe-hinweis.wichtigkeit .ic, .eingabe-hinweis.wichtigkeit { color: var(--kritisch-text); }
.eingabe-anhaenge { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.eingabe-anhang { display: flex; align-items: center; gap: 9px; width: 240px; padding: 7px 6px 7px 9px; border-radius: 11px; border: 1px solid var(--rand-2); background: var(--flaeche); }
.eingabe-anhang.fehler { border-color: rgba(229,72,77,.5); }
.eingabe-anhang-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eingabe-anhang-text b { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eingabe-anhang-text small { font-size: 11px; color: var(--ink-3); }
.eingabe-anhang.fehler small { color: var(--kritisch-text); }
.upload-spur { display: block; height: 3px; border-radius: 3px; background: var(--rand); overflow: hidden; }
.upload-spur i { display: block; height: 100%; background: var(--akzent); transform-origin: 0 50%; transition: transform .2s; }
.erwaehnung-vorschlag { position: absolute; left: 22px; bottom: calc(100% - 4px); z-index: 40; width: min(340px, calc(100% - 44px)); padding: 6px; border-radius: 12px; background: var(--flaeche-2); border: 1px solid var(--rand-2); box-shadow: var(--schatten-pop); }
.erwaehnung-vorschlag small { margin-left: auto; color: var(--ink-3); font-size: 11.5px; }

/* Kanäle: Beiträge als Karten */
.modus-kanal .nachricht { margin: 12px 0 0; padding: 14px 16px 10px; border-radius: 14px; border: 1px solid var(--karte-rand); background: var(--flaeche); }
.modus-kanal .nachricht:hover { background: var(--flaeche); border-color: var(--rand-2); }
.modus-kanal .blase { border: 0; background: none; padding: 0; max-width: 100%; border-radius: 0; }
html.hell .modus-kanal .blase { background: none; }
.modus-kanal .nachricht-werkzeuge { top: -14px; }
.antworten-block { width: 100%; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--linie); display: flex; flex-direction: column; gap: 6px; }
.antworten-mehr { display: inline-flex; align-items: center; gap: 8px; width: max-content; border: 0; background: none; padding: 2px 0; font: 500 12.5px var(--font); color: var(--akzent); cursor: pointer; }
.antworten-mehr:hover { text-decoration: underline; }
.antworten-gesichter { display: inline-flex; }
.antworten-gesichter .avatar-rund { margin-left: -5px; box-shadow: 0 0 0 2px var(--flaeche), inset 0 0 0 1px var(--rand-2); }
.antworten-gesichter .avatar-rund:first-child { margin-left: 0; }
.antwort-vorschau { display: flex; gap: 9px; padding: 4px 0; min-width: 0; }
.antwort-vorschau .avatar-rund { width: 24px; height: 24px; font-size: 9px; flex: none; }
.antwort-vorschau-text { min-width: 0; font-size: 13px; color: var(--ink-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.antwort-vorschau-text b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.antwort-vorschau-text time { font-size: 11px; color: var(--ink-3); margin-right: 8px; }
.antworten-knopf { display: inline-flex; align-items: center; gap: 6px; width: max-content; height: 28px; padding: 0 10px; border-radius: 8px; border: 0; background: none; font: 500 12.5px var(--font); color: var(--ink-3); cursor: pointer; }
.antworten-knopf:hover { background: var(--hover); color: var(--ink); }
.antworten-knopf .ic { width: 14px; height: 14px; }
.kanal-eingabe { flex: none; padding: 8px 22px 16px; max-width: 1144px; width: 100%; margin: 0 auto; }
.kanal-eingabe .eingabe-box { padding: 0; }
.eingabe-zu { margin: 6px 4px 0; }
.neuer-beitrag-knopf { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--rand-2); background: var(--flaeche); font: 500 13.5px var(--font); color: var(--ink); cursor: pointer; transition: border-color .2s; }
.neuer-beitrag-knopf:hover { border-color: rgba(var(--akzent-rgb), .6); }
.neuer-beitrag-knopf .ic { width: 15px; height: 15px; color: var(--akzent); }
.thread-panel .nachrichtenliste { padding-top: 6px; }
.thread-panel .nachrichten-innen { padding: 0 14px; }
.modus-thread .nachricht:first-child { padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--linie); border-radius: 10px 10px 0 0; }

/* Team-Liste */
.team-block { margin-bottom: 4px; }
.team-zeile { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 4px 0 2px; border-radius: 9px; }
.team-zeile:hover { background: var(--hover); }
.team-auf { width: 22px; height: 22px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); cursor: pointer; transition: transform .2s var(--ease); }
.team-block.zu .team-auf { transform: rotate(-90deg); }
.team-zeichen { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; font-size: 10.5px; font-weight: 650; color: var(--ink-2);
  background: linear-gradient(180deg, var(--knopf-hover), var(--knopf)); box-shadow: inset 0 0 0 1px var(--rand-2); }
.team-zeichen.gross { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.team-zeichen.riesig { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.team-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-mehr { opacity: 0; transition: opacity .15s; }
.team-zeile:hover .team-mehr, .team-mehr:focus-visible { opacity: 1; }
.kanal-liste { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 4px 30px; }
.kanal-zeile { position: relative; display: flex; align-items: center; gap: 8px; height: 31px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: var(--ink-3); transition: background .15s, color .15s; }
.kanal-zeile:hover { background: var(--hover); color: var(--ink); }
.kanal-zeile.an { color: var(--ink); background: var(--aktiv); box-shadow: inset 0 0 0 1px var(--rand); }
.kanal-zeile.an::before { content: ""; position: absolute; left: -38px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--akzent); }
.kanal-zeile.ungelesen { color: var(--ink); font-weight: 650; }
.kanal-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.laeuft-punkt { color: var(--gut-text); display: grid; }

/* Team-Übersicht und Formulare in der rechten Spalte */
.haupt-scroll { flex: 1; overflow-y: auto; padding: 28px 32px 60px; }
.team-uebersicht { max-width: 920px; display: flex; flex-direction: column; gap: 18px; }
.team-kopf { display: flex; align-items: flex-start; gap: 18px; }
.team-kopf h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.team-kopf p { margin: 4px 0 0; }
.team-kopf .knopf-reihe { margin-left: auto; }
.karten-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.kanal-karte { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--karte-rand); background: var(--flaeche); transition: border-color .2s; min-width: 0; }
.kanal-karte:hover { border-color: var(--rand-2); }
.kanal-karte > .ic { color: var(--ink-3); }
.kanal-karte div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kanal-karte b { font-size: 13.5px; font-weight: 600; }
.kanal-karte small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personen-liste { display: flex; flex-direction: column; gap: 1px; }
.hinzufuegen-zeile { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.hinzufuegen-zeile > .personen-wahl, .hinzufuegen-zeile > .eingabe { flex: 1; min-width: 180px; }
.formular-karte { max-width: 640px; display: flex; flex-direction: column; gap: 16px; padding: 26px 28px; border-radius: 16px; border: 1px solid var(--karte-rand); background: var(--flaeche); }
.formular-karte.breit { max-width: 1040px; }
.formular-karte h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.formular-karte > p { margin: -10px 0 0; }
.formular { display: flex; flex-direction: column; gap: 14px; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zwei-spalten { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; }
.zwei-spalten > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.optionen-block { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; border: 1px solid var(--rand); }
.knopf-reihe.rechts { justify-content: flex-end; }
.gefahren-zone { margin-top: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(229,72,77,.3); }
.gefahren-zone p { margin: 4px 0 10px; font-size: 12.5px; }

/* Personen auswählen */
.personen-wahl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 38px; padding: 4px 6px; border-radius: 9px; border: 1px solid var(--rand-2); background: var(--feld); }
.personen-wahl:focus-within { border-color: rgba(var(--akzent-rgb), .7); box-shadow: 0 0 0 3px rgba(var(--akzent-rgb), .11); }
.personen-chips { display: contents; }
.personen-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 3px; border-radius: 999px; background: var(--hover); border: 1px solid var(--rand-2); font-size: 12.5px; }
.personen-chip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.personen-chip button:hover { color: var(--ink); background: var(--aktiv); }
.personen-chip .ic { width: 12px; height: 12px; }
.personen-wahl .auswahl { flex: 1; min-width: 160px; }
.personen-eingabe { width: 100%; height: 28px !important; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 6px !important; }
.auswahl-eintrag .avatar-rund { width: 26px; height: 26px; font-size: 9.5px; }

/* Neuer Chat */
.unterhaltung-kopf.neu { height: auto; min-height: 58px; padding-top: 10px; padding-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.neu-an { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 10px; }
.neu-an-label { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.neu-an .personen-wahl { flex: 1; }
.unterhaltung-kopf.neu > .eingabe { flex: 0 1 260px; }
.neu-hinweis { flex: 1; display: grid; place-items: center; align-content: center; gap: 8px; padding: 40px; text-align: center; color: var(--ink-3); }
.neu-hinweis b { color: var(--ink); font-size: 15px; }
.neu-hinweis p { margin: 0; max-width: 44ch; font-size: 13px; }

/* Angeheftet, Dateien */
.angeheftet-zeile { display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 12px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--karte-rand); background: var(--flaeche); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.angeheftet-zeile:hover { border-color: var(--rand-2); }
.angeheftet-zeile div { flex: 1; min-width: 0; }
.angeheftet-zeile p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.angeheftet-zeile time { font-size: 11.5px; color: var(--ink-3); }
.datei-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.datei-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.datei-name:hover span { color: var(--akzent); }

/* ── Aktivität ─────────────────────────────────────────────────── */
.akt-liste { display: flex; flex-direction: column; gap: 2px; max-width: 860px; }
.akt-zeile { display: flex; align-items: flex-start; gap: 13px; padding: 12px 14px; border-radius: 12px; transition: background .15s; }
.akt-zeile:hover { background: var(--hover); }
.akt-zeile.ungelesen { background: rgba(var(--akzent-rgb), .045); }
.akt-zeile.ungelesen::before { content: ""; width: 6px; height: 6px; margin: 16px -7px 0 -5px; border-radius: 50%; background: var(--akzent); flex: none; }
.akt-avatar { position: relative; flex: none; }
.akt-avatar .avatar-rund { width: 38px; height: 38px; font-size: 13px; }
.akt-art { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche-2); box-shadow: 0 0 0 2px var(--panel); color: var(--ink-2); }
.akt-art .ic { width: 11px; height: 11px; }
.akt-art.erwaehnung, .akt-art.wichtig { color: var(--kritisch-text); }
.akt-art.reaktion { color: var(--akzent); }
.akt-art.anruf { color: var(--kritisch-text); }
.akt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: inherit; }
.akt-oben { display: flex; align-items: baseline; gap: 4px; font-size: 13.5px; }
.akt-oben b { font-weight: 600; }
.akt-oben span { color: var(--ink-2); }
.akt-oben time { margin-left: auto; padding-left: 10px; font-size: 11.5px; color: var(--ink-3); flex: none; }
.akt-vorschau { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.akt-ort { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); }

/* ── Besprechungen, Anrufe ─────────────────────────────────────── */
.bespr-liste { display: flex; flex-direction: column; gap: 22px; max-width: 980px; }
.bespr-gruppe { display: flex; flex-direction: column; gap: 8px; }
.bespr-gruppe h3 { margin: 0 0 2px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.bespr-karte { display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 12px; border-radius: 14px; border: 1px solid var(--karte-rand); background: var(--flaeche); }
.bespr-karte.laeuft { border-color: rgba(62,207,142,.4); }
.bespr-karte.abgesagt { opacity: .6; }
.bespr-zeit { width: 50px; height: 50px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: var(--hover); color: var(--ink-2); }
.bespr-zeit b { font-size: 18px; font-weight: 650; line-height: 1; color: var(--ink); }
.bespr-zeit span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.bespr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bespr-text b { font-size: 14.5px; font-weight: 600; }
.bespr-text small { font-size: 12.5px; color: var(--ink-3); }
.link-zeile { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.link-anzeige { flex: 1; min-width: 0; display: block; padding: 8px 11px; border-radius: 9px; background: var(--code-bg); border: 1px solid var(--rand); font: 12.5px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.bespr-beschreibung { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linie); font-size: 13.5px; }
.werte-liste { display: grid; grid-template-columns: max-content 1fr; gap: 9px 18px; margin: 0; font-size: 13px; }
.werte-liste dt { color: var(--ink-3); }
.werte-liste dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.hinweisband { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; font-size: 13px; }
.hinweisband.gut { background: var(--gut-flaeche); color: var(--gut-text); }
.anruf-liste { display: flex; flex-direction: column; }
.anruf-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--linie); }
.anruf-zeile:last-child { border-bottom: 0; }
.anruf-richtung { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--hover); color: var(--ink-3); flex: none; }
.anruf-zeile.verpasst .anruf-richtung, .anruf-zeile.verpasst b { color: var(--kritisch-text); }
.anruf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.anruf-text b { font-size: 13.5px; font-weight: 600; }
.anruf-text small { font-size: 12px; color: var(--ink-3); }

/* ── Personen ──────────────────────────────────────────────────── */
.personen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.person-karte { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--karte-rand); background: var(--flaeche); }
.person-karte-kopf { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person-karte-kopf div { min-width: 0; display: flex; flex-direction: column; }
.person-karte-kopf b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-karte-kopf small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-karte-kopf:hover b { color: var(--akzent); }
.person-karte-status { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-karte .knopf-reihe { margin-top: auto; }
.profil-kopf { display: flex; align-items: center; gap: 20px; }
.profil-kopf h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.015em; }
.profil-status { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.profil-status.gross { gap: 14px; margin-bottom: 14px; }
.profil-status.gross p { margin: 2px 0 0; }
.profil-statustext { margin: 8px 0 0; color: var(--ink-2); font-style: italic; }
.name-zelle-person { display: flex; align-items: center; gap: 10px; }
.name-zelle-person div { display: flex; flex-direction: column; }
.name-zelle-person small { color: var(--ink-3); font-size: 11.5px; }

/* Konto */
.einstell-zeile { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.einstell-zeile:last-child { border-bottom: 0; }
.einstell-zeile > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.einstell-zeile b { font-size: 13.5px; font-weight: 500; }
.einstell-zeile small { font-size: 12px; color: var(--ink-3); }
.qr-box { width: 200px; height: 200px; padding: 10px; border-radius: 12px; background: #fff; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 18px; padding: 14px 18px; border-radius: 12px; background: var(--code-bg); border: 1px solid var(--rand); }
.codes code { font: 14px var(--mono); letter-spacing: .04em; }
.version { margin-top: 6px; font-size: 12px; }
.werkzeug-liste { display: flex; flex-direction: column; }
details.werkzeug { border-bottom: 1px solid var(--linie); }
details.werkzeug summary { display: flex; align-items: center; gap: 12px; padding: 9px 4px; cursor: pointer; list-style: none; font-size: 13px; }
details.werkzeug summary::-webkit-details-marker { display: none; }
details.werkzeug summary code { font: 12.5px var(--mono); color: var(--akzent); min-width: 230px; }
details.werkzeug summary span:not(.chip) { flex: 1; color: var(--ink-2); }
details.werkzeug p { margin: 0 4px 12px; font-size: 12.5px; color: var(--ink-3); max-width: 90ch; }

/* Schalter als Kontrollkästchen */
.schalter-zeile { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; }
input.schalter { -webkit-appearance: none; appearance: none; position: relative; width: 34px; height: 20px; flex: none; margin: 0; border-radius: 20px; background: var(--rand-2); cursor: pointer; transition: background .2s var(--ease); }
input.schalter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-2); transition: transform .22s var(--swift), background .2s; }
input.schalter:checked { background: var(--akzent); }
input.schalter:checked::after { transform: translateX(14px); background: var(--auf-akzent); }
input.schalter:focus-visible { outline: 1.5px solid var(--stark); outline-offset: 2px; }

/* ── Emoji-Auswahl ─────────────────────────────────────────────── */
.emoji-waehler { position: fixed; z-index: 1150; width: 352px; max-width: calc(100vw - 16px); height: 410px; max-height: calc(100dvh - 16px); display: flex; flex-direction: column;
  border-radius: 16px; background: var(--flaeche-2); border: 1px solid var(--rand-2); box-shadow: var(--schatten-pop); animation: menue-auf .16s var(--swift) both; overflow: hidden; }
.emoji-kopf { display: flex; gap: 6px; padding: 10px 10px 6px; }
.emoji-suche { flex: 1; height: 32px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--rand-2); background: var(--feld); font-size: 13px; color: var(--ink); outline: none; }
.emoji-suche:focus { border-color: var(--akzent); }
.emoji-ton { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--rand-2); background: var(--feld); font-size: 17px; cursor: pointer; }
.emoji-schnell { display: flex; justify-content: space-between; padding: 0 8px 4px; }
.emoji-reiter { display: flex; justify-content: space-between; padding: 0 8px 4px; border-bottom: 1px solid var(--linie); }
.emoji-reiter button { width: 32px; height: 30px; border: 0; border-radius: 8px; background: none; font-size: 16px; cursor: pointer; filter: grayscale(.7); opacity: .75; transition: filter .15s, opacity .15s, background .15s; }
.emoji-reiter button:hover { filter: none; opacity: 1; background: var(--hover); }
.emoji-flaeche { flex: 1; overflow-y: auto; padding: 4px 8px 8px; scrollbar-width: thin; }
.emoji-gruppe { position: sticky; top: -4px; z-index: 1; padding: 8px 4px 4px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); background: var(--flaeche-2); }
.emoji-raster { display: grid; grid-template-columns: repeat(8, 1fr); }
.emoji { height: 38px; border: 0; border-radius: 9px; background: none; font-size: 23px; line-height: 1; cursor: pointer; transition: background .1s, transform .1s var(--swift); }
.emoji:hover, .emoji:focus-visible { background: var(--aktiv); transform: scale(1.12); outline: none; }
.emoji-leer { padding: 30px 10px; text-align: center; color: var(--ink-3); font-size: 13px; }
.emoji-fuss { height: 34px; padding: 0 12px; display: flex; align-items: center; border-top: 1px solid var(--linie); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Eigenes Konto unten links ─────────────────────────────────── */
.ich { border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.ich .avatar-rund { width: 28px; height: 28px; }
.ich-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ich-text b { font-size: 13px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ich-text small { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menue-eintrag .status-punkt { width: 10px; height: 10px; margin: 0 3px; }
.menue-eintrag.an { color: var(--ink); }
.menue-eintrag .haken { margin-left: auto; width: 14px; height: 14px; color: var(--akzent); }
.navi-zahl.warn { background: var(--kritisch); color: #fff; }
.kopfleiste-rechts .knopf-geist .nur-breit { margin-left: 2px; }

/* ── Eingehender Anruf ─────────────────────────────────────────── */
.anruf-schicht { position: fixed; right: 22px; bottom: 22px; z-index: 1300; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.anruf-karte { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 300px; padding: 22px 20px 20px; border-radius: 22px;
  background: var(--flaeche-2); border: 1px solid var(--rand-2); box-shadow: 0 24px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(var(--akzent-rgb), .25); animation: anruf-rein .4s var(--swift) both; }
.anruf-karte.geht { animation: anruf-raus .25s var(--ease) both; }
@keyframes anruf-rein { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes anruf-raus { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.anruf-wellen { position: relative; display: grid; place-items: center; width: 92px; height: 92px; }
.anruf-wellen::before, .anruf-wellen::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--akzent); opacity: 0; animation: welle 2.2s var(--ease) infinite; }
.anruf-wellen::after { animation-delay: 1.1s; }
@keyframes welle { 0% { transform: scale(.55); opacity: .7; } 100% { transform: scale(1.15); opacity: 0; } }
.anruf-wellen .avatar-rund { width: 58px; height: 58px; font-size: 19px; }
.anruf-karte-text { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.anruf-karte-text b { font-size: 16px; font-weight: 600; }
.anruf-karte-text span { font-size: 12.5px; color: var(--ink-3); }
.anruf-karte-knoepfe { display: flex; gap: 16px; margin-top: 4px; }
.anruf-knopf { width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; transition: transform .15s var(--swift), filter .15s; }
.anruf-knopf:hover { transform: scale(1.06); filter: brightness(1.08); }
.anruf-knopf .ic { width: 21px; height: 21px; stroke-width: 1.9; }
.anruf-knopf.ablehnen { background: var(--kritisch); }
.anruf-knopf.annehmen { background: var(--gut); color: #04170d; }
.anruf-knopf.nur-audio { background: var(--knopf-hover); color: var(--gut-text); box-shadow: inset 0 0 0 1px var(--rand-2); }

/* ══ Besprechungsseite ════════════════════════════════════════════ */
body.besprechung-seite { min-height: 100dvh; background: var(--bg); }
body.im-raum { overflow: hidden; }
.b-marke { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.b-marke .marke-logo { width: 92px; height: 19px; }
.b-hinweis { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 20px; text-align: center; }
.b-hinweis h1 { margin: 22px 0 0; font-size: 24px; letter-spacing: -.02em; }
.b-hinweis p { margin: 0; color: var(--ink-3); max-width: 52ch; }
.b-hinweis .knopf-reihe { margin-top: 10px; justify-content: center; }

.b-vorbereitung { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 48px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px 40px; }
.b-vorbereitung-medien { display: flex; flex-direction: column; gap: 16px; }
.b-vorschau { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 120% at 30% 20%, #17181c, #050506); border: 1px solid var(--panel-rand); box-shadow: 0 30px 90px rgba(0,0,0,.45); }
html.hell .b-vorschau { background: radial-gradient(120% 120% at 30% 20%, #2a2b30, #111214); }
.b-vorschau video, .b-warten-vorschau video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
video.gespiegelt { transform: scaleX(-1); }
.vorschau-aus { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(255,255,255,.6); font-size: 13px; }
.vorschau-aus .avatar-rund { color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.b-vorschau-leiste { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.b-warten .b-vorschau-leiste { position: static; background: none; padding: 0; }
.schalt-knopf { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08);
  color: #fff; cursor: pointer; transition: background .18s, border-color .18s, transform .12s var(--swift); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.schalt-knopf:hover { background: rgba(255,255,255,.14); }
.schalt-knopf:active { transform: scale(.95); }
.schalt-knopf .ic { width: 20px; height: 20px; }
.schalt-knopf.aus { background: rgba(229,72,77,.18); border-color: rgba(229,72,77,.35); color: #ff8a8d; }
.schalt-knopf.an.hand, .schalt-knopf.praesentiert { background: rgba(var(--akzent-rgb), .2); border-color: rgba(var(--akzent-rgb), .55); color: var(--akzent); }
.schalt-knopf.gesperrt { opacity: .45; cursor: not-allowed; }
.schalt-knopf .knopf-zahl { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font-size: 10.5px; font-weight: 650; background: var(--akzent); color: var(--auf-akzent); }
.schalt-knopf .knopf-zahl.leise { background: #2a2b30; color: rgba(255,255,255,.8); }
.schalt-knopf .knopf-zahl.warn { background: var(--kritisch); color: #fff; }
.pegel { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; margin-left: 4px; }
.pegel i { width: 4px; border-radius: 2px; background: rgba(255,255,255,.22); transition: background .08s; }
.pegel i:nth-child(1) { height: 6px; } .pegel i:nth-child(2) { height: 9px; } .pegel i:nth-child(3) { height: 12px; } .pegel i:nth-child(4) { height: 15px; } .pegel i:nth-child(5) { height: 18px; }
.pegel i.an { background: var(--gut); }
.b-geraete { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.b-geraete select { width: 100%; }
.b-vorbereitung-form { display: flex; flex-direction: column; gap: 16px; }
.b-vorbereitung-form h1 { margin: 26px 0 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.b-unter { margin: -6px 0 6px; color: var(--ink-3); font-size: 14px; }
.b-als { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.eingabe.gross { height: 44px; font-size: 15px; border-radius: 11px; }
.knopf.gross { height: 46px; font-size: 15px; border-radius: 12px; }
.b-fehler { margin: -4px 0 0; color: var(--kritisch-text); font-size: 13px; }
.b-fuss { margin: 0; color: var(--ink-3); font-size: 12.5px; }
.b-warten { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 20px; text-align: center; }
.b-warten h1 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.02em; }
.b-warten-vorschau { position: relative; width: min(420px, 90vw); aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 120% at 30% 20%, #17181c, #050506); border: 1px solid var(--panel-rand); }
.b-warten-text { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-2); }

.b-raum { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #000; color: #fff; }
html.hell .b-raum { background: #0b0c0e; }
.b-kopf { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px 0 20px; }
.b-titel { display: flex; align-items: center; gap: 14px; min-width: 0; }
.b-titel b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-uhr { font-size: 12.5px; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.b-qualitaet { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.b-qualitaet i { width: 3px; border-radius: 1px; background: rgba(255,255,255,.25); }
.b-qualitaet i:nth-child(1) { height: 5px; } .b-qualitaet i:nth-child(2) { height: 8px; } .b-qualitaet i:nth-child(3) { height: 12px; }
.b-qualitaet.stufe-3 i { background: var(--gut); }
.b-qualitaet.stufe-2 i:nth-child(-n+2) { background: var(--warn); }
.b-qualitaet.stufe-1 i:nth-child(1) { background: var(--kritisch); }
.b-kopf-rechts { margin-left: auto; display: flex; gap: 4px; }
.b-knopf-klein { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 0; background: none; color: rgba(255,255,255,.7); cursor: pointer; }
.b-knopf-klein:hover { background: rgba(255,255,255,.08); color: #fff; }
.b-panel .b-knopf-klein { color: var(--ink-2); }
.b-panel .b-knopf-klein:hover { background: var(--hover); color: var(--ink); }
.b-knopf-klein .ic { width: 17px; height: 17px; }
.b-mitte { display: flex; min-height: 0; padding: 0 12px; gap: 12px; }
.b-buehne { position: relative; flex: 1; min-width: 0; display: flex; gap: 10px; }
.b-kacheln { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; }
.b-buehne.mit-praesentation .b-kacheln, .b-buehne.mit-sprecher .b-kacheln { flex: 0 0 auto; width: var(--kachel-b); flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; overflow-y: auto; scrollbar-width: none; }
.b-praesentation { flex: 1; min-width: 0; display: flex; }
.b-praesentation > * { flex: 1; }
.kachel-person { position: relative; width: var(--kachel-b, 320px); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #111214; flex: none; isolation: isolate; }
.b-praesentation .kachel-person { width: auto; height: 100%; aspect-ratio: auto; }
.kachel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.b-praesentation .kachel-video { object-fit: contain; background: #000; }
.kachel-person.mit-video .kachel-video { opacity: 1; }
.kachel-avatar { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .3s; }
.kachel-person.mit-video .kachel-avatar { opacity: 0; }
.kachel-avatar .avatar-rund { width: clamp(44px, 26%, 110px); height: auto; aspect-ratio: 1; font-size: clamp(15px, 2.4vw, 36px); color: rgba(255,255,255,.9); background: linear-gradient(180deg, #2a2b30, #18191c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.kachel-fuss { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; align-items: center; gap: 6px; pointer-events: none; }
.kachel-name { max-width: 100%; padding: 3px 8px; border-radius: 7px; background: rgba(0,0,0,.55); font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.kachel-mikro { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(0,0,0,.55); }
.kachel-mikro .ic { width: 13px; height: 13px; }
.kachel-person.stumm .kachel-mikro { color: #ff8a8d; }
.kachel-hand { display: none; place-items: center; width: 24px; height: 22px; border-radius: 7px; background: var(--akzent); color: #000; }
.kachel-hand .ic { width: 14px; height: 14px; }
.kachel-person.hand .kachel-hand { display: grid; }
.kachel-rand { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; transition: box-shadow .18s; }
.kachel-person.spricht .kachel-rand { box-shadow: inset 0 0 0 2.5px var(--akzent), 0 0 0 0 transparent; }
.kachel-person.hand .kachel-rand { box-shadow: inset 0 0 0 2px rgba(var(--akzent-rgb), .55); }
.kachel-person.spotlight .kachel-rand { box-shadow: inset 0 0 0 2px #fff; }
.bildschirm-flaeche { position: relative; display: flex; border-radius: 16px; overflow: hidden; background: #000; }
.bildschirm-flaeche video { width: 100%; height: 100%; object-fit: contain; }
.bildschirm-flaeche.eigen video { opacity: .35; }
.bildschirm-flaeche.eigen::after { content: "Du präsentierst gerade – die anderen sehen deinen Bildschirm."; position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: rgba(255,255,255,.8); }
.bildschirm-name { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px; background: rgba(0,0,0,.6); font-size: 12.5px; z-index: 1; }
.bildschirm-name .ic { width: 14px; height: 14px; color: var(--akzent); }
.b-buehne.allein .b-kacheln { padding: 4vh 4vw; }

.b-leiste { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
.b-leiste-gruppe { position: relative; display: flex; align-items: center; gap: 8px; }
.verlassen-knopf { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--kritisch); color: #fff; font: 600 14px var(--font); cursor: pointer; transition: filter .15s, transform .12s var(--swift); }
.verlassen-knopf:hover { filter: brightness(1.1); }
.verlassen-knopf .ic { width: 20px; height: 20px; stroke-width: 1.9; }
.b-menue { position: absolute; bottom: calc(100% + 10px); right: 0; z-index: 50; display: flex; flex-direction: column; min-width: 220px; padding: 6px; border-radius: 13px; background: var(--flaeche-2); border: 1px solid var(--rand-2); box-shadow: var(--schatten-pop); color: var(--ink); animation: menue-auf .16s var(--swift) both; }
.b-menue.im-panel { position: static; margin: 2px 0 8px 34px; box-shadow: none; }
.b-menue button { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: 500 13px var(--font); color: inherit; text-align: left; cursor: pointer; }
.b-menue button:hover { background: var(--hover); }
.b-menue button.gefahr { color: var(--kritisch-text); }
.b-menue .ic { width: 16px; height: 16px; }
.b-reaktionswahl { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 6px; border-radius: 16px; background: var(--flaeche-2); border: 1px solid var(--rand-2); box-shadow: var(--schatten-pop); animation: menue-auf .16s var(--swift) both; }
.b-reaktionswahl button { width: 42px; height: 42px; border: 0; border-radius: 11px; background: none; font-size: 24px; cursor: pointer; transition: transform .12s var(--swift), background .12s; }
.b-reaktionswahl button:hover { transform: scale(1.18); background: var(--hover); }
.b-reaktionen { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.schwebe-reaktion { position: absolute; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; animation: schweben 3.6s var(--ease) both; }
.schwebe-emoji { font-size: 40px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
.schwebe-name { padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.6); font-size: 11.5px; color: #fff; }
@keyframes schweben { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 12% { opacity: 1; transform: translateY(-20px) scale(1.05); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-60vh) scale(1); } }

.b-panel { width: 360px; flex: none; display: flex; flex-direction: column; min-height: 0; margin-bottom: 0; border-radius: 18px; background: var(--panel); border: 1px solid var(--panel-rand); color: var(--ink); overflow: hidden; animation: panel-rein .24s var(--swift) both; }
.panel-leer { padding: 24px 18px; color: var(--ink-3); font-size: 13px; text-align: center; }
.panel-aktionen { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 4px; }
.panel-gruppe { margin-bottom: 8px; }
.panel-gruppe-kopf { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 4px; font-size: 12px; color: var(--ink-3); }
.panel-gruppe-kopf b { font-weight: 500; }
.panel-gruppe.lobby { padding: 4px; border-radius: 12px; background: rgba(var(--akzent-rgb), .07); box-shadow: inset 0 0 0 1px rgba(var(--akzent-rgb), .25); }
.person-icon { display: grid; place-items: center; color: var(--ink-3); }
.person-icon .ic { width: 15px; height: 15px; }
.person-icon.aus { color: var(--kritisch-text); opacity: .8; }
.person-icon.hand { color: var(--akzent); }
.panel-abschnitt { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--linie); }
.panel-abschnitt > b { font-size: 12.5px; font-weight: 600; }
.b-panel .panel-liste, .b-chat-liste { flex: 1; overflow-y: auto; }
.b-panel { overflow-y: auto; }
.tasten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0; font-size: 12.5px; color: var(--ink-2); }
.tasten dd { margin: 0; }
.b-chat-liste { padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; }
.b-chat-nachricht { padding: 8px 11px; border-radius: 12px; background: var(--flaeche-2); border: 1px solid var(--rand); font-size: 13.5px; }
.b-chat-nachricht.eigen { background: rgba(var(--akzent-rgb), .085); border-color: rgba(var(--akzent-rgb), .22); }
.b-chat-kopf { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 12px; }
.b-chat-kopf time { margin-left: auto; color: var(--ink-3); font-size: 11px; }
.b-chat-fuss { display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--linie); }
.b-chat-eingabe { flex: 1; min-height: 38px; max-height: 140px; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--rand-2); background: var(--feld); font: 14px/1.4 var(--font); color: var(--ink); resize: none; outline: none; }
.b-chat-eingabe:focus { border-color: rgba(var(--akzent-rgb), .7); }
.b-lobby-hinweis, .b-chat-vorschau, .b-verbindung, .b-stummhinweis { position: absolute; left: 50%; top: 14px; z-index: 30; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px);
  padding: 9px 10px 9px 14px; border-radius: 14px; background: var(--flaeche-2); border: 1px solid var(--rand-2); box-shadow: var(--schatten-pop); color: var(--ink); font-size: 13px; animation: hinweis-rein .3s var(--swift) both; }
@keyframes hinweis-rein { from { opacity: 0; transform: translate(-50%, -8px); } }
.b-lobby-hinweis .ic { width: 16px; height: 16px; color: var(--akzent); }
.b-chat-vorschau { top: auto; bottom: 14px; left: auto; right: 14px; transform: none; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 320px; text-align: left; cursor: pointer; font: inherit; }
.b-chat-vorschau span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.b-stummhinweis .ic { color: var(--kritisch-text); width: 16px; height: 16px; }
.b-ton-freigabe { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30; }

@media (max-width: 900px) {
  .b-vorbereitung { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px 40px; }
  .b-vorbereitung-form h1 { margin-top: 12px; }
  .b-geraete { grid-template-columns: 1fr; }
  .b-mitte { padding: 0 6px; }
  .b-panel { position: fixed; inset: 0 0 0 0; z-index: 60; width: auto; border-radius: 0; border: 0; }
  .b-leiste { gap: 10px; flex-wrap: wrap; }
  .b-leiste-gruppe { gap: 6px; }
  .schalt-knopf { width: 44px; height: 44px; }
  .verlassen-knopf span { display: none; }
  .verlassen-knopf { padding: 0 14px; }
  .b-buehne.mit-praesentation, .b-buehne.mit-sprecher { flex-direction: column; }
  .b-buehne.mit-praesentation .b-kacheln, .b-buehne.mit-sprecher .b-kacheln { width: 100%; height: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .b-buehne.mit-praesentation .kachel-person, .b-buehne.mit-sprecher .b-kacheln .kachel-person { width: 140px; }
}

/* ── Schmal: Chat und Teams als Liste, dann die Unterhaltung ───── */
.nur-breit { display: inline; }
@media (max-width: 1100px) {
  .seitenpanel:not(.thread-panel) { position: absolute; right: 0; top: 58px; bottom: 0; z-index: 25; box-shadow: var(--schatten-pop); }
  .unterhaltung-reiter { display: none; }
}
@media (max-width: 1024px) {
  body.seite-voll .panel { height: calc(100dvh - 54px); }
}
@media (max-width: 760px) {
  .nur-breit { display: none; }
  body.seite-voll .panel { height: calc(100dvh - 54px - var(--tab-h, 58px) - env(safe-area-inset-bottom)); }
  .zweispaltig { grid-template-columns: 1fr; }
  .zweispaltig.mit-auswahl .spalte-liste { display: none; }
  .zweispaltig:not(.mit-auswahl) .chat-haupt { display: none; }
  .spalte-liste { border-right: 0; }
  .unterhaltung-kopf { padding: 0 8px 0 12px; gap: 8px; }
  .unterhaltung-knoepfe .knopf-geist:not(.knopf-icon) { display: none; }
  .nachrichten-innen { padding: 0 12px; }
  .eingabe-box { padding: 6px 10px 10px; }
  .kanal-eingabe { padding: 8px 10px 10px; }
  .blase { font-size: 15px; }
  .nachricht-werkzeuge { right: 6px; }
  .thread-panel { position: absolute; inset: 0; z-index: 30; width: auto; border-left: 0; }
  .seitenpanel { width: 100%; }
  .haupt-scroll { padding: 18px 14px 40px; }
  .formular-karte { padding: 18px 16px; }
  .feld-reihe, .zwei-spalten { grid-template-columns: 1fr; }
  .bespr-karte { flex-wrap: wrap; }
  .bespr-karte .knopf-reihe { width: 100%; justify-content: flex-end; }
  .anruf-schicht { left: 12px; right: 12px; bottom: calc(var(--tab-h, 58px) + 12px + env(safe-area-inset-bottom)); align-items: center; }
  .akt-zeile { padding: 10px 6px; }
  .personen-raster { grid-template-columns: 1fr; }
}

/* Nachgezogen */
.suche-knopf span { white-space: nowrap; }
.suche-knopf kbd { white-space: nowrap; }
.zurueck-knopf.nur-schmal { display: none; }
@media (max-width: 760px) { .zurueck-knopf.nur-schmal { display: inline-flex; } }
