/* ═══════════════════════════════════════════════════════════════════════════
   Scherzinger Digital Audit — ein Stylesheet für alle Seiten
   Verwandt mit Webagentur Scherzinger (Red Hat, Graphit/Grauweiß), eigene
   Produktfarbe „Tinte“ für Handlungen und Fokus. Kupfer nur im Signet.
   Strenge CSP: keine Inline-Stile — alles über Klassen und SVG-Attribute.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../fonts/red-hat-display-latin.38c9c4426c1c.woff2") format('woff2'); }
@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/red-hat-text-latin.4f23812162bb.woff2") format('woff2'); }
@font-face { font-family: 'Red Hat Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/red-hat-mono-latin.e0fc6ce7e2ef.woff2") format('woff2'); }

/* ── Tokens hell ─────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #F5F5F4;            /* Seitengrund */
  --surface: #FFFFFF;       /* Panels, Felder */
  --surface-2: #EDEEED;     /* abgesetzte Zeilen, Tabellenköpfe */
  --text: #17191B;          /* 16:1 */
  --text-2: #464B50;        /* 8:1 auf bg */
  --text-3: #5E6368;        /* 5.7:1 auf bg, 6:1 auf weiß */
  --line: #DCDEDF;
  --line-2: #BFC3C6;
  --field-line: #6A6F74;    /* Feldrahmen 5:1 (WCAG 1.4.11) */

  --accent: #1F4C86;        /* Tinte: Knöpfe, Links, Fokus — 8.3:1 auf weiß */
  --accent-hover: #163A69;
  --accent-soft: #E7EDF5;
  --on-accent: #FFFFFF;
  --signet: #C2703D;        /* Kupfer aus dem Agentur-Logo, nur Fläche */

  /* Bewertung / Schwere — immer zusammen mit Text oder Form */
  --ok: #1D6A40;      --ok-bg: #E3F0E7;
  --warn: #8A5A00;    --warn-bg: #FAF0D7;
  --high: #A8460F;    --high-bg: #FBEADC;
  --crit: #A8261F;    --crit-bg: #F9E3E0;
  --low: #3A5578;     --low-bg: #E8EDF4;
  --none: #5E6368;    --none-bg: #ECEDEE;

  --ring-track: #E1E3E4;

  --f-display: 'Red Hat Display', Arial, system-ui, sans-serif;
  --f-text: 'Red Hat Text', Arial, system-ui, sans-serif;
  --f-mono: 'Red Hat Mono', ui-monospace, Consolas, monospace;

  --t-12: 0.75rem; --t-13: 0.8125rem; --t-14: 0.875rem; --t-16: 1rem; --t-18: 1.125rem;
  --t-20: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
  --t-24: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --t-32: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --t-48: clamp(2rem, 1.55rem + 2.1vw, 3.25rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;

  --r-s: 4px;    /* Kennzeichen */
  --r-m: 6px;    /* Knöpfe, Felder */
  --r-l: 10px;   /* Panels */

  --wrap: 1200px;
  --gutter: 16px;
  --header-h: 60px;
}

/* ── Tokens dunkel ───────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121315; --surface: #1A1C1F; --surface-2: #22252A;
    --text: #ECEDEE; --text-2: #B6BBC0; --text-3: #9A9FA5;
    --line: #2C3035; --line-2: #3D4248; --field-line: #80868C;
    --accent: #8DB2EA; --accent-hover: #AECAF2; --accent-soft: #1D2A3C; --on-accent: #0E1A2B;
    --ok: #7FCB9C; --ok-bg: #16281E; --warn: #E2BC62; --warn-bg: #2B2414;
    --high: #F0A06B; --high-bg: #2E1D12; --crit: #F28B82; --crit-bg: #321615;
    --low: #9DB5D6; --low-bg: #1B2433; --none: #9A9FA5; --none-bg: #24272B;
    --ring-track: #2C3035;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121315; --surface: #1A1C1F; --surface-2: #22252A;
  --text: #ECEDEE; --text-2: #B6BBC0; --text-3: #9A9FA5;
  --line: #2C3035; --line-2: #3D4248; --field-line: #80868C;
  --accent: #8DB2EA; --accent-hover: #AECAF2; --accent-soft: #1D2A3C; --on-accent: #0E1A2B;
  --ok: #7FCB9C; --ok-bg: #16281E; --warn: #E2BC62; --warn-bg: #2B2414;
  --high: #F0A06B; --high-bg: #2E1D12; --crit: #F28B82; --crit-bg: #321615;
  --low: #9DB5D6; --low-bg: #1B2433; --none: #9A9FA5; --none-bg: #24272B;
  --ring-track: #2C3035;
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ── Grundlagen ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--t-16)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: var(--t-48); letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: var(--t-32); letter-spacing: -0.02em; }
h3 { font-size: var(--t-20); }
p { margin: 0; }
p + p { margin-top: var(--s-3); }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
code, kbd, .mono { font-family: var(--f-mono); font-size: 0.92em; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent-soft); }

.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--text); color: var(--bg); padding: var(--s-2) var(--s-4); border-radius: var(--r-m);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-2); color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-2); }
.small { font-size: var(--t-14); }
.tiny { font-size: var(--t-12); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.label {
  font-family: var(--f-mono); font-size: var(--t-12); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500;
}
.lead { font-size: var(--t-18); color: var(--text-2); max-width: 60ch; }
.measure { max-width: 68ch; }

/* ── Kopf ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand-name span { color: var(--text-3); font-weight: 600; }
.nav-main { display: none; }
.nav-main a {
  color: var(--text-2); text-decoration: none; font-size: var(--t-14); font-weight: 500;
  padding: 8px 10px; border-radius: var(--r-m);
}
.nav-main a:hover { color: var(--text); background: var(--surface-2); }
.nav-main a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); border-radius: 0; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-m);
  border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle[hidden] { display: none; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

/* Handy-Menü: <details>, funktioniert ohne JS */
.nav-mobile { position: relative; }
.nav-mobile > summary {
  list-style: none; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: var(--r-m); cursor: pointer; color: var(--text);
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary svg { width: 20px; height: 20px; }
.nav-mobile[open] > summary { background: var(--surface-2); }
.nav-mobile-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .12); padding: var(--s-2);
}
.nav-mobile-panel a {
  display: block; padding: 12px 12px; color: var(--text); text-decoration: none; border-radius: var(--r-m); font-weight: 500;
}
.nav-mobile-panel a:hover { background: var(--surface-2); }
.nav-mobile-panel a.is-cta { color: var(--accent); }
@media (min-width: 860px) {
  .nav-main { display: flex; gap: 2px; align-items: center; }
  .nav-mobile { display: none; }
}

