@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Nunito:wght@500;700;800;900&display=swap');

:root {
  --bg: #14082b;
  --bg2: #24104a;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.16);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.65);
  --accent: #ffcc33;
  --pink: #ff4d8d;
  --cyan: #3ee6ff;
  --green: #2ee59d;
  --red: #ff4d6d;
  --c0: #e21b3c; /* Kahoot-artige Antwortfarben */
  --c1: #1368ce;
  --c2: #d89e00;
  --c3: #26890c;
  --c4: #864cbf;
  --c5: #0aa3a3;
  --radius: 18px;
  --font-display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 0.8em 1.3em;
  font-weight: 900;
  background: var(--panel-strong);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.08s, filter 0.15s, box-shadow 0.08s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #2a1600; }
.btn.pink { background: var(--pink); }
.btn.green { background: var(--green); color: #00301e; }
.btn.red { background: var(--red); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn.small { padding: 0.45em 0.8em; font-size: 0.9em; border-radius: 10px; }

input.field, select.field, textarea.field {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.7em 0.9em;
  outline: none;
}
input.field:focus, select.field:focus, textarea.field:focus { border-color: var(--accent); }

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 0%, #3b1580 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, #5a0f5c 0%, transparent 55%), var(--bg);
}
.animated-bg .blob {
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: blob 22s ease-in-out infinite alternate;
}
.animated-bg .blob:nth-child(1) { background: #7b2cbf; left: -10vmax; top: -10vmax; }
.animated-bg .blob:nth-child(2) { background: #ff4d8d; right: -15vmax; top: 20vh; animation-duration: 28s; animation-delay: -6s; }
.animated-bg .blob:nth-child(3) { background: #1368ce; left: 20vw; bottom: -20vmax; animation-duration: 25s; animation-delay: -12s; }
@keyframes blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 6vh) scale(1.15); }
  100% { transform: translate(-6vw, -4vh) scale(0.9); }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #000c;
  padding: 0.7em 1.2em;
  border-radius: 12px;
  font-weight: 800;
  z-index: 1000;
  animation: toastIn 0.25s ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } }

@media (prefers-reduced-motion: reduce) {
  .animated-bg .blob { animation: none; }
}
