/* GEO-KI-Checker — dunkel, kinoreif, mobile-first. Manrope selbst gehostet
   (build.mjs kopiert die woff2 aus @fontsource/manrope nach /fonts/).
   Alle Farben sind Tokens in :root; Bewegung läuft nur über transform/opacity
   und steht unter prefers-reduced-motion still. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/manrope-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-800-normal.woff2') format('woff2');
}

/* Die Uhr der Vorschau-Schleife: 0 → 100 über einen Durchlauf. Ohne @property
   (alte Browser) bleibt --t beim Initialwert 100 = fertiger Zustand. */
@property --t {
  syntax: '<number>';
  inherits: true;
  initial-value: 100;
}

:root {
  /* Marke */
  --blue: #313ec4;
  --blue-2: #2c65f6;
  --accent: #7c9cff; /* Markenblau, hell genug für Text auf Dunkel (≈ 7:1) */
  /* Dunkles Thema */
  --bg-0: #07091a;
  --bg-1: #0b1030;
  --ink-hi: #f4f6ff;
  --ink: #c6cce6;
  --muted: #8e96bd;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  /* Ampel auf Dunkel */
  --green: #3ddc97;
  --yellow: #f2c84b;
  --red: #ff7070;
  /* Helle Fläche (Opt-in-Karte) */
  --paper: #ffffff;
  --paper-ink: #1a1d33;
  --paper-muted: #5c6280;
  --paper-line: #e4e7f2;
  --ff: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --tap: 44px;
  --gutter: 16px;
  --ring-c: 326.73; /* 2π · 52 */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg-0);
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---- Aurora: zwei große, weiche Lichtflecken, die langsam treiben ---------- */

body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
body::before {
  top: -30vh;
  left: -20vw;
  width: 90vw;
  height: 90vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, rgba(44, 101, 246, 0.72), rgba(44, 101, 246, 0.26) 45%, transparent 72%);
  animation: drift-a 26s var(--ease) infinite alternate;
}
body::after {
  top: 20vh;
  right: -35vw;
  width: 100vw;
  height: 100vw;
  max-width: 1000px;
  max-height: 1000px;
  background: radial-gradient(closest-side, rgba(49, 62, 196, 0.68), rgba(99, 72, 230, 0.24) 45%, transparent 72%);
  animation: drift-b 32s var(--ease) infinite alternate;
}
@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(14vw, 10vh, 0) scale(1.15);
  }
}
@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  to {
    transform: translate3d(-16vw, -12vh, 0) scale(0.95);
  }
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
img {
  display: block;
  max-width: 100%;
}
p {
  margin: 0 0 1em;
}
.ic {
  display: block;
  width: 1em;
  height: 1em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--blue-2);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
  z-index: 10;
}

/* ---- Kopf & Fuß -------------------------------------------------------- */

