/* ============================================================
   Reward Rangers — Marketing-Webseite
   Design-System „Ranger-Abenteuerwelt" — 1:1 aus der App portiert
   (src/style.css + tailwind.config.js + usePageTheme.js)
   Light = „Sonnentag" (warmes Creme) · Dark = „Nachtlager" (Nachtblau)
   ============================================================ */

/* ---------- 1. Design-Tokens ---------- */
:root {
  /* Flächen (Sonnentag) */
  --surface-primary: #ffffff;
  --surface-secondary: #fbf6ec;
  --surface-tertiary: #f3ecdd;
  --surface-elevated: #ffffff;
  --surface-overlay: #eae1ce;
  --text-primary: #3d3a33;
  --text-secondary: #6b6558;
  --text-tertiary: #8c857a;
  --border-primary: #ede4d3;
  --border-secondary: #dcd2bd;
  --border-light: #f5efe2;
  --shadow-color: rgba(93, 64, 20, 0.08);
  --shadow-hover-color: rgba(93, 64, 20, 0.14);
  --btn-secondary-bg: #f3ecdd;
  --btn-secondary-text: #6b6558;

  /* Akzente */
  --star-gold: #ffc93c;
  --star-gold-deep: #f5a623;
  --star-gold-soft: #fff3d1;
  --rr-success: #22c55e;
  --rr-success-soft: #e5f8ec;
  --rr-pending: #f9a825;
  --rr-pending-soft: #fff4dc;
  --rr-danger: #f45b5b;
  --rr-danger-soft: #feecec;
  --rr-info: #38bdf8;
  --rr-info-soft: #e3f5fe;

  /* Marke (= Missionen-Gruen) */
  --brand: #10b981;
  --brand-strong: #059669;
  --brand-deep: #047857;
  --brand-soft: #e7f8f0;

  /* Welt-Farben (usePageTheme.js) — Default: Missionen */
  --page-primary: #10b981;
  --page-primary-hover: #059669;
  --page-primary-active: #047857;
  --page-primary-soft: #e7f8f0;
  --page-primary-shadow: rgba(16, 185, 129, 0.25);
  --page-grad-from: #10b981;
  --page-grad-to: #059669;

  /* Form & Layout */
  --radius: 1.25rem;      /* rounded-rr */
  --radius-lg: 1.75rem;   /* rounded-rr-lg */
  --radius-pill: 9999px;
  --container: 1120px;
  --nav-h: 72px;
  --font-display: 'Baloo 2 Variable', 'Baloo 2', system-ui, sans-serif;
  --font-sans: 'Nunito Variable', 'Nunito', system-ui, -apple-system, sans-serif;
}

/* Nachtlager (explizit per Klasse — wie in der App html.dark) */
html.dark {
  --surface-primary: #1c2440;
  --surface-secondary: #131a2e;
  --surface-tertiary: #232c4c;
  --surface-elevated: #2a3457;
  --surface-overlay: #0b1022;
  --text-primary: #f4f0e4;
  --text-secondary: #c6cce0;
  --text-tertiary: #97a0bc;
  --border-primary: #2c3557;
  --border-secondary: #3b4570;
  --border-light: #232c4c;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-hover-color: rgba(0, 0, 0, 0.55);
  --btn-secondary-bg: #232c4c;
  --btn-secondary-text: #c6cce0;

  --star-gold-soft: rgba(255, 201, 60, 0.16);
  --rr-success-soft: rgba(34, 197, 94, 0.16);
  --rr-pending-soft: rgba(249, 168, 37, 0.16);
  --rr-danger-soft: rgba(244, 91, 91, 0.16);
  --rr-info-soft: rgba(56, 189, 248, 0.16);

  --brand: #34d399;
  --brand-soft: rgba(16, 185, 129, 0.15);

  --page-primary: #34d399;
  --page-primary-soft: rgba(16, 185, 129, 0.15);
}

/* Ohne JS: Systempraeferenz respektieren */
@media (prefers-color-scheme: dark) {
  html.no-js {
    --surface-primary: #1c2440;
    --surface-secondary: #131a2e;
    --surface-tertiary: #232c4c;
    --surface-elevated: #2a3457;
    --surface-overlay: #0b1022;
    --text-primary: #f4f0e4;
    --text-secondary: #c6cce0;
    --text-tertiary: #97a0bc;
    --border-primary: #2c3557;
    --border-secondary: #3b4570;
    --border-light: #232c4c;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --shadow-hover-color: rgba(0, 0, 0, 0.55);
    --btn-secondary-bg: #232c4c;
    --btn-secondary-text: #c6cce0;
    --star-gold-soft: rgba(255, 201, 60, 0.16);
    --rr-success-soft: rgba(34, 197, 94, 0.16);
    --rr-pending-soft: rgba(249, 168, 37, 0.16);
    --rr-danger-soft: rgba(244, 91, 91, 0.16);
    --rr-info-soft: rgba(56, 189, 248, 0.16);
    --brand: #34d399;
    --brand-soft: rgba(16, 185, 129, 0.15);
    --page-primary: #34d399;
    --page-primary-soft: rgba(16, 185, 129, 0.15);
  }
}

