/* ============================================================
   Wolke der Zeugen — Designsystem „Illuminierte Sammelkarten"
   Nachthimmel (die Wolke der Zeugen über dir) + Pergament + Gold
   ============================================================ */

:root {
  /* Grund */
  --nacht: #131a30;
  --nacht-hell: #1e2947;
  --sternennebel: #2a3a63;
  --wolke: #aeb9d9;
  --weiss: #f2f4fb;
  /* Karte / Pergament */
  --pergament: #f6ecd7;
  --pergament-tief: #e6d5b0;
  --tinte: #2b241d;
  /* Illumination */
  --gold: #d4a73a;
  --gold-hell: #f0d284;
  --gold-tief: #9c7420;
  /* Status */
  --segen: #4f9e6b;
  --hinweis: #c8553d;
  /* Form */
  --radius: 14px;
  --radius-karte: 18px;
  --schatten: 0 18px 50px rgba(4, 8, 24, 0.45);
  --font-display: Georgia, "Times New Roman", serif;
  --font-text: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--weiss);
  background:
    radial-gradient(1px 1px at 12% 22%, rgba(240, 210, 132, 0.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 12%, rgba(242, 244, 251, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 38%, rgba(240, 210, 132, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 64%, rgba(242, 244, 251, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 52%, rgba(240, 210, 132, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 86%, rgba(242, 244, 251, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 80%, rgba(240, 210, 132, 0.55) 50%, transparent 51%),
    radial-gradient(ellipse 120% 80% at 50% -10%, var(--sternennebel), var(--nacht) 65%);
  background-attachment: fixed;
  min-height: 100dvh;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  /* In der Home-Bildschirm-App liegt die Statusleiste über der Seite (black-translucent) */
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(84px + env(safe-area-inset-bottom));
}

.laedt {
  text-align: center;
  padding: 40vh 24px 0;
  color: var(--wolke);
  font-family: var(--font-display);
  font-size: 18px;
}

/* ---------- Views ---------- */
.view { display: none; }
.view.aktiv { display: block; animation: einblenden 0.25s ease; }

@keyframes einblenden {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Typografie ---------- */
h1, h2, h3, .app-titel {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 26px; margin-bottom: 6px; }
h2 { font-size: 20px; margin: 18px 0 10px; }
h3 { font-size: 17px; margin-bottom: 6px; }
p { margin-bottom: 10px; }
.dezent { color: var(--wolke); font-size: 14px; }

/* ---------- Panels ---------- */
.panel-pergament {
  background: linear-gradient(160deg, var(--pergament), var(--pergament-tief));
  color: var(--tinte);
  border: 1.5px solid var(--gold-tief);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--schatten);
}
.panel-nacht {
  background: var(--nacht-hell);
  border: 1px solid var(--sternennebel);
  border-radius: var(--radius);
  padding: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  margin: 10px 0;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; }

.btn-gold {
  background: linear-gradient(160deg, var(--gold-hell), var(--gold));
  color: var(--tinte);
  border: 1.5px solid var(--gold-tief);
  box-shadow: 0 6px 20px rgba(212, 167, 58, 0.25);
}
.btn-gold:hover { filter: brightness(1.05); }

.btn-sekundaer {
  background: var(--nacht-hell);
  color: var(--weiss);
  border: 1.5px solid var(--sternennebel);
}
.btn-warnung {
  background: transparent;
  color: var(--hinweis);
  border: 1.5px solid var(--hinweis);
}
.btn-wahl {
  background: var(--nacht-hell);
  color: var(--weiss);
  border: 1.5px solid var(--gold-tief);
  text-align: left;
  font-weight: 500;
}
.btn-wahl:hover { border-color: var(--gold); }

.btn-antwort {
  background: var(--nacht);
  color: var(--weiss);
  border: 1.5px solid var(--sternennebel);
  text-align: left;
  font-weight: 500;
}
.btn-antwort.richtig { border-color: var(--segen); background: rgba(79, 158, 107, 0.18); }
.btn-antwort.falsch { border-color: var(--hinweis); background: rgba(200, 85, 61, 0.14); opacity: 0.8; }

.zurueck {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 17px;
  font-weight: 600;
  padding: 8px 4px;
  margin-bottom: 8px;
  cursor: pointer;
  min-height: 44px;
}

/* ---------- Links & Chips ---------- */
.link-gold { color: var(--gold); font-weight: 600; text-decoration: none; }
.link-gold:hover { text-decoration: underline; }
.link-tinte { color: var(--gold-tief); font-weight: 600; text-decoration: none; }

.chip {
  display: inline-block;
  padding: 5px 12px;
  margin: 3px 4px 3px 0;
  border-radius: 999px;
  background: var(--nacht-hell);
  border: 1px solid var(--sternennebel);
  color: var(--wolke);
  font-size: 13.5px;
}
.chip-gold { border-color: var(--gold-tief); color: var(--gold-hell); }
.chips { margin: 6px 0; }

/* ---------- Formulare ---------- */
input[type="text"], textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--sternennebel);
  background: var(--nacht);
  color: var(--weiss);
  font-family: var(--font-text);
  font-size: 16px;
}
input[type="text"]:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
textarea { resize: vertical; margin: 8px 0; }
.panel-pergament textarea {
  background: rgba(255, 255, 255, 0.55);
  color: var(--tinte);
  border-color: var(--gold-tief);
}

.schalter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}
.schalter input { width: 22px; height: 22px; accent-color: var(--gold); }

/* ---------- Bottom-Navigation ---------- */
#nav[hidden] { display: none; }
#nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  background: rgba(19, 26, 48, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--sternennebel);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  z-index: 40;
}
#nav button {
  flex: 1;
  max-width: 160px;
  min-height: 56px;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--wolke);
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
#nav button span { font-size: 22px; }
#nav button.aktiv { color: var(--gold-hell); background: rgba(212, 167, 58, 0.12); }