/* ── Knöpfe ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-m); border: 1px solid transparent;
  font: 600 var(--t-16)/1.1 var(--f-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--text-3); color: var(--text); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-2); padding: 0 10px; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: var(--t-14); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.link-quiet { color: var(--text-2); }
.link-quiet:hover { color: var(--text); }

/* ── Formulare ───────────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: var(--s-4); }
.field label, .field-label { font-weight: 600; font-size: var(--t-14); }
.field .help { font-size: var(--t-13); color: var(--text-3); }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--field-line); border-radius: var(--r-m);
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[aria-invalid="true"], .has-error input, .has-error textarea, .has-error select { border-color: var(--crit); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-14); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.errorlist { list-style: none; color: var(--crit); font-size: var(--t-14); font-weight: 500; }
.alert {
  border: 1px solid var(--line); border-left: 3px solid var(--text-3); background: var(--surface);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-m); font-size: var(--t-14);
}
.alert-error { border-left-color: var(--crit); background: var(--crit-bg); border-color: transparent; color: var(--text); }
.alert-info { border-left-color: var(--accent); }

/* Analyse-Formular (Startseite, Fehlerseite) */
.audit-form { display: grid; gap: var(--s-2); max-width: 640px; }
.audit-form-row { display: grid; gap: var(--s-2); }
.audit-form input[type="text"] { min-height: 56px; font-size: var(--t-18); padding: 0 16px; }
.audit-form .btn { min-height: 56px; font-size: var(--t-16); }
.audit-form-meta { font-size: var(--t-14); color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.audit-form-meta span { display: inline-flex; align-items: center; gap: 6px; }
.audit-form-meta svg { width: 14px; height: 14px; color: var(--ok); }
@media (min-width: 600px) {
  .audit-form-row { grid-template-columns: 1fr auto; }
}

/* ── Kennzeichen: Datenstatus und Schwere ───────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font: 500 var(--t-12)/1 var(--f-text); padding: 4px 7px; border-radius: var(--r-s);
  border: 1px solid var(--line-2); color: var(--text-2); background: transparent;
}
.tag svg { width: 12px; height: 12px; flex: none; }
.tag-measured { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
.tag-heuristic { border-style: dashed; }
.tag-estimated { border-style: dotted; }
.tag-unavailable { border-color: transparent; background: var(--none-bg); color: var(--none); }
.tag-authenticated { border-color: transparent; background: var(--ok-bg); color: var(--ok); }

.sev {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 600 var(--t-12)/1 var(--f-text); padding: 4px 8px 4px 6px; border-radius: var(--r-s);
}
.sev svg { width: 13px; height: 13px; flex: none; }
.sev-critical { background: var(--crit-bg); color: var(--crit); }
.sev-high { background: var(--high-bg); color: var(--high); }
.sev-medium { background: var(--warn-bg); color: var(--warn); }
.sev-low { background: var(--low-bg); color: var(--low); }
.sev-info { background: var(--none-bg); color: var(--none); }
.sev-passed { background: var(--ok-bg); color: var(--ok); }
.sev-na { background: var(--none-bg); color: var(--none); }

.grade { font-weight: 600; }
.grade-sehr-gut, .grade-gut { color: var(--ok); }
.grade-ausbaufahig { color: var(--warn); }
.grade-kritisch { color: var(--crit); }
.grade-na { color: var(--none); }

/* ── Score-Ring (SVG mit pathLength=100) ────────────────────────────────── */
.ring { position: relative; width: 56px; height: 56px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--ring-track); }
.ring .bar { fill: none; stroke-linecap: butt; }
.ring-value {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 600 var(--t-16)/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--text);
}
.ring-none .ring-value { font: 500 var(--t-12)/1.1 var(--f-text); color: var(--text-3); text-align: center; }
.ring-none .track { stroke-dasharray: 3 3; }
.ring-lg { width: 132px; height: 132px; }
.ring-lg .ring-value { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; }
.ring-lg.ring-none .ring-value { font-size: var(--t-14); padding: 0 18px; line-height: 1.25; }
.ring-sm { width: 40px; height: 40px; }
.ring-sm .ring-value { font-size: var(--t-13); }
.ring-sm.ring-none .ring-value { font-size: 10px; }
.tone-good .bar { stroke: var(--ok); }
.tone-mid .bar { stroke: var(--warn); }
.tone-bad .bar { stroke: var(--crit); }
.tone-none .bar { stroke: transparent; }

