/* ============================================================
   Pavora – Landing Page (Trust-Angle)
   Statisches CSS, keine Frameworks.
   Tokens: verbatim aus dem Build-Brief (Pavora Design System,
   Marketing-Variante: Playfair Display + DM Sans + App-Teal).
   ============================================================ */

/* ---------- Fonts: selbst gehostet, KEIN Google-Fonts-CDN ---------- */
/* Variable Fonts (SIL OFL), Subsets latin + latin-ext.
   Geprüft: ä ö ü Ä Ö Ü ß € § werden abgedeckt. */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-latin-ext-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-ext-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (verbatim aus dem Brief) ---------- */
:root {
  /* Fonts — self-hosted, see above */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Type scale */
  --text-hero: clamp(2.75rem, 6vw, 4.5rem);
  --text-h1:   clamp(2rem, 4vw, 3rem);
  --text-h2:   1.75rem;
  --text-h3:   1.25rem;
  --text-body: 1rem;
  --text-sm:   0.875rem;
  --text-xs:   0.75rem;
  --leading-tight: 1.05;
  --leading-body:  1.6;
  /* Primary / Blue — canonical value from the app design system */
  --primary-50:#EAF0F7; --primary-100:#C5D6EA; --primary-200:#8EB8E5;
  --primary-400:#3A6299; --primary-600:#1B3E6B; --primary-800:#0E2A4D; --primary-900:#081B36;
  /* Accent / Teal — CTAs, badges, key states */
  --accent-50:#EEF7F1; --accent-100:#C4E3D0; --accent-300:#82C09A;
  --accent-500:#30A688; --accent-700:#1e7a60; --accent-900:#265239;
  /* Neutral / Taupe */
  --neutral-50:#F4F2F1; --neutral-100:#E0DAD7; --neutral-300:#B3A9A3;
  --neutral-500:#85756E; --neutral-700:#5C504B; --neutral-900:#322B28;
  /* Warning / Amber — validation and warnings */
  --warning-50:#FBF1E1; --warning-100:#F3D9AC; --warning-300:#E8A24A;
  --warning-500:#CE8226; --warning-700:#9E611A; --warning-900:#6B400F;
  /* Semantic roles */
  --color-bg:#FBFBEF; --color-surface:#FFFFFF;
  --color-text:#0E2A4D; --color-text-muted:#5C504B; --color-border:#DEE4EC;
  --color-cta:var(--accent-500); --color-cta-text:#FFFFFF;
  /* Radius */
  --radius-sm:8px; --radius-md:12px; --radius-pill:999px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-600); text-underline-offset: 3px; }
a:hover { color: var(--primary-800); }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-surface); color: var(--color-text);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

section { padding: 88px 0; }
@media (max-width: 767px) { section { padding: 60px 0; } }

p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

/* ---------- Typografie ---------- */
.hero-title {
  font-family: var(--font-display); font-size: var(--text-hero); font-weight: 600;
  line-height: var(--leading-tight); letter-spacing: -0.01em; color: var(--primary-800);
}
.hero-title em { font-style: italic; font-weight: 500; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--primary-800);
  /* Italic-Descender-Reserve */
  padding-bottom: 4px;
}
h2 em { font-style: italic; font-weight: 500; }

h3 {
  font-family: var(--font-sans);
  font-size: var(--text-h3);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--primary-800);
}

.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  border-radius: var(--radius-md); border: 1px solid transparent;
  padding: 14px 28px; cursor: pointer; text-decoration: none;
  transition: opacity .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-cta); color: var(--color-cta-text); }
.btn-primary:hover { opacity: .92; color: var(--color-cta-text); }
.btn-secondary {
  background: var(--color-surface); color: var(--primary-800);
  border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--primary-50); color: var(--primary-800); }
