/* Kaufpilot design system (docs/ARCHITECTURE.md §7): tokens, layout, components.
   No JavaScript, no web fonts; colours checked for WCAG AA contrast in tests/test_publishing.py. */

:root {
  color-scheme: light dark;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #e8eef5;
  --text: #1c2430;
  --muted: #4d5866;
  --primary: #1f4a7a;
  --primary-hover: #183a61;
  --primary-ink: #ffffff;
  --primary-soft: #e3eaf3;
  --accent: #c8842b;
  --accent-soft: #f4e3cb;
  --line: #d6dee9;
  --header-bg: rgb(243 246 250 / 0.9);
  --focus: #1f4a7a;
  --shadow-s: 0 1px 2px rgb(28 36 48 / 0.06);
  --contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='320' viewBox='0 0 640 320' fill='none' stroke='%23000' stroke-opacity='1' stroke-width='1.3'%3E%3Cpath d='M-40 30 C 60 12 140 48 240 30 S 420 12 520 30 S 640 48 700 30'/%3E%3Cpath d='M-40 72 C 60 48 140 96 240 72 S 420 48 520 72 S 640 96 700 72'/%3E%3Cpath d='M-40 114 C 60 84 140 144 240 114 S 420 84 520 114 S 640 144 700 114'/%3E%3Cpath d='M-40 156 C 60 138 140 174 240 156 S 420 138 520 156 S 640 174 700 156'/%3E%3Cpath d='M-40 198 C 60 174 140 222 240 198 S 420 174 520 198 S 640 222 700 198'/%3E%3Cpath d='M-40 240 C 60 210 140 270 240 240 S 420 210 520 240 S 640 270 700 240'/%3E%3Cpath d='M-40 282 C 60 264 140 300 240 282 S 420 264 520 282 S 640 300 700 282'/%3E%3Cpath d='M-40 324 C 60 300 140 348 240 324 S 420 300 520 324 S 640 348 700 324'/%3E%3C/svg%3E");
  /* The header band (hero) is night blue in both modes since 2026-10-12 (recognition):
     inside it these tokens stand in for text, muted, primary, surface and line. */
  --hero-bg: #1c2b40;
  --hero-text: #f3f6fa;
  --hero-muted: #c3cedb;
  --hero-link: #adc8e8;
  --hero-card-bg: #24364f;
  --hero-line: #2e4260;
  --hero-glow: #3a2c19;
  --contour-line: #c9a46a; /* sand: the hero's contour lines */
  --contour-opacity: 0.18;
  --radius: 16px;
  --radius-s: 10px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, "Bitstream Charter", Georgia, serif;
  --wrap: 72rem;
  --prose: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111821;
    --surface: #172029;
    --surface-2: #1c2632;
    --text: #e6eaef;
    --muted: #a8b3c0;
    --primary: #8db0da;
    --primary-hover: #adc8e8;
    --primary-ink: #0e1621;
    --primary-soft: #1c2d42;
    --accent: #e0a458;
    --accent-soft: #3a2c19;
    --line: #2a3646;
    --header-bg: rgb(17 24 33 / 0.88);
    --focus: #8db0da;
    --hero-bg: #1c2632;
    --hero-text: #e6eaef;
    --hero-muted: #a8b3c0;
    --hero-link: #8db0da;
    --hero-card-bg: #172029;
    --hero-line: #2a3646;
    --shadow-s: none;
    }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 8.5rem; } /* sticky header never hides a focused element */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
svg { display: block; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
a { color: var(--primary); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 20; padding: 0.5rem 0.8rem; background: var(--surface); border-radius: var(--radius-s); }
.skip:focus { left: 1rem; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); margin: 0.25rem 0 1rem; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.35rem; }
p { margin: 0 0 1rem; }
.lead { max-width: 40rem; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--muted); }
.prose { max-width: var(--prose); }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.8rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.logo-mark { width: 30px; height: 30px; }
.logo-ring { fill: none; stroke: var(--primary); stroke-width: 2.2; stroke-linecap: round; }
.logo-north { fill: var(--accent); }
.logo-south { fill: var(--primary); }
.logo-pin { fill: var(--bg); }
.site-nav > ul { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.site-nav > ul > li > a, .area-list > li > a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; border-radius: 999px; color: var(--text); font-size: 0.98rem; font-weight: 500; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease; }
.site-nav > ul > li > a:hover, .area-list > li > a:hover { background: var(--primary-soft); color: var(--primary); }
.site-nav > ul > li > a[aria-current], .area-list > li > a[aria-current] { background: var(--primary); color: var(--primary-ink); }

