/* GANS-OS-Werkbank v0 – ruhiges, sachliches Erscheinungsbild. Keine externen Schriften oder Bibliotheken. */
:root {
  /* Farben (--bg, --surface, --ink, --accent …): /static/farben.css aus dem Bereich ui der Farbdatei (DS-01) */
  --radius: var(--gos-radius-klein);   /* C4a: 6px statt 10px – präzise Kante (Black Edition, kein weicher Claude-Stil) */
  /* Zahlen groß und deutlich (Tim §118, C1): Größen aus dem Bestand (.status-panel .big, .kw-kpi-haupt b, .kc-wert, .small) */
  --zahl-gross: 1.6rem;       /* Hauptkennzahl */
  --zahl: 1.5rem;             /* Kennzahl, Maßzahl */
  --zahl-neben: .86rem;       /* Nebenwert, Kantenangabe */
  --zahl-gewicht: 700;
  /* C2b: Hauptzahl einer Seite (MEIN TAG 30px, Kundenakte 1.9rem): im Vollbild 2rem, im Viertel-Fenster 1.7rem */
  --zahl-held: clamp(1.7rem, 1.2rem + 1vw, 2rem);
  /* C4k (r13, PRÜFUNG 09:45 Punkt 5, Tim §118): Kennzahl der Kundenakte im schmalen Fenster nie kleiner als vor C2b
     (1.9rem) und nie kleiner als --zahl; im Vollbild wie --zahl-held (2rem) */
  --zahl-akte: max(var(--zahl-held), 1.9rem, var(--zahl));
  --zahl-betrag: 1.3rem;     /* Betrag in Liste/Karte (1.22–1.25rem im Bestand) */
  --zahl-stufe: 1.35rem;     /* Zahl in einer Stufenleiste (Bestand, schmale Felder) */
  --zahl-ziffern: tabular-nums;
  /* C2a (Werkbank-Verbesserung): Form aus EINER Stelle – Radien, Abstände, Schatten; Werte aus dem Bestand, nur vereinheitlicht.
     Schattenfarbe: hell die Schrift (--ink), dunkel der schwarze Grund (ui.derived schatten-farbe, farben.css) – kein Farbwert hier */
  --radius-xs: var(--gos-radius-werkzeug);   /* 4px, Laptop 1: Marke, feine Kante (3–4px im Bestand) */
  --radius-s: var(--gos-radius-klein);       /* 6px, Laptop 1: Reiter, kleine Fläche (5–6px) */
  --radius-m: var(--gos-radius-klein);   /* 6px (C4a, vorher 8px): Knopf, Feld, kleine Karte */
  --radius-l: var(--gos-radius-klein);   /* 6px (C4a, vorher 12px): Karte (DS-04) */
  --radius-xl: var(--gos-radius-klein);   /* 6px (C4a, vorher --gos-radius-gross 14px): große Eingabe, Tafel */
  --radius-pille: 999px;
  /* Abstände: die Skala von Laptop 1 (--gos-abstand-1..5 = 4/8/12/16/24px, gos_tokens.css) – keine zweite Skala */
  --schatten-farbe: var(--ink);
  --shadow: 0 1px 2px color-mix(in srgb, var(--schatten-farbe) 5%, transparent),
    0 2px 8px color-mix(in srgb, var(--schatten-farbe) 4%, transparent);
  --schatten-schwebend: 0 2px 10px color-mix(in srgb, var(--schatten-farbe) 30%, transparent);
  --schatten-seite: 4px 0 18px color-mix(in srgb, var(--schatten-farbe) 25%, transparent);
  /* C3a Bewegung (Paket C): EIN System für jede Bewegung der Werkbank – dezent und kurz, keine Dauerschleife im Leerlauf,
     nie eine Zahl verzögert (der Endwert steht sofort im Text). Hover/Fokus/Zahl-Übergang in der Dauer von Laptop 1
     (gos_tokens.css --gos-dauer-kurz, --gos-ease); prefers-reduced-motion: reduce schaltet alles ab (Block unten) */
  --bw-kurz: var(--gos-dauer-kurz, .12s);   /* Hover, Fokus, Farbwechsel einer Zahl */
  --bw-ein: .18s;                            /* Einblenden einer Karte/Zeile (vorher .15–.5s) */
  --bw-aufbau: .35s;                         /* Aufbau eines Diagramms: Säule, Balken, Ring (vorher .3–.7s) */
  --bw-staffel: .03s;                        /* Versatz je Element, höchstens 7 Schritte */
  --bw-puls: 1.2s;                           /* nur der Aufnahme-Punkt, solange eine Aufnahme läuft */
  --bw-kurve: var(--gos-ease, cubic-bezier(.2, .7, .2, 1));
  /* C3b Diagramme: EINE Achsenschrift für alle SVG-Diagramme (vorher 12/13/14px), Ziffern tabellarisch */
  --dg-achse: 13px;
  font-size: 15px;
}
/* C3a: Zahl-Übergang – ändert sich der Stand einer Kennzahl (Live-Seiten), wechselt nur Farbe/Fläche sanft; die Ziffern
   stehen sofort da (kein Hochzählen) */
.kz-wert, .tile-value, .kc-wert, .pw-kpi b, .hc-kpi-wert, .kda-zahl b, .kd2-zahl > b, .pjk-zahl b, .es-kpi b {
  transition: color var(--bw-kurz) var(--bw-kurve), background-color var(--bw-kurz) var(--bw-kurve); }
/* C3a: die EINE Abschaltung – wer weniger Bewegung wünscht, bekommt keine: kein Einblenden, kein Aufbau, kein Übergang */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 600; }
h1 { font-size: 1.55rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin-bottom: .75rem; }
h3 { font-size: .95rem; margin-bottom: .5rem; }
p { margin: 0 0 .6rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
del { color: var(--muted); }
.mt { margin-top: 14px; }
.section-title { margin: 4px 0 12px; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .86em; }

/* ---------- Grundgerüst */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 22px 14px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: baseline; gap: var(--gos-abstand-2); padding: 0 10px 18px; border-bottom: 1px solid var(--side-line); margin-bottom: 14px; }
.brand b { font-size: 1.15rem; letter-spacing: .02em; }
.brand span { color: var(--side-muted); font-size: .85rem; }
/* GL-01 (D2-161): the GANS OS sign – the derived drawing as a mask in the design colour (light and dark) */
.gans-zeichen { display: inline-block; flex: none; width: 44px; height: 53px; background-color: currentColor;
  -webkit-mask: url(/static/gans_os_zeichen.svg) center / contain no-repeat;
  mask: url(/static/gans_os_zeichen.svg) center / contain no-repeat; }