/* Welt-Scopes: Sektionen/Karten faerben sich wie die App-Slides */
.theme-missions { --page-primary: #10b981; --page-primary-hover: #059669; --page-primary-active: #047857; --page-primary-soft: #e7f8f0; --page-primary-shadow: rgba(16,185,129,.25); --page-grad-from: #10b981; --page-grad-to: #059669; }
.theme-rewards  { --page-primary: #f59e0b; --page-primary-hover: #d97706; --page-primary-active: #b45309; --page-primary-soft: #fff6e5; --page-primary-shadow: rgba(245,158,11,.25); --page-grad-from: #fbbf24; --page-grad-to: #f59e0b; }
.theme-honor    { --page-primary: #8b5cf6; --page-primary-hover: #7c3aed; --page-primary-active: #6d28d9; --page-primary-soft: #f2edfe; --page-primary-shadow: rgba(139,92,246,.25); --page-grad-from: #a78bfa; --page-grad-to: #7c3aed; }
.theme-plan     { --page-primary: #0ea5e9; --page-primary-hover: #0284c7; --page-primary-active: #0369a1; --page-primary-soft: #e3f5fe; --page-primary-shadow: rgba(14,165,233,.25); --page-grad-from: #38bdf8; --page-grad-to: #0284c7; }
.theme-chat     { --page-primary: #ec4899; --page-primary-hover: #db2777; --page-primary-active: #be185d; --page-primary-soft: #fce7f3; --page-primary-shadow: rgba(236,72,153,.25); --page-grad-from: #f472b6; --page-grad-to: #db2777; }
.theme-camp     { --page-primary: #14b8a6; --page-primary-hover: #0d9488; --page-primary-active: #0f766e; --page-primary-soft: #e4f7f4; --page-primary-shadow: rgba(20,184,166,.25); --page-grad-from: #2dd4bf; --page-grad-to: #0d9488; }
html.dark .theme-missions { --page-primary: #34d399; --page-primary-soft: rgba(16,185,129,.15); }
html.dark .theme-rewards  { --page-primary: #fbbf24; --page-primary-soft: rgba(245,158,11,.15); }
html.dark .theme-honor    { --page-primary: #a78bfa; --page-primary-soft: rgba(139,92,246,.15); }
html.dark .theme-plan     { --page-primary: #38bdf8; --page-primary-soft: rgba(14,165,233,.15); }
html.dark .theme-chat     { --page-primary: #f472b6; --page-primary-soft: rgba(236,72,153,.15); }
html.dark .theme-camp     { --page-primary: #2dd4bf; --page-primary-soft: rgba(20,184,166,.15); }
@media (prefers-color-scheme: dark) {
  html.no-js .theme-missions { --page-primary: #34d399; --page-primary-soft: rgba(16,185,129,.15); }
  html.no-js .theme-rewards  { --page-primary: #fbbf24; --page-primary-soft: rgba(245,158,11,.15); }
  html.no-js .theme-honor    { --page-primary: #a78bfa; --page-primary-soft: rgba(139,92,246,.15); }
  html.no-js .theme-plan     { --page-primary: #38bdf8; --page-primary-soft: rgba(14,165,233,.15); }
  html.no-js .theme-chat     { --page-primary: #f472b6; --page-primary-soft: rgba(236,72,153,.15); }
  html.no-js .theme-camp     { --page-primary: #2dd4bf; --page-primary-soft: rgba(20,184,166,.15); }
}

/* ---------- 2. Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--surface-secondary);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--page-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
:focus-visible { outline: 3px solid var(--star-gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--star-gold-soft); color: var(--text-primary); }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-primary);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h4 { font-size: 1.05rem; }

.muted { color: var(--text-secondary); }
.tiny { font-size: 0.85rem; color: var(--text-secondary); }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--surface-primary); color: var(--text-primary);
  padding: 10px 18px; border-radius: var(--radius-pill); border: 2px solid var(--border-primary);
}
.skip-link:focus { left: 8px; }

/* ---------- 3. Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section-tight { padding-block: clamp(36px, 6vw, 64px); }
.section-head { max-width: 720px; margin: 0 auto clamp(28px, 5vw, 52px); text-align: center; }
.section-head p { color: var(--text-secondary); font-size: 1.06rem; }

.grid { display: grid; gap: clamp(16px, 2.6vw, 26px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > .split-media { order: 2; }
.split.flip > .split-media { order: 0; }

/* ---------- 3b. Sektions-Rhythmus: Baender (PetiForm-Muster mit RR-Tokens) ---------- */
/* Baender heben Sektionen auf --surface-primary und trennen sie mit Hairlines;
   Karten/Chips/Accordions invertieren darin auf --surface-secondary, damit der
   Karte/Flaeche-Kontrast erhalten bleibt. Regel: nie zwei Baender direkt
   hintereinander (Rhythmus bg -> band -> bg). .band-tint toent die Flaeche
   zart in der Welt-Farbe der Sektion (nutzt die theme-*-Variablen). */
.band {
  background: var(--surface-primary);
  border-block: 2px solid var(--border-light);
}
.band-tint {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--page-primary) 8%, var(--surface-primary)),
    var(--surface-primary)
  );
  border-block: 2px solid color-mix(in srgb, var(--page-primary) 22%, transparent);
}
html.dark .band-tint {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--page-primary) 13%, var(--surface-primary)),
    var(--surface-primary)
  );
}
.band .card, .band-tint .card { background: var(--surface-secondary); }
.band .chip, .band-tint .chip { background: var(--surface-secondary); }
.band details.qa, .band-tint details.qa { background: var(--surface-secondary); }

/* Anker-Spruenge duerfen nicht unter dem Sticky-Header landen */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* Fliesstext-Links immer unterstreichen (Farbe allein reicht nicht, WCAG 1.4.1) */
main p a:not(.btn):not(.store-badge), main li a:not(.btn):not(.store-badge) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 4. Typo-Extras ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  color: var(--page-primary);
  background: var(--page-primary-soft);
  padding: 6px 16px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 1.9vw, 1.22rem); color: var(--text-secondary); max-width: 56ch; }
.center .lead { margin-inline: auto; }

/* Hervorgehobenes Wort (Markenfarbe wie der Header-Schriftzug, --brand ist dark-aware) */
.hl { color: var(--brand); }

/* ---------- 5. Buttons (Chunky = Interaktions-Signature der App) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  border: none; border-radius: var(--radius-pill); cursor: pointer;
  padding: 0.7rem 1.5rem; text-decoration: none !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease;
}
.btn-chunky {
  /* eine Stufe dunkler als --page-primary: weisser Button-Text erreicht so
     die 3:1-Grenze fuer grossen/fetten Text (WCAG AA) */
  background: var(--page-primary-hover); color: #ffffff !important;
  box-shadow: 0 4px 0 var(--page-primary-active), 0 8px 20px -6px var(--page-primary-shadow);
}
.btn-chunky:hover { background: var(--page-primary-active); }
.btn-chunky:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--page-primary-active), 0 4px 10px -4px var(--page-primary-shadow); }
/* Amber bleibt auch dunkler zu hell fuer Weiss -> Gold-Button mit dunkler
   Schrift (wie die Schritt-Nummern der App) */
.theme-rewards .btn-chunky { color: #3d3a33 !important; }
.btn-chunky-secondary {
  background: var(--btn-secondary-bg); color: var(--btn-secondary-text) !important;
  box-shadow: 0 4px 0 var(--border-secondary);
}
.btn-chunky-secondary:hover { filter: brightness(1.02); }
.btn-chunky-secondary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--border-secondary); }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.12rem; }
.btn-sm { padding: 0.45rem 1.05rem; font-size: 0.92rem; }

/* Store-Badges (Platzhalter bis Store-Links existieren) */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #1c2440; color: #ffffff !important; text-decoration: none !important;
  border-radius: 16px; padding: 10px 20px 10px 16px;
  box-shadow: 0 4px 0 #0b1022, 0 8px 20px -6px rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.store-badge:active { transform: translateY(3px); box-shadow: 0 1px 0 #0b1022; }
.store-badge .sb-icon { font-size: 1.7rem; line-height: 1; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .sb-small { font-size: 0.68rem; opacity: 0.85; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.store-badge .sb-big { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.store-badge.soon { position: relative; opacity: 0.92; }
.store-badge.soon::after {
  content: attr(data-soon);
  position: absolute; top: -10px; right: -8px;
  background: var(--star-gold); color: #3d3a33;
  font-family: var(--font-display); font-weight: 700; font-size: 0.68rem;
  padding: 2px 10px; border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transform: rotate(3deg);
}
html.dark .store-badge { background: #2a3457; }

/* ---------- 6. Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface-primary) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-light);
}
.nav { display: flex; align-items: center; gap: 14px; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; margin-right: auto; }
.brand-icon { width: 38px; height: 38px; border-radius: 12px; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1;
  color: var(--brand); white-space: nowrap;
}
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a:not(.btn) {
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  color: var(--text-secondary); text-decoration: none !important;
  padding: 8px 14px; border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-menu a:not(.btn):hover { color: var(--page-primary); background: var(--page-primary-soft); }
.nav-menu a.active { color: var(--page-primary); background: var(--page-primary-soft); }
.nav-menu .btn { margin-left: 8px; }

.nav-toggle {
  display: none; background: var(--surface-tertiary); border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 14px; color: var(--text-primary);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }

/* Theme-Toggle (auto → hell → dunkel) */
.theme-toggle {
  display: none; background: var(--surface-tertiary); border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 14px; color: var(--text-primary);
  align-items: center; justify-content: center; position: relative;
}
html.js .theme-toggle { display: inline-flex; }
.theme-toggle svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; display: none; }
.theme-toggle svg .half { fill: currentColor; stroke: none; }
.theme-toggle[data-state='auto'] .ti-auto { display: block; }
.theme-toggle[data-state='light'] .ti-light { display: block; }
.theme-toggle[data-state='dark'] .ti-dark { display: block; }

/* Sprachumschalter */
.language-switch { position: relative; }
.language-switch summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding-inline: 12px;
  background: var(--surface-tertiary); border-radius: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--text-primary);
}
.language-switch summary::-webkit-details-marker { display: none; }
.language-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  background: var(--surface-elevated); border: 2px solid var(--border-primary);
  border-radius: 16px; box-shadow: 0 8px 24px var(--shadow-hover-color);
  padding: 6px; min-width: 150px; display: flex; flex-direction: column;
}
.language-menu a, .language-menu__disabled {
  padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  color: var(--text-primary); text-decoration: none !important;
}
.language-menu a:hover { background: var(--page-primary-soft); color: var(--page-primary); }
.language-menu__disabled { color: var(--text-tertiary); }

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 1.5em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-media { position: relative; }
.hero-scene {
  border-radius: var(--radius-lg); border: 2px solid var(--border-primary);
  box-shadow: 0 8px 24px var(--shadow-hover-color); overflow: hidden;
  background: var(--surface-primary);
}
.hero-scene img { width: 100%; }
.hero-finn {
  position: absolute; right: -18px; bottom: -14px; width: clamp(110px, 16vw, 170px);
  filter: drop-shadow(0 10px 18px var(--shadow-hover-color));
  pointer-events: none;
}

/* Tag/Nacht-Bildwechsel */
.only-dark { display: none !important; }
html.dark .only-dark { display: block !important; }
html.dark .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  html.no-js .only-dark { display: block !important; }
  html.no-js .only-light { display: none !important; }
}

/* Schwebende Deko-Sterne */
.floaties { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.floaty { position: absolute; font-size: clamp(1.2rem, 2.4vw, 2rem); opacity: 0.85; animation: float 3s ease-in-out infinite; }
.floaty.sparkly { animation: sparkle 2s ease-in-out infinite; }

/* ---------- 8. Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-primary); border: 2px solid var(--border-primary);
  color: var(--text-secondary); border-radius: var(--radius-pill);
  padding: 6px 14px; font-weight: 700; font-size: 0.9rem;
}
.chip.gold { background: var(--star-gold-soft); border-color: transparent; color: #8a6d1a; }
html.dark .chip.gold { color: var(--star-gold); }
/* Chip-Textfarben: Light-Mode nutzt dunkle Toene (WCAG-AA auf den Soft-
   Flaechen), Dark-Mode die hellen Akzente wie gehabt. */
.chip.soft { background: var(--page-primary-soft); border-color: transparent; color: var(--page-primary-active); }
.chip.success { background: var(--rr-success-soft); border-color: transparent; color: #15803d; }
.chip.pending { background: var(--rr-pending-soft); border-color: transparent; color: #b45309; }
.chip.danger { background: var(--rr-danger-soft); border-color: transparent; color: #b91c1c; }
html.dark .chip.soft { color: var(--page-primary); }
html.dark .chip.success { color: var(--rr-success); }
html.dark .chip.pending { color: var(--rr-pending); }
html.dark .chip.danger { color: var(--rr-danger); }

/* ---------- 9. Karten ---------- */
.card {
  background: var(--surface-primary);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card { text-decoration: none !important; color: inherit; display: block; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow-hover-color); }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p:last-child { margin-bottom: 0; }

.icon-tile {
  width: 54px; height: 54px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.7rem; line-height: 1;
  background: var(--page-primary-soft);
  margin-bottom: 14px;
}

/* Welt-Karte (5 Welten) */
.world-card { position: relative; overflow: hidden; }
.world-card-visual {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  background: var(--page-primary-soft);
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.world-card-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.world-card .world-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
.world-card .world-crest {
  width: 56px; height: 56px; border-radius: 18px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  background: linear-gradient(135deg, var(--page-grad-from), var(--page-grad-to));
  box-shadow: 0 4px 12px var(--page-primary-shadow);
}
.world-card h3 { margin: 0; }
.world-card .world-sub { font-size: 0.88rem; color: var(--page-primary-active); font-weight: 800; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; }
html.dark .world-card .world-sub { color: var(--page-primary); }
.world-card ul { list-style: none; padding: 0; margin: 0; }
.world-card li { padding-left: 26px; position: relative; margin-bottom: 7px; color: var(--text-secondary); }
.world-card li::before { content: '⭐'; position: absolute; left: 0; font-size: 0.8rem; top: 3px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 24px); }
.bento .span-2 { grid-column: span 2; }

/* ---------- 10. Schritte (So funktioniert's) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.4vw, 24px); counter-reset: step; }
.step { position: relative; text-align: center; padding: 26px 18px 22px; }
.step-num {
  width: 58px; height: 58px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--star-gold), var(--star-gold-deep));
  color: #3d3a33;
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  box-shadow: 0 4px 0 #d98f10, 0 8px 20px -6px rgba(245, 166, 35, 0.45);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-secondary); font-size: 0.96rem; margin: 0; }
.step .step-emoji { font-size: 2rem; display: block; margin-bottom: 8px; }

/* ---------- 11. Gold-Fortschrittsbalken (App-Signature) ---------- */
.rr-progress { height: 0.75rem; border-radius: var(--radius-pill); background: var(--surface-tertiary); overflow: hidden; }
.rr-progress-fill {
  height: 100%; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--star-gold), var(--star-gold-deep));
  position: relative; transition: width 1s ease-out; width: 0;
}
.rr-progress-fill::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 55%);
}

/* ---------- 12. Statband ---------- */
.statband {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--page-grad-from), var(--page-grad-to));
  color: #ffffff; padding: clamp(28px, 4.5vw, 44px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  box-shadow: 0 8px 24px var(--page-primary-shadow);
  position: relative; overflow: hidden;
}
.statband::before, .statband::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.12);
}
.statband::before { width: 220px; height: 220px; top: -80px; right: -60px; }
.statband::after { width: 140px; height: 140px; bottom: -60px; left: 8%; }
.stat { text-align: center; position: relative; z-index: 1; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
/* Nur das Label (direktes Kind) — der data-count-Span im <b> erbt dessen Groesse */
.stat > span { font-size: 0.95rem; opacity: 0.92; font-weight: 700; }

/* ---------- 13. Split-Media / Finn-Figuren ---------- */
.split-media { position: relative; }
.media-card {
  border-radius: var(--radius-lg); border: 2px solid var(--border-primary);
  background: var(--surface-primary); box-shadow: 0 2px 10px var(--shadow-color);
  padding: clamp(18px, 3vw, 30px); overflow: hidden; position: relative;
}
.media-blob {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 42%, var(--page-primary-soft) 0%, transparent 72%);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(10px, 2vw, 22px);
}
.media-blob img { max-height: 340px; width: auto; }
.media-blob.scene-blob { padding: clamp(8px, 1.6vw, 16px); }
.media-blob.scene-blob img,
.section-scene-img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  max-height: none;
  border-radius: var(--radius);
  border: 2px solid var(--border-primary);
  box-shadow: 0 16px 34px -18px var(--shadow-hover-color);
}
.section-scene-img { margin-inline: auto; }
.finn-img { filter: drop-shadow(0 12px 22px var(--shadow-hover-color)); }