/* Balken als SVG (viewBox 0 0 100 6) */
.bar-svg { width: 100%; height: 6px; border-radius: 3px; overflow: hidden; }
.bar-svg .bg { fill: var(--ring-track); }
.bar-svg .fg { fill: var(--text); }
.bar-svg .fg-accent { fill: var(--accent); }

/* ── Abschnitte allgemein ───────────────────────────────────────────────── */
main { display: block; }
.section { padding-block: var(--s-8); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); max-width: 720px; }
.section-head .label { margin-bottom: 2px; }
.section-tint { background: var(--surface); }
@media (max-width: 719px) { .section { padding-block: var(--s-7); } }

/* ── Startseite ─────────────────────────────────────────────────────────── */
.hero { padding: var(--s-8) 0 var(--s-8); }
.hero-grid { display: grid; gap: var(--s-7); align-items: start; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: var(--s-4); }
.hero .audit-form { margin-top: var(--s-6); }
.hero-error { margin-top: var(--s-4); max-width: 640px; }
@media (min-width: 1000px) {
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 72px; }
}
@media (max-width: 599px) {
  .hero { padding: var(--s-6) 0 var(--s-7); }
  .hero h1 { font-size: 2.15rem; }
  .hero .lead { font-size: var(--t-16); }
}

/* Gewichtungstabelle im Hero */
.weights {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--s-5);
}
.weights-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-4); }
.weights-head h2 { font-size: var(--t-16); font-family: var(--f-text); font-weight: 600; letter-spacing: 0; }
.weights ol { list-style: none; display: grid; gap: 14px; }
.weights li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.weights li .bar-svg { grid-column: 1 / -1; }
.weights li span:first-child { font-size: var(--t-14); font-weight: 500; }
.weights li .num { font-size: var(--t-14); color: var(--text-2); }
.weights-foot { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-13); color: var(--text-2); }

