/* ==========================================================================
   Sonventory – Design System v3.1 „Studio Console"
   Zwei Farbwelten: Dunkles Studio (Standard) + warmes Papier (Light Mode).
   Folgt der Browser-Einstellung (prefers-color-scheme); der Header-Toggle
   überschreibt sie via <html data-theme="light|dark"> (persistiert in
   localStorage durch js/theme.js, VOR dem CSS-Paint, kein Flackern).
   Display: Bricolage Grotesque · Body: Archivo · Labels/Konsole: Monospace
   Die Analyse-Konsole (.report-card) bleibt bewusst in beiden Themes dunkel.

   ⚠ FARB-REGEL (nicht aufweichen): Erkennungsergebnisse werden NIE über
   Rot/Gelb/Grün codiert. Eine Ampel würde als rechtliche Entwarnung oder
   Warnung gelesen, genau das ist Sonventory nicht. Die Status-Pills
   (.pill-*) unterscheiden deshalb ausschließlich über Fläche, Kontrast und
   Rahmenstil. Grün/Amber bleiben allein Formular-Feedback (Validierung),
   niemals Aussage über Musik, Rechte oder Risiko.
   ========================================================================== */

/* ---------- Fonts (DSGVO-konform selbst gehostet, latin subset) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Design Tokens: DUNKEL (Standard) ---------- */
:root {
  color-scheme: dark;

  /* Flächen, bewusst Anthrazit statt OLED-Schwarz */
  --paper: #1a1c21;              /* Seiten-Hintergrund */
  --paper-2: #1f2228;            /* alternierende Sektionen */
  --paper-3: #262931;            /* Karten / Panels */
  --panel-2: #2c3039;
  --footer-bg: #16181d;
  --field-bg: #14161a;           /* Formularfelder */

  /* Text (warmes Papierweiß) */
  --ink: #f2efe8;
  --ink-soft: rgba(242, 239, 232, 0.8);
  --ink-dim: rgba(242, 239, 232, 0.66);
  --muted: #a8a297;
  --line: rgba(242, 239, 232, 0.12);
  --line-strong: rgba(242, 239, 232, 0.28);
  --hover-bg: rgba(242, 239, 232, 0.05);
  --hover-bg-strong: rgba(242, 239, 232, 0.09);
  --placeholder: rgba(242, 239, 232, 0.34);
  --dot: rgba(242, 239, 232, 0.05);

  /* Signalfarben, Rot ist reine Markenfarbe (Akzent, CTA, Häkchen),
     ausdrücklich KEINE Risikoaussage.
     Grün/Amber/Blau ausschließlich für Formular- und Systemfeedback
     (Validierung, Eingangsbestätigung, Infokästen), nie für
     Erkennungsergebnisse. */
  --red: #e63223;
  --red-bright: #ff5a44;
  --red-deep: #b32014;
  --red-soft: rgba(230, 50, 35, 0.16);
  --accent-grad-a: #ff5a44;
  --accent-grad-b: #ff8f6b;
  --green: #55b87e;
  --ok-ink: #55b87e;
  --err-ink: #ff9285;
  --amber: #e3a63c;
  --blue: #6ea8c9;

  /* Header / Overlays */
  --header-bg: rgba(26, 28, 33, 0.85);
  --header-solid: rgba(26, 28, 33, 0.98);
  --chip-bg: rgba(32, 35, 41, 0.72);
  --veil: rgba(26, 28, 33, 0.78);
  --hero-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  --hero-shadow-soft: 0 1px 16px rgba(0, 0, 0, 0.55);

  /* Konsole (in beiden Themes dunkel) */
  --console: #101216;
  --console-2: #16181d;
  --console-line: rgba(242, 239, 232, 0.12);
  --console-ink: #f2efe8;
  --console-muted: #a49e93;

  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8a297' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --font-body: 'Archivo', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  --r-sm: 8px;
  --r-md: 12px;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.32);
  --shadow-deep: 0 30px 90px rgba(0, 0, 0, 0.5);

  --max: 1120px;
  --z-header: 100;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  --show-sun: inline-flex;      /* Toggle zeigt Sonne = „mach's hell" */
  --show-moon: none;
}

