/* Hallmark · shape: Map / Diagram (draw b5eb1b) · genre: editorial · theme: Garden (assigned, seed b5eb1b; palette per docs/DESIGN.md: cool white, plum ink, bramble accent) · job: sign up · draw: b5eb1b
 * hero: Corridor (one left-aligned column, the counting line set wide beneath it) · nav: slab (light, hairline) · footer: colophon block · imagery: the product itself, built in the hero (counting line, ledger diagram), no photographs · signature: the counting line that really calculates (Gin 0,7 l, +0,35 l and 7,00 € from the preset)
 * axes: light/roman-serif/accent-bramble · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: S, the hero could have been any ledger tool; led with the one gin line that calculates and set the difference in Vollkorn instead of cards */
/* Hallmark · waive 77 · the band holds one real form (email field and button) and is 296px tall, a call to action under 360px as layout.md section 4 allows twice a page · the Tintenband above it is the page's other band, so the action band stays short on purpose */
/* Hallmark · dismissed 58 · copy: verbatim, the hero sentence is fixed by docs/DESIGN.md and stays at two short sentences, 18 words */
/* Hallmark · dismissed render · the shots were retaken through a local server: Vollkorn and Hanken Grotesk answer 200 and report loaded, the warning comes from the preload request the harness cancels on its viewport change, without the preload line the run is clean */

/* tokens.css */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(98.8% 0.003 300); --color-paper-2: oklch(96.3% 0.005 300); --color-paper-3: oklch(93% 0.007 305);
  --color-ink: oklch(21% 0.03 330); --color-ink-2: oklch(32% 0.028 330); --color-muted: oklch(46% 0.02 320);
  --color-rule: oklch(88% 0.008 310); --color-rule-2: oklch(70% 0.014 315);
  --color-on-ink: oklch(97% 0.004 300); --color-on-ink-muted: oklch(78% 0.014 320);
  --color-accent: #7b1e5e; --color-accent-hover: #5e1548; --color-accent-ink: oklch(99% 0.003 300);
  --color-focus: #7b1e5e;
  --color-danger: oklch(47% 0.16 30);
  --color-scrim: oklch(21% 0.03 330 / 0.4);
  --font-display: "Vollkorn", ui-serif, Georgia, serif; --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 4px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.012em; --display-weight: 600;
}

/* fonts.css */
/* Schriften liegen im Projekt (CSP font-src 'self'). Quelle: fontsource, nur latin, woff2, Lizenz OFL (siehe OFL-*.txt). */
@font-face { font-family: "Vollkorn"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/vollkorn-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }

/* base.css */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* hilfe.css */
/* Hilfe-Knopf und Dialog. Eine Datei für die App (app.css importiert sie) und die statischen Seiten (tools/seiten.py hängt sie an).
 * Flach, neutral (weiße Fläche, Rand in Brombeer, dunkle Schrift), kein voller Akzentknopf, damit er die Hauptaktion der Ansicht nicht stört. */
.hl { position: fixed; z-index: var(--z-sticky-nav); right: max(var(--space-md), env(safe-area-inset-right)); bottom: calc(var(--space-md) + env(safe-area-inset-bottom)); margin: 0; }
.hl-knopf { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-accent); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; line-height: 1; cursor: pointer; }
.hl-knopf:hover { background: var(--color-paper-2); }
.hl-knopf:active { background: var(--color-paper-3); }
.hl-knopf:focus-visible, .hl-dlg :focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hl-knopf svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Dialog */
.hl-dlg { width: min(32rem, calc(100% - 2 * var(--space-md))); max-height: calc(100dvh - 2 * var(--space-md)); overflow-y: auto; padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink-2); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.5; }
.hl-dlg::backdrop { background: var(--color-scrim); }
.hl-dlg__in { display: grid; gap: var(--space-md); }
.hl-dlg h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.15; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.hl-dlg p { margin: 0; max-width: 60ch; }
.hl-form { display: grid; gap: var(--space-md); margin: 0; }
.hl-feld { display: grid; gap: var(--space-xs); min-width: 0; }
.hl-feld label { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.hl-feld textarea, .hl-feld input { width: 100%; box-sizing: border-box; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.5; }
.hl-feld input { height: 48px; }
.hl-feld textarea { min-height: 7.5rem; padding-block: var(--space-sm); resize: vertical; }
.hl-feld textarea:hover, .hl-feld input:hover { border-color: var(--color-ink); }
.hl-feld [aria-invalid="true"] { border-color: var(--color-danger); outline: 1px solid var(--color-danger); }
.hl-hinweis { font-size: var(--text-sm); color: var(--color-muted); }
.hl-fehler { display: flex; align-items: flex-start; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-danger); }
.hl-fehler svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hl-dlg [hidden] { display: none !important; }
.hl-aktionen { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-sm); margin-top: var(--space-xs); }
.hl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1; cursor: pointer; }
.hl-btn:hover { border-color: var(--color-ink); }
.hl-btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.hl-btn--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.hl-btn[disabled] { cursor: progress; opacity: 0.7; }
.hl-danke { display: flex; align-items: flex-start; gap: var(--space-sm); padding: var(--space-md) 0; border-top: var(--rule-hair) solid var(--color-rule-2); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); }
.hl-danke svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hl-danke div { display: grid; gap: var(--space-2xs); }

