/* Köbes — internes Betriebssystem der absqr GmbH.
   KOEB-077: Designsystem der Rudelbooking-Instanz übernommen — dunkler Grund,
   Glas, Mint als CTA, einklappbare Navigation. Vorbild und Abnahme:
   ABsqr/Koebes/design/prototyp-glas.html.

   Die Ergonomie aus KOEB-075 lebt weiter: Raumskala statt Einzelwerte,
   tabellarische Ziffern, rechtsbündige Zählspalten, Zustand nie allein über
   Farbe, Z-Index als Skala. Nur die helle Papier-Palette ist entfallen.

   Alle Klassennamen sind unverändert, damit der Umbau hier und in base.html
   stattfindet und nicht in dreißig Templates. Keine Fremdquellen: Schriften
   liegen unter static/fonts/, der Hintergrund unter static/hintergrund.jpg.
   angebot-druck.css bleibt hell — Angebots-PDFs gehen auf Papier. */

/* ---------- Schrift (lokal, kein CDN) ---------- */
@font-face {
  font-family: "Open Sans";
  src: url("fonts/OpenSans-var.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --primary: #3b82f6;
  --heading: #bfdbfe;
  --accent: #60a5fa;
  --cta: #3af1b3;
  --cta-hover: #66f6c6;
  --cta-ink: #06281c;
  --bg: #05080f;
  --ink: #dde5f0;
  --ink-2: #9dacc2;
  --ink-3: #77869e;
  --line: rgba(255, 255, 255, 0.11);
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-blur: 28px;
  --glass-highlight: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.028) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  --glass-border-top: rgba(255, 255, 255, 0.17);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 10px 48px rgba(0, 0, 0, 0.62), 0 2px 10px rgba(0, 0, 0, 0.38);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --feld-bg: rgba(0, 0, 0, 0.36);

  --ok: #6ee7b7;
  --ok-flaeche: rgba(16, 185, 129, 0.14);
  --ok-rand: rgba(52, 211, 153, 0.4);
  --warn: #fcd34d;
  --warn-flaeche: rgba(245, 158, 11, 0.14);
  --warn-rand: rgba(251, 191, 36, 0.4);
  --bad: #fca5a5;
  --bad-flaeche: rgba(239, 68, 68, 0.14);
  --bad-rand: rgba(248, 113, 113, 0.4);
  /* Alte Namen als Alias: einzelne Templates greifen noch darauf zu. */
  --ok-tinte: var(--ok);
  --warn-tinte: var(--warn);
  --bad-tinte: var(--bad);
  --accent-flaeche: rgba(59, 130, 246, 0.15);
  --accent-tief: var(--primary);
  --paper: var(--bg);
  --panel: transparent;

  --radius: 14px;
  --radius-klein: 10px;
  --raum-1: 0.35rem;
  --raum-2: 0.6rem;
  --raum-3: 0.85rem;
  --raum-4: 1.15rem;
  --seitenleiste: 248px;
  --seitenleiste-schmal: 88px;
  --z-filter: 10;
  --z-kopfleiste: 20;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-klapp: cubic-bezier(0.77, 0, 0.175, 1);
  --spalte: 1180px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
dl,
dt,
dd,
figure,
fieldset,
legend {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
/* Hintergrund: erzeugtes Bild mit dunklem Multiply-Layer, fixiert, damit das
   Glas beim Blättern durchspielt. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(3, 6, 12, 0.55), rgba(3, 6, 12, 0.72)),
    url("hintergrund.jpg") center / cover no-repeat, var(--bg);
  background-blend-mode: multiply, normal, normal;
}
/* Vignette: zieht die Ränder zu, damit die Mitte ruhig bleibt. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}
a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
button {
  font: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
::selection {
  background: var(--primary);
  color: #fff;
}
img,
svg {
  max-width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Typografie ---------- */
h1,
h2,
h3,
h4 {
  font-family: "Poppins", "Open Sans", sans-serif;
  line-height: 1.3;
  color: var(--heading);
}
h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
h2 {
  font-size: 1.05rem;
  font-weight: 600;
}
h3 {
  font-size: 0.95rem;
  font-weight: 600;
}
h4 {
  font-size: 0.88rem;
  font-weight: 600;
}
.grau {
  color: var(--ink-3);
}
.zahlen {
  font-variant-numeric: tabular-nums;
}
.lesetext {
  max-width: 68ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.nur-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Glas ---------- */
.karte,
.kopfleiste__innen,
.seitenleiste {
  background: var(--glass-highlight), var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--line);
  border-top-color: var(--glass-border-top);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
}

/* ---------- Gerüst: Seitenleiste und Inhalt ---------- */
.geruest {
  display: grid;
  grid-template-columns: var(--seitenleiste) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.3s var(--ease-klapp);
}
.geruest.schmal {
  grid-template-columns: var(--seitenleiste-schmal) minmax(0, 1fr);
}

.seitenleiste {
  position: sticky;
  top: 16px;
  margin: 16px 0 16px 16px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: calc(100vh - 32px);
  overflow: hidden auto;
  scrollbar-width: thin;
}
.geruest.schmal .marke-zusatz,
.geruest.schmal .nav-gruppe,
.geruest.schmal .nav-text,
.geruest.schmal .nutzer > span,
.geruest.schmal .nav-zahl {
  display: none;
}
.geruest.schmal .hauptnav a {
  justify-content: center;
  padding: 10px;
}
.geruest.schmal .nutzer {
  justify-content: center;
  padding: 10px 6px;
}

.klapp-knopf {
  position: absolute;
  top: 16px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass-strong);
  color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease-klapp);
}
.klapp-knopf:hover {
  color: var(--heading);
  border-color: var(--accent);
}
.geruest.schmal .klapp-knopf {
  position: static;
  margin: 0 auto 6px;
  transform: rotate(180deg);
}