/* ---------- Design Tokens: HELL (warmes Papier) ----------
   Zweimal notiert: einmal als expliziter Override (data-theme="light"),
   einmal für die Browser-Einstellung ohne Override. Inhaltlich identisch,
   Änderungen bitte immer in BEIDEN Blöcken nachziehen. */
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f2f0ea;
  --paper-2: #eceae2;
  --paper-3: #fdfcf9;
  --panel-2: #f1efe8;
  --footer-bg: #e9e6dd;
  --field-bg: #ffffff;
  --ink: #1d1c19;
  --ink-soft: rgba(29, 28, 25, 0.8);
  --ink-dim: rgba(29, 28, 25, 0.66);
  --muted: #6d675e;
  --line: rgba(29, 28, 25, 0.13);
  --line-strong: rgba(29, 28, 25, 0.3);
  --hover-bg: rgba(29, 28, 25, 0.05);
  --hover-bg-strong: rgba(29, 28, 25, 0.09);
  --placeholder: rgba(29, 28, 25, 0.36);
  --dot: rgba(29, 28, 25, 0.07);
  --red: #d42a1c;
  --red-bright: #c22315;
  --red-deep: #9a1b10;
  --red-soft: rgba(212, 42, 28, 0.12);
  --accent-grad-a: #c9271a;
  --accent-grad-b: #e6512f;
  --green: #2e7d4f;
  --ok-ink: #2e7d4f;
  --err-ink: #b3261a;
  --amber: #9a6b17;
  --blue: #35617d;
  --header-bg: rgba(242, 240, 234, 0.86);
  --header-solid: rgba(244, 242, 236, 0.98);
  --chip-bg: rgba(253, 252, 249, 0.78);
  --veil: rgba(242, 240, 234, 0.82);
  --hero-shadow: none;
  --hero-shadow-soft: none;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d675e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --shadow-soft: 0 18px 60px rgba(29, 28, 25, 0.1);
  --shadow-deep: 0 30px 90px rgba(29, 28, 25, 0.2);
  --show-sun: none;
  --show-moon: inline-flex;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --paper: #f2f0ea;
    --paper-2: #eceae2;
    --paper-3: #fdfcf9;
    --panel-2: #f1efe8;
    --footer-bg: #e9e6dd;
    --field-bg: #ffffff;
    --ink: #1d1c19;
    --ink-soft: rgba(29, 28, 25, 0.8);
    --ink-dim: rgba(29, 28, 25, 0.66);
    --muted: #6d675e;
    --line: rgba(29, 28, 25, 0.13);
    --line-strong: rgba(29, 28, 25, 0.3);
    --hover-bg: rgba(29, 28, 25, 0.05);
    --hover-bg-strong: rgba(29, 28, 25, 0.09);
    --placeholder: rgba(29, 28, 25, 0.36);
    --dot: rgba(29, 28, 25, 0.07);
    --red: #d42a1c;
    --red-bright: #c22315;
    --red-deep: #9a1b10;
    --red-soft: rgba(212, 42, 28, 0.12);
    --accent-grad-a: #c9271a;
    --accent-grad-b: #e6512f;
    --green: #2e7d4f;
    --ok-ink: #2e7d4f;
    --err-ink: #b3261a;
    --amber: #9a6b17;
    --blue: #35617d;
    --header-bg: rgba(242, 240, 234, 0.86);
    --header-solid: rgba(244, 242, 236, 0.98);
    --chip-bg: rgba(253, 252, 249, 0.78);
    --veil: rgba(242, 240, 234, 0.82);
    --hero-shadow: none;
    --hero-shadow-soft: none;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d675e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --shadow-soft: 0 18px 60px rgba(29, 28, 25, 0.1);
    --shadow-deep: 0 30px 90px rgba(29, 28, 25, 0.2);
    --show-sun: none;
    --show-moon: inline-flex;
  }
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 540px at 85% -12%, rgba(230, 50, 35, 0.09), transparent 60%),
    radial-gradient(900px 520px at -6% 4%, rgba(110, 168, 201, 0.05), transparent 55%),
    radial-gradient(circle, var(--dot) 1px, transparent 1.4px);
  background-size: auto, auto, 26px 26px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.03; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.06; }
h3 { font-size: 1.26rem; line-height: 1.14; }

p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.3em; }
li { margin-bottom: var(--sp-2); }