/* Am Handy über der festen Leiste unten (nur in der App) */
@media (max-width: 60rem) {
  .hl--tab { bottom: calc(var(--tab-h, 72px) + env(safe-area-inset-bottom) + var(--space-sm)); }
  /* Zählansichten: eigene Leiste, die Inhalt nie überdeckt (die Seite lässt unten Platz dafür) */
  .hl--leiste { left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; padding: var(--space-xs) max(var(--space-md), env(safe-area-inset-right)) calc(var(--space-xs) + env(safe-area-inset-bottom)) var(--space-md); background: var(--color-paper); border-top: var(--rule-hair) solid var(--color-rule); }
  .hl--leiste.hl--tab { bottom: calc(var(--tab-h, 72px) + env(safe-area-inset-bottom)); padding-bottom: var(--space-xs); }
}
@media (prefers-reduced-motion: no-preference) { .hl-knopf { transition: background-color var(--dur-micro) var(--ease-out); } }
@media print { .hl, .hl-dlg { display: none !important; } }

/* seiten.css */

body { font-variant-numeric: lining-nums; color: var(--color-ink-2); }
h1, h2, h3, .ink { color: var(--color-ink); }
a:hover { text-decoration-color: var(--color-accent); }
.num { font-variant-numeric: lining-nums tabular-nums; }

/* Knöpfe: flach, 4 px, ein voller Akzentknopf je Ansicht */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.btn:hover { border-color: var(--color-ink); }
.btn:active { background: var(--color-paper-2); }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn--primary:active { background: var(--color-accent-hover); }
.btn--sm { min-height: 44px; padding: 0 var(--space-md); }
.btn[disabled], button[disabled] { cursor: not-allowed; color: var(--color-muted); border-color: var(--color-rule); }

/* Nav: Slab, hell mit Haarlinie */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__in { display: flex; align-items: center; gap: var(--space-xl); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav__links { display: flex; gap: var(--space-lg); margin-right: auto; }
.nav__links a, .nav__login { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: var(--text-md); color: var(--color-ink); text-decoration: none; }
.nav__links a:hover, .nav__login:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; }
.nav__act { display: flex; align-items: center; gap: var(--space-lg); margin-left: auto; }
.nav__links + .nav__act { margin-left: 0; }

/* Hero: Corridor */
.hero { padding-block: var(--space-2xl) var(--space-2xl); }
.hero h1 { max-width: 26ch; font-size: clamp(2.75rem, 3vw + 2rem, 5.5rem); line-height: 1; }
.hero .lead { margin-top: var(--space-lg); max-width: 62ch; color: var(--color-ink-2); }
.zielgruppe { margin-top: var(--space-sm); max-width: 62ch; font-size: var(--text-sm); color: var(--color-muted); }
.probe-hinweis { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }

/* Zählzeile (Signatur) */
.zeile { margin-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule-2); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.zeile__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.zeile__titel { max-width: none; padding-top: var(--space-lg); font-family: var(--font-body); letter-spacing: 0; line-height: 1.3; font-size: var(--text-md); font-weight: 600; color: var(--color-ink); }
.zeile__erklaerung { max-width: 70ch; padding-bottom: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.zeile dl, .zeile dd, .zeile dt { margin: 0; }
.zeile__fakten { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.fakt { grid-column: span 2; min-width: 0; }
.fakt--ware, .fakt--kasse { grid-column: span 4; }
.fakt dt, .label { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.fakt dd { margin-top: var(--space-2xs); font-size: var(--text-lg); font-weight: 500; color: var(--color-ink); line-height: 1.3; }
.fakt dd.ware { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); letter-spacing: var(--tracking-display); line-height: 1.15; }
.fakt dd.klein { font-size: var(--text-md); font-weight: 400; color: var(--color-ink-2); margin-top: 0; }
.eingabe { grid-column: span 5; min-width: 0; margin: 0; border: 0; padding: var(--space-lg) 0; }
.eingabe legend { float: left; width: 100%; margin-bottom: var(--space-md); padding: 0; font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.eingabe__zeile { clear: both; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-lg) var(--space-xl); margin-top: var(--space-sm); }
.feld { display: block; }
.feld > .label { display: block; margin-bottom: var(--space-xs); }
.stepper { display: inline-flex; align-items: stretch; }
.stepper button { width: 52px; height: 52px; padding: 0; border: var(--rule-hair) solid var(--color-muted); background: var(--color-paper); color: var(--color-ink); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.stepper button:first-child { border-radius: var(--radius-card) 0 0 var(--radius-card); }
.stepper button:last-child { border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.stepper button:hover:not([disabled]) { border-color: var(--color-ink); }
.stepper button:active:not([disabled]) { background: var(--color-paper-2); }
.stepper input { border-radius: 0; border-inline: 0; }
.zahlfeld { width: 76px; height: 52px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-size: 1.375rem; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.stepper .zahlfeld { width: 68px; text-align: center; }
.zahlfeld:hover { border-color: var(--color-ink); }
.suffix { display: inline-flex; align-items: center; gap: var(--space-sm); }
.suffix span { font-size: var(--text-md); color: var(--color-muted); }
.zahlfeld[aria-invalid="true"] { border-color: var(--color-ink); outline: 2px solid var(--color-ink); outline-offset: 0; }
.fehler { min-height: 1.4em; margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.ergebnis { grid-column: 6 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-lg) var(--space-xl); padding: var(--space-lg) 0 var(--space-lg) var(--space-xl); border-left: var(--rule-hair) solid var(--color-rule); }
.ergebnis__werte { display: grid; gap: 0; }
.ergebnis__werte > div { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
.ergebnis__werte > div:last-child { border-bottom: 0; }
.ergebnis__werte dt { font-size: var(--text-md); font-weight: 400; color: var(--color-muted); }
.ergebnis__werte dd { margin: 0; font-size: var(--text-lg); font-weight: 500; color: var(--color-ink); font-variant-numeric: lining-nums tabular-nums; }
.ergebnis__euro { text-align: right; }
.ergebnis__euro .label { display: block; }
.ergebnis__euro output { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(3.25rem, 2vw + 2.5rem, 5.5rem); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.hinweis { grid-column: 1 / -1; font-size: var(--text-md); color: var(--color-ink-2); max-width: none; }

@media (max-width: 60rem) {
  .nav__in { gap: var(--space-lg); }
  .nav__links { gap: var(--space-md); }
  .hero { padding-block: var(--space-xl) var(--space-xl); }
  .zeile { margin-top: var(--space-xl); }
  .fakt, .fakt--ware, .fakt--kasse { grid-column: span 4; }
  .fakt--ware { grid-column: 1 / -1; }
  .zeile__fakten { row-gap: var(--space-md); }
  .eingabe { grid-column: 1 / -1; }
  .ergebnis { grid-column: 1 / -1; padding: var(--space-lg) 0; border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
}
@media (max-width: 40rem) {
  .nav__in { gap: var(--space-md); }
  .nav__links, .nav__act .btn { display: none; }
  .hero .lead { margin-top: var(--space-md); }
  .actions { margin-top: var(--space-lg); }
  .actions .btn { flex: 1 1 100%; }
  .fakt, .fakt--kasse { grid-column: span 4; }
  .fakt--ware { grid-column: 1 / -1; }
  .fakt dd { font-size: var(--text-md); }
  .ergebnis { grid-template-columns: 1fr; }
  .ergebnis__euro { text-align: left; order: -1; }
  .eingabe__zeile { gap: var(--space-lg); }
}

/* Gemeinsame Abschnitte */
.diagramm, .fragen { padding-block: var(--section-gap-s); }
.kopf h2 { max-width: 20ch; }
.kopf .lead { margin-top: var(--space-md); }
.fragen { padding-block: var(--section-gap-s); }

/* Diagramm: zwei Rechnungen münden in die Differenz */
.rechnung { display: grid; grid-template-columns: minmax(0, 1fr) 56px auto; grid-template-rows: auto auto; margin-top: var(--space-2xl); column-gap: 0; }
.rzeile { grid-column: 1; display: flex; align-items: stretch; gap: var(--space-md); margin: 0; padding: var(--space-lg) 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule-2); }
.rzeile:nth-of-type(2) { border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.term { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; flex: 1 1 0; }
.term__name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.15; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.term__wert { font-size: var(--text-lg); font-weight: 500; color: var(--color-ink); }
.term__art { font-size: var(--text-sm); color: var(--color-muted); }
.term--ergebnis { padding-left: var(--space-md); border-left: var(--rule-hair) solid var(--color-rule-2); }
.op { display: flex; align-items: flex-start; font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1; color: var(--color-muted); }
.klammer { grid-column: 2; grid-row: 1 / 3; margin-block: 80px; border-top: 2px solid var(--color-ink-2); border-bottom: 2px solid var(--color-ink-2); border-right: 2px solid var(--color-ink-2); }
.diff { grid-column: 3; grid-row: 1 / 3; align-self: center; display: flex; flex-direction: column; gap: var(--space-xs); padding-left: var(--space-lg); max-width: 320px; }
.diff__name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-section); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.diff__wert { font-family: var(--font-display); font-weight: 600; font-size: var(--text-display-s); line-height: 1; color: var(--color-ink); }

/* Fragen als Zeilen */
.fragen__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.fragen__grid h2 { grid-column: 1 / span 4; max-width: 12ch; }
.fragen__liste { grid-column: 6 / -1; border-top: var(--rule-hair) solid var(--color-rule-2); }
details { border-bottom: var(--rule-hair) solid var(--color-rule); }
summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; padding-block: var(--space-md); font-family: var(--font-display); font-weight: 600; font-size: var(--text-title); letter-spacing: var(--tracking-display); color: var(--color-ink); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-family: var(--font-body); font-weight: 400; font-size: 1.5rem; color: var(--color-muted); }
details[open] summary::after { content: "\2212"; }
summary:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); max-width: 60ch; }

/* Tintenband: Tinte, nicht Brombeer */
.band-tinte { padding-block: var(--section-gap-s); background: var(--color-ink); color: var(--color-on-ink); }
.band-tinte p { max-width: none; font-family: var(--font-display); font-weight: 600; font-size: var(--text-display); line-height: 1.05; letter-spacing: var(--tracking-display); color: var(--color-on-ink); }

/* Aktion als Band */
.start { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.start__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; row-gap: var(--space-lg); }
.start__grid h2 { grid-column: 1 / span 6; font-size: var(--text-3xl); }
.start__form { grid-column: 8 / -1; }
.start__zeile { display: flex; gap: var(--space-md); margin-top: var(--space-xs); }
.textfeld { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); }
.textfeld:hover { border-color: var(--color-ink); }
.start .btn { white-space: nowrap; }

/* Fuß: Kolophon-Block */
.fuss { padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.fuss__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); }
.fuss__text { grid-column: 1 / span 7; display: grid; gap: var(--space-md); justify-items: start; }
.fuss__text p { font-size: var(--text-md); color: var(--color-ink-2); }
.fuss__links { grid-column: 9 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; margin-left: calc(-1 * var(--space-sm)); }
.fuss__links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-sm); color: var(--color-ink); }
.fuss__links a[href^="mailto:"] { flex-basis: 100%; }

