/* ============================================================
   at aura — Landingpage
   Statisches CSS, keine Abhängigkeiten.
   Typografie nach App-Kanon (docs/UI-STYLEGUIDE.md im Repo):
   – Titelschrift: IBM Plex Mono — Identität & Daten
     (Headings, Kicker, Chips, Zahlen-Readouts, Meta-Zeilen)
   – Textschrift:  Helvetica Neue (System) — Sprache
     (Sätze, Buttons, Navigation, Fragen, Hinweise)
   Farben: Aura Pulse #2047ED · Midnight Core #060811 ·
   Wild Sand #F5F5F7 · Spun Pearl #A1A1AA
   Flächen: flach mit Hairline; Blur/Glass nur für schwebende
   Controls (Header, Ghost-Buttons, Toggles) — nie für Content.
   ============================================================ */

/* ---------- Fonts (selbst gehostet, kein externes CDN) ---------- */
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  color-scheme: light dark;

  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Textschrift wie in der App: Helvetica Neue (auf Apple-Geräten identisch
     zur App), sonst nächstliegende Grotesk — kein Webfont-Download nötig. */
  --font-sans: "Helvetica Neue", Helvetica, Arial, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pulse: #2047ed;            /* Aura Pulse, in beiden Modi identisch */
  --on-pulse: #f5f5f7;
  --focus: #2047ed;            /* Fokus-Ring: im Dark Mode aufgehellt (Kontrast ≥3:1) */

  --bg: #f7f8fc;               /* midnight light */
  --bg-veil: #eceef8;          /* veil light */
  --text: #16181e;             /* nahe Midnight Core */
  --text-soft: #565a68;        /* Spun Pearl, abgedunkelt für AA */
  --accent-text: #1c3fd6;      /* Linkfarbe auf hellem Grund */

  --card-bg: #ffffff;                  /* flache Kartenfläche wie App Aura.card */
  --card-border: rgba(0, 0, 0, 0.06);  /* wie App Aura.cardBorder light */
  --glass-bg: rgba(255, 255, 255, 0.72); /* nur für schwebende Controls */
  --chip-bg: rgba(32, 71, 237, 0.08);
  --chip-border: rgba(32, 71, 237, 0.22);
  --ring: rgba(32, 71, 237, 0.16);      /* Radar-Ringe, Ornamente */
  --shadow: 0 18px 50px -18px rgba(22, 28, 60, 0.25);
  --shadow-soft: 0 10px 28px -16px rgba(22, 28, 60, 0.28);
  --glow: 0 0 44px 0 rgba(32, 71, 237, 0.16);

  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;
  --maxw: 1120px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060811;             /* midnight core */
    --bg-veil: #0a0e20;        /* veil dark */
    --focus: #7d95ff;
    --text: #f5f5f7;           /* wild sand */
    --text-soft: #a1a1aa;      /* spun pearl, exakt wie App Aura.pearl dark */
    --accent-text: #93a7ff;

    --card-bg: rgba(255, 255, 255, 0.07);  /* wie App Aura.card dark */
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(10, 14, 32, 0.6);
    --chip-bg: rgba(88, 118, 255, 0.13);
    --chip-border: rgba(120, 145, 255, 0.32);
    --ring: rgba(120, 145, 255, 0.2);
    --shadow: 0 22px 60px -20px rgba(0, 0, 0, 0.65);
    --shadow-soft: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
    --glow: 0 0 56px 0 rgba(64, 100, 255, 0.2);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--pulse); color: var(--on-pulse); }

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

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Headings: IBM Plex Mono SemiBold — die Markenstimme */
h1, h2, h3 {
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
/* SemiBold ist der schwerste Schnitt der Marke (wie App Weight-Enum) */
h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); line-height: 1.14; }
h2 { font-size: clamp(1.45rem, 2.9vw, 2.05rem); }
h3 { font-size: 1.02rem; letter-spacing: -0.015em; }
p  { margin: 0 0 1em; }

strong { font-weight: 600; }

/* Kleine, zurückhaltende Nebenzeile — Sätze in der Textschrift */
.micro {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 56ch;
  margin: 16px auto 0;
  text-align: center;
}
/* Daten-Readouts (Zahlen, Aufzählungen) bleiben Mono — wie in der App */
.micro-data { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.03em; }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* Sichtbarer Fokus für Tastatur-Navigation */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--pulse);
  color: var(--on-pulse);
  padding: 12px 18px;
  border-radius: var(--radius-s);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: top 0.2s ease-out;
}
.skip-link:focus { top: 14px; }

