/* bookm8te — Oberfläche.
 *
 * Keine externen Schriften und kein CDN: Die Content-Security-Policy lässt nur
 * eigene Quellen zu. Das ist Absicht — eine Anwendung, die Rechnungen und
 * Kontoauszüge zeigt, soll beim Aufruf keine Verbindung nach außen aufbauen.
 *
 * Beide Farbschemata sind ausgearbeitet. Wer Buchhaltung abends macht, macht
 * sie oft im dunklen Modus. */

:root {
  --grund:      #f3f5f3;
  --flaeche:    #fcfcfa;
  --flaeche-2:  #eceff0;
  --tinte:      #18201e;
  --gedaempft:  #5c6461;
  --linie:      #d8ddd8;
  --linie-fein: #e6eae6;
  --akzent:     #1e5c51;
  --akzent-auf: #fcfcfa;
  --akzent-bg:  #dce9e4;
  --gruen:      #1e6b3a;
  --gruen-bg:   #dcecdf;
  --gelb:       #8a5a12;
  --gelb-bg:    #f4e9d4;
  --rot:        #8e2f28;
  --rot-bg:     #f4dfdc;

  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fest: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund:      #111513;
    --flaeche:    #181d1b;
    --flaeche-2:  #1f2523;
    --tinte:      #e3e7e4;
    --gedaempft:  #8b9591;
    --linie:      #293029;
    --linie-fein: #212724;
    --akzent:     #6dbfab;
    --akzent-auf: #101413;
    --akzent-bg:  #1b2b27;
    --gruen:      #5fb07a;
    --gruen-bg:   #16281c;
    --gelb:       #d2a250;
    --gelb-bg:    #2c2317;
    --rot:        #de8077;
    --rot-bg:     #2e1c1a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--akzent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* ---------- Gerüst ---------- */

.kopf {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 10;
}
.kopf-innen {
  max-width: 78rem; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 2rem; min-height: 3.5rem;
}
.marke { font-weight: 700; letter-spacing: -.02em; font-size: 1.05rem; text-decoration: none; color: var(--tinte); }
.marke span { color: var(--akzent); }

.navi { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1; }
.navi a {
  padding: .4rem .7rem; border-radius: var(--radius); text-decoration: none;
  color: var(--gedaempft); font-size: .9rem;
}
.navi a:hover { background: var(--flaeche-2); color: var(--tinte); }
.navi a[aria-current="page"] { background: var(--akzent-bg); color: var(--akzent); font-weight: 600; }

.inhalt { max-width: 78rem; margin: 0 auto; padding: 2rem 1.5rem 5rem; }
.schmal { max-width: 46rem; }

h1 { font-size: 1.7rem; letter-spacing: -.025em; margin: 0 0 .4rem; text-wrap: balance; }
h2 { font-size: 1.2rem; letter-spacing: -.018em; margin: 2.2rem 0 .8rem; text-wrap: balance; }
h3 { font-size: 1rem; margin: 1.4rem 0 .4rem; }
.vorspann { color: var(--gedaempft); margin: 0 0 2rem; max-width: 60ch; }

/* ---------- Ampel ---------- */

.pruefung {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-left-width: 3px; border-radius: var(--radius);
  padding: 1rem 1.2rem; margin-bottom: .8rem;
}
.pruefung.gruen { border-left-color: var(--gruen); }
.pruefung.gelb  { border-left-color: var(--gelb); }
.pruefung.rot   { border-left-color: var(--rot); }
.pruefung.ungeprueft { border-left-color: var(--linie); }

.pruefung-kopf { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.pruefung h3 { margin: 0; font-size: .98rem; }
.pruefung .befund { color: var(--gedaempft); font-size: .92rem; margin: .25rem 0 0; }
.pruefung .warum {
  font-size: .9rem; margin: .7rem 0 0; padding: .6rem .8rem;
  background: var(--flaeche-2); border-radius: var(--radius);
}
.pruefung ol.schritte { margin: .7rem 0 0; padding-left: 1.2rem; font-size: .92rem; }
.pruefung ol.schritte li { margin-bottom: .35rem; }
.wo {
  font-family: var(--fest); font-size: .76rem; color: var(--akzent);
  background: var(--akzent-bg); padding: .1rem .35rem; border-radius: 2px;
  white-space: nowrap;
}

.marke-ampel {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .18rem .45rem; border-radius: 2px; white-space: nowrap;
}
.marke-ampel.gruen { background: var(--gruen-bg); color: var(--gruen); }
.marke-ampel.gelb  { background: var(--gelb-bg);  color: var(--gelb); }
.marke-ampel.rot   { background: var(--rot-bg);   color: var(--rot); }
.marke-ampel.ungeprueft { background: var(--flaeche-2); color: var(--gedaempft); }

.messwerte { display: flex; gap: 1.4rem; margin-top: .7rem; flex-wrap: wrap; }
.messwert { font-size: .84rem; }
.messwert dt { color: var(--gedaempft); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.messwert dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Handbuch ---------- */

.handbuch { display: grid; grid-template-columns: 15rem 1fr; gap: 3rem; align-items: start; }
@media (max-width: 56rem) { .handbuch { grid-template-columns: 1fr; gap: 1.5rem; } }

.inhaltsverzeichnis { position: sticky; top: 5rem; font-size: .9rem; }
.inhaltsverzeichnis ul { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.inhaltsverzeichnis > ul > li { margin-bottom: .9rem; }
.inhaltsverzeichnis strong { display: block; margin-bottom: .25rem; font-size: .82rem; letter-spacing: -.01em; }
.inhaltsverzeichnis a { display: block; padding: .12rem 0 .12rem .7rem; border-left: 2px solid var(--linie-fein); color: var(--gedaempft); text-decoration: none; }
.inhaltsverzeichnis a:hover { border-left-color: var(--akzent); color: var(--tinte); }

.kapitel { margin-bottom: 3.5rem; scroll-margin-top: 5rem; }
.kapitel > p.einleitung { color: var(--gedaempft); max-width: 62ch; }
.abschnitt { margin: 2rem 0; scroll-margin-top: 5rem; max-width: 68ch; }
.abschnitt p { max-width: 66ch; }

.schrittliste { list-style: none; margin: 1rem 0; padding: 0; counter-reset: s; }
.schrittliste li {
  counter-increment: s; display: grid; grid-template-columns: 1.6rem 1fr; gap: 0 .8rem;
  padding: .7rem 0; border-top: 1px solid var(--linie-fein);
}
.schrittliste li::before {
  content: counter(s); font-family: var(--fest); font-size: .74rem; font-weight: 700;
  color: var(--akzent); padding-top: .2rem;
}
.schrittliste b { display: block; font-size: .94rem; }
.schrittliste span { color: var(--gedaempft); font-size: .9rem; }

.hinweis, .warnung {
  padding: .8rem 1rem; border-radius: var(--radius); font-size: .92rem;
  margin: 1rem 0; border-left: 3px solid;
}
.hinweis  { background: var(--akzent-bg); border-left-color: var(--akzent); }
.warnung  { background: var(--gelb-bg);   border-left-color: var(--gelb); }
.hinweis strong, .warnung strong { display: block; margin-bottom: .2rem; }

/* ---------- Formulare ---------- */

form.anmeldung { max-width: 22rem; margin: 6rem auto; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
input[type=text], input[type=password], input[type=search] {
  width: 100%; padding: .55rem .7rem; font: inherit; font-size: .95rem;
  background: var(--flaeche); color: var(--tinte);
  border: 1px solid var(--linie); border-radius: var(--radius); margin-bottom: 1rem;
}
button, .knopf {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  padding: .5rem 1rem; border-radius: var(--radius);
  background: var(--akzent); color: var(--akzent-auf); border: 1px solid var(--akzent);
  text-decoration: none; display: inline-block;
}
button.leise, .knopf.leise { background: transparent; color: var(--tinte); border-color: var(--linie); }
button:hover, .knopf:hover { filter: brightness(1.08); }

.fehler {
  background: var(--rot-bg); color: var(--rot); border-left: 3px solid var(--rot);
  padding: .7rem 1rem; border-radius: var(--radius); font-size: .92rem; margin-bottom: 1rem;
}

/* ---------- Tabellen ---------- */

.tabelle-rollt { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--gedaempft); font-weight: 600;
  padding: .5rem .8rem .5rem 0; border-bottom: 1px solid var(--tinte);
}
td { padding: .6rem .8rem .6rem 0; border-bottom: 1px solid var(--linie-fein); vertical-align: top; }
td.zahl { font-variant-numeric: tabular-nums; text-align: right; padding-right: 1.2rem; }
code { font-family: var(--fest); font-size: .86em; background: var(--flaeche-2); padding: .1em .3em; border-radius: 2px; }

.leer { color: var(--gedaempft); padding: 3rem 0; text-align: center; }

.fuss {
  margin-top: 4rem; padding-top: 1.2rem; border-top: 1px solid var(--linie);
  font-size: .82rem; color: var(--gedaempft);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- Review-Oberfläche ----------
 *
 * Ergänzungen für Übersicht, Belegliste, Einzelbeleg, Stapel und Mandanten.
 * Alles baut auf den vorhandenen Bausteinen auf: Ampeln, Prüfblöcke, Tabellen.
 * Neu ist nur, was es noch nicht gab — vor allem die zweispaltige Belegansicht
 * und die Abhilfe, die im Review den Unterschied macht. */

.nebensache { color: var(--gedaempft); font-size: .85rem; }
.nur-vorlese {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Gegenstück zu .fehler: der Knopf sagt, was passiert, das hier sagt,
 * was passiert ist. */
.erfolg {
  background: var(--gruen-bg); color: var(--gruen); border-left: 3px solid var(--gruen);
  padding: .7rem 1rem; border-radius: var(--radius); font-size: .92rem; margin-bottom: 1rem;
}

/* Gesperrt ist kein dunkleres Rot, sondern die Umkehrung: Wer das sieht,
 * soll nicht weitersuchen müssen, ob es schlimmer ist als "Fehler". */
.marke-ampel.gesperrt { background: var(--rot); color: var(--grund); }
.pruefung.gesperrt { border-left-color: var(--rot); background: var(--rot-bg); }

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

.kennzahlen {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .8rem; margin: 1.5rem 0 2rem;
}
.kennzahl {
  background: var(--flaeche); border: 1px solid var(--linie); border-left-width: 3px;
  border-radius: var(--radius); padding: .8rem 1rem;
}
.kennzahl b {
  display: block; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.kennzahl span { font-size: .78rem; color: var(--gedaempft); }
.kennzahl.rot   { border-left-color: var(--rot); }
.kennzahl.gelb  { border-left-color: var(--gelb); }
.kennzahl.gruen { border-left-color: var(--gruen); }

.dringend { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.dringend li {
  display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap;
  padding: .5rem 0; border-bottom: 1px solid var(--linie-fein);
}

.balken { height: .4rem; background: var(--flaeche-2); border-radius: 2px; overflow: hidden; margin: .7rem 0; }
.balken span { display: block; height: 100%; background: var(--akzent); }

/* ---------- Filter und Formularfelder ---------- */

select, textarea {
  width: 100%; padding: .5rem .6rem; font: inherit; font-size: .95rem;
  background: var(--flaeche); color: var(--tinte);
  border: 1px solid var(--linie); border-radius: var(--radius); margin-bottom: 1rem;
}
textarea { resize: vertical; }

.filterleiste {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1.5rem;
}
.filterleiste label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--gedaempft); font-weight: 600; margin-bottom: .25rem;
}
.filterleiste select { margin-bottom: 0; min-width: 11rem; }
.filter-knoepfe { display: flex; gap: .5rem; align-items: center; }

.punkt {
  display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
  margin-right: .4rem; background: var(--gedaempft);
}
.punkt.gruen { background: var(--gruen); }
.punkt.gelb  { background: var(--gelb); }
.punkt.rot, .punkt.gesperrt { background: var(--rot); }
.punkt.ungeprueft { background: var(--linie); }

/* ---------- Einzelbeleg ---------- */

.beleg-kopf {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.beleg-kopf h1 { margin-bottom: .2rem; }
.beleg-kopf-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.blaettern { display: flex; gap: .8rem; font-size: .88rem; }

.zwei-spalten {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem; align-items: start;
}
@media (max-width: 68rem) { .zwei-spalten { grid-template-columns: 1fr; gap: 1.5rem; } }
/* Der Beleg bleibt stehen, während rechts gescrollt wird — beim Prüfen schaut
 * man zwischen Vorschlag und Beleg hin und her, nicht nacheinander. */
@media (min-width: 68rem) { .spalte-beleg { position: sticky; top: 5rem; } }

.belegrahmen {
  width: 100%; height: min(78vh, 60rem); border: 1px solid var(--linie);
  border-radius: var(--radius); background: var(--flaeche);
}

table.buchung abbr { text-decoration: none; border-bottom: 1px dotted var(--gedaempft); cursor: help; }
table.buchung tfoot td {
  font-weight: 600; border-top: 1px solid var(--tinte); border-bottom: none;
}

.begruendung {
  background: var(--flaeche-2); padding: .7rem .9rem; border-radius: var(--radius);
  font-size: .94rem; max-width: 66ch;
}

/* Die Abhilfe ist der Teil, der Zeit spart. Deshalb steht sie im Akzentton
 * unter dem Befund und nicht als Fußnote am Seitenende. */
.abhilfe {
  margin: .7rem 0 0; padding: .6rem .8rem; font-size: .92rem;
  background: var(--akzent-bg); border-left: 3px solid var(--akzent);
  border-radius: var(--radius);
}
.abhilfe strong {
  display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--akzent); margin-bottom: .15rem;
}

.aktionen {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem; margin: 1rem 0;
}
.aktion {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1rem;
}
.aktion input, .aktion textarea, .aktion select { margin-bottom: .6rem; }
.aktion .nebensache { display: block; margin-top: .4rem; }
.konto-felder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }

kbd {
  font-family: var(--fest); font-size: .7rem; padding: 0 .3rem;
  border: 1px solid var(--linie); border-bottom-width: 2px; border-radius: 3px;
  background: var(--flaeche-2); color: var(--gedaempft);
}
button kbd, .knopf kbd { background: transparent; border-color: currentColor; color: inherit; opacity: .7; }
.tasten {
  color: var(--gedaempft); font-size: .8rem; margin-top: 1.5rem;
  border-top: 1px solid var(--linie-fein); padding-top: .8rem;
}

/* ---------- Mandanten ---------- */

.karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-left-width: 3px;
  border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem;
}
.karte.gruen { border-left-color: var(--gruen); }
.karte.gelb  { border-left-color: var(--gelb); }
.karte h3 { margin: 0; font-size: .98rem; }
.knapp { margin: .4rem 0 .4rem 1.1rem; padding: 0; }

/* ---------- Einstellungen ----------
 *
 * Ein Formular, kein Karteikartenkasten: Die Erklärung steht als Fließtext
 * unter der Beschriftung und über dem Feld, die Herkunft als Marke darunter.
 * Wer eine Schwelle ändert, soll im selben Blick lesen können, was sie bewirkt
 * und woher der Wert stammt, der gerade gilt. */

.einstellungsgruppe { margin-bottom: 3rem; scroll-margin-top: 5rem; }
.einstellungsgruppe > h2 { margin-top: 0; }
.gruppen-erklaerung { color: var(--gedaempft); font-size: .92rem; max-width: 66ch; margin: 0 0 1rem; }

.feld {
  background: var(--flaeche); border: 1px solid var(--linie); border-left-width: 3px;
  border-left-color: var(--linie); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin-bottom: .8rem; max-width: 60ch;
}
.feld label { font-size: .95rem; margin-bottom: .15rem; display: flex; align-items: baseline; gap: .5rem; }
.feld .feld-erklaerung { color: var(--gedaempft); font-size: .88rem; margin: 0 0 .7rem; }
.feld input, .feld select { margin-bottom: .5rem; }
.feld input[type=number] {
  width: 100%; padding: .55rem .7rem; font: inherit; font-size: .95rem;
  background: var(--flaeche); color: var(--tinte);
  border: 1px solid var(--linie); border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}

.pflichtmarke {
  font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gedaempft); background: var(--flaeche-2);
  padding: .1rem .35rem; border-radius: 2px;
}

/* Die Herkunft ist der Teil, der Rätselraten erspart: Ein Wert aus der .env
 * sieht im Feld genauso aus wie ein gespeicherter — bis hier steht, welcher
 * von beiden gilt. */
.feld-herkunft { font-size: .82rem; color: var(--gedaempft); margin: 0; }
.herkunft {
  font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: .12rem .4rem; border-radius: 2px; margin-right: .4rem; white-space: nowrap;
}
.herkunft.datenbank   { background: var(--gruen-bg); color: var(--gruen); }
.herkunft.umgebung    { background: var(--gelb-bg);  color: var(--gelb); }
.herkunft.vorbelegung { background: var(--flaeche-2); color: var(--gedaempft); }

.feld-geheim { font-size: .82rem; color: var(--gedaempft); margin: .4rem 0 0; }
.feld-schluessel { margin: .5rem 0 0; }
.feld-schluessel code { font-size: .72rem; color: var(--gedaempft); }

.feld.feld-fehler { border-left-color: var(--rot); }
.fehler.feldweise { margin: .6rem 0 0; }

.speicherleiste {
  position: sticky; bottom: 0; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  background: var(--grund); border-top: 1px solid var(--linie);
  padding: .9rem 0; margin-top: 1rem;
}
.speicherleiste .nebensache { max-width: 46ch; }

/* ---------- Einrichtungsassistent ----------
 *
 * Ergänzungen für die Strecke von der leeren Installation bis zum ersten
 * ausgewerteten Beleg. Alles baut auf den vorhandenen Bausteinen auf —
 * Ampeln, Prüfblöcke, Hinweiskästen. Neu ist nur, was es noch nicht gab:
 * die Schrittleiste, die Abhakliste und der Block je Mandant. */

.schrittleiste {
  display: flex; flex-wrap: wrap; gap: .3rem;
  margin: 0 0 2rem; padding-bottom: .9rem;
  border-bottom: 1px solid var(--linie);
}
.schrittmarke {
  display: flex; align-items: baseline; gap: .4rem;
  padding: .3rem .6rem; border-radius: var(--radius);
  text-decoration: none; color: var(--gedaempft); font-size: .82rem;
  border: 1px solid transparent;
}
.schrittmarke b {
  font-family: var(--fest); font-size: .72rem; font-weight: 700;
  min-width: 1rem; text-align: center;
}
.schrittmarke:hover { background: var(--flaeche-2); color: var(--tinte); }
.schrittmarke.fertig { color: var(--gruen); }
.schrittmarke.fertig b::after { content: "✓"; margin-left: .2rem; }
.schrittmarke.hier {
  background: var(--akzent-bg); color: var(--akzent);
  border-color: var(--akzent); font-weight: 600;
}
/* Auf schmalen Anzeigen bleibt die Nummer, der Titel weicht — sonst nimmt die
 * Leiste die halbe Seite ein, bevor der eigentliche Schritt beginnt. */
@media (max-width: 44rem) { .schrittmarke span { display: none; } }

/* ---------- Übersicht der Schritte ---------- */

.einrichtungsliste { list-style: none; margin: 2rem 0; padding: 0; counter-reset: none; }
.einrichtungspunkt {
  display: grid; grid-template-columns: 2rem 1fr; gap: 0 .9rem;
  padding: .8rem 0 .8rem .8rem; border-top: 1px solid var(--linie-fein);
  border-left: 3px solid var(--linie-fein);
}
.einrichtungspunkt.fertig   { border-left-color: var(--gruen); }
.einrichtungspunkt.offen    { border-left-color: var(--linie); }
.einrichtungspunkt.empfohlen{ border-left-color: var(--gelb); }
.einrichtungspunkt > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.einrichtungspunkt a { text-decoration: none; }
.einrichtungspunkt a:hover { text-decoration: underline; }
.einrichtungspunkt .nebensache { flex-basis: 100%; }
.punktnummer {
  font-family: var(--fest); font-size: .78rem; font-weight: 700;
  color: var(--gedaempft); padding-top: .15rem;
}

/* ---------- Abhakliste ---------- */

.abhakliste { list-style: none; margin: 1.5rem 0; padding: 0; }
.abhakliste li {
  padding: .8rem 0 .8rem 1.8rem; border-top: 1px solid var(--linie-fein);
  position: relative;
}
.abhakliste li::before {
  content: "☐"; position: absolute; left: 0; top: .75rem;
  color: var(--akzent); font-size: 1rem; line-height: 1;
}
.abhakliste b { display: block; font-size: .95rem; }
.abhakliste span { color: var(--gedaempft); font-size: .9rem; display: block; max-width: 66ch; }
.abhakliste .wo { display: inline-block; margin-top: .35rem; }

/* ---------- Auswahl mit Erklärung ---------- */

fieldset.wahlfeld, fieldset.mandantenblock {
  border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin: 0 0 1.2rem;
  background: var(--flaeche);
}
fieldset.wahlfeld legend, fieldset.mandantenblock legend {
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  padding: 0 .4rem; color: var(--tinte);
}

/* Anklickbar ist die ganze Zeile, nicht nur das Kästchen: Wer vierzig Belege
 * am Tag prüft, trifft ein 13-Pixel-Ziel nicht gern. */
label.wahl {
  display: grid; grid-template-columns: 1.2rem 1fr; gap: .1rem .6rem;
  align-items: start; font-weight: 400; font-size: .95rem;
  padding: .5rem .6rem; margin: 0 0 .2rem; border-radius: var(--radius);
  cursor: pointer;
}
label.wahl:hover { background: var(--flaeche-2); }
label.wahl input { margin: .3rem 0 0; }
label.wahl b { font-weight: 600; }
label.wahl .nebensache { display: block; }

/* ---------- Mandanten ---------- */

.stammdatenfelder {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0 .9rem; margin-top: .8rem;
}
.stammdatenfelder input, .stammdatenfelder select { margin-bottom: .8rem; }
.stammdatenfelder input[type=date], .stammdatenfelder input[type=number] {
  width: 100%; padding: .55rem .7rem; font: inherit; font-size: .95rem;
  background: var(--flaeche); color: var(--tinte);
  border: 1px solid var(--linie); border-radius: var(--radius);
}
input[type=file] {
  width: 100%; font: inherit; font-size: .9rem; margin-bottom: .4rem;
  color: var(--gedaempft);
}

/* ---------- Fußleisten ---------- */

.weiterleiste {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--linie-fein);
}
