/* elterngeld.fyi – Designsystem angelehnt an hauskaufrechner.com */
@font-face { font-family: 'Archivo'; src: url('/assets/archivo.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f8f6; --surface: #ffffff; --ink: #1a2b26; --ink-2: #4a5c56; --ink-3: #6b7a75;
  --line: #d5ddd9; --line-soft: #e8edea; --pine: #1e8460; --pine-ink: #176a4d; --ochre: #c98a00;
  --slate: #5468cc; --rose: #b8577a; --sage: #8fb8a6; --equity: #a9b6b0; --debt: #2a3d37;
  --warn-bg: #fdf4dc; --warn-ink: #6b4a00; --info-bg: #eaf3ef; --info-ink: #24493d; --focus: #1e8460;
  --radius: 10px;
  --step--1: 0.875rem; --step-0: 1rem; --step-1: 1.25rem; --step-2: 1.625rem; --step-3: 2.25rem; --step-4: 3.25rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141c19; --surface: #1b2521; --ink: #e8efec; --ink-2: #b4c2bc; --ink-3: #8c9b95;
    --line: #34433d; --line-soft: #26322e; --pine: #2fa77a; --pine-ink: #5cc59b; --ochre: #b8860f;
    --slate: #7383e0; --rose: #d27f9d; --sage: #4f7b69; --equity: #5d6c66; --debt: #c9d6d0;
    --warn-bg: #3a2f12; --warn-ink: #f1d48a; --info-bg: #1f2e28; --info-ink: #b9dccd; --focus: #5cc59b;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.55 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
a { color: var(--pine-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -0.01em; font-size: 1.0625rem; white-space: nowrap; }
.brand svg { width: 1.5rem; height: 1.5rem; flex: none; }
.brand span b { color: var(--pine-ink); font-weight: 750; }
.nav { display: flex; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: var(--step--1); white-space: nowrap; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--pine); }
@media (max-width: 719px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0.25rem 1rem; padding-top: 0.75rem; padding-bottom: 0.5rem; }
  .nav { margin-left: 0; width: 100%; }
}

.intro { padding: 2rem 0 1.5rem; max-width: 48rem; }
.intro h1 { font-size: clamp(1.75rem, 4.5vw, var(--step-3)); line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 0.625rem; }
.intro p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; max-width: 42rem; }
.stand { display: inline-block; margin-top: 0.75rem; font-size: var(--step--1); color: var(--ink-3); }
.crumbs { font-size: var(--step--1); color: var(--ink-3); margin: 1.25rem 0 -0.75rem; }
.crumbs a { color: var(--ink-3); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.crumbs li + li::before { content: '/'; margin-right: 0.25rem; }

/* Rechner-Layout */
.tool { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; padding-bottom: 3rem; }
@media (min-width: 1000px) {
  .tool { grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.9fr); gap: 3rem; }
  .result { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; scrollbar-width: thin; }
}