/* Theme-abhängige Bilder (Logo hell/dunkel) */
.dark-only { display: none; }
@media (prefers-color-scheme: dark) {
  .dark-only { display: block; }
  .light-only { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg); /* Fallback ohne color-mix-Unterstützung */
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand img { height: 30px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 26px);
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { color: var(--accent-text); text-decoration: underline; }
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover { color: var(--on-pulse); text-decoration: none; }
.site-nav a.nav-secondary { display: none; }
@media (min-width: 720px) { .site-nav a.nav-secondary { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
    background-color 0.18s ease-out, border-color 0.18s ease-out;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn .icon { flex: none; }

/* Primär: solide Pulse-Capsule ohne Glow — wie der App-Button */
.btn-primary {
  background: var(--pulse);
  color: var(--on-pulse);
}
.btn-primary:hover { background: #1a3bd0; }

/* Sekundär: Liquid-Glass-Capsule — schwebendes Control */
.btn-ghost {
  background: var(--glass-bg);
  color: var(--text);
  border-color: var(--card-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--pulse); color: var(--accent-text); }

.btn-small { min-height: 44px; padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 116px) 0 clamp(52px, 7.5vw, 96px);
  overflow: clip;
}
.hero::before {
  /* weicher Aura-Schein hinter dem Hero */
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 90%;
  background:
    radial-gradient(42% 55% at 72% 40%, rgba(32, 71, 237, 0.09), transparent 70%),
    radial-gradient(38% 48% at 18% 20%, rgba(120, 145, 255, 0.06), transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.08fr 0.92fr; }
}

.hero h1 { max-width: 22ch; }
.hero h1 .accent { color: var(--pulse); }
@media (prefers-color-scheme: dark) { .hero h1 .accent { color: #7d95ff; } }

/* Gestaffelter Einstieg: Headline → Subline → CTAs → Meta treten nacheinander
   an, statt als Textwand zu erscheinen. Rein CSS (ohne JS identisch), bei
   reduzierter Bewegung steht alles sofort. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .mockup-wrap {
    opacity: 0;
    transform: translateY(10px);
    animation: hero-in 0.6s ease-out forwards;
  }
  .hero-copy h1 { animation-delay: 0.05s; }
  .hero-copy .hero-sub { animation-delay: 0.3s; }
  .hero-copy .cta-row { animation-delay: 0.55s; }
  .hero-copy .hero-meta { animation-delay: 0.75s; }
  .mockup-wrap { animation-delay: 0.4s; transform: translateY(16px); }
}
@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

.hero-sub {
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-sub strong { font-weight: 500; color: var(--text); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* leise Zeile statt Trust-Badges — weniger Chrome, mehr Ruhe */
.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin: 24px 0 0;
}

/* ---------- iPhone-Mockup mit App-Video ---------- */
.mockup-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
}
.mockup-wrap .micro { margin-top: 0; max-width: 34ch; }

/* Radar-Ringe hinter dem Gerät (Grafik-Asset „concentric circles") */
.radar-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(560px, 100vw);
  aspect-ratio: 1;
  transform: translate(-50%, -54%);
  pointer-events: none;
}
.radar-rings::before,
.radar-rings::after,
.radar-rings i {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--ring);
  border-radius: 50%;
}
.radar-rings::before { inset: 12%; }
.radar-rings::after { inset: 26%; opacity: 0.9; }
.radar-rings i { inset: 0; opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  .radar-rings i {
    animation: ring-breathe 6s ease-in-out infinite;
  }
}
@keyframes ring-breathe {
  0%, 100% { transform: scale(0.98); opacity: 0.35; }
  50%      { transform: scale(1.03); opacity: 0.7; }
}

.phone {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 720 / 1468;   /* exakt das Seitenverhältnis von app-video.mp4 */
  border-radius: clamp(38px, 6vw, 48px);
  background: #0c0d12;
  padding: 9px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.28),
    inset 0 0 0 5px #17181d,
    var(--shadow), var(--glow);
}
.phone::before {
  /* Seitentaste */
  content: "";
  position: absolute;
  right: -2.5px;
  top: 21%;
  width: 3px;
  height: 64px;
  border-radius: 3px;
  background: #26272e;
}
.phone::after {
  /* Lautstärketasten */
  content: "";
  position: absolute;
  left: -2.5px;
  top: 18%;
  width: 3px;
  height: 40px;
  border-radius: 3px;
  background: #26272e;
  box-shadow: 0 56px 0 #26272e;
}
.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: clamp(30px, 4.8vw, 40px);
  overflow: hidden;
  background: #f2f3f8;
}
.phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Schwebendes Control → Liquid Glass */
.video-toggle {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.video-toggle:hover { color: var(--accent-text); border-color: var(--pulse); }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(68px, 9.5vw, 124px) 0; }
.section-veil {
  background: var(--bg-veil);
  border-block: 1px solid var(--card-border);
}
.section-head { max-width: 58ch; margin-bottom: clamp(34px, 4.5vw, 58px); }
.section-head .lead {
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 54ch;
}
.section-head .lead strong { font-weight: 500; color: var(--text); }
.center { text-align: center; }
/* Zentrierte Sektionsköpfe: Block UND Zeilen mittig (Klassen liegen
   auf demselben Element — kein Nachfahren-Selektor!) */
