/* ==========================================================================
   VöhringerSolutions Design System — BASE + KOMPONENTEN
   Version 2.0 · 13.08.2026
   --------------------------------------------------------------------------
   Braucht tokens.css. Enthält Reset, Typo-Grundlagen und alle Primitives.

   WAS SICH GEGENÜBER 1.0 GEÄNDERT HAT

   1. Durchgehend die Token-Namen aus Version 2.0. Vorher stand hier
      ausschließlich der Übergangs-Alias (--paper, --ink, --grey, --ink-60,
      --ink-40) — sechzig Verwendungen, keine einzige der neuen Namen.
      Deshalb ließ sich der Alias-Block in tokens.css nie streichen. Jetzt
      ist er weg.

   2. Abstände liegen auf der 4er-Basis. Vorher standen hier rund zwanzig
      Einzelwerte wie 9px, 11px, 13px und 14px — in einer Datei, deren Kopf
      behauptete, es gäbe keine.

   3. Der Seitengrund ist --bg-dark. Vorher stand body auf --paper, also auf
      der hellsten Fläche; tokens.css schreibt aber --bg-dark vor. Dadurch
      hoben sich Karten nicht mehr vom Untergrund ab.

   4. Keine Farbliterale mehr. --scrim trägt die Verdunkelung hinter Modals,
      die Nachtbox nutzt die reguläre Flächenstufe.

   5. Fünf neue Komponenten für App-Ansichten: Tooltip, Chip mit Farbpunkt,
      zurückgenommene Tabellenzeile, Zeilenaktion auf Hover und die
      Zeitleiste. Ohne sie war das System auf Marketing-Seiten beschränkt.

   6. Die Utility .mono ist gestrichen. Es gibt eine Schriftfamilie.

   BEWUSSTE AUSNAHMEN VON DER 4ER-BASIS
   Symbolgrößen (15/16/20/24px) bilden eine eigene Skala, weil sie sich an
   der Zeilenhöhe der Schrift ausrichten und nicht am Layoutraster. Die Höhe
   von Bedienelementen (38px) ergibt sich aus 2 × --sp-3 plus einer Textzeile.
   Beides ist Absicht und kein übersehener Wert.

   Import-Reihenfolge:
     @import "fonts.css";
     @import "tokens.css";
     @import "components.css";
   ========================================================================== */

/* ==========================================================================
   BASE
   ========================================================================== */
@layer base {

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--sp-16);
}

body {
  /* Seite ist die unterste Ebene. Karte --bg, angehobenes Element --bg-light. */
  background: var(--bg-dark);
  color: var(--text);
  font: var(--w-normal) var(--fs-600) / var(--lh-body) var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* App-Ansichten sind dichter gesetzt als Marketing-Seiten */
body[data-density="app"] { font-size: var(--fs-400); }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-head);
  text-wrap: balance;
}
h1 { font-size: var(--fs-900); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-800); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-700); line-height: var(--lh-head); letter-spacing: -.006em; }
h4 { font-size: var(--fs-500); line-height: var(--lh-head); font-weight: var(--w-semi); }

/* Lesebreite global, nicht pro Komponente */
p { max-width: var(--measure); }

::selection { background: var(--accent); color: var(--on-accent); }

/* Fokus: nie wegnehmen. Sichtbar über allem, immer mit Abstand zur Kante. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

} /* @layer base */


/* ==========================================================================
   PRIMITIVES — die kleinen Bausteine
   ========================================================================== */
@layer primitives {

/* ---------- Ikonografie ----------
   Ein einziger Stil: 1.6px Strichstärke, runde Enden, kein Fill.
   Größe über die Klasse, nie im SVG-Attribut. Die Größen richten sich nach
   der Zeilenhöhe der begleitenden Schrift — eigene Skala, siehe Kopf. */
.ic {
  width: 20px; height: 20px; flex: none;
  stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 24px; height: 24px; }

/* ---------- Buttons ----------
   Zwei Varianten. Mehr braucht es nicht: eine Hauptaktion pro Ansicht,
   alles andere ist sekundär oder ein Textlink.
   Höhe: 2 × --sp-3 + eine Textzeile = 38px. */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font: var(--w-semi) var(--fs-400) / 1 var(--font-sans);
  letter-spacing: .005em;
  border: 1px solid transparent; border-radius: var(--r-action);
  padding: var(--sp-3) var(--sp-5);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.985); }
