/* Schriften liegen lokal (fonts/), keine Verbindung zu Google Fonts. Lizenz: SIL Open Font License */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/inter-latin-var.woff2) format('woff2');
}
@font-face {
  font-family: 'Sora'; font-style: normal; font-weight: 200 600; font-display: swap;
  src: url(fonts/sora-latin-var.woff2) format('woff2');
}

:root {
  --bg: #03040c;
  --text: #eef1ff;
  --muted: rgba(225, 230, 255, 0.6);
  --glass: rgba(12, 14, 32, 0.45);
  --line: rgba(255, 255, 255, 0.13);
  --glow: rgba(140, 120, 255, 0.55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
canvas#galaxy { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.page { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; }

.wordmark {
  font-family: Sora, Inter, sans-serif;
  font-weight: 200;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 13px;
  white-space: nowrap;
}
.wordmark b { font-weight: 600; }

.sso {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 52px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06); color: var(--text);
  font: 500 15px Inter, sans-serif; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.sso:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 10px 34px -12px var(--glow);
}
.sso:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sso svg { width: 20px; height: 20px; flex: none; }

.legal { font-size: 12px; color: var(--muted); }
.legal a { color: inherit; text-decoration: none; }
.legal a:hover { color: var(--text); }

/* Schwarzes Loch ersetzt den Mauszeiger, Bedienelemente behalten ihren Zeiger */
@media (pointer: fine) {
  .lens-cursor, .lens-cursor * { cursor: none; }
  .lens-cursor button, .lens-cursor a { cursor: pointer; }
}

/* Intro: Zoom ins Oktopus-Auge */
.page { transition: opacity 0.9s ease; }
.intro-pending .page { opacity: 0; }
#intro { position: fixed; inset: 0; z-index: 15; overflow: hidden; cursor: pointer; }
.intro-bg { position: absolute; inset: 0; background: var(--bg); }
.intro-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124, 223, 191, 0.16), rgba(124, 223, 191, 0) 45%);
}
.intro-logo { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.intro-logo svg { display: block; }
.intro-photo {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  background-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.intro-skip {
  position: absolute; left: 0; right: 0; bottom: 24px; text-align: center;
  font-size: 12px; letter-spacing: 0.08em; color: var(--muted);
}

/* Hilfe-Fenster */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.hilfe {
  margin: auto; width: 100%; max-width: min(520px, calc(100% - 32px));
  padding: 32px 30px 28px; border: 1px solid var(--line); border-radius: 20px;
  background: rgba(10, 16, 36, 0.92); color: var(--text);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.hilfe::backdrop { background: rgba(2, 6, 18, 0.6); }
.lens-cursor .hilfe, .lens-cursor .hilfe * { cursor: auto; }
.lens-cursor .hilfe button, .lens-cursor .hilfe a { cursor: pointer; }
.hilfe-label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: #7cdfbf; }
.hilfe h2 { font: 300 24px/1.25 Sora, Inter, sans-serif; margin: 10px 0 8px; text-wrap: balance; }
.hilfe-liste dt { font-weight: 600; font-size: 15px; margin-top: 18px; }
.hilfe-liste dd { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 4px; }
.hilfe-liste a { color: #7cdfbf; text-underline-offset: 3px; }
.hilfe-zu {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 999px;
  background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer;
}
.hilfe-zu:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.hilfe-kopieren {
  margin-left: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: none; color: var(--text); font: 500 12px Inter, sans-serif; cursor: pointer;
}
.hilfe-kopieren:hover { border-color: rgba(124, 223, 191, 0.55); }
.hilfe :focus-visible { outline: 2px solid #7cdfbf; outline-offset: 2px; }

/* Demo-Hinweis nach Klick */
.demo {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity 0.6s;
}
.demo.on { opacity: 1; pointer-events: auto; }
.demo div { text-align: center; padding: 24px; max-width: 420px; }
.demo p { color: var(--muted); margin: 10px 0 22px; line-height: 1.5; }
.demo.white { background: #fff; color: #1c2333; transition: opacity 0.25s; }
.demo.white h2 { font: 500 20px/1.3 Inter, sans-serif; margin-top: 16px; }
.demo.white p { color: #5a6375; font-size: 14px; }
.demo.white button { border-color: #d0d5dd; color: #1c2333; }
.demo-logo svg { width: 40px; height: 40px; }
.demo button {
  background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 10px 22px; font: 500 14px Inter, sans-serif; cursor: pointer;
}

/* Umschalter nur für die Vorschau */
.preview-nav {
  position: fixed; right: 16px; top: 16px; z-index: 30;
  display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line);
  font: 12px Inter, sans-serif; color: var(--muted);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.preview-nav span { padding: 0 8px; }
.preview-nav a {
  color: var(--text); text-decoration: none; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 999px;
}
.preview-nav a.on { background: rgba(255, 255, 255, 0.18); }