.section-head.center { margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }

/* Scroll-Reveal (JS setzt .revealed; ohne JS alles sichtbar) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); }
  .js .reveal.revealed {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  }
}

/* ---------- Begegnungs-Animation (Remotion-Video, hell + dunkel) ----------
   Quelle: Media/remotion-begegnung — 24s-Loop (2 × 12s: Frankfurt-Skyline,
   Café), 1600×640.
   Ohne JS / bei reduzierter Bewegung zeigt das Poster den Kernmoment;
   Steuerung (Sichtfeld, Theme, Pause-Button) übernimmt main.js. */
.scene {
  position: relative;
  border-radius: var(--radius-l);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  overflow: hidden;
}
.scene video {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 640;
  /* Auf schmalen Screens: Höhe halten und mittig beschneiden —
     die Geräte + Chips liegen in der Bildmitte. */
  min-height: 280px;
  object-fit: cover;
  display: none;
}
.scene video.light-only { display: block; }
@media (prefers-color-scheme: dark) {
  .scene video.light-only { display: none; }
  .scene video.dark-only { display: block; }
}

.scene-controls { text-align: center; margin: 18px 0 0; }

/* ---------- Schritte (So funktioniert's) ---------- */
.steps {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Content-Karte: flach, Hairline, keine Lift-Effekte — Ruhe wie in der App */
.step {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-m);
  padding: 28px 26px 26px;
  transition: border-color 0.2s ease-out;
}
.step:hover { border-color: var(--chip-border); }
.step-art {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  border-radius: var(--radius-s);
}
.step h3 { margin-bottom: 0.4em; }
.step p { margin: 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Nischen-Chips (Match-Tiefe) ---------- */
.niche-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 26px;
  padding: 0;
  list-style: none;
}
.niche-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--chip-border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color 0.2s ease-out;
}
.niche-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pulse);
  opacity: 0.7;
}
.niche-chip:hover { border-color: var(--pulse); }
.niche-chip:nth-child(2n) { border-color: var(--card-border); }
.niche-chip:nth-child(2n):hover { border-color: var(--pulse); }

/* ---------- Foto-Reihe (Orte, an denen at aura funkt) ---------- */
.place-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin: clamp(30px, 4vw, 44px) 0 0;
}
@media (min-width: 760px) { .place-row { grid-template-columns: repeat(4, 1fr); } }
.place {
  position: relative;
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--card-border);
  aspect-ratio: 4 / 5;
  background: var(--bg-veil);
}
.place img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 0.35s ease-out;
}
.place:hover img { transform: scale(1.04); }
.place::after {
  /* Aura-Schleier: legt das Brand-Blau über jedes Foto */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 71, 237, 0.08), rgba(6, 8, 17, 0.42) 88%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.place figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #f5f5f7;
  text-shadow: 0 1px 8px rgba(6, 8, 17, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}
.place figcaption::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7d95ff;
  box-shadow: 0 0 8px 2px rgba(125, 149, 255, 0.8);
  flex: none;
}

/* ---------- Privatsphäre ---------- */
.privacy-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 620px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .privacy-grid { grid-template-columns: repeat(4, 1fr); } }

