:root {
  --grund: #f6f5f1; --flaeche: #ffffff; --linie: #d9d6cc; --text: #1c1b18; --leise: #5f5c53;
  --haupt: #1f4f46; --haupt-hell: #e3efec; --warn: #8a5a00; --warn-hell: #fbf0d6; --fehler: #9b2c2c; --fehler-hell: #fbe9e7;
  --gut: #1e6b3a; --gut-hell: #e2f3e6; --blau: #1d4f8c; --blau-hell: #e4eefb; --grau-hell: #ecebe6;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif; line-height: 1.45; }
a { color: var(--haupt); }
/* ---------- Seitenrahmen: Seitenleiste links, schmale Kopfzeile, Arbeitsfläche.
   Gerollt wird die ganze Seite, nicht ein Bereich darin. So bleiben mitlaufende Spaltenköpfe und das Arbeitsfeld am Bildschirmrand. */
.rahmen { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); min-height: 100vh; }
.seitenleiste { background: var(--flaeche); border-right: 1px solid var(--linie); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: .8rem .7rem 1.5rem; }
.seitenleiste .name { display: block; font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; color: var(--haupt); text-decoration: none; padding: .15rem .6rem .7rem; }
.seitenleiste nav { display: flex; flex-direction: column; gap: .1rem; }
.seitenleiste nav a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: var(--text); text-decoration: none; padding: .36rem .6rem; border-radius: .45rem; }
.seitenleiste nav a:hover { background: var(--grau-hell); }
.seitenleiste nav a.hier { background: var(--haupt-hell); color: var(--haupt); font-weight: 600; }
.seitenleiste .gruppe { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--leise); padding: .9rem .6rem .25rem; }
.seitenleiste .marke { background: var(--haupt); color: #fff; }
.leiste-zu .rahmen { grid-template-columns: minmax(0, 1fr); }
.leiste-zu .seitenleiste { display: none; }
@media (max-width: 1000px) {
  .rahmen { display: block; }
  .seitenleiste { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--linie); padding: .5rem .8rem; }
  .seitenleiste .name { display: inline-block; padding: .2rem .6rem; }
  .seitenleiste nav { flex-direction: row; flex-wrap: wrap; }
  .seitenleiste .gruppe { display: none; }
}