a { color: var(--red-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

strong { font-weight: 700; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-8) 0; }

button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

::selection { background: rgba(230, 50, 35, 0.45); color: #fff; }

/* ---------- Barrierefreiheit ---------- */
:focus-visible {
  outline: 3px solid rgba(230, 50, 35, 0.55);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper-3);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.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;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}
.container-narrow {
  width: min(100% - 32px, 840px);
  margin-inline: auto;
}

.section { position: relative; padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt {
  background-color: var(--paper-2);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px);
  background-size: 26px 26px;
  border-block: 1px solid var(--line);
}
.section-glow {
  background-image:
    radial-gradient(820px 460px at 82% 0%, rgba(230, 50, 35, 0.09), transparent 60%),
    radial-gradient(700px 480px at 4% 100%, rgba(110, 168, 201, 0.05), transparent 58%),
    radial-gradient(circle, var(--dot) 1px, transparent 1.4px);
  background-size: auto, auto, 26px 26px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto var(--sp-10);
  text-align: center;
}
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head .lead { margin-bottom: 0; margin-inline: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: var(--sp-3);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red-bright);
}

.lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper-3);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--red-bright); color: var(--ink); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn-primary {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, #e63223, #ff5a44);
  box-shadow: 0 10px 32px rgba(230, 50, 35, 0.3);
}
.btn-primary:hover { filter: brightness(1.08); color: #fff; box-shadow: 0 14px 40px rgba(230, 50, 35, 0.4); }

.btn-ghost { background: var(--hover-bg); }
.btn-ghost:hover { background: var(--hover-bg-strong); }

.btn-light-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-light-outline:hover { background: var(--hover-bg-strong); border-color: var(--ink-dim); color: var(--ink); }

.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 1.04rem; }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 0.95rem; }
.btn-block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn .spinner {
  width: 17px; height: 17px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sp-2);
  min-height: 66px;
  padding: 10px 0;
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
}
.logo svg {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(230, 50, 35, 0.22);
  flex: none;
}
.logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo .logo-text span { color: var(--red-bright); }

/* Theme-Umschalter */
.theme-toggle {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--hover-bg);
  color: var(--ink-dim);
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
  flex: none;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--red-bright); background: var(--hover-bg-strong); }
.theme-toggle .icon-sun { display: var(--show-sun); }
.theme-toggle .icon-moon { display: var(--show-moon); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--ink-dim);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease;
}
.site-nav a.nav-link:hover { color: var(--ink); background: var(--hover-bg); }
.site-nav a[aria-current="page"] { color: var(--red-bright); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper-3);
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex: none;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--header-solid);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-deep);
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link { min-height: 50px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a.nav-link:last-of-type { border-bottom-color: transparent; }
  .site-nav .btn { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 0 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}
/* Vignette über dem Canvas: hält die Textzone ruhig und lesbar */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 52% at 50% 40%, var(--veil), transparent 72%);
}
.hero-inner { position: relative; z-index: 2; display: block; }
.hero h1 {
  max-width: 820px;
  margin: 0 auto var(--sp-5);
  text-shadow: var(--hero-shadow);
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-grad-a), var(--accent-grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red-bright); /* Fallback */
}
.hero .lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  text-shadow: var(--hero-shadow-soft);
  text-wrap: balance;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 var(--sp-6);
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* Signalpunkt im Marken-Rot („Aufnahme läuft"), bewusst nicht grün:
   Grün am Kanal-Kontext liest sich als Entwarnung. */
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 10px var(--red-bright);
  flex: none;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0 0; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--ink-dim);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
}
.hero-trust svg { color: var(--red-bright); flex: none; }