.top {
  padding: 18px var(--gutter);
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-hi);
  min-height: var(--tap);
}
.brand img {
  height: 20px;
  width: auto;
}
.brand-sep {
  width: 1px;
  height: 18px;
  background: var(--line-2);
}
.brand-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px var(--gutter) 72px;
  flex: 1;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter) 40px;
  font-size: 14px;
  color: var(--muted);
}
.foot-row {
  max-width: 1088px;
  margin: 0 auto 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  opacity: 0.6;
}
.foot-brand img {
  height: 14px;
  width: auto;
}
.foot-nav {
  display: flex;
  gap: 4px 20px;
  flex-wrap: wrap;
}
.foot-nav a {
  color: inherit;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.foot-nav a:hover {
  color: var(--ink-hi);
}
.foot-note {
  max-width: 1088px;
  margin: 0 auto;
  font-size: 13px;
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

/* ---- Typografie -------------------------------------------------------- */

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.h1 {
  color: var(--ink-hi);
  font-weight: 800;
  font-size: clamp(38px, 9.6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.h2 {
  color: var(--ink-hi);
  font-weight: 800;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.h2-sm {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.h3 {
  color: var(--ink-hi);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
}
.h4 {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.sub {
  font-size: clamp(17px, 4.6vw, 20px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
  margin: 0 0 28px;
}
.sub-sm {
  font-size: 17px;
  max-width: 52ch;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 15px;
}
.host {
  overflow-wrap: anywhere;
}
.host:focus {
  outline: none;
}
.link {
  font-weight: 600;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

/* ---- Flächen, Pillen, Hinweise ---------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  margin: 0 0 12px;
}
.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  white-space: nowrap;
  margin: 0;
}
.pill-pass,
.pill-green {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, transparent);
}
.pill-warn,
.pill-yellow,
.pill-na {
  color: var(--yellow);
  background: color-mix(in srgb, var(--yellow) 14%, transparent);
}
.pill-fail,
.pill-red {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 14%, transparent);
}

.status {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
  font-size: 18px;
  color: var(--ink);
  background: var(--surface-2);
}
.status-pass {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 16%, transparent);
}
.status-warn {
  color: var(--yellow);
  background: color-mix(in srgb, var(--yellow) 16%, transparent);
}
.status-fail {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 16%, transparent);
}
.status-na {
  color: var(--muted);
}
.status-lg {
  width: 52px;
  height: 52px;
  font-size: 28px;
  margin-bottom: 18px;
}

.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 20px;
}
.notice-ok {
  border-left-color: var(--green);
}
.notice-warn {
  border-left-color: var(--yellow);
}
.notice-light {
  background: #f5f7ff;
  border-color: var(--paper-line);
  border-left-color: var(--green);
  color: var(--paper-ink);
}
.notice-light .muted {
  color: var(--paper-muted);
}

.badge {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px;
  padding: 6px 12px 6px 9px;
  font-weight: 600;
  font-size: 13px;
  vertical-align: middle;
  margin-right: 6px;
}
.badge-pill .ic {
  font-size: 15px;
}

/* ---- Knöpfe & Feld ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink-hi);
  transition:
    transform 0.4s var(--ease),
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(44, 101, 246, 0.6);
}
.btn-primary:hover {
  box-shadow: 0 10px 30px -8px rgba(44, 101, 246, 0.85);
}
.btn .ic {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  flex: none;
  transition: transform 0.5s var(--ease);
}
.btn:hover .ic {
  transform: translateX(2px);
}
.btn-light {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}
.btn-light .ic {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.btn:focus-visible,
a:focus-visible,
.evidence summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 3px;
}

.urlform {
  margin: 0 0 8px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 60px -30px rgba(44, 101, 246, 0.6);
  transition:
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.check-row:focus-within {
  border-color: var(--blue-2);
  box-shadow:
    0 0 0 4px rgba(44, 101, 246, 0.28),
    0 0 48px -6px rgba(44, 101, 246, 0.7);
}
.input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  font: inherit;
  font-size: 17px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--ink-hi);
}
.input::placeholder {
  color: var(--muted);
}
.input:focus {
  outline: none;
}
.btn-go {
  flex: none;
  min-height: 48px;
}
.btn-go span {
  display: none;
}
.btn-go .ic {
  width: 36px;
  height: 36px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.18);
}
.btn-go:is(.btn) {
  padding: 4px;
  gap: 0;
}
@media (min-width: 560px) {
  .btn-go span {
    display: inline;
  }
  .btn-go:is(.btn) {
    padding: 4px 6px 4px 20px;
    gap: 10px;
  }
  .btn-go .ic {
    width: 32px;
    height: 32px;
    padding: 7px;
  }
}
.hint {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0 0;
}
.field-error {
  color: var(--red);
  font-weight: 600;
  margin: 12px 0 0;
}
.field-error[hidden] {
  display: none;
}
.turnstile {
  margin-top: 8px;
}

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

.hero {
  padding-top: 36px;
  text-align: center;
}
.hero-copy {
  margin: 0 auto 40px;
  max-width: 620px;
}
.hero .sub {
  margin-left: auto;
  margin-right: auto;
}
.hero .urlform {
  text-align: left;
}
.hero .hint {
  text-align: center;
}

/* Die Vorschau-Schleife */
.demo {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}
.demo-body {
  --t: 100;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 18px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 100px -40px rgba(44, 101, 246, 0.5);
  animation: demo-run 11s linear infinite;
}
@keyframes demo-run {
  0%,
  6% {
    --t: 0;
  }
  70%,
  92% {
    --t: 100;
  }
  92.1%,
  100% {
    --t: 0;
  }
}
.demo-cap {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.demo-ring {
  --ring: 96px;
  --c: var(--accent);
}
.demo-ring .ring-arc {
  stroke-dashoffset: calc(var(--ring-c) * (100 - var(--p) * var(--t) / 100) / 100);
  animation: none;
}
.demo-num::after {
  counter-reset: n calc(var(--p) * var(--t) / 100);
  content: counter(n);
}
.demo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.demo-step {
  --at: calc(10 + var(--i) * 16);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--ink);
  opacity: clamp(0.42, 0.42 + (var(--t) - var(--at) + 10) / 10, 1);
}
.demo-tick {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 40%, transparent);
}
.demo-tick .ic {
  opacity: clamp(0, (var(--t) - var(--at)) / 3, 1);
  transform: scale(clamp(0.4, (var(--t) - var(--at)) / 3, 1));
}

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
    padding-top: 64px;
    text-align: left;
    min-height: 60vh;
  }
  .hero-copy {
    margin: 0;
    max-width: none;
  }
  .hero .sub {
    margin-left: 0;
  }
  .hero .hint {
    text-align: left;
  }
  .demo {
    margin: 0;
    max-width: none;
    justify-self: end;
    width: min(100%, 460px);
  }
  .demo-ring {
    --ring: 120px;
  }
  .demo-body {
    gap: 22px;
    padding: 24px 22px;
  }
  .demo-step {
    font-size: 14px;
  }
}

/* ---- Zustände ---------------------------------------------------------- */

.s-idle,
.s-running,
.s-done,
.s-error {
  display: none;
}
main[data-state='idle'] .s-idle,
main[data-state='running'] .s-running,
main[data-state='done'] .s-done,
main[data-state='error'] .s-error,
main[data-state='full'] .result {
  display: block;
}
main[data-state='idle'] .hero {
  display: block;
}
@media (min-width: 900px) {
  main[data-state='idle'] .hero {
    display: grid;
  }
}
.s-error {
  max-width: 560px;
  margin: 40px auto 0;
  text-align: center;
}
.s-error .status-lg {
  margin-left: auto;
  margin-right: auto;
}
.s-error:focus {
  outline: none;
}
.s-error .btn {
  margin-top: 6px;
}

/* ---- Ladescreen -------------------------------------------------------- */

.progress {
  max-width: 640px;
  margin: 32px auto 0;
  padding: 28px 22px 22px;
}
.pct {
  font-weight: 800;
  color: var(--ink-hi);
  font-size: clamp(64px, 20vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 8px 0 14px;
  font-variant-numeric: tabular-nums;
}
.pct-sign {
  font-size: 0.4em;
  color: var(--accent);
  margin-left: 4px;
  letter-spacing: 0;
}
.bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: visible;
  margin: 0 0 16px;
  position: relative;
}
.bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-2), var(--accent));
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(44, 101, 246, 0.8);
  transition: width 0.6s var(--ease);
}
.live {
  font-weight: 600;
  color: var(--ink-hi);
  min-height: 1.6em;
  margin-bottom: 20px;
}
.steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 4px;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  transition:
    background-color 0.5s var(--ease),
    color 0.5s var(--ease);
}
.step-mark {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition:
    background-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.step-mark .ic {
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.step[data-s='current'] {
  color: var(--ink-hi);
  background: var(--surface);
}
.step[data-s='current'] .step-mark {
  box-shadow:
    inset 0 0 0 1.5px var(--blue-2),
    0 0 0 4px rgba(44, 101, 246, 0.25);
  animation: pulse 1.6s var(--ease) infinite;
}
.step[data-s='done'] {
  color: var(--ink);
}
.step[data-s='done'] .step-mark {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 18%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--green) 45%, transparent);
}
.step[data-s='done'] .step-mark .ic {
  opacity: 1;
  transform: scale(1);
}
@keyframes pulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1.5px var(--blue-2),
      0 0 0 3px rgba(44, 101, 246, 0.3);
  }
  50% {
    box-shadow:
      inset 0 0 0 1.5px var(--accent),
      0 0 0 7px rgba(44, 101, 246, 0.08);
  }
}
.progress-note {
  margin: 0;
}