.btn .ic { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; transform: none;
}

/* Hauptaktion */
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

/* Sekundär — Rand statt Fläche */
.btn-secondary { background: var(--bg-light); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--text-faint); background: var(--bg-dark); }

/* Auf Akzentfläche kehrt sich die Hauptaktion um */
.on-accent .btn-primary { background: var(--bg-light); color: var(--text); }
.on-accent .btn-primary:hover { background: var(--bg-dark); }
.on-accent :focus-visible { outline-color: var(--bg-light); }

/* Kompakt — App-Toolbars, Tabellenköpfe */
.btn-sm { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-300); gap: var(--sp-2); }
.btn-sm .ic { width: 14px; height: 14px; }

/* Textlink mit Pfeil — die dritte Aktionsstufe */
.tlink {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font: var(--w-medium) var(--fs-500) / 1 var(--font-sans);
  text-decoration: none; color: var(--text);
  transition: color var(--t-fast) var(--ease);
}
.tlink .ic { width: 15px; height: 15px; transition: transform var(--t-fast) var(--ease); }
.tlink:hover { color: var(--accent); }
.tlink:hover .ic { transform: translateX(3px); }

/* Icon-Button — quadratisch, gleiche Höhe wie .btn */
.ibtn {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--bg-light); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-action);
  cursor: pointer; transition: border-color var(--t-fast) var(--ease),
                               background var(--t-fast) var(--ease);
}
.ibtn:hover { border-color: var(--line-strong); background: var(--bg-dark); }
.ibtn-round { border-radius: var(--r-pill); }
.ibtn-sm { width: 28px; height: 28px; }

/* ---------- Tooltip ----------
   Für jedes Symbol ohne Beschriftung und jede mehrdeutige Angabe. Der
   Baustein, der auf Dashboards am häufigsten fehlt.
   Verwendung:  <span class="has-tip"><button class="ibtn">…</button>
                <span class="tip">Archivieren</span></span>          */
.has-tip { position: relative; display: inline-flex; }
.tip {
  position: absolute; bottom: calc(100% + var(--sp-2)); left: 50%;
  transform: translateX(-50%); z-index: 6;
  background: var(--text); color: var(--bg-light);
  font: var(--w-medium) var(--fs-200) / 1.3 var(--font-sans);
  white-space: nowrap; padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-action);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease);
}
.tip::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: var(--text);
}
/* Sitzt das Element ganz oben, klappt der Hinweis nach unten auf */
.tip-below { bottom: auto; top: calc(100% + var(--sp-2)); }
.tip-below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--text); }
.has-tip:hover .tip, .has-tip:focus-within .tip { opacity: 1; }

/* ---------- Formularfelder ---------- */
.field { margin-bottom: var(--sp-3); }
.field > label {
  display: block;
  font: var(--w-semi) var(--fs-300) / 1.3 var(--font-sans);
  letter-spacing: .01em; color: var(--text-muted);
  margin-bottom: var(--sp-2);
}
.field > label .req { color: var(--accent); }

.input, .textarea, .select {
  width: 100%;
  background: var(--bg-light); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-action);
  padding: var(--sp-3);
  font-size: var(--fs-500);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.textarea { resize: vertical; min-height: 96px; line-height: var(--lh-body); }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--text-faint); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.invalid .input, .field.invalid .textarea { border-color: var(--err-fg); }
.field.invalid .input:focus, .field.invalid .textarea:focus {
  box-shadow: 0 0 0 3px var(--err-bg);
}
.field .hint { font-size: var(--fs-300); color: var(--text-faint); margin-top: var(--sp-1); }
.field .error {
  display: none; font: var(--w-medium) var(--fs-300) / 1.4 var(--font-sans);
  color: var(--err-fg); margin-top: var(--sp-1);
}
.field.invalid .error { display: block; }