@media (max-width: 60rem) {
  .rechnung { grid-template-columns: minmax(0, 1fr); }
  .rzeile { flex-wrap: wrap; row-gap: var(--space-md); }
  .rzeile:nth-of-type(2) { border-bottom: 0; }
  .term { flex: 1 1 8rem; }
  .op { flex: none; }
  .klammer { display: none; }
  .diff { grid-column: 1; grid-row: auto; padding: var(--space-lg) 0 0; border-top: var(--rule-hair) solid var(--color-rule-2); max-width: none; }
  .fragen__grid h2, .fragen__liste { grid-column: 1 / -1; }
  .fragen__grid h2 { margin-bottom: var(--space-lg); }
  .start__grid h2, .start__form { grid-column: 1 / -1; }
  .fuss__text, .fuss__links { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .start__zeile { flex-direction: column; }
  .start__zeile .btn { width: 100%; }
  .rzeile { flex-direction: column; align-items: stretch; gap: var(--space-xs); }
  .term { flex: none; }
  .op { padding-left: 0; line-height: 1; }
  .term--ergebnis { border-left: 0; padding-left: 0; padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
}

/* Sprunglink, Zählen und Auswertung (Abschnitte 4 und 5), Rechtsseiten, 404 */
.skip { position: absolute; left: var(--space-md); top: -4rem; z-index: var(--z-modal); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); background: var(--color-ink); color: var(--color-on-ink); }
.skip:focus { top: var(--space-md); }
.zaehlen, .auswertung { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.zaehlen__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: center; }
.zaehlen__text { grid-column: 1 / span 6; }
.zaehlen__text h2 { max-width: 16ch; }
.zaehlen__text .lead { margin-top: var(--space-lg); max-width: 46ch; }
.foto { margin: 0; }
.foto img { border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); background: var(--color-paper); }
.foto--handy { grid-column: 8 / span 5; width: 100%; max-width: 390px; justify-self: end; }
.auswertung__kopf .lead { margin-top: var(--space-lg); max-width: 62ch; }
.auswertung__fotos { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); margin-top: var(--space-2xl); }
.foto--breit { max-width: 1100px; }
.foto figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 60rem) {
  .zaehlen__text, .foto--handy { grid-column: 1 / -1; }
  .foto--handy { justify-self: start; }
  .auswertung__fotos { margin-top: var(--space-xl); gap: var(--space-xl); }
}
.seite { padding-block: var(--space-2xl) var(--section-gap-s); }
.seite__inner { max-width: 46rem; display: grid; gap: var(--space-md); }
.seite h1 { max-width: none; font-size: var(--text-section); margin-bottom: var(--space-sm); }
.prosa { display: grid; gap: var(--space-md); }
.prosa h2 { max-width: none; margin-top: var(--space-lg); font-size: var(--text-2xl); line-height: 1.15; }
.prosa p, .prosa li { max-width: 65ch; }
.prosa ul, .prosa ol { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-xs); }
.prosa a { color: var(--color-accent); }
.prosa .stand { color: var(--color-muted); }
.prosa table { width: 100%; border-collapse: collapse; line-height: 1.4; }
.prosa th, .prosa td { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; text-align: left; vertical-align: top; border-bottom: var(--rule-hair) solid var(--color-rule); }
.prosa th { font-weight: 600; color: var(--color-ink); border-bottom-color: var(--color-ink); }
.prosa code { font-size: 0.95em; }
@media (max-width: 40rem) {
  .prosa table, .prosa tbody, .prosa tr, .prosa td, .prosa thead, .prosa th { display: block; }
  .prosa thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prosa tr { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .prosa td { border: 0; padding: 0; }
  .prosa td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--color-ink); }
}
.nichtda { display: grid; gap: var(--space-md); justify-items: start; }
.nichtda h1 { font-size: var(--text-section); max-width: 20ch; }
.nichtda .actions { margin-top: var(--space-md); }
.fuss__text .brand { margin-bottom: var(--space-xs); }
.nav__links a:focus-visible, .brand:focus-visible, summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.diagramm__text { margin-top: var(--space-xl); max-width: 65ch; color: var(--color-ink-2); }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; }

/* Hilfe-Knopf (frontend/src/hilfe.css) schwebt unten rechts: die Fußzeile lässt ihm Platz */
.fuss { padding-bottom: calc(var(--space-2xl) + var(--space-md) + env(safe-area-inset-bottom)); }