.brand { align-items: center; }
.brand .gans-zeichen { background-color: var(--side-ink); }
.gans-zeichen-klein { width: 18px; height: 22px; vertical-align: middle; margin-right: 6px; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; justify-content: space-between; align-items: center; color: var(--side-ink); padding: 8px 10px; border-radius: var(--radius-m); font-size: .95rem; }
.nav a:hover { background: var(--side-hover); text-decoration: none; }
.nav a.active { background: var(--active); color: var(--active-ink); font-weight: 600; }
.nav .count { background: var(--attention); color: var(--attention-ink); font-size: .75rem; font-weight: 700; border-radius: var(--radius-pille); padding: 0 7px; min-width: 20px; text-align: center; }
.side h4 { color: var(--side-muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin: 22px 10px 6px; }
.planned { list-style: none; margin: 0; padding: 0; }
.planned li { color: var(--side-muted); font-size: .86rem; padding: 3px 10px; }
.planned li::after { content: " · geplant"; opacity: .7; }
/* DA-02 (A84): folder symbol at the bottom of the navigation, folder page */
.ordner-knopf { display: flex; align-items: center; gap: var(--gos-abstand-2); margin: 18px 6px 0; padding: 8px 10px; border-radius: var(--radius-m);
  color: var(--side-ink); border: 1px solid var(--side-muted); text-decoration: none;
  background: var(--side); font-weight: 600; }
.ordner-knopf:hover, .ordner-knopf:focus-visible { border-color: currentColor; }
.side-dock { position: sticky; bottom: 0; z-index: 2; margin: 18px -14px 0; padding: 10px 14px 14px; background: var(--side); box-shadow: 0 -12px 14px -8px var(--side); }   /* oc17: docked – nothing runs below it */
.side-dock .ordner-knopf { margin: 0 6px; }
.ordner-info { border-collapse: collapse; margin-bottom: 12px; }
.ordner-info th { text-align: left; padding: 3px 14px 3px 0; white-space: nowrap; vertical-align: top; }
.ordner-info td { padding: 3px 0; overflow-wrap: anywhere; }
.ordner-baum { list-style: none; margin: 0; padding: 0; }
.ordner-baum li { margin: 4px 0; }
.ordner-baum summary { cursor: pointer; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ordner-baum li.gewaehlt > details > summary { font-weight: 700; }
.ordner-dateien tr.hier td { font-weight: 700; }
.ordner-baum summary.ablage-aktiv { outline: 2px dashed var(--accent); outline-offset: 2px; }   /* dd01: drop zone */
.ordner-ablage { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
@media (max-width: 900px) {                    /* DA-02: on a phone the folder symbol floats bottom left */
  .side .ordner-knopf { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    margin: 0; z-index: 30; box-shadow: var(--schatten-schwebend); }
  .app .main { padding-bottom: 76px; }          /* the last line of a page is never hidden by it */
  .side-dock { position: static; margin: 0; padding: 0; box-shadow: none; }   /* oc17: the button floats */
}
/* DA-03 (A84 §3): the folder as a side panel beside the work – width changeable at the edge (resize) */
.ordner-panel { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: min(560px, 92vw); min-width: 300px;
  max-width: 96vw; resize: horizontal; overflow: auto; background: var(--surface); color: var(--ink);
  border-right: 1px solid var(--line); box-shadow: var(--schatten-seite); padding: 0 16px 24px; }
.ordner-panel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky;
  top: 0; background: var(--surface); padding: 12px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.ordner-panel .card { box-shadow: none; padding: 12px; }
.ordner-zu { font-size: 1.4rem; line-height: 1; text-decoration: none; padding: 2px 8px; border-radius: var(--radius-s); }
.ordner-zu:hover, .ordner-zu:focus-visible { background: var(--bg); }
@media (max-width: 900px) { .ordner-panel { width: 100vw; max-width: 100vw; min-width: 0; resize: none; } }

.main { padding: 22px 32px 40px; max-width: none; width: 100%; min-width: 0; }   /* lay01: the full width (D2-253) */
/* akp02 (D2-260): workflow of the customer file and the quote from the project calculation */
.akp2-ablauf { border-left: 3px solid var(--accent); }
.akp2-kette { margin: 0 0 10px; color: var(--muted); font-size: .86rem; letter-spacing: .02em; }
.akp2-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 12px 24px; }
.akp2-raster h3 { margin: 6px 0; font-size: .9rem; }
.akp2-liste { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.akp2-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.akp2-status { padding: 1px 8px; border-radius: var(--radius); font-size: .74rem; font-weight: 700;
  color: var(--accent); border: 1px solid var(--accent); }
.akp2-feld { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; font-size: .82rem; color: var(--muted); }
.akp2-feld input, .akp2-feld select { max-width: 22rem; }
.akp2-blatt { margin-top: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); }
.akp2-band { margin: 0 0 10px; padding: 4px 8px; font-weight: 700; font-size: .8rem; border: 1px dashed var(--warn); color: var(--ink); }
.akp2-info { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-size: .84rem; }
.akp2-info dt { color: var(--muted); }
.akp2-info dd { margin: 0; }
.cols > *, .grid > * { min-width: 0; }
.demo { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 6px 12px; font-size: .85rem; margin-bottom: 16px; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.top .lead { color: var(--muted); margin: 4px 0 0; }
.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; max-width: 100%; flex-basis: 100%; }   /* oc19: always its own row below title and lead */
.top-actions form { display: flex; gap: 6px; align-items: center; margin: 0; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.top-actions label { font-size: .85rem; color: var(--muted); }
.top-actions select { min-width: 0; }
@media (max-width: 600px) {                    /* TA-01: the company switch wraps on a phone */
  .top-actions select { max-width: 100%; }       /* only here: a % limit inflates the intrinsic width */
}
@media (min-width: 601px) {                    /* oc19: the company name is read in full on a desktop */
  .top-actions #betrieb { max-width: 46rem; }
}
@media (max-width: 600px) {                    /* TA-02 (RTA-01): a table without its own scroll box scrolls itself */
  .card > table, .card > form > table, .card details > table { display: block; max-width: 100%; overflow-x: auto; }
  .card p code { overflow-wrap: anywhere; }
  span.tk-legend { white-space: normal; }      /* TA-04 (RTA2-01): a long legend wraps (farben.css: nowrap) */
}
select { font: inherit; font-size: .9rem; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); max-width: 320px; }
footer { margin-top: 30px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Bausteine */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.card > h2:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--gos-abstand-4); margin-bottom: 18px; }
.grid .card { margin-bottom: 0; }
.q h3 { color: var(--ink-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.q .big { font-size: var(--zahl); font-weight: var(--zahl-gewicht); font-variant-numeric: var(--zahl-ziffern); margin-bottom: 4px; }
.q ul { margin: 0; padding-left: 18px; }
.q li { margin-bottom: 3px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {                    /* MV-01: on a phone the label stands above its value */
  dl.kv { grid-template-columns: minmax(0, 1fr); row-gap: 0; }   /* dl: also beats .ik-kv */
  dl.kv dt { margin-top: 8px; overflow-wrap: anywhere; }
  dl.kv dt:first-child { margin-top: 0; }
  dl.kv .badge { white-space: normal; overflow-wrap: anywhere; }
}
.note { color: var(--muted); font-size: .86rem; margin-top: 8px; }
.empty { color: var(--muted); }   /* C4a: Leerzustand ruhig und gerade (nicht kursiv, kein weicher Stil) */
p.empty, div.empty { padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--radius-s); }
/* C4a: Fehlerseiten 404/500 einheitlich – Seitentitel, Code in Gravurschrift, ein Satz, ein Weg zurück; feine Linie,
   kleine Radien, kein Schatten (Black Edition) */
.fehler-seite .main { max-width: 720px; margin: 0 auto; padding: 48px 16px; }
.fehler-seite h1 { margin-bottom: 16px; }
html:root .card.fehler-karte { max-width: 640px; border: 1px solid var(--line-2); border-radius: var(--radius-s); box-shadow: none; }
/* html:root .card.… (0,3,1) – stärker als die Karte von obsidian.css (0,3,0: ohne Rand, mit Schatten), ohne !important */
html:root .fehler-seite .card.fehler-karte { border-left: 3px solid var(--bad); }   /* 500: rot = Fehler; 404 bleibt neutral */
.fehler-code { margin: 0 0 6px; font: 600 .72rem/1.3 var(--gos-schrift-gravur, inherit); letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); }
.fehler-karte code { overflow-wrap: anywhere; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
tr.changed td { background: var(--changed-bg); }
tr.total td { font-weight: 600; border-top: 2px solid var(--line-2); }
.table-wrap { overflow-x: auto; }
/* dg02: the value table under a diagram (Laptop-1-Vorlage) – closed by default, the numbers the bars draw */
.gos-werte { margin-top: 8px; }
/* ww04: process bar of an order (Laptop-1-Vorlage) – stations side by side, status as bottom edge + mark + word */
.gos-prozess { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: var(--gos-abstand-1); }
.gos-prozess li { padding: 6px 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 2px; font-size: .8rem; color: var(--ink-2); }
.gos-prozess li i { font-style: normal; margin-right: 6px; }
.gos-prozess li.erledigt { border-bottom-color: var(--ok); }
.gos-prozess li.aktuell { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink-2); }
.gos-prozess li.aktuell.wartet { border-bottom-color: var(--warn); }
.gos-prozess li.abgebrochen { border-bottom-color: var(--bad); color: var(--bad); font-weight: 600; }
.gos-prozess li.entfaellt, .gos-prozess li.unklar { border-style: dashed; opacity: .6; }   /* ww08 */
.gos-werte > summary { cursor: pointer; font-size: .8rem; color: var(--ink-2); }
.gos-werte table { font-size: .84rem; margin: 6px 0 0; font-variant-numeric: tabular-nums; }

.badge { display: inline-block; font-size: .78rem; font-weight: 600; border-radius: var(--radius-pille); padding: 1px 9px; white-space: nowrap; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-plan { background: var(--plan-soft); color: var(--plan); }
.b-info { background: var(--info-soft); color: var(--info); }   /* vs01 (GF D2-185 §3): Eisblau = technische Information */
.prov { display: inline-block; font-size: .75rem; letter-spacing: .02em; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 0 6px; white-space: nowrap; background: var(--surface-2); }
.prov b { font-weight: 600; }

.btn { display: inline-block; font: inherit; font-size: .9rem; font-weight: 600; border-radius: var(--radius-m); padding: 7px 14px; cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }   /* vs01: a link button stays ONE box when its label wraps (PDF öffnen in a narrow cell) */
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad-line); }
.btn-small { padding: 4px 10px; font-size: .82rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.actions form { margin: 0; }

.flash { border-radius: var(--radius-m); padding: 10px 14px; margin-bottom: 16px; font-size: .92rem; }
.flash-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); }
.flash-error { background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad-line); }
.save-error { color: var(--bad); }