/* ---------- Scan-Konsole (bleibt in beiden Themes dunkel) ---------- */
.report-card {
  position: relative;
  border: 1px solid var(--console-line);
  border-radius: var(--r-md);
  background: var(--console);
  color: var(--console-ink);
  box-shadow: var(--shadow-deep), 0 0 80px rgba(230, 50, 35, 0.09);
  overflow: hidden;
  padding: 0;
  max-width: 620px;
  margin: 44px auto 0;
  text-align: left;
  font-family: var(--font-mono);
}
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 46px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--console-line);
  background: var(--console-2);
}
.report-head strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--console-muted);
}
.win-dots { display: flex; gap: 6px; }
.win-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(242, 239, 232, 0.16);
  display: inline-block;
}
.win-dots i:first-child { background: rgba(230, 50, 35, 0.7); }
.chip-pdf {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: #e63223;
  border-radius: 5px;
  padding: 4px 8px;
}
.report-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 13px 16px;
  border-bottom: 1px solid rgba(242, 239, 232, 0.07);
}
.report-row .meta { flex: 1; min-width: 0; }
.report-row .meta .snd {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--console-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-row .meta .src { display: block; font-size: 0.74rem; color: var(--console-muted); margin-top: 2px; }

/* ---------- Technische Ergebnisstatus ----------
   Keine Ampel: unterschieden wird über Fläche, Kontrast und Rahmenstil,
   nie über Farbe. Reihenfolge der Prägnanz entspricht der Eindeutigkeit des
   Erkennungsergebnisses, nicht einer Bewertung. */
.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}
/* eindeutiger technischer Treffer: volle Fläche */
.pill-hit    { color: var(--console); background: var(--console-ink); }
/* mehrere mögliche Aufnahmen gemeldet */
.pill-multi  { color: var(--console-ink); background: rgba(242, 239, 232, 0.14); border-color: rgba(242, 239, 232, 0.34); }
/* technisch nicht eindeutig → manuelle Zuordnung */
.pill-manual { color: var(--console-ink); background: transparent; border-style: dashed; border-color: rgba(242, 239, 232, 0.44); }
/* keine ausreichend eindeutige Zuordnung geliefert */
.pill-none   { color: var(--console-muted); background: transparent; border-color: rgba(242, 239, 232, 0.24); }
/* Inhalt nicht erreichbar / nicht analysierbar */
.pill-na     { color: var(--console-muted); background: rgba(242, 239, 232, 0.05); border-style: dashed; border-color: rgba(242, 239, 232, 0.22); }

.report-foot { padding: 13px 16px 16px; }
.report-foot small {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--console-muted);
}
.scan-status::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 6px;
  vertical-align: text-bottom;
  background: #ff5a44;
  animation: cursor-blink 1.05s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
.progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(242, 239, 232, 0.12);
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b32014, #ff5a44);
  transition: width 700ms var(--ease-out);
}

.scan-anim .report-row {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}
.scan-anim .report-row .pill {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 260ms var(--ease-out) 220ms, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 220ms;
}
.scan-anim .report-row.scanned { opacity: 1; transform: none; }
.scan-anim .report-row.scanned .pill { opacity: 1; transform: none; }

/* Verkürzter Pflichthinweis unter der Konsole. Steht bewusst direkt an der
   Ergebnisdarstellung, nicht nur im Footer. */
.report-caption {
  max-width: 620px;
  margin: 14px auto 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* ---------- Statistiken ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.stat-card {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: var(--sp-4);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-3);
  transition: transform 160ms var(--ease-out), border-color 160ms ease;
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(230, 50, 35, 0.5); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 750;
  color: var(--red-bright);
  letter-spacing: -0.02em;
  line-height: 0.98;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 34px rgba(230, 50, 35, 0.25);
}
.stat-label { font-size: 0.95rem; color: var(--ink-dim); font-weight: 500; line-height: 1.45; }
.stat-note {
  margin: var(--sp-6) auto 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Karten-Raster ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.icon-card {
  display: grid;
  align-content: start;
  gap: var(--sp-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-3);
  padding: 24px;
  transition: border-color 160ms ease, transform 160ms var(--ease-out);
}
.icon-card:hover { border-color: rgba(230, 50, 35, 0.5); transform: translateY(-3px); }
.icon-card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(230, 50, 35, 0.18), rgba(230, 50, 35, 0.05));
  border: 1px solid rgba(230, 50, 35, 0.35);
  color: var(--red-bright);
  margin-bottom: var(--sp-3);
}
.icon-card h3 { margin-bottom: 4px; font-size: 1.14rem; }
.icon-card p { color: var(--ink-dim); margin-bottom: 0; font-size: 0.94rem; }
.icon-card ul { margin: var(--sp-2) 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.icon-card ul li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0;
}
.icon-card ul svg { color: var(--red-bright); flex: none; margin-top: 3px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-grid .icon-card { padding: 20px; }

/* Kaskadierender Einblende-Effekt (Elternteil bekommt .in) */
.stagger > * { opacity: 0; transform: translateY(18px); }
.stagger.in > * { animation: stagger-in 520ms var(--ease-out) forwards; }
.stagger.in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger.in > *:nth-child(2) { animation-delay: 0.12s; }
.stagger.in > *:nth-child(3) { animation-delay: 0.19s; }
.stagger.in > *:nth-child(4) { animation-delay: 0.26s; }
.stagger.in > *:nth-child(5) { animation-delay: 0.33s; }
.stagger.in > *:nth-child(6) { animation-delay: 0.4s; }
.stagger.in > *:nth-child(7) { animation-delay: 0.47s; }
.stagger.in > *:nth-child(8) { animation-delay: 0.54s; }
@keyframes stagger-in { to { opacity: 1; transform: none; } }

/* ---------- Leistungs-Checkliste ---------- */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-3);
  padding: 20px 22px;
}
.check-item > svg {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  margin-top: 1px;
}
.check-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.14;
  margin-bottom: 3px;
}
.check-item span { color: var(--ink-dim); font-size: 0.93rem; }

