/*
  Shared structure for the three sites. Design read (taste skill):
  editorial consumer guide for German households, trust-first, calm.
  Dials: DESIGN_VARIANCE 5, MOTION_INTENSITY 3, VISUAL_DENSITY 4.
  Shape lock: containers 12px, controls 8px, status chips full radius. Nothing else.
  Each site sets tokens and its one accent in theme/<site>.css.
*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs, 17.5px)/1.65 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
svg { display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color .2s; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 30; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.narrow { width: min(43rem, 100% - 40px); margin: 0 auto; }

/* Header: one line, 64px */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: var(--brand-font); letter-spacing: var(--brand-track, -0.01em); white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav-links { margin-left: auto; display: flex; gap: 2px; }
.nav-links a { color: var(--mute); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 11px; border-radius: 8px; white-space: nowrap; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--soft); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 8px 14px; font: 500 15px var(--body); cursor: pointer; }

/* Page rhythm */
main { padding: 48px 0 96px; }
.crumbs { font-size: 14px; color: var(--mute); margin: 0 0 18px; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--h1, clamp(32px, 4.2vw, 46px)); line-height: 1.08; letter-spacing: var(--h1-track, -0.025em); font-weight: var(--h1-weight, 700); margin: 0 0 22px; }
h2 { font-size: var(--h2, 25px); line-height: 1.2; letter-spacing: -0.015em; font-weight: var(--h2-weight, 650); margin: 52px 0 14px; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 650; margin: 30px 0 8px; }
p, ul, ol, dl { margin: 0 0 18px; }
p, li, dd { text-wrap: pretty; }
li { margin-bottom: 8px; }
strong { font-weight: 650; }
time, td, .result { font-variant-numeric: tabular-nums; }
.eyebrow { font: 600 15px/1.3 var(--body); color: var(--accent); margin: 0 0 14px; }

/* Answer first: the lede is the short answer, set off by one accent rule. No label. */
.lede { font-size: 1.12em; line-height: 1.6; color: var(--ink); padding: 2px 0 2px 20px; border-left: 3px solid var(--accent); margin: 0 0 18px; }
.stand { font-size: 14px; color: var(--mute); margin: 0 0 34px; }
.stand a { color: var(--mute); }
.sources { font-size: 14.5px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 48px; }

/* Article photo */
.photo { margin: 6px 0 34px; }
.photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--soft); }

/* Example: tinted panel, no border, no label */
.example { background: var(--tint); border-radius: 12px; padding: 20px 24px; margin: 22px 0; }
.example p:last-child { margin-bottom: 0; }
.example > p:first-child > strong:first-child { color: var(--accent-ink); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.pair .example { margin: 0; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 26px; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 0 46px; margin: 0 0 18px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font: 700 15px/30px var(--head); text-align: center; }

/* Law box */
.law { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 24px 0; font-size: 16.5px; }
.law p { margin: 0 0 6px; }
.law p:last-child { margin: 0; color: var(--mute); font-size: 14.5px; }

/* Cases list (home): two columns of plain links, top hairline only */
.cases { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.cases li { margin: 0; border-top: 1px solid var(--line); }
.cases a { display: block; padding: 16px 0 20px; text-decoration: none; color: var(--ink); }
.cases a strong { display: block; font-family: var(--head); font-size: 18px; font-weight: 650; margin-bottom: 4px; transition: color .2s; }
.cases a span { color: var(--mute); font-size: 15.5px; line-height: 1.5; }
.cases a:hover strong { color: var(--accent); }

/* FAQ as definition list, no accordion */
.faq { margin: 4px 0 0; }
.faq dt { font-family: var(--head); font-weight: 650; font-size: 18px; margin: 26px 0 6px; }
.faq dd { margin: 0; }

/* Related reading */
.related { margin-top: 64px; }
.related h2 { font-size: 19px; margin: 0 0 6px; }
.related ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.related li { margin: 0; }
.related a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.related a::after { content: "\2192"; color: var(--mute); transition: transform .2s, color .2s; }
.related a:hover::after { transform: translateX(3px); color: var(--accent); }

/* Werbung box: dashed outline, the label sits on the box */
.ad { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 18px 22px; margin: 30px 0; }
.ad > div { flex: 1 1 300px; }
.ad-tag { display: block; font-size: 13px; font-weight: 600; color: var(--mute); margin-bottom: 4px; }
.ad p { margin: 0; font-size: 16px; }
.ad .btn-row { margin: 0; }

/* Buttons */
.btn, form button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  background: var(--btn); color: var(--btn-ink); border: 0; border-radius: 8px;
  padding: 12px 20px; font: 600 16px/1.2 var(--head); text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .12s;
}
.btn:hover, form button[type="submit"]:hover { background: var(--btn-hover); }
.btn:active, form button[type="submit"]:active { transform: translateY(1px) scale(0.99); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.ghost:hover { background: var(--soft); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

/* Forms: label above input */
label { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink); margin: 14px 0 6px; }
input, select { width: 100%; max-width: 100%; font: 500 16px var(--body); color: var(--ink); background: var(--field); border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 11px 12px; transition: border-color .2s; }
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--ring); }
.row { display: grid; gap: 0 16px; }
.row > * { min-width: 0; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); }
form button[type="submit"] { margin-top: 20px; }