.status-panel { display: flex; gap: 18px; align-items: center; }
.status-panel .big { font-size: var(--zahl-gross); font-weight: var(--zahl-gewicht); letter-spacing: .02em; }
.status-panel.ready .big { color: var(--ok); }
.status-panel.blocked .big { color: var(--bad); }
.status-panel.unknown .big { color: var(--plan); }

.decision { border-left: 4px solid var(--attention); }
.decision.done { border-left-color: var(--ok); }

/* ---------- Ablaufband GBF-001 */
.flow { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: var(--gos-abstand-2); margin: 0; padding: 0; }
.flow li { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 8px 10px; background: var(--surface-2); position: relative; }
.flow .st-label { display: flex; align-items: baseline; font-weight: 600; font-size: .86rem; overflow-wrap: break-word; hyphens: auto; }
.flow .st-detail { display: block; color: var(--muted); font-size: .78rem; }
.flow .dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--plan); }
.flow .st-done { border-left: 4px solid var(--ok); }
.flow .st-done .dot { background: var(--ok); }
.flow .st-waiting { border-left: 4px solid var(--attention); }
.flow .st-waiting .dot { background: var(--attention); }
.flow .st-blocked { border-left: 4px solid var(--bad); }
.flow .st-blocked .dot { background: var(--bad); }
.flow .st-planned { border-style: dashed; }
.flow .st-none .dot { background: var(--line-2); }

.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: minmax(88px, 15%) 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.events li:last-child { border-bottom: 0; }
.who-system { color: var(--accent); font-weight: 600; font-size: .82rem; }
.who-human { color: var(--warn); font-weight: 600; font-size: .82rem; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 10px; font-size: .8rem; overflow-x: auto; max-height: 360px; }
details summary { cursor: pointer; color: var(--accent); font-size: .9rem; }

.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0; }
.form-inline label { display: flex; flex-direction: column; gap: 3px; font-size: .82rem; color: var(--ink-2); }
.form-inline input { font: inherit; font-size: .9rem; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); min-width: 0; max-width: 260px; }

/* ---------- Statuszeile: Kopfpille „Braucht dich“, Statuslampe, getrennte Zähler Betrieb/Technik */
.statusline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: -6px 0 14px; font-size: .85rem; }
.pill { display: inline-block; border-radius: var(--radius-pille); padding: 2px 12px; font-weight: 700; font-size: .85rem; }
.pill-warn { background: var(--attention); color: var(--attention-ink); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.lamp { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.lamp .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--plan); }
.lamp-saved .dot { background: var(--ok); }
.lamp-save_failed .dot, .lamp-read_error .dot { background: var(--bad); }
.counter { color: var(--muted); }
.counter-tech { color: var(--bad); }
.counter-line { color: var(--ink-2); }

/* ---------- Kennzahl-Kacheln: Wert oder Grund, nie eine stille 0 */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gos-abstand-3); margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.tile h3 { font-size: .8rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.tile-value { font-size: var(--zahl); font-weight: var(--zahl-gewicht); font-variant-numeric: var(--zahl-ziffern); line-height: 1.2; overflow-wrap: anywhere; }
.tile-none { color: var(--plan); }
.tile-reason { font-size: .85rem; color: var(--warn); margin: 2px 0 4px; }
.tile-meta { font-size: .78rem; color: var(--muted); margin: 0; overflow-wrap: anywhere; }

.flow .st-marks { display: flex; flex-wrap: wrap; gap: var(--gos-abstand-1); margin-top: 4px; }
.flow .st-marks .badge { font-size: .75rem; padding: 0 6px; }
@media (max-width: 600px) {                    /* MV-02: a long status or a measure wraps on a phone */
  .flow .st-marks .badge { white-space: normal; overflow-wrap: anywhere; max-width: 100%; border-radius: var(--radius-m); }
  dd > .num { white-space: normal; }
}
.flow .st-marks .badge { white-space: normal; overflow-wrap: anywhere; max-width: 100%; border-radius: 8px; }  /* TA-03 */
.in-input { color: var(--ink); }
.in-derived { color: var(--accent); }
.form-inline label.check { flex-direction: row; align-items: center; }
.form-inline label:has(> input[type="checkbox"]) { flex-direction: row; align-items: center; gap: 6px; min-height: 34px; }   /* oc10 */
.findings { margin: 4px 0 8px; padding-left: 18px; }
.findings li { margin-bottom: 3px; }
tr.cancelled td { color: var(--muted); background: var(--plan-soft); }
td .form-inline { margin-bottom: 6px; }

/* ---------- Hell/Dunkel: /static/farben.css (DS-01) – hier keine Farbwerte */

/* ---------- DS-01: Bedienelemente beider Darstellungen (Farben aus /static/farben.css, Bereich ui) */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input, select, textarea { background: var(--field); color: var(--ink); border-color: var(--field-line); }
input:focus, select:focus, textarea:focus { border-color: var(--focus); }
table tr:not(.tk-row):not(.tk-section):not(.tk-total):hover > td { background: var(--row-hover); }
tr.selected > td, tr[aria-selected="true"] > td { background: var(--selected); }
.side h4 { color: var(--side-muted); }

/* ---------- NB-02: Baum-Navigation nach der Soll-Struktur (Bereich › Knoten › Seite; <details> ohne Skript) */
.nav-pinned { margin-bottom: 6px; }
.nav-tree details { margin: 0; }
.nav-tree summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: var(--gos-abstand-2); padding: 7px 10px; border-radius: var(--radius-m); color: var(--side-ink); font-size: .93rem; }
.nav-tree summary::-webkit-details-marker { display: none; }
.nav-tree summary::before { content: "▸"; color: var(--side-muted); width: .8em; flex: none; }
.nav-tree details[open] > summary::before { content: "▾"; }
.nav-tree summary:hover { background: var(--side-hover); }
.nav-area > summary { font-weight: 600; }
.nav-nodes { list-style: none; margin: 0 0 4px; padding: 0 0 0 10px; }
.nav-node > summary { font-size: .88rem; }
.nav-node .nav { padding-left: 14px; }
/* oc10: a page without a node („… · Zuordnung offen“) sits in the tree like a node, quiet */
.nav-nodes > li > a { display: block; padding: 6px 10px 6px calc(18px + .8em); border-radius: var(--radius-m); font-size: .84rem; color: var(--side-muted); }
.nav-nodes > li > a:hover { background: var(--side-hover); color: var(--side-ink); text-decoration: none; }
.nav-nodes > li > a.active { background: var(--active); color: var(--active-ink); font-weight: 600; }
.nav-tree .nav-symbol { flex: none; }   /* vs01: a line symbol, no area colour */
.breadcrumb { color: var(--muted); margin: 0 0 6px; }