.platform-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--sp-8);
}
.platform-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--paper-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.platform-chips .chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px rgba(230, 50, 35, 0.5);
}

/* ---------- Ablauf / Schritte ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.step {
  position: relative;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-3);
  transition: transform 160ms var(--ease-out), border-color 160ms ease;
}
.step:hover { transform: translateY(-3px); border-color: rgba(230, 50, 35, 0.5); }
.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--red-bright);
  border: 1px solid rgba(230, 50, 35, 0.4);
  border-radius: 6px;
  padding: 4px 9px;
  background: var(--red-soft);
  margin-bottom: 18px;
}
.step h3 { font-size: 1.14rem; margin-bottom: var(--sp-2); }
.step p { color: var(--ink-dim); font-size: 0.93rem; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-3);
  padding: 26px;
  transition: transform 160ms var(--ease-out), border-color 160ms ease, box-shadow 160ms ease;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.price-card.featured {
  border-color: rgba(230, 50, 35, 0.55);
  background:
    linear-gradient(180deg, rgba(230, 50, 35, 0.1), rgba(230, 50, 35, 0) 42%),
    var(--paper-3);
  box-shadow: 0 24px 70px rgba(230, 50, 35, 0.14);
}
.price-card.featured:hover { border-color: var(--red-bright); }
.badge-top {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, #e63223, #ff5a44);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 11px;
  white-space: nowrap;
}
.price-card .tier-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0;
}
.price-line { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 2px; }
.price-line .prefix { font-size: 1.05rem; font-weight: 700; color: var(--muted); }
.price-line .amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: var(--sp-5); }
.tier-desc {
  font-size: 0.96rem;
  color: var(--ink-soft);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-5);
}
.features {
  list-style: none;
  margin: 0 0 var(--sp-6);
  padding: 0;
  flex: 1;
  display: grid;
  gap: 0;
  align-content: start;
}
.features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--ink-dim);
  padding-block: 6px;
  margin: 0;
}
.features li svg { color: var(--red-bright); flex: none; margin-top: 4px; }
.features li.feat-strong { font-weight: 700; color: var(--ink); }
.pricing-note {
  margin: var(--sp-8) auto 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 760px;
}

/* ---------- Hinweis-Boxen ---------- */
.notice-box {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  background: var(--paper-3);
  border: 1px solid rgba(230, 50, 35, 0.4);
  border-radius: var(--r-md);
  padding: 30px 34px;
  color: var(--ink);
}
.notice-box > svg { color: var(--red-bright); flex: none; margin-top: 4px; }
.notice-box h2, .notice-box h3 { color: var(--ink); font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: var(--sp-3); }
.notice-box p { color: var(--ink-dim); font-size: 0.98rem; margin-bottom: var(--sp-3); }
.notice-box p:last-child { margin-bottom: 0; }
.notice-box a { color: var(--red-bright); }
.notice-box a:hover { color: var(--ink); }

.notice-info {
  background: rgba(110, 168, 201, 0.09);
  border: 0;
  border-left: 3px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  color: var(--ink);
}
.notice-info > svg { color: var(--blue); margin-top: 2px; }
.notice-info h2, .notice-info h3 { color: var(--ink); font-size: 1.08rem; margin-bottom: var(--sp-2); }
.notice-info p { color: var(--ink-dim); font-size: 0.94rem; }

.legal .notice-box:not(.notice-info) {
  background: var(--red-soft);
  border: 0;
  border-left: 3px solid var(--red-bright);
  border-radius: var(--r-sm);
  padding: 18px 20px;
}
.legal .notice-box:not(.notice-info) h2,
.legal .notice-box:not(.notice-info) h3 { font-size: 1.12rem; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-3);
  transition: border-color 160ms ease;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-bright); }
.faq .faq-icon {
  flex: none;
  color: var(--red-bright);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] .faq-icon { transform: rotate(45deg); }