/* ---- Score-Ring (geteilt) --------------------------------------------- */

.ring {
  --p: 0;
  --c: var(--accent);
  --ring: 150px;
  position: relative;
  width: var(--ring);
  height: var(--ring);
  flex: none;
  display: grid;
  place-items: center;
}
.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.ring-track,
.ring-arc {
  fill: none;
  stroke-width: 8;
}
.ring-track {
  stroke: var(--surface-2);
}
.ring-arc {
  stroke: var(--c);
  stroke-linecap: round;
  stroke-dasharray: var(--ring-c);
  stroke-dashoffset: calc(var(--ring-c) * (100 - var(--p)) / 100);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 70%, transparent));
  animation: ring-in 1.2s var(--ease) both;
}
@keyframes ring-in {
  from {
    stroke-dashoffset: var(--ring-c);
  }
}
.ring-num {
  position: relative;
  font-weight: 800;
  font-size: calc(var(--ring) * 0.34);
  color: var(--ink-hi);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ring-lg {
  --ring: 168px;
}

/* ---- Dashboard (Teaser & Voll-Report) --------------------------------- */

.dash {
  max-width: 760px;
  margin: 0 auto;
}
.dash-head {
  padding-top: 24px;
  margin-bottom: 36px;
}
.score {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin: 22px 0 0;
}
.score-meta {
  max-width: 520px;
}
.score-label {
  font-weight: 600;
  color: var(--ink-hi);
  margin: 0 0 10px;
}
.verdict {
  font-size: clamp(17px, 4.6vw, 20px);
  font-weight: 600;
  color: var(--ink-hi);
  line-height: 1.4;
  margin: 14px 0 0;
  text-wrap: balance;
}
.dash-head .badge {
  text-align: center;
}
@media (min-width: 640px) {
  .score {
    flex-direction: row;
    text-align: left;
    gap: 28px;
  }
  .dash-head .badge {
    text-align: left;
  }
}
.block {
  margin-bottom: 36px;
}

/* Bereichs-Balken */
.cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.cat {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
}
.cat-name {
  font-weight: 600;
  color: var(--ink-hi);
  font-size: 15px;
}
.cat-track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.cat-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: var(--c, var(--accent));
  transform-origin: left center;
  transform: scaleX(calc(var(--p) / 100));
  animation: cat-in 1s var(--ease) both;
  box-shadow: 0 0 12px color-mix(in srgb, var(--c, var(--accent)) 50%, transparent);
}
@keyframes cat-in {
  from {
    transform: scaleX(0);
  }
}
.cat-green {
  --c: var(--green);
}
.cat-yellow {
  --c: var(--yellow);
}
.cat-red {
  --c: var(--red);
}
.cat-na {
  --c: var(--muted);
}
.cat-val {
  font-weight: 800;
  color: var(--ink-hi);
  text-align: right;
  white-space: nowrap;
  min-width: 52px;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.cat-val .muted {
  font-size: 12px;
  font-weight: 600;
}
.cat-pct {
  font-size: 12px;
  color: var(--muted);
  margin-left: 2px;
  font-weight: 600;
}

/* Die drei Punkte */
.findings {
  list-style: none;
  padding: 0;
  margin: 0;
}
.finding {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px 18px 16px;
  border-left-width: 4px;
}
.finding-body {
  flex: 1;
  min-width: 0;
}
.finding p:last-child {
  margin-bottom: 0;
}
.finding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.finding-fail {
  border-left-color: var(--red);
}
.finding-warn,
.finding-na {
  border-left-color: var(--yellow);
}
.finding-pass {
  border-left-color: var(--green);
}

/* Das Gate */
.gate {
  margin: 44px 0 28px;
}
.gate-eyebrow {
  margin-bottom: 8px;
}
.gate-intro {
  color: var(--ink);
  max-width: 52ch;
  margin-bottom: 20px;
}
/* Keine verschwommene Vorschau mehr (wirkte wie ein Darstellungsfehler): die
   Karte sagt in drei Zeilen, was hinter dem Gate liegt. */
.gate-stage {
  position: relative;
}
.gate-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  background: rgba(49, 62, 196, 0.06);
  border: 1px solid rgba(49, 62, 196, 0.14);
  border-radius: 14px;
  color: var(--paper-ink);
  font-size: 15px;
  line-height: 1.45;
}
.gate-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}
.gate-list-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  margin-top: 1px;
}
.optin-card {
  position: relative;
  z-index: 1;
  margin: 0;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--r-xl);
  padding: 28px 22px 24px;
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 80px -20px rgba(44, 101, 246, 0.5);
}
.optin-card .muted {
  color: var(--paper-muted);
}
.lock {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px -10px rgba(44, 101, 246, 0.7);
}
.gate-title {
  color: var(--paper-ink);
  font-size: clamp(20px, 5.4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px;
  text-wrap: balance;
}
.gate-text {
  color: var(--paper-muted);
  margin: 0 0 18px;
}
#optin {
  --ao-primary: var(--blue);
  --ao-radius: 12px;
  --ao-font: var(--ff);
  color: var(--paper-ink);
}
@media (min-width: 640px) {
  .optin-card {
    padding: 32px 32px 28px;
    margin: 0 24px;
  }
}
.share {
  margin-top: 8px;
}