/* Auswahl-Kachel — ersetzt Radiogruppen in mehrstufigen Formularen */
.choice {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  width: 100%; text-align: left; cursor: pointer;
  font-size: var(--fs-500); color: var(--text);
  background: var(--bg-light); border: 1px solid var(--line-strong);
  border-radius: var(--r-action); padding: var(--sp-3) var(--sp-4);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.choice::after { content: "→"; color: var(--text-faint); transition: color var(--t-fast) var(--ease); }
.choice:hover { border-color: var(--accent); }
.choice:hover::after { color: var(--accent); }
.choice[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.choice[aria-checked="true"]::after { content: "✓"; color: var(--accent); }

/* ---------- Pills & Labels ---------- */
.pill {
  display: inline-block;
  font: var(--w-semi) var(--fs-100) / 1 var(--font-sans);
  letter-spacing: .05em; text-transform: uppercase;
  border-radius: var(--r-pill); padding: var(--sp-1) var(--sp-2);
  background: var(--accent-soft); color: var(--accent-hover);
}
.pill-ok   { background: var(--ok-bg);   color: var(--ok-fg); }
.pill-warn { background: var(--warn-bg); color: var(--warn-fg); }
.pill-err  { background: var(--err-bg);  color: var(--err-fg); }
.pill-mute { background: var(--fill);    color: var(--text-muted); }

/* ---------- Chip mit Farbpunkt ----------
   Für feste Wertemengen: Quelle, Kategorie, Abteilung, Zuständigkeit.
   Nicht für Zustände — dafür ist .pill da. Der Punkt trägt die Farbe,
   der Text bleibt lesbar. */
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  white-space: nowrap;
  font: var(--w-medium) var(--fs-200) / 1 var(--font-sans);
  color: var(--text); background: var(--fill);
  border-radius: var(--r-pill); padding: var(--sp-1) var(--sp-2);
}
.chip > i {
  width: 6px; height: 6px; flex: none;
  border-radius: var(--r-pill); background: currentColor;
}

/* Umrandete Variante — für Meta-Angaben neben Überschriften */
.tag {
  display: inline-block;
  font: var(--w-medium) var(--fs-200) / 1 var(--font-sans);
  letter-spacing: .02em; color: var(--text-muted);
  background: var(--bg-light); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: var(--sp-1) var(--sp-3);
}

/* Uppercase-Kleinlabel über Überschriften. Das einzige Auszeichnungsmittel
   dieser Art im System — es gibt keine zweite Badge-Familie. */
.micro {
  display: block;
  font: var(--w-semi) var(--fs-100) / 1 var(--font-sans);
  letter-spacing: var(--ls-micro); text-transform: uppercase;
  color: var(--text-faint);
}

/* Icon-Kachel — Prozessschritte, Feature-Icons */
.tile {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-box);
  background: var(--accent-soft); color: var(--accent);
}

/* Avatar */
.avatar {
  width: 40px; height: 40px; flex: none;
  border-radius: var(--r-pill); overflow: hidden;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  font: var(--w-semi) var(--fs-300) / 1 var(--font-sans);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 24px; height: 24px; font-size: var(--fs-100); }

} /* @layer primitives */


/* ==========================================================================
   KOMPONENTEN
   ========================================================================== */
@layer components {

/* ---------- Layout ---------- */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.shell-app  { max-width: var(--shell-app); margin-inline: auto; padding-inline: var(--pad); }
.shell-read { max-width: var(--shell-read); margin-inline: auto; padding-inline: var(--pad); }

.section    { padding-block: var(--sp-section); }
.section-lg { padding-block: var(--sp-section-lg); }
.section-grey { background: var(--bg-dark); }

/* Sektionskopf — micro, Überschrift, Lead. Immer in dieser Reihenfolge. */
.sec-head { margin-bottom: var(--sp-head); }
.sec-head .micro { margin-bottom: var(--sp-3); }
.sec-head h2 { max-width: 18em; }
.sec-head p { margin-top: var(--sp-3); color: var(--text-muted); }

/* Das Raster. Zwei Ausrichtungen, sonst nichts. */
.g75, .g57 { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); align-items: center; }
@media (min-width: 820px) {
  .g75 { grid-template-columns: var(--grid-75); gap: var(--sp-12); }
  .g57 { grid-template-columns: var(--grid-57); gap: var(--sp-12); }
}

