/*
  PatchDue-Portal – Gestaltung.
  Farben, Rundung und Schrift kommen ausschließlich aus den Variablen der Marke
  (../assets/marke.css, --pd-…). Für jede Variable steht hier ein neutraler
  Ersatzwert, damit das Portal auch ohne die Marken-Datei gut lesbar ist.
*/

:root {
  --f-bg: var(--pd-bg, #f3f4f5);
  --f-surface: var(--pd-surface, #ffffff);
  --f-text: var(--pd-text, #1c2024);
  --f-muted: var(--pd-muted, #57606a);
  --f-primary: var(--pd-primary, #1d4f7c);
  --f-primary-text: var(--pd-primary-text, #ffffff);
  --f-danger: var(--pd-danger, #a8281f);
  --f-warn: var(--pd-warn, #7a4b00);
  --f-ok: var(--pd-ok, #1c6641);
  --f-border: var(--pd-border, #d0d5da);
  --f-radius: var(--pd-radius, 6px);
  --f-font: var(--pd-font, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  /* Überschriften: die Schrift der Marke, falls geladen; sonst die Grundschrift. */
  --f-kopf: "Bitter", var(--f-font);

  --t-danger: color-mix(in srgb, var(--f-danger) 9%, var(--f-surface));
  --t-warn: color-mix(in srgb, var(--f-warn) 10%, var(--f-surface));
  --t-ok: color-mix(in srgb, var(--f-ok) 9%, var(--f-surface));
  --t-primary: color-mix(in srgb, var(--f-primary) 8%, var(--f-surface));
  --breite: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --f-bg: var(--pd-bg, #15181b);
    --f-surface: var(--pd-surface, #1f2327);
    --f-text: var(--pd-text, #e8eaec);
    --f-muted: var(--pd-muted, #a6aeb6);
    --f-primary: var(--pd-primary, #93bbe6);
    --f-primary-text: var(--pd-primary-text, #10202f);
    --f-danger: var(--pd-danger, #f59a90);
    --f-warn: var(--pd-warn, #e6b55c);
    --f-ok: var(--pd-ok, #86cf9f);
    --f-border: var(--pd-border, #3a4148);
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--f-bg);
  color: var(--f-text);
  font-family: var(--f-font);
  font-size: 1rem;
  line-height: 1.55;
}

[hidden] { display: none !important; }

h1, h2, h3, h4, h5 { font-family: var(--f-kopf); line-height: 1.25; margin: 0; text-wrap: balance; }
h1 { font-size: 1.75rem; font-weight: 600; margin-bottom: 0.5rem; }
h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.5rem; }
h4, h5 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 0.375rem; font-family: var(--f-font); }
h1:focus { outline: none; }
p { margin: 0 0 0.75rem; }
ul, ol { margin: 0 0 0.75rem; padding-left: 1.25rem; }
li { margin-bottom: 0.25rem; }
a { color: var(--f-primary); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.875em; overflow-wrap: anywhere; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--f-primary); outline-offset: 2px; border-radius: 2px; }

.unsichtbar {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.sprung {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 10;
  background: var(--f-surface); color: var(--f-text); padding: 0.5rem 0.75rem; border-radius: var(--f-radius);
}
.sprung:focus { top: 0.5rem; }

.klein { font-size: 0.875rem; color: var(--f-muted); }
.vorspann { font-size: 1.0625rem; color: var(--f-muted); max-width: 40rem; margin-bottom: 1.25rem; }
.laedt, .leer { color: var(--f-muted); }
.adresse, .kennung { overflow-wrap: anywhere; }
.kennung { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* ------------------------------------------------------------ Rahmen */

.attrappe {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.375rem 1rem; font-size: 0.875rem;
  background: var(--t-warn); color: var(--f-text); border-bottom: 1px solid var(--f-warn);
}

.kopf { background: var(--f-surface); border-bottom: 1px solid var(--f-border); }
.kopf-innen {
  max-width: calc(var(--breite) + 2rem); margin: 0 auto; padding: 0.5rem 1rem;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "marke nav rechts";
  align-items: center; gap: 0.25rem 1.25rem;
}
.wortmarke { grid-area: marke; display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--f-text); font-family: var(--f-kopf); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.wortmarke img { display: block; height: 2.25rem; width: auto; }
.kopf-rechts { grid-area: rechts; }
.navigation { grid-area: nav; }
.navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.25rem; margin: 0; padding: 0; }
.navigation li { margin: 0; }
.navigation a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.625rem;
  color: var(--f-text); text-decoration: none; border-bottom: 3px solid transparent; border-top: 3px solid transparent;
}
.navigation a:hover { border-bottom-color: var(--f-border); }
.navigation a[aria-current="page"] { border-bottom-color: var(--f-primary); font-weight: 600; }

main { flex: 1; width: 100%; max-width: calc(var(--breite) + 2rem); margin: 0 auto; padding: 1.75rem 1rem 3rem; }
main:focus { outline: none; }

.fuss { border-top: 1px solid var(--f-border); color: var(--f-muted); font-size: 0.875rem; }
.fuss-innen { max-width: calc(var(--breite) + 2rem); margin: 0 auto; padding: 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; justify-content: space-between; }
.fuss p { margin: 0; }
.fuss ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; }
.fuss li { margin: 0; }
.fuss a { color: var(--f-muted); display: inline-block; padding: 0.25rem 0; }

.blatt {
  background: var(--f-surface); border: 1px solid var(--f-border); border-radius: var(--f-radius);
  padding: 1.25rem; margin-bottom: 1.25rem;
}
.blatt.schmal { max-width: 28rem; margin-left: auto; margin-right: auto; }
.blatt > :last-child, .teil > :last-child, .formular > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ Meldungen */

.meldung {
  border: 1px solid var(--f-border); border-left: 4px solid var(--f-muted); border-radius: var(--f-radius);
  background: var(--f-surface); padding: 0.75rem 0.875rem; margin-bottom: 1rem;
}
.meldung p:last-child { margin-bottom: 0; }
.meldung-fehler { border-left-color: var(--f-danger); background: var(--t-danger); }
.meldung-warn { border-left-color: var(--f-warn); background: var(--t-warn); }
.meldung-ok { border-left-color: var(--f-ok); background: var(--t-ok); }
.meldung-info { border-left-color: var(--f-primary); background: var(--t-primary); }
.hinweis-platz:empty { display: none; }
.hinweis-platz { scroll-margin-top: 1rem; }

.lage {
  border: 1px solid var(--f-warn); border-left-width: 4px; border-radius: var(--f-radius);
  background: var(--t-warn); padding: 0.875rem 1rem; margin-bottom: 1.25rem;
}
.lage-kopf { font-weight: 600; font-size: 1.0625rem; margin-bottom: 0.375rem; }
.lage ul { margin-bottom: 0; }

.marke {
  display: inline-block; font-size: 0.8125rem; font-weight: 600; line-height: 1.3;
  padding: 0.125rem 0.5rem; border-radius: 999px; border: 1px solid var(--f-muted); color: var(--f-muted);
}
.marke-ok { border-color: var(--f-ok); color: var(--f-ok); }
.marke-warn { border-color: var(--f-warn); color: var(--f-warn); background: var(--t-warn); }

/* ------------------------------------------------------------ Knöpfe, Felder */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.5rem 1rem; border-radius: var(--f-radius);
  border: 1px solid var(--f-muted); background: var(--f-surface); color: var(--f-text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
}
.knopf:hover { border-color: var(--f-text); }
.knopf-haupt { background: var(--f-primary); border-color: var(--f-primary); color: var(--f-primary-text); }
.knopf-haupt:hover { border-color: var(--f-primary); filter: brightness(1.08); }
.knopf-gefahr { background: var(--f-danger); border-color: var(--f-danger); color: var(--f-surface); }
.knopf-gefahr-rand { border-color: var(--f-danger); color: var(--f-danger); }
.knopf-still { border-color: transparent; background: transparent; font-weight: 400; color: var(--f-muted); padding: 0.5rem 0.625rem; }
.knopf-still:hover { color: var(--f-text); }
.knopf-verweis {
  border: 0; background: none; padding: 0.375rem 0; min-height: 2.75rem; color: var(--f-primary);
  font-weight: 400; text-decoration: underline; text-underline-offset: 0.15em;
}
.knopf[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.schritt-weiter { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--f-border); }

.formular { margin-top: 1rem; }
.formular > .knopf, .blatt > .knopf { margin-bottom: 0.75rem; }
.teil > div + div .formular { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--f-border); }
.feld { margin-bottom: 1rem; max-width: 30rem; }
.feld label, .gruppe legend { display: block; font-weight: 600; margin-bottom: 0.25rem; padding: 0; }
.feld-optional { font-weight: 400; color: var(--f-muted); }
.feld-hinweis { font-size: 0.875rem; color: var(--f-muted); margin: 0 0 0.375rem; }
.feld-fehler { font-size: 0.9375rem; color: var(--f-danger); font-weight: 600; margin: 0.375rem 0 0; }
.feld input[type="text"], .feld input[type="email"] {
  display: block; width: 100%; min-height: 2.75rem; padding: 0.5rem 0.75rem;
  font: inherit; color: var(--f-text); background: var(--f-surface);
  border: 1px solid var(--f-muted); border-radius: var(--f-radius);
}
.feld input:disabled { background: var(--f-bg); color: var(--f-muted); border-style: dashed; }
.feld input[aria-invalid="true"] { border-color: var(--f-danger); border-width: 2px; }
.eingabe-code { font-size: 1.375rem !important; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; max-width: 14rem; }

.gruppe { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; max-width: 34rem; }
.kasten { margin-bottom: 0.75rem; max-width: 38rem; }
.kasten-zeile { display: grid; grid-template-columns: auto 1fr; gap: 0.625rem; align-items: start; padding: 0.25rem 0; }
.kasten-zeile input { width: 1.375rem; height: 1.375rem; margin: 0.1rem 0 0; accent-color: var(--f-primary); }
.kasten-zeile label { font-weight: 400; margin: 0; }
.kasten .feld-hinweis, .kasten .feld-fehler { margin-left: 2rem; }
.kasten:has(input[aria-invalid="true"]) .kasten-zeile { outline: 2px solid var(--f-danger); outline-offset: 2px; border-radius: 2px; }

.rueckfrage {
  border: 1px solid var(--f-danger); border-radius: var(--f-radius); background: var(--t-danger);
  padding: 0.875rem; margin-top: 0.5rem; max-width: 38rem;
}
.rueckfrage .knopfreihe { margin-bottom: 0; }

/* Suchfeld für den Katalog */
.suche-rahmen { position: relative; }
.vorschlaege {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 2px);
  list-style: none; margin: 0; padding: 0.25rem; max-height: 16rem; overflow-y: auto;
  background: var(--f-surface); border: 1px solid var(--f-muted); border-radius: var(--f-radius);
}
.vorschlaege li { margin: 0; padding: 0.5rem 0.625rem; border-radius: calc(var(--f-radius) - 2px); cursor: pointer; min-height: 2.5rem; }
.vorschlaege li:hover { background: var(--t-primary); }
.vorschlaege li[aria-selected="true"] { background: var(--f-primary); color: var(--f-primary-text); }
.gewaehlt {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
  border: 1px solid var(--f-border); border-left: 4px solid var(--f-primary); border-radius: var(--f-radius);
  padding: 0.5rem 0.875rem; margin-bottom: 1rem; max-width: 30rem;
}
.gewaehlt p { margin: 0; }
.formular .feld + .knopf-verweis, .formular .feld + .knopf-zweit { margin-bottom: 1rem; }

/* ------------------------------------------------------------ Zeilenlisten */

.zeilen { list-style: none; margin: 0 0 1rem; padding: 0; }
.zeilen:last-child { margin-bottom: 0; }
.zeile:first-child { padding-top: 0.25rem; }
.zeile {
  display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: start;
  padding: 0.875rem 0; margin: 0; border-bottom: 1px solid var(--f-border);
}
.zeile:last-child { border-bottom: 0; }
.zeile-haupt p { margin: 0 0 0.25rem; }
.zeile-titel { font-weight: 600; font-size: 1.0625rem; }
.zeile-neben { color: var(--f-muted); }
.zeile-aktionen { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.zeile-unten { grid-column: 1 / -1; }
.zeile-unten:empty { display: none; }
.formular-eingebettet { margin: 0; padding: 0.875rem; border: 1px solid var(--f-border); border-radius: var(--f-radius); background: var(--f-bg); }

/* ------------------------------------------------------------ Einrichtung */

.fortschritt { margin-bottom: 1.25rem; }
.fortschritt-stand { margin-bottom: 0.375rem; }
.fortschritt ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.schritt { margin: 0; }
.schritt-flaeche {
  display: flex; gap: 0.625rem; align-items: center; height: 100%; min-height: 3.5rem;
  padding: 0.5rem 0.625rem; border-radius: var(--f-radius);
  border: 1px solid var(--f-border); border-top: 4px solid var(--f-border);
  background: var(--f-surface); color: var(--f-text); text-decoration: none;
}
a.schritt-flaeche:hover { border-color: var(--f-muted); }
.schritt-nr {
  flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--f-muted); font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums;
}
.schritt-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.schritt-name { font-weight: 600; overflow-wrap: anywhere; }
.schritt-stand { font-size: 0.8125rem; color: var(--f-muted); }
.schritt.ist-erledigt .schritt-flaeche { border-top-color: var(--f-ok); }
.schritt.ist-erledigt .schritt-nr { background: var(--f-ok); border-color: var(--f-ok); color: var(--f-surface); }
.schritt.ist-aktuell .schritt-flaeche { border-color: var(--f-primary); border-top-color: var(--f-primary); background: var(--t-primary); }
.schritt.ist-aktuell .schritt-nr { border-color: var(--f-primary); }
.schritt.ist-gesperrt .schritt-flaeche { background: transparent; border-style: dashed; color: var(--f-muted); }

.vertrag { margin: 0 0 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--f-border); }
.vertrag-angaben { margin-bottom: 0.625rem; }
.vertrag-rollen {
  max-height: 22rem; overflow: auto; padding: 0.25rem 1rem 1rem; margin-bottom: 0.875rem;
  border: 1px solid var(--f-muted); border-radius: var(--f-radius); background: var(--f-bg);
}
.vertrag-offen { padding: 0.25rem 1rem 0.5rem; margin-bottom: 0.875rem; border-left: 4px solid var(--f-warn); background: var(--t-warn); border-radius: 0 var(--f-radius) var(--f-radius) 0; }
.vertragstext { font-size: 0.9375rem; max-width: 42rem; }
.vertragstext h4 { font-size: 1.0625rem; margin-top: 1rem; font-family: var(--f-kopf); }
.vertragstext h5 { font-size: 0.9375rem; }
.vertrag-ansehen summary { cursor: pointer; color: var(--f-primary); text-decoration: underline; min-height: 2.75rem; display: inline-flex; align-items: center; }
.vertrag-ansehen[open] summary { margin-bottom: 0.5rem; }

.tabelle-rollen { overflow-x: auto; margin-bottom: 0.875rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.625rem; border-bottom: 1px solid var(--f-border); }
thead th { font-weight: 600; border-bottom: 2px solid var(--f-muted); white-space: nowrap; }
.vertragstext table { min-width: 36rem; font-size: 0.875rem; }
.zahl { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Übersicht */

.zaehlung { font-size: 1.0625rem; margin-bottom: 1.25rem; }
.ruhe-satz { font-size: 1.1875rem; line-height: 1.45; max-width: 34rem; }

/* Pegel: vier Balken, je höher der Schweregrad, desto mehr sind gefüllt. */
.pegel { display: inline-flex; align-items: flex-end; gap: 2px; height: 1.125rem; flex: none; }
.pegel i { display: block; width: 5px; border-radius: 1px; border: 1px solid var(--f-muted); background: transparent; }
.pegel i:nth-child(1) { height: 35%; }
.pegel i:nth-child(2) { height: 55%; }
.pegel i:nth-child(3) { height: 78%; }
.pegel i:nth-child(4) { height: 100%; }
.pegel i.an { background: var(--f-muted); }
.pegel-kritisch i.an { background: var(--f-danger); border-color: var(--f-danger); }
.pegel-hoch i.an { background: var(--f-warn); border-color: var(--f-warn); }

.stufe { margin-bottom: 1.75rem; }
.stufe-kopf { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0; padding-bottom: 0.5rem; border-bottom: 2px solid var(--f-muted); }
.stufe-kritisch .stufe-kopf { border-bottom-color: var(--f-danger); }
.stufe-hoch .stufe-kopf { border-bottom-color: var(--f-warn); }
.stufe-zahl {
  margin-left: auto; font-family: var(--f-font); font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums;
  min-width: 1.75rem; text-align: center; padding: 0.0625rem 0.5rem; border-radius: 999px; border: 1px solid var(--f-muted);
}
.trefferliste { list-style: none; margin: 0 0 0.75rem; padding: 0; background: var(--f-surface); border: 1px solid var(--f-border); border-top: 0; border-radius: 0 0 var(--f-radius) var(--f-radius); }
.treffer { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 0.75rem; margin: 0; padding: 1rem 1rem 0.875rem 0.875rem; border-top: 1px solid var(--f-border); }
.treffer:first-child { border-top: 0; }
.treffer-rand { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding-top: 0.2rem; }
.treffer-wert { font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--f-muted); }
.treffer-kritisch .treffer-wert { color: var(--f-danger); }
.treffer-hoch .treffer-wert { color: var(--f-warn); }
.treffer-inhalt { min-width: 0; }
.treffer-inhalt p { margin-bottom: 0.25rem; }
.treffer-satz { font-family: var(--f-font); font-size: 1.125rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.375rem; text-wrap: pretty; overflow-wrap: anywhere; }
.treffer-system { overflow-wrap: anywhere; }
.fussnote { font-size: 0.9375rem; color: var(--f-muted); max-width: 42rem; }
.erklaerung { margin-top: 1rem; font-size: 0.9375rem; }
.erklaerung summary { cursor: pointer; color: var(--f-primary); min-height: 2.75rem; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 0.15em; }
.erklaerung dt { font-weight: 600; margin-top: 0.625rem; }
.erklaerung dd { margin: 0 0 0.25rem; color: var(--f-muted); max-width: 42rem; }

/* ------------------------------------------------------------ Konto, Betreuung */

.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; margin: 0; }
.angaben dt { color: var(--f-muted); }
.angaben dd { margin: 0; min-width: 0; }

.faktor-bild img { display: block; background: #fff; padding: 0.5rem; border-radius: var(--f-radius); border: 1px solid var(--f-border); margin-bottom: 0.75rem; }
.geheim { font-size: 1rem; letter-spacing: 0.08em; }
.zelle-aktion { text-align: right; }
.zelle-frage { padding-top: 0; }
.zelle-frage .rueckfrage { margin: 0 0 0.5rem; max-width: none; }
.tabelle .knopf { min-height: 2.5rem; padding: 0.25rem 0.75rem; white-space: nowrap; }

/* ------------------------------------------------------------ Schmale Breite */

@media (max-width: 40rem) {
  h1 { font-size: 1.5rem; }
  main { padding-top: 1.25rem; }
  .kopf-innen { grid-template-columns: 1fr auto; grid-template-areas: "marke rechts" "nav nav"; }
  .navigation ul { margin: 0 -0.625rem; }
  .blatt { padding: 1rem; }
  .fortschritt ol { grid-template-columns: repeat(2, 1fr); }
  .schritt-flaeche { gap: 0.5rem; padding: 0.5rem; }
  .schritt-name { font-size: 0.9375rem; }
  .zeile { grid-template-columns: 1fr; }
  .zeile-aktionen { justify-content: flex-start; }
  .angaben { grid-template-columns: 1fr; gap: 0 0; }
  .angaben dd { margin-bottom: 0.625rem; }
  .treffer { grid-template-columns: 2.25rem 1fr; padding-left: 0.625rem; padding-right: 0.75rem; }
  .knopfreihe .knopf-haupt, .formular > .knopf-haupt { width: 100%; }

  /* Tabelle der Betreuung als Karten */
  .tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle th, .tabelle td { display: block; width: 100%; }
  .tabelle tr { padding: 0.625rem 0; border-bottom: 1px solid var(--f-border); }
  .tabelle th, .tabelle td { border: 0; padding: 0.125rem 0; display: grid; grid-template-columns: 11rem 1fr; }
  .tabelle th::before, .tabelle td::before { content: attr(data-titel); color: var(--f-muted); font-weight: 400; }
  .tabelle th > *, .tabelle td > * { justify-self: start; }
  .tabelle .zelle-aktion, .tabelle .zelle-frage { display: block; text-align: left; padding-top: 0.375rem; }
  .tabelle .zelle-aktion::before, .tabelle .zelle-frage::before { content: none; }
  .tabelle tr.zeile-frage { padding-top: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .knopf { transition: border-color 120ms ease, filter 120ms ease; }
}

@media print {
  .kopf, .fuss, .attrappe, .knopf { display: none !important; }
  .vertrag-rollen { max-height: none; overflow: visible; }
}