/* Ablauf in drei Schritten — die eine Nummernreihe der Seite */
.steps { list-style: none; display: grid; gap: var(--s-5); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 2px solid var(--text); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 var(--t-14)/1 var(--f-mono); color: var(--text-3); }
.steps h3 { font-size: var(--t-18); }
.steps p { color: var(--text-2); font-size: var(--t-16); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

/* Bereiche: Datenblatt-Liste statt Kacheln */
.areas { border-top: 1px solid var(--line); }
.areas > div { display: grid; gap: var(--s-2); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.areas dt { display: flex; gap: var(--s-3); align-items: baseline; justify-content: space-between; font-weight: 600; font-size: var(--t-18); font-family: var(--f-display); }
.areas dt .num { font-size: var(--t-14); color: var(--text-3); font-weight: 500; }
.areas dd { margin: 0; color: var(--text-2); max-width: 70ch; }
@media (min-width: 800px) {
  .areas > div { grid-template-columns: 280px 1fr; gap: var(--s-6); padding: var(--s-5) 0; }
  .areas dt { flex-direction: column; justify-content: flex-start; gap: 2px; }
}
.areas-extra { margin-top: var(--s-5); color: var(--text-2); font-size: var(--t-14); max-width: 70ch; }

/* Transparenz */
.status-legend { display: grid; gap: var(--s-4); }
.status-legend > div { display: grid; gap: var(--s-2); align-content: start; }
.status-legend dt { display: flex; }
.status-legend dd { margin: 0; color: var(--text-2); font-size: var(--t-16); }
@media (min-width: 800px) { .status-legend { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); } }
.split { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split-wide { grid-template-columns: 5fr 7fr; } }

/* Google-Band */
.connect-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.connect-list li { display: flex; justify-content: space-between; gap: var(--s-4); padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.connect-list li strong { font-weight: 600; }
.connect-list li span { color: var(--text-2); font-size: var(--t-14); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: var(--t-18); font-family: var(--f-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .faq-body { padding: 0 0 20px; color: var(--text-2); max-width: 70ch; }

/* Agentur-Band, leise */
.agency-band { background: var(--text); color: var(--bg); }
.agency-band .wrap { display: grid; gap: var(--s-5); padding-top: var(--s-7); padding-bottom: var(--s-7); }
.agency-band h2 { font-size: var(--t-24); color: var(--bg); max-width: 32ch; }
.agency-band p { color: color-mix(in srgb, var(--bg) 78%, var(--text)); max-width: 62ch; }
.agency-band a:not(.btn) { color: var(--bg); }
.agency-band .btn-light { background: var(--bg); color: var(--text); }
.agency-band .btn-light:hover { background: color-mix(in srgb, var(--bg) 88%, var(--text)); color: var(--text); }
@media (min-width: 960px) { .agency-band .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* ── Inhaltsseiten (Methodik, Tarife, Recht) ────────────────────────────── */
.page-head { padding: var(--s-7) 0 var(--s-6); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--t-48); max-width: 20ch; }
.page-head .lead { margin-top: var(--s-4); }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--t-24); margin-top: var(--s-7); margin-bottom: var(--s-3); }
.prose h3 { font-size: var(--t-18); margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose p, .prose ul, .prose ol { margin-top: var(--s-3); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 6px; }
.prose > :first-child { margin-top: 0; }
.prose table { margin-top: var(--s-4); }
.prose .formula {
  font-family: var(--f-mono); font-size: var(--t-14); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: var(--s-4); overflow-x: auto; white-space: pre-wrap; margin-top: var(--s-4);
}
.content-grid { display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--s-8); }
@media (min-width: 1000px) { .content-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } }
.toc { font-size: var(--t-14); }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; color: var(--text-2); text-decoration: none; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--text); border-left-color: var(--text); }
@media (min-width: 1000px) { .toc nav { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (max-width: 999px) { .toc { display: none; } }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--t-14); }
table.data th, table.data td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--surface-2); font-family: var(--f-mono); font-size: var(--t-12); letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); font-weight: 500; white-space: nowrap; }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data td.r, table.data th.r { text-align: right; }
table.data .url-cell { max-width: 420px; word-break: break-all; }
table.data tbody th { font-weight: 600; }

/* Tarife */
.plans { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.plan { padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; border-bottom: 1px solid var(--line); }
.plan:last-child { border-bottom: 0; }
.plan h2 { font-size: var(--t-24); }
.plan-state { font-size: var(--t-14); font-weight: 600; }
.plan-state.is-live { color: var(--ok); }
.plan-state.is-soon { color: var(--text-3); }
.plan ul { list-style: none; display: grid; gap: 8px; font-size: var(--t-14); color: var(--text-2); }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.plan li svg { width: 14px; height: 14px; margin-top: 4px; color: var(--text-3); }
.plan .btn { justify-self: start; margin-top: var(--s-2); }
.plan-free { background: var(--accent-soft); }
.plan-free li svg { color: var(--accent); }
@media (min-width: 1000px) {
  .plans { grid-template-columns: repeat(4, 1fr); }
  .plan { border-bottom: 0; border-right: 1px solid var(--line); }
  .plan:last-child { border-right: 0; }
}

/* ── Fortschritt / Fehler ───────────────────────────────────────────────── */
.status-page { padding: var(--s-8) 0; min-height: calc(100vh - 260px); }
.status-card { max-width: 640px; }
.status-card h1 { font-size: var(--t-32); }
.status-url { font-family: var(--f-mono); font-size: var(--t-14); color: var(--text-2); word-break: break-all; margin-top: var(--s-2); }
.progress-block { margin-top: var(--s-6); display: grid; gap: var(--s-2); }
.progress-row { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--t-14); }
.progress-stage { font-weight: 600; }
progress.progress {
  appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 4px;
  background: var(--ring-track); overflow: hidden; color: var(--accent);
}
progress.progress::-webkit-progress-bar { background: var(--ring-track); border-radius: 4px; }
progress.progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; transition: width .4s ease-out; }
progress.progress::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
.stage-list { list-style: none; margin-top: var(--s-6); display: grid; gap: 0; border-top: 1px solid var(--line); font-size: var(--t-14); }
.stage-list li { display: flex; gap: var(--s-3); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text-3); }
.stage-list li svg { width: 16px; height: 16px; flex: none; }
.stage-list li.is-done { color: var(--text-2); }
.stage-list li.is-done svg { color: var(--ok); }
.stage-list li.is-active { color: var(--text); font-weight: 600; }
.stage-dot { width: 16px; height: 16px; display: grid; place-items: center; }
.stage-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-note { margin-top: var(--s-5); font-size: var(--t-14); color: var(--text-2); }
.error-code { font-family: var(--f-mono); font-size: var(--t-12); color: var(--text-3); }