/* Gleichmäßige Grids für Karten */
.g2, .g3 { display: grid; grid-template-columns: 1fr; gap: var(--sp-gap); }
@media (min-width: 700px) {
  .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Navigation ---------- */
.nav { background: var(--bg-light); border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease); }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--shell); margin-inline: auto;
  padding: var(--sp-3) var(--pad);
  display: flex; align-items: center; gap: var(--sp-6);
}
.brand { display: flex; align-items: center; gap: var(--sp-2); margin-right: auto; text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; flex: none;
  border-radius: var(--r-action); background: var(--accent);
  display: grid; place-items: center;
}
.brand-mark .ic { width: 15px; height: 15px; stroke: var(--on-accent); stroke-width: 2.1; }
.brand b { display: block; font: var(--w-semi) var(--fs-500) / 1.15 var(--font-sans); letter-spacing: -.012em; }
.brand small { display: block; font: var(--w-normal) var(--fs-200) / 1.2 var(--font-sans); color: var(--text-faint); }
.nav-links { display: none; align-items: center; gap: var(--sp-6); }
.nav-links a {
  font: var(--w-medium) var(--fs-400) / 1 var(--font-sans);
  color: var(--text-muted); text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav .btn-primary { display: none; }
@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav .btn-primary { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Karten ---------- */
.card {
  background: var(--bg-light);
  border: 1px solid var(--line); border-radius: var(--r-box);
  padding: var(--sp-6);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--text-muted); font-size: var(--fs-500); max-width: 30em; }
/* --fill statt --bg-dark: im dunklen Modus wäre --bg-dark der dunkelste Ton,
   und die flache Karte läge unter der Fläche, auf der sie sitzt. */
.card-flat { background: var(--fill); border-color: transparent; border-radius: var(--r-action); }
.card-link { text-decoration: none; display: block;
  transition: border-color var(--t-fast) var(--ease); }
.card-link:hover { border-color: var(--line-strong); }
.card .ic-lg { color: var(--accent); margin-bottom: var(--sp-4); }

/* Medienbereich in Karten */
.media { border-radius: var(--r-media); overflow: hidden; background: var(--bg-dark); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-image) var(--ease-out); }
.card-link:hover .media img { transform: scale(1.03); }

/* ---------- Kennzahlen-Leiste ----------
   Drei Zahlen, durch Linien getrennt. Keine Boxen — die Linie genügt. */
.facts { background: var(--bg-dark); border-block: 1px solid var(--line); }
.facts-inner { display: grid; grid-template-columns: 1fr; }
.fact { padding-block: var(--sp-5); border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; }
.fact b {
  display: block; font-weight: var(--w-bold);
  font-size: clamp(1.6875rem, 2.4vw, 2.125rem);
  letter-spacing: var(--ls-tight); font-variant-numeric: tabular-nums;
  white-space: nowrap; margin-bottom: var(--sp-1);
}
.fact span { color: var(--text-muted); font-size: var(--fs-400); line-height: 1.4; }
@media (min-width: 700px) {
  .facts-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--sp-10); }
  .fact { border-top: 0; padding-block: var(--sp-6); }
  .fact + .fact { border-left: 1px solid var(--line); padding-left: var(--sp-10); }
}

/* ---------- Prozess-Schritte ----------
   Kachel links, Inhalt rechts, Verbindungslinie dazwischen.
   Die Linie sitzt in der Mitte der 44px-Kachel und beginnt darunter. */
.step {
  position: relative; display: grid;
  grid-template-columns: 44px minmax(0, 1fr); gap: var(--sp-4);
  padding-bottom: var(--sp-6);
}
.step:last-of-type { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 22px;
  top: calc(44px + var(--sp-2)); bottom: var(--sp-1);
  width: 1px; background: var(--line);
}
.step:last-of-type::before { display: none; }
.step .micro { margin-bottom: var(--sp-1); }
.step h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.step p { color: var(--text-muted); font-size: var(--fs-500); margin-top: var(--sp-2); max-width: 32em; }

/* ---------- Zeitleiste ----------
   Für alles mit einer Zeitachse. Eine nach Datum sortierte Tabelle zwingt
   den Leser, den Ablauf aus einer Spalte zu rekonstruieren — hier ist der
   Ablauf die Form. */
