/* ============================================================
   Algowerk Landingpage — Brand v1 (siehe ../BRAND.md)
   Weißer Canvas, kühle Pastell-Fades, Kobalt als einzige
   Aktionsfarbe, Satoshi self-hosted, Pill-Geometrie.
   ============================================================ */

/* ---------- Fonts (self-hosted, DSGVO) ---------- */
@font-face { font-family: 'Satoshi'; src: url('assets/fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('assets/fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('assets/fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('assets/fonts/satoshi-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --canvas: #FFFFFF;
  --panel: #F5F6F8;
  --ink: #23252B;
  --muted: #5F6470;
  --faint: #989DA8;
  --line: #E9EAEE;
  --accent: #2A5CE8;
  --accent-deep: #1F49C6;
  --accent-tint: #EDF2FE;
  --ice: #DDE9FE;
  --mint: #DDF3E4;
  --lilac: #EAE4FA;
  --ok: #199659;
  --ok-tint: #E4F5EC;
  --warn: #C98A0B;
  --warn-tint: #FBF1DC;
  --crit: #DD4A4A;
  --crit-tint: #FCEAEA;
  --r-card: 24px;
  --r-inner: 16px;
  --shadow-sm: 0 2px 8px rgba(25, 30, 50, .07);
  --shadow-card: 0 1px 2px rgba(25, 30, 50, .05), 0 16px 40px -16px rgba(37, 55, 110, .16);
  --shadow-pill: inset 0 0 0 1px rgba(160, 165, 180, .45);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul { margin: 0; }
h1, h2, .hero-sub, .section-head p { text-wrap: balance; }
.bento-card p, .compare-row p, .step p, .faq-item > p, .ov-result { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
.nowrap { white-space: nowrap; }
.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; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.container { max-width: 1360px; margin: 0 auto; padding: 0 24px; } /* PostFlows-Breite */
.container-narrow { max-width: 760px; }

.ic { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap;
  text-decoration: none;
  transition: background .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(42, 92, 232, .5); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-primary:hover:active { transform: scale(.98); }

/* Einheitlicher, kontraststarker Fokus-Indikator
   (outline folgt dem Element-Radius, kein eigener border-radius nötig) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:focus-visible { outline-offset: 3px; }
.url-pill input:focus-visible { outline: none; } /* Ring liegt auf der Pill (focus-within) */
.btn-sm { padding: 10px 20px; font-size: 15px; }
/* Monochrom-metallische Ink-Pill (kein pures Schwarz):
   vertikaler Grauverlauf + Glanzkante oben + dunkle Unterkante */
.btn-ink {
  background: linear-gradient(180deg, #45484F 0%, #26282E 55%, #1D1F24 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 0, 0, .4),
    0 2px 8px rgba(20, 22, 30, .28);
}
.btn-ink:hover {
  background: linear-gradient(180deg, #52555E 0%, #2E3037 55%, #24262C 100%);
  transform: translateY(-1px);
}
.btn-ghost { background: var(--panel); color: var(--ink); font-weight: 500; }
.btn-ghost:hover { background: var(--line); }
.btn[disabled] { opacity: .65; cursor: default; }

/* ---------- Icon-Tiles (iOS-App-Icon-Stil) ----------
   Squircle-Kacheln mit weichem Verlauf + Top-Glanzkante. */
.tile {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 27%;
  flex-shrink: 0;
}
.tile-md { width: 48px; height: 48px; font-size: 24px; }
.tile-lg { width: 56px; height: 56px; font-size: 28px; }
.tile-cobalt {
  background: linear-gradient(160deg, #4A78FF, #1F49C6);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(42, 92, 232, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.tile-ice {
  background: linear-gradient(160deg, #F0F5FF, #CBDDFD);
  color: var(--accent-deep);
  box-shadow: 0 10px 20px -12px rgba(42, 92, 232, .35), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.tile-mint {
  background: linear-gradient(160deg, #EFFBF3, #C4ECD2);
  color: #12824B;
  box-shadow: 0 10px 20px -12px rgba(18, 130, 75, .3), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.tile-lilac {
  background: linear-gradient(160deg, #F7F3FE, #DACDF6);
  color: #6D4FC1;
  box-shadow: 0 10px 20px -12px rgba(109, 79, 193, .3), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.tile-gray {
  background: linear-gradient(160deg, #F6F7F9, #E3E5EA);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

/* ---------- Header ----------
   Fixed statt sticky: der Hero-Hintergrund läuft hinter der Pill durch,
   kein weißer Balken mehr über dem Hero. */
.header {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 40;
  padding: 0 16px;
}
.header-bar {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(233, 234, 238, .9);
  padding: 10px 12px 10px 20px;
  min-height: 60px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: inline-flex; width: 32px; height: 32px;
  border-radius: 28%;
  box-shadow: 0 0 0 1px rgba(74, 120, 255, .16), 0 0 12px rgba(74, 120, 255, .38); /* leichter Glow-Rahmen (PostFlows) */
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark.sm { width: 26px; height: 26px; box-shadow: 0 0 0 1px rgba(74, 120, 255, .14), 0 0 9px rgba(74, 120, 255, .3); }
.brand-word { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 156px 0 40px; overflow: hidden; scroll-margin-top: 0; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(560px 380px at 18% 8%, var(--ice) 0%, transparent 70%),
    radial-gradient(520px 360px at 85% 16%, var(--lilac) 0%, transparent 70%),
    radial-gradient(640px 420px at 55% 92%, var(--mint) 0%, transparent 72%),
    linear-gradient(to right, rgba(35, 37, 43, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 37, 43, .035) 1px, transparent 1px);
  background-size: auto, auto, auto, 72px 72px, 72px 72px;
  opacity: .85;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-pill);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.badge .ic { color: var(--accent); font-size: 17px; }
.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
}
.hero-sub {
  margin: 20px auto 0; max-width: 560px;
  font-size: 17px; color: var(--muted);
}

/* URL-Pill-Form (Hero + Final CTA + Overlay-Mail) */
.url-form { width: 100%; max-width: 560px; margin: 32px auto 0; }
.url-pill {
  display: flex; align-items: center; gap: 4px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-pill), var(--shadow-sm);
  padding: 6px 6px 6px 18px;
  transition: box-shadow .2s var(--ease);
}
.url-pill:focus-within { box-shadow: inset 0 0 0 2px var(--accent), 0 6px 20px -8px rgba(42, 92, 232, .35); }
.url-ic { color: var(--faint); font-size: 19px; }
.url-pill input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  padding: 12px 8px;
  font-size: 16px; color: var(--ink);
}
.url-pill input::placeholder { color: var(--muted); }
.form-hint { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Report-Mockup ---------- */
.report-frame {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--ice), var(--lilac) 55%, var(--mint));
  border-radius: calc(var(--r-card) + 10px);
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.report-card { background: #fff; border-radius: var(--r-card); overflow: hidden; }
.report-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.report-dots { display: inline-flex; gap: 5px; }
.report-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.report-title { font-size: 13.5px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-tag {
  margin-left: auto;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-tint);
  border-radius: 999px; padding: 3px 10px;
}
.report-body {
  display: grid; grid-template-columns: 340px 1fr; gap: 32px;
  padding: 28px;
}
.score { position: relative; width: 128px; height: 128px; margin-bottom: 18px; }
.score-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-track { fill: none; stroke: var(--panel); stroke-width: 11; }
.score-value {
  fill: none; stroke: var(--warn); stroke-width: 11; stroke-linecap: round;
  stroke-dasharray: 326.7;             /* 2πr, r=52 */
  stroke-dashoffset: 137;              /* 58/100 → offset = 326.7 * .42 */
}
.score-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.score-num strong { font-size: 34px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.score-num span { font-size: 12px; color: var(--faint); }
.score-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  border-radius: 999px; padding: 5px 12px;
}
.chip .ic { font-size: 14px; }
.chip-crit { color: var(--crit); background: var(--crit-tint); }
.chip-warn { color: var(--warn); background: var(--warn-tint); }
.chip-ok { color: var(--ok); background: var(--ok-tint); }
.cat-bars { display: flex; flex-direction: column; gap: 12px; }
.cat { display: grid; grid-template-columns: 92px 1fr 28px; align-items: center; gap: 12px; font-size: 13.5px; }
.cat-label { color: var(--muted); font-weight: 500; }
.cat-track { height: 7px; border-radius: 999px; background: var(--panel); overflow: hidden; }
.cat-fill { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 999px; }
.cat-val { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }

.report-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.finding {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel);
  border-radius: var(--r-inner);
  padding: 14px 16px;
}
.finding .f-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  font-size: 18px;
}
.f-crit .f-ic { color: var(--crit); background: var(--crit-tint); }
.f-warn .f-ic { color: var(--warn); background: var(--warn-tint); }
.f-ok .f-ic { color: var(--ok); background: var(--ok-tint); }
.finding strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; }
.finding p { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* ---------- Stats ---------- */
.stats { padding: 64px 0 8px; }
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat .tile { margin-bottom: 14px; font-size: 30px; }
.stat strong { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 104px 0 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.section-head p { margin-top: 14px; font-size: 16.5px; color: var(--muted); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bento-card {
  border-radius: var(--r-card);
  padding: 34px;
  background: var(--panel);
}
.tint-ice { background: linear-gradient(150deg, #F3F7FF, var(--ice)); }
.tint-mint { background: linear-gradient(150deg, #F2FBF5, var(--mint)); }
.tint-lilac { background: linear-gradient(150deg, #F7F4FD, var(--lilac)); }
.bento-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.bento-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.bento-card p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }
.bento-card .tile { margin-bottom: 18px; }
.bento-visual { display: flex; flex-direction: column; gap: 10px; }
.mini-row {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
  font-size: 14.5px; font-weight: 500;
}
.mini-row .ic { font-size: 17px; }
.m-crit .ic { color: var(--crit); }
.m-warn .ic { color: var(--warn); }
.m-ok .ic { color: var(--ok); }

/* ---------- Ohne/Mit-Vergleich (Audit-Proof, PostFlows-Pattern) ---------- */
.compare {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: calc(var(--r-card) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.compare-col { padding: 52px 44px 48px; }
.compare-off { background: linear-gradient(to bottom, #FAFAFB, #F0F1F4); }
.compare-on { background: linear-gradient(to bottom, #FBFCFF, var(--ice)); }
.compare-col h3 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.015em;
  text-align: center;
}
.compare-off h3 { color: var(--muted); }
.compare-on h3 { color: var(--accent); }
.compare-sub { margin: 10px auto 30px; max-width: 320px; font-size: 15px; color: var(--muted); text-align: center; text-wrap: balance; }
.compare-rows { display: flex; flex-direction: column; gap: 12px; }
.compare-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border-radius: var(--r-inner);
  box-shadow: var(--shadow-sm);
  padding: 14px 18px;
  text-align: left;
}
.compare-row .tile { width: 40px; height: 40px; font-size: 19px; }
.compare-row strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; }
.compare-row p { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.compare-off .compare-row { box-shadow: 0 2px 8px rgba(25, 30, 50, .05); }
.compare-cta { margin-top: 40px; text-align: center; font-size: 16.5px; color: var(--muted); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 700; text-decoration: none;
  margin-left: 6px;
}
.arrow-link:hover { color: var(--accent-deep); }
.arrow-link .ic { transition: transform .2s var(--ease); }
.arrow-link:hover .ic { transform: translateX(3px); }

/* ---------- Steps (nummerierter 1→2→3-Flow, Endlos-Choreografie) ---------- */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 20px; align-items: start; }
.step { text-align: center; padding: 0 8px; }
.step .tile { margin-bottom: 18px; }
.step-num { font-weight: 800; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 18px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.step-line {
  align-self: start; width: 72px; height: 2px; border-radius: 999px;
  margin-top: 27px;
  background:
    linear-gradient(to right, var(--accent), var(--accent)) no-repeat 0 0 / 0% 100%,
    var(--line);
}

/* Zyklus 7.2s: Kachel 1 aktiv → Linie 1 füllt → Kachel 2 → Linie 2 → Kachel 3 → repeat */
.js .steps .tile { animation: step-pulse 7.2s var(--ease) infinite; }
.js .steps > :nth-child(3) .tile { animation-delay: 2.4s; }
.js .steps > :nth-child(5) .tile { animation-delay: 4.8s; }
@keyframes step-pulse {
  0%, 4%   { transform: none; outline: 0px solid rgba(42, 92, 232, 0); }
  10%, 24% { transform: translateY(-6px) scale(1.08); outline: 6px solid var(--accent-tint); }
  32%, 100% { transform: none; outline: 0px solid rgba(42, 92, 232, 0); }
}
.js .steps .step-line { animation: line-fill 7.2s linear infinite; }
.js .steps > :nth-child(4) { animation-name: line-fill-2; }
/* Linie 1 füllt beim Übergang 1→2, Linie 2 beim Übergang 2→3.
   BEIDE leeren sich gleichzeitig am Zyklusende (97 %). */
@keyframes line-fill {
  0%, 22%  { background-size: 0% 100%, auto; }
  32%, 96% { background-size: 100% 100%, auto; }
  97%, 100% { background-size: 0% 100%, auto; }
}
@keyframes line-fill-2 {
  0%, 56%  { background-size: 0% 100%, auto; }
  66%, 96% { background-size: 100% 100%, auto; }
  97%, 100% { background-size: 0% 100%, auto; }
}

/* ---------- FAQ ---------- */
.section-faq { padding-bottom: 8px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--panel);
  border-radius: var(--r-inner);
  padding: 0 22px;
}
.faq-item { transition: background .2s var(--ease); }
.faq-item:hover { background: #F0F1F4; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  font-size: 16px; font-weight: 700;
  list-style: none; cursor: pointer;
}
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: var(--accent); font-size: 14px;
  flex-shrink: 0;
  transition: transform .25s var(--ease);
}
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item > p { padding: 0 40px 20px 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Final CTA (cleane Pastell-Box, PostFlows-Pattern) ---------- */
.final { margin-top: 104px; padding-bottom: 24px; }
.final-box {
  border-radius: calc(var(--r-card) + 8px);
  background: linear-gradient(to bottom, #FFFFFF 0%, #F4F8FF 45%, #E2ECFD 100%);
  padding: 88px 32px 96px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.final-mark {
  width: 56px; height: 56px; margin-bottom: 26px;
  border-radius: 28%;
  box-shadow: 0 0 0 1px rgba(74, 120, 255, .18), 0 0 18px rgba(74, 120, 255, .45), 0 10px 18px rgba(42, 92, 232, .28);
}
.final-mark svg { width: 100%; height: 100%; }
.final h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.12;
}
.final .url-form { margin-top: 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-brand .brand-word { font-size: 17px; }
.footer-line { font-size: 14.5px; color: var(--muted); max-width: 420px; }
.footer-legal { display: flex; gap: 22px; margin-top: 6px; }
.footer-legal a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }
.footer-copy { font-size: 14px; color: var(--muted); }

/* ---------- Overlay (Analyse-Flow) ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.overlay[hidden] { display: none; }
.overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(28, 30, 38, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.overlay-card {
  position: relative;
  width: 100%; max-width: 520px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 80px -20px rgba(20, 25, 45, .45);
  padding: 40px 36px 36px;
  animation: ov-in .35s var(--ease);
}
@keyframes ov-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.overlay-close {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--panel); color: var(--muted);
  font-size: 17px;
}
.overlay-close:hover { background: var(--line); color: var(--ink); }
.ov-head { text-align: center; }
.ov-head h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.ov-domain { margin-top: 6px; font-size: 14.5px; color: var(--muted); word-break: break-all; }
.ov-pulse {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(160deg, #4A78FF, #1F49C6); color: #fff; font-size: 26px;
  box-shadow: 0 10px 20px -10px rgba(42, 92, 232, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
  margin-bottom: 18px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(42, 92, 232, .25); } 50% { box-shadow: 0 0 0 12px rgba(42, 92, 232, 0); } }
.ov-progress {
  height: 8px; border-radius: 999px; background: var(--panel);
  margin: 26px 0 22px; overflow: hidden;
}
.ov-progress-fill {
  display: block; height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #3E6DF5);
  transition: width .5s var(--ease);
}
.ov-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ov-step {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 12px;
  font-size: 15px; font-weight: 500; color: var(--faint);
  transition: color .3s, background .3s;
}
.ov-step .st-ic { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; font-size: 17px; }
.ov-step.active { color: var(--ink); background: var(--accent-tint); }
.ov-step.active .st-ic { color: var(--accent); }
.ov-step.active .st-ic svg { animation: spin 1s linear infinite; }
.ov-step.done { color: var(--muted); }
.ov-step.done .st-ic { color: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }
.ov-counter { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--muted); }
.ov-counter strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.ov-done-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(160deg, #EFFBF3, #C4ECD2); color: #12824B; font-size: 28px;
  box-shadow: 0 10px 20px -12px rgba(18, 130, 75, .3), inset 0 1px 0 rgba(255, 255, 255, .8);
  margin-bottom: 18px;
}
.ov-result { margin-top: 10px; font-size: 16px; color: var(--muted); }
.ov-result strong { color: var(--ink); }
.ov-teaser { position: relative; margin: 24px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.blurline strong, .blurline p { filter: blur(5px); user-select: none; }
.ov-teaser-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 20%, #fff 96%);
  pointer-events: none;
}
.ov-mailform { margin-top: 18px; }
.ov-mail-label { font-size: 15.5px; font-weight: 700; text-align: center; margin-bottom: 14px; }
.ov-mailform .url-pill { padding-left: 16px; }
.ov-fields { display: flex; flex-direction: column; gap: 10px; }
.ov-mail-error { margin-top: 10px; font-size: 13.5px; color: var(--crit); text-align: center; }
.ov-consent { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.ov-consent a { color: var(--muted); }
.ov-spam { margin: 18px 0 22px; text-align: center; font-size: 14px; color: var(--muted); }
#phaseSent { text-align: center; }

/* ---------- Reveals ----------
   Nur gated, wenn JS läuft (html.js): ohne JS bleibt alles sichtbar. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Gestaffelte Gruppen: Kinder laufen nacheinander ein */
.js .reveal-group > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal-group.in > * { opacity: 1; transform: none; }
.js .reveal-group.in > :nth-child(2) { transition-delay: .09s; }
.js .reveal-group.in > :nth-child(3) { transition-delay: .18s; }
.js .reveal-group.in > :nth-child(4) { transition-delay: .27s; }
.js .reveal-group.in > :nth-child(5) { transition-delay: .36s; }
.js .reveal-group.in > :nth-child(6) { transition-delay: .45s; }

/* Report-Mockup: Ring + Balken + Befunde animieren beim Einlaufen */
.js .report-card .score-value { stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.4s var(--ease) .25s; }
.js .report-card.animate .score-value { stroke-dashoffset: 137; }
.js .report-card .cat-fill { width: 0; transition: width 1s var(--ease); }
.js .report-card.animate .cat-fill { width: var(--w); }
.js .report-card.animate .cat:nth-child(2) .cat-fill { transition-delay: .15s; }
.js .report-card.animate .cat:nth-child(3) .cat-fill { transition-delay: .3s; }
.js .report-card .finding { opacity: 0; transform: translateX(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .report-card.animate .finding { opacity: 1; transform: none; }
.js .report-card.animate .finding:nth-child(2) { transition-delay: .12s; }
.js .report-card.animate .finding:nth-child(3) { transition-delay: .24s; }
.js .report-card.animate .finding:nth-child(4) { transition-delay: .36s; }

/* ---------- Hero-Entrance (CSS-only, läuft auch ohne JS zu Ende) ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .badge,
.hero h1,
.hero .hero-sub,
.hero .url-form { animation: rise-in .7s var(--ease) both; }
.hero h1 { animation-delay: .08s; }
.hero .hero-sub { animation-delay: .16s; }
.hero .url-form { animation-delay: .24s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-group > * { opacity: 1; transform: none; transition: none; }
  .js .report-card .score-value { stroke-dashoffset: 137; transition: none; }
  .js .report-card .cat-fill { width: var(--w); transition: none; }
  .js .report-card .finding { opacity: 1; transform: none; transition: none; }
  .hero .badge, .hero h1, .hero .hero-sub, .hero .url-form { animation: none; }
  .js .steps .tile, .js .steps .step-line { animation: none; }
  .ov-pulse, .ov-step.active .st-ic svg { animation: none; }
  .overlay-card { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ============================================================
   Mobile (eigenes Layout, nicht nur geschrumpft)
   ============================================================ */
@media (max-width: 900px) {
  .report-body { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .report-left { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .cat-bars { width: 100%; max-width: 380px; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-template-columns: 1fr; gap: 24px; }
  .compare { grid-template-columns: 1fr; }
  .compare-col { padding: 40px 24px 36px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step-line { display: none; }
}

@media (max-width: 640px) {
  .header { top: 8px; padding: 0 10px; }
  .header-bar { min-height: 54px; padding: 8px 10px 8px 16px; }
  .brand-word { font-size: 18px; }
  .hero { padding: 112px 0 24px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero-sub { font-size: 15.5px; }
  /* Form: Button unter dem Input, volle Breite */
  .url-pill { flex-wrap: wrap; border-radius: 24px; padding: 8px; }
  .url-pill input { width: 100%; flex: 1 1 100%; order: 1; padding: 12px 10px; }
  .url-ic { display: none; }
  .url-pill .btn { order: 2; width: 100%; }
  .report-frame { margin-top: 40px; padding: 8px; border-radius: 24px; }
  .report-right .finding:nth-child(4) { display: none; }
  .stats { padding-top: 48px; }
  .stats-row { grid-template-columns: 1fr; gap: 28px; }
  .section { padding-top: 72px; }
  .bento-card { padding: 26px; }
  .final { margin-top: 72px; }
  .final-box { padding: 56px 20px 64px; border-radius: 24px; }
  .faq-item > p { padding-right: 8px; }
  .overlay { padding: 12px; align-items: flex-end; }
  .overlay-card { padding: 32px 22px 24px; border-radius: 24px 24px 20px 20px; }
  .footer { padding: 32px 0 36px; }
}