/* ── Dashboard ──────────────────────────────────────────────────────────── */
.report-head { padding: var(--s-6) 0 var(--s-6); border-bottom: 1px solid var(--line); }
.report-head-grid { display: grid; gap: var(--s-5); }
.report-title .label { margin-bottom: var(--s-2); }
.report-title h1 { font-size: var(--t-32); letter-spacing: -0.02em; word-break: break-word; }
.report-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: var(--s-3); font-size: var(--t-14); color: var(--text-2); }
.report-meta a { color: var(--text-2); }
.report-actions { margin-top: var(--s-4); }
.overall { display: flex; gap: var(--s-5); align-items: center; }
.overall-text { display: grid; gap: 4px; font-size: var(--t-14); }
.overall-text strong { font-size: var(--t-18); font-family: var(--f-display); }
.coverage { display: grid; gap: 6px; margin-top: 6px; width: 200px; max-width: 100%; }
@media (min-width: 900px) {
  .report-head-grid { grid-template-columns: 1fr auto; align-items: center; gap: var(--s-7); }
}
.reused-note { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; }
.reused-note form { margin: 0; }

.sources { list-style: none; display: grid; gap: 0; margin-top: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.sources li { display: grid; grid-template-columns: 10px 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: var(--t-14); }
.sources li:last-child { border-bottom: 0; }
.sources .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--text-3); }
.sources .is-ok .dot { background: var(--ok); border-color: var(--ok); }
.sources .is-off .dot { background: transparent; border-color: var(--text-3); }
.sources .is-connect .dot { border-style: dashed; }
.sources .src-name { font-weight: 600; }
.sources .src-detail { grid-column: 2; color: var(--text-3); font-size: var(--t-13); }
.sources .src-state { color: var(--text-2); font-size: var(--t-13); grid-row: 1; grid-column: 3; }
@media (min-width: 900px) {
  .sources { grid-template-columns: repeat(3, 1fr); }
  .sources li { border-right: 1px solid var(--line); }
  .sources li:nth-child(3n) { border-right: 0; }
  .sources li:nth-last-child(-n+3) { border-bottom: 0; }
}

.report-layout { display: grid; gap: var(--s-6); padding-block: var(--s-6) var(--s-8); }
@media (min-width: 1080px) { .report-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 48px; } }

/* Seitenleiste */
.sidebar { display: none; }
@media (min-width: 1080px) {
  .sidebar { display: block; }
  .sidebar-inner { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-bottom: var(--s-4); scrollbar-width: thin; }
}
.side-nav ol { list-style: none; display: grid; gap: 1px; }
.side-nav a {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-2);
  padding: 7px 10px; border-radius: var(--r-m); color: var(--text-2); text-decoration: none; font-size: var(--t-14);
}
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.is-active { background: var(--surface); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); font-weight: 600; }
.side-nav .num { font-size: var(--t-12); color: var(--text-3); }
.side-nav .side-sub { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }

/* Filter */
.filters { display: grid; gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.filters[hidden] { display: none; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.filters legend { padding: 0; margin-bottom: 4px; }
.filters .check { font-size: var(--t-14); }
.filters input[type="search"] { min-height: 40px; font-size: var(--t-14); }
.filter-count { font-size: var(--t-13); color: var(--text-2); min-height: 1.4em; }

/* Handy-Leiste im Bericht */
.mobile-bar {
  position: sticky; top: var(--header-h); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line);
  margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter); display: flex; gap: var(--s-2);
}
.mobile-bar > details { flex: 1; position: relative; }
.mobile-bar > details > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); cursor: pointer; font-size: var(--t-14); font-weight: 600;
}
.mobile-bar > details > summary::-webkit-details-marker { display: none; }
.mobile-bar > details > summary svg { width: 16px; height: 16px; color: var(--text-3); }
.mobile-bar .mb-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); box-shadow: 0 12px 32px rgb(0 0 0 / .14); padding: var(--s-2); max-height: 65vh; overflow-y: auto;
}
.mobile-bar .mb-filter .mb-panel { left: auto; width: min(320px, calc(100vw - 32px)); padding: var(--s-4); }
.mobile-bar .mb-panel .filters { margin: 0; padding: 0; border: 0; }
.mobile-bar > details:last-child .mb-panel { right: 0; }
.mobile-bar .side-nav a { padding: 10px; }
.mobile-bar .mb-filter { flex: 0 0 auto; }
@media (min-width: 1080px) { .mobile-bar { display: none; } }

/* Bericht-Blöcke */
.block { padding-top: var(--s-6); }
.block + .block { margin-top: var(--s-6); border-top: 1px solid var(--line); }
.block:first-child { padding-top: 0; }
.block-head { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: baseline; justify-content: space-between; margin-bottom: var(--s-4); }
.block-head h2 { font-size: var(--t-24); }
.block-head p { color: var(--text-2); font-size: var(--t-14); }
.block-intro { color: var(--text-2); margin: -6px 0 var(--s-4); max-width: 70ch; }

