:root {
  --bg: #000000;
  --fg: #f2f0ea;
  --muted: #8d8b85;
  --line: rgba(242, 240, 234, 0.12);
  --a: #c9d6ff;
  --b: #e8ffb8;
  --c: #ffd2c2;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }

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

.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.orbs { position: absolute; inset: 0; pointer-events: none; filter: blur(70px); opacity: 0.55; }
.orb { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.orb.one   { width: 46vmax; height: 46vmax; background: var(--a); left: -10vmax; top: -12vmax; animation: drift1 22s ease-in-out infinite alternate; opacity: .35; }
.orb.two   { width: 34vmax; height: 34vmax; background: var(--b); right: -8vmax; top: 20vh; animation: drift2 26s ease-in-out infinite alternate; opacity: .22; }
.orb.three { width: 40vmax; height: 40vmax; background: var(--c); left: 25vw; bottom: -22vmax; animation: drift3 30s ease-in-out infinite alternate; opacity: .25; }

@keyframes drift1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vw, 18vh) scale(.85); } }
@keyframes drift3 { to { transform: translate(-14vw, -20vh) scale(1.1); } }

.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .07; pointer-events: none;
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); }
  50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-1%); }
}

header.top, footer.bottom {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px clamp(16px, 4vw, 48px);
  font-size: 13px; color: var(--muted);
}

.status { display: inline-flex; align-items: center; gap: 10px; letter-spacing: .02em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--b); box-shadow: 0 0 0 0 rgba(232,255,184,.6); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232,255,184,.55); }
  70% { box-shadow: 0 0 0 12px rgba(232,255,184,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,255,184,0); }
}

main.center {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 0 16px;
}

.mark { width: 64px; height: 64px; margin-bottom: 28px; opacity: 0; animation: rise .9s .1s cubic-bezier(.2,.7,.2,1) forwards; }

.wordmark {
  font-size: clamp(44px, 11vw, 132px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: .95;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.wordmark span { display: inline-block; opacity: 0; transform: translateY(40%); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.wordmark .gap { width: .28em; }

@keyframes rise { to { opacity: 1; transform: none; } }

.line {
  margin-top: 28px;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  opacity: 0; animation: rise 1s 1.1s ease forwards;
}
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.5em; color: var(--fg); }
.rotator b { grid-area: 1 / 1; font-weight: 500; transform: translateY(110%); animation: cycle 9s infinite; }
.rotator b:nth-child(2) { animation-delay: 3s; }
.rotator b:nth-child(3) { animation-delay: 6s; }
@keyframes cycle {
  0%   { transform: translateY(110%); }
  5%, 30% { transform: translateY(0); }
  35%, 100% { transform: translateY(-110%); }
}

footer.bottom a { text-decoration: none; margin-left: 20px; }
footer.bottom a:hover { color: var(--fg); }

/* ---------- Rechtsseiten ---------- */

.legal { max-width: 720px; margin: 0 auto; padding: 48px 16px 96px; }
.legal .back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 48px; }
.legal .back:hover { color: var(--fg); }
.legal h1 { font-size: clamp(32px, 6vw, 48px); letter-spacing: -0.03em; font-weight: 600; margin-bottom: 40px; }
.legal h2 { font-size: 17px; font-weight: 600; margin: 36px 0 10px; }
.legal p, .legal li { color: #c8c6c0; font-size: 15px; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin-top: 8px; }
.legal .note { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .mark, .wordmark span, .line { opacity: 1; transform: none; }
  .rotator b:not(:first-child) { display: none; }
  .rotator b:first-child { transform: none; }
}

@media (max-width: 520px) {
  footer.bottom { flex-direction: column; gap: 10px; }
  footer.bottom a { margin: 0 10px; }
}