/* ---------- Onboarding ---------- */
.onboarding { padding-top: 8vh; text-align: center; }
.onboarding-wolke { font-size: 64px; animation: schweben 5s ease-in-out infinite; }
.app-titel { font-size: 32px; margin: 8px 0 22px; color: var(--gold-hell); }
.sendung { text-align: left; margin-bottom: 18px; }
.sendung p { font-family: var(--font-display); font-size: 17px; }
.sendung p:last-of-type { text-align: right; font-style: italic; }
.onboarding h2 { margin-bottom: 8px; }
.onboarding input { margin: 14px 0; text-align: center; font-size: 18px; }
.datenschutz-panel { text-align: left; margin: 12px 0; }

@keyframes schweben {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Home ---------- */
.home-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 2px 12px;
}
.home-gruss { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.home-sub { color: var(--wolke); font-size: 14.5px; }
.home-sub strong { color: var(--gold-hell); }
.home-logo { font-size: 38px; animation: schweben 6s ease-in-out infinite; }

.demo-band, .event-band, .hinweis-band, .denkmal-band {
  border-radius: var(--radius);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.demo-band { background: rgba(130, 86, 168, 0.25); border: 1px solid #8256a8; }
.event-band { background: rgba(212, 167, 58, 0.18); border: 1px solid var(--gold-tief); color: var(--gold-hell); }
.hinweis-band { background: var(--nacht-hell); border: 1px solid var(--sternennebel); color: var(--wolke); font-weight: 500; }
.denkmal-band { background: rgba(74, 111, 165, 0.2); border: 1px solid #4a6fa5; }

/* Kitas, Hort, Seniorenzentrum: freundlicher Hinweis zu Rücksicht und Kamera */
.ort-respekt {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(212, 167, 58, 0.12);
  border: 1px dashed var(--gold-tief);
  color: var(--wolke);
  font-size: 14px;
  line-height: 1.45;
}
.ort-nachbarn { margin: -4px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.chip-knopf { cursor: pointer; font: inherit; font-size: 13.5px; }
.chip-knopf:hover, .chip-knopf:focus-visible { border-color: var(--gold-tief); color: var(--gold-hell); }
.aktionstage { margin: 4px 0 0; padding-left: 18px; color: var(--wolke); font-size: 14.5px; }
.aktionstage li { margin-bottom: 4px; }
.koord-position { font-size: 17px; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }

/* ---------- Pilgerkarte (SVG) ---------- */
#karte-container { margin: 4px 0 6px; }
.pilgerkarte {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 34px rgba(4, 8, 24, 0.5));
}
.karte-titel {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 700;
  fill: var(--tinte);
  letter-spacing: 0.04em;
}
.karte-kompass-n { font-family: var(--font-display); font-size: 14px; fill: var(--gold-tief); font-weight: 700; }
.medaillon { cursor: pointer; }
.medaillon:focus { outline: none; }
.medaillon:focus circle:not(.medaillon-puls) { stroke-width: 5; }
.nachbar-linie { stroke: var(--gold-tief); stroke-width: 2; stroke-dasharray: 2 4; stroke-linecap: round; opacity: 0.75; }
.medaillon-icon { font-size: 26px; }
.medaillon-name { font-size: 15px; font-weight: 700; fill: var(--tinte); font-family: var(--font-text); }
.medaillon-jahre, .medaillon-distanz { font-size: 12px; fill: var(--gold-tief); font-family: var(--font-text); font-weight: 600; }
.medaillon-siegel { font-size: 12px; fill: var(--tinte); }
.medaillon-ring.denkmal { stroke-dasharray: 5 4; }
.medaillon-name, .medaillon-jahre, .medaillon-distanz {
  paint-order: stroke;
  stroke: var(--pergament);
  stroke-width: 4px;
  stroke-linejoin: round;
}

/* Hintergrund aus OpenStreetMap, im Stil einer alten Karte */
.karten-hintergrund .gruen path { fill: #c9d3ad; opacity: 0.55; }
.karten-hintergrund .wasser path { fill: #b3cbd2; opacity: 0.8; }
.strasse-rand { fill: none; stroke: #b9a47c; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.strasse-innen { fill: none; stroke: #f5ebd3; stroke-linecap: round; stroke-linejoin: round; }
.bahn-grund { fill: none; stroke: #8a7658; stroke-width: 3.2; opacity: 0.8; }
.bahn-schwellen { fill: none; stroke: #f5ebd3; stroke-width: 1.6; stroke-dasharray: 6 6; }
.strassen-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12.5px;
  fill: #7b6748;
  letter-spacing: 0.05em;
  paint-order: stroke;
  stroke: var(--pergament);
  stroke-width: 3px;
}
.karte-quelle { font-family: var(--font-text); font-size: 10px; fill: #8a7658; opacity: 0.85; }

.medaillon-puls, .spieler-puls {
  transform-box: fill-box;
  transform-origin: center;
  animation: puls 2s ease-out infinite;
}
@keyframes puls {
  0% { transform: scale(0.85); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- „Diese Woche unterwegs" ---------- */
.woche h2 { margin-top: 14px; }
.woche-chips { display: flex; flex-direction: column; gap: 8px; }
.woche-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 14px;
  background: var(--nacht-hell);
  border: 1px solid var(--sternennebel);
  border-radius: var(--radius);
  color: var(--weiss);
  font-family: var(--font-text);
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}
.woche-chip.hat { border-color: var(--gold-tief); }
.woche-chip-emoji { font-size: 26px; width: 36px; text-align: center; }
.woche-chip-text { display: flex; flex-direction: column; }
.woche-chip-text small { color: var(--wolke); font-size: 12.5px; }
.woche-chip-text { flex: 1; min-width: 0; }
.woche-chip-gestalt { flex: 0 0 34px; width: 34px; display: block; }
.woche-chip-gestalt svg { width: 100%; height: auto; display: block; }
.woche-chip-pfeil { color: var(--gold); font-size: 22px; font-weight: 700; padding-left: 4px; }
.woche-stand {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(212, 167, 58, 0.15);
  border: 1px solid var(--gold-tief);
  color: var(--gold-hell);
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- Als App auf den Home-Bildschirm ---------- */
.install-karte {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px 40px 12px 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--nacht-hell), var(--sternennebel));
  border: 1px solid var(--gold-tief);
}
.install-text { flex: 1; display: flex; flex-direction: column; font-size: 13.5px; color: var(--wolke); line-height: 1.35; }
.install-text strong { color: var(--weiss); font-size: 15px; margin-bottom: 2px; }
.install-los { width: auto; min-height: 42px; margin: 0; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
.install-zu {
  position: absolute;
  top: 4px; right: 4px;
  width: 32px; height: 32px;
  border: none;
  background: none;
  color: var(--wolke);
  font-size: 15px;
  cursor: pointer;
}

.anleitung-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(10, 14, 30, 0.8);
  backdrop-filter: blur(4px);
}
.anleitung { max-width: 440px; width: 100%; animation: einblenden 0.3s ease; }
.anleitung h2 { margin: 6px 0 10px; text-align: center; }
.anleitung-symbol { text-align: center; }
.anleitung-symbol img { border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.anleitung-schritte { padding-left: 22px; margin-bottom: 10px; }
.anleitung-schritte li { margin-bottom: 8px; line-height: 1.45; }
.anl-symbol {
  display: inline-block;
  padding: 0 6px;
  border: 1.5px solid var(--tinte);
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.4;
}
.anl-wichtig { background: rgba(212, 167, 58, 0.18); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.anleitung .dezent { color: rgba(43, 36, 29, 0.75); }

/* Hinweis in der alten Home-Bildschirm-App (js/umzug.js) */
a.btn { text-decoration: none; text-align: center; }
.anleitung .btn + .btn { margin-top: 8px; }

.code-anzeige {
  margin: 8px 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--nacht);
  border: 1px dashed var(--gold-tief);
  color: var(--gold-hell);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-align: center;
  user-select: all;
  -webkit-user-select: all;
}
.code-knoepfe { display: flex; gap: 8px; margin-bottom: 10px; }
.code-knoepfe .btn { margin: 0; }

/* ---------- Kompass-Hinweis: Wo geht's als Nächstes hin? ---------- */
.naechster-ort:empty { display: none; }
.naechster-ort { margin-bottom: 10px; }
.hinweis-karte {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  text-align: left;
  border-radius: var(--radius);
  background: var(--nacht-hell);
  border: 1.5px solid var(--gold-tief);
  color: var(--weiss);
  font-family: var(--font-text);
  font-size: 14.5px;
  line-height: 1.35;
}
button.hinweis-karte { cursor: pointer; }
.hinweis-icon { font-size: 22px; flex: 0 0 auto; }
.hinweis-karte strong { color: var(--gold-hell); }
.hinweis-karte.da {
  background: linear-gradient(160deg, var(--gold-hell), var(--gold));
  color: var(--tinte);
  border-color: var(--gold-tief);
  box-shadow: 0 6px 22px rgba(212, 167, 58, 0.35);
  animation: da-pochen 1.6s ease-in-out infinite;
}
.hinweis-karte.da strong { color: var(--tinte); }
.hinweis-los { font-weight: 800; white-space: nowrap; }
.hinweis-karte.fertig { border-color: var(--segen); }
.hinweis-karte.leise { border-color: var(--sternennebel); color: var(--wolke); }
@keyframes da-pochen {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

/* ---------- Ort-Detail ---------- */
.ort-kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.ort-icon {
  font-size: 30px;
  width: 58px; height: 58px;
  flex: 0 0 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pergament);
  border: 3px solid var(--ort-farbe, var(--gold));
  border-radius: 50%;
}
.ort-untertitel { color: var(--wolke); font-size: 14px; margin: 0; }
.ort-adresse { color: var(--gold); font-size: 13px; margin: 2px 0 0; }
.ort-siegel {
  margin-left: auto;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: var(--tinte);
  border-radius: 50%;
  font-size: 16px;
  border: 2px solid var(--gold-tief);
}
.ort-beschreibung { color: var(--wolke); font-size: 15px; }
.ort-info { margin: 12px 0; }
.ort-distanz { font-weight: 700; color: var(--gold-hell); }
.ort-code label { font-size: 14px; color: var(--wolke); }
.ort-code-zeile { display: flex; gap: 8px; margin-top: 6px; }
.ort-code-zeile input { flex: 1; }
.ort-code-zeile .btn { width: auto; margin: 0; padding: 12px 16px; }
.ort-links { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }

.ort-begegnung {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin: 14px 0;
}
.wartet-panel { border-width: 2.5px; border-color: var(--gold); }
.ort-begegnung-emoji {
  font-size: 40px;
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pergament);
  border: 4px solid var(--gold);
  border-radius: 50%;
}
.ort-begegnung-text small { display: block; color: rgba(43, 36, 29, 0.75); margin-top: 4px; }
/* Die wartende Gestalt steht in einer Fensternische wie im Kirchenfenster */
.ort-begegnung-nische {
  width: 150px;
  padding: 16px 16px 8px;
  border-radius: 80px 80px 14px 14px;
  background: radial-gradient(ellipse at 50% 35%, var(--sternennebel), var(--nacht) 75%);
  border: 3px solid var(--gold-tief);
  box-shadow: inset 0 0 0 2px var(--gold), 0 8px 24px rgba(4, 8, 24, 0.35);
}
.ort-begegnung-nische svg { width: 100%; height: auto; display: block; animation: schweben 5s ease-in-out infinite; }
.ort-begegnung .btn { margin-bottom: 0; }

/* ---------- Begegnung ---------- */
#view-begegnung.aktiv { display: flex; flex-direction: column; min-height: calc(100dvh - 60px); }
.begegnung-kopf {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sternennebel);
  margin-bottom: 12px;
}
.begegnung-kopf .zurueck { margin: 0; font-size: 24px; }
.begegnung-titel { display: flex; align-items: center; gap: 12px; }
.begegnung-emoji {
  font-size: 26px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pergament);
  border: 3px solid var(--gold);
  border-radius: 50%;
}
.begegnung-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.begegnung-ort { font-size: 13px; color: var(--wolke); }
.begegnung-inhalt { flex: 1; display: flex; flex-direction: column; }

.chat { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
.bubble {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 16px;
  animation: einblenden 0.3s ease;
}
.bubble-figur {
  align-self: flex-start;
  background: linear-gradient(160deg, var(--pergament), var(--pergament-tief));
  color: var(--tinte);
  font-family: var(--font-display);
  font-size: 16.5px;
  border: 1px solid var(--gold-tief);
  border-bottom-left-radius: 4px;
}
.bubble-du {
  align-self: flex-end;
  background: var(--sternennebel);
  color: var(--weiss);
  border-bottom-right-radius: 4px;
}
.chat-aktionen { position: sticky; bottom: 0; padding-top: 4px; background: transparent; }

.impuls { text-align: center; margin-bottom: 4px; }
.impuls-zeichen { color: var(--gold-tief); font-size: 22px; margin-bottom: 4px; }
.impuls p { font-family: var(--font-display); font-size: 16.5px; text-align: left; }
.impuls .dezent { color: rgba(43, 36, 29, 0.7); font-size: 13px; margin: 0; }

.frage-label { color: var(--wolke); font-size: 14px; margin-bottom: 6px; }
.frage h3 { font-size: 19px; margin-bottom: 12px; }
.frage-feedback p { margin: 8px 0; }
.feedback-richtig { color: var(--gold-hell); font-weight: 700; font-size: 16.5px; margin: 10px 0 6px; }
.feedback-hinweis { color: var(--wolke); font-weight: 600; margin: 10px 0 6px; }

.zeremonie { text-align: center; padding-top: 8px; }
.zeremonie-karte {
  position: relative;
  max-width: 260px;
  margin: 0 auto 14px;
  animation: kartenankunft 0.8s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}
.zeremonie-funken { position: absolute; left: 50%; top: 40%; pointer-events: none; }
.zeremonie-funken span {
  position: absolute;
  width: 9px; height: 9px;
  margin: -4.5px;
  border-radius: 50%;
  background: var(--gold-hell);
  box-shadow: 0 0 12px var(--gold);
  opacity: 0;
  animation: zeremonie-funke 1.3s ease-out 0.5s forwards;
  animation-delay: calc(0.5s + var(--i) * 20ms);
}
@keyframes zeremonie-funke {
  0% { opacity: 1; transform: rotate(calc(var(--i) * 20deg)) translateY(0) scale(1); }
  100% { opacity: 0; transform: rotate(calc(var(--i) * 20deg)) translateY(-190px) scale(0.3); }
}
@keyframes kartenankunft {
  0% { opacity: 0; transform: translateY(40px) rotateY(70deg) scale(0.8); }
  100% { opacity: 1; transform: none; }
}
.zeremonie-titel { font-size: 22px; margin-bottom: 8px; }
.zeremonie-spruch { font-family: var(--font-display); font-style: italic; color: var(--wolke); }

/* ---------- Zeugenkarten (SVG) ---------- */
.zeugenkarte { width: 100%; height: auto; display: block; border-radius: var(--radius-karte); }
.karte-emoji { font-size: 62px; }
.karte-name { font-family: var(--font-display); font-size: 28px; font-weight: 700; fill: var(--tinte); }
.karte-beiname { font-family: var(--font-display); font-style: italic; font-size: 15px; fill: var(--gold-tief); }
.karte-thema { font-family: var(--font-text); font-size: 14.5px; font-weight: 700; }
.karte-ort { font-family: var(--font-text); font-size: 14px; fill: rgba(43, 36, 29, 0.7); }
.karte-seltenheit { font-family: var(--font-display); font-style: italic; font-size: 13px; fill: var(--gold-tief); }
.karte-probelauf { font-family: var(--font-text); font-size: 12px; font-weight: 700; fill: var(--wolke); }
.karte-frage { font-family: var(--font-display); font-size: 64px; fill: var(--wolke); }
.karte-nebel-text { font-family: var(--font-display); font-size: 19px; fill: var(--wolke); }
.karte-nebel-hinweis { font-family: var(--font-text); font-size: 15px; font-weight: 600; fill: var(--gold); }
.karte-nebel-hinweis.klein { font-size: 13px; fill: var(--wolke); font-weight: 500; }

.zeugenkarte.glanz .foil { animation: foil 3.5s ease-in-out infinite; }
@keyframes foil {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}
.zeugenkarte.s-legende { filter: drop-shadow(0 0 14px rgba(212, 167, 58, 0.35)); }

/* ---------- Album (Wolke) ---------- */
.album-kopf { margin-bottom: 12px; }
.album-zaehler { font-family: var(--font-display); font-size: 18px; margin: 6px 0 10px; }
.album-zaehler strong { color: var(--gold-hell); font-size: 24px; }
.album-tabs { display: flex; gap: 8px; }
.tab {
  flex: 1;
  min-height: 44px;
  background: var(--nacht-hell);
  border: 1px solid var(--sternennebel);
  border-radius: 999px;
  color: var(--wolke);
  font-family: var(--font-text);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.tab.aktiv { background: rgba(212, 167, 58, 0.15); border-color: var(--gold-tief); color: var(--gold-hell); }

.album-wolke {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.album-karte {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transform: rotate(var(--drehung, 0deg));
  transition: transform 0.15s ease;
}
.album-karte:hover, .album-karte:focus { transform: rotate(0deg) scale(1.03); }

.fenster-wrap { text-align: center; padding: 10px 0; }
.kirchenfenster { max-width: 300px; width: 90%; height: auto; }
.fenster-emoji { font-size: 24px; }
.fenster-zier { font-size: 16px; fill: var(--gold); opacity: 0.6; }
.fenster-text { color: var(--wolke); margin-top: 10px; }

.finale { text-align: center; margin-bottom: 16px; border-width: 2.5px; }
.finale-titel { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.finale p { font-family: var(--font-display); font-size: 16px; }
.finale-quelle { font-size: 14px; color: rgba(43, 36, 29, 0.75); }

/* ---------- Figuren-Detail / Kartenflip ---------- */
.flip-buehne { max-width: 300px; margin: 0 auto; perspective: 1200px; }
.flip-karte { position: relative; width: 100%; aspect-ratio: 300 / 420; transform-style: preserve-3d; transition: transform 0.6s ease; cursor: pointer; }
.flip-karte.gedreht { transform: rotateY(180deg); }
.flip-vorn, .flip-hinten {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-hinten { transform: rotateY(180deg); display: flex; }
.karte-rueckseite {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}
.rueck-spruch { font-family: var(--font-display); font-size: 19px; font-style: italic; }
.rueck-bibel { font-weight: 700; color: var(--gold-tief); }
.flip-hinweis { text-align: center; color: var(--wolke); font-size: 13px; margin: 8px 0 14px; }
.detail-meta { text-align: center; margin-bottom: 12px; }
.detail-block { margin: 12px 0; }
.detail-hinweis { text-align: center; color: var(--wolke); margin-top: 14px; }

/* ---------- Einstellungen ---------- */
.einstellung { margin-bottom: 12px; }
.datenschutz-lang { font-size: 14px; color: var(--wolke); }
.einstellung-fuss { text-align: center; color: var(--wolke); font-size: 13.5px; margin-top: 22px; }

/* ---------- Meilenstein-Overlay ---------- */
#meilenstein-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 30, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
}
#meilenstein-overlay[hidden] { display: none; }
.meilenstein { max-width: 420px; text-align: center; animation: einblenden 0.35s ease; }
.meilenstein-zeichen { font-size: 26px; color: var(--gold-tief); margin-bottom: 10px; }
.meilenstein p { font-family: var(--font-display); font-size: 17.5px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  background: var(--pergament);
  color: var(--tinte);
  border: 1.5px solid var(--gold-tief);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14.5px;
  max-width: 90vw;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 70;
  box-shadow: var(--schatten);
}
#toast.sichtbar { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- AR-Ansicht: "Such die Gestalt!" ---------- */
#view-ar.aktiv {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
}
.ar-buehne {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--nacht);
  touch-action: manipulation;
}
#ar-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ar-sternenhimmel {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(240,210,132,.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(242,244,251,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 55%, rgba(240,210,132,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(240,210,132,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 80%, rgba(242,244,251,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 70%, rgba(242,244,251,.5) 50%, transparent 51%),
    radial-gradient(ellipse 120% 90% at 50% 20%, var(--sternennebel), var(--nacht) 70%);
}

/* Die "Welt": hier steht die Gestalt, verschoben per Lagesensor */
.ar-welt { position: absolute; inset: 0; pointer-events: none; }
.ar-gestalt-anker {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
}
.ar-gestalt-pos { position: relative; will-change: transform; }
.ar-gestalt {
  display: block;
  width: min(42vw, 200px);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.5;
  filter: drop-shadow(0 0 18px rgba(240, 210, 132, 0.25)) saturate(0.6);
  animation: ar-schimmern 2.4s ease-in-out infinite;
  transition: opacity 0.6s ease, filter 0.6s ease;
  -webkit-tap-highlight-color: transparent;
}
.ar-gestalt svg { width: 100%; height: auto; display: block; }
.gefunden .ar-gestalt {
  opacity: 1;
  filter: drop-shadow(0 0 26px rgba(240, 210, 132, 0.55));
  animation: ar-schweben 3.5s ease-in-out infinite;
}
.ar-gestalt.huepft { animation: ar-huepfen 0.6s ease, ar-schweben 3.5s ease-in-out 0.6s infinite; }

.ar-blase {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  width: min(80vw, 310px);
  transform: translateX(-50%) translateY(8px);
  background: linear-gradient(160deg, var(--pergament), var(--pergament-tief));
  color: var(--tinte);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.45;
  border: 1.5px solid var(--gold-tief);
  border-radius: 16px;
  padding: 12px 15px;
  box-shadow: var(--schatten);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ar-blase::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 16px; height: 16px;
  background: var(--pergament-tief);
  border-right: 1.5px solid var(--gold-tief);
  border-bottom: 1.5px solid var(--gold-tief);
  transform: translateX(-50%) rotate(45deg);
}
.ar-blase.sichtbar { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Goldene Funken, wenn die Gestalt gefunden wird */
.ar-funken { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.ar-funken span {
  position: absolute;
  width: 8px; height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: var(--gold-hell);
  box-shadow: 0 0 10px var(--gold);
  opacity: 0;
}
.gefunden .ar-funken span {
  animation: ar-funke 1.1s ease-out forwards;
  animation-delay: calc(var(--i) * 18ms);
}

.ar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top)) 18px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(10,14,30,.35) 0%, transparent 22%, transparent 52%, rgba(10,14,30,.8) 100%);
  pointer-events: none;
}
.ar-overlay button, .ar-overlay a { pointer-events: auto; }
.ar-schliessen {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 16px;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(10,14,30,.55);
  color: var(--weiss);
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.ar-kopf { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; max-width: 80%; }
.ar-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10,14,30,.55);
  color: var(--gold-hell);
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(4px);
}
.ar-status {
  text-align: center;
  color: var(--weiss);
  font-weight: 600;
  font-size: 15px;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
  min-height: 1.4em;
}
.ar-richtung {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--tinte);
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ar-richtung.sichtbar { opacity: 1; transform: scale(1); animation: ar-pochen 1.2s ease-in-out infinite; }

.ar-fuss { width: 100%; max-width: 460px; text-align: center; }
.ar-name-tafel {
  display: inline-block;
  background: rgba(10,14,30,.6);
  border: 1px solid var(--gold-tief);
  border-radius: var(--radius);
  padding: 8px 18px;
  margin-bottom: 6px;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.gefunden .ar-name-tafel { opacity: 1; transform: none; }
.ar-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--weiss); }
.ar-beiname { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--wolke); }

.ar-hinweis {
  background: rgba(10,14,30,.6);
  border: 1px solid var(--sternennebel);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--wolke);
  font-size: 13.5px;
  text-align: center;
  margin: 4px auto;
  backdrop-filter: blur(6px);
}
.ar-textlink {
  background: none;
  border: none;
  color: var(--wolke);
  font-family: var(--font-text);
  font-size: 14px;
  text-decoration: underline;
  padding: 8px;
  cursor: pointer;
}
.ar-datenschutz { color: var(--wolke); font-size: 11.5px; opacity: .85; margin: 2px 0 0; }

/* ---------- Ablauf in der AR-Begegnung: Fortschritt, Bibelwort ---------- */
.ar-buehne[data-zustand="geste"] .ar-name-tafel,
.ar-buehne[data-zustand="erfuellt"] .ar-name-tafel { display: none; }
/* Der Hinweis "ohne Kamerabild" stört nach der Suche nur noch */
.ar-buehne:not([data-zustand="suchen"]):not([data-zustand="gefunden"]) .ar-hinweis { display: none; }
/* Beim Bibelwort rückt die Gestalt nach oben und wird etwas kleiner — die Vers-Karte verdeckt sie nicht */
.ar-gestalt-anker { transition: top 0.6s ease; }
.ar-gestalt { transition: opacity 0.6s ease, filter 0.6s ease, width 0.6s ease; }
.ar-buehne[data-zustand="erfuellt"] .ar-gestalt-anker { top: 33%; }
.ar-buehne[data-zustand="erfuellt"] .ar-gestalt { width: min(34vw, 160px); }
.ar-fortschritt { display: flex; align-items: center; gap: 10px; margin: 4px auto 8px; max-width: 320px; }
.ar-fortschritt[hidden] { display: none; }
.ar-fortschritt-balken { flex: 1; height: 10px; border-radius: 999px; background: rgba(10,14,30,.6); border: 1px solid var(--gold-tief); overflow: hidden; }
.ar-fortschritt-wert { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-hell)); transition: width 0.2s ease; }
.ar-fortschritt-text { min-width: 3.5em; color: var(--gold-hell); font-weight: 700; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.ar-vers {
  background: linear-gradient(160deg, var(--pergament), var(--pergament-tief));
  color: var(--tinte);
  border: 1.5px solid var(--gold-tief);
  border-radius: var(--radius);
  padding: 12px 15px;
  margin: 0 auto 6px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 15.5px;
  line-height: 1.45;
  box-shadow: var(--schatten);
  animation: einblenden 0.4s ease;
}
.ar-vers p { margin: 0 0 4px; }
.ar-vers-stelle { display: block; text-align: right; font-family: var(--font-text); font-size: 12.5px; font-weight: 700; color: var(--gold-tief); }
.ort-begegnung-hinweis { font-size: 13px; color: rgba(43, 36, 29, 0.7); margin: 0; }

/* ---------- Gesten-Ebene ---------- */
.ar-geste-ebene { position: absolute; inset: 0; pointer-events: none; }
.ar-geste-ebene > * { pointer-events: auto; }
.geste-gross {
  position: absolute;
  left: 50%; top: 17%;
  transform: translateX(-50%);
  width: 86%;
  text-align: center;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  color: var(--weiss);
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
  pointer-events: none;
}
.geste-gross.leise { top: 22%; font-style: italic; font-weight: 400; color: var(--gold-hell); animation: einblenden 1.6s ease; }

/* Sammeln */
.geste-ding {
  position: absolute; left: 0; top: 0;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  background: radial-gradient(circle, rgba(240,210,132,.45), rgba(240,210,132,0) 68%);
  border: none; border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: ding-funkeln 2.2s ease-in-out infinite;
  will-change: transform;
}
.geste-ding.rand { width: 34px; height: 34px; font-size: 20px; opacity: 0.55; pointer-events: none; animation: none; background: rgba(10,14,30,.45); }
.geste-ding.gesammelt { pointer-events: none; animation: ding-weg 0.45s ease forwards; }
@keyframes ding-funkeln { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.45) drop-shadow(0 0 8px var(--gold-hell)); } }
@keyframes ding-weg { to { opacity: 0; filter: brightness(2) drop-shadow(0 0 16px var(--gold-hell)); } }