/* Main navigation (PLAN S-3): the areas below the header; on a device with a mouse each one
   opens on hover or keyboard focus to its categories and guides, "Alle Themen" to every area.
   No JavaScript: a short delay keeps a passing pointer from opening one, another lets it reach
   the panel. Touch devices follow the link to the area's page instead. */
.area-nav { border-top: 1px solid var(--line); }
.area-list { position: relative; display: flex; flex-wrap: wrap; gap: 0.25rem; margin-block: 0; padding: 0.35rem 0; list-style: none; }
.area-list > li > a { font-weight: 600; }
.menu-link .icon { width: 20px; height: 20px; }
.menu-link .icon:last-child { width: 16px; height: 16px; opacity: 0.7; }
.menu-end { position: relative; }
.menu-panel {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1.1rem 1.25rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgb(28 36 48 / 0.16);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease 0.2s, visibility 0s linear 0.35s;
}
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 0.6rem; } /* bridge from link to panel */
.menu:hover > .menu-panel { visibility: visible; opacity: 1; transition: opacity 0.15s ease 0.15s, visibility 0s linear 0.15s; }
.menu:focus-within > .menu-panel { visibility: visible; opacity: 1; transition: none; }
.menu:hover > .menu-panel, .menu:focus-within > .menu-panel { z-index: 21; } /* above one still closing */
.menu-end > .menu-panel { left: auto; width: min(22rem, calc(100vw - 2rem)); top: calc(100% + 0.5rem); }
/* Columns filled top to bottom, each category whole: a short one is followed at once by the
   next, no gap below it as in a grid row with a long neighbour (B 2026-10-20) */
