:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #0a1428;
  --muted: #5b6676;
  --line: #dde3ea;
  --accent: #00a24a;
  --accent-strong: #00c85a;
  --navy: #0a1428;
  --danger: #c0392b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1428;
    --surface: #111e36;
    --text: #eef2f7;
    --muted: #a3afc0;
    --line: #22324f;
    --accent: #00c85a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
main { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }
a { color: var(--accent); }
.top { background: var(--navy); padding: 14px 16px; }
.brand { color: #f5f7fa; text-decoration: none; font-weight: 700; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 10px; }
.brand span { color: var(--accent-strong); }
.foot { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9rem; padding: 20px 16px; }
h1 { font-size: 1.8rem; line-height: 1.25; margin: .4em 0; }
h2 { font-size: 1.25rem; margin-top: 2em; }
.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.connect { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 16px; }
.connect .label { display: block; font-size: .85rem; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; word-break: break-all; }
.connect code { font-size: 1.05rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.card h3 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.examples li { margin-bottom: .5em; }
.en { margin-top: 2.5em; padding-top: 1em; border-top: 1px dashed var(--line); }
.disclaimer { margin-top: 2em; font-size: .9rem; color: var(--muted); }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.big { font-size: 2rem; font-weight: 800; }
.big.plus { color: var(--accent); }
.big.minus { color: var(--danger); }
dl { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 6px 16px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; }
dd dl { grid-template-columns: minmax(140px, 1fr) 1.5fr; }
.sub { margin-bottom: 10px; }
.notes { color: var(--muted); font-size: .92rem; }
.next { margin-top: 24px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
button { font: inherit; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
button:hover { border-color: var(--accent); }
button.danger { color: var(--danger); }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 16px; padding: 12px 14px 4px; }
legend { font-weight: 600; padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 16px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; color: var(--muted); margin-bottom: 8px; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); margin: 10px 0; }
label.check input { margin-top: 4px; }
input, select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.align-end { display: flex; align-items: flex-end; padding-bottom: 8px; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button:disabled { opacity: .5; cursor: not-allowed; }
.stepper { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: s; }
.stepper li { counter-increment: s; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.stepper li::before { content: counter(s) ". "; }
.stepper li.active { border-color: var(--accent); color: var(--text); font-weight: 600; }
.stepper li.done { color: var(--accent); }
.meldung { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--bg); }
.meldung.fehler, p.fehler { color: var(--danger); }
p.ok { color: var(--accent); font-weight: 600; }
.small { font-size: .85rem; color: var(--muted); }
.export { margin-top: 24px; }
h3 { font-size: 1.05rem; margin-top: 1.4em; }
@media (max-width: 560px) {
  dl, dd dl { grid-template-columns: 1fr; }
  dt { margin-top: 8px; }
}
@media print {
  .top, .foot, .buttons { display: none; }
  body { background: #fff; color: #000; }
}