/* ---------- 14. Telefon-Mockup (CSS-Mini-UI als Screenshot-Platzhalter) ---------- */
.phone {
  width: min(300px, 78vw); margin: 0 auto;
  background: var(--surface-secondary);
  border: 10px solid #1c2440; border-radius: 42px;
  box-shadow: 0 18px 40px -12px var(--shadow-hover-color);
  overflow: hidden; position: relative;
}
html.dark .phone { border-color: #0b1022; }
.phone::before {
  content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; background: #1c2440; border-radius: var(--radius-pill); z-index: 3;
}
html.dark .phone::before { background: #0b1022; }
.phone-screen { padding: 44px 14px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 480px; }
.phone-header {
  border-radius: 18px; padding: 14px;
  background: linear-gradient(135deg, var(--page-grad-from), var(--page-grad-to));
  color: #fff; font-family: var(--font-display); font-weight: 800;
  display: flex; align-items: center; justify-content: space-between; font-size: 1rem;
}
.phone-header .ph-pts { background: rgba(255,255,255,0.22); padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.85rem; }
.phone-card {
  background: var(--surface-primary); border: 2px solid var(--border-primary);
  border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 10px;
}
.phone-card .pc-emoji {
  width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--page-primary-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.phone-card .pc-body { flex: 1; min-width: 0; }
.phone-card .pc-title { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; line-height: 1.25; }
.phone-card .pc-sub { font-size: 0.76rem; color: var(--text-tertiary); font-weight: 700; }
.phone-card .pc-check {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  border: 2.5px solid var(--border-secondary); display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #fff;
}
.phone-card .pc-check.done { background: var(--rr-success); border-color: var(--rr-success); }
.phone-progress-label { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 800; color: var(--text-secondary); font-family: var(--font-display); }
.phone-cta { margin-top: auto; }
.phone-cta .btn { width: 100%; font-size: 0.95rem; }

/* Chat-Bubbles im Mockup */
.phone-bubble {
  max-width: 82%; border-radius: 16px; padding: 9px 13px; font-size: 0.85rem; line-height: 1.4;
  background: var(--surface-primary); border: 2px solid var(--border-primary);
}
.phone-bubble .pb-name { font-size: 0.68rem; font-weight: 800; color: var(--page-primary); display: block; font-family: var(--font-display); }
.phone-bubble.mine {
  margin-left: auto; background: var(--page-primary); border-color: transparent; color: #fff;
}
.phone-bubble.mine .pb-ticks { font-size: 0.68rem; opacity: 0.85; display: block; text-align: right; }
.phone-audio { display: flex; align-items: center; gap: 8px; }
.phone-audio .pa-play {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex: none;
}
.phone-audio .pa-wave { display: flex; align-items: center; gap: 2.5px; height: 20px; }
.phone-audio .pa-wave i { width: 3px; border-radius: 2px; background: rgba(255,255,255,0.85); display: block; }
.phone-emoji-xl { font-size: 2.3rem; line-height: 1.2; }

/* ---------- 15. Preise ---------- */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: clamp(18px, 3vw, 30px); justify-content: center; }
.tier { position: relative; display: flex; flex-direction: column; }
.tier .tier-emoji { font-size: 2.4rem; margin-bottom: 6px; }
.tier .price { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1.05; color: var(--text-primary); }
.tier .price small { font-size: 1rem; font-weight: 700; color: var(--text-tertiary); }
.tier ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.tier li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--text-secondary); }
.tier li::before { content: '✅'; position: absolute; left: 0; font-size: 0.95rem; }
.tier li.no::before { content: '➖'; }
.tier .btn { width: 100%; }
.tier-featured { border-color: var(--star-gold); border-width: 3px; box-shadow: 0 8px 28px -6px rgba(245, 166, 35, 0.35); }
.tier-flag {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  background: linear-gradient(135deg, var(--star-gold), var(--star-gold-deep));
  color: #3d3a33; font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  padding: 5px 18px; border-radius: var(--radius-pill); box-shadow: 0 4px 10px rgba(245, 166, 35, 0.4);
  white-space: nowrap;
}