/* Stille */
.stille-box {
  position: absolute; left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
}
.stille-lichter { display: flex; gap: 9px; }
.stille-licht { width: 14px; height: 14px; border-radius: 50%; background: rgba(174,185,217,.25); border: 1px solid rgba(240,210,132,.4); transition: all 0.4s ease; }
.stille-licht.an { background: var(--gold-hell); box-shadow: 0 0 14px var(--gold); }
.stille-kreis {
  width: 86px; height: 86px;
  border-radius: 50%;
  border: 2px solid rgba(240,210,132,.6);
  background: rgba(10,14,30,.45);
  font-size: 34px;
  pointer-events: none;
  animation: atmen 4s ease-in-out infinite;
}
.stille-box.ruhig .stille-kreis { border-color: var(--gold-hell); box-shadow: 0 0 26px rgba(240,210,132,.6); }
.stille-box.rueckfall { pointer-events: auto; }
.stille-box.rueckfall .stille-kreis { pointer-events: auto; touch-action: none; cursor: pointer; }
.stille-kreis.gedrueckt { background: rgba(212,167,58,.3); }
.stille-box.erfuellt .stille-kreis { animation: none; opacity: 0; transition: opacity 1s ease; }
@keyframes atmen { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.ar-buehne::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.ar-buehne.sturm { animation: sturm 0.5s linear infinite; }
.ar-buehne.sturm::after { opacity: 1; background: repeating-linear-gradient(100deg, transparent 0 30px, rgba(220,230,255,.12) 30px 34px); animation: wind 0.6s linear infinite; }
.ar-buehne.beben { animation: beben 0.18s linear infinite; }
.ar-buehne.feuer::after { opacity: 1; background: radial-gradient(ellipse at 50% 100%, rgba(255,120,40,.65), rgba(255,170,60,.25) 45%, transparent 75%); animation: flackern 0.4s ease-in-out infinite alternate; }
.ar-buehne.zittern { animation: beben 0.25s linear infinite; }
/* Samuel: Nacht im Tempel */
.ar-buehne.nacht::after { opacity: 1; background: radial-gradient(ellipse at 50% 40%, rgba(10, 14, 32, 0.35), rgba(6, 8, 20, 0.82) 75%); }
@keyframes sturm { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@keyframes beben { 0% { transform: translate(0, 0); } 25% { transform: translate(-5px, 3px); } 50% { transform: translate(4px, -3px); } 75% { transform: translate(-3px, -4px); } 100% { transform: translate(0, 0); } }
@keyframes wind { from { background-position: 0 0; } to { background-position: -200px 0; } }
@keyframes flackern { from { opacity: 0.75; } to { opacity: 1; } }

/* Festhalten */
.halte-ziel {
  position: absolute; left: 50%; top: 50%;
  width: 104px; height: 104px;
  transform: translate(-50%, -50%);
  border: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,210,132,.5), rgba(10,14,30,.55) 70%);
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  cursor: pointer;
  animation: halte-locken 1.6s ease-in-out infinite;
}
.halte-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.halte-ring-grund { fill: none; stroke: rgba(240,210,132,.3); stroke-width: 6; }
.halte-ring-wert { fill: none; stroke: var(--gold-hell); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 0.08s linear; }
.halte-symbol { position: relative; font-size: 40px; display: inline-block; transition: transform 0.1s linear; }
.halte-ziel.gedrueckt { animation: none; box-shadow: 0 0 34px rgba(240,210,132,.75); }
.halte-ziel.erfuellt { animation: ding-weg 0.9s ease forwards; }
.halte-ziel.gestempelt .halte-symbol { animation: stempel 0.35s ease; }
@keyframes halte-locken { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,210,132,.5); } 50% { box-shadow: 0 0 0 14px rgba(240,210,132,0); } }
@keyframes stempel { 0% { transform: scale(2.2); } 70% { transform: scale(0.9); } 100% { transform: scale(1); } }
.ar-gestalt-pos { --licht: 0; }
.gefunden .ar-gestalt-pos .ar-gestalt { filter: drop-shadow(0 0 calc(26px + var(--licht) * 50px) rgba(240, 210, 132, 0.55)); }
.ar-morgenrot {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(246,140,64,.88) 0%, rgba(244,186,104,.55) 30%, rgba(176,130,170,.28) 60%, rgba(60,80,140,0) 85%);
  transition: opacity 0.2s linear;
}

