/* Growsta Fulfillment, Arbeitsfläche V1. Tokens zuerst, 8-px-Raster, Radien 4 (Felder) und 8 (Flächen). */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F8F8FC;
  --surface: #FFFFFF;
  --ink: #1B0C25;
  --ink-2: #53475F;
  --line: #E3E0EC;
  --line-strong: #C9C3D6;
  --side: #1B0C25;
  --side-ink: #F1EDF7;
  --side-ink-2: #B9AEC9;
  --side-line: #35243F;
  --violet: #6944FF;
  --violet-dark: #5733E6;
  --violet-soft: #9885FF;
  --violet-wash: #EFEBFF;
  --ok: #1F9E6E;
  --ok-ink: #14684A;
  --ok-wash: #E1F4EB;
  --warn: #B7791F;
  --warn-ink: #875710;
  --warn-wash: #F9EDD3;
  --alarm: #C2474A;
  --alarm-ink: #A33134;
  --alarm-wash: #FBE4E4;
  --grad-line: linear-gradient(90deg, #FF7448, #E86568 45%, #6944FF);

  --r-field: 4px;
  --r-surface: 8px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px;
  --side-w: 232px;
  --tap: 44px;

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
}
body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-line);
  z-index: 100;
}
h1, h2, h3 { font-family: var(--font-head); margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
.nums, .tabular { font-variant-numeric: tabular-nums; font-family: var(--font-head); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -64px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--r-field); z-index: 200; }
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 2px; }
.seitenleiste :focus-visible { outline-color: var(--violet-soft); }

