/*
 * Theme: electro — Landing + Consent + Booking Design-System v4.
 * Vollständiges Komponenten-CSS für alle öffentlichen Seiten.
 * Geladen NACH app.css (nur Reset/Wrap) via base.html.
 * form-coreui.css wird NICHT mehr benötigt.
 */
/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Farbe — WCAG-AA-geprüft (Matrix siehe Projektverlauf) */
  --bg: #F7F5FC;
  --paper: #FFFFFF;
  --ink: #221C44;
  --ink-soft: #4A4470;
  --muted: #625C86;
  --line: #E6E2F3;
  --border-ui: #8A82B8;
  --accent: #14B5C2;
  --accent-text: #0A7C87;
  --accent-glow: rgba(20, 181, 194, 0.45);
  --accent-soft: rgba(20, 181, 194, 0.12);
  --pink: #FF3D8F;
  --pink-text: #C2166B;
  --night: #221C44;
  --night-sub: #CFC9E8;
  --tick: #5EE1EC;
  --ok-text: #1B7A3E;
  --ok-soft: rgba(27, 122, 62, 0.12);
  --danger: #C0152F;
  --danger-soft: #FDEAEC;
  --gold: #FFC439;

  /* Typo-Skala */
  --fs-xs: 12px;
  --fs-s: 14px;
  --fs-base: 16px;
  --ls-meta: 0.08em;

  /* Form & Tiefe */
  --r-s: 12px;
  --r-m: 20px;
  --r-pill: 999px;
  --shadow-1: 0 12px 32px -24px rgba(34, 28, 68, 0.45);
  --shadow-2: 0 20px 44px -24px rgba(34, 28, 68, 0.5);
  --glow: 0 8px 24px -8px var(--accent-glow);

  /* Schrift-Tokens (genutzt von landing.css) */
  --display: "Archivo Black", sans-serif;
  --body: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--fs-base);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-variant-numeric: tabular-nums;
}
/* Sanfte Festival-Lichter — dekorativ, statisch */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 36% at 88% -4%, rgba(20, 181, 194, 0.15), transparent 65%),
    radial-gradient(46% 34% at 4% 32%, rgba(255, 61, 143, 0.10), transparent 65%),
    radial-gradient(60% 40% at 55% 108%, rgba(122, 90, 230, 0.12), transparent 70%),
    var(--bg);
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 20px clamp(18px, 4.5vw, 44px) 40px; }

/* Wiederkehrende Rolle: Uppercase-Kleinzeile
   (Labels, Kopfzeilen, Stepper-Nummern, Footer) */
.meta {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-meta);
}

/* ============================================================
   HEADER + HERO
   ============================================================ */