.menu-grid { columns: 13rem; column-gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.menu-grid > li { break-inside: avoid; padding-bottom: 1.1rem; }
.menu-grid ul { margin: 0.35rem 0 0; padding: 0 0 0 2.05rem; list-style: none; }
.menu-grid li li + li { margin-top: 0.15rem; }
.menu-grid li li a { color: var(--muted); font-size: 0.95rem; line-height: 1.4; text-decoration: none; }
.menu-grid li li a:hover, .menu-grid a[aria-current] { color: var(--primary); text-decoration: underline; }
.menu-grid li li .more { color: var(--primary); font-size: 0.9rem; }
.menu-grid li li a.menu-brand { font-size: 0.85rem; }
.menu-grid li li a.menu-brand::before { content: "· "; }
.menu-category { display: flex; align-items: center; gap: 0.55rem; color: var(--text); font-weight: 600; text-decoration: none; }
a.menu-category:hover { color: var(--primary); }
.menu-category .icon { width: 22px; height: 22px; color: var(--primary); }
.menu-panel > .more { color: var(--primary); font-size: 0.95rem; }
.overview { display: grid; gap: 0.1rem; margin: 0 0 0.7rem; padding: 0; list-style: none; }
.overview a { display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0.55rem; border-radius: var(--radius-s); color: var(--text); text-decoration: none; }
.overview a:hover { background: var(--primary-soft); color: var(--primary); }
.overview .icon { color: var(--primary); }
.overview strong { font-weight: 600; }
.overview small { display: block; color: var(--muted); font-size: 0.85rem; }
@media not all and (hover: hover) and (pointer: fine), (max-width: 40rem) {
  .menu-panel, .menu-link .icon:last-child { display: none; }
  .area-list { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .area-list > li { flex: none; scroll-snap-align: start; }
}
@media (max-width: 60rem) {
  html { scroll-padding-top: 11rem; } /* brand and links, and the areas, may take two rows each */
}
@media (max-width: 40rem) {
  .site-header { position: static; } /* three fixed rows would take too much of a phone's screen */
  html { scroll-padding-top: 1rem; }
  .header-inner { padding-block: 0.6rem; }
  .site-nav > ul > li > a, .area-list > li > a { padding: 0.35rem 0.65rem; font-size: 0.92rem; }
}

/* Hero */
.hero {
  /* the band is dark in both modes: every surface and text token is remapped inside it */
  color-scheme: dark;
  --bg: var(--hero-bg);
  --text: var(--hero-text);
  --muted: var(--hero-muted);
  --primary: var(--hero-link);
  --primary-hover: var(--hero-text);
  --primary-ink: var(--hero-bg);
  --primary-soft: var(--hero-card-bg);
  --surface: var(--hero-card-bg);
  --surface-2: var(--hero-card-bg);
  --accent-soft: var(--hero-glow);
  --line: var(--hero-line);
  --focus: var(--hero-link);
  position: relative; overflow: hidden; background-color: var(--hero-bg); color: var(--text); border-bottom: 1px solid var(--line);
}
.hero::before { content: ""; position: absolute; inset: 0; background-color: var(--contour-line); opacity: var(--contour-opacity); -webkit-mask: var(--contours) 0 0 / 640px 320px repeat; mask: var(--contours) 0 0 / 640px 320px repeat; pointer-events: none; }
.hero::after { content: ""; position: absolute; right: -12rem; bottom: -22rem; width: 40rem; height: 40rem; border-radius: 50%; background: radial-gradient(closest-side, var(--hero-glow), transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.hero-compact .hero-inner { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.hero h1 { max-width: 24ch; text-wrap: balance; }
.hero h1::after { content: ""; display: block; width: 4.5rem; height: 4px; margin-top: 1.1rem; border-radius: 2px; background: var(--accent); }
.eyebrow { margin: 0 0 0.5rem; color: var(--primary); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.hero-promises { margin-top: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); }
.hero-promises h2 { margin-bottom: 0.5rem; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); }
.hero-promises > p { max-width: 46rem; color: var(--muted); }

/* Sections */
.content { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) 0; }
.section { margin: 0 0 clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.section-lead { max-width: 40rem; color: var(--muted); }
.subhead { margin: 2rem 0 0.9rem; color: var(--muted); font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
/* Phones (wish B 2026-10-18): the first result within the first screen as far as possible, so a
   lower header band on the pages with a compact one, on articles a smaller title, less space
   above the content */
@media (max-width: 40rem) {
  .hero-compact .hero-inner { padding-block: 1.25rem 1.4rem; }
  .hero-compact .hero-inner > :last-child { margin-bottom: 0; }
  .hero-compact h1::after { margin-top: 0.8rem; }
  .hero-article h1 { max-width: none; font-size: 1.65rem; }
  .hero-compact + .content { padding-top: 1.25rem; }
}

/* Example needs */
.needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 0.75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.needs li { position: relative; padding: 1rem 1.1rem 1rem 2.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow-s); font-family: var(--font-serif); font-size: 1.06rem; }
.needs li::before { content: ""; position: absolute; left: 1.1rem; top: 1.35rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--accent); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { padding: 1.4rem 1.3rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); counter-increment: step; }
.step-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 0.9rem; border-radius: 12px; background: var(--primary); color: var(--primary-ink); }
.step-icon .icon { width: 22px; height: 22px; }
.steps h3::before { content: counter(step) ". "; color: var(--primary); }
.steps p { margin: 0; color: var(--muted); }
.steps .claim { margin: -0.15rem 0 0.5rem; color: var(--primary); font-weight: 600; }

/* Tiles */
.status-pill { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.6rem; border: 1px dashed var(--muted); border-radius: 999px; color: var(--muted); font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
.more { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; text-decoration: none; }
.more .icon { width: 18px; height: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14.5rem, 100%), 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.tile { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.2rem 0.85rem; padding: 1.1rem 1.1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.tile > .icon { grid-row: span 2; width: 2.6rem; height: 2.6rem; padding: 0.55rem; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.tile strong { font-size: 1.05rem; }
.criteria { grid-column: 2; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; grid-column: 2; gap: 0.35rem; margin: 0.35rem 0 0; padding: 0; list-style: none; }
.chips li { padding: 0.15rem 0.6rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; }
.tile-muted { background: transparent; border-style: dashed; box-shadow: none; }
.tile-muted > .icon { background: var(--surface-2); color: var(--muted); }
/* a category with its own page (Z-28): the name is the link, its ::after covers the tile */
.tile-link { position: relative; }
.tile-link strong a { color: inherit; text-decoration: none; }
.tile-link strong a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tile-link:hover { border-color: var(--primary); }
.tile-link:hover strong a { color: var(--primary); }
.tile-link strong a:focus-visible { outline: none; }
.tile-link:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Home page: area cards, areas in preparation, an area set apart (finance), promises */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 1.1rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.area-card { position: relative; display: flex; flex-direction: column; gap: 0.35rem; padding: 1.5rem 1.4rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.area-card:hover { border-color: var(--primary); }
.area-card h3 { margin: 0.3rem 0 0.1rem; font-size: 1.45rem; }
.area-link { color: var(--text); text-decoration: none; }
.area-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.area-link:focus-visible { outline: none; }
.area-card:has(.area-link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.area-card:hover .area-link { color: var(--primary); }
.area-card > p { margin: 0; color: var(--muted); }
.area-card > .area-meta { margin-top: auto; }
.area-card .chips { margin: 0.5rem 0 0.25rem; }
.area-card .chips a { position: relative; z-index: 1; } /* a category link above the card's link */
.area-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }
.area-meta .more { color: var(--primary); }
.area-icon { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.area-icon .icon { width: 30px; height: 30px; }
.areas-soon { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.areas-soon a { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1rem 0.55rem 0.7rem; border: 1px dashed var(--line); border-radius: 999px; color: var(--text); text-decoration: none; }
.areas-soon a:hover { border-color: var(--primary); color: var(--primary); }
.areas-soon .icon { color: var(--muted); }
.areas-soon span { color: var(--muted); font-size: 0.9rem; }
.area-band { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 1.2rem; margin: 0 0 clamp(2.75rem, 2rem + 3vw, 4.5rem); padding: 1.6rem 1.5rem; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.area-band h2 { margin-bottom: 0.4rem; }
.area-band p { max-width: 44rem; color: var(--muted); }
.area-band .chips { margin: 0 0 0.9rem; }
.area-points { display: grid; gap: 0.35rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.area-points li { display: flex; align-items: start; gap: 0.5rem; }
.area-points .icon { width: 20px; height: 20px; margin-top: 0.15rem; color: var(--primary); }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 0.8rem; margin: 1rem 0 0.75rem; padding: 0; list-style: none; }
.promises li { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.75rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow-s); }
.promises .icon { grid-row: span 2; width: 2.4rem; height: 2.4rem; padding: 0.5rem; border-radius: 10px; background: var(--primary); color: var(--primary-ink); }
.promises span { color: var(--muted); font-size: 0.95rem; }

/* Callout */
.callout { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 1rem; margin: 0 0 clamp(2.75rem, 2rem + 3vw, 4.5rem); padding: 1.3rem 1.4rem; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); border-left: 4px solid var(--primary); border-radius: var(--radius-s); }
.callout > .icon { width: 1.6rem; height: 1.6rem; color: var(--primary); }
.callout h2 { margin-bottom: 0.35rem; font-size: 1.2rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* Methodology, about, legal */
.method, .prose-page, .legal { max-width: var(--prose); }
.method { counter-reset: method; }
.method .steps { grid-template-columns: 1fr; }
.method .steps li { margin-bottom: 0; }
.method > section { margin-bottom: 2.25rem; }
.method > section > h2 { display: flex; align-items: baseline; gap: 0.7rem; font-size: 1.5rem; }
.method > section:not(.callout) > h2::before { content: counter(method, decimal-leading-zero); counter-increment: method; color: var(--primary); font-family: var(--font-sans); font-size: 0.9rem; font-weight: 700; }
.method ul { padding-left: 1.2rem; }
.method li { margin-bottom: 0.45rem; }
.author-card { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.avatar { display: grid; flex: none; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; }
.author-card span:not(.avatar) { display: block; color: var(--muted); font-size: 0.95rem; }
.legal h2 { margin-top: 2rem; font-size: 1.25rem; }
address { font-style: normal; }
code { padding: 0.05em 0.35em; border-radius: 4px; background: var(--surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.contact-img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; margin-inline: 0.2rem; }
address .contact-img { display: block; margin: 0.35rem 0 0.5rem; }
address .contact .contact-img { display: inline-block; margin: 0 0.2rem; }

/* Footer */
.site-footer { margin-top: clamp(1rem, 0.5rem + 2vw, 2.5rem); background: var(--surface-2); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: 1.75rem 2rem; padding-block: 2.5rem 1.5rem; }
.footer-title { margin: 0 0 0.6rem; color: var(--text); font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.site-footer a:not(.brand) { color: var(--muted); text-decoration: none; }
.site-footer a:not(.brand):hover { color: var(--primary); text-decoration: underline; }
.tagline { margin: 0.6rem 0 0; }
.footer-bottom { padding-block: 1rem 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* Article (M6): comparison table, ranking box, criteria, profiles, sources, notices */
.article { max-width: var(--wrap); }
.article > h2, .article > .prose, .a-pending, .a-notice { max-width: var(--prose); }
.a-draft { display: inline-block; margin: 0 0 0.9rem; padding: 0.25rem 0.7rem; border: 1px dashed var(--accent); border-radius: 999px; color: var(--text); background: var(--accent-soft); font-size: 0.85rem; font-weight: 600; }
.a-table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.a-table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.a-table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.95rem; }
.a-table th, .a-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.a-table thead th { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.a-table tbody th { position: sticky; left: 0; z-index: 1; min-width: 10rem; background: var(--surface); }
.a-table tbody tr:last-child > * { border-bottom: 0; }
.a-band { display: block; color: var(--primary); font-size: 0.82rem; font-weight: 600; }
h3 .a-band { display: inline; margin-left: 0.4rem; }
.a-context, .a-asof, .a-note, .a-missing { color: var(--muted); font-size: 0.82rem; }
.a-asof { display: block; }
.a-missing { font-style: italic; }
.a-price { white-space: nowrap; }  /* a price range stays on one line (M8-8) */
.a-ref { margin-left: 0.1rem; font-size: 0.72rem; }
.a-ref a { text-decoration: none; }
.a-ref-unknown { color: var(--accent); font-weight: 700; }
/* Charts below the table (PLAN S-2): name | bar | value; the bar's width is an SVG attribute */
.a-chart { margin: 1rem 0 1.4rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.a-chart figcaption { margin-bottom: 0.6rem; color: var(--muted); font-size: 0.9rem; }
.a-chart figcaption strong { color: var(--text); }
.a-bars { margin: 0; padding: 0; list-style: none; }
.a-bar-row { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr minmax(6rem, 12rem); align-items: center; gap: 0.3rem 0.9rem; padding: 0.35rem 0; }
.a-bar-name { font-weight: 600; font-size: 0.92rem; }
.a-bar { display: block; width: 100%; height: 0.75rem; overflow: visible; }
.a-bar rect { fill: var(--accent); }
.a-bar-row:first-child .a-bar rect { fill: var(--primary); }
.a-bar-value { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
/* Data graphics (PLAN S-4, ADR 0012): inline SVG drawn from the version, then its values as a
   table. Colours only from the checked tokens (a test allows no others), so dark mode and print
   follow; lines keep their width at any size. Beside each other from 60rem, below that the table
   under the SVG. Neither ever widens the page (2026-10-18: up to 401 px at 360 px): one column
   that may shrink, its items without their min-content minimum (min-width: 0) */
.a-g-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
.a-g-body > * { min-width: 0; }
.a-g-svg { width: 100%; max-width: 26rem; height: auto; overflow: visible; }
.a-g-grid { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.a-g-base, .a-g-scale { fill: none; stroke: var(--muted); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.a-g-shapes rect { fill: var(--primary-soft); stroke: var(--primary); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.a-g-nums text { fill: var(--text); font: 600 13px var(--font-sans); }
.a-g-gaps text, .a-g-label, .a-g-ticks text { fill: var(--muted); font: 400 13px var(--font-sans); }
/* Scatter plot (G2): points with an outline also in print, axis titles in the text colour, the
   numbers of products without a point in a tspan, a dashed line at 0 °C */
.a-g-dots circle { fill: var(--primary); stroke: var(--primary); stroke-width: 1; vector-effect: non-scaling-stroke; }
.a-g-axis { fill: var(--text); font: 400 13px var(--font-sans); }
.a-g-label .a-g-nums { fill: var(--text); font-weight: 600; }
.a-g-zero { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.a-g-lead { fill: none; stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
/* The value table: no min-width and fixed columns (Nr., the name, the two values sharing the
   rest), so it is never wider than its box whatever the names and headers; a word longer than
   its column breaks (German headers hyphenate where the browser can), never scrolls */
.a-g-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.9rem; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.a-g-table th, .a-g-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.a-g-table thead th { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.a-g-table thead th:first-child { width: 2.75rem; }
.a-g-table thead th:nth-child(2) { width: 34%; }
.a-g-table tbody tr:last-child > * { border-bottom: 0; }
.a-g-no { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 60rem) {
  .a-g-body { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); align-items: start; }
}
.prose h3 { margin-top: 1.5rem; }
.a-ranking { margin-top: 0; }
/* Checked products (PLAN S-7): the way to the shown products, the others folded away; long
   names break, never scroll */
.a-checked { margin-top: 0.6rem; }
.a-checked summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.a-checked ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.a-checked li { margin: 0.3rem 0; overflow-wrap: anywhere; }
.a-checked-name { font-weight: 600; }
.a-card { margin: 0 0 1rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.a-card h3 { margin-top: 0; }
.a-scores { margin: 0; padding: 0; list-style: none; }
.a-scores li { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(8rem, 1fr) minmax(8rem, 1fr); gap: 0.25rem 1rem; padding: 0.45rem 0; border-top: 1px solid var(--line); }
.a-scores li:first-child { border-top: 0; }
.a-outcome-missed .a-note { color: var(--accent); }
.a-profile { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); gap: 0.6rem 1.2rem; margin: 0; }
.a-profile dt { color: var(--muted); font-size: 0.85rem; }
.a-profile dd { margin: 0; }
.a-pending { margin: 0 0 2rem; padding: 0.9rem 1.1rem; border: 1px dashed var(--muted); border-radius: var(--radius-s); color: var(--muted); }
.a-pending p { margin: 0; }
.a-notice { margin: 0 0 1.25rem; padding: 0.9rem 1.1rem; background: var(--surface-2); border-left: 4px solid var(--line); border-radius: var(--radius-s); color: var(--muted); font-size: 0.95rem; }
.a-notice p { margin: 0; }
.a-sources ol { padding-left: 1.4rem; overflow-wrap: anywhere; }
.a-practice { max-width: var(--prose); }
.a-quality { max-width: var(--prose); margin: 0 0 1.5rem; padding: 0.9rem 1.1rem; border: 1px dashed var(--primary); border-radius: var(--radius-s); font-size: 0.95rem; }
.a-quality-fail { border-color: var(--accent); background: var(--accent-soft); }
.a-quality p, .a-quality ul { margin: 0.2rem 0; }
.a-photo { margin: 1rem 0; }
.a-photo img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-s); }
.a-photo figcaption { margin-top: 0.4rem; color: var(--muted); font-size: 0.85rem; }
.a-byline { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.95rem; }
/* Twin articles below the H1 (PLAN W-3): one pill each, the current page filled */
.a-twins { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.85rem 0 0; }
.a-twins a { padding: 0.2rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.a-twins a:hover { border-color: var(--primary); }
.a-twins a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.a-author { max-width: var(--prose); margin-top: 2.5rem; }
.a-corrections { max-width: var(--prose); margin-top: 2.5rem; }
.a-corrections ul { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.95rem; }
.a-list { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.a-list > li { padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.a-list a { font-size: 1.05rem; font-weight: 600; }
.a-list-meta { display: block; margin-bottom: 0.2rem; color: var(--primary); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
a.a-list-meta { width: fit-content; font-size: 0.78rem; text-decoration: none; }  /* not the size of .a-list a */
a.a-list-meta:hover { text-decoration: underline; }
/* brand articles below their general comparison, and the links between them (Z-16c) */
.a-list .a-list-brands { margin: 0.35rem 0 0; font-size: 0.92rem; }  /* over .a-list p */
.a-family { max-width: var(--prose); margin: 0.8rem 0 1.2rem; color: var(--muted); font-size: 0.92rem; }
.a-list .a-list-brands a, .a-family a { font-size: inherit; font-weight: 600; }
.a-list p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; }
/* An article's recommendations on its category page (PLAN S-5): a box in its card, the order's
   basis and the strengths all share above the list, the rank as the list number, name and band
   on one line, the note below; long names wrap (360 px) */
.a-picks { margin: 0.9rem 0 0; padding: 0.8rem 1rem 0.9rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); }
.a-picks h3 { margin: 0 0 0.35rem; color: var(--muted); font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.a-picks-list { margin: 0; padding-left: 1.6rem; overflow-wrap: anywhere; }
.a-picks-list > li { padding: 0.35rem 0; }
.a-picks-list > li + li { border-top: 1px solid var(--line); }
.a-picks-list > li::marker { color: var(--primary); font-weight: 700; }
.a-list .a-picks a { font-size: inherit; }  /* not the size of the title link */
.a-picks .a-band { display: inline-block; margin-left: 0.35rem; }
.a-list .a-picks p { margin: 0.1rem 0 0; font-size: 0.9rem; }
.a-list .a-picks .a-picks-how { margin: 0 0 0.4rem; font-size: 0.82rem; }
.a-list .a-picks .a-picks-shared { margin: 0 0 0.2rem; color: var(--text); }
.a-list .a-picks .a-picks-more { margin-top: 0.5rem; }
/* "Auf einen Blick" in the article (PLAN W-3): the same list after the direct answer */
.a-overview { max-width: var(--prose); margin: 0 0 1.5rem; padding: 0.9rem 1.1rem 1rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); }
.a-overview h2 { margin: 0 0 0.35rem; color: var(--muted); font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.a-overview .a-band { display: inline-block; margin-left: 0.35rem; }
.a-overview p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.9rem; }
.a-overview .a-picks-how { margin: 0 0 0.4rem; font-size: 0.82rem; }
.a-overview .a-picks-shared { margin: 0 0 0.2rem; color: var(--text); }
/* the share of the weight a product has values for (PLAN W-2) */
.a-coverage { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.a-card .a-coverage { margin: -0.4rem 0 0.6rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Affiliate links (M8): disclosure at the start, links in the table, buttons at the profiles */
.a-disclosure { max-width: var(--prose); margin: 0 0 1.25rem; padding: 0.9rem 1.1rem; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-s); font-size: 0.95rem; }
.a-disclosure p { margin: 0; }
.a-disclosure p + p { margin-top: 0.4rem; }
.a-disclosure .a-thanks { margin-top: 0.6rem; color: var(--muted); font-size: 0.85rem; } /* after the labelling, subordinate */
/* on a category page (PLAN S-6) compact at every width, as on phones: spacing and type only */
.a-disclosure-compact { margin-bottom: 0.9rem; padding: 0.65rem 0.8rem; font-size: 0.9rem; line-height: 1.5; }
.a-disclosure-compact p + p { margin-top: 0.3rem; }
.a-disclosure-compact .a-thanks { margin-top: 0.4rem; font-size: 0.8rem; }
.a-offers { margin: 0; padding: 0; list-style: none; }
.a-offers li + li { margin-top: 0.3rem; }
.a-offer { font-weight: 600; white-space: nowrap; }
.a-card .a-offers { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.a-card .a-offers li + li { margin-top: 0; }
/* below a recommendation of a category page (PLAN S-6): small text links in a row that wraps
   between them (a long shop name inside its link too, from 320 px), the footnote last */
.a-picks-offers { display: flex; flex-wrap: wrap; gap: 0.15rem 1rem; margin-top: 0.25rem; font-size: 0.9rem; }
.a-picks-offers li + li { margin-top: 0; }
.a-picks-offers .a-offer { white-space: normal; }
.a-list .a-picks .a-footnote { margin-top: 0.5rem; font-size: 0.82rem; }
.a-offer-button { display: inline-block; padding: 0.45rem 0.95rem; background: var(--primary); color: var(--primary-ink); border-radius: 999px; font-weight: 600; text-decoration: none; }
.a-offer-button:hover { background: var(--primary-hover); color: var(--primary-ink); }
/* The consent page of /go/ (ADR 0010): both choices side by side, alike */
.go-choices { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.a-footnote { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.82rem; }
.a-profile-draft { margin: 2rem 0; padding: 1rem 1.2rem; border: 1px dashed var(--accent); border-radius: var(--radius-s); }
.a-profile-draft pre { overflow-x: auto; font-size: 0.85rem; }
@media (max-width: 40rem) {
  .a-chart { padding: 0.75rem 0.5rem; }
  .a-bar-row { grid-template-columns: 1fr auto; }
  .a-bar { grid-column: 1 / -1; grid-row: 2; }
  .a-scores li { grid-template-columns: 1fr; }
  /* the value table of a graphic in a phone's width: less padding, smaller type */
  .a-g-table { font-size: 0.85rem; }
  .a-g-table th, .a-g-table td { padding: 0.35rem 0.25rem; }
  .a-g-table thead th { font-size: 0.72rem; letter-spacing: 0; }
  .a-g-table thead th:first-child { width: 2rem; }
  .a-g-table thead th:nth-child(2) { width: 30%; }
  .a-g-table .a-asof, .a-g-table .a-context, .a-g-table .a-missing { font-size: 0.75rem; }
  /* the notices at the start stay where and as they are, only more compact, so the answer
     follows sooner (wish B 2026-10-18): the disclosure still a box in its colours before the
     first link, never folded (COMPLIANCE §1) */
  .a-disclosure, .a-notice { padding: 0.65rem 0.8rem; font-size: 0.9rem; line-height: 1.5; }
  .a-disclosure p + p { margin-top: 0.3rem; }
  .a-disclosure .a-thanks { margin-top: 0.4rem; font-size: 0.8rem; }
  /* nested cards: less padding, so the recommendations keep a wide text column (S-5) */
  .a-list > li { padding: 0.85rem 0.8rem; }
  .a-picks { padding: 0.6rem 0.65rem 0.7rem; }
  .a-picks-list { padding-left: 1.35rem; }
}

/* Motion: gentle entrance, only when the visitor allows it */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise 0.6s ease both; }
  .hero-inner > :nth-child(2) { animation-delay: 0.06s; }
  .hero-inner > :nth-child(3) { animation-delay: 0.12s; }
  .hero-inner > :nth-child(4) { animation-delay: 0.18s; }
  .more .icon { transition: transform 0.2s ease; }
  .more:hover .icon { transform: translateX(3px); }
  .menu-panel { transform: translateY(-4px); transition: opacity 0.15s ease 0.2s, transform 0.15s ease 0.2s, visibility 0s linear 0.35s; }
  .menu:hover > .menu-panel { transform: none; transition: opacity 0.15s ease 0.15s, transform 0.15s ease 0.15s, visibility 0s linear 0.15s; }
  .menu:focus-within > .menu-panel { transform: none; }
  .menu-link .icon:last-child { transition: transform 0.2s ease; }
  .menu:hover > .menu-link .icon:last-child, .menu:focus-within > .menu-link .icon:last-child { transform: rotate(180deg); }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Print (PLAN S-4): the light tokens whatever the screen's mode, a graphic whole on one page,
   shapes with their outline (printed also without background graphics), tables as on screen */
@media print {
  :root {
    color-scheme: light;
    --bg: #f3f6fa;
    --surface: #ffffff;
    --surface-2: #e8eef5;
    --text: #1c2430;
    --muted: #4d5866;
    --primary: #1f4a7a;
    --primary-hover: #183a61;
    --primary-ink: #ffffff;
    --primary-soft: #e3eaf3;
    --accent: #c8842b;
    --accent-soft: #f4e3cb;
    --line: #d6dee9;
    --header-bg: rgb(243 246 250 / 0.9);
    --focus: #1f4a7a;
    --hero-bg: #1c2b40;
    --hero-text: #f3f6fa;
    --hero-muted: #c3cedb;
    --hero-link: #adc8e8;
    --hero-card-bg: #24364f;
    --hero-line: #2e4260;
    --shadow-s: 0 1px 2px rgb(28 36 48 / 0.06);
  }
  .a-graphic, .a-chart { break-inside: avoid; }
  .a-g-shapes rect { stroke: var(--primary); stroke-width: 1.5; }
}