/* ---------- Marke ---------- */
.wortmarke {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 2px 10px 18px;
  text-decoration: none;
}
.wortmarke svg path {
  fill: #fff;
}
.logo-voll {
  width: 132px;
  height: auto;
  display: block;
}
.logo-zeichen {
  width: 30px;
  height: auto;
  display: none;
}
.geruest.schmal .logo-voll {
  display: none;
}
.geruest.schmal .logo-zeichen {
  display: block;
}
.geruest.schmal .wortmarke {
  align-items: center;
  padding: 2px 0 14px;
}
.marke-zusatz {
  /* Rueckt den Zusatz dicht unter die Wortmarke: das SVG bringt unten Luft
     aus seiner viewBox mit, die optisch als Abstand wirkt (Thomas 04.09.). */
  margin-top: -20px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.marke-zusatz b {
  color: var(--cta);
  font-weight: 700;
}

/* ---------- Navigation ---------- */
.nav-gruppe {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 10px 5px;
}
.hauptnav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hauptnav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  min-height: 42px;
  border-radius: var(--radius-klein);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.hauptnav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}
.hauptnav a[aria-current="page"] {
  background: var(--accent-flaeche);
  color: var(--heading);
  box-shadow: inset 2px 0 0 var(--primary);
}
.hauptnav svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-zahl {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: var(--warn-flaeche);
  border: 1px solid var(--warn-rand);
  color: var(--warn);
  font-size: 0.72rem;
  font-weight: 700;
}
.nutzer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-klein);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  font-size: 0.82rem;
}
.nutzer > span {
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nutzer-kreis {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* ---------- Kopfleiste im Inhalt ---------- */
.kopfleiste {
  position: sticky;
  top: 16px;
  z-index: var(--z-kopfleiste);
  margin-bottom: var(--raum-4);
}
.kopfleiste__innen {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  flex-wrap: wrap;
}
.kopf-werkzeuge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.suchfeld {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-klein);
  background: var(--feld-bg);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.suchfeld:focus-within {
  border-color: var(--accent);
}
.suchfeld input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}
.suchfeld input::placeholder {
  color: var(--ink-3);
}
.suchfeld .knopf {
  min-height: 30px;
  padding: 2px 10px;
  font-size: 0.8rem;
}
.textknopf {
  background: none;
  border: 0;
  padding: 4px 2px;
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}
.textknopf:hover {
  color: var(--heading);
}
.menue-box {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.menue-knopf {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-klein);
  background: var(--glass-strong);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.menue-box:focus-visible + .menue-knopf {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Meldungen ---------- */
.meldungen {
  display: grid;
  gap: 0.5rem;
  margin-bottom: var(--raum-3);
}
.meldung {
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-klein);
  font-size: 0.9rem;
  border: 1px solid var(--line);
}
.meldung--ok {
  background: var(--ok-flaeche);
  border-color: var(--ok-rand);
  color: var(--ok);
}
.meldung--warn {
  background: var(--warn-flaeche);
  border-color: var(--warn-rand);
  color: var(--warn);
}
.meldung--bad {
  background: var(--bad-flaeche);
  border-color: var(--bad-rand);
  color: var(--bad);
}

/* ---------- Layout ---------- */
.inhalt {
  padding: 16px 16px 56px;
  min-width: 0;
}
.seitenkopf {
  margin-bottom: var(--raum-4);
}
.unterzeile {
  margin-top: 0.25rem;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.abschnitt {
  margin-top: var(--raum-4);
}
.stapel {
  display: grid;
  gap: var(--raum-3);
}
.stapel > *,
.kartenreihe > *,
.zweispalt > * {
  min-width: 0;
}
.kartenreihe {
  display: grid;
  gap: var(--raum-3);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.zweispalt {
  display: grid;
  gap: var(--raum-3);
  align-items: start;
}
@media (min-width: 900px) {
  .zweispalt {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- Karten ---------- */
.karte {
  padding: var(--raum-3) var(--raum-4);
  transition: border-color 0.25s var(--ease);
}
.karte:hover {
  border-color: rgba(255, 255, 255, 0.16);
}
.karte--schmal {
  max-width: 640px;
}
.karte__kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: var(--raum-2);
}
.karte__kopf > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.karte__zahl {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
}
.karte__zahl--bad {
  color: var(--bad);
}

/* ---------- Tabellen ---------- */
.tabelle-huelle {
  overflow-x: auto;
  margin: 0 -0.25rem;
}
.tabelle {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}
.tabelle th {
  padding: 0.3rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.tabelle td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
}
/* Zählungen und Größen rechtsbündig, Nummern und Daten nicht: die sind
   Bezeichner und werden von links gelesen (KOEB-075). */
.tabelle th.zahlen--rechts,
.tabelle td.zahlen--rechts {
  text-align: right;
}
.tabelle tbody tr {
  transition: background 0.12s linear;
}
.tabelle tbody tr:hover {
  background: rgba(96, 165, 250, 0.07);
}
.tabelle tbody tr:last-child td {
  border-bottom: 0;
}
.tabelle td:first-child {
  font-weight: 500;
}
.tabelle--kompakt td,
.tabelle--kompakt th {
  padding: 0.3rem 0.4rem;
}
.tabelle--kompakt .umbruch {
  white-space: normal;
}
.zeile-aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
}
.aufgabe-ueberfaellig td:first-child {
  color: var(--bad);
}
.aufgabe-erledigt td:first-child {
  color: var(--ink-3);
  text-decoration: line-through;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  color: var(--ink-2);
}
/* Zustand nie allein über Farbe: Kreis, Raute, Quadrat (KOEB-075).
   Typ-Badges (neutral, akzent) bleiben ohne — sie bezeichnen, sie melden nicht. */
.badge--ok::before,
.badge--warn::before,
.badge--bad::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.badge--warn::before {
  border-radius: 1px;
  transform: rotate(45deg);
}
.badge--bad::before {
  border-radius: 1px;
}
.badge--neutral {
  background: var(--glass-strong);
  color: var(--ink-2);
}
.badge--akzent {
  background: var(--accent-flaeche);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--heading);
}
.badge--ok {
  background: var(--ok-flaeche);
  border-color: var(--ok-rand);
  color: var(--ok);
}
.badge--warn {
  background: var(--warn-flaeche);
  border-color: var(--warn-rand);
  color: var(--warn);
}
.badge--bad {
  background: var(--bad-flaeche);
  border-color: var(--bad-rand);
  color: var(--bad);
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  min-height: 38px;
  border-radius: var(--radius-klein);
  border: 1px solid var(--line);
  background: var(--glass-strong);
  color: var(--heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.knopf:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}
.knopf:active {
  transform: scale(0.98);
}
.knopf--primaer {
  background: var(--cta);
  border-color: var(--cta);
  color: var(--cta-ink);
}
.knopf--primaer:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
}
.knopf--gefahr {
  background: transparent;
  border-color: transparent;
  color: var(--ink-3);
}
.knopf--gefahr:hover {
  color: var(--bad);
  border-color: var(--bad-rand);
  background: var(--bad-flaeche);
}
.knopf--klein {
  min-height: 30px;
  padding: 4px 11px;
  font-size: 0.79rem;
}
/* Am Finger bedient braucht es die volle Trefferfläche, am Zeiger nicht —
   sonst wäre die Dichte wieder dahin. */
@media (pointer: coarse) {
  .knopf--klein {
    min-height: 44px;
    padding: 8px 14px;
  }
}
.knopfleiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.aktionsleiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--raum-3);
  padding-top: var(--raum-3);
  border-top: 1px solid var(--line);
}

/* ---------- Formulare ---------- */
.formular {
  display: grid;
  gap: var(--raum-3);
}
.feld {
  display: grid;
  gap: 0.25rem;
}
.feld label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}
.feld input,
.feld select,
.feld textarea,
.filterleiste input,
.filterleiste select {
  width: 100%;
  padding: 9px 11px;
  min-height: 40px;
  border-radius: 9px;
  background: var(--feld-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}
.feld input:focus,
.feld select:focus,
.feld textarea:focus,
.filterleiste input:focus,
.filterleiste select:focus {
  border-color: var(--accent);
}
.feld textarea {
  min-height: 7rem;
  resize: vertical;
}
.feld input[type="checkbox"] {
  width: auto;
  min-height: 0;
  accent-color: var(--primary);
}
.feld__hilfe {
  font-size: 0.82rem;
  color: var(--ink-3);
}
.feld__fehler,
.formularfehler {
  font-size: 0.85rem;
  color: var(--bad);
}
.feld--fehler input,
.feld--fehler select,
.feld--fehler textarea {
  border-color: var(--bad);
}
.formularfehler ul {
  display: grid;
  gap: 0.2rem;
}
.filterleiste {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--raum-2);
  margin-bottom: var(--raum-3);
}
.filterleiste > div {
  display: grid;
  gap: 0.2rem;
}
.filterleiste label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-3);
}
.filterleiste .schalter {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
}
.filterleiste .schalter input {
  width: auto;
  min-height: 0;
}
@media (min-width: 900px) {
  .filterleiste {
    position: sticky;
    top: 78px;
    z-index: var(--z-filter);
    padding-block: var(--raum-2);
    background: rgba(5, 8, 15, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}
.anhangzeile {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.anhangzeile label {
  font-weight: 500;
}

/* ---------- Definitionslisten ---------- */
.daten {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.3rem 1rem;
}
.daten dt {
  font-size: 0.85rem;
  color: var(--ink-3);
}
.daten dd {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

/* ---------- Zeitleiste, Listen, Chips ---------- */
.zeitleiste {
  display: grid;
  gap: 1.1rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
}
.zeitleiste > li {
  position: relative;
}
.zeitleiste > li::before {
  content: "";
  position: absolute;
  left: -1.45rem;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.zeitleiste__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}
.punktliste {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}
.punktliste > li::before {
  content: "→";
  margin-right: 0.45rem;
  color: var(--cta);
}
.haengerliste {
  display: grid;
  gap: 0.25rem;
  font-size: 0.88rem;
}
.haengerliste li {
  color: var(--warn);
}
.linkliste {
  display: grid;
  gap: 0.4rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.chip {
  padding: 0.15rem 0.6rem;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--glass-strong);
  font-size: 0.8rem;
  color: var(--ink-2);
  text-decoration: none;
}
.leer {
  color: var(--ink-3);
  font-size: 0.88rem;
}
.klappe > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--heading);
  padding: 0.3rem 0;
}
.klappe > summary::-webkit-details-marker {
  color: var(--ink-3);
}
.klappe[open] > summary {
  margin-bottom: var(--raum-2);
}
.paginierung {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--raum-3);
  font-size: 0.86rem;
}
.paginierung a,
.paginierung span {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink-2);
}
.paginierung a:hover {
  border-color: var(--accent);
  color: var(--heading);
}