.privacy-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  transition: border-color 0.2s ease-out;
}
.privacy-card:hover { border-color: var(--chip-border); }
.privacy-card .icon { color: var(--pulse); margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .privacy-card .icon { color: #8fa5ff; } }
.privacy-card h3 { font-size: 0.95rem; margin-bottom: 0.4em; }
.privacy-card p { margin: 0; color: var(--text-soft); font-size: 0.93rem; line-height: 1.6; }

.privacy-quote {
  margin: clamp(34px, 5vw, 56px) auto 0;
  max-width: 580px;
  text-align: center;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: var(--radius-m);
  padding: 28px 30px;
}
/* Wörtliches Zitat des App-Store-Datenlabels = Daten-Artefakt → bewusst Mono
   (Grenzfall zur Satz-Regel, hier als Readout inszeniert). */
.privacy-quote p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.privacy-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-m);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease-out;
}
.faq details[open] { border-color: var(--chip-border); }
/* FAQ-Fragen sind Sätze → Textschrift */
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
/* Fokus-Ring nach innen legen — außen würde ihn overflow:hidden kappen */
.faq summary:focus-visible { outline-offset: -3px; }
.faq summary .chev { flex: none; transition: transform 0.2s ease-out; color: var(--text-soft); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details > div { padding: 0 22px 20px; color: var(--text-soft); font-size: 0.95rem; line-height: 1.65; }
.faq details > div p { margin: 0 0 0.6em; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Teilen ---------- */
.share-card {
  position: relative;
  overflow: clip;
  border-radius: var(--radius-l);
  border: 1px solid var(--chip-border);
  background:
    radial-gradient(70% 120% at 50% -20%, rgba(32, 71, 237, 0.13), transparent 70%),
    var(--card-bg);
  padding: clamp(40px, 6.5vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
}
.share-card h2 { max-width: 24ch; margin-inline: auto; }
.share-card .lead {
  max-width: 50ch;
  margin: 0 auto 28px;
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--text-soft);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.qr-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 28px auto 0;
}
/* display:grid würde das hidden-Attribut (QR-Fehlerfall in main.js) überstimmen */
.qr-wrap[hidden] { display: none; }
.qr-wrap .micro { margin-top: 0; }
/* Kein JS → JS-abhängige Bedienelemente ausblenden (nur der E-Mail-Fallback bleibt) */
html:not(.js) .qr-wrap,
html:not(.js) [data-share],
html:not(.js) [data-copy],
html:not(.js) [data-share-whatsapp],
html:not(.js) [data-share-telegram],
html:not(.js) .video-toggle,
html:not(.js) .scene-toggle { display: none; }
.qr-box {
  width: 168px;
  height: 168px;
  padding: 12px;
  background: #ffffff;   /* QR braucht in beiden Modi hellen Grund */
  border-radius: var(--radius-m);
  border: 1px solid var(--card-border);
}
.qr-box svg { width: 100%; height: 100%; display: block; }

.share-fallback {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.share-status {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--accent-text);
  min-height: 1.4em;
}

/* ---------- Abschluss-CTA ---------- */
.final-cta { text-align: center; }
.final-cta .cta-row { justify-content: center; }
.final-cta .meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 44px 0 56px;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.footer-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.footer-brand img { height: 26px; width: auto; }

/* ---------- Unterseiten (Recht, Support) ---------- */
.subpage-main {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: 0.4em; }
.prose h2 { font-size: 1.18rem; margin-top: 2.2em; }
.prose .meta { font-family: var(--font-mono); color: var(--text-soft); font-size: 0.82rem; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose .box {
  padding: 18px 22px;
  border-radius: var(--radius-m);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  font-weight: 500;
}
.prose .box-warn {
  background: rgba(200, 60, 60, 0.1);
  border-color: rgba(200, 60, 60, 0.35);
}
.prose details {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-s);
  margin: 10px 0;
  padding: 4px 16px;
}
.prose summary {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;   /* iOS-Safari zeigt sonst Dreieck + eigenes "+" doppelt */
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; margin-left: auto; padding-left: 12px; color: var(--text-soft); font-weight: 600; }
.prose details[open] summary::after { content: "\2212"; }

/* ---------- Reduzierte Bewegung global ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .site-footer, .cta-row, .share-card, .video-toggle { display: none; }
}
