/* Wattklarheit – editorial, no third-party fonts, no cookies */
:root {
  --paper: #f3efe6;
  --ink: #1b1914;
  --muted: #5c564c;
  --line: #d4cbb8;
  --sun: #c94b16;
  --sun-2: #9a3910;
  --panel: #fffcf6;
  --chip: #efe6d4;
  --ok: #1d5a36;
  --warn: #8a4b12;
  --shadow: 0 1px 0 rgba(27, 25, 20, 0.06);
  --max: 72rem;
  --prose: 40rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: var(--sun-2); text-underline-offset: 0.15em; }
a:hover { color: var(--sun); }
img, svg { max-width: 100%; }
h1, h2, h3, .brand, .num {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); margin: 0 0 0.6rem; }
h2 { font-size: 1.55rem; margin: 2.2rem 0 0.7rem; }
h3 { font-size: 1.2rem; margin: 1.4rem 0 0.5rem; }
p { margin: 0 0 1rem; }
small, .muted { color: var(--muted); }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.prose { width: min(var(--prose), 100%); }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.4rem 0.8rem;
}
.skip:focus { left: 0.6rem; top: 0.6rem; z-index: 10; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 80%, #fff);
  position: sticky; top: 0; z-index: 5;
}
.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0;
}
.brand {
  color: var(--ink); text-decoration: none; font-size: 1.35rem;
  display: flex; align-items: center; gap: 0.45rem;
}
.brand:hover { color: var(--ink); }
.mark {
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3c27a, var(--sun) 55%, var(--sun-2));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 22%, transparent);
}
nav.main { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
nav.main a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--sun); text-decoration: underline; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: 0.35rem 0.6rem; font: inherit; cursor: pointer;
}

/* Hero & layout */
.hero { padding: 2.6rem 0 1.6rem; }
.lede { font-size: 1.15rem; max-width: 38rem; color: var(--muted); }
.kicker {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sun-2); margin: 0 0 0.5rem; font-weight: 650;
}
.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 1.2rem 0 2rem;
}
.card, .panel, .ad-slot, .result, .note, .legal-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.card { padding: 1.15rem 1.2rem; text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: color-mix(in srgb, var(--sun) 45%, var(--line)); }
.card h2, .card h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.panel { padding: 1.15rem 1.25rem; margin: 1rem 0 1.4rem; }
form.calc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem 1.1rem;
}
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.92rem; }
label span.hint { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
input, select, button, textarea {
  font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
input, select, textarea { padding: 0.45rem 0.6rem; width: 100%; }
input:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--sun); outline-offset: 1px;
}
button.primary, .btn {
  background: var(--sun); color: #fff; border: 0; cursor: pointer;
  padding: 0.55rem 1rem; font-weight: 600; border-radius: 8px;
  display: inline-block; text-decoration: none;
}
button.primary:hover, .btn:hover { background: var(--sun-2); color: #fff; }
.actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.result { padding: 1.1rem 1.2rem; margin: 0.8rem 0 0; }
.result .num { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; margin: 0.8rem 0 0; }
.result dt { color: var(--muted); }
.result dd { margin: 0; font-weight: 600; text-align: right; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.note, .legal-box { padding: 0.85rem 1rem; margin: 1rem 0; font-size: 0.92rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 1rem; }
.chip {
  background: var(--chip); border-radius: 999px; padding: 0.2rem 0.7rem;
  font-size: 0.82rem; color: var(--muted);
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0; }
th, td { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; }
ol, ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin: 0.25rem 0; }

/* Affiliate slots – never look like editorial */
.ad-slot {
  padding: 1rem 1.15rem; margin: 1.4rem 0;
  border-style: dashed; background: color-mix(in srgb, var(--chip) 70%, #fff);
}
.ad-slot .tag {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700; color: var(--sun-2);
  border: 1px solid var(--sun); border-radius: 4px; padding: 0.1rem 0.4rem;
  margin-bottom: 0.4rem;
}
.ad-slot p { margin: 0.3rem 0 0; font-size: 0.92rem; }
.ad-slot .aff-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 650;
  text-decoration: underline;
}
.ad-slot .aff-hint {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}

footer.site {
  margin-top: 3rem; border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.2rem; font-size: 0.88rem; color: var(--muted);
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 0.8rem; }
footer.site a { color: var(--muted); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--panel); border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem; flex-direction: column; }
  header.site.open nav.main { display: flex; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* SEO / article */
.crumbs { font-size: 0.88rem; color: var(--muted); padding: 1rem 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.15rem; }
.crumbs li { display: inline; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 0.4rem; color: #b7ad9a; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.faq { margin: 1.6rem 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.65rem 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 0.5rem 0 0.2rem; }
.sources, .related { margin: 1.6rem 0 0.4rem; }
.sources ul { padding-left: 1.2rem; }
.related-list { display: grid; gap: 0.55rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 0.6rem 0 1rem; }
.related-list a { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; text-decoration: none; color: inherit; }
.related-list a:hover { border-color: color-mix(in srgb, var(--sun) 45%, var(--line)); }
.article-meta { color: var(--muted); font-size: 0.88rem; margin: 0 0 1rem; }
