:root {
  --bg: #0a0f2c;
  --text: #ffffff;
  --glow: #00ccff;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

canvas#stars {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.moon {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 40% 40%, #fff, #ccc);
  border-radius: 50%;
  position: fixed;
  top: 20px;
  left: -150px;
  animation: moonMove 90s linear infinite;
  box-shadow: 0 0 60px #ffffff99;
  z-index: 1;
}

@keyframes moonMove {
  0% { left: -150px; }
  50% { left: 100vw; }
  100% { left: -150px; }
}

.lang {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
}

.lang a {
  color: #fff;
  padding: 6px 12px;
  background: var(--glow);
  border-radius: 10px;
  text-decoration: none;
  margin-left: 5px;
  font-weight: bold;
}

.lang a:hover {
  background: #fff;
  color: #0a0f2c;
}

main {
  position: relative;
  z-index: 2;
  padding: 100px 20px 60px;
  text-align: center;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
}

p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.buttons a {
  display: inline-block;
  margin: 10px;
  padding: 12px 25px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: #111;
  box-shadow: 0 0 12px var(--glow);
  transition: all 0.2s ease;
}

.buttons a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px var(--glow), 0 0 35px var(--glow);
}

.buttons a:active {
  background: var(--glow);
  color: #000;
  box-shadow: inset 0 0 20px #fff, 0 0 40px var(--glow);
}

.admin-button {
  background: #000;
  border: 2px solid #00ffff;
  color: #00ffff;
  padding: 12px 25px;
  border-radius: 999px;
  font-weight: bold;
  box-shadow: 0 0 12px #00ffff;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
}

.admin-button:hover {
  background: #00ffff;
  color: #000;
}

.player {
  background: #ffffff22;
  padding: 15px;
  margin: 30px auto;
  border-radius: 15px;
  max-width: 300px;
}

footer {
  text-align: center;
  font-size: 0.8rem;
  padding: 20px;
  color: #aaa;
  z-index: 2;
  position: relative;
}

footer a {
  color: #aaa;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

.features {
  margin-top: 40px;
  background: #ffffff11;
  padding: 20px;
  border-radius: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.features ul {
  list-style: none;
  padding-left: 0;
}

.features li {
  margin: 10px 0;
  font-size: 1.1em;
}

/* === Registrierung === */
body.register {
  background: #050505;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

.register-box {
  background: #111;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.25);
  width: 90%;
  max-width: 460px;
  backdrop-filter: blur(14px);
}

.register-box h2 {
  text-align: center;
  font-size: 2rem;
  color: #00ffff;
  margin-bottom: 1.5rem;
}

.register-box label {
  color: #aafaff;
  font-weight: bold;
  display: block;
  margin-bottom: 0.4rem;
}

.register-box input,
.register-box select {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: none;
  background: #222;
  color: white;
  font-size: 1rem;
}

.register-box input:focus {
  outline: 2px solid #00ffff;
}

.register-box button {
  width: 100%;
  padding: 1rem;
  background: transparent;
  color: #00ffff;
  border: 2px solid #00ffff;
  border-radius: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
}

.register-box button:hover {
  background: #00ffff;
  color: #000;
}

