/* Hofbüro – Ergänzungen zur Oberfläche (Buchhaltung, Auswertungen, Einkommensteuer) */
.hof-brand { display: flex; align-items: center; gap: 10px; }
.hof-brand b { font-size: 24px; letter-spacing: -.01em; }
.side-brand img { background: none; border-radius: 8px; }
.wrap-gap { flex-wrap: wrap; gap: 8px 10px; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.card-sub { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface-2); }
.check-field { justify-content: flex-end; }
.check-field input[type=checkbox] { margin: 8px 0; }

/* Summenzeilen (EÜR, Umsatzsteuer, Rechenweg) */
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; font-size: 14px; }
.sum-row > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.sum-row.strong { font-weight: 700; border-top: 1px solid var(--line); padding-top: 7px; margin-top: 3px; }
.sum-row.total { font-size: 16px; border-top: 2px solid var(--text); }
.sum-row.click { cursor: pointer; border-radius: 6px; }
.sum-row.click:hover { background: var(--surface-2); }
.sum-row.e2 { padding-left: 18px; font-size: 13px; color: var(--muted); }
.sum-row.e1 { padding-left: 8px; }
.sum-row.e0 { font-weight: 650; }
.kz { display: inline-block; min-width: 30px; margin-right: 6px; padding: 0 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent);
  font: 600 11.5px/18px var(--mono); text-align: center; }
.euer-posten { margin: 2px 0 8px 36px; padding: 6px 10px; border-left: 2px solid var(--line); display: grid; gap: 3px; }
.steps { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* Monatsbalken auf der Übersicht */
.mbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 150px; }
.mbar { display: flex; flex-direction: column; height: 100%; }
.mbar-pair { flex: 1; display: flex; align-items: flex-end; gap: 2px; }
.mbar-pair span { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; }
.ein { background: var(--accent); }
.aus { background: var(--amber); }
.mbar-l { text-align: center; font-size: 11px; color: var(--muted); margin-top: 4px; }
.legend { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; }
.legend.ein { background: var(--accent); }
.legend.aus { background: var(--amber); }

/* Kontoauszüge */
.umsatz { align-items: flex-start; }
.umsatz-buchen { margin-top: 8px; gap: 6px 8px; flex-wrap: wrap; }
.umsatz-buchen select { padding-top: 6px; padding-bottom: 6px; }
.tbl.teile td { vertical-align: middle; }

/* Einkommensteuer */
.est-split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr); gap: 16px; align-items: start; }
.est-split .grid3 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.est-split .grid4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.est-result { position: sticky; top: 12px; }
.est-big { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.est-big span { font-weight: 600; color: var(--muted); }
.est-big b { font-size: 30px; font-variant-numeric: tabular-nums; }
.est-big.nach b { color: var(--danger); }
.est-big.erst b { color: var(--ok); }
.est-art { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.je-person { display: grid; grid-template-columns: minmax(160px, 1.2fr) repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 12px; align-items: end; }
@media (max-width: 1000px) {
  .est-split { grid-template-columns: 1fr; }
  .est-result { position: static; }
}
@media (max-width: 700px) {
  .je-person { grid-template-columns: 1fr 1fr; }
  .je-person > :first-child { grid-column: 1 / -1; }
  .mbars { gap: 3px; height: 120px; }
}

/* Zweispaltig: Formular links, Zusammenfassung rechts */
.split2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.split2 > * { min-width: 0; }
@media (max-width: 900px) { .split2 { grid-template-columns: 1fr; } }

/* Zwei-Faktor-Anmeldung */
.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr { background: #fff; padding: 10px; border-radius: 8px; width: 200px; height: 200px; }
.qr svg { width: 100%; height: 100%; }
.notfallcodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 8px; }

/* Drucken (Cmd+P): immer hell, einspaltig, ohne Bedienelemente */
@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #f4f4f4; --text: #000; --muted: #444; --faint: #666;
    --line: #ccc; --line-strong: #999; --accent: #1f5a2b; --accent-soft: #e8f0e6; --shadow: none; }
  body { background: #fff; }
  .shell, .shell-body { display: block; }
  .split2, .est-split { display: block; }
  .split2 > *, .est-split > * { margin-bottom: 12px; }
  .est-result { position: static; }
  .card { break-inside: avoid; box-shadow: none; }
  .notice { border: 1px solid #ccc; }
  input, select, textarea { border: 0; padding: 0; background: none; }
  .no-print { display: none !important; }
}
