:root {
  --grund: #07040f;
  --text: #f4efff;
  --leise: rgba(244, 239, 255, .62);
  --violett: #a35bff;
  --cyan: #3fe0f5;
  --pink: #ff4fb8;
  --flaeche: rgba(14, 8, 28, .55);
  --rand: rgba(190, 150, 255, .28);
  --schrift: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --grund: #2a2148;
    --text: #1a1030;
    --leise: rgba(26, 16, 48, .7);
    --flaeche: rgba(250, 247, 255, .82);
    --rand: rgba(120, 70, 200, .3);
  }
}
:root[data-theme="light"] {
  --grund: #2a2148; --text: #1a1030; --leise: rgba(26, 16, 48, .7);
  --flaeche: rgba(250, 247, 255, .82); --rand: rgba(120, 70, 200, .3);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--grund); overflow-x: hidden; }
body {
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  min-height: 1000vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.buehne {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}

.kopf {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px;
  z-index: 3;
  pointer-events: none;
}
.marke, .kennung {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.marke { padding: 6px 14px; font-weight: 700; letter-spacing: .04em; font-size: 15px; }
.kennung { padding: 6px 12px; font-size: 11.5px; color: var(--leise); text-align: right; }

.hinweis {
  position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%);
  margin: 0; padding: 8px 16px;
  font-size: 14px; color: var(--text);
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 999px;
  z-index: 3; pointer-events: none;
  white-space: nowrap;
  transition: opacity .4s;
}

.spur {
  position: fixed; left: 20px; right: 20px; bottom: 18px;
  z-index: 3; pointer-events: none;
}
.spur-linie { height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.spur-fuell { height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--violett), var(--pink)); }
.spur-punkte {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
}
.spur-punkte li { color: rgba(255,255,255,.42); transition: color .3s; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.spur-punkte li.an { color: #fff; }

.ziel {
  position: fixed; left: 50%; bottom: 84px;
  transform: translate(-50%, 16px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none;
  z-index: 4;
  transition: opacity .35s, transform .35s;
}
.ziel.an { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ziel-knopf {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #a35bff);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 17px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 40px rgba(163, 91, 255, .55);
  white-space: nowrap;
}
.ziel-knopf:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.ziel-punkt { width: 10px; height: 10px; border-radius: 50%; background: #ff3b4f; box-shadow: 0 0 10px #ff3b4f; animation: puls 1.2s infinite; }
.ziel-notiz { font-size: 12px; color: #fff; opacity: .7; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.ziel-mehr { font-size: 13px; color: #efe9ff; text-shadow: 0 1px 3px rgba(0,0,0,.8); background: rgba(11,8,20,.72); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.ziel-mehr a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ziel-mehr a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
@keyframes puls { 50% { opacity: .35; } }

.text-fuer-alle {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.ohne-js { position: fixed; top: 40%; width: 100%; text-align: center; z-index: 5; }

@media (max-width: 640px) {
  .kopf { padding: 10px 12px; }
  .marke { font-size: 13px; padding: 5px 11px; }
  .kennung { font-size: 9.5px; max-width: 58vw; padding: 5px 9px; line-height: 1.3; }
  .spur { left: 16px; right: 16px; bottom: 14px; }
  .spur-punkte { font-size: 8.5px; letter-spacing: .02em; }
  .hinweis { font-size: 13px; bottom: 62px; }
  .ziel { bottom: 70px; }
  .ziel-knopf { font-size: 15px; padding: 13px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ziel-punkt { animation: none; }
}