/* Kategorie-Übersicht: Zeilen in einem Panel */
.cat-table { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.cat-table + .cat-table { margin-top: var(--s-4); }
.cat-table-head { padding: 10px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s-3); background: var(--surface-2); border-radius: var(--r-l) var(--r-l) 0 0; }
.cat-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.cat-row:last-child { border-bottom: 0; }
.cat-row:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.cat-row .ring { grid-row: span 2; }
.cat-name { font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cat-name .num { font-weight: 400; color: var(--text-3); font-size: var(--t-12); }
.cat-sub { font-size: var(--t-13); color: var(--text-2); display: flex; flex-wrap: wrap; gap: 2px 12px; grid-column: 2; }
.cat-side { grid-row: 1 / span 2; grid-column: 3; display: grid; justify-items: end; gap: 6px; }
.cat-problems { font-size: var(--t-13); color: var(--text-2); }
.cat-problems strong { color: var(--text); font-family: var(--f-mono); }
@media (min-width: 720px) {
  .cat-row { grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1fr) auto; }
  .cat-row .ring { grid-row: auto; }
  .cat-sub { grid-column: 3; }
  .cat-side { grid-row: auto; grid-column: 4; grid-auto-flow: column; align-items: center; gap: 12px; }
}

/* Kennzahlen-Leiste */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.facts > div { padding: 14px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: grid; gap: 2px; }
.facts > div:nth-child(2n) { border-right: 0; }
.facts dt { font-size: var(--t-13); color: var(--text-2); }
.facts dd { margin: 0; font: 600 var(--t-20)/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
.facts dd small { font: 400 var(--t-13) var(--f-text); color: var(--text-3); }
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts > div { border-bottom: 0; }
  .facts > div:nth-child(2n) { border-right: 1px solid var(--line); }
  .facts > div:last-child { border-right: 0; }
}
@media (max-width: 719px) { .facts > div:nth-last-child(-n+2) { border-bottom: 0; } }

/* Maßnahmen-Liste (Top 10) */
.actions-list { list-style: none; counter-reset: act; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.actions-list > li { counter-increment: act; display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.actions-list > li:last-child { border-bottom: 0; }
.actions-list > li::before { content: counter(act); font: 600 var(--t-14)/1.5 var(--f-mono); color: var(--text-3); grid-row: span 2; }
.act-title { font-weight: 600; }
.act-title a { color: var(--text); text-decoration: none; }
.act-title a:hover { text-decoration: underline; }
.act-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--t-13); color: var(--text-2); }

/* Agentur-Hinweis im Bericht */
.cta-inline { display: grid; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--signet); }
.cta-inline p { color: var(--text-2); max-width: 64ch; }
.cta-inline strong { color: var(--text); font-size: var(--t-18); font-family: var(--f-display); }
@media (min-width: 800px) { .cta-inline { grid-template-columns: 1fr auto; align-items: center; gap: var(--s-6); } }

/* Kategorie-Abschnitt */
.cat-section-head { display: flex; gap: var(--s-4); align-items: center; margin-bottom: var(--s-3); }
.cat-section-head h2 { font-size: var(--t-24); }
.cat-section-head .cat-section-sub { font-size: var(--t-14); color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; align-items: center; }
.cat-note { font-size: var(--t-14); margin-bottom: var(--s-4); }
.cat-empty { padding: var(--s-4) var(--s-5); border: 1px dashed var(--line-2); border-radius: var(--r-l); color: var(--text-2); font-size: var(--t-14); }