header.brand { margin-bottom: 18px; }
header.brand .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}
header.brand .top .home-link { color: inherit; text-decoration: none; }
header.brand .top .home-link:hover,
header.brand .top .home-link:focus-visible { color: var(--accent-text); }
header.brand .top .addr {
  display: inline-flex; align-items: baseline; flex-wrap: wrap;
  gap: 6px 12px; min-width: 0;
}
.lang-switch { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.lang-switch .lang-opt {
  color: var(--ink-soft); text-decoration: none; padding: 2px 4px;
  display: inline-flex; align-items: center; gap: 5px;
}
.lang-switch .lang-flag { display: inline-block; border: 1px solid var(--line); border-radius: 2px; vertical-align: middle; }
.lang-switch .lang-opt:hover, .lang-switch .lang-opt:focus-visible { color: var(--accent-text); }
.lang-switch .lang-opt--active { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.lang-switch .lang-sep { color: var(--border-ui); }

.brand-hero {
  position: relative;
  margin-top: 14px;
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  /* Fallback, falls das Foto nicht lädt */
  background:
    radial-gradient(120% 90% at 15% 100%, rgba(20, 181, 194, 0.35), transparent 55%),
    radial-gradient(90% 70% at 85% 0%, rgba(150, 90, 240, 0.30), transparent 60%),
    linear-gradient(135deg, #131037 0%, #2a1c55 55%, #0e2f3a 100%);
}
.brand-hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.brand-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(16, 12, 40, 0.82) 0%, rgba(16, 12, 40, 0.35) 45%, rgba(16, 12, 40, 0.05) 75%);
}
.brand-hero__text {
  position: relative;
  z-index: 1;
  padding: 104px 20px 18px;
}
.brand-hero__event {
  margin: 0 0 6px;
  color: #E8E4F5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.brand-hero__title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(32px, 7.5vw, 52px);
  line-height: 0.98;
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.brand-hero__sub {
  margin: 10px 0 0;
  color: #E8E4F5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.brand-hero__sub .tick { color: #5EE1EC; }
@media (min-width: 561px) {
  .brand-hero__text { padding-top: 186px; padding-left: 26px; padding-right: 26px; }
}

/* ============================================================
   STEPPER
   ============================================================ */
.stepper {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-1);
  margin: 18px 0 22px;
  position: sticky;
  /* unter dem Sticky-Site-Header parken (Höhe via site-header.js) */
  top: calc(var(--site-head-h, 59px) + 10px);
  z-index: 5;
}
.stepper__item {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 10px 9px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: none;
  font: inherit;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: default;
  transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}
.stepper__num { font-family: "Archivo Black", sans-serif; color: var(--muted); }
.stepper__label {
  font-size: var(--fs-s);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.stepper__val {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-text);
  min-height: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.stepper__item.is-active {
  background: var(--night);
  color: #fff;
  box-shadow: var(--glow);
}
.stepper__item.is-active .stepper__num { color: #5EE1EC; }
.stepper__item.is-active .stepper__val { color: var(--night-sub); }
.stepper__item.is-todo { color: var(--muted); }
.stepper__item.is-done { cursor: pointer; }
.stepper__item.is-done .stepper__num { color: var(--ok-text); }
.stepper__item.is-done .stepper__num::after { content: " ✓"; }
.stepper__item.is-done:hover,
.stepper__item.is-done:focus-visible { background: var(--accent-soft); outline: none; }
.stepper__item:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* ============================================================
   SEKTIONEN
   ============================================================ */
section[data-step],
section.card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8FE 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  margin-bottom: 22px;
  scroll-margin-top: 92px;
}
section > h2 {
  margin: 0;
  padding: 20px 20px 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(20px, 5vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
section > h2 .num {
  font-family: "Archivo Black", sans-serif;
  font-size: var(--fs-s);
  background: linear-gradient(120deg, var(--accent-text), var(--pink-text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex: 0 0 auto;
}
section .inner { padding: 16px 20px 20px; }

/* ============================================================
   SCHRITT 01 — Größenkarten
   ============================================================ */
.size-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 560px) { .size-grid { grid-template-columns: repeat(3, 1fr); } }
.size-card {
  position: relative;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border-ui);
  border-radius: var(--r-m);
  padding: 14px 14px 15px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease,
              background .15s ease, color .15s ease;
}
.size-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent-text);
  box-shadow: var(--glow);
}
.size-card:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.size-card__name {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(28px, 6.5vw, 36px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 2px;
}
.size-card__cm {
  font-size: var(--fs-s);
  color: var(--muted);
  line-height: 1.35;
  min-height: 38px; /* 2 Zeilen — hält die Karten gleich hoch */
}
.size-card__price { font-weight: 700; margin-top: 4px; }
.size-card__dep { font-size: var(--fs-s); color: var(--ink-soft); }
.size-card.active {
  background: var(--night);
  color: #fff;
  border-color: var(--night);
  box-shadow: var(--glow);
}
.size-card.active .size-card__cm { color: var(--night-sub); }
.size-card.active .size-card__dep { color: var(--night-sub); }
.size-card.active::after {
  content: "✓";
  position: absolute;
  top: -9px; right: -7px;
  width: 27px; height: 27px;
  border-radius: var(--r-pill);
  background: var(--pink-text);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-s);
  display: grid;
  place-items: center;
  transform: rotate(8deg);
  box-shadow: 0 4px 12px -2px rgba(194, 22, 107, 0.5);
}

/* Fakten */
.facts {
  margin-top: 18px;
  border-top: 1px dashed var(--line);
  padding-top: 15px;
  display: grid;
  gap: 10px;
  font-size: var(--fs-s);
  color: var(--ink-soft);
}
.facts strong { color: var(--ink); }
.fact { display: flex; gap: 10px; align-items: flex-start; }
.fact__i {
  flex: 0 0 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.fact__i--ok { background: var(--ok-soft); color: var(--ok-text); }
details.terms {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: #F8F6FD;
}
details.terms summary {
  cursor: pointer;
  padding: 12px 15px;
  font-weight: 600;
  font-size: var(--fs-s);
  list-style: none;
  color: var(--ink-soft);
}
details.terms summary::-webkit-details-marker { display: none; }
details.terms summary::after { content: "▸"; float: right; color: var(--muted); transition: transform 0.15s ease; }
details.terms[open] summary::after { transform: rotate(90deg); }
details.terms summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; border-radius: var(--r-s); }
details.terms .terms-body {
  padding: 0 15px 14px;
  font-size: var(--fs-s);
  line-height: 1.55;
  color: var(--ink-soft);
}
details.terms .terms-body p { margin: 8px 0; }

/* ============================================================
   SCHRITT 02 — Slot-Pillen
   ============================================================ */
.slot-group { margin-bottom: 18px; }
.slot-group:last-child { margin-bottom: 0; }
.slot-group__label { color: var(--muted); margin-bottom: 9px; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.slot-chip {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border-ui);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  min-height: 48px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1.25;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease,
              background .15s ease, color .15s ease;
}
.slot-chip:hover {
  transform: translateY(-1px);
  border-color: var(--accent-text);
}
.slot-chip:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.slot-chip.active {
  background: var(--night);
  border-color: var(--night);
  color: #fff;
  box-shadow: var(--glow);
}
.slot-chip:disabled { opacity: .38; cursor: not-allowed; }
.slot-chip__wd { font-weight: 700; }
.slot-chip__date { font-size: var(--fs-xs); color: var(--ink-soft); }
.slot-chip.active .slot-chip__date { color: var(--night-sub); }
.slot-chip--time { font-weight: 600; }

/* ============================================================
   SCHRITT 03 — Ticket + Formular
   ============================================================ */
.ticket {
  background: #F8F6FD;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  margin: 0 0 20px;
}
.ticket__head {
  color: var(--muted);
  padding: 12px 16px 9px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.ticket__rows { padding: 4px 16px 13px; display: grid; gap: 9px; }
.ticket__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.ticket__k { color: var(--muted); flex: 0 0 auto; }
.ticket__v { text-align: right; font-weight: 600; }
.ticket__edit {
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-text);
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ticket__edit:hover { text-decoration-thickness: 2px; }
.ticket__edit:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ticket__money {
  border-top: 1px solid var(--line);
  padding: 12px 16px 14px;
  display: grid;
  gap: 5px;
  font-size: var(--fs-s);
  color: var(--ink-soft);
}
.ticket__mrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ticket__mrow strong { font-weight: 700; font-size: var(--fs-base); color: var(--ink); }
.ticket__refund { color: var(--ok-text); font-weight: 600; }

/* Formular */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label { color: var(--ink-soft); }
.field > label .req { color: var(--accent-text); margin-left: 2px; }
.field > input,
.field > select,
.field > textarea {
  font: inherit;
  font-size: var(--fs-base);   /* >= 16px verhindert iOS-Autozoom */
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border-ui);
  border-radius: var(--r-s);
  padding: 11px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field > input::placeholder,
.field > textarea::placeholder { color: var(--muted); opacity: 1; }
.field > input:focus,
.field > select:focus,
.field > textarea:focus {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px rgba(20, 181, 194, 0.28);
}
.field > textarea { min-height: 90px; resize: vertical; }
.hint { font-size: var(--fs-s); color: var(--muted); margin-top: 2px; }

.checkbox-list { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.cb {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--border-ui);
  border-radius: var(--r-s);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  line-height: 1.45;
  color: var(--ink);
}
.cb:hover { border-color: var(--accent-text); }
.cb input { margin-top: 4px; accent-color: var(--accent-text); flex-shrink: 0; width: 1.1em; height: 1.1em; }
.cb input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.cb.required:has(input:not(:checked)) { border-left: 3px solid var(--accent-text); }
.cb:has(input:checked) { background: var(--accent-soft); border-color: var(--accent-text); }
.doc-link {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-weight: 600;
}
.doc-link:hover { text-decoration-thickness: 2px; }

/* Ressourcen-Pills (Größentabelle / Designkatalog) + Dialog-Buttons:
   eine gemeinsame Pill-Optik. */
.pill-link {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit;
  font-size: var(--fs-s); font-weight: 600;
  background: var(--paper); color: var(--accent-text);
  border: 1px solid var(--accent-text);
  border-radius: var(--r-pill);
  padding: 8px 16px; cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.pill-link:hover { background: var(--accent-soft); }
.pill-link:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.resources { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }

/* Galerie: permanent vollflächige Lightbox — bewusst OHNE
   Fullscreen-API (Top-Layer-Konflikt mit modalem <dialog>).
   Doppelklasse zwingend: schlägt die später definierte
   .privacy-dialog-Basisregel. */
.privacy-dialog.gallery-dialog {
  width: 100vw; max-width: 100vw;
  height: 100vh; height: 100dvh;
  max-height: none;
  margin: 0; border: 0; border-radius: 0;
}
.gallery-dialog .privacy-dialog__inner { max-height: none; height: 100%; }
.gallery-dialog .privacy-dialog__head { padding-top: max(15px, env(safe-area-inset-top)); }
.gallery-dialog .privacy-dialog__foot { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.gallery__stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;           /* Browser-Gesten aus — Pan gehört dem Bild */
  flex: 1;
  min-height: 0;
  background: #F8F6FD;
}
.gallery__img {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  transform-origin: center center;
}
.gallery__img.is-anim { transition: transform .18s ease; }
.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-ui);
  color: var(--ink);
  font: inherit; font-size: 22px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__nav:hover { border-color: var(--accent-text); background: #fff; }
.gallery__nav:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.gallery__nav[hidden] { display: none; }
.gallery__count { color: var(--muted); }

.submit-row { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
/* PayPal-Checkout-Look: Gold als Pill (PayPals Default-Shape).
   Beschriftung bleibt voll ausgeschriebener TEXT (§ 312j BGB);
   "PayPal" ist echter Text, nur als Wortmarke gestylt. */
button.submit {
  font: inherit;
  font-weight: 700;
  background: var(--gold);
  color: #2C2E2F;
  border: none;
  border-radius: var(--r-pill);
  padding: 16px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  transition: transform .1s ease, background .15s ease;
  box-shadow: var(--shadow-1);
}
button.submit:hover { background: #F2BA36; }
button.submit:active { transform: translateY(1px); }
button.submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pp-mark {
  font-style: italic;
  font-weight: 700;
  font-size: 1.18em;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.pp-mark .pp-pay { color: #003087; }
.pp-mark .pp-pal { color: #009CDE; }
.submit-note {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* Fehler — Rot bleibt Rot */
.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: var(--r-s);
  padding: 12px 14px;
  font-size: var(--fs-s);
  margin: 14px 0;
}

/* ============================================================
   DIALOGE + FOOTER
   ============================================================ */
.privacy-dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  max-width: min(680px, 92vw);
  width: 92vw;
  max-height: 88vh;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-2);
}
.privacy-dialog::backdrop { background: rgba(34, 28, 68, 0.5); }
.privacy-dialog__inner { display: flex; flex-direction: column; max-height: 88vh; }
.privacy-dialog__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.privacy-dialog__head h2 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.privacy-dialog__close {
  background: transparent; color: var(--ink-soft); border: none;
  font: inherit; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.privacy-dialog__close:hover { color: var(--ink); }
.privacy-dialog__close:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.privacy-dialog__body { padding: 18px 22px; overflow-y: auto; flex: 1 1 auto; min-height: 0; font-size: var(--fs-s); line-height: 1.55; color: var(--ink-soft); }
.privacy-dialog__foot {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end;
}

footer.foot {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer.foot a { color: var(--ink-soft); text-decoration: none; }
footer.foot a:hover { color: var(--accent-text); text-decoration: underline; }

/* ============================================================
   SEITEN-BAUSTEINE: Landing + Einverständnisformular
   ============================================================ */
/* Landing-CTAs */
.index-actions { display: grid; gap: 14px; margin: 4px 0 8px; }
@media (min-width: 560px) { .index-actions { grid-template-columns: 1fr 1fr; } }
.index-cta {
  display: flex; flex-direction: column; gap: 4px;
  align-items: center; text-align: center;
  padding: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8FE 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.index-cta:hover { transform: translateY(-1px); border-color: var(--accent-text); box-shadow: var(--glow); }
.index-cta--disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.index-cta:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.index-cta__label {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(20px, 5vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.index-cta__sub { font-size: var(--fs-s); color: var(--ink-soft); }
.index-cta__hint { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }

/* DSGVO-Notice */
.notice {
  background: #F8F6FD;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 14px 16px;
  font-size: var(--fs-s);
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.notice strong { color: var(--ink); }
.notice p { margin: 0; }
.notice p + p { margin-top: 10px; }

/* Ja/Nein-Fragen */
.yn-list { display: grid; gap: 9px; }
.yn {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 10px 12px;
  background: #F8F6FD;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
}
.yn__q { flex: 1 1 220px; min-width: 0; font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
.yn__opts { display: inline-flex; gap: 8px; margin-left: auto; }
.yn__input { position: absolute; opacity: 0; pointer-events: none; }
.yn-chip {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em;
  padding: 9px 16px; min-height: 40px;
  display: inline-flex; align-items: center;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--border-ui);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.yn-chip:hover { border-color: var(--accent-text); }
.yn__input:focus-visible + .yn-chip { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.yn__input:checked + .yn-chip { background: var(--night); border-color: var(--night); color: #fff; box-shadow: var(--glow); }

/* Signatur — Papierfläche, Theme-invariant weiß (PNG-Daten hell/dunkel) */
.sig-box { background: #FFFFFF; border: 1px solid var(--border-ui); border-radius: var(--r-s); overflow: hidden; }
#sigpad { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.sig-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }

/* Disabled-Felder (Ort/Datum vorbelegt) */
.field > input:disabled { background: #F1EEF8; color: var(--ink-soft); cursor: default; }

/* Fließ-Typo in Aufklärung + Dialogen */
.terms-body h2, .privacy-dialog__body h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: var(--fs-base);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 16px 0 6px;
}
.privacy-dialog__body h2:first-child { margin-top: 0; }
.terms-body ul, .privacy-dialog__body ul { margin: 6px 0; padding-left: 20px; }
.privacy-dialog__body p { margin: 8px 0; }
.terms-body p { margin: 8px 0; }
.terms-body h2:first-child { margin-top: 0; }

/* Lange deutsche Komposita (z. B. "Einverständniserklärung") auf
   schmalen Viewports sauber trennen statt überlaufen. */
.brand-hero__title,
.index-cta__label,
section > h2 {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
