/* Bank-App auf zk-design (public/ds/, Version in public/ds/DS_VERSION): Marke und Rahmen.
   Nur Tokens und Layout; keine eigenen Komponenten. Marke: Blau #2a5f88 (hell) und #7fb3dc (dunkel) aus dem frueheren
   stil.css, Grautoene mit skill/zk-screen/scripts/grauton.php berechnet. Dunkel folgt der Systemeinstellung ohne JavaScript. */

.ds {
  --accent: #2a5f88; --accent-press: #1f4a6b; --accent-ink: #2a5f88; --accent-soft: #e6eef5; --on-accent: #ffffff;
  --bg: #f1f2f4; --surface: #ffffff; --surface-2: #f7f7f8; --line: #dde1e3; --line-soft: #e9ebed;
  --ink: #191c1f; --ink-2: #51575c; --ink-3: #6d7378; --bar-track: #e3e6e8;
  --coach-bg: #f4f5f6; --coach-ink: #32393e; --owner-bg: #ffffff; --owner-line: #e3e6e8;
}
@media (prefers-color-scheme: dark) {
  .ds:not(.light):not(.dark):not(.editorial) {
    --accent: #7fb3dc; --accent-press: #5f9cc9; --accent-ink: #7fb3dc; --accent-soft: rgba(127,179,220,.14); --on-accent: #14202b;
    --bg: #101214; --surface: #191c1f; --surface-2: #202427; --line: #2e3438; --line-soft: #25292d;
    --ink: #eef0f1; --ink-2: #a9aeb2; --ink-3: #878d92; --bar-track: #272c30;
    --coach-bg: #1e2224; --coach-ink: #d2d7da; --owner-bg: #1e2224; --owner-line: #2e3438;
  }
}
.ds.dark {
  --accent: #7fb3dc; --accent-press: #5f9cc9; --accent-ink: #7fb3dc; --accent-soft: rgba(127,179,220,.14); --on-accent: #14202b;
  --bg: #101214; --surface: #191c1f; --surface-2: #202427; --line: #2e3438; --line-soft: #25292d;
  --ink: #eef0f1; --ink-2: #a9aeb2; --ink-3: #878d92; --bar-track: #272c30;
  --coach-bg: #1e2224; --coach-ink: #d2d7da; --owner-bg: #1e2224; --owner-line: #2e3438;
}

body.ds { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }

/* Rahmen: Hauptnavigation .topnav (zk-design) als erste Zeile, darunter der Inhalt mittig */
.bank-logo { font-weight: 600; font-size: 17px; color: var(--ink); }
.bank-haupt { padding: 20px 16px 48px; min-width: 0; }
.bank-haupt-innen { max-width: 1180px; margin-inline: auto; }
@media (min-width: 56rem) { .bank-haupt { padding: 28px 32px 64px; } }

/* Listen und Formulare der neuen Seiten */
.bank-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.bank-liste > li { padding: 12px 0; border-top: 1px solid var(--line); }
.bank-liste > li:first-child { border-top: 0; }
.bank-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 16px; }
.bank-zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bank-aktion { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bank-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 0 0 16px; }
.bank-kopf h1 { margin: 0; }
.bank-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.bank-plus { color: var(--ok); }
.bank-minus { color: var(--danger); }
.bank-leise { color: var(--ink-3); }

.bank-oben { align-items: start; }
.bank-chip { text-decoration: none; }
.bank-name { color: var(--ink); text-decoration: none; display: inline-block; padding-block: 8px; }
.bank-name:hover { color: var(--accent-ink); text-decoration: underline; }
.bank-liste .hbar-track { margin: 8px 0; }

