:root {
  --bg: #05060a;
  --fg: #e8ecf4;
  --muted: #8a93a6;
  --accent: #7cf3d0;
  --panel: rgba(12, 14, 22, 0.55);
  --border: rgba(255, 255, 255, 0.1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
}

/* ---------- Startseite ---------- */

.stage {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

#canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.brand {
  position: fixed;
  top: 28px;
  left: 32px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: difference;
}

.brand__suffix {
  font-weight: 400;
  color: var(--muted);
}

.scenes {
  position: fixed;
  top: 22px;
  right: 24px;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scenes button {
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.scenes button:hover { color: var(--fg); }

.scenes button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--accent);
}

.scenes button:focus-visible,
.legal a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.caption {
  position: fixed;
  left: 50%;
  bottom: 46px;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 6px);
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.caption.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.legal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
}

.legal a {
  color: var(--muted);
  text-decoration: none;
}

.legal a:hover { color: var(--fg); text-decoration: underline; }

@media (max-width: 600px) {
  .brand { top: 18px; left: 16px; font-size: 18px; }
  .scenes { top: auto; bottom: 64px; right: 50%; transform: translateX(50%); }
  .caption { bottom: 116px; }
}

/* ---------- Rechtstexte ---------- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 80px;
  line-height: 1.65;
  font-size: 16px;
}

.doc a { color: var(--accent); }

.doc .back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  text-decoration: none;
}

.doc h1 { font-size: 32px; margin: 0 0 24px; }
.doc h2 { font-size: 19px; margin: 36px 0 8px; }
.doc h3 { font-size: 16px; margin: 24px 0 4px; }
.doc p, .doc ul { margin: 0 0 12px; color: #c9d0dc; }
.doc .small { font-size: 13px; color: var(--muted); }