.timeline { display: flex; flex-direction: column; }
.tl-item {
  position: relative; display: grid;
  grid-template-columns: 24px minmax(0, 1fr); gap: var(--sp-3);
  padding-bottom: var(--sp-5);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 12px;
  top: calc(24px + var(--sp-1)); bottom: var(--sp-1);
  width: 1px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 24px; height: 24px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.tl-dot .ic { width: 13px; height: 13px; }
.tl-item h4 { font-size: var(--fs-400); font-weight: var(--w-medium); line-height: 1.3; }
.tl-item .meta {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-200); color: var(--text-faint); margin-top: var(--sp-1);
}

/* ---------- Akzent-Panel ----------
   Die einzige große Farbfläche im System. Höchstens eine pro Seite. */
.panel { background: var(--accent); color: var(--on-accent); }
.panel h1, .panel h2, .panel h3 { color: inherit; }
.panel .micro { color: color-mix(in srgb, var(--on-accent) 74%, transparent); }
.panel .note { font-size: var(--fs-300); color: color-mix(in srgb, var(--on-accent) 74%, transparent); margin-top: var(--sp-3); }
.panel-list { list-style: none; max-width: 30em; margin-block: var(--sp-4) var(--sp-6); }
.panel-list li {
  display: flex; gap: var(--sp-3); align-items: baseline;
  padding-block: var(--sp-2); font-size: var(--fs-500);
  border-bottom: 1px solid color-mix(in srgb, var(--on-accent) 22%, transparent);
}
.panel-list li:first-child { border-top: 1px solid color-mix(in srgb, var(--on-accent) 22%, transparent); }
.panel-list .ic { width: 14px; height: 14px; transform: translateY(2px); }

/* ---------- Nacht-Sektion ----------
   Dunkler Kontrastblock im hellen Verlauf. Kein Dark-Mode-Ersatz.
   Innerhalb greift der dunkle Wertesatz aus tokens.css, deshalb genügen
   hier die regulären Flächen- und Linienrollen. */
.night { background: var(--bg-dark); color: var(--text); padding-block: var(--sp-section-lg); }
.night h1, .night h2, .night h3 { color: inherit; }
.night blockquote {
  font-weight: var(--w-bold); font-size: clamp(1.375rem, 3.4vw, 2.25rem);
  line-height: var(--lh-snug); letter-spacing: var(--ls-head);
  max-width: 13em; text-wrap: balance;
}
.night .src { margin-top: var(--sp-5); color: var(--text-muted); font-size: var(--fs-400); max-width: 30em; }
.night .src a {
  display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2);
  color: var(--text); font-weight: var(--w-medium); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: border-color var(--t-fast) var(--ease);
}
.night .src a:hover { border-bottom-color: var(--text); }
.night-box {
  border: 1px solid var(--line); border-radius: var(--r-media);
  background: var(--bg-light); padding: var(--sp-5);
}
.night-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3);
  padding-block: var(--sp-3); border-bottom: 1px solid var(--line);
  font-size: var(--fs-400); color: var(--text-muted);
}
.night-row:last-child { border-bottom: 0; }
.night-row b {
  font-weight: var(--w-bold); font-size: var(--fs-700);
  color: var(--text); font-variant-numeric: tabular-nums;
}

/* ---------- Tabelle (App) ----------
   Der Härtetest des Systems. Linien statt Zebrastreifen, Zahlen rechts
   und tabellarisch, Status als Pill, feste Wertemengen als Chip. */
.table-wrap {
  border: 1px solid var(--line); border-radius: var(--r-box);
  overflow: hidden; background: var(--bg-light);
}
.table-bar {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3);
  border-bottom: 1px solid var(--line); background: var(--bg-dark);
}
.table-bar .input { flex: 1; min-width: 140px; padding: var(--sp-2) var(--sp-3); font-size: var(--fs-400); }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-400); }
table.data thead th {
  text-align: left; white-space: nowrap;
  font: var(--w-semi) var(--fs-100) / 1 var(--font-sans);
  letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--text-faint);
  padding: var(--sp-3); border-bottom: 1px solid var(--line);
}
table.data tbody td {
  padding: var(--sp-3); border-bottom: 1px solid var(--line-soft);
  color: var(--text-muted); white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--bg-dark); }
table.data tbody td:first-child { color: var(--text); font-weight: var(--w-medium); }
table.data td.num, table.data th.num {
  text-align: right; font-variant-numeric: tabular-nums; color: var(--text);
}