.faq .faq-body { padding: 0 20px 22px; color: var(--ink-dim); max-width: 70ch; font-size: 0.97rem; }
.faq .faq-body p { margin-bottom: var(--sp-3); }
.faq .faq-body p:last-child { margin-bottom: 0; }

.faq-more {
  text-align: center;
  margin-top: var(--sp-6);
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Finale CTA ---------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 380px at 85% -20%, rgba(230, 50, 35, 0.18), transparent 62%),
    radial-gradient(560px 380px at 0% 120%, rgba(110, 168, 201, 0.09), transparent 58%),
    var(--paper-3);
  color: var(--ink);
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  padding: clamp(36px, 5.5vw, 68px);
  text-align: center;
}
.cta-panel h2 { max-width: 640px; margin-inline: auto; }
.cta-panel .lead { max-width: 560px; margin-inline: auto; }
.cta-panel .hero-cta { justify-content: center; margin-top: var(--sp-6); }
.cta-panel .small-note {
  margin: var(--sp-5) 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 52px 0 28px;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--line);
}
.footer-tagline { margin-top: var(--sp-4); max-width: 36ch; color: var(--muted); }
.footer-col h4 {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; color: var(--muted); }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--red-bright); text-decoration: underline; text-underline-offset: 3px; }
.footer-disclaimer {
  margin-top: var(--sp-6);
  padding: 15px 18px;
  border-left: 3px solid var(--red);
  background: var(--red-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.55;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  justify-content: space-between;
  padding-top: var(--sp-5);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: 620px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  background: var(--paper-3);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-deep);
  padding: 16px 18px;
  animation: cookie-in 420ms var(--ease-out);
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }
.cookie-banner .cookie-text {
  flex: 1 1 320px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-dim);
}
.cookie-banner .cookie-text strong { display: block; margin-bottom: 2px; }
.cookie-banner .cookie-text a { color: var(--red-bright); }
.cookie-banner .cookie-actions { flex: none; display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 559px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .cookie-banner .cookie-actions { width: 100%; }
  .cookie-banner .cookie-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}

/* ---------- Formulare ---------- */
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-3);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
fieldset {
  border: 0;
  margin: 0 0 var(--sp-8);
  padding: 0;
}
legend {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0;
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.legend-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--red-soft);
  border: 1px solid rgba(230, 50, 35, 0.4);
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  flex: none;
}
.fieldset-hint { color: var(--ink-dim); font-size: 0.94rem; margin-bottom: var(--sp-5); }

.field { margin-bottom: var(--sp-5); }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.93rem;
  margin-bottom: 7px;
}
.field .optional { font-weight: 500; color: var(--muted); }
.helper { display: block; font-size: 0.84rem; font-weight: 400; color: var(--muted); margin-top: 6px; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--field-bg);
  color: var(--ink);
  font-size: 16px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
textarea { min-height: 120px; resize: vertical; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(230, 50, 35, 0.35);
  outline-offset: 1px;
  border-color: var(--red-bright);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--red-bright); background: var(--red-soft); }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--err-ink);
  font-size: 0.87rem;
  font-weight: 700;
  margin-top: 6px;
}
.field-error svg { flex: none; margin-top: 2px; }
/* Ohne diese Zeile schlägt display:flex das [hidden]-Attribut des Browsers und
   ALLE Fehlermeldungen stehen schon beim Laden rot im Formular. */
.field-error[hidden] { display: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Adress-Autovervollständigung */
.addr-wrap { position: relative; }
.addr-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--field-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  max-height: 300px;
  overflow-y: auto;
}
.addr-suggest li[role="option"] {
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.addr-suggest li[role="option"]:hover,
.addr-suggest li[role="option"][aria-selected="true"] { background: var(--red-soft); }
.addr-suggest .addr-main { display: block; font-weight: 700; font-size: 0.95rem; }
.addr-suggest .addr-sub { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 1px; }
.addr-suggest .addr-note {
  padding: 7px 10px 4px;
  font-size: 0.74rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pkg-option input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-card {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  cursor: pointer;
  background: var(--field-bg);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.pkg-card:hover { border-color: var(--line-strong); }
.pkg-option input:checked + .pkg-card {
  border-color: var(--red-bright);
  background: linear-gradient(180deg, rgba(230, 50, 35, 0.11), var(--field-bg) 60%);
  box-shadow: 0 0 0 3px rgba(230, 50, 35, 0.16);
}
.pkg-option input:focus-visible + .pkg-card {
  outline: 3px solid rgba(230, 50, 35, 0.55);
  outline-offset: 3px;
}
.pkg-card .pkg-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--ink);
}
.pkg-card .pkg-price { display: block; font-weight: 700; color: var(--red-bright); font-size: 0.92rem; }
.pkg-card .pkg-meta { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 3px; }
.pkg-radio-dot {
  width: 20px; height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
  position: relative;
  background: transparent;
}
.pkg-option input:checked + .pkg-card .pkg-radio-dot { border-color: var(--red-bright); }
.pkg-option input:checked + .pkg-card .pkg-radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--red-bright);
}