.btn-dark { background: var(--primary-800); color: #F5F8FB; }
.btn-dark:hover { opacity: .92; color: #F5F8FB; }
.btn-block { width: 100%; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 12px; border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 600; white-space: nowrap;
}
.badge-success { background: rgba(48,166,136,.12); color: var(--accent-700); }
.badge-info    { background: #EDF1F5; color: var(--primary-800); }
.badge-warning { background: var(--warning-50); color: var(--warning-700); }

/* ---------- Header ---------- */
.site-header {
  background: var(--primary-800);
  border-bottom: 1px solid rgba(245,248,251,.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #F5F8FB; text-decoration: none; font-weight: 700; font-size: 1.05rem;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  /* Echtes Logo (dunkelblau) auf weißer Kachel, damit es auf der
     dunklen Header-Leiste sichtbar ist. Fehlt die Datei, bleibt
     nur die weiße Kachel – kein kaputtes Bild-Icon. */
  background: #fff url("assets/pavora-logo.svg") center / 76% no-repeat;
  color: transparent; font-size: 0;   /* Platzhalter-"P" wird ausgeblendet */
  display: inline-flex; align-items: center; justify-content: center;
}
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a.nav-link {
  color: var(--primary-100); text-decoration: none; font-size: var(--text-sm); font-weight: 500;
}
.header-nav a.nav-link:hover { color: #fff; }
.btn-header { padding: 9px 18px; font-size: var(--text-sm); }
@media (max-width: 640px) {
  .header-nav a.nav-link { display: none; }
}

/* ---------- Hero (dunkel, einzige dunkle Fläche) ---------- */
.hero {
  background: var(--primary-800);
  color: #F5F8FB;
  padding: 84px 0 92px;
}
@media (max-width: 767px) { .hero { padding: 56px 0 64px; } }
.hero .hero-title { color: #FFFFFF; max-width: 17ch; }
.hero-sub {
  font-size: 1.15rem; color: var(--primary-100);
  max-width: 52ch; margin: 22px 0 0;
}
.hero-cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero-terms { margin-top: 14px; font-size: var(--text-sm); color: var(--primary-100); }
.hero-doclink { margin-top: 10px; font-size: var(--text-sm); }
.hero-doclink a { color: var(--primary-100); }
.hero-doclink a:hover { color: #fff; }
.hero-anchor {
  margin-top: 40px;
  display: inline-flex; align-items: baseline; gap: 10px;
  border-top: 1px solid rgba(245,248,251,.18);
  padding-top: 18px;
  max-width: 60ch;
}
.hero-anchor strong { color: #fff; font-weight: 600; white-space: nowrap; }
.hero-anchor span { color: var(--primary-100); font-size: var(--text-sm); }

/* Sanfter Seiten-Einstieg (einzige Lade-Animation) */
.js .hero-inner { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-inner { animation: hero-in .5s ease-out both; }
  @keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Scroll-Reveal (max. 8px, ~300ms) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translate3d(0, 8px, 0); }
  .js .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .3s ease-out, transform .3s ease-out;
  }
}

/* ============================================================
   Transkript-Band (Signatur-Element, einzige Ausnahme der
   Animationsregeln). Zwei identisch positionierte Kopien,
   getrennt per clip-path an der Pill-Mittellinie.
   ============================================================ */
.band-section { padding: 8px 0 36px; }
.band-wrap {
  position: relative;
  height: 128px;                    /* feste Höhe, kein Layout-Shift */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
@media (min-width: 768px) {
  /* Leichte Neigung als flacher Bogen-Ersatz (max ~2°), Pill mittig.
     Ein echter Bogen würde die clip-path-Synchronisation der beiden
     Kopien brechen; die Neigung transportiert dieselbe Bewegung. */
  .band-tilt { transform: rotate(-2deg); }
}
.band-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center;
}
.band-layer-spoken { clip-path: inset(0 50% 0 0); }
.band-layer-clean  { clip-path: inset(0 0 0 50%); }

.band-track {
  display: flex; flex: none;
  will-change: transform;
  --band-dur: 96s;   /* längerer Text = längere Laufzeit, damit lesbar */
}
@media (prefers-reduced-motion: no-preference) {
  .js .band-track {
    animation: band-run var(--band-dur, 32s) linear infinite;
    animation-play-state: paused;
  }
  .js .band-running .band-track { animation-play-state: running; }
}
@keyframes band-run {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

.band-seg {
  flex: none;
  width: 560px;                     /* identische Segmentbreite in beiden Kopien = Synchronlauf */
  white-space: nowrap;
  overflow: hidden;
  font-size: 1.05rem;
  padding-right: 28px;
}
/* Links: gesprochene Sprache, kursiv-menschlich */
.band-layer-spoken .band-seg {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--neutral-500);
  font-weight: 400;
  letter-spacing: .01em;
}
/* Rechts: sauberes Transkript, klare Marken-Sans (DM Sans) */
.band-layer-clean .band-seg {
  font-family: var(--font-sans);
  color: var(--primary-800);
  font-weight: 500;
  letter-spacing: -0.005em;
}
@media (max-width: 767px) {
  .band-wrap { height: 96px; }
  .band-seg { width: 470px; font-size: 0.92rem; padding-right: 22px; }
}

.band-pill {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(14,42,77,.10);
  padding: 14px 22px;
  display: flex; align-items: center; gap: 4px;
  z-index: 2;
}
.band-pill svg { display: block; }
.band-pill rect { fill: var(--accent-500); }
@media (prefers-reduced-motion: no-preference) {
  .js .band-running .band-pill rect {
    animation: pill-pulse 2.6s ease-in-out infinite;
    transform-origin: center;
  }
  .js .band-running .band-pill rect:nth-child(2) { animation-delay: .3s; }
  .js .band-running .band-pill rect:nth-child(3) { animation-delay: .6s; }
  .js .band-running .band-pill rect:nth-child(4) { animation-delay: .9s; }
  .js .band-running .band-pill rect:nth-child(5) { animation-delay: 1.2s; }
  @keyframes pill-pulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(.72); }
  }
}
@media (max-width: 767px) {
  .band-pill { padding: 9px 14px; }        /* Pill ~60 % */
  .band-pill svg { width: 40px; height: 18px; }
}
.band-note { margin-top: 10px; }

/* ---------- Schritte (Abschnitt 2) ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin: 36px 0 0;
  padding: 0; list-style: none;
}
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; gap: 20px; } }
.steps li { border-top: 2px solid var(--accent-500); padding-top: 14px; }
.steps h3 { margin-bottom: 6px; }
.steps p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }

kbd {
  font-family: var(--font-sans);
  background: #EDF1F5; border: 1px solid var(--color-border);
  border-radius: 6px; padding: 1px 7px; font-size: .85em; font-weight: 600;
  color: var(--primary-800);
}

.no-integration {
  margin-top: 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--accent-500);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  max-width: 760px;
}
.no-integration p { margin: 0; }

/* ---------- Screenshots ---------- */
.shot-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 44px;
}
@media (max-width: 860px) { .shot-grid { grid-template-columns: 1fr; } }
.shot-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(14,42,77,.10);
  padding: 14px;
  margin: 0;
}
.shot-card img { border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.shot-card figcaption {
  font-size: var(--text-sm); color: var(--color-text-muted);
  padding: 12px 6px 2px;
}
.shot-single { max-width: 860px; margin-top: 44px; }

/* ---------- Video-Facade ---------- */
.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;              /* fixe Ratio, kein Layout-Shift */
  max-width: 860px;
  margin-top: 44px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--primary-900);
}
.video-facade img.video-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: rgba(8,27,54,.12);
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s ease;
}
.video-play:hover { background: rgba(8,27,54,.24); }
.video-play .play-disc {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(14,42,77,.25);
}
.video-play .play-disc svg { margin-left: 4px; }
.video-runtime {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(8,27,54,.78); color: #F5F8FB;
  font-size: var(--text-sm); font-weight: 600;
  padding: 3px 10px; border-radius: 6px;
  pointer-events: none;
}
.video-facade iframe, .video-facade video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-facade video { object-fit: contain; }
.video-caption { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 10px; }