/* Vergleichstabelle */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 2px solid var(--border-primary); background: var(--surface-primary); }
table.compare { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.97rem; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 2px solid var(--border-light); }
.compare thead th { font-family: var(--font-display); font-weight: 800; background: var(--surface-tertiary); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.yes { color: var(--rr-success); font-weight: 800; }
.compare td.no { color: var(--text-tertiary); }

/* ---------- 16. FAQ ---------- */
.faq-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.faq-filter button {
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  background: var(--surface-primary); color: var(--text-secondary);
  border: 2px solid var(--border-primary); border-radius: var(--radius-pill);
  padding: 8px 18px; cursor: pointer; transition: all 0.15s ease;
}
.faq-filter button:hover, .faq-filter button.active { background: var(--page-primary-soft); border-color: var(--page-primary); color: var(--page-primary); }
.faq-cluster h2 { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; margin: 38px 0 16px; }
.faq-cluster h2 .cluster-emoji {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: var(--page-primary-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
details.qa {
  background: var(--surface-primary); border: 2px solid var(--border-primary);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
  transition: box-shadow 0.15s ease;
}
details.qa[open] { box-shadow: 0 4px 16px var(--shadow-color); }
details.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  /* Alt-Text-Syntax ('+' / '') haelt das Zeichen rein dekorativ —
     Screenreader wuerden sonst 'plus'/'minus' zusaetzlich zum nativen
     details-Zustand vorlesen */
  content: '+' / ''; margin-left: auto; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--page-primary-soft); color: var(--page-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; transition: transform 0.2s ease;
}
details.qa[open] summary::after { content: '−' / ''; transform: rotate(180deg); }
details.qa .qa-body { padding: 0 20px 18px; color: var(--text-secondary); }
details.qa .qa-body p:last-child { margin-bottom: 0; }

/* ---------- 17. Statement- & CTA-Baender ---------- */
.statement {
  text-align: center; max-width: 800px; margin: 0 auto;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem); line-height: 1.4; color: var(--text-primary);
}
.cta-band {
  border-radius: var(--radius-lg); text-align: center;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 48px);
  background: linear-gradient(135deg, var(--page-grad-from), var(--page-grad-to));
  color: #ffffff; position: relative; overflow: hidden;
  box-shadow: 0 8px 24px var(--page-primary-shadow);
}
.cta-band h2 { color: #ffffff; }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-chunky { background: #ffffff; color: var(--page-primary-active) !important; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22), 0 8px 20px -6px rgba(0, 0, 0, 0.3); }
.cta-band .btn-chunky:hover { background: #fdf8ec; }
/* Sekundaer-Button im CTA-Band: transparente Ghost-Variante, damit die
   Button-Hierarchie erhalten bleibt (Primaer = weiss, Sekundaer = Outline) */
.cta-band .btn-ghost {
  background: transparent; color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: none;
}
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.cta-band .btn-ghost:active { transform: translateY(2px); }
.cta-band .floaty { z-index: 0; }
.cta-band > * { position: relative; z-index: 1; }
.cta-finn { width: clamp(120px, 16vw, 180px); margin: -8px auto 10px; }

/* ---------- 18. Footer ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--surface-primary);
  border-top: 2px solid var(--border-light);
  padding: clamp(36px, 6vw, 64px) 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 44px); margin-bottom: 34px; }
.site-footer h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-tertiary); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer ul a { color: var(--text-secondary); font-weight: 700; text-decoration: none !important; }
.site-footer ul a:hover { color: var(--page-primary); }
.footer-bottom {
  border-top: 2px solid var(--border-light); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  color: var(--text-tertiary); font-size: 0.92rem; font-weight: 600;
}

/* ---------- 19. Prosa / Rechtsseiten ---------- */
.doc-hub { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.doc-hub a {
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  background: var(--surface-primary); border: 2px solid var(--border-primary);
  color: var(--text-secondary); border-radius: var(--radius-pill); padding: 7px 16px;
  text-decoration: none !important;
}
.doc-hub a.active, .doc-hub a:hover { background: var(--page-primary-soft); border-color: var(--page-primary); color: var(--page-primary); }
.doc-hub .doc-date { margin-left: auto; }

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.18rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-secondary); }
.prose strong { color: var(--text-primary); }
.prose address { font-style: normal; color: var(--text-secondary); }
.prose .card { margin-block: 1.2em; }

details.toc {
  background: var(--surface-primary); border: 2px solid var(--border-primary);
  border-radius: var(--radius); padding: 14px 20px; margin-bottom: 30px; max-width: 70ch;
}
details.toc summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; list-style: none; }
details.toc summary::-webkit-details-marker { display: none; }
details.toc ol { margin: 12px 0 4px; columns: 2; column-gap: 30px; font-size: 0.95rem; }
details.toc a { color: var(--text-secondary); }