/* Kanal-Zeile: Plattform + Handle oben, Accountinhaber darunter.
   Der Inhaber steht je Kanal (nicht global), weil Agenturen Accounts
   verschiedener Endkunden beauftragen, die Zuordnung muss im Auftrag stehen. */
.channel-row {
  display: grid;
  grid-template-columns: 170px 1fr 46px;
  grid-template-areas:
    "platform handle remove"
    "owner    owner  owner";
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--hover-bg);
}
.channel-row .ch-platform { grid-area: platform; }
.channel-row .ch-handle { grid-area: handle; }
.channel-row .ch-remove { grid-area: remove; }
.channel-row .ch-owner { grid-area: owner; }
.ch-remove {
  width: 46px;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--red-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: border-color 140ms ease, background 140ms ease;
}
.ch-remove:hover { border-color: var(--red-bright); background: var(--red-soft); }
.channel-limit-hint {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-sm);
  padding: 8px 0 0;
  margin-top: var(--sp-2);
}
.channel-limit-hint.exceed {
  background: var(--red-soft);
  color: var(--err-ink);
  font-weight: 700;
  padding: 10px 14px;
}

.consent {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--field-bg);
  padding: 15px 18px;
  margin-bottom: 10px;
}
.consent input[type="checkbox"] {
  width: 20px; height: 20px;
  margin: 3px 0 0;
  flex: none;
  accent-color: #e63223;
  cursor: pointer;
}
.consent label { font-size: 0.92rem; line-height: 1.55; cursor: pointer; color: var(--ink-dim); }
.consent.invalid { border-color: var(--red-bright); background: var(--red-soft); }

.alert {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-bottom: var(--sp-5);
  font-size: 0.96rem;
  font-weight: 600;
}
.alert svg { flex: none; margin-top: 2px; }
.alert-error { background: rgba(230, 50, 35, 0.12); border: 1px solid rgba(230, 50, 35, 0.4); color: var(--err-ink); }
.alert-success { background: rgba(85, 184, 126, 0.12); border: 1px solid rgba(85, 184, 126, 0.4); color: var(--ok-ink); }
.alert[hidden] { display: none; }

.form-legal-note {
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: var(--sp-4);
}

.turnstile-slot { margin-block: var(--sp-5); min-height: 0; }

/* ---------- Danke-Seite ---------- */
.confirm-hero { text-align: center; padding: 180px 0 var(--sp-10); }
.confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(85, 184, 126, 0.15);
  border: 1px solid rgba(85, 184, 126, 0.5);
  color: var(--green);
  margin-bottom: var(--sp-6);
}
.next-steps { max-width: 720px; margin-inline: auto; text-align: left; }
.next-steps h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; }
.next-steps ol { counter-reset: ns; list-style: none; padding: 0; margin-top: var(--sp-6); }
.next-steps ol li {
  counter-increment: ns;
  position: relative;
  padding: 18px 18px 18px 66px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-3);
  color: var(--ink-dim);
}
.next-steps ol li::before {
  content: counter(ns);
  position: absolute;
  left: 16px; top: 16px;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--red-soft);
  border: 1px solid rgba(230, 50, 35, 0.4);
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Unterseiten-Hero & Rechtsseiten ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(800px 400px at 80% -30%, rgba(230, 50, 35, 0.1), transparent 60%),
    transparent;
  border-bottom: 1px solid var(--line);
  padding: 160px 0 48px;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: var(--sp-3);
  hyphens: auto;
  -webkit-hyphens: auto;
}
.page-hero .updated { color: var(--ink-dim); font-size: 0.98rem; margin: 0; max-width: 640px; }
.page-hero .kicker { margin-bottom: var(--sp-2); }