/* ---------- Dokumentenbetrachter (KOEB-053) ---------- */
.vorschau {
  display: block;
  width: 100%;
  height: 70vh;
  border: 1px solid var(--line);
  border-radius: var(--radius-klein);
  background: rgba(0, 0, 0, 0.35);
}
.vorschau--bild {
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}
.anhangvorschau {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius-klein);
  background: rgba(0, 0, 0, 0.35);
}

/* ---------- Handbuch (KOEB-076) ---------- */
.handbuch-artikel {
  border: 1px solid var(--line);
  border-radius: var(--radius-klein);
  padding: var(--raum-2) var(--raum-3);
  background: rgba(0, 0, 0, 0.22);
}
.handbuch-artikel > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--heading);
}
.handbuch-artikel[open] > summary {
  margin-bottom: var(--raum-2);
}
.handbuch-text {
  max-width: 68ch;
}
.handbuch-text > * + * {
  margin-top: 0.6rem;
}
.handbuch-text ul,
.handbuch-text ol {
  padding-left: 1.3rem;
}
.handbuch-text ul {
  list-style: disc;
}
.handbuch-text ol {
  list-style: decimal;
}
.handbuch-text li + li {
  margin-top: 0.25rem;
}
.handbuch-text code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.86em;
}
.handbuch-rollen {
  margin-top: var(--raum-2);
  font-size: 0.82rem;
}

/* ---------- Anmeldung: ohne Seitenleiste, mittig ---------- */
.anmelden {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}
.anmelden .karte {
  width: min(420px, 100%);
  padding: var(--raum-4) 1.5rem 1.5rem;
}
.anmelden .wortmarke {
  align-items: center;
  padding-bottom: var(--raum-4);
}
.anmelden .logo-voll {
  width: 150px;
}

/* ---------- Schmale Geräte ---------- */
@media (max-width: 860px) {
  .geruest,
  .geruest.schmal {
    grid-template-columns: minmax(0, 1fr);
  }
  .seitenleiste {
    position: static;
    height: auto;
    margin: 12px 12px 0;
    padding: 14px;
  }
  .klapp-knopf {
    display: none;
  }
  .menue-knopf {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 6px;
  }
  .hauptnav,
  .nav-gruppe {
    display: none;
  }
  .menue-box:checked ~ .hauptnav {
    display: flex;
  }
  .menue-box:checked ~ .nav-gruppe {
    display: block;
  }
  .nutzer {
    margin-top: var(--raum-3);
  }
  .kopfleiste {
    top: 0;
  }
  .filterleiste {
    position: static;
  }
}