/* ---------- 20. Bild-Platzhalter (EmptyState-Mechanik der App) ---------- */
.img-placeholder {
  border-radius: var(--radius-lg); border: 3px dashed var(--border-secondary);
  background: var(--surface-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 36px 22px; min-height: 240px;
}
.img-placeholder .blob {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--page-primary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; animation: float 3s ease-in-out infinite;
}
.img-placeholder b { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-primary); }
.img-placeholder span { font-size: 0.9rem; color: var(--text-tertiary); max-width: 300px; }
.screenshot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.app-screenshot-img {
  width: min(100%, 270px);
  height: auto; /* intrinsisches 390:844 — nicht per aspect-ratio erzwingen,
                   der 8px-Rahmen (border-box) wuerde den Inhalt sonst beschneiden */
  display: block;
  border: 8px solid #1c2440;
  border-radius: 34px;
  background: #1c2440;
  box-shadow: 0 18px 40px -16px var(--shadow-hover-color);
}
html.dark .app-screenshot-img { border-color: #0b1022; background: #0b1022; }
/* Screenshots OHNE Dark-Pendant (nur -light vorhanden) im Nachtlager etwas
   abdunkeln, bis die echten Dark-Aufnahmen existieren (bilder.md §1.1) */
html.dark .app-screenshot-img:not(.only-light):not(.only-dark) {
  filter: brightness(0.84) saturate(0.92);
}
/* Text-Karte neben einem hohen Phone-Frame: Inhalt vertikal zentrieren,
   statt eine grosse Leerflaeche unter dem Text zu lassen */
.grid:has(> .screenshot-frame) > .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wide-scene {
  max-width: 900px;
  margin: 0 auto clamp(24px, 4vw, 38px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-primary);
  background: var(--surface-primary);
  box-shadow: 0 16px 38px -24px var(--shadow-hover-color);
}
.wide-scene img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 21. Animationen (Tailwind-Keyframes der App) ---------- */
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes sparkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.92); } }
@keyframes bounce-in { 0% { transform: translateY(16px) scale(0.95); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
.animate-pop { animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.animate-wiggle { animation: wiggle 0.5s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-sparkle { animation: sparkle 2s ease-in-out infinite; }

/* Reveal-on-Scroll (JS-gated: ohne JS sofort sichtbar) */
html.js .reveal { opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 22. To-Top + Scroll-Fortschritt ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 140; pointer-events: none; }
.scroll-progress-bar {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--star-gold), var(--star-gold-deep));
}
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--page-primary); color: #ffffff;
  box-shadow: 0 4px 0 var(--page-primary-active), 0 8px 20px -6px var(--page-primary-shadow);
  display: none; align-items: center; justify-content: center;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.to-top.visible { display: flex; }
.to-top:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--page-primary-active); }
.to-top svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Konfetti-Canvas */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 150; }