/* ---------- Status-Tabelle (Erklärung der Ergebnisstatus) ----------
   Bewusst ohne Farbcodierung, vgl. Farb-Regel im Dateikopf. Der Wrapper
   scrollt horizontal, damit die Seite auf 375px nie seitlich scrollt. */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-3);
}
.status-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.95rem;
}
.status-table caption {
  caption-side: bottom;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: left;
}
.status-table th,
.status-table td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.status-table thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel-2);
  white-space: nowrap;
}
.status-table tbody th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  width: 1%;
}
.status-table td { color: var(--ink-dim); line-height: 1.6; }
.status-table tbody tr:last-child th,
.status-table tbody tr:last-child td { border-bottom: 0; }

.legal {
  width: min(100% - 32px, 800px);
  margin-inline: auto;
  padding: var(--sp-12) 0 var(--sp-24);
}
.page-hero .legal,
.page-hero .container-narrow { padding-block: 0; }
.legal h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-3);
}
.legal h3 { font-size: 1.18rem; margin-top: var(--sp-8); }
.legal p, .legal li { color: var(--ink-dim); font-size: 1rem; }
.legal address {
  font-style: normal;
  line-height: 1.8;
  padding: 16px 20px;
  border-left: 3px solid var(--red-bright);
  background: var(--paper-3);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: var(--sp-4);
  color: var(--ink-soft);
}
.legal a { color: var(--red-bright); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }

mark.ph {
  background: rgba(227, 166, 60, 0.2);
  border: 1px dashed var(--amber);
  border-radius: 4px;
  padding: 0 0.35em;
  color: var(--amber);
  font-weight: 700;
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* Ohne JavaScript: alles sichtbar lassen */
@media (scripting: none) {
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .scan-anim .report-row, .scan-anim .report-row .pill { opacity: 1 !important; transform: none !important; }
  .progress span { width: 72% !important; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .scan-anim .report-row, .scan-anim .report-row .pill { opacity: 1 !important; transform: none !important; transition: none !important; }
  .progress span { width: 72% !important; transition: none; }
  .scan-status::after { animation: none; }
  #hero-canvas { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .price-card.featured { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pkg-grid { grid-template-columns: 1fr; }
  .cards-3, .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .section { padding: 72px 0; }
  .section-tight { padding: 52px 0; }
  .hero { padding: 120px 0 56px; min-height: 92svh; }
  .cards-3, .feature-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .choice-row { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .notice-box { padding: 22px 20px; }
  .stat-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 40px; }
  .confirm-hero { padding-top: 150px; }
  .report-card { margin-top: 36px; }
  .report-row .meta .snd { font-size: 0.8rem; }
}

@media (max-width: 559px) {
  .container, .container-narrow { width: min(100% - 22px, var(--max)); }
  .header-inner { width: min(100% - 22px, var(--max)); }
  .legal { width: min(100% - 22px, 800px); }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .hero-cta .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .channel-row {
    grid-template-columns: 1fr 46px;
    grid-template-areas:
      "platform platform"
      "handle remove"
      "owner owner";
  }
  .notice-box { flex-direction: column; gap: var(--sp-3); }

  /* Auf Handybreite wird aus jeder Tabellenzeile eine kleine Karte:
     seitlich scrollen, um eine Statusdefinition zu lesen, ist zumutbar,
     aber schlecht, gestapelt bleibt der Text in voller Breite lesbar. */
  .table-wrap { border: 0; background: transparent; overflow-x: visible; }
  /* Flex statt block: caption-side:bottom gilt nur im Tabellenlayout, als
     Flex-Container lässt sich die Caption per order wieder unter die Zeilen holen. */
  .status-table { min-width: 0; display: flex; flex-direction: column; }
  .status-table thead { display: none; }
  .status-table tbody { order: 1; }
  .status-table tbody,
  .status-table tbody tr,
  .status-table tbody th,
  .status-table tbody td { display: block; width: auto; }
  .status-table tbody tr {
    background: var(--paper-3);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 13px 15px;
    margin-bottom: 8px;
  }
  .status-table tbody th,
  .status-table tbody td { border: 0; padding: 0; }
  .status-table tbody th { padding-bottom: 4px; white-space: normal; }
  .status-table caption { display: block; order: 2; width: auto; border: 0; padding: 6px 2px 0; }
  .hero-badge { font-size: 0.66rem; letter-spacing: 0.06em; }
}