/* ---- Voll-Report ------------------------------------------------------- */

.full .dash-head {
  margin-bottom: 28px;
}
.top-block {
  margin-top: 8px;
}
.top-block .score {
  margin-top: 0;
}
.top-block .cats {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.understood {
  padding: 20px;
  margin-bottom: 8px;
}
.kv {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 6px 14px;
  margin: 14px 0 0;
}
.kv dt {
  color: var(--muted);
  font-size: 15px;
}
.kv dd {
  margin: 0;
  color: var(--ink-hi);
}
.summary {
  margin: 14px 0 0;
  font-weight: 600;
  color: var(--ink-hi);
}
.category {
  margin-top: 44px;
}
.cat-lead {
  color: var(--muted);
  margin: -4px 0 18px;
  max-width: 56ch;
}
.check {
  padding: 18px;
  border-left-width: 4px;
}
.check-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.check-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  flex: 1;
  min-width: 0;
}
.check-summary {
  font-weight: 600;
  color: var(--ink-hi);
}
.check-fail {
  border-left-color: var(--red);
}
.check-warn,
.check-na {
  border-left-color: var(--yellow);
}
.check-pass {
  border-left-color: var(--green);
}
.check-cols {
  display: grid;
  gap: 14px;
}
.check-col {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
}
.check-col p {
  margin: 0;
  font-size: 15.5px;
}
.check-action {
  background: color-mix(in srgb, var(--blue-2) 12%, transparent);
}
.check-action .h4 {
  color: var(--accent);
}
@media (min-width: 900px) {
  .check-cols.has-action {
    grid-template-columns: 1fr 1fr;
  }
}
.evidence {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}
.evidence summary {
  cursor: pointer;
  font-weight: 600;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  border-radius: 8px;
  list-style: none;
}
.evidence summary::-webkit-details-marker {
  display: none;
}
.evidence summary::before {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform 0.4s var(--ease);
  flex: none;
  margin-left: 2px;
}
.evidence[open] summary::before {
  transform: rotate(45deg);
}
.evidence ul {
  margin: 0 0 6px;
  padding-left: 20px;
  overflow-wrap: anywhere;
}