/* Befunde */
.findings { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.findings + .findings, .findings + .more-group, .more-group + .findings { margin-top: var(--s-3); }
.finding { border-bottom: 1px solid var(--line); }
.finding:last-child { border-bottom: 0; }
.finding > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr 16px; gap: 6px 12px; align-items: start;
  padding: 12px 16px;
}
.finding > summary::-webkit-details-marker { display: none; }
.finding > summary:hover { background: var(--surface-2); }
.finding > summary .f-title { font-weight: 600; line-height: 1.4; }
.finding > summary .f-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--t-13); color: var(--text-3); }
.finding > summary .chev { width: 16px; height: 16px; color: var(--text-3); margin-top: 3px; transition: transform .15s ease-out; }
.finding[open] > summary .chev { transform: rotate(180deg); }
.finding[open] > summary { background: var(--surface-2); }
.finding .sev { margin-top: 1px; }
@media (min-width: 720px) {
  .finding > summary { grid-template-columns: 104px 1fr auto 16px; align-items: center; }
  .finding > summary .f-tags { grid-column: 3; justify-content: flex-end; }
}
.f-body { padding: var(--s-4) 16px var(--s-5); display: grid; gap: var(--s-4); font-size: var(--t-16); border-top: 1px solid var(--line); }
@media (min-width: 720px) { .f-body { padding-left: calc(16px + 104px + 12px); } }
.f-body h3 { font: 600 var(--t-12)/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.f-body p { color: var(--text); max-width: 72ch; }
.f-fix { border-left: 2px solid var(--accent); padding-left: var(--s-3); }
.f-specs { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: var(--t-14); color: var(--text-2); }
.f-specs strong { color: var(--text); font-weight: 600; }
.f-urls { list-style: none; display: grid; gap: 2px; font-family: var(--f-mono); font-size: var(--t-13); }
.f-urls li { word-break: break-all; }
.f-urls a { color: var(--text-2); }
.f-evidence { list-style: none; display: grid; gap: 4px; }
.f-evidence li { font-family: var(--f-mono); font-size: var(--t-13); background: var(--surface-2); padding: 6px 10px; border-radius: var(--r-s); word-break: break-word; white-space: pre-wrap; color: var(--text-2); }
.finding.is-hidden, .more-group.is-hidden { display: none; }

.more-group { border: 1px solid var(--line); border-radius: var(--r-l); background: transparent; }
.more-group > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); font-size: var(--t-14); color: var(--text-2); font-weight: 600; }
.more-group > summary::-webkit-details-marker { display: none; }
.more-group > summary svg { width: 16px; height: 16px; transition: transform .15s ease-out; }
.more-group[open] > summary svg { transform: rotate(180deg); }
.more-group[open] > summary { border-bottom: 1px solid var(--line); }
.more-group .findings { border: 0; border-radius: 0 0 var(--r-l) var(--r-l); }
.no-match { padding: var(--s-4); color: var(--text-2); font-size: var(--t-14); border: 1px dashed var(--line-2); border-radius: var(--r-l); }
.no-match[hidden] { display: none; }