/* Formular */
.form fieldset { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.form legend { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; padding: 0; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.form legend .tag { font-size: 0.6875rem; }
.lead { margin: -0.375rem 0 0.875rem; color: var(--ink-3); font-size: var(--step--1); }
.fields { display: grid; gap: 0.875rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields + .fields, .fields + .mehr, .quellen + .fields, .fields + .quellen { margin-top: 0.875rem; }
.field { min-width: 0; }
.field.full, .fields > .full { grid-column: 1 / -1; }
@media (max-width: 459px) { .fields { grid-template-columns: 1fr; } }
.field > label, .field > .label { display: block; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); margin-bottom: 0.3125rem; }
.input { position: relative; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; transition: border-color 0.15s; }
.input:hover { border-color: var(--ink-3); }
.input:focus-within { border-color: var(--pine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pine) 22%, transparent); }
.input input, .input select { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.0625rem; font-weight: 550; padding: 0.6875rem 0.75rem; outline: none; font-variant-numeric: tabular-nums; }
.input input::placeholder { color: var(--ink-3); font-weight: 400; }
.input select { appearance: none; padding-right: 2rem; cursor: pointer; font-weight: 500; }
.input.select::after { content: ''; position: absolute; right: 0.875rem; top: 50%; width: 0.45rem; height: 0.45rem; border: solid var(--ink-3); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.input select option { background: var(--surface); color: var(--ink); }
.input .unit { padding-right: 0.75rem; color: var(--ink-3); font-size: 0.9375rem; pointer-events: none; white-space: nowrap; }
.input input[type="month"], .input input[type="date"] { min-height: 2.875rem; width: 100%; }
.input.big input { font-size: 1.375rem; font-weight: 700; padding: 0.75rem 0.875rem; }
.calc { display: block; font-size: var(--step--1); color: var(--ink-3); margin-top: 0.25rem; line-height: 1.4; }
.check { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.9375rem; cursor: pointer; line-height: 1.4; }
.check input { width: 1.125rem; height: 1.125rem; accent-color: var(--pine); margin: 0.125rem 0 0; flex: none; }

/* Segment-Auswahl */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--surface); }
.seg button { font: inherit; font-size: var(--step--1); font-weight: 600; border: 0; background: transparent; color: var(--ink-2); padding: 0.4375rem 0.75rem; border-radius: 6px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg.voll { display: flex; }
.seg.voll button { flex: 1; }

/* Aufklappbare Zusatzangaben */
.mehr { border-top: 1px solid var(--line-soft); margin-top: 1rem; }
.mehr > summary { cursor: pointer; list-style: none; padding: 0.75rem 0 0.25rem; font-size: 0.9375rem; font-weight: 600; color: var(--pine-ink); display: flex; align-items: center; gap: 0.5rem; }
.mehr > summary::-webkit-details-marker { display: none; }
.mehr > summary::before { content: '+'; display: inline-grid; place-items: center; width: 1.125rem; height: 1.125rem; border: 1px solid currentColor; border-radius: 4px; font-size: 0.875rem; line-height: 1; }
.mehr[open] > summary::before { content: '−'; }
.mehr > summary small { color: var(--ink-3); font-weight: 400; }
.mehr > .fields { margin-top: 0.75rem; }

/* Einkommensquellen */
.quellen { display: grid; gap: 0.75rem; }
.quelle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.875rem 1rem 0.5rem; }
.quelle-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.625rem; }
.quelle-kopf b { font-size: 0.9375rem; font-weight: 650; }
.quelle .input { background: var(--paper); }
.quelle .mehr { margin-top: 0.75rem; }
.linkbtn { font: inherit; font-size: var(--step--1); color: var(--ink-3); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.linkbtn:hover { color: var(--ink); }
.add { justify-self: start; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; text-decoration: none; border-radius: 8px; padding: 0.5625rem 0.9375rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background-color 0.15s, border-color 0.15s; }
.btn:hover { border-color: var(--ink-3); }
.btn-primary { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-ink); border-color: var(--pine-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #0d1a15; } }
.toast { font-size: var(--step--1); color: var(--pine-ink); align-self: center; min-height: 1.2em; }

/* Ergebniskarte */
.result { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; transition: opacity 0.2s; }
.result[aria-busy="true"] { opacity: 0.55; }
.result h2 { font-size: var(--step-0); font-weight: 600; color: var(--ink-2); margin: 0; display: flex; justify-content: space-between; gap: 1rem; }
.result h2 .rechnet { font-weight: 500; color: var(--ink-3); font-size: var(--step--1); }
.rate { font-size: clamp(2.5rem, 7vw, var(--step-4)); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin: 0.375rem 0 0.25rem; }
.rate small { font-size: 1.125rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-left: 0.25rem; }
.rate-sub { color: var(--ink-2); font-size: 0.9375rem; margin: 0 0 1.25rem; }
.empfehlung { border: 1px solid color-mix(in srgb, var(--pine) 45%, var(--line)); background: color-mix(in srgb, var(--pine) 8%, var(--surface)); border-radius: var(--radius); padding: 0.875rem 1rem; margin: 0 0 1.25rem; }
.empfehlung .kicker { font-size: 0.75rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pine-ink); }
.verdict { font-size: var(--step-1); font-weight: 700; line-height: 1.3; margin: 0.25rem 0; letter-spacing: -0.01em; }
.empfehlung p { margin: 0.25rem 0 0; font-size: 0.9375rem; color: var(--ink-2); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 650; padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--pine); color: #fff; vertical-align: middle; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag { color: #0d1a15; } }
.tag.neutral, :root .tag.neutral { background: var(--line-soft); color: var(--ink-2); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.neutral { color: var(--ink-2); } }

/* Zeitleiste der Lebensmonate */
.plan { margin: 0 0 1.25rem; }
.plan-kopf { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-3); margin-bottom: 0.375rem; }
.plan-zeile { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.5rem; align-items: center; margin-bottom: 0.25rem; }
.plan-name { font-size: var(--step--1); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.plan-zellen { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
.lm { height: 1.125rem; border-radius: 3px; background: var(--line-soft); }
.lm.b { background: var(--pine); }
.lm.p { background: var(--sage); }
.lm.ptz { background: repeating-linear-gradient(135deg, var(--sage) 0 4px, color-mix(in srgb, var(--sage) 55%, var(--surface)) 4px 8px); }
.lm.pb { background: var(--ochre); }
.lm.ez { background: var(--equity); }
.lm.tz { background: repeating-linear-gradient(135deg, var(--equity) 0 4px, var(--line-soft) 4px 8px); }
.lm.arbeit { background: transparent; box-shadow: inset 0 0 0 1px var(--line-soft); }
.plan-achse { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.5rem; font-size: 0.6875rem; color: var(--ink-3); }
.plan-achse div { display: flex; justify-content: space-between; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0; margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 0.375rem; }
.legend .lm { width: 0.75rem; height: 0.75rem; display: inline-block; }

.facts { margin: 0; display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--line-soft); }
.facts > div { display: contents; }
.facts dt, .facts dd { padding: 0.5625rem 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.facts dt { color: var(--ink-2); font-size: 0.9375rem; display: flex; align-items: center; gap: 0.5rem; }
.facts dt small { display: block; color: var(--ink-3); font-size: 0.8125rem; }
.facts dd { text-align: right; font-weight: 650; padding-left: 1rem; white-space: nowrap; }
.facts .sub dt { padding-left: 1.125rem; font-size: var(--step--1); color: var(--ink-3); }
.facts .sub dd { font-weight: 450; font-size: var(--step--1); color: var(--ink-2); }
.facts .total dt { color: var(--ink); font-weight: 650; }
.facts .total dd { font-weight: 800; }
.pos { color: var(--pine-ink); }
.neg { color: #b0412e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .neg { color: #e2826d; } }
.sw { width: 0.625rem; height: 0.625rem; border-radius: 2px; flex: none; }

.notes { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.notes li { background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 0.625rem 0.75rem; font-size: var(--step--1); line-height: 1.45; }
.notes li.info { background: var(--info-bg); color: var(--info-ink); }
.notes:empty { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.next { list-style: none; padding: 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line-soft); }
.next li { border-bottom: 1px solid var(--line-soft); }
.next a { display: block; padding: 0.625rem 0; font-size: 0.9375rem; font-weight: 550; text-decoration: none; }
.next a:hover { text-decoration: underline; }

/* Abschnitte unter dem Rechner */
.block { padding: 2.5rem 0 0.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.875rem; }
.section-head h2 { font-size: var(--step-2); font-weight: 750; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.section-head p { margin: 0; color: var(--ink-3); font-size: var(--step--1); max-width: 40rem; }
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.5rem; }
.schritte { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0; }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 2rem 10rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line-soft); }
.schritte li:last-child { border-bottom: 0; }
.schritte li::before { content: counter(s); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 0.8125rem; font-weight: 700; }
.schritte .wann { font-weight: 650; font-size: 0.9375rem; padding-top: 0.125rem; }
.schritte .was { color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 719px) { .schritte li { grid-template-columns: 2rem minmax(0, 1fr); } .schritte .was { grid-column: 2; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { padding: 0.625rem 0.875rem; text-align: right; vertical-align: top; }
th:first-child, td:first-child { text-align: left; }
td.text, th.text { text-align: left; }
thead th { background: var(--surface); font-size: var(--step--1); font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr + tr td { border-top: 1px solid var(--line-soft); }
tbody tr.best td { background: color-mix(in srgb, var(--pine) 9%, transparent); }
td.muted, .muted { color: var(--ink-3); }
td .klein, .klein { font-size: 0.8125rem; color: var(--ink-3); }
td { white-space: nowrap; }
td.wrap-text { white-space: normal; min-width: 14rem; }
.table-note { font-size: var(--step--1); color: var(--ink-3); margin: 0.5rem 0 0; }
.mehr-zeilen { margin-top: 0.75rem; }

.bp-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .bp-grid.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bp h3 { font-size: var(--step-1); margin: 0 0 0.5rem; }
.bp p { color: var(--ink-2); margin: 0 0 1rem; font-size: 0.9375rem; }
.bp .vergleich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.bp .vergleich div { border-top: 2px solid var(--ink); padding-top: 0.5rem; }
.bp .vergleich b { display: block; font-size: var(--step-1); font-weight: 750; }
.bp .vergleich span { color: var(--ink-3); font-size: var(--step--1); }

.chart-wrap { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 0.75rem 0.5rem; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 11px; font-family: inherit; }
.chart .geburt { stroke: var(--ink-3); stroke-dasharray: 3 3; }
.chart .geburt-label { fill: var(--ink-2); font-size: 11px; font-weight: 600; }
.chart rect.hover { fill: var(--ink); fill-opacity: 0.06; }
.chart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0; margin: 0 0 0.5rem 0.25rem; font-size: var(--step--1); color: var(--ink-2); }
.chart-legend li { display: flex; align-items: center; gap: 0.5rem; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); border-radius: 8px; padding: 0.5rem 0.625rem; font-size: 0.8125rem; line-height: 1.45; white-space: nowrap; transform: translate(-50%, -100%); z-index: 2; }
.tip b { font-weight: 700; }

.rechenweg { display: grid; gap: 1.5rem; }
.rechenweg h3 { font-size: var(--step-1); margin: 0 0 0.5rem; }
.leer { color: var(--ink-3); font-size: 0.9375rem; padding: 1rem 0; }

/* Inhalt / SEO-Texte */
.content { border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 2.5rem; }
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-2); font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; margin: 2.75rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); font-weight: 700; margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: 0.25rem 0; }
.prose .table-wrap { margin: 1rem 0; }
.formula { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.875rem 1rem; font-weight: 600; color: var(--ink); overflow-x: auto; }
.callout { background: var(--info-bg); color: var(--info-ink); border-radius: var(--radius); padding: 0.875rem 1rem; }
.callout p { color: inherit; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1.25rem 0; }
.updated { color: var(--ink-3); font-size: var(--step--1); margin-top: 2rem; }
.faq { max-width: 44rem; margin-top: 3rem; }
.faq h2 { font-size: var(--step-2); font-weight: 750; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0.25rem; top: 0.875rem; font-size: 1.25rem; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 0 1rem; color: var(--ink-2); }
.faq details > div p { margin: 0 0 0.5rem; }
.tools { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1rem 0 0; padding: 0; list-style: none; }
.tools a { display: block; padding: 1rem 0; border-top: 2px solid var(--ink); text-decoration: none; color: var(--ink); }
.tools a b { display: block; font-size: var(--step-1); font-weight: 700; margin-bottom: 0.25rem; }
.tools a span { color: var(--ink-2); font-size: 0.9375rem; }
.tools a:hover b { color: var(--pine-ink); }
.legal-text { padding-bottom: 2rem; }
.legal-text h2 { font-size: var(--step-1); margin-top: 2rem; }
.legal-text p { margin: 0 0 0.75rem; }
.platzhalter { background: var(--warn-bg); color: var(--warn-ink); padding: 0 0.25rem; border-radius: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2.5rem 0 6rem; color: var(--ink-3); font-size: var(--step--1); }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: minmax(0, 1.3fr) 1fr 1fr; } }
.site-footer nav { display: flex; flex-direction: column; gap: 0.375rem; }
.site-footer nav b { color: var(--ink); font-weight: 650; margin-bottom: 0.25rem; }
.site-footer a { color: var(--ink-2); }
.site-footer p { margin: 0 0 0.75rem; max-width: 30rem; }
.site-footer .legal { display: flex; gap: 1.25rem; }
@media (min-width: 1000px) { .site-footer { padding-bottom: 2.5rem; } }