/* Wischen */
.wisch-leinwand { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; transition: opacity 0.6s ease; }
.wisch-leinwand.weg { opacity: 0; }
.wisch-enthuellt {
  position: absolute; left: 50%; top: 63%;
  transform: translate(-50%, -50%) scale(0.8);
  display: flex; flex-direction: column; align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}
.wisch-enthuellt.sichtbar { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.wisch-enthuellt { transition: opacity 0.8s ease, transform 0.8s ease, top 0.6s ease; }
.ar-buehne[data-zustand="erfuellt"] .wisch-enthuellt { top: 52%; }
.wisch-bild { font-size: 72px; filter: drop-shadow(0 0 18px rgba(160,220,255,.8)); }
.wisch-wort {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--tinte);
  background: linear-gradient(160deg, var(--pergament), var(--pergament-tief));
  border: 2px solid var(--gold-tief);
  border-radius: 8px;
  padding: 4px 18px;
  box-shadow: 0 0 24px rgba(240,210,132,.6);
}
.wisch-unter { margin-top: 4px; font-family: var(--font-display); font-style: italic; color: var(--gold-hell); text-shadow: 0 1px 6px rgba(0,0,0,.8); }

/* Schütteln */
.schuettel-box { position: absolute; left: 50%; top: 61%; transform: translate(-50%, -50%); width: 220px; height: 150px; pointer-events: none; }
.schuettel-symbol { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 64px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.schuettel-symbol.schlag { animation: schlag 0.3s ease; }
.schuettel-welle { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px; border-radius: 50%; border: 3px solid var(--gold-hell); animation: welle 0.7s ease-out forwards; }
.schuettel-ha { position: absolute; top: 20%; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--gold-hell); text-shadow: 0 2px 8px rgba(0,0,0,.7); animation: ha 1.2s ease-out forwards; }
.schuettel-tippen { position: absolute; left: 50%; top: 73%; transform: translateX(-50%); width: auto; padding: 10px 18px; }
@keyframes schlag { 0% { transform: translate(-50%, -50%) rotate(0); } 30% { transform: translate(-50%, -50%) rotate(-18deg) scale(1.15); } 60% { transform: translate(-50%, -50%) rotate(14deg); } 100% { transform: translate(-50%, -50%) rotate(0); } }
@keyframes welle { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@keyframes ha { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-70px); opacity: 0; } }