/* Deaktivierter Datensatz — zurückgenommen, aber lesbar (AA bleibt erfüllt) */
tr.row-off td, tr.row-off td:first-child {
  color: var(--text-faint); font-weight: var(--w-normal);
}

/* Zeilenaktion, die erst beim Überfahren erscheint.
   Nach dem Spektrum der Explizitheit: selten gebraucht und platzintensiv
   heißt versteckt, bis jemand danach sucht. Bei Tastaturfokus immer sichtbar. */
.row-act { opacity: 0; transition: opacity var(--t-fast) var(--ease); }
tr:hover .row-act, .row-act:focus-within { opacity: 1; }
@media (hover: none) { .row-act { opacity: 1; } }

/* ---------- Aufklapper / FAQ ----------
   Nur Linien, kein Container. */
.disclosure { border-bottom: 1px solid var(--line); }
.disclosure > summary {
  position: relative; cursor: pointer; list-style: none;
  padding: var(--sp-5) var(--sp-10) var(--sp-5) 0;
  font: var(--w-medium) var(--fs-600) / var(--lh-head) var(--font-sans);
  letter-spacing: -.01em; color: var(--text);
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after {
  content: "+"; position: absolute; right: var(--sp-2); top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; font-weight: var(--w-normal);
  color: var(--accent); transition: transform var(--t-mid) var(--ease-out);
}
.disclosure[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.disclosure .body { padding-bottom: var(--sp-5); }
.disclosure .body p { color: var(--text-muted); font-size: var(--fs-500); line-height: var(--lh-loose); }

/* ---------- Hinweisbox ---------- */
.notice {
  border: 1px solid var(--line); border-left-width: 3px; border-left-color: var(--accent);
  border-radius: var(--r-action); padding: var(--sp-4) var(--sp-5);
  background: var(--bg-dark); font-size: var(--fs-500); color: var(--text-muted);
}
.notice-ok   { border-left-color: var(--ok-fg);   background: var(--ok-bg); }
.notice-warn { border-left-color: var(--warn-fg); background: var(--warn-bg); }
.notice-err  { border-left-color: var(--err-fg);  background: var(--err-bg); }
.notice strong { color: var(--text); font-weight: var(--w-semi); }

/* ---------- Overlay / Modal ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: var(--scrim);
  display: grid; place-items: center; padding: var(--sp-4);
}
.modal {
  background: var(--bg-light); border-radius: var(--r-box);
  box-shadow: var(--sh-over); padding: var(--sp-6);
  width: min(100%, 520px); max-height: 90vh; overflow-y: auto;
}
.modal h3 { margin-bottom: var(--sp-3); }
.menu {
  background: var(--bg-light); border: 1px solid var(--line);
  border-radius: var(--r-box); box-shadow: var(--sh-pop);
  padding: var(--sp-1); min-width: 180px;
}
.menu a, .menu button {
  display: flex; align-items: center; gap: var(--sp-2); width: 100%;
  padding: var(--sp-2) var(--sp-3); border: 0; background: none; border-radius: var(--r-action);
  font-size: var(--fs-400); color: var(--text); text-align: left;
  text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.menu a:hover, .menu button:hover { background: var(--fill); }

/* ---------- Fortschritt ---------- */
.progress { height: var(--sp-1); background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent);
  transition: width var(--t-slow) var(--ease-out); }

/* ---------- Reveal beim Scrollen ----------
   Einmalig, subtil, gestaffelt über --d. IntersectionObserver setzt .in. */
.io {
  opacity: 0; transform: translateY(var(--sp-4));
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease-out);
  transition-delay: var(--d, 0s);
}
.io.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .io { opacity: 1; transform: none; } }

} /* @layer components */


/* ==========================================================================
   UTILITIES — bewusst wenige. Wenn du hier etwas ergänzen willst, prüfe
   erst, ob nicht eine Komponente fehlt.
   ========================================================================== */
@layer utilities {

.sub      { color: var(--text-muted); }
.dim      { color: var(--text-faint); }
.num      { font-variant-numeric: tabular-nums; }
.measure  { max-width: var(--measure); }
.lead     { font-size: var(--fs-600); line-height: 1.62; color: var(--text-muted); }
.stack    { display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
.row      { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }

/* Nur für Screenreader */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

} /* @layer utilities */