/* Plan: nummerierte Zeitleiste */
.plan {
  margin-top: 48px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 16px;
  padding-bottom: 32px;
}
.tl-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 64px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--line-2), transparent);
}
.tl-num {
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  width: 56px;
  background: linear-gradient(180deg, var(--ink-hi), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: 2px;
}
.tl-body .h3 {
  margin: 10px 0 6px;
}
.tl-body p {
  margin: 0;
}

.cta {
  margin-top: 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--blue-2) 0%, var(--blue) 70%, #2a2f9c 100%);
  border-radius: var(--r-xl);
  color: #fff;
  padding: 40px 22px;
  box-shadow: 0 40px 90px -40px rgba(44, 101, 246, 0.9);
}
.cta .h2 {
  color: #fff;
}
.cta p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 48ch;
  margin: 0 auto 24px;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body::before,
  body::after,
  .demo-body,
  .ring-arc,
  .cat-fill,
  .step[data-s='current'] .step-mark {
    animation: none;
  }
  .bar-fill,
  .btn,
  .btn .ic,
  .step,
  .step-mark,
  .step-mark .ic,
  .check-row,
  .evidence summary::before {
    transition: none;
  }
}

/* ---- Druck ------------------------------------------------------------- */

@media print {
  html,
  body {
    background: #fff;
    color: #222;
  }
  body::before,
  body::after,
  .foot-brand,
  .skip,
  .turnstile,
  .share,
  .link {
    display: none;
  }
  .brand img,
  .foot-brand img {
    filter: invert(1);
  }
  .eyebrow,
  .h4 {
    color: var(--blue);
  }
  .h1,
  .h2,
  .h3,
  .ink-hi,
  .cat-name,
  .cat-val,
  .ring-num,
  .verdict,
  .score-label,
  .check-summary,
  .kv dd,
  .summary,
  .brand,
  .step,
  .live,
  .pct {
    color: #111;
  }
  .muted,
  .cat-lead,
  .evidence,
  .kv dt,
  .foot {
    color: #555;
  }
  .panel,
  .card,
  .check-col,
  .notice,
  .understood {
    background: #fff;
    border-color: #ddd;
    box-shadow: none;
  }
  .ring-track {
    stroke: #e5e7ef;
  }
  .ring-arc {
    filter: none;
    animation: none;
  }
  .cat-track {
    background: #e5e7ef;
  }
  .cat-fill {
    animation: none;
    box-shadow: none;
  }
  .gate {
    display: none;
  }
  .cta {
    background: #fff;
    color: #111;
    border: 1px solid var(--blue);
    box-shadow: none;
  }
  .cta .h2,
  .cta p {
    color: #111;
  }
  .btn-light {
    border: 1px solid var(--blue);
  }
  .tl-num {
    background: none;
    color: var(--blue);
  }
  .check,
  .tl-item {
    break-inside: avoid;
  }
  .demo-body {
    animation: none;
  }
}