/* ---------- Abschnitt 3: Warum ---------- */
.why-list { max-width: 760px; }
.why-list .why-item { padding: 22px 0; }
.why-list .why-item + .why-item { border-top: 1px solid var(--color-border); }
.why-item h3 { margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--color-text-muted); }

/* ---------- Abschnitt 4: Überleitung ---------- */
.objection {
  padding: 56px 0;
}
.objection p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  color: var(--primary-800);
  max-width: 34em;
  margin: 0 auto;        /* Block horizontal zentrieren */
  padding-bottom: 4px; /* Descender-Reserve */
}

/* ---------- Abschnitt 5: § 203 ---------- */
.law-section { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.law-body p { color: var(--color-text); }
.law-body .law-core {
  border-left: 4px solid var(--primary-800);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
}
.law-body .law-core p { margin: 0; font-weight: 500; }

/* ---------- Abschnitt 6: Belege ---------- */
.evidence-list { list-style: none; margin: 36px 0 0; padding: 0; max-width: 860px; }
.evidence-list li {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 18px; align-items: baseline;
  padding: 18px 0;
}
.evidence-list li + li { border-top: 1px solid var(--color-border); }
.evidence-list .ev-name { font-weight: 600; color: var(--primary-800); }
.evidence-list .ev-desc { color: var(--color-text-muted); font-size: var(--text-sm); }
@media (max-width: 700px) {
  .evidence-list li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Abschnitt 7 + 8: Kontrolle / Daten ---------- */
.control-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .control-grid { grid-template-columns: 1fr; } }
.control-grid .shot-card { margin-top: 8px; }

.fact-list { list-style: none; margin: 28px 0 0; padding: 0; max-width: 68ch; }
.fact-list li { padding: 14px 0 14px 34px; position: relative; }
.fact-list li + li { border-top: 1px solid var(--color-border); }
.fact-list li::before {
  content: "";
  position: absolute; left: 4px; top: 21px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent-500);
  border-bottom: 2.5px solid var(--accent-500);
  transform: rotate(-45deg);
}
.fact-list strong { display: block; color: var(--primary-800); }
.fact-list span { color: var(--color-text-muted); font-size: var(--text-sm); }