/* ---------- Gerüst ---------- */
.geruest { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100dvh; }
.seitenleiste {
  background: var(--side); color: var(--side-ink);
  position: sticky; top: 0; height: 100dvh;
  display: flex; flex-direction: column; padding: var(--s4) var(--s2) var(--s2);
}
.marke { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--s1) var(--s4); text-decoration: none; }
.marke b { font-family: var(--font-head); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.marke span { font-size: 14px; color: var(--side-ink-2); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; min-height: var(--tap);
  padding: 0 12px; border-radius: var(--r-field); text-decoration: none; color: var(--side-ink-2);
  font-weight: 500; position: relative;
}
.nav a:hover { background: #2A1836; color: var(--side-ink); }
.nav a[aria-current="page"] { background: #2E1B3B; color: #fff; }
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 4px;
  background: var(--violet-soft); border-radius: 0 4px 4px 0;
}
.nav .zahl { margin-left: auto; font-family: var(--font-head); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--side-ink); }
.nutzer { margin-top: auto; padding: var(--s2) var(--s1) 0; border-top: 1px solid var(--side-line); display: grid; gap: 4px; }
.nutzer .wer { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.nutzer .rolle { font-size: 14px; color: var(--side-ink-2); }
.nutzer form { margin-top: 8px; }
.knopf-leise {
  background: transparent; border: 1px solid var(--side-line); color: var(--side-ink);
  min-height: var(--tap); width: 100%; border-radius: var(--r-field); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500;
}
.knopf-leise:hover { background: #2A1836; }

main { padding: var(--s5) var(--s5) var(--s8); max-width: 1240px; width: 100%; }
.mobilkopf { display: none; }

/* ---------- Icons ---------- */
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-s { width: 16px; height: 16px; }

/* ---------- Status ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; line-height: 1.3; }
.status.ok { color: var(--ok-ink); }
.status.warn { color: var(--warn-ink); }
.status.alarm { color: var(--alarm-ink); }
.status.ok .ic { stroke: var(--ok); }
.status.warn .ic { stroke: var(--warn); }
.status.alarm .ic { stroke: var(--alarm); }
.marke-kunde { display: inline-flex; align-items: center; gap: 6px; }
.sonder { color: var(--warn-ink); display: inline-flex; align-items: center; }
.sonder .ic { stroke: var(--warn); width: 16px; height: 16px; }

/* ---------- Flash ---------- */
.flash { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--r-surface); margin-bottom: var(--s3); font-weight: 500; }
.flash.ok { background: var(--ok-wash); color: var(--ok-ink); }
.flash.alarm { background: var(--alarm-wash); color: var(--alarm-ink); }
.flash .ic { stroke: currentColor; }

/* ---------- Stapel ---------- */
.kopf { display: grid; gap: var(--s2); margin-bottom: var(--s4); max-width: 880px; }
.kopf h1 { font-size: 40px; line-height: 1.15; font-weight: 600; text-wrap: balance; }
.kopf h1 .nums { font-weight: 700; }
.fortschritt { display: flex; align-items: center; gap: var(--s2); color: var(--ink-2); }
.fortschritt progress {
  -webkit-appearance: none; appearance: none; width: 240px; height: 8px; border: 0; border-radius: 4px;
  background: var(--line); overflow: hidden;
}
.fortschritt progress::-webkit-progress-bar { background: var(--line); border-radius: 4px; }
.fortschritt progress::-webkit-progress-value { background: var(--ink); border-radius: 4px; }
.fortschritt progress::-moz-progress-bar { background: var(--ink); border-radius: 4px; }

.filter { display: flex; gap: 4px; margin-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.filter a {
  min-height: var(--tap); display: inline-flex; align-items: center; gap: 8px; padding: 0 var(--s2);
  text-decoration: none; color: var(--ink-2); font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.filter a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.filter a:hover { color: var(--ink); }
.filter .nums { font-size: 14px; }

.liste { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); overflow: hidden; }
.liste-kopf, .zeile {
  display: grid; grid-template-columns: 168px minmax(0, 1fr) 176px 88px 216px; gap: var(--s2); align-items: center;
  padding: 0 var(--s3);
}
.liste-kopf { min-height: 40px; font-size: 14px; color: var(--ink-2); font-weight: 500; border-bottom: 1px solid var(--line); background: #FBFAFE; }
.zeile { min-height: 64px; text-decoration: none; border-bottom: 1px solid var(--line); position: relative; }
.zeile:last-child { border-bottom: 0; }
.zeile:hover { background: #FAF9FE; }
.zeile.aktiv { background: var(--violet-wash); }
.zeile.aktiv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ink); }
.zeile .kunde { font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; }
.zeile .seite { min-width: 0; }
.zeile .seite b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .seite small { color: var(--ink-2); font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .typ { color: var(--ink-2); font-size: 15px; }
.zeile .alter { font-family: var(--font-head); font-variant-numeric: tabular-nums; font-weight: 500; }
.leer { padding: var(--s6) var(--s3); text-align: center; color: var(--ink-2); display: grid; gap: 8px; justify-items: center; }
.leer h2 { font-size: 24px; color: var(--ink); }
.tasten { margin-top: var(--s2); color: var(--ink-2); font-size: 14px; }
kbd { font-family: var(--font-text); font-size: 13px; font-weight: 600; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; background: var(--surface); }

/* ---------- Auftrag / Freigabe ---------- */
.zurueck { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; min-height: var(--tap); font-weight: 500; }
.zurueck:hover { color: var(--ink); }
.auftragskopf { display: grid; gap: 8px; margin-bottom: var(--s3); }
.auftragskopf h1 { font-size: 28px; overflow-wrap: anywhere; }
.faktenzeile { display: flex; flex-wrap: wrap; gap: 8px var(--s3); color: var(--ink-2); font-size: 15px; align-items: center; }
.faktenzeile a { display: inline-flex; align-items: center; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: var(--r-field); padding: 0 8px; min-height: 24px; font-size: 14px; font-weight: 500; background: var(--surface); }
.badge.warn { border-color: var(--warn); color: var(--warn-ink); background: var(--warn-wash); }
.badge.alarm { border-color: var(--alarm); color: var(--alarm-ink); background: var(--alarm-wash); }

.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); margin-bottom: var(--s3); }
.block > h2 { font-size: 20px; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.block > h2 small { font-family: var(--font-text); font-weight: 400; font-size: 14px; color: var(--ink-2); }
.block-inhalt { padding: var(--s2) var(--s3) var(--s3); }

.pruefungen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); padding: var(--s1) var(--s3) var(--s2); margin: 0; list-style: none; }
.pruefungen li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pruefungen li:nth-last-child(-n+2):nth-child(odd), .pruefungen li:last-child { border-bottom: 0; }
.pruefungen .kopfzeile { display: flex; align-items: center; gap: 8px; font-weight: 600; flex-wrap: wrap; }
.pruefungen details summary { cursor: pointer; color: var(--ink-2); font-size: 14px; margin-top: 4px; min-height: 24px; }
.pruefungen details ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.pruefungen .meldung { color: var(--ink-2); font-size: 15px; margin-top: 4px; }

.metazeile { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); }
.metazeile:last-child { border-bottom: 0; }
.metazeile h3 { font-size: 16px; }
.metazeile small { color: var(--ink-2); display: block; font-size: 14px; }

.vergleichskopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); background: #FBFAFE; }
.vergleichskopf div { padding: 12px var(--s3); font-weight: 600; font-family: var(--font-head); }
.vergleichskopf div + div { border-left: 1px solid var(--line); }
.abschnitt { border-bottom: 1px solid var(--line); }
.abschnitt:last-child { border-bottom: 0; }
.abschnitt-titel { padding: 12px var(--s3) 0; font-size: 14px; color: var(--ink-2); font-weight: 600; display: flex; gap: 12px; align-items: center; }
.abschnitt-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.spalte { padding: 8px var(--s3) var(--s2); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 68ch; line-height: 1.6; }
.spalte + .spalte { border-left: 1px solid var(--line); }
.spalte.leer-zelle { color: var(--ink-2); font-style: normal; }
del { background: var(--alarm-wash); color: var(--alarm-ink); text-decoration: line-through; text-decoration-thickness: 1px; border-radius: 2px; padding: 0 2px; }
ins { background: var(--ok-wash); color: var(--ok-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; border-radius: 2px; padding: 0 2px; }
.unveraendert { padding: 12px var(--s3); color: var(--ink-2); font-size: 15px; }
.umschalter { display: none; }
.hinweis { padding: 12px var(--s3); background: var(--warn-wash); color: var(--warn-ink); display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); font-weight: 500; }
.hinweis .ic { stroke: var(--warn); }
.mt { margin-top: 12px; }
.hinweis-block { margin: -8px calc(-1 * var(--s3)) var(--s2); border-radius: 0; }
.text-block { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 72ch; color: var(--ink); }
.links-liste { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- Aktionsleiste ---------- */
.aktionen {
  position: sticky; bottom: 0; z-index: 30; margin: var(--s4) calc(-1 * var(--s5)) calc(-1 * var(--s8));
  padding: 0 var(--s5);
}
.aktionen-innen {
  background: var(--surface); border-top: 1px solid var(--line-strong); box-shadow: 0 -8px 24px rgba(27, 12, 37, 0.06);
  padding: var(--s2) var(--s3); display: flex; align-items: center; gap: var(--s2); justify-content: space-between; flex-wrap: wrap;
  position: relative;
}
.aktionen .erklaerung { color: var(--ink-2); font-size: 15px; max-width: 52ch; }
.aktionen .knoepfe { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.knopf {
  min-height: var(--tap); padding: 0 var(--s3); border-radius: var(--r-field); border: 1px solid var(--line-strong);
  background: var(--surface); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease;
}
.knopf:hover { background: #F4F2FA; border-color: var(--ink-2); }
.knopf.primaer { background: var(--violet); color: #fff; border-color: var(--violet); }
.knopf.primaer:hover { background: var(--violet-dark); border-color: var(--violet-dark); }
.knopf[disabled] { opacity: 0.45; cursor: not-allowed; }
.knopf.dunkel { background: var(--ink); color: #fff; border-color: var(--ink); }
.knopf.dunkel:hover { background: #33203F; }
details.rueckgabe { position: relative; }
details.rueckgabe > summary { list-style: none; }
details.rueckgabe > summary::-webkit-details-marker { display: none; }
details.rueckgabe[open] > summary { background: #F4F2FA; border-color: var(--ink-2); }
.rueckgabe-panel {
  position: absolute; right: 0; bottom: calc(100% + 16px); width: min(480px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-surface); padding: var(--s3);
  box-shadow: 0 12px 32px rgba(27, 12, 37, 0.16); display: grid; gap: var(--s2);
}
.feld label { display: block; font-weight: 600; margin-bottom: 4px; }
.feld .hilfe { color: var(--ink-2); font-size: 14px; margin-bottom: 8px; }
textarea, input[type="text"], input[type="password"] {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-field); padding: 12px; background: #fff; min-height: var(--tap);
}
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
textarea:focus, input:focus { border-color: var(--violet); outline: 3px solid var(--violet-wash); }
.fehlertext { color: var(--alarm-ink); font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.fehlertext .ic { stroke: var(--alarm); margin-top: 2px; }

.bestaetigung {
  flex-basis: 100%; background: var(--warn-wash); border: 1px solid var(--warn); border-radius: var(--r-surface); padding: var(--s2) var(--s3);
  display: grid; gap: 12px;
}
.bestaetigung h2 { font-size: 18px; color: var(--warn-ink); display: flex; gap: 8px; align-items: center; }
.bestaetigung h2 .ic { stroke: var(--warn); }
.bestaetigung ul { margin: 0; padding-left: 20px; }

/* ---------- Board ---------- */
.board-werkzeuge { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin-bottom: var(--s3); }
.board-werkzeuge select { min-height: var(--tap); border: 1px solid var(--line-strong); border-radius: var(--r-field); padding: 0 12px; background: #fff; }
.schalter { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); cursor: pointer; }
.schalter input { width: 20px; height: 20px; accent-color: var(--ink); }
.kunde-gruppe { margin-bottom: var(--s4); }
.kunde-kopf { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s1); flex-wrap: wrap; }
.kunde-kopf h2 { font-size: 24px; }
.spaltenraster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); overflow: hidden; }
.spaltenkopf { padding: 12px var(--s2); font-weight: 600; font-family: var(--font-head); border-bottom: 1px solid var(--line); background: #FBFAFE; display: flex; justify-content: space-between; gap: 8px; }
.spaltenkopf + .spaltenkopf, .zelle + .zelle { border-left: 1px solid var(--line); }
.projekt-name { grid-column: 1 / -1; padding: 12px var(--s2) 4px; font-weight: 600; background: var(--surface); border-top: 1px solid var(--line); }
.projekt-name small { color: var(--ink-2); font-weight: 400; font-size: 14px; margin-left: 8px; }
.zelle { padding: 4px var(--s2) var(--s2); min-width: 0; }
.zelle-titel { display: none; }
.karte { display: block; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); min-height: var(--tap); }
.karte:last-child { border-bottom: 0; }
.karte:hover b { text-decoration: underline; }
.karte b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte small { color: var(--ink-2); font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zelle details summary { cursor: pointer; color: var(--ink-2); font-size: 14px; min-height: var(--tap); display: flex; align-items: center; }
.zelle .nichts { color: var(--ink-2); font-size: 14px; padding: 8px 0; }

/* ---------- Postfach ---------- */
.postfach { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: var(--s3); align-items: start; }
.postfach-liste { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); overflow: hidden; max-height: calc(100dvh - 220px); overflow-y: auto; }
.postfach-liste a { display: grid; gap: 2px; padding: 12px var(--s2); text-decoration: none; border-bottom: 1px solid var(--line); position: relative; min-height: 64px; }
.postfach-liste a:last-child { border-bottom: 0; }
.postfach-liste a:hover { background: #FAF9FE; }
.postfach-liste a[aria-current="true"] { background: var(--violet-wash); }
.postfach-liste a[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ink); }
.postfach-liste b { font-weight: 600; font-size: 15px; }
.postfach-liste span { color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frage { display: grid; gap: var(--s3); }
.frage h2 { font-size: 24px; overflow-wrap: anywhere; }
.optionen { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.optionen legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.option { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 12px var(--s2); border: 1px solid var(--line-strong); border-radius: var(--r-field); cursor: pointer; align-items: start; min-height: var(--tap); background: #fff; }
.option:hover { border-color: var(--ink-2); }
.option:has(input:checked) { border-color: var(--ink); background: var(--violet-wash); }
.option input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.option b { display: block; }
.option small { color: var(--ink-2); font-size: 14px; }
.empfehlung { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ok-ink); font-weight: 600; margin-left: 8px; }
.empfehlung .ic { stroke: var(--ok); }
.zitat { border-left: 4px solid var(--line-strong); padding: 4px 16px; color: var(--ink-2); }

/* ---------- Login ---------- */
.login-seite { min-height: 100dvh; display: grid; place-items: center; padding: var(--s3) var(--s2); }
.login-box { width: min(420px, 100%); display: grid; gap: var(--s3); }
.login-box .wortmarke { font-family: var(--font-head); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.login-box .wortmarke span { display: block; font-size: 18px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-top: 8px; }
.login-box form { display: grid; gap: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); padding: var(--s3); }
.login-box .knopf { width: 100%; }

.fehlerseite { max-width: 560px; display: grid; gap: var(--s2); padding-top: var(--s6); }
.fehlerseite h1 { font-size: 28px; }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  :root { --side-w: 200px; }
  main { padding: var(--s4) var(--s3) var(--s8); }
  .aktionen { margin-left: calc(-1 * var(--s3)); margin-right: calc(-1 * var(--s3)); padding: 0 var(--s3); margin-bottom: calc(-1 * var(--s8)); }
  .liste-kopf, .zeile { grid-template-columns: 140px minmax(0, 1fr) 150px 72px 188px; padding: 0 var(--s2); }
}
@media (max-width: 860px) {
  .geruest { display: block; }
  .seitenleiste {
    position: fixed; inset: auto 0 0 0; top: auto; height: 64px; z-index: 60; flex-direction: row; padding: 0;
    border-top: 1px solid var(--side-line);
  }
  .seitenleiste .marke, .seitenleiste .nutzer { display: none; }
  .nav { flex-direction: row; width: 100%; gap: 0; }
  .nav a { flex: 1; flex-direction: column; justify-content: center; gap: 2px; font-size: 13px; border-radius: 0; padding: 0 4px; min-height: 64px; }
  .nav a[aria-current="page"]::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 3px; border-radius: 0 0 4px 4px; }
  .nav .zahl { margin: 0; position: absolute; top: 6px; right: calc(50% - 28px); background: var(--violet-soft); color: var(--ink); border-radius: 8px; padding: 0 6px; font-weight: 700; font-size: 12px; }
  main { padding: 72px var(--s2) 150px; }
  .mobilkopf { display: flex; position: fixed; top: 3px; left: 0; right: 0; height: 56px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 50; align-items: center; justify-content: space-between; padding: 0 var(--s2); }
  .mobilkopf b { font-family: var(--font-head); font-size: 20px; letter-spacing: -0.02em; }
  .mobilkopf form button { min-height: var(--tap); min-width: var(--tap); background: transparent; border: 0; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
  .kopf h1 { font-size: 28px; }
  .fortschritt progress { width: 140px; }
  .liste-kopf { display: none; }
  .zeile { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kunde alter" "seite seite" "pruef typ"; row-gap: 4px; padding: 12px var(--s2); min-height: 0; }
  .zeile .kunde { grid-area: kunde; }
  .zeile .alter { grid-area: alter; justify-self: end; }
  .zeile .seite { grid-area: seite; }
  .zeile .typ { grid-area: typ; font-size: 14px; justify-self: end; white-space: nowrap; }
  .zeile .pruef { grid-area: pruef; font-size: 14px; }
  .zeile .kunde { white-space: nowrap; }
  .filter { overflow-x: auto; scrollbar-width: none; }
  .filter a { white-space: nowrap; padding: 0 12px; }
  .auftragskopf h1 { font-size: 22px; }
  .pruefungen { grid-template-columns: 1fr; padding: 0 var(--s2) var(--s1); }
  .pruefungen li:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .pruefungen li:last-child { border-bottom: 0; }
  .metazeile { grid-template-columns: 1fr; padding: var(--s2); }
  .block > h2 { padding: var(--s2); }
  .block-inhalt { padding: var(--s2); }
  .vergleichskopf { display: none; }
  .umschalter { display: flex; gap: 4px; padding: 8px var(--s2); border-bottom: 1px solid var(--line); background: #FBFAFE; }
  .umschalter button { flex: 1; min-height: var(--tap); border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-field); font-weight: 600; cursor: pointer; }
  .umschalter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .abschnitt-spalten { grid-template-columns: 1fr; }
  .spalte + .spalte { border-left: 0; }
  .vergleich[data-ansicht="vorher"] .spalte.nachher, .vergleich[data-ansicht="nachher"] .spalte.vorher { display: none; }
  .spalte, .abschnitt-titel { padding-left: var(--s2); padding-right: var(--s2); }
  .aktionen { bottom: 64px; margin: var(--s3) calc(-1 * var(--s2)) 0; padding: 0; position: fixed; left: 0; right: 0; margin-bottom: 0; }
  .aktionen-innen { padding: 12px var(--s2); }
  .aktionen .erklaerung { display: none; }
  .aktionen .knoepfe { width: 100%; }
  .aktionen .knoepfe { flex-wrap: nowrap; gap: 8px; }
  .aktionen .knoepfe > form, .aktionen .knoepfe > details.rueckgabe { flex: 1; min-width: 0; }
  .aktionen .knopf { width: 100%; padding: 0 8px; font-size: 15px; white-space: nowrap; }
  .aktionen details.rueckgabe > summary .ic { display: none; }
  .rueckgabe-panel { right: 0; left: 0; width: auto; position: fixed; bottom: 136px; margin: 0 var(--s2); }
  .spaltenraster { grid-template-columns: 1fr; }
  .spaltenkopf { display: none; }
  .zelle + .zelle { border-left: 0; border-top: 1px solid var(--line); }
  .zelle-titel { display: flex; justify-content: space-between; font-weight: 600; font-family: var(--font-head); padding: 8px 0; }
  .postfach { grid-template-columns: 1fr; }
  .postfach.mit-auswahl .postfach-liste { display: none; }
  .postfach:not(.mit-auswahl) .frage-spalte { display: none; }
  .postfach-liste { max-height: none; }
  .login-box .wortmarke { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
