/* ZwoMailCheck – zwobyte Corporate Design (Handbuch 08/2025).
   Leitmotiv ist das "o" aus dem Logo: rund aussen, eckig innen. Flaechen haben runde
   Ecken, alles Digitale (Ampel-Pixel, Buttons, Codeblöcke) ist ein Quadrat.
   Keine Inline-Styles, keine externen Quellen (CSP). */

@font-face {
  font-family: "Funnel Sans";
  src: url("fonts/funnel-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Funnel Sans";
  src: url("fonts/funnel-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Funnel Display";
  src: url("fonts/funnel-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Funnel Display";
  src: url("fonts/funnel-display-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Farben ---------- */

:root {
  /* Hausfarben */
  --eggplant: #3c1e37;
  --byte-blue: #669eff;
  --pulse-orange: #fe6030;
  --soft-eggplant: #c7b5f1;
  --clearbyte: #9dcdff;
  --light-orange: #fe9c7d;

  /* Farbpaare: light-dark(hell, dunkel) */
  --bg: light-dark(#ffffff, #24121f);
  --surface: light-dark(#ffffff, #2f1829);
  --tint: light-dark(#f6f2fc, #3c1e37);
  --line: light-dark(#e3daee, #4d2f47);
  --line-strong: light-dark(#c9bbd9, #6b4c65);
  --ink: light-dark(var(--eggplant), #f4effa);
  --muted: light-dark(#6a5566, #c3b2c0);
  --link-line: light-dark(var(--byte-blue), var(--clearbyte));
  --focus: light-dark(#2f6fd6, var(--clearbyte));
  --pixel: var(--pulse-orange);
  --button-bg: light-dark(var(--eggplant), var(--soft-eggplant));
  --button-ink: light-dark(#ffffff, #24121f);
  --button-hover-bg: light-dark(var(--pulse-orange), var(--light-orange));
  --button-hover-ink: light-dark(var(--eggplant), #24121f);
  --code-bg: light-dark(#faf7fd, #170b14);
  --code-ink: light-dark(var(--eggplant), #f4effa);
  --code-muted: light-dark(#6a5566, #b9a8b6);

  /* Ampel: Farbe + Symbol, nie nur Farbe (Konzept Kap. 5) */
  --red: light-dark(#c4262e, #ff6f61);
  --yellow: light-dark(#e0a21b, #f2b544);
  --green: light-dark(#1f7f4a, #4fc485);
  --grey: light-dark(#857784, #9b8b98);
  --info: light-dark(#2f6fd6, var(--byte-blue));  /* neutral, Byte Blue (hell abgedunkelt fuer Kontrast) */
  --on-red: light-dark(#ffffff, #24121f);
  --on-yellow: light-dark(var(--eggplant), #24121f);
  --on-green: light-dark(#ffffff, #24121f);
  --on-grey: light-dark(#ffffff, #24121f);
  --on-info: light-dark(#ffffff, #24121f);

  --radius: 12px;
  --radius-sm: 6px;
  --font-text: "Funnel Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Funnel Display", "Funnel Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
  color-scheme: light dark;  /* Farben unten per light-dark(); Umschalter setzt data-theme */
}

/* Umschalter: data-theme auf <html> ueberstimmt das System (static/theme.js) */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

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

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem); }
h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
p + p { margin-top: 0.75em; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

code, pre { font-family: var(--font-mono); font-size: 0.9em; }
code { overflow-wrap: anywhere; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.frame {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.frame-narrow { max-width: calc(800px + 2 * var(--gutter)); }

.lead { font-size: 1.1875rem; line-height: 1.55; max-width: 38em; }
.hint { color: var(--muted); font-size: 0.9375rem; max-width: 46em; }
.actions { margin-top: 32px; }

.notice {
  margin-top: 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--yellow);
  background: var(--tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- Kopf ---------- */

.top { border-bottom: 1px solid var(--line); }
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

/* Schutzraum des Logos: mindestens die Hoehe des "z" (bei 26px Logo ca. 14px) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo { display: block; height: 26px; width: auto; }
.brand-product {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
  letter-spacing: -0.01em;
}

.top-tools { display: flex; align-items: center; gap: 8px; }

/* Farbschema-Umschalter: quadratisch wie alle digitalen Elemente */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) {
  .theme-toggle:hover { border-color: var(--line-strong); box-shadow: inset 0 -2px 0 var(--pixel); }
}
.theme-icon { display: none; width: 20px; height: 20px; }
.theme-toggle[data-choice="system"] .theme-icon-system,
.theme-toggle[data-choice="light"] .theme-icon-light,
.theme-toggle[data-choice="dark"] .theme-icon-dark { display: block; }

/* Logos je wirksamem Farbschema (Wahl im Umschalter, sonst System) */
:root[data-theme="light"] .on-dark,
:root[data-theme="dark"] .on-light { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .on-dark { display: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .on-light { display: none; } }

.langs { display: flex; gap: 4px; font-size: 0.9375rem; }
.langs a, .langs span {
  display: inline-block;
  min-width: 40px;
  padding: 6px 8px;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}
.langs a { color: var(--muted); }
.langs a:hover { color: var(--ink); }
.langs [aria-current] {
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--pixel);
}

@media (max-width: 420px) {
  .brand { gap: 12px; }
  .brand-logo { height: 22px; }
  .brand-product { font-size: 1.25rem; padding-left: 12px; }
}

/* ---------- Fuss ---------- */

.bottom {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--tint);
  color: var(--muted);
  font-size: 0.9375rem;
}
.bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: 40px 48px;
}
.bottom-service { margin-bottom: 20px; }
/* Logo-Variante 1 mit Unterzeile, Hoehe 46px -> "z" ca. 19px Schutzraum */
.bottom-logo { display: inline-block; padding: 0; }
.bottom-logo img { display: block; height: 46px; width: auto; }
.bottom-claim { margin-top: 20px; color: var(--ink); font-family: var(--font-display); font-size: 1.125rem; }
.bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bottom-links a { color: var(--ink); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 2px solid var(--button-bg);
  border-radius: 0;
  background: var(--button-bg);
  color: var(--button-ink);
  font: 600 1rem/1.2 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  .button:hover {
    background: var(--button-hover-bg);
    border-color: var(--button-hover-bg);
    color: var(--button-hover-ink);
  }
}
.button-large { min-height: 56px; padding: 14px 28px; font-size: 1.125rem; }
.button-secondary, .button-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.button-quiet { border-width: 1px; border-color: var(--line-strong); }
.button-small { min-height: 34px; padding: 4px 12px; font-size: 0.875rem; }
.button.is-done { border-color: var(--green); }

/* ---------- Ampel-Pixel ---------- */
/* Quadrat in Ampelfarbe mit Symbol: Haken (gruen), Ausrufezeichen (gelb),
   Kreuz (rot), Strich (grau/nicht pruefbar). */

.px {
  --s: 20px;
  --stroke: max(2px, calc(var(--s) * 0.12));
  position: relative;
  flex: none;
  display: inline-block;
  width: var(--s);
  height: var(--s);
  background: var(--grey);
  color: var(--on-grey);
}
.px-sm { --s: 16px; }
.px-lg { --s: 28px; }
.px-xl { --s: 64px; }
.px::before, .px::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
}
/* grau: Strich */
.px::before { width: 50%; height: var(--stroke); transform: translate(-50%, -50%); }
.px::after { display: none; }

.px.light-green { background: var(--green); color: var(--on-green); }
.px.light-green::before {
  width: 26%;
  height: 50%;
  background: none;
  border: solid currentColor;
  border-width: 0 var(--stroke) var(--stroke) 0;
  transform: translate(-50%, -62%) rotate(45deg);
}

.px.light-yellow { background: var(--yellow); color: var(--on-yellow); }
.px.light-yellow::before { width: var(--stroke); height: 38%; transform: translate(-50%, -78%); }
.px.light-yellow::after {
  display: block;
  width: var(--stroke);
  height: var(--stroke);
  transform: translate(-50%, 160%);
}

/* blau: "i" - Hinweis, weder bestanden noch Fehler */
.px.light-info { background: var(--info); color: var(--on-info); }
.px.light-info::before { width: var(--stroke); height: 38%; transform: translate(-50%, -21%); }
.px.light-info::after {
  display: block;
  width: var(--stroke);
  height: var(--stroke);
  transform: translate(-50%, -190%);
}

.px.light-red { background: var(--red); color: var(--on-red); }
.px.light-red::before, .px.light-red::after {
  display: block;
  width: 58%;
  height: var(--stroke);
  transform: translate(-50%, -50%) rotate(45deg);
}
.px.light-red::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Startseite ---------- */

.hero { padding-block: 56px 72px; overflow: hidden; }
.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding-block: 88px 112px; }
  /* Goldener Schnitt: Text 1.618 : Beispiel 1 */
  .hero-grid { grid-template-columns: 1.618fr 1fr; gap: 64px; }
}

.hero-title {
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title span { display: block; }
.hero-copy .lead { color: var(--muted); }

/* Bot-Nachweis (ALTCHA) nur bei Bedarf: ueber dem Start-Knopf, in den Hausfarben */
.bot-check { flex-basis: 100%; }
altcha-widget {
  --altcha-border-radius: 0;
  --altcha-color-base: var(--surface);
  --altcha-color-border: var(--line-strong);
  --altcha-color-border-focus: var(--focus);
  --altcha-color-text: var(--ink);
  --altcha-color-active: var(--button-bg);
  --altcha-color-error-text: var(--red);
  --altcha-max-width: 320px;
}

.hero-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 36px;
}
.hero-note { color: var(--muted); font-size: 0.9375rem; }

/* Beispielbefund auf dem Pixel: das Quadrat aus dem Logo als Flaeche */
.sample {
  position: relative;
  margin: 0;
  padding: 28px 0 0 28px;
  max-width: 400px;
  width: 100%;
  justify-self: start;
}
@media (min-width: 900px) { .sample { justify-self: end; } }
.sample-pixel {
  position: absolute;
  top: 0;
  left: 0;
  width: 61.8%;
  aspect-ratio: 1;
  background: var(--pixel);
}
.sample-card {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 8px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sample-card li {
  display: grid;
  grid-template-columns: auto 4.2em 1fr;
  align-items: center;
  gap: 14px;
  padding-block: 14px;
}
.sample-card li + li { border-top: 1px solid var(--line); }
.sample-card b { font-family: var(--font-display); font-weight: 600; }
.sample-card li > span:last-child { color: var(--muted); font-size: 0.9375rem; }

.band {
  background: var(--tint);
  border-block: 1px solid var(--line);
  padding-block: 64px 72px;
}
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
.steps li { counter-increment: step; max-width: 34em; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }

.checks-section { padding-block: 72px 0; }
.checks-grid { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .checks-grid { grid-template-columns: 1fr 1.618fr; gap: 64px; }
}
.checks { margin: 0 0 24px; }
.checks > div {
  display: grid;
  gap: 4px 24px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.checks > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 560px) {
  .checks > div { grid-template-columns: 9em 1fr; }
}
.checks dt { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.checks dd { margin: 0; color: var(--muted); }
.checks-section .hint + .hint { margin-top: 8px; }

/* ---------- Warteseite ---------- */

.wait { padding-top: 56px; }
.wait h1 { margin-bottom: 12px; }
.wait .lead { color: var(--muted); }

.address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--tint);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.address-value {
  font-size: clamp(1.05rem, 0.8rem + 1.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  min-width: 0;
}
.address-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 14px;
}

.progress {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 600px) { .progress { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.progress li {
  --state: var(--line-strong);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 3px solid var(--state);
  color: var(--muted);
  font-size: 0.9375rem;
}
.progress li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--state);
}
/* erledigte Schritte */
.wait[data-status="received"] .progress-waiting,
.wait[data-status="analyzing"] :is(.progress-waiting, .progress-received),
.wait[data-status="done"] :is(.progress-waiting, .progress-received, .progress-analyzing, .progress-done) {
  --state: var(--ink);
  color: var(--ink);
}
.wait[data-status="received"] .progress-waiting::before,
.wait[data-status="analyzing"] :is(.progress-waiting, .progress-received)::before,
.wait[data-status="done"] .progress li::before { background: var(--ink); }
/* laufender Schritt: der Pixel pulsiert */
.wait[data-status="waiting"] .progress-waiting,
.wait[data-status="received"] .progress-received,
.wait[data-status="analyzing"] .progress-analyzing {
  --state: var(--pixel);
  color: var(--ink);
  font-weight: 600;
}
.wait[data-status="waiting"] .progress-waiting::before,
.wait[data-status="received"] .progress-received::before,
.wait[data-status="analyzing"] .progress-analyzing::before {
  background: var(--pixel);
  animation: pixel-pulse 1.4s ease-in-out infinite;
}
@keyframes pixel-pulse {
  50% { transform: scale(0.55); }
}

.status { margin-top: 28px; font-size: 1.125rem; font-weight: 600; min-height: 1.6em; }
.wait[data-status="failed"] .status,
.wait[data-status="expired"] .status { color: var(--red); }
.wait[data-status="failed"] .progress,
.wait[data-status="expired"] .progress { opacity: 0.5; }
.wait .actions { margin-top: 20px; }

/* ---------- Ergebnisseite ---------- */

.result { padding-top: 48px; }
.result-heading { margin-bottom: 24px; }

.verdict {
  --signal: var(--grey);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--signal) 13%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--signal) 45%, var(--bg));
}
.verdict.light-red { --signal: var(--red); }
.verdict.light-yellow { --signal: var(--yellow); }
.verdict.light-green { --signal: var(--green); }
.verdict.light-info { --signal: var(--info); }
.verdict-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  line-height: 1.25;
  text-wrap: pretty;
}
.verdict-meta { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .verdict { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px; }
  .verdict .px-xl { --s: 48px; }
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "px title" "px sev";
  align-items: start;
  align-content: start;
  gap: 2px 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.tile:hover { border-color: var(--ink); }
@media (max-width: 520px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 12px; gap: 2px 10px; }
  .tile .px { --s: 20px; }
}
.tile .px { grid-area: px; --s: 24px; margin-top: 1px; }
.tile-title { grid-area: title; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.tile-severity { grid-area: sev; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.02em; }

.area {
  margin-top: 40px;
  scroll-margin-top: 24px;
}
.area-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.area-head h2 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tag {
  --signal: var(--grey);
  flex: none;
  padding: 3px 10px;
  border: 1px solid var(--signal);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag.light-red { --signal: var(--red); }
.tag.light-yellow { --signal: var(--yellow); }
.tag.light-green { --signal: var(--green); }
.tag.light-info { --signal: var(--info); }
.area > .hint { margin-top: 14px; }

.findings { list-style: none; margin: 0; padding: 0; }
.findings > li { border-bottom: 1px solid var(--line); }

.finding > summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 4px;
  cursor: pointer;
  list-style: none;
}
.finding > summary::-webkit-details-marker,
.delivery > summary::-webkit-details-marker { display: none; }
.finding > summary::after,
.delivery > summary::after {
  /* Auf/Zu-Anzeige: kleiner Winkel rechts */
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0.45em 4px 0 0;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.finding[open] > summary::after,
.delivery[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
.finding > summary:hover .finding-summary { text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 0.2em; }
.finding .px { margin-top: 0.25em; }
.finding-summary { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.finding-subject {
  flex: none;
  max-width: 40%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
  text-align: right;
}
.finding-body {
  padding: 0 4px 20px 34px;
  color: var(--muted);
  max-width: 44em;
}
.finding-check { color: var(--ink); font-weight: 600; }
.finding-id {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  background: var(--tint);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}
.finding-body > * + * { margin-top: 10px; }

.recommendation {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--tint);
  border-left: 3px solid var(--link-line);
  color: var(--ink);
}
.recommendation-label { font-weight: 600; margin-bottom: 4px; }
.recommendation p + p { margin-top: 0; }
.recommendation p:not(.recommendation-label) { white-space: pre-line; }  /* Schritte aus dem Katalog */

@media (max-width: 560px) {
  .finding > summary { flex-wrap: wrap; }
  .finding-summary { flex: 1 1 calc(100% - 60px); }
  .finding-subject { order: 3; max-width: none; flex-basis: 100%; margin-left: 30px; text-align: left; line-height: 1.4; }
  .finding-body { padding-left: 30px; }
}

/* Codeblock mit Kopier-Button (DNS-Eintraege, Teilen-Link) */
.codeblock {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.codeblock-head, .codeblock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
}
.codeblock-head {
  border-bottom: 1px solid color-mix(in srgb, var(--code-ink) 15%, transparent);
  color: var(--code-muted);
  font-size: 0.875rem;
}
.codeblock-label code { color: var(--code-ink); }
.codeblock pre {
  margin: 0;
  padding: 14px 16px 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
}
.codeblock-row code { min-width: 0; padding-block: 6px; }
.codeblock-note {
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid color-mix(in srgb, var(--code-ink) 15%, transparent);
  color: var(--code-muted);
  font-size: 0.875rem;
}
.codeblock .button-quiet {
  flex: none;
  color: var(--code-ink);
  border-color: color-mix(in srgb, var(--code-ink) 40%, transparent);
}
@media (hover: hover) {
  .codeblock .button-quiet:hover {
    background: var(--code-ink);
    border-color: var(--code-ink);
    color: var(--code-bg);
  }
}
.codeblock .button.is-done { border-color: var(--green); }

.delivery {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.delivery > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
}
.delivery dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
  padding: 4px 20px 20px;
}
.delivery dt { color: var(--muted); }
.delivery dd { margin: 0; min-width: 0; }
@media (max-width: 520px) {
  .delivery dl { grid-template-columns: 1fr; gap: 2px; }
  .delivery dd + dt { margin-top: 10px; }
}

.result > .hint { margin-top: 20px; }

/* Hinweisbox: dezenter CTA */
.help {
  position: relative;
  margin-top: 40px;
  padding: 28px 28px 28px 76px;
  border-radius: var(--radius);
  background: var(--tint);
  border: 1px solid var(--line);
}
.help::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 32px;
  width: 24px;
  height: 24px;
  background: var(--pixel);
}
.help h2 { font-size: 1.3rem; margin-bottom: 8px; }
.help p { max-width: 40em; }
.help p + p { margin-top: 14px; }
.help-link { font-weight: 600; }
@media (max-width: 520px) {
  .help { padding: 64px 22px 24px; }
  .help::before { left: 22px; top: 24px; }
}

.share { margin-top: 40px; }
.share h2 { font-size: 1.3rem; }
.share .codeblock { margin-top: 12px; }
.share .hint { margin-top: 10px; }

/* ---------- Meldungsseite (404) ---------- */

/* Rechtstexte */
.legal { padding-block: 56px 72px; }
.legal h1 { margin-bottom: 20px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal p, .legal ul { max-width: 46em; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 8px; }
.legal .lead { color: var(--muted); }

.message { padding-top: 72px; }
.message .px { margin-bottom: 28px; }
.message h1 { margin-bottom: 12px; }
.message .lead { color: var(--muted); }

/* ---------- Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