.bank-inline { display: inline; margin: 0 0 0 8px; }
.bank-gruppe { display: grid; gap: 12px; margin-top: 12px; }
.bank-eingabe { flex: 1 1 14rem; min-width: 0; }
.bank-regel { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.bank-regel input { width: 20px; height: 20px; flex: none; }
.bank-betrag { font-size: 15px; font-weight: 600; color: var(--ink); }
@media (max-width: 40rem) { .bank-aktion .btn { flex: 1 1 100%; } }
.bank-aktion .chip { cursor: pointer; }

.bank-haupt-innen .kpi-grid { margin: 0 0 16px; }

.bank-zeile.small { display: flex; flex-wrap: wrap; justify-content: space-between; }
.bank-kopfzeile { flex-wrap: nowrap; }
.bank-kopfzeile .panel-title { min-width: 0; overflow-wrap: anywhere; }
.bank-kopfzeile .bank-betrag { flex: none; }

/* Anmeldung und Meldungen: schmale Spalte */
.bank-schmal { max-width: 30rem; }
.bank-formular { display: grid; gap: 16px; margin-bottom: 16px; }
.bank-formular > * { margin: 0; }
.bank-details { margin: 0; }
.bank-details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.bank-schluessel { font-family: var(--mono); font-size: 18px; letter-spacing: .08em; word-spacing: .4em; overflow-wrap: anywhere; }
.bank-codes { margin: 0; padding-left: 1.5em; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 8px 24px; font-family: var(--mono); font-size: 17px; }
.bank-formular svg { max-width: 14rem; height: auto; }

/* Kontoauszug einlesen (Ablagefeld) und Wahlknoepfe */
.ablage-form { display: grid; gap: 12px; }
.ablage { position: relative; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 24px 16px; border: 2px dashed var(--ink-3); border-radius: var(--r-card); background: var(--surface-2); cursor: pointer; margin: 0; }
.ablage:hover, .ablage.ist-ueber { border-color: var(--accent); background: var(--accent-soft); }
.ablage:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.ablage-text { display: grid; gap: 4px; }
.ablage-link { color: var(--accent-ink); text-decoration: underline; }
.js .ablage-datei { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ablage-name { font-weight: 500; }
.ablage-form > button { justify-self: start; }
.wahlknopf { flex-direction: column; align-items: flex-start; height: auto; min-height: 72px; text-align: left; }
.bank-tabelle { width: 100%; border-collapse: collapse; }
.bank-tabelle th, .bank-tabelle td { padding: 10px 8px; border-top: 1px solid var(--line); text-align: left; }
.bank-tabelle thead th { border-top: 0; color: var(--ink-3); font-weight: 500; font-size: 13px; }
.bank-tabelle .bank-zahl, .bank-tabelle th.bank-zahl { text-align: right; }
.doppelt-paar { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 16px; margin-bottom: 12px; }
.doppelt-seite p { margin: 0 0 4px; }

/* Startseite */
.bank-aufgaben { display: grid; gap: 8px; margin: 8px 0 24px; }
.bank-aufgabe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 12px; }
.bank-aufgabe.ist-warn { border-left: 4px solid var(--warn); }
.bank-aufgabe-text { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1 1 14rem; }
.bank-gross { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bank-abschnitt { margin-top: 24px; display: grid; gap: 12px; }
.bank-abschnitt > h2 { margin: 0; }

/* Abgleich */
.bank-stapel { display: grid; gap: 12px; }
.bank-stapel > * { margin: 0; }
.panel.ist-warn { border-left: 4px solid var(--warn); }
.treffer p { margin: 0 0 8px; }
.treffer h2 { margin: 0 0 8px; }
.treffer-kopf { font-size: 17px; }
.treffer--leise { background: var(--surface-2); }
.treffer-passt { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 8px; }
@media (max-width: 30rem) { .treffer-passt { grid-template-columns: 1fr; } }
.gruende { list-style: none; margin: 0; padding: 0; }
.grund--ja::before { content: "✓ "; color: var(--ok); font-weight: 600; }
.grund--nein::before { content: "– "; color: var(--ink-3); }
.grund--nein { color: var(--ink-3); }
.marke { font-size: 12px; padding: 0 6px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.stufe--sicher { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.stufe--wahrscheinlich { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.stufe--unsicher { background: var(--warn-soft); color: var(--ink); border-color: var(--warn); }
.treffer-aktion { display: flex; gap: 16px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.andere { margin-top: 12px; }
.andere form { display: grid; gap: 8px; margin-top: 8px; }
.andere > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.vorschlag { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 8px; }
.liste-schlicht { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.minus { color: var(--danger); }
.plus { color: var(--ok); }
.nur-js { display: none; }
.js .nur-js { display: inline-flex; }

/* Privat und Betrieb */
.marke--privat { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.marke--betrieb { background: var(--warn-soft); color: var(--ink); border-color: var(--series-4); font-weight: 600; }

/* Hinweiskasten: Fliesstext mit <strong>, <code> und Links bleibt ein Textfluss (zk-design ordnet Kinder eines .notice als Spalten an, weil es ein Symbol davor erwartet) */
.bank-haupt .notice { display: block; }
.bank-haupt .notice code { font-family: var(--mono); font-size: .9em; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); word-break: break-word; }

/* Text nur fuer Screenreader (fehlte seit dem Wegfall von stil.css, fe43188): unsichtbar, aber vorgelesen */
.nur-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