.open-point {
  margin-top: 28px;
  background: var(--warning-50);
  border: 1px solid var(--warning-100);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  max-width: 760px;
}
.open-point p { margin: 0; color: var(--warning-900); font-size: var(--text-sm); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin-top: 12px; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-q {
  width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600;
  color: var(--primary-800);
  padding: 20px 44px 20px 0;
  position: relative;
}
.faq-q::after {
  content: "";
  position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--primary-400);
  border-bottom: 2px solid var(--primary-400);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s ease;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(225deg); }
.faq-a { padding: 0 0 22px; max-width: 66ch; }
.faq-a[hidden] { display: none; }
.faq-a p { color: var(--color-text-muted); margin: 0 0 .8em; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Setup ---------- */
.setup-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
@media (max-width: 900px) { .setup-grid { grid-template-columns: 1fr; } }
.setup-steps { list-style: none; counter-reset: setup; margin: 24px 0 0; padding: 0; max-width: 60ch; }
.setup-steps li {
  counter-increment: setup;
  padding: 12px 0 12px 44px; position: relative;
}
.setup-steps li::before {
  content: counter(setup);
  position: absolute; left: 0; top: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #EDF1F5; color: var(--primary-800);
  font-size: var(--text-sm); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Signup ---------- */
.signup-section { background: var(--color-surface); border-top: 1px solid var(--color-border); }
.signup-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-top: 36px; max-width: 860px;
  align-items: stretch;
}
@media (max-width: 767px) { .signup-cols { grid-template-columns: 1fr; } }
.signup-col {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--color-bg);
  display: flex; flex-direction: column; gap: 16px;
}
.signup-col h3 { margin: 0; }

.btn-google {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--primary-800);
  font-weight: 600;
}
.btn-google:hover { background: var(--primary-50); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--primary-800); }
.field input[type="email"], .field input[type="password"], .field input[type="text"],
.field input[type="tel"] {
  font-family: var(--font-sans); font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}
.field input:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(48,166,136,.18);
}
.field .field-hint { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Validierung: Amber-Tokens, kein Rot auf dieser Seite */
.field.has-error input {
  border-color: var(--warning-500);
  box-shadow: 0 0 0 3px rgba(206,130,38,.15);
}
.field-error {
  font-size: var(--text-sm); color: var(--warning-700); font-weight: 500;
  display: none;
}
.field.has-error .field-error { display: block; }

/* Server-Fehler unter dem Formular (Konto existiert, Rate-Limit, Netzwerk) */
.form-error {
  font-size: var(--text-sm); color: var(--warning-700); font-weight: 500;
  margin-bottom: 14px;
}
.form-error[hidden] { display: none; }

.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  font-size: var(--text-sm); color: var(--color-text-muted);
  align-items: start;
}
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent-500); }