header.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
header.kopf .innen { display: flex; align-items: center; gap: .4rem .75rem; flex-wrap: wrap; padding: .45rem 1.5rem; max-width: 1400px; margin: 0 auto; }
header.kopf .rechts { margin-left: auto; display: flex; align-items: center; gap: .7rem; white-space: nowrap; min-width: 0; }
header.kopf select, header.kopf button { font: inherit; }
header.kopf label[for=jahrwahl] { display: inline; font-weight: 400; color: var(--leise); margin-right: .3rem; }
header.kopf .benutzer { color: var(--text); }
header.kopf .abmelden { background: none; border: 1px solid var(--linie); color: var(--text); border-radius: .4rem; padding: .25rem .7rem; cursor: pointer; }
header.kopf .abmelden:hover { border-color: var(--haupt); color: var(--haupt); }
header.kopf .leistenknopf { background: none; border: 1px solid var(--linie); color: var(--text); border-radius: .4rem; padding: .15rem .6rem; font-size: 1.05rem; line-height: 1.3; cursor: pointer; }
header.kopf .leistenknopf:hover { border-color: var(--haupt); color: var(--haupt); }
/* Vor der Anmeldung und beim Einrichten des zweiten Faktors: nur der Name auf grünem Band */
header.kopf.einfach { background: var(--haupt); border-bottom: none; }
header.kopf.einfach .innen { padding: .7rem 1.5rem; }
header.kopf.einfach .name { font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; color: #fff; text-decoration: none; }
/* Kein overflow an main: Es machte main zum Rollbehälter, und das Arbeitsfeld der Prüfliste blieb oben hängen. */
main { max-width: 1400px; margin: 0 auto; padding: 1rem 1.5rem 4rem; }
h1 { font-size: 1.6rem; margin: 0 0 .8rem; }
/* Titel links, der Weg zurück oder der Hauptknopf rechts in derselben Zeile */
.seitenkopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 .8rem; }
.seitenkopf h1 { margin: 0; }
h2 { font-size: 1.2rem; margin: 2rem 0 .7rem; }
.hinweis, .meldung { border-radius: .5rem; padding: .7rem 1rem; margin: 0 0 1rem; border: 1px solid var(--linie); background: var(--flaeche); }
.hinweis.ansicht { background: var(--warn-hell); border-color: #e3c877; color: #4d3300; }
.meldung.success { background: var(--gut-hell); border-color: #a9d6b5; }
span.fehler { display: block; color: var(--fehler); margin-top: .2rem; }
.meldung.error { background: var(--fehler-hell); border-color: #e3aaa4; color: var(--fehler); font-weight: 600; }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: .6rem; padding: 1rem 1.2rem; text-decoration: none; color: inherit; display: block; }
a.karte:hover { border-color: var(--haupt); }
.karte .zahl { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.karte .was { color: var(--leise); }
/* Kacheln der Übersicht: Bezeichnung oben, Wert groß, darunter woran er gemessen wird */
.kacheln { grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); }
/* Die Bezeichnung bleibt einzeilig, damit die Werte aller Kacheln auf einer Höhe stehen. */
.kacheln .karte .titel { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); margin-bottom: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kacheln .karte .zahl { font-size: 1.75rem; line-height: 1.25; }
.kacheln .karte .was { font-size: .9rem; }
.trend { display: inline-block; border-radius: .35rem; padding: 0 .4rem; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--grau-hell); color: var(--leise); }
.trend.auf { background: var(--gut-hell); color: var(--gut); }
.trend.ab { background: var(--fehler-hell); color: var(--fehler); }
.kasten { background: var(--flaeche); border: 1px solid var(--linie); border-radius: .6rem; padding: 1rem 1.2rem; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .zwei { grid-template-columns: 1fr; } }
/* overflow: clip schneidet die runden Ecken wie hidden, macht die Tabelle aber nicht zum Rollbehälter. So können die Spaltenköpfe am Bildschirmrand mitlaufen. */
table { width: 100%; border-collapse: collapse; background: var(--flaeche); border: 1px solid var(--linie); border-radius: .6rem; overflow: clip; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { background: var(--grau-hell); font-weight: 600; white-space: nowrap; }
/* Spaltenköpfe langer Listen bleiben beim Rollen oben stehen. */
thead th, tbody tr:first-child th { position: sticky; top: 0; z-index: 2; box-shadow: 0 1px 0 var(--linie); }
tr:last-child td { border-bottom: none; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.minus { color: var(--fehler); }
.klein { font-size: .88rem; color: var(--leise); }
.durch { text-decoration: line-through; color: var(--leise); }
.reiter { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.reiter a { text-decoration: none; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 2rem; padding: .3rem .9rem; }
.reiter a.hier { background: var(--haupt); border-color: var(--haupt); color: #fff; }
.reiter .n { font-variant-numeric: tabular-nums; font-weight: 700; margin-left: .3rem; }
.stufe { display: inline-block; border-radius: .35rem; padding: .1rem .55rem; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.stufe.auto { background: var(--gut-hell); color: var(--gut); }
.stufe.vorschlag { background: var(--blau-hell); color: var(--blau); }
.stufe.belegfehlt { background: var(--warn-hell); color: var(--warn); }
.stufe.unklar, .stufe.datei { background: var(--grau-hell); color: var(--leise); }
button, .knopf { font: inherit; border-radius: .45rem; border: 1px solid var(--haupt); background: var(--haupt); color: #fff; padding: .45rem 1rem; cursor: pointer; text-decoration: none; display: inline-block; }
button.zweit, .knopf.zweit { background: var(--flaeche); color: var(--haupt); }
button.gefahr { background: var(--flaeche); color: var(--fehler); border-color: var(--fehler); }
button:disabled { opacity: .45; cursor: not-allowed; }
td form { display: inline; }
.knoepfe { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
label { display: block; font-weight: 600; margin-bottom: .2rem; }
input, select, textarea { font: inherit; padding: .4rem .55rem; border: 1px solid #b9b5a8; border-radius: .4rem; background: #fff; width: 100%; }
/* Auswahlfelder sind so hoch wie Eingabefelder. */
select { height: 2.37rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #7fb3a7; outline-offset: 1px; }
.felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .9rem 1.1rem; align-items: end; }
.felder .breit { grid-column: 1 / -1; }
table.eingabe td { padding: .3rem .35rem; }
table.eingabe input, table.eingabe select { padding: .32rem .45rem; }
dl.angaben { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.2rem; margin: 0; }
dl.angaben dt { color: var(--leise); }
dl.angaben dd { margin: 0; overflow-wrap: anywhere; }
ul.gruende { margin: .4rem 0 0; padding-left: 1.2rem; }
.summe { font-variant-numeric: tabular-nums; font-weight: 600; }
.summe.offen { color: var(--fehler); }
.blaettern { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }

/* ---------- Tabellenkarte: Werkzeugleiste und Tabelle in einem Rahmen */
.tabellenkarte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: .6rem; overflow: clip; }
.tabellenkarte > table { border: none; border-radius: 0; }
/* Felder stehen oben bündig. Ein Name unter einem Kontofeld verschiebt so die Nachbarfelder nicht. */
.tabellenkarte > .werkzeug { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-start; padding: .7rem 1rem; border-bottom: 1px solid var(--linie); }
.tabellenkarte > .werkzeug:last-child { border-bottom: none; }
.werkzeug .felder { display: contents; }
.werkzeug .felder > div { flex: 1 1 11rem; max-width: 21rem; min-width: 0; }
.werkzeug .knoepfe { margin-top: 1.5rem; }
.werkzeug label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.werkzeug .stand { margin-left: auto; margin-top: 1.9rem; }
.werkzeug p.klein { flex-basis: 100%; margin: 0; }
.tabellenkarte > details.zusatz { padding: .5rem 1rem; border-bottom: 1px solid var(--linie); }
.tabellenkarte > p { margin: 0; padding: .5rem 1rem; border: none; border-bottom: 1px solid var(--linie); border-radius: 0; }
.tabellenkarte > details.zusatz > summary { cursor: pointer; color: var(--leise); }
.tabellenkarte > details.zusatz[open] > summary { margin-bottom: .6rem; color: var(--text); font-weight: 600; }
/* Der Stand einer Buchung als Marke, immer mit Wort, nie nur als Farbe */
.zustand { display: inline-block; border-radius: .35rem; padding: .1rem .55rem; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.zustand.fest { background: var(--gut-hell); color: var(--gut); }
.zustand.offen { background: var(--warn-hell); color: var(--warn); }
.zustand.storno { background: var(--grau-hell); color: var(--leise); }
/* Mehrere Konten einer Buchung stehen zeilenweise untereinander, Soll und Haben in eigenen Spalten daneben. */
td.gestapelt > div { line-height: 1.5; white-space: nowrap; }
td.gestapelt.konten > div { font-variant-numeric: tabular-nums; }
.anmeldung { max-width: 24rem; margin: 4rem auto; }
.marke { display: inline-block; background: #fff; color: var(--haupt); border-radius: 1rem; padding: 0 .45rem; font-size: .8rem; font-weight: 700; }
tr.summe td { font-weight: 700; border-top: 2px solid var(--text); }
tr.kunde td { background: var(--grau-hell); font-weight: 600; }
details summary { cursor: pointer; }
.aus { color: var(--leise); }

/* ---------- Eingabehilfen */
.leise { color: var(--leise); font-weight: 400; }
.karte .zahl.minus { color: var(--fehler); }
header.kopf input[type=search] { width: clamp(12rem, 26vw, 24rem); border: 1px solid var(--linie); background: var(--grund); padding: .32rem .8rem; border-radius: 2rem; }
.mitknopf { display: flex; gap: .25rem; align-items: stretch; }
.mitknopf input { flex: 1; min-width: 0; }
.mitknopf button { padding: 0 .55rem; background: var(--flaeche); color: var(--haupt); border-color: #b9b5a8; line-height: 1; display: inline-flex; align-items: center; }
.mitknopf button:hover { background: var(--haupt-hell); border-color: var(--haupt); }
/* Der Knopf zur Kontenliste zeigt eine Lupe. Die drei Punkte aus dem Skript bleiben für Vorleseprogramme unsichtbar im Knopf. */
.mitknopf button.auswahl { font-size: 0; width: 2.3rem; justify-content: center; background: var(--flaeche) center / 1.05rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.8' cy='6.8' r='4.6' fill='none' stroke='%231f4f46' stroke-width='1.7'/%3E%3Cpath d='M10.3 10.3l3.6 3.6' stroke='%231f4f46' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mitknopf button.auswahl:hover { background-color: var(--haupt-hell); }
/* Der Hinweis zur Steuer gehört zum Betrag darüber und rückt an ihn heran. */
#steuerinfo { margin-top: -.5rem; }
table.eingabe .mitknopf button { padding: 0 .4rem; }
.kontoname, .wochentag { min-height: 1.25em; margin-top: .15rem; }
.kontoname.fehlt, .wochentag.fehlt { color: var(--fehler); font-weight: 600; }
.kontovorschlag { position: absolute; z-index: 40; background: var(--flaeche); border: 1px solid var(--haupt); border-radius: .45rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); min-width: 22rem; max-width: 34rem; max-height: 22rem; overflow-y: auto; padding: .2rem; }
.kontovorschlag .eintrag { display: flex; gap: .8rem; padding: .3rem .6rem; border-radius: .3rem; cursor: pointer; white-space: nowrap; }
.kontovorschlag .eintrag b { font-variant-numeric: tabular-nums; min-width: 5.2rem; }
.kontovorschlag .eintrag span { overflow: hidden; text-overflow: ellipsis; }
.kontovorschlag .eintrag.leise span { color: var(--leise); }
.kontovorschlag .eintrag.aktiv, .kontovorschlag .eintrag:hover { background: var(--haupt-hell); }
dialog.kontenliste { width: min(52rem, 94vw); max-height: 88vh; border: 1px solid var(--linie); border-radius: .7rem; padding: 1rem 1.2rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
dialog.kontenliste::backdrop { background: rgba(28, 27, 24, .45); }
dialog.kontenliste .kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
dialog.kontenliste .kopf h2 { margin: 0; }
dialog.kontenliste .reiter { margin: .7rem 0; }
dialog.kontenliste .reiter button { border-radius: 2rem; padding: .2rem .8rem; color: var(--text); border-color: var(--linie); }
dialog.kontenliste .reiter button.hier { background: var(--haupt); border-color: var(--haupt); color: #fff; }
dialog.kontenliste .rahmen { max-height: 52vh; overflow-y: auto; border: 1px solid var(--linie); border-radius: .5rem; }
dialog.kontenliste table { border: none; border-radius: 0; }
dialog.kontenliste th { position: sticky; top: 0; }
dialog.kontenliste td { padding: .32rem .7rem; }
dialog.kontenliste tr[data-n] { cursor: pointer; }
dialog.kontenliste tr[data-n]:hover, dialog.kontenliste tr[data-n]:focus { background: var(--haupt-hell); outline: none; }
dialog.kontenliste td.nummer { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.kalender { position: absolute; z-index: 40; background: var(--flaeche); border: 1px solid var(--haupt); border-radius: .5rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding: .6rem; width: 17.5rem; }
.kalender .kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.kalender .kopf button { background: var(--flaeche); color: var(--haupt); border-color: var(--linie); padding: .1rem .65rem; font-size: 1.1rem; }
.kalender .gitter { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.kalender .tagname { text-align: center; font-size: .8rem; color: var(--leise); padding: .15rem 0; }
.kalender .gitter button { background: none; color: var(--text); border: 1px solid transparent; padding: .28rem 0; border-radius: .35rem; font-variant-numeric: tabular-nums; }
.kalender .gitter button.wochenende { color: var(--leise); }
.kalender .gitter button:hover { background: var(--haupt-hell); }
.kalender .gitter button.heute { border-color: var(--haupt); font-weight: 700; }
.kalender .gitter button.gewaehlt { background: var(--haupt); color: #fff; }
.kalender .fuss { margin-top: .4rem; text-align: right; }
.kalender .fuss button { padding: .15rem .7rem; }

/* ---------- Erfassung */
.erfassung { display: grid; grid-template-columns: minmax(0, 3fr) minmax(18rem, 2fr); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .erfassung { grid-template-columns: 1fr; } }
.felder.zweispaltig { grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 640px) { .felder.zweispaltig { grid-template-columns: 1fr; } }
.erfassung details { margin-top: .9rem; }
.auskunft h2 { margin: 0 0 .5rem; }
.auskunft h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--leise); margin: .9rem 0 .3rem; }
.auskunftfeld:empty::after { content: "kein Konto gewählt"; color: var(--leise); font-size: .88rem; }
.auskunftkopf { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; margin-bottom: .3rem; }
.auskunftkopf .saldo { font-variant-numeric: tabular-nums; white-space: nowrap; }
.auskunftkopf .saldo.minus { color: var(--fehler); }
.postenliste { display: flex; flex-direction: column; gap: .25rem; margin: .3rem 0 .5rem; }
.postenliste button { display: flex; gap: .8rem; padding: .25rem .6rem; text-align: left; color: var(--text); border-color: var(--linie); }
.postenliste button:hover { border-color: var(--haupt); background: var(--haupt-hell); }
.postenliste .betrag { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
table.schmal { border: none; background: none; font-size: .9rem; }
table.schmal td { padding: .22rem .4rem; }
table.schmal td:first-child { padding-left: 0; white-space: nowrap; }

/* ---------- Übersicht und Listen */
ul.aufgaben { list-style: none; margin: 0 0 .6rem; padding: 0; }
ul.aufgaben li { border-bottom: 1px solid var(--linie); }
ul.aufgaben li:last-child { border-bottom: none; }
ul.aufgaben a { display: flex; gap: .8rem; align-items: baseline; padding: .45rem 0; text-decoration: none; color: var(--text); }
ul.aufgaben a:hover { color: var(--haupt); }
ul.aufgaben .n { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: right; color: var(--haupt); font-size: 1.15rem; }
.kasten h2:first-child { margin-top: 0; }
svg.bild { width: 100%; height: auto; display: block; }
svg.bild .achse { font-size: 11px; fill: #5f5c53; font-family: inherit; }
svg.bild .wert { font-size: 9.5px; font-weight: 600; font-family: inherit; font-variant-numeric: tabular-nums; }
.legende { margin: .4rem 0 0; font-size: .88rem; color: var(--leise); }
.legende span { display: inline-block; width: .8rem; height: .8rem; border-radius: .15rem; margin: 0 .3rem 0 .8rem; vertical-align: -1px; }
.legende span:first-child { margin-left: 0; }
table[data-sortierbar] th { cursor: pointer; user-select: none; }
table[data-sortierbar] th:hover { background: #dedcd4; }
table[data-sortierbar] th[aria-sort=ascending]::after { content: " ▲"; font-size: .7em; }
table[data-sortierbar] th[aria-sort=descending]::after { content: " ▼"; font-size: .7em; }
tr[hidden] { display: none; }

/* ---------- Prüfliste der Bankumsätze */
.erklaerung { background: var(--flaeche); border: 1px solid var(--linie); border-left: 4px solid var(--haupt); border-radius: .5rem; padding: .7rem 1rem; margin: 0 0 1rem; max-width: 62rem; }
.erklaerung p { margin: 0 0 .35rem; }
details.erklaerung > summary { cursor: pointer; font-weight: 600; }
details.erklaerung[open] > summary { margin-bottom: .45rem; }
details.erklaerung:not([open]) { padding-top: .35rem; padding-bottom: .35rem; }
.erklaerung details { margin-top: .3rem; }
dl.stufenhilfe { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: .6rem 0 .2rem; align-items: baseline; }
dl.stufenhilfe dd { margin: 0; }
dl.stufenhilfe .tun { color: var(--leise); }
@media (max-width: 640px) { dl.stufenhilfe { grid-template-columns: 1fr; gap: .15rem; } dl.stufenhilfe dd { margin-bottom: .5rem; } }
.leiste { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; margin: 0 0 .8rem; }
.leiste input[type=search] { width: 20rem; max-width: 100%; }
.leiste form { margin-left: auto; }
.zweiteilig { display: grid; grid-template-columns: minmax(0, 6fr) minmax(24rem, 5fr); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .zweiteilig { grid-template-columns: 1fr; } }
/* Mit Seitenleiste ist die Arbeitsfläche schmaler: Liste und Arbeitsfeld stehen dann erst ab größerer Breite nebeneinander. */
@media (max-width: 1250px) { html:not(.leiste-zu) .zweiteilig { grid-template-columns: 1fr; } }
#arbeitsfeld { position: sticky; top: .8rem; max-height: calc(100vh - 1.6rem); overflow-y: auto; }
/* Prüfliste: flache Zeilen und feste Spaltenbreiten. Die Liste hält sich an ihren Platz neben dem Arbeitsfeld, lange Texte werden gekürzt statt die Tabelle zu weiten. */
#umsaetze { table-layout: fixed; }
#umsaetze th:nth-child(1) { width: 4.3rem; }
#umsaetze th:nth-child(2) { width: 6.6rem; }
#umsaetze th:nth-child(4) { width: 8.2rem; }
#umsaetze td { padding-top: .3rem; padding-bottom: .3rem; overflow: hidden; }
#umsaetze td .klein, #umsaetze td .kopfzeile { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#umsaetze td .ziel { margin-left: .5rem; font-size: .88rem; }
table.wahl tbody tr { cursor: pointer; }
table.wahl tbody tr:hover { background: #f1f0ea; }
table.wahl tbody tr.gewaehlt { background: var(--haupt-hell); box-shadow: inset 4px 0 0 var(--haupt); }
table.wahl tbody tr:focus { outline: none; }
table.wahl tbody tr.gewaehlt:focus { box-shadow: inset 4px 0 0 var(--haupt), inset 0 0 0 2px #7fb3a7; }
table.wahl td { padding: .4rem .6rem; }
table.wahl .ziel { color: var(--haupt); }
.detailkopf { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.detailkopf h2 { margin: 0; overflow-wrap: anywhere; }
.detailkopf .summe { font-size: 1.5rem; white-space: nowrap; }
.detail p { margin: .4rem 0 .8rem; overflow-wrap: anywhere; }
.detail h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--leise); margin: 1.1rem 0 .4rem; }
.vorschlagsfeld { background: var(--grund); border: 1px solid var(--linie); border-radius: .5rem; padding: .7rem .9rem; }
.vorschlagsfeld .buchungssatz { font-variant-numeric: tabular-nums; font-weight: 600; margin-top: .3rem; }
.vorschlagsfeld .knoepfe { margin-top: .6rem; }
.detail .felder.zweispaltig { gap: .6rem .8rem; }
.detail form.zurueck { margin-top: 1.1rem; border-top: 1px solid var(--linie); padding-top: .8rem; }
.detail form.zurueck label { font-weight: 400; color: var(--leise); }
.auskunftfeld.still:empty::after { content: none; }
.auskunftfeld.still { margin-top: .7rem; }
input.fest { background: var(--grau-hell); color: var(--leise); }
#steuerinfo { min-height: 1.3em; margin-top: -.5rem; }

/* ---------- Alle Bankumsätze: Kennzeichen des Stands. Die Form unterscheidet, die Farbe hilft nur. */
.kennzeichen { display: inline-block; width: 1.15rem; height: 1.15rem; vertical-align: -.2rem; background: center / contain no-repeat; }
.kennzeichen.haken { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%231e6b3a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.kennzeichen.kreis { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.6' fill='none' stroke='%23c2660a' stroke-width='2'/%3E%3C/svg%3E"); }
.kennzeichen.uhr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='%235f5c53' stroke-width='1.6'/%3E%3Cpath d='M8 4.5V8l2.6 1.6' fill='none' stroke='%235f5c53' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.legende-stand { margin-left: .8rem; white-space: nowrap; }
.legende-stand .kennzeichen { margin-left: .7rem; }

/* ---------- Belegauswahl am Bankumsatz */
dialog.kontenliste.belege { width: min(64rem, 96vw); }
dialog.belege .leiste { margin: .6rem 0; }
dialog.belege td { vertical-align: top; }
.belegname { min-height: 1.1em; margin-top: .1rem; overflow-wrap: anywhere; }
.titelzeile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 1rem; }
.titelzeile h1 { margin: 0; }
dialog.belege td.belegknoepfe { white-space: nowrap; }
dialog.belege td.belegknoepfe .knopf, dialog.belege td.belegknoepfe button { padding: .3rem .7rem; }
dialog.kontenliste.belege.mitvorschau { width: min(100rem, 98vw); max-height: 96vh; }
dialog.belege .nebeneinander { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
dialog.belege.mitvorschau .nebeneinander { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
dialog.belege.mitvorschau .rahmen { max-height: 72vh; }
#belegvorschau .kopf { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .5rem; }
#belegvorschau .knoepfe { margin: 0; }
#belegvorschau iframe { width: 100%; height: 66vh; border: 1px solid var(--linie); border-radius: .5rem; background: var(--grau-hell); }
#belegliste tr.angesehen { background: var(--haupt-hell); box-shadow: inset 4px 0 0 var(--haupt); }
@media (max-width: 1000px) { dialog.belege.mitvorschau .nebeneinander { grid-template-columns: 1fr; } }