/* Performance */
.perf-grid { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .perf-grid { grid-template-columns: 1fr 1fr; } }
.perf-col { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.perf-col-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.perf-col-head h3 { font-size: var(--t-18); }
.perf-part { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.perf-part:last-child { border-bottom: 0; }
.perf-part-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.perf-part-head h4 { font: 600 var(--t-14)/1.3 var(--f-text); }
.lh-scores { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lh-scores li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: var(--t-12); color: var(--text-2); }
.metrics { width: 100%; border-collapse: collapse; font-size: var(--t-14); }
.metrics th, .metrics td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; }
.metrics tr:last-child th, .metrics tr:last-child td { border-bottom: 0; }
.metrics th { font-weight: 500; color: var(--text-2); }
.metrics th abbr { text-decoration: none; font-family: var(--f-mono); color: var(--text); font-weight: 600; margin-right: 6px; }
.metrics td { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.metrics td .rate { font-family: var(--f-text); font-size: var(--t-12); margin-left: 8px; font-weight: 600; }
.rate-good { color: var(--ok); } .rate-mid { color: var(--warn); } .rate-bad { color: var(--crit); } .rate-none { color: var(--text-3); }
.perf-empty { color: var(--text-2); font-size: var(--t-14); }
.opps { list-style: none; display: grid; gap: 6px; font-size: var(--t-14); }
.opps li { display: flex; justify-content: space-between; gap: 12px; }
.opps li .num { color: var(--text-2); white-space: nowrap; }

/* Seitenliste */
.pages-table td.status-err { color: var(--crit); font-weight: 600; }
.pages-table .page-title { display: block; color: var(--text-2); font-size: var(--t-13); margin-top: 2px; }
@media (max-width: 719px) {
  .pages-table thead { display: none; }
  .pages-table, .pages-table tbody, .pages-table tr, .pages-table td { display: block; width: 100%; }
  .pages-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .pages-table tr:last-child { border-bottom: 0; }
  .pages-table td { border: 0; padding: 2px 0; text-align: left !important; }
  .pages-table td[data-label]::before { content: attr(data-label) ": "; color: var(--text-3); font-size: var(--t-12); }
}

/* Google verbinden */
.connect-box { border: 1px dashed var(--line-2); border-radius: var(--r-l); padding: var(--s-5); display: grid; gap: var(--s-4); }
.connect-box .connect-list { border-top: 1px solid var(--line); }

.notes-list { list-style: disc; padding-left: 1.2rem; color: var(--text-2); font-size: var(--t-14); display: grid; gap: 4px; }

/* ── Maßnahmenplan ──────────────────────────────────────────────────────── */
.plan-head { padding: var(--s-6) 0; border-bottom: 1px solid var(--line); }
.plan-head h1 { font-size: var(--t-32); }
.plan-list { list-style: none; counter-reset: plan; padding-block: var(--s-5) var(--s-8); padding-inline: 0; display: grid; gap: 0; }
.plan-item { counter-increment: plan; display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.plan-item::before { content: counter(plan, decimal-leading-zero); font: 600 var(--t-18)/1.3 var(--f-mono); color: var(--text-3); }
.plan-item h2 { font-size: var(--t-20); margin-bottom: var(--s-2); }
.plan-item .f-specs { margin-bottom: var(--s-3); }
.plan-item .plan-body { display: grid; gap: var(--s-3); }
.plan-item .plan-body h3 { font: 600 var(--t-12)/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.print-only { display: none; }

/* ── Fuß ────────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: var(--s-7) 0 var(--s-6); font-size: var(--t-14); color: var(--text-2); }
.footer-grid { display: grid; gap: var(--s-5); }
.footer-grid nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-by a { color: var(--text); font-weight: 600; }
.footer-legal { margin-top: var(--s-5); font-size: var(--t-12); color: var(--text-3); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }

/* ── Fehlerseiten ───────────────────────────────────────────────────────── */
.error-page { padding: var(--s-9) 0; }
.error-page .label { margin-bottom: var(--s-3); }
.error-page h1 { font-size: var(--t-48); max-width: 18ch; }
.error-page p { margin-top: var(--s-4); color: var(--text-2); max-width: 56ch; }
.error-page .btn-row { margin-top: var(--s-6); }

/* Lead-Formular */
.lead-grid { display: grid; gap: var(--s-7); padding-block: var(--s-7) var(--s-8); }
@media (min-width: 960px) { .lead-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; } }
.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--s-5); }
@media (min-width: 720px) { .form-panel { padding: var(--s-6); } }
.form-2col { display: grid; gap: var(--s-4); }
.form-2col .field + .field { margin-top: 0; }
@media (min-width: 640px) { .form-2col { grid-template-columns: 1fr 1fr; } }
.form-stack { display: grid; gap: var(--s-4); }
.form-stack .field + .field { margin-top: 0; }
.audit-ref { display: grid; gap: 4px; padding: var(--s-3) var(--s-4); background: var(--surface-2); border-radius: var(--r-m); font-size: var(--t-14); }
.aside-list { list-style: none; display: grid; gap: var(--s-4); }
.aside-list li { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.aside-list strong { display: block; margin-bottom: 2px; }
.aside-list p { color: var(--text-2); font-size: var(--t-14); }

/* ── Bewegung ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ── Druck ──────────────────────────────────────────────────────────────── */
@media print {
  :root, :root[data-theme="dark"] {
    color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #f2f2f2; --text: #000; --text-2: #333; --text-3: #555;
    --line: #ccc; --line-2: #999; --accent: #000; --accent-soft: #eee;
  }
  @page { margin: 16mm 14mm; }
  body { font-size: 10.5pt; background: #fff; }
  .site-header, .site-footer, .skip-link, .no-print, .mobile-bar, .sidebar, .theme-toggle, .btn { display: none !important; }
  .print-only { display: block; }
  a { color: #000; text-decoration: none; }
  .plan-item, .finding, .cat-row { break-inside: avoid; }
  details > *:not(summary) { display: block; }
  .wrap { max-width: none; padding: 0; }
  .report-layout { display: block; }
}

/* Signet */
.brand-mark .mark-bg { fill: var(--text); }
.brand-mark .mark-track { stroke: color-mix(in srgb, var(--bg) 22%, var(--text)); }
.brand-mark .mark-arc { stroke: var(--bg); }
.brand-mark .mark-dot { fill: var(--signet); }

/* Arbeitsschritte: Haken nur bei erledigten, Punkt beim laufenden */
.stage-list li { position: relative; padding-left: 28px; }
.stage-list li svg { position: absolute; left: 0; top: 50%; margin-top: -8px; opacity: 0; }
.stage-list li.is-done svg { opacity: 1; }
.stage-list li::before { content: ""; position: absolute; left: 5px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--line-2); }
.stage-list li.is-done::before { display: none; }
.stage-list li.is-active::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.finding > summary .sev { justify-self: start; }
.perf-source { margin: var(--s-3) 0 var(--s-4); }
.notes-head { font-size: var(--t-16); margin: var(--s-5) 0 var(--s-2); }
.plans-note { margin-top: var(--s-4); max-width: 70ch; }
.plan-cta { margin-bottom: var(--s-8); }
.report-foot { margin-top: var(--s-7); max-width: 72ch; }
.h-small { font-size: var(--t-20); margin-bottom: var(--s-2); }
@media (max-width: 599px) {
  .ring-lg { width: 104px; height: 104px; }
  .ring-lg .ring-value { font-size: 2rem; }
  .report-title h1 { font-size: 1.6rem; }
}

/* KI-Assistent */
.ask-form { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.ask-input { flex: 1 1 280px; min-height: 44px; padding: 0 12px; border: 1px solid var(--field-line, var(--line-2));
  border-radius: var(--r-m); background: var(--surface); color: var(--text); font: inherit; }
.ask-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-suggest { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-2); }
.ask-answer { margin-top: var(--s-4); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--surface); white-space: pre-line; line-height: 1.6; }
.ask-answer.is-error { border-color: var(--line-2); color: var(--text-2); }
.ask-note { font-size: var(--t-14); margin-top: var(--s-2); }
