/* Steuer-Report: hell, ruhig, druckoptimiert (A4). */
:root { --ink: #111318; --muted: #565b66; --line: #cfd2d8; --soft: #f3f4f6; --lime: #c8f169; --warn: #8a5a00; --warn-bg: #fff6df; --bad: #a32929; --good: #17703f; }
* { box-sizing: border-box; }
body { margin: 0; background: #e9eaed; color: var(--ink); font: 11pt/1.45 "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.toolbar-screen { max-width: 210mm; margin: 14px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 0 4px; }
.toolbar-screen .rbtn { text-align: center; }
.rbtn { background: var(--lime); color: var(--ink); border: 0; border-radius: var(--radius-sm, 12px); padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.rbtn.secondary { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.sheet { max-width: 210mm; margin: 12px auto 40px; background: #fff; padding: 16mm 14mm; box-shadow: 0 6px 30px rgba(0,0,0,.12); }
h1 { font-size: 20pt; line-height: 1.15; margin: 0 0 2px; letter-spacing: -.02em; }
h2 { font-size: 13pt; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--ink); break-after: avoid; }
p { margin: 0 0 8px; }
.sub { color: var(--muted); margin-bottom: 14px; }
.brandline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-weight: 800; letter-spacing: -.03em; }
.brandline .mark { display: inline-flex; align-items: center; gap: 8px; }
.brandline svg { height: 28px; width: auto; }
.brandline small { font-weight: 500; color: var(--muted); letter-spacing: 0; }
table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
th, td { text-align: left; padding: 5px 7px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-size: 8.5pt; font-weight: 700; color: var(--muted); hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr { break-inside: avoid; }
/* Breite Tabellen bleiben im Blatt: kompakter gesetzt, auf kleinen Bildschirmen innen scrollbar */
.tablewrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.wide { font-size: 8pt; }
table.wide th, table.wide td { padding: 4px 4px; }
table.wide th { font-size: 7.5pt; line-height: 1.25; }
table.wide td { overflow-wrap: break-word; }
table.fixed { table-layout: fixed; }
th.num { white-space: normal; }
thead { display: table-header-group; }
.meta td { border-bottom: 1px solid var(--line); }
.meta td:first-child { width: 38%; color: var(--muted); }
.sum td { font-weight: 700; background: var(--soft); }
.result td { font-weight: 800; font-size: 11pt; border-top: 2px solid var(--ink); background: #f5fbe4; }
.note { border: 1px solid var(--line); border-left: 4px solid var(--ink); background: var(--soft); padding: 8px 10px; font-size: 9.5pt; margin: 8px 0; break-inside: avoid; }
.note.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.note.bad { border-left-color: var(--bad); }
.note.good { border-left-color: var(--good); }
ul.plain { margin: 4px 0 8px; padding-left: 18px; }
ul.plain li { margin-bottom: 3px; }
.small { font-size: 9pt; color: var(--muted); }
.neg { color: var(--bad); }
.sign { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sign div { border-top: 1px solid var(--ink); padding-top: 4px; font-size: 9pt; color: var(--muted); }
.pagebreak { break-before: page; }
.footer-note { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 8.5pt; color: var(--muted); }

@page { size: A4; margin: 14mm 12mm; }
@media print {
  .tablewrap { overflow: visible; }
  body { background: #fff; }
  .toolbar-screen { display: none; }
  .sheet { margin: 0; padding: 0; box-shadow: none; max-width: none; }
  a { color: inherit; text-decoration: none; }
}
@media (max-width: 700px) {
  .sheet { padding: 12px; }
  table { font-size: 8.5pt; }
  table.wide { min-width: 560px; }
  table.wide.fixed { min-width: 760px; }
}