/* Tools */
.tool { background: var(--surface); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); margin: 8px 0 40px; scroll-margin-top: 84px; }
.tool h2 { margin: 0 0 4px; }
.tool > p.fine { margin: 16px 0 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.tabs button { font: 600 15px var(--head); background: transparent; color: var(--mute); border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; transition: background-color .2s, color .2s; }
.tabs button:hover { color: var(--ink); background: var(--soft); }
.tabs button[aria-selected="true"] { background: var(--soft); color: var(--ink); }
.panel { margin-top: 20px; border-radius: 12px; padding: 18px 22px; background: var(--tint); }
.panel p:last-child { margin-bottom: 0; }
.result { font: 650 1.12em/1.4 var(--head); margin: 0 0 10px; color: var(--ink); }
.fine { font-size: 14.5px; color: var(--mute); }
.note { color: var(--mute); }
.ok { color: var(--go); font-weight: 600; }
.chip { display: inline-block; border-radius: 999px; padding: 3px 11px; font: 600 13.5px var(--body); margin: 2px 0 10px; }
.chip.go { background: var(--go-bg); color: var(--go); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.stop { background: var(--stop-bg); color: var(--stop); }

/* Letters */
.letter { position: relative; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 22px 24px; font: 15px/1.7 var(--mono, ui-monospace, "SF Mono", Menlo, monospace); white-space: pre-wrap; box-shadow: var(--shadow); margin: 14px 0 10px; }
.copy { position: absolute; top: 12px; right: 12px; font: 600 13px var(--body); background: var(--soft); color: var(--ink); border: 0; border-radius: 8px; padding: 6px 11px; cursor: pointer; transition: background-color .2s; }
.copy:hover { background: var(--line); }
.ph { background: var(--mark); border-radius: 3px; padding: 0 3px; }

/* Tables: header rule and zebra, no line under every row */
table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 10px 0 28px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; }
thead th { font-family: var(--head); font-weight: 650; border-bottom: 1.5px solid var(--line-strong); }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th { background: var(--tint); }
tbody th { font-family: var(--head); font-weight: 600; }

/* Home hero: split, real photo, fits the first viewport */
.hero { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); gap: 56px; align-items: center; padding: 12px 0 64px; }
.hero h1 { font-size: var(--hero-h1, clamp(34px, 3.7vw, 48px)); margin-bottom: 18px; max-width: 24ch; hyphens: manual; }
.hero .sub { font-size: 19px; line-height: 1.55; color: var(--mute); max-width: 36ch; margin: 0 0 28px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.home-col { max-width: 46rem; }
.home-col .tool { max-width: none; }

/* Footer: one note and the legal links */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14.5px; color: var(--mute); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; }
.site-foot p { margin: 0 0 10px; max-width: 70ch; }
.site-foot a { color: var(--mute); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.theme-btn { font: 500 14px var(--body); background: transparent; color: var(--mute); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 12px; cursor: pointer; margin-top: 10px; }
.theme-btn:hover { color: var(--ink); }

@media (max-width: 1060px) { .nav-links a { padding: 8px 8px; font-size: 14.5px; } }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; flex-direction: column; }
  .nav-open .nav-links { display: flex; }
  .hero, .pair, .row-2, .row-3, .cases, .site-foot .wrap { grid-template-columns: 1fr; }
  .hero { gap: 26px; padding-bottom: 36px; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 16 / 10; }
  main { padding-top: 26px; }
  .tool { padding: 20px; }
  table { display: block; overflow-x: auto; }
}