.signup-after { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-900);
  color: var(--primary-100);
  padding: 48px 0 40px;
  font-size: var(--text-sm);
}
.site-footer a { color: var(--primary-100); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
}
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-heading { color: #fff; font-weight: 600; margin: 0 0 10px; font-size: var(--text-sm); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(245,248,251,.14); color: var(--primary-100); }

/* ============================================================
   thanks.html
   ============================================================ */
.thanks-main { padding: 72px 0 96px; }
.thanks-title {
  font-family: var(--font-display); font-size: var(--text-h1); font-weight: 600;
  line-height: 1.1; letter-spacing: -0.01em; color: var(--primary-800);
  margin: 0 0 14px; padding-bottom: 4px;
}
.download-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(14,42,77,.10);
  padding: 32px;
  margin-top: 36px;
  max-width: 640px;
}
.download-grid { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.download-grid .download-option { flex: 1 1 220px; }
.download-note { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 14px; }
.download-fallback-lead {
  font-size: var(--text-sm); color: var(--color-text-muted);
  margin-top: 48px; margin-bottom: 0;
}
.download-card--compact {
  padding: 20px; max-width: 480px; margin-top: 14px;
}
.download-card--compact h3 { font-size: var(--text-body); }
.download-card--compact .download-grid { gap: 14px; }
.download-card--compact .download-note { font-size: var(--text-xs); margin-top: 10px; }
.btn-sm { padding: 9px 18px; font-size: var(--text-sm); }
.other-systems { margin-top: 18px; font-size: var(--text-sm); }
.other-systems-panel[hidden] { display: none; }
.other-systems-panel { margin-top: 16px; border-top: 1px solid var(--color-border); padding-top: 16px; }
.other-systems-panel .dl-row { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.perm-note {
  margin-top: 28px;
  background: #EDF1F5;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  max-width: 640px;
  font-size: var(--text-sm);
  color: var(--primary-800);
}
.perm-note p { margin: 0; }

/* ============================================================
   Konto- und Bestätigungs-Seiten (konto.html,
   bestaetigung-gesendet.html, konto-bestaetigt.html)
   ============================================================ */
.auth-main { padding: 64px 0 88px; text-align: center; }
.auth-card {
  max-width: 460px; margin: 32px auto 0;
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(14,42,77,.10);
  padding: 32px;
}
.auth-lead { max-width: 52ch; }
.auth-sso { display: flex; flex-direction: column; gap: 12px; }
.auth-sso .btn { justify-content: center; }
.or-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0; color: var(--color-text-muted); font-size: var(--text-sm);
}
.or-divider::before, .or-divider::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--color-border);
}
.auth-after { font-size: var(--text-sm); color: var(--color-text-muted); margin: 18px 0 0; }
.auth-switch { font-size: var(--text-sm); margin-top: 16px; }

/* SSO-Buttons: neutrale Outline mit Markenlogo, Apple in Schwarz */
.btn-microsoft {
  background: var(--color-surface); border-color: var(--color-border);
  color: var(--primary-800); font-weight: 600;
}
.btn-microsoft:hover { background: var(--primary-50); color: var(--primary-800); }
.btn-apple { background: #000; color: #fff; border-color: #000; font-weight: 600; }
.btn-apple:hover { opacity: .9; color: #fff; }

/* Bestätigungs-Icon (Kreis mit Haken / Briefsymbol) */
.auth-badge {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(48,166,136,.12); margin-bottom: 20px;
}
.auth-badge svg { display: block; }

/* Demo-Hinweis (nur ohne Backend sichtbar, klar als Platzhalter markiert) */
.demo-hint { margin-top: 28px; }

/* SmartScreen-Karte (konto-bestaetigt.html): drei Freigabe-Schritte als
   Kacheln nebeneinander, je mit Mini-Illustration der Edge-Oberfläche
   (rein dekorativ, aria-hidden; Beschriftungen wie im deutschen Edge). */
#smartscreen-guide {
  max-width: 880px;            /* breiter als .auth-card, drei Spalten */
  text-align: center;          /* Titel + Einleitung mittig über den Kacheln */
}
#smartscreen-guide .ss-steps {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 860px) {
  #smartscreen-guide .ss-steps { grid-template-columns: 1fr; }
}
#smartscreen-guide .ss-steps li {
  display: flex; flex-direction: column; gap: 8px;
  text-align: left;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
}
#smartscreen-guide .ss-head {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--primary-800);
}
#smartscreen-guide .ss-n {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-500); color: #fff;
  font-size: var(--text-sm); font-weight: 700;
}
#smartscreen-guide .ss-desc {
  font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted);
}
#smartscreen-guide .ss-visual {
  margin-top: auto; padding-top: 12px;   /* ans Kachel-Ende, Reihen bündig */
  display: flex; justify-content: center;
  font-size: var(--text-xs); line-height: 1.4; color: var(--neutral-700);
}
#smartscreen-guide .ss-row {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  background: #F1F3F5; border: 1px solid var(--color-border);
  border-radius: 10px; padding: 9px 12px;
}
#smartscreen-guide .ss-row svg { flex: none; display: block; }
#smartscreen-guide .ss-file {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#smartscreen-guide .ss-dots {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-surface); border: 2px solid var(--accent-500);
  color: var(--primary-800); font-weight: 700; font-size: var(--text-sm);
}
#smartscreen-guide .ss-menu {
  display: inline-block; min-width: 200px; text-align: left;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 10px; padding: 6px;
  box-shadow: 0 8px 20px rgba(14, 42, 77, .12);
}
#smartscreen-guide .ss-menu > span { display: block; padding: 6px 10px; border-radius: 6px; }
#smartscreen-guide .ss-menu .ss-sep { height: 1px; padding: 0; margin: 4px 6px; background: var(--color-border); }
#smartscreen-guide .ss-active {
  background: var(--accent-50); color: var(--accent-700); font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--accent-500);
}
#smartscreen-guide .ss-dialog {
  display: inline-flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