/* ---------- NB-03: Funktionssuche oben in der Navigation */
.nav-search { display: flex; flex-direction: column; gap: var(--gos-abstand-1); padding: 0 10px 10px; }
.nav-search label { color: var(--side-muted); }
.nav-search input { width: 100%; }
.fn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* ---------- DS-03: Kopfzeile, ruhige Flächen, Grün nur als Akzent (GF-Designkorrektur 16.10.2026) */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--gos-abstand-4); flex-wrap: wrap; background: var(--head); color: var(--head-ink); border-bottom: 1px solid var(--head-line); margin: -22px -32px 18px; padding: 10px 32px; }
.topbar .marke { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; }
.topbar .logo-platz { display: inline-block; width: 0; }
.topbar .rechts { display: flex; align-items: center; gap: var(--gos-abstand-4); flex-wrap: wrap; }
.uhrzeit { display: flex; align-items: baseline; gap: var(--gos-abstand-2); }
.uhr { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.uhr-datum { color: var(--side-muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.topbar form { display: flex; align-items: center; gap: 0; margin: 0; }
.topbar form > .small { color: var(--side-muted); margin-right: 6px; }
.topbar .lang-sep { display: none; }
.topbar form .btn { border-radius: 0; margin-left: -1px; background: transparent; color: var(--head-ink); border-color: var(--line-2); }
.topbar form .btn:first-of-type { border-radius: 7px 0 0 7px; }
.topbar form .btn:last-of-type { border-radius: 0 7px 7px 0; }
.topbar form .btn[aria-pressed="true"] { background: var(--active); color: var(--active-ink); border-color: var(--active); position: relative; }
.theme-switch .btn { text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; }
.nav-tree details.nav-area { border-top: 1px solid var(--side-line); }
.card { background: var(--surface); border-color: var(--line); }
table tbody tr:nth-child(even):not(.tk-row):not(.tk-section):not(.tk-total) > td { background: var(--row-alt); }
th { color: var(--ink-2); }
@media (max-width: 900px) { .topbar { margin: -16px -16px 14px; padding: 8px 16px; } }

/* ---------- NB-04: Bedienzugang nach Arbeitsablauf (Betrieb …) über dem Soll-Baum */
.nav-zugaenge { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--side-line); }
.nav-zugaenge summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: var(--gos-abstand-2); padding: 7px 10px; border-radius: var(--radius-m); color: var(--side-ink); font-size: .93rem; }
.nav-zugaenge summary::-webkit-details-marker { display: none; }
.nav-zugaenge summary::before { content: "▸"; color: var(--side-muted); width: .8em; flex: none; }
.nav-zugaenge details[open] > summary::before { content: "▾"; }
.nav-zugaenge summary:hover { background: var(--side-hover); }
.nav-zugang > summary { font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: .8rem; color: var(--side-muted); }
.nav-gruppe > summary { font-weight: 600; }
.nav-zugaenge .nav { padding-left: 14px; }
.nav-zugaenge a.here { color: var(--accent); font-weight: 700; }
/* oc13: one lit entry in every theme – the access block shows the page, the tree marks it only quietly */
.side a.ort { background: transparent; color: var(--side-ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--line-2); }   /* oc15: the page's place while another entry is lit */
.nav-na { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 10px; color: var(--side-muted); font-size: .9rem; }
.app { grid-template-columns: 264px 1fr; }
.nav-na { flex-wrap: wrap; justify-content: flex-start; }
section[id] { scroll-margin-top: 72px; }
.nav-tag { font-size: .74rem; font-weight: 500; color: var(--side-muted); border: 1px solid var(--side-line); border-radius: var(--radius-pille); padding: 0 6px; white-space: nowrap; margin-left: 6px; }

/* ---------- DS-04: Feinschliff – Schriftskala, Seitenkopf, Karten, Tabellen, Felder, Knöpfe (nur Variablen) */
body { font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1 { font-size: 1.75rem; font-weight: 650; letter-spacing: -.015em; }
h2 { font-size: 1.12rem; font-weight: 650; }
h3 { font-size: .98rem; font-weight: 650; color: var(--ink-2); }
.top { align-items: flex-end; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.top .lead { max-width: 72ch; font-size: .97rem; }
.breadcrumb { font-size: .82rem; letter-spacing: .01em; margin-bottom: 8px; }
.card { padding: 20px 22px; border-radius: var(--radius-l); }
.card > h2:first-child { padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.card + .card { margin-top: 2px; }
table { font-size: .93rem; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; }
th { font-size: .76rem; letter-spacing: .06em; border-bottom: 1px solid var(--line-2); white-space: normal; }
th.num { white-space: normal; }   /* oc18: a long column head wraps at word gaps – the table fits its card */
tbody tr:last-child > td { border-bottom: none; }
td.num, th.num { text-align: right; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap > table { margin: 0; }
/* r14: Kundenliste (9 Spalten) passt bei 1440 ganz in ihre Karte – die Spalte Verknüpfungen wird nie im Rahmen
   abgeschnitten; schmalere Zellenabstände statt seitlichem Scrollen (im Viertel-Fenster scrollt nur die Tabelle).
   r14b (R r14-05): 6px – Reserve auch mit sichtbarer Bildlaufleiste (innerWidth 1414: 822 von 855 px gemessen) */
.table-wrap > table.ku-liste :is(th, td) { padding-inline: 6px; }
/* r14b (R r14-04/05): JEDE Tabelle passt im Vollbild (1440, auch mit sichtbarer Bildlaufleiste) in ihren Rahmen –
   allgemein statt im Einzelfall: kompakte Zellen, Spaltenköpfe enger gesperrt, Herkunftsmarken brechen in der Zelle um,
   eine Begründungsspalte (kalkulation_farben.status_cell) hat Platz für mehrere Wörter je Zeile; im Viertel-Fenster
   scrollt eine Tabelle in ihrem Rahmen (.table-wrap). Gemessen: tests/test_r14b_korrektur.py (Edge headless). */
.table-wrap > table :is(th, td) { padding-inline: 8px; }
:root:not([data-obsidian="aus"]) .table-wrap > table th { letter-spacing: .06em; }
.table-wrap td .prov { white-space: normal; }
.table-wrap td:has(> .zelle-grund) { min-width: 12rem; }
.gos-werte .table-wrap > table :is(th, td) { padding-inline: 6px; }   /* Wertetabellen der Diagramme in schmalen Tafeln */
input, select, textarea { font: inherit; font-size: .93rem; padding: 7px 10px; border-width: 1px; border-style: solid; border-radius: var(--radius-m); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.form-inline { gap: var(--gos-abstand-3); }
.form-inline label { font-weight: 600; }
.btn { padding: 8px 16px; border-radius: var(--radius-m); line-height: 1.2; }
.btn-small { padding: 5px 11px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; filter: none; }
.statusline { gap: var(--gos-abstand-3); margin: -4px 0 16px; }
.badge { letter-spacing: .01em; }
.note { line-height: 1.5; }
.side .brand { padding-bottom: 16px; }
.nav a { padding: 7px 10px; }
.main { padding-top: 22px; }
table.zahlen td { white-space: nowrap; }   /* Beträge und Monate nie umbrechen */

/* ---------- KA-03: manuelle Kalkulation – Aktionen einer Zeile nebeneinander, Bearbeiten-Zeile als Raster */
.km-aktionen { display: flex; flex-wrap: wrap; gap: var(--gos-abstand-1); margin-top: 4px; }
.km-aktionen form { display: inline-flex; margin: 0; }
.km-tabelle td { white-space: normal; }
.km-tabelle td.num { white-space: nowrap; }
.km-tabelle tr.selected .form-inline { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; align-items: end; }

/* ---------- KT-02: gewählte Zeile der Positionstabelle (Tastatur) */
.km-tabelle tr[data-pos]:focus { outline: 2px solid var(--focus); outline-offset: -2px; }
.km-tabelle tr[id] { scroll-margin-top: 72px; }   /* Anker-Sprung nicht unter die feste Kopfzeile */
/* gewählte Zeile auch auf geraden Zeilen sichtbar: gleiche Spezifität wie die Zebra-Streifung (ds03), danach */
table tbody tr[aria-selected="true"]:not(.tk-row):not(.tk-section):not(.tk-total) > td { background: var(--selected); }

/* ---------- TB-02: Textbausteine – Wortlaut mit Zeilenumbrüchen, Textfelder volle Breite */
.tb-wortlaut { white-space: pre-line; }
#baustein h3 { margin-top: 16px; }
.tb-felder { display: grid; gap: 10px; max-width: 760px; }
.tb-felder label { display: grid; gap: var(--gos-abstand-1); }
.tb-felder textarea { width: 100%; font: inherit; }

/* ---------- KA-05: mehrere Angaben je Position – je Art ein Block über die volle Breite der Bearbeitungszeile */
.km-tabelle tr.selected .form-inline fieldset.km-eintraege { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 640px); gap: 6px; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 6px 10px 10px; margin: 0; }
.km-tabelle tr.selected fieldset.km-eintraege legend { font-weight: 600; padding: 0 4px; }
.km-eintrag { display: flex; gap: var(--gos-abstand-2); align-items: end; }
.km-eintrag label { flex: 1 1 0; min-width: 0; }
.km-tabelle tr.selected .form-inline .km-eintraege-hinweis { grid-column: 1 / -1; margin: 0; }

/* ---------- KA-06: Rechenweg je Position (aufklappbar, ohne Skript) */
.km-rechenweg { margin-top: 6px; }
.km-rechenweg summary { cursor: pointer; }
.km-rechenweg table.km-rw { margin-top: 6px; }
.km-rechenweg table.km-rw td { padding: 3px 8px; }
.km-rechenweg tr.km-rw-summe td { font-weight: 600; border-top: 1px solid var(--line); }

/* ---------- IK-01: Kontextinspektor (rechts, einklappbar, optional) und Objektkarten – gemeinsame Bausteine */
.ik-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); grid-template-areas: "kopf ik" "rest rest"; column-gap: 18px; align-items: start; }   /* r14b: die Tabellen unter den Karten in voller Breite */
.ik-raster:has(> .ik-panel details.ik:not([open])) { grid-template-columns: minmax(0, 1fr) max-content; }
.ik-kopf { grid-area: kopf; min-width: 0; }
.ik-rest { grid-area: rest; min-width: 0; }
.ik-panel { grid-area: ik; position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.ik-panel summary { cursor: pointer; font-weight: 600; padding: 12px 16px; }
.ik-inhalt { padding: 0 16px 6px; }
.ik-objekt[hidden], .ik-zustand[hidden] { display: none; }
.ik-titel { font-size: 1.05rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.ik-objekt h3 { margin-top: 14px; }
.ik-kv { grid-template-columns: max-content minmax(0, 1fr); }
.ik-hinweis { padding: 0 16px 12px; margin: 0; }
.ik-zustand { display: flex; gap: 6px; align-items: baseline; border: 1px dashed var(--line-2); border-radius: var(--radius-m); padding: 6px 10px; margin: 8px 0; background: var(--surface-2); color: var(--ink-2); }
.ik-symbol { font-weight: 700; }
.ik-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gos-abstand-3); margin: 8px 0 14px; }
.ik-karte { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 14px; background: var(--surface); display: grid; gap: 6px; align-content: start; min-width: 0; }
.ik-karte.ik-gewaehlt { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ik-karte h3 { margin: 0; overflow-wrap: anywhere; }
.ik-karte p { margin: 0; }
.ik-fakten { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 10px; margin: 0; }
.ik-fakten dt { color: var(--muted); }
.ik-fakten dd { margin: 0; }
.ik-karte-fuss { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; }
.ik-ausloeser[aria-current="true"] { font-weight: 600; }
.ik-tabelle td, .ik-tabelle th { padding: 3px 6px; }
.ik-links { margin: 0; padding-left: 18px; }
@media (max-width: 1150px) {
  .ik-raster, .ik-raster:has(> .ik-panel details.ik:not([open])) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kopf" "ik" "rest"; }
  .ik-panel { position: static; max-height: none; }
}
@media print {
  .ik-panel { display: none; }
  .ik-raster { display: block; }
}

/* ---------- MW-01: Materialwelt – Ansichtswahl und Kompaktliste (Karten und Inspektor: IK-01) */
.mw-ansichten { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.mw-ansichten a[aria-current="page"] { font-weight: 700; border-color: var(--accent); }
.mw-kompakt { list-style: none; margin: 0; padding: 0; }
.mw-kompakt li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.mw-kompakt li b { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.mw-farbfeld { margin: 6px 0; }

/* ---------- AW-01: Projekt-To-dos – Formulare in der Zeile umbrechen, Eingaben in voller Breite am Handy */
.aw-seite td form { display: flex; flex-wrap: wrap; gap: var(--gos-abstand-1); align-items: center; margin: 0; }
.aw-seite .aw-notiz { display: flex; flex-wrap: wrap; gap: var(--gos-abstand-1); align-items: center; }
.aw-seite label, .aw-seite input, .aw-seite select, .aw-seite textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }
.aw-seite td, .aw-seite dd, .aw-seite h2 { overflow-wrap: anywhere; }
.aw-seite .badge { white-space: normal; overflow-wrap: anywhere; }
.aw-seite .aw-wechsel { margin: 6px 0; }
.aw-offen { color: var(--bad); font-weight: 600; }
.aw-liste { list-style: none; margin: 0; padding: 0; }

/* ---------- WW-01: Warenwirtschaft – Reiter, Listen ohne Punkte, Formulare umbrechend am Handy */
.ww-tabs ul { display: flex; flex-wrap: wrap; gap: 6px; }
.ww-tabs a { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.ww-tabs a.here { font-weight: 700; border-color: currentColor; }
.ww-liste { list-style: none; margin: 0; padding: 0; }
.ww-befunde { margin: 0; padding-left: 1.1em; }
.ww-liste li, .ww-befunde li { margin: 4px 0; overflow-wrap: anywhere; }
.ww-offen { color: var(--bad); font-weight: 600; }
.ww-seite code { overflow-wrap: anywhere; }
.ww-seite form { display: flex; flex-wrap: wrap; gap: var(--gos-abstand-1); align-items: center; margin: 0; }
.ww-seite input[type=text], .ww-seite select { max-width: 100%; }

/* ---------- KN-01: Möbelkonfigurator – Listen ohne Punkte, Eingaben in voller Breite am Handy */
.kn-liste { list-style: none; margin: 0; padding: 0; }
.kn-befunde { margin: 0; padding-left: 1.1em; }
.kn-liste li, .kn-befunde li { margin: 4px 0; overflow-wrap: anywhere; }
.kn-seite code { overflow-wrap: anywhere; }
.kn-offen { color: var(--bad); font-weight: 600; }
.kn-seite .badge { white-space: normal; overflow-wrap: anywhere; }
.kn-seite select, .kn-seite input[type=number] { max-width: 100%; }

/* ---------- KZ-01: Designmöbel-Katalog – Tabellen im eigenen Rollbereich, Listen ohne Punkte */
.dmk-liste { list-style: none; margin: 0; padding: 0; }
.dmk-befunde { margin: 0; padding-left: 1.1em; }
.dmk-liste li, .dmk-befunde li { margin: 4px 0; overflow-wrap: anywhere; }
.dmk-seite code { overflow-wrap: anywhere; }
.dmk-offen { color: var(--bad); font-weight: 600; }
.dmk-seite .badge { white-space: normal; overflow-wrap: anywhere; }

/* ---------- WL-01: Werkstatt-Stückliste – Tabellen im eigenen Rollbereich (.table-wrap), Kanten als Liste */
.wl-kanten, .wl-ids { list-style: none; margin: 0; padding: 0; }
.wl-auswahl, .wl-befunde { margin: 0; padding-left: 1.1em; }
.wl-auswahl li, .wl-befunde li { margin: 4px 0; overflow-wrap: anywhere; }
.wl-seite code { overflow-wrap: anywhere; }
.wl-offen { color: var(--bad); font-weight: 600; }
.wl-filter label { display: inline-flex; flex-wrap: wrap; gap: var(--gos-abstand-1); align-items: center; margin: 0 8px 6px 0; }
.wl-filter select { max-width: 100%; }
.wl-seite .badge { white-space: normal; overflow-wrap: anywhere; }

/* ---------- WL-03 (D2-120 §12/§15): Standard-/Detailansicht der Werkstatt-Stückliste – feste Spaltenbreiten, die Tabelle
   passt in die Inhaltsbreite (kein Querrollen am Desktop); am Handy wird jede Zeile eine Karte. Nur Farbtokens. */
.wl-ansicht { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 0; }
.wl-ansicht a { display: inline-block; padding: 2px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-s); font-size: .86rem; }
.wl-ansicht a[aria-current] { background: var(--active); color: var(--active-ink); border-color: var(--active); font-weight: 600; }
.wl-ansicht-text { flex-basis: 100%; }
table.wl-standard, table.wl-detail { table-layout: fixed; font-size: .88rem; }
.wl-standard td, .wl-detail td, .wl-standard th, .wl-detail th { overflow-wrap: anywhere; white-space: normal; }
.wl-standard th.wl-c-bauteil, .wl-detail th.wl-c-bauteil { width: 30%; }
.wl-standard th.wl-c-anzahl, .wl-detail th.wl-c-anzahl { width: 9%; }
.wl-standard th.wl-c-masse, .wl-detail th.wl-c-masse { width: 16%; }
.wl-standard th.wl-c-material, .wl-detail th.wl-c-material { width: 22%; }
.wl-standard th.wl-c-kanten, .wl-detail th.wl-c-kanten { width: 23%; }
.wl-detail tr[data-wl-zeile] > td, .wl-detail tr[data-wl-fehlt] > td { border-bottom: 0; }
.wl-detailzeile > td { padding-top: 0; }
.wl-dz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; font-size: .84rem; color: var(--ink-2); }
.wl-dz-titel { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.wl-pos { color: var(--muted); }
.wl-notiz { display: block; color: var(--ink-2); }
.wl-kf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.wl-kf li { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 5px; font-size: .8rem; overflow-wrap: anywhere; }
.wl-kf-ja { border-color: var(--ok-line); background: var(--ok-soft); }
.wl-kf-nein { color: var(--muted); }
.wl-kf-offen { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.wl-kf-widerspruch { border-color: var(--bad-line); background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.wl-legende { margin-top: 6px; }
@media (max-width: 600px) {                    /* WL-03: Standard/Detail am Handy als Karten, die Seite rollt nie quer */
  table.wl-standard, table.wl-detail, .wl-standard tbody, .wl-detail tbody, .wl-standard tr, .wl-detail tr { display: block; }
  .wl-standard thead, .wl-detail thead { display: none; }
  .wl-standard tr, .wl-detail tr { border-bottom: 1px solid var(--line-2); padding: 6px 0; }
  .wl-standard td, .wl-detail td { display: block; width: auto; border: 0; padding: 2px 10px; text-align: left; white-space: normal; }
  .wl-dz { grid-template-columns: minmax(0, 1fr); }
  .wl-standard td[data-label]::before, .wl-detail td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
}

@media (max-width: 1150px) {
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .nav { display: flex; flex-wrap: wrap; gap: var(--gos-abstand-1); }
  .side h4, .planned { display: none; }
  .main { padding: 16px; }
  .cols { grid-template-columns: 1fr; }
}
/* DG-01: diagrams (werkbank/diagramm.py) – colours only from the token variables, the table stays next to it */
.dg-wrap { overflow-x: auto; margin: 4px 0 12px; }
.dg-chart { display: block; width: 100%; min-width: 560px; height: auto; }
.dg-grid { stroke: var(--line); stroke-width: 1; }
.dg-base { stroke: var(--ink-2); stroke-width: 1.5; }
.dg-axis { fill: var(--muted); font-size: var(--dg-achse); font-variant-numeric: var(--zahl-ziffern); }
.dg-ist { fill: var(--tk-c); stroke: var(--ink-2); stroke-width: 1; }
/* the plan step in the ink colour: the token colours are row tints, too light for a thin line on a light card */
.dg-plan { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.dg-halo { stroke: var(--surface); stroke-width: 8; stroke-linecap: round; }
.dg-key-plan { display: inline-block; width: 18px; border-top: 3px solid var(--ink); vertical-align: middle; margin-right: 4px; }
.dg-offen { stroke-dasharray: 8 6; }
/* C3b: fehlender Wert sichtbar OFFEN (gestrichelt + „?“, Tooltip „offen“) – nie eine Säule der Höhe 0; echte 0 = Linie */
.dg-fehlt-linie { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 4 3; }
.dg-fehlt-marke { fill: var(--muted); font-size: var(--dg-achse); font-weight: 700; }
.dg-null { stroke: var(--ink-2); stroke-width: 3; stroke-linecap: round; }
/* C3b: Aufbau beim Laden (Bewegungs-System; reduced-motion: keiner) – die Zahl steht sofort in Tooltip und Tabelle */
.dg-ist { transform-box: fill-box; transform-origin: 50% 100%; animation: dg-wachsen var(--bw-aufbau) var(--bw-kurve) both; }
@keyframes dg-wachsen { from { transform: scaleY(0); } to { transform: none; } }
.dg-legend .tk-chip { margin-right: 4px; }
/* UC-01: previous year as a dashed outline next to the column */
.dg-vorjahr { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.uc-key-vorjahr { display: inline-block; width: 14px; height: 10px; border: 1.5px dashed var(--ink-2); vertical-align: middle; margin-right: 4px; }

/* ---------- UK-02: Möbelkonfigurator – Baum | 3D | Eigenschaften, nur Design-Tokens (Hell/Dunkel) */
.uk-raster { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr) minmax(250px, 340px); gap: 14px; align-items: start; }
.uk-raster > .card { margin: 0; min-width: 0; }
.uk-titel { margin: 4px 0 12px; }
.uk-baum, .uk-baum ul { list-style: none; margin: 0; padding-left: .9em; }
.uk-baum { padding-left: 0; font-size: .9rem; }
.uk-baum li { margin: 3px 0; overflow-wrap: anywhere; }
.uk-bild { width: 100%; overflow: hidden; }
.uk-3d, .uk-zeichnung { width: 100%; height: auto; display: block; max-height: 70vh; }
.uk-g polygon { stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.uk-g-korpus polygon { fill: var(--surface); }
.uk-g-boden polygon { fill: var(--field); }
.uk-g-rueck polygon { fill: var(--line); }
.uk-g-sockel polygon { fill: var(--muted); }
.uk-g-schub polygon { fill: var(--field); }
.uk-g-front polygon { fill: var(--accent-soft); }
.uk-f-o { fill-opacity: .85; }
.uk-f-s { fill-opacity: .7; }
.uk-ansichten { font-size: .86rem; margin: 0 0 8px; }
.uk-ansichten a.uk-an { font-weight: 700; text-decoration: underline; }
.uk-form { display: flex; flex-direction: column; gap: 10px; }
.uk-gruppe { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px 10px; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.uk-gruppe legend { font-weight: 600; font-size: .9rem; padding: 0 4px; }
.uk-feld { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; }
.uk-feld input, .uk-feld select, .uk-klein input, .uk-klein select { max-width: 100%; }
.uk-faecher { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--gos-abstand-2); }
.uk-fach { display: flex; flex-wrap: wrap; gap: 6px; align-items: end; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 6px; }
.uk-fach-nr { font-weight: 700; min-width: 1.4em; }
.uk-klein { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; max-width: 8.5rem; }
.uk-klein input { width: 6.5rem; }
.uk-fach-knoepfe { display: flex; gap: var(--gos-abstand-1); align-items: center; flex-wrap: wrap; font-size: .78rem; }
.uk-neu { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.uk-knoepfe { margin: 4px 0 0; }
.uk-hinweis { margin: 6px 0; }
.uk-offen { color: var(--bad); font-weight: 600; overflow-wrap: anywhere; }
.uk-tabelle td { vertical-align: top; }
.uk-mass { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.uk-mass-t, .uk-z-t, .uk-z-k { fill: var(--ink); font-size: 34px; }
.uk-z-k { font-size: 26px; }
.uk-z { fill: var(--surface); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.uk-z-front { fill: var(--accent-soft); fill-opacity: .5; }
.uk-z-rueck, .uk-z-sockel { fill: var(--line); }
.uk-z-kopf { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.uk-seite .badge { white-space: normal; }
@media (max-width: 1150px) {
  .uk-raster { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- AH-01 (GF 17.10.2026): Foto/PDF im Assistenten – Knopf und Ablagefläche, nur Design-Tokens (Hell/Dunkel) */
.ki-anhang { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .5rem 0 0; }
.ki-datei-feld { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ki-datei-knopf { cursor: pointer; }
.ki-anhang:focus-within .ki-datei-knopf { outline: 2px solid var(--focus, var(--accent)); outline-offset: 1px; }
.ki-ablage { flex: 1 1 100%; margin: 0; font-size: .8rem; color: var(--muted); }
.ki.ki-ziehen .ki-box { outline: 3px dashed var(--accent); outline-offset: -6px; background: var(--accent-soft, var(--field)); }
.ki.ki-laedt .ki-anhang { opacity: .6; }
.ki-art-anhang { border-color: var(--accent); }
.ah-konstruktion { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ---------- KC-01 (D2-120/D2-121): Startseite als Kommandozentrale und Assistent rechts – nur Design-Tokens (Hell/Dunkel) */
:root { --ki-breite: 380px; }   /* the assistant's width – the script sets the person's own (280–720 px) */
.app { grid-template-columns: 264px minmax(0, 1fr) auto; }
.ki { position: sticky; top: 0; align-self: start; height: 100vh; border-left: 1px solid var(--line); background: var(--surface, var(--bg)); }
.ki-box { height: 100%; display: flex; flex-direction: column; }
.ki-box > summary { list-style: none; }
.ki-box > summary::-webkit-details-marker { display: none; }
.ki-kopf { cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; writing-mode: vertical-rl; transform: rotate(180deg); }
.ki-box[open] > .ki-kopf { writing-mode: horizontal-tb; transform: none; border-bottom: 1px solid var(--line); }
.ki-titel { font-weight: 600; letter-spacing: .02em; }
.ki-titel::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); margin: 0 .45rem 0 0; vertical-align: middle; }
.ki-art { font-size: .78rem; color: var(--muted); }
.ki-box[open] { width: var(--ki-breite, 380px); max-width: max(300px, 30vw); }   /* lay01: never the work area */
.ki-inhalt { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 16px; min-height: 0; flex: 1; }
.ki-griff { position: absolute; left: -5px; top: 0; bottom: 0; width: 10px; cursor: col-resize; }
.ki-griff:hover, .ki-griff:focus { background: var(--accent-soft, transparent); outline: none; }
.ki-griff:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }   /* C2a: Tastaturfokus des Breitengriffs */
.ki-kontext { font-size: .8rem; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.ki-verlauf { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 120px; display: flex; flex-direction: column; gap: var(--gos-abstand-3); }
.ki-eintrag { display: flex; flex-direction: column; gap: 6px; }
.ki-du { align-self: flex-end; max-width: 88%; margin: 0; padding: 7px 11px; border-radius: var(--radius-s) var(--radius-s) var(--gos-radius-fein) var(--radius-s); background: var(--accent-soft, var(--field)); color: var(--ink); overflow-wrap: anywhere; }
.ki-antwort { align-self: flex-start; max-width: 96%; padding: 8px 11px; border-radius: var(--radius-s) var(--radius-s) var(--radius-s) var(--gos-radius-fein); background: var(--field); border: 1px solid var(--field-line, var(--line)); overflow-wrap: anywhere; }
.ki-antwort-text { margin: 0 0 4px; }
.ki-art-abgelehnt { border-color: var(--bad-line, var(--line)); }
.ki-optionen { margin: 4px 0 0; padding-left: 1.1em; }
.ki-optionen li { margin: 2px 0; }
.ki-bild { margin-top: 6px; }
.ki-form { display: flex; flex-direction: column; gap: 6px; }
.ki-form textarea { width: 100%; resize: vertical; min-height: 2.8rem; padding: 8px 10px; border-radius: var(--radius); border: 1px solid var(--field-line, var(--line)); background: var(--field); color: var(--ink); font: inherit; }
.ki-form textarea:focus, .kc-eingabe:focus { outline: 2px solid var(--focus, var(--accent)); outline-offset: 1px; }
.ki-modi { border: 0; margin: 0; padding: 0; display: flex; gap: var(--gos-abstand-3); font-size: .82rem; }
.ki-modus { display: inline-flex; gap: var(--gos-abstand-1); align-items: center; }
.ki-los { align-self: flex-end; }
.ki-vorschlaege { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ki-vorschlaege a { display: inline-block; padding: 3px 9px; border-radius: var(--radius-pille); border: 1px solid var(--line); font-size: .8rem; color: var(--ink); }
.ki-vorschlaege a:hover { border-color: var(--accent); text-decoration: none; }
.ki-hinweis { font-size: .76rem; color: var(--muted); margin: 0; }
/* kiu01 (D2-249): answer first – cards, action chips, technical details folded */
.ki-karten { list-style: none; margin: 8px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ki-karte { display: flex; gap: var(--gos-abstand-2); align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); min-width: 0; }
.ki-karte-zeichen { flex: 0 0 30px; height: 30px; border-radius: var(--radius-s); display: grid; place-items: center; font-weight: 600; color: var(--accent); background: var(--field); border: 1px solid var(--line); }
.ki-karte-text { display: flex; flex-direction: column; min-width: 0; }
.ki-karte-text b { font-weight: 600; overflow-wrap: anywhere; }
.ki-karte-text small { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.ki-antwort .ki-optionen { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.ki-antwort .ki-optionen a { display: inline-block; padding: 3px 10px; border: 1px solid var(--accent); border-radius: var(--radius-pille); text-decoration: none; font-size: .82rem; }
.ki-technik { margin-top: 6px; font-size: .74rem; color: var(--muted); }
.ki-technik > summary { cursor: pointer; list-style: revert; }
.ki-technik-liste { margin: 4px 0 0; padding-left: 1.1em; }
.ki-technik-panel { margin-top: 10px; }
/* dnd02: Ablagefenster – Auswahlliste vor dem Ablegen (✕ entfernen) */
.ablage-auswahl { margin: 8px 0; display: grid; gap: 6px; }
.ablage-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gos-abstand-1); }
.ablage-eintrag { display: flex; align-items: center; gap: var(--gos-abstand-2); padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--field, transparent); min-width: 0; }
.ablage-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .86rem; }
.ablage-groesse, .ablage-ziel { color: var(--muted); font-size: .76rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ablage-weg { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 6px; border-radius: var(--radius-xs); }
.ablage-weg:hover, .ablage-weg:focus-visible { color: var(--bad); background: var(--line); }
.ablage-leiste { display: flex; flex-wrap: wrap; gap: 6px; }
.ki-technik-panel .ki-art, .ki-technik-panel .ki-kontext, .ki-technik-panel .ki-modellstatus { margin: 4px 0 0; font-size: .74rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ki-diagramm { width: 100%; height: auto; max-width: 560px; }
.ki-d-label, .ki-d-wert { font-size: 11px; fill: var(--ink); }
.ki-d-balken { fill: var(--accent); }
.ki-d-hinweis { font-size: 10px; fill: var(--muted); }
.ki-seite .ki-diagramm { max-width: 760px; }

.kc { display: flex; flex-direction: column; gap: 18px; margin: 6px 0 22px; }
.kc-titel { font-size: 1.9rem; font-weight: 600; letter-spacing: -.015em; margin: 18px 0 0; }
.kc-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; max-width: 860px; }
.kc-form .diktat, .ki-form .diktat { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: var(--gos-abstand-2); align-items: center; font-size: .8rem; color: var(--muted); }
.kc-form .diktat .badge, .ki-form .diktat .badge { white-space: normal; font-weight: 400; }
.kc-form .kc-eingabe { flex: 1 1 420px; }
.kc-eingabe { flex: 1; min-width: 0; font-size: 1.15rem; padding: 14px 16px; border-radius: var(--radius-xl); border: 1px solid var(--field-line, var(--line)); background: var(--field); color: var(--ink); box-shadow: var(--shadow); }
.kc-los { padding: 0 22px; border-radius: var(--radius-xl); }
.kc-ehrlich { font-size: .82rem; color: var(--muted); max-width: 860px; margin: 0; }
.kc-beispiele { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--gos-abstand-2); }
.kc-beispiele a { display: inline-block; padding: 5px 12px; border-radius: var(--radius-pille); border: 1px solid var(--line); color: var(--ink); font-size: .86rem; }
.kc-beispiele a:hover { border-color: var(--accent); text-decoration: none; }
.kc-schnell { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.kc-kachel { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface, var(--bg)); color: var(--ink); }
.kc-kachel span { font-size: .8rem; color: var(--muted); }
.kc-kachel:hover { border-color: var(--accent); text-decoration: none; }
.kc-unter { font-size: 1rem; margin: 6px 0 0; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kc-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gos-abstand-3); }
.kc-karte { padding: 12px 14px; border-radius: var(--radius-l); background: var(--surface, var(--bg)); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--gos-abstand-1); }
.kc-karte h3 { font-size: .82rem; color: var(--muted); font-weight: 600; margin: 0; }
.kc-wert { font-size: var(--zahl); font-weight: var(--zahl-gewicht); margin: 0; font-variant-numeric: var(--zahl-ziffern); overflow-wrap: anywhere; }
.kc-wert.kc-wert-text { font-size: 1.02rem; line-height: 1.35; overflow-wrap: break-word; }   /* oc12: a name */
.kc-notiz { font-size: .8rem; color: var(--muted); margin: 0; }
.kc-karte-link { font-size: .82rem; margin-top: auto; }
.kc-warn { border-left: 3px solid var(--attention, var(--accent)); }
.kc-ok { border-left: 3px solid var(--accent); }
.kc-diagramm { margin: 0; padding: 12px 14px; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface, var(--bg)); max-width: 640px; }
.kc-diagramm figcaption { font-size: .86rem; color: var(--muted); margin-bottom: 6px; }
.kc-alt { margin-top: 10px; }
.kc-alt > summary { cursor: pointer; color: var(--muted); font-size: .9rem; margin-bottom: 10px; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { max-height: 50vh; }   /* the menu scrolls in its own box – "Was möchtest du erledigen?" stays near the top */
  .ki { position: static; height: auto; border-left: 0; border-top: 1px solid var(--line); }
  .ki-kopf { writing-mode: horizontal-tb; transform: none; }
  .ki-box[open] { width: auto; max-width: none; }
  .ki-griff { display: none; }
  .kc-form .kc-eingabe, .kc-los { flex: 1 1 100%; }   /* one line each – never flex-basis as height */
  .kc-los { padding: 12px 22px; }
  .kc-titel { font-size: 1.45rem; }
}

/* SL-WERKBANK-DASHBOARD-1: Abhak-Baustein (werkbank/abhaken.py) – grün = erledigt, grau = offen; nur Rollen der Tokens */
.abhak-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.abhak-knopf { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .82rem; font-weight: 600;
  border-radius: var(--radius-pille); padding: 4px 12px 4px 6px; cursor: pointer; border: 1px solid var(--line); }
.abhak-knopf .abhak-zeichen { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%;
  border: 1px solid currentColor; font-size: .85em; line-height: 1; }
.abhak-aus { background: var(--surface); color: var(--muted); }
.abhak-aus .abhak-zeichen { color: transparent; border-color: var(--muted); }
.abhak-aus:hover .abhak-zeichen { color: var(--muted); }
.abhak-an { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.abhak-knopf:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.abhak-knopf[disabled] { cursor: not-allowed; opacity: .6; }
/* SL-WERKBANK-DASHBOARD-1: Register Dashboard | Arbeitsansicht und Hinweis */
.am-leiste { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.am-hinweis { margin: 0 0 10px; }
/* SL-WERKBANK-DASHBOARD-1 Punkt 3: Kennzahl in b-ok/b-warn/b-bad (werkbank/kennzahl_farbe.py) – Gewicht 0,2,0, damit die
   Farbe auch in Kacheln gilt, deren Wert sonst die Schriftfarbe trägt; nur Rollen der Tokens, hell und dunkel */
.kz-wert { display: inline-block; border-radius: var(--radius-m); padding: 0 8px; }
.kz-wert.b-ok { background: var(--ok-soft); color: var(--ok); }
.kz-wert.b-warn { background: var(--warn-soft); color: var(--warn); }
.kz-wert.b-bad { background: var(--bad-soft); color: var(--bad); }
.kz-kachel.b-ok { background: var(--ok-soft); } .kz-kachel.b-ok b { color: var(--ok); }
.kz-kachel.b-warn { background: var(--warn-soft); } .kz-kachel.b-warn b { color: var(--warn); }
.kz-kachel.b-bad { background: var(--bad-soft); } .kz-kachel.b-bad b { color: var(--bad); }

/* Ladesymbol und Haken bei jeder Eingabe (Tim §193, werkbank/ladehaken.py): Farben nur über Tokens, Bewegung über
   --bw-*; das Drehen nur solange ein Speichern läuft (höchstens 25 s), prefers-reduced-motion schaltet es ab.
   R lh-07: ✓/✗ und der Ladering stehen auf einer EIGENEN Fläche (--surface) mit Kontur (--ink) – lesbar auf jedem
   Knopfhintergrund, hell und dunkel; die Paare --ok/--bad/--ink auf --surface prüft tools/farbpruefung.py. */
@keyframes lh-dreh { to { transform: rotate(360deg); } }
#lh-toast { position: fixed; right: 16px; bottom: 16px; z-index: 9999; padding: 6px 14px; border-radius: var(--radius-s);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 600;
  opacity: 0; transition: opacity var(--bw-kurz) var(--bw-kurve); pointer-events: none; }
#lh-toast.lh-zeigen { opacity: 1; }
#lh-toast.ok { border-color: var(--ok); color: var(--ok); }
#lh-toast.err { border-color: var(--bad); color: var(--bad); }
#lh-toast.gleich { border-color: var(--line); color: var(--ink); }   /* R lh2-04: keine Änderung – weder ✓ noch ✗ */
.lh-lade, .lh-ok, .lh-err { position: relative; color: transparent !important; }
.lh-lade { pointer-events: none; }
.lh-lade::after { content: ""; position: absolute; left: calc(50% - 8px); top: calc(50% - 8px); width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ok); border-top-color: var(--surface); border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--ink); animation: lh-dreh var(--bw-puls) var(--bw-kurve) infinite; }
.lh-ok::after, .lh-err::after { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 1.5em; padding: 0 .25em; line-height: 1.5em; border-radius: var(--radius-s); background: var(--surface); box-shadow: 0 0 0 1px var(--ink); text-align: center; font-weight: 700; }
.lh-ok::after { content: "\2713"; color: var(--ok); }
.lh-err::after { content: "\2717"; color: var(--bad); }