/* Saiten (Davids Leier) */
.leier {
  position: absolute; left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  display: flex; justify-content: space-between;
  width: min(80vw, 330px); height: 150px;
  padding: 10px 18px;
  border: 3px solid var(--gold-tief);
  border-radius: 60px 60px 16px 16px;
  background: rgba(10, 14, 30, 0.55);
  touch-action: none;
}
.saite { position: relative; flex: 1; height: 100%; border: none; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.saite-linie { position: absolute; left: 50%; top: 4px; bottom: 4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: rgba(240,210,132,.55); }
.saite.gezupft .saite-linie { background: var(--gold-hell); box-shadow: 0 0 10px var(--gold); }
.saite.schwingt .saite-linie { animation: schwingen 0.6s ease-out; }
@keyframes schwingen { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(1px); } }

@keyframes ar-schweben {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes ar-schimmern {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.6; }
}
@keyframes ar-huepfen {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-26px) scale(1.04); }
  65% { transform: translateY(0) scale(0.98); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes ar-funke {
  0% { opacity: 1; transform: rotate(calc(var(--i) * 25.7deg)) translateY(0) scale(1); }
  100% { opacity: 0; transform: rotate(calc(var(--i) * 25.7deg)) translateY(-150px) scale(0.3); }
}
@keyframes ar-pochen {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .medaillon-puls, .spieler-puls { animation: none; opacity: 0.25; }
  .zeugenkarte.glanz .foil { animation: none; opacity: 0.5; }
  .ar-gestalt, .gefunden .ar-gestalt, .ar-gestalt.huepft { animation: none; }
  .zeremonie-funken span { animation: none; }
  .hinweis-karte.da, .ort-begegnung-nische svg { animation: none; }
  .gefunden .ar-funken span { animation: none; }
  .ar-richtung.sichtbar { animation: none; }
}

/* ---------- Größere Screens ---------- */
@media (min-width: 700px) {
  #app { max-width: 640px; }
  .album-wolke { grid-template-columns: repeat(3, 1fr); }
}