/* Bild-Lightbox (Content-Bilder klickbar zum Zoomen, JS-gated via .zoomable) */
img.zoomable { cursor: zoom-in; }
html.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  /* Backdrop bewusst theme-unabhaengig dunkel (Nachtlager-Navy) */
  background: rgba(11, 16, 34, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure {
  margin: 0; min-height: 0; max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lightbox-img {
  max-width: min(1100px, 100%); max-height: 80vh; width: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-caption {
  color: #e7ebf6; font-size: 0.95rem; font-weight: 600;
  text-align: center; max-width: 720px;
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }

/* ---------- 23. 404 ---------- */
.page-404 { text-align: center; padding-block: clamp(40px, 8vw, 90px); }
.page-404 .finn-404 { width: min(300px, 62vw); margin: 0 auto 20px; }

/* ---------- 24. Responsive ---------- */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .statband { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split > .split-media, .split.flip > .split-media { order: 0; }
  .hero-finn { right: 2px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .span-2 { grid-column: span 2; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface-primary); border-bottom: 2px solid var(--border-light);
    box-shadow: 0 18px 30px -12px var(--shadow-hover-color);
    flex-direction: column; align-items: stretch; padding: 14px clamp(20px, 5vw, 40px) 20px; gap: 4px;
  }
  .site-header.open .nav-menu { display: flex; }
  .nav-menu a:not(.btn) { padding: 12px 16px; font-size: 1.08rem; }
  .nav-menu .btn { margin: 10px 0 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .tiers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .span-2 { grid-column: span 1; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  details.toc ol { columns: 1; }
  .hero-finn { width: 104px; bottom: -10px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .statband { grid-template-columns: 1fr 1fr; padding: 24px 18px; }
  .doc-hub .doc-date { margin-left: 0; width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .store-badge { flex: 1 1 46%; justify-content: center; }
  .nav { gap: 8px; }
  .brand-name { font-size: 1.12rem; }
  .brand-icon { width: 32px; height: 32px; }
  /* Deko-Sterne stoeren auf kleinen Screens den Textfluss */
  .hero > .floaties { display: none; }
}

/* ---------- 25. Reduced Motion (wie in der App) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-float, .animate-sparkle, .animate-wiggle, .floaty, .img-placeholder .blob { animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .rr-progress-fill { transition: none; }
  .lightbox, .lightbox-img { transition: none; }
}

/* ---------- 26. Print ---------- */
@media print {
  .site-header, .site-footer, .to-top, .scroll-progress, .hero-cta, .cta-band { display: none !important; }
}

/* ---------- 27. no-js-Fallbacks ---------- */
/* Ohne JavaScript sind Kopier-Button und FAQ-Filter funktionslos -> ausblenden */
html.no-js [data-copy],
html.no-js .faq-filter { display: none !important; }