/* Mobile Ergebnisleiste */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 16px calc(0.75rem + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); text-decoration: none; transform: translateY(0); transition: transform 0.2s ease; }
.mbar span { font-size: var(--step--1); opacity: 0.8; }
.mbar strong { font-size: var(--step-1); font-weight: 800; }
.mbar.away { transform: translateY(110%); }
@media (min-width: 1000px) { .mbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .mbar, .result { transition: none; } }

@media print {
  .site-header .nav, .mbar, .actions, .content, .faq, .site-footer nav, .skip, .form, .next, .mehr-zeilen { display: none !important; }
  body { background: #fff; color: #000; }
  .tool { display: block; }
  .result { position: static; border: 0; padding: 0; max-height: none; overflow: visible; }
  .table-wrap { overflow: visible; border: 0; }
  .block { break-inside: avoid; }
}
table caption { caption-side: bottom; text-align: left; padding: 0.625rem 0.875rem; border-top: 1px solid var(--line-soft); }

/* Info-Erklärungen an den Feldern */
.field { position: relative; }
.label-zeile { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.3125rem; min-height: 1.25rem; }
.label-zeile > label, .label-zeile > .label { margin-bottom: 0 !important; }
.field > .label-zeile > label:not(.check), .field > .label-zeile > .label { display: block; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.info { display: inline-flex; }
.info-btn { width: 1.125rem; height: 1.125rem; flex: none; border-radius: 50%; border: 1px solid var(--ink-3); background: transparent; color: var(--ink-3); font: 600 0.6875rem/1 'Archivo', system-ui, sans-serif; font-style: italic; display: inline-grid; place-items: center; cursor: help; padding: 0; }
.info-btn:hover, .info-btn[aria-expanded="true"] { border-color: var(--pine); color: var(--pine-ink); }
.info-box { display: none; position: absolute; left: 0; right: 0; top: 1.75rem; z-index: 30; background: var(--ink); color: var(--paper); border-radius: 8px; padding: 0.625rem 0.75rem; font-size: var(--step--1); font-weight: 400; line-height: 1.45; box-shadow: 0 6px 24px rgb(0 0 0 / 0.18); min-width: min(16rem, 80vw); }
.info-btn[aria-expanded="true"] + .info-box, .info-btn:focus-visible + .info-box { display: block; }
@media (hover: hover) { .info:hover .info-box { display: block; } }