/* klingel ohne abo: one burnt-orange accent on cool greys, Geist throughout. */
@font-face { font-family: "Geist"; src: url("/fonts/geist-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #F4F5F6; --surface: #FFFFFF; --soft: #E8EAED; --tint: #EDEFF1; --field: #FFFFFF;
  --ink: #17191C; --mute: #555C65; --line: #DDE0E4; --line-strong: #C0C5CC;
  --accent: #B5521A; --accent-ink: #9A4515; --link: #9A4515; --ring: rgba(181, 82, 26, 0.2);
  --btn: #17191C; --btn-hover: #2C3036; --btn-ink: #FFFFFF;
  --mark: rgba(181, 82, 26, 0.13);
  --go: #1E6B43; --go-bg: #E2F1E8; --warn: #855A09; --warn-bg: #F6ECD6; --stop: #8E2B2B; --stop-bg: #F6E3E3;
  --head: "Geist", system-ui, sans-serif; --body: "Geist", system-ui, sans-serif;
  --brand-font: 650 20px/1 "Geist", system-ui, sans-serif; --brand-track: -0.02em;
  --shadow: 0 1px 2px rgba(23, 25, 28, 0.04), 0 12px 32px rgba(23, 25, 28, 0.06);
  --h1-weight: 650; --h1-track: -0.035em; --h2-weight: 600;
}
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) { color-scheme: dark;
  --bg: #121315; --surface: #1A1C1F; --soft: #24272B; --tint: #1E2023; --field: #15171A;
  --ink: #EEF0F2; --mute: #A3A9B1; --line: #2C3035; --line-strong: #434950;
  --accent: #E2834B; --accent-ink: #EFA374; --link: #EFA374; --ring: rgba(226, 131, 75, 0.25);
  --btn: #EEF0F2; --btn-hover: #D9DDE1; --btn-ink: #121315; --mark: rgba(226, 131, 75, 0.22);
  --go: #7FCDA2; --go-bg: rgba(30, 107, 67, .3); --warn: #E7C17A; --warn-bg: rgba(133, 90, 9, .3); --stop: #EBA0A0; --stop-bg: rgba(142, 43, 43, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.25); } }
html[data-theme="dark"] { color-scheme: dark;
  --bg: #121315; --surface: #1A1C1F; --soft: #24272B; --tint: #1E2023; --field: #15171A;
  --ink: #EEF0F2; --mute: #A3A9B1; --line: #2C3035; --line-strong: #434950;
  --accent: #E2834B; --accent-ink: #EFA374; --link: #EFA374; --ring: rgba(226, 131, 75, 0.25);
  --btn: #EEF0F2; --btn-hover: #D9DDE1; --btn-ink: #121315; --mark: rgba(226, 131, 75, 0.22);
  --go: #7FCDA2; --go-bg: rgba(30, 107, 67, .3); --warn: #E7C17A; --warn-bg: rgba(133, 90, 9, .3); --stop: #EBA0A0; --stop-bg: rgba(142, 43, 43, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.25); }
.brand .lens { fill: var(--accent); }
.result { font-variant-numeric: tabular-nums; }