#smartscreen-guide .ss-btns { display: inline-flex; gap: 8px; }
#smartscreen-guide .ss-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--color-surface); border: 1px solid var(--color-border);
}
#smartscreen-guide .ss-btn--dark {
  background: var(--primary-900); border-color: var(--primary-900); color: #fff;
}
#smartscreen-guide .ss-float {
  display: inline-block; padding: 6px 12px; border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 0 8px 20px rgba(14, 42, 77, .15);
}

/* Inline-CTA am Ende einzelner Sections */
.section-cta { margin-top: 44px; }

/* ---------- Reduced Motion: alles aus ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .band-track { animation: none !important; transform: none !important; }
  .band-pill rect { animation: none !important; }
}

/* ---------- Druck ---------- */
@media print {
  .video-facade, .site-header .btn, .skip-link { display: none; }
}

/* ============================================================
   Zentrierte Ausrichtung der Abschnittsinhalte
   (statt linksbündig). Überschriften und Fließtext mittig,
   breitenbegrenzte Blöcke horizontal zentriert. Strukturierte
   Komponenten (Formular, FAQ, Setup-Schritte, Fakten-Liste mit
   Haken, Belege-Tabelle) bleiben intern linksbündig lesbar.
   ============================================================ */
main section { text-align: center; }

/* Breitenbegrenzte Textblöcke tatsächlich zentrieren */
main p { margin-left: auto; margin-right: auto; }
.why-list,
.no-integration,
.fact-list,
.open-point,
.faq-list,
.evidence-list,
.setup-steps,
.signup-cols,
.video-facade,
.shot-single { margin-left: auto; margin-right: auto; }

/* Hero */
.hero .hero-title { margin-left: auto; margin-right: auto; }
.hero-sub { margin-left: auto; margin-right: auto; }
.hero-cta-row { justify-content: center; }
.hero-anchor { text-align: left; }        /* Zeile bleibt lesbar */

/* Strukturierte Komponenten: intern linksbündig belassen */
.law-core { text-align: left; }
.evidence-list,
.evidence-list li { text-align: left; }
.fact-list,
.fact-list li { text-align: left; }
.setup-steps,
.setup-steps li { text-align: left; }
.faq-q, .faq-a { text-align: left; }
.signup-col { text-align: left; }
.field label, .field-hint, .field-error, .consent { text-align: left; }

/* ============================================================
   Thanks-/Konto-/Bestätigungs-Seiten: dieselbe zentrierte
   Ausrichtung wie die Sections der Landing-Page. Überschriften,
   Fließtext und Karten (inkl. ihr Innenleben) sind mittig.
   ============================================================ */
.thanks-main, .auth-main { text-align: center; }
.thanks-main .download-card,
.thanks-main .perm-note,
.auth-main .perm-note,
.auth-main .auth-card { margin-left: auto; margin-right: auto; }
.download-card { text-align: center; }

/* ---------- Name-Popup (thanks.html) ---------- */
.name-modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,27,54,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.name-modal-overlay[hidden] { display: none; }
.name-modal {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(8,27,54,.35);
  max-width: 420px; width: 100%;
  padding: 32px;
  text-align: left;
}
.name-modal h2 {
  margin: 0 0 8px; font-family: var(--font-display); font-size: var(--text-h3);
  font-weight: 600; color: var(--primary-800);
}
.name-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: transparent; color: var(--color-text-muted);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.name-modal-close:hover { background: var(--primary-50); }
.name-modal-actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.btn-text {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: underline;
}
