/* ============================================================
   DIE STARTSEITE
   Nur eine Auswahl: welches Spiel soll es sein?
   ============================================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 18px 60px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -10%, #1a1035 0%, transparent 60%),
    #07070f;
  color: #e8e8f5;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

header {
  padding: 60px 0 34px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff 30%, #9fb0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.untertitel {
  margin: 10px 0 0;
  color: #9a9ab8;
  font-size: 15px;
}

main {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------------- Die Spiel-Kacheln ---------------- */

.spiel-kachel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid #2a2a45;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.spiel-kachel:hover,
.spiel-kachel:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.spiel-kachel:active {
  transform: translateY(0);
}

.spiel-kachel.rakete:hover { border-color: #8fa4ff; }
.spiel-kachel.fresser:hover { border-color: #ffd447; }
.spiel-kachel.huepfer:hover { border-color: #8dffc8; }
.spiel-kachel.trainer:hover { border-color: #ffd447; }
.spiel-kachel.viren:hover { border-color: #7ee787; }

.bild {
  font-size: 52px;
  line-height: 1;
}

.inhalt {
  display: block;
}

.titel {
  display: block;
  font-size: 24px;
  font-weight: 700;
}

.text {
  display: block;
  margin-top: 4px;
  color: #9a9ab8;
  font-size: 14.5px;
}

.marken {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.marke {
  padding: 3px 10px;
  border: 1px solid #3a3a5c;
  border-radius: 999px;
  color: #c8c8dd;
  font-size: 12px;
}

.pfeil {
  color: #6a6a88;
  font-size: 20px;
}

.spiel-kachel:hover .pfeil { color: #e8e8f5; }

/* ---------------- Fußzeile ---------------- */

footer {
  max-width: 720px;
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid #2a2a45;
  text-align: center;
  color: #9a9ab8;
  font-size: 13.5px;
}

footer p { margin: 0; }

@media (max-width: 560px) {
  header { padding: 34px 0 24px; }

  .spiel-kachel {
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 18px;
  }

  .bild { font-size: 40px; }
  .titel { font-size: 20px; }
  .pfeil { display: none; }
}

/* ---------------- Verwaltung ----------------
   Nur sichtbar, wenn die Seite mit ?admin aufgerufen wird.
   Gebaut von gemeinsam/verwaltung.js.                      */

.verwaltung {
  max-width: 620px;
  margin: 30px auto 0;
  padding: 18px 20px;
  border: 1px solid #4a3a2a;
  border-radius: 14px;
  background: rgba(255, 200, 120, 0.05);
}

.verwaltung h2 { margin: 0 0 6px; font-size: 18px; color: #ffd447; }

.verwaltung .hinweis {
  margin: 0 0 14px;
  color: #8a8aa8;
  font-size: 13px;
}

.verwaltung-zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.verwaltung input {
  flex: 1 1 140px;
  padding: 9px 12px;
  border: 1px solid #3a3a5c;
  border-radius: 8px;
  background: #12122a;
  color: #e8e8f5;
  font-family: inherit;
  font-size: 15px;
}

.verwaltung-knopf {
  flex: 1 1 auto;
  padding: 10px 14px;
  border: 1px solid #3a3a5c;
  border-bottom-width: 3px;
  border-radius: 9px;
  background: #1a1a2e;
  color: #e8e8f5;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.verwaltung-knopf:hover { border-color: #ffd447; }

.verwaltung-meldung {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}

.verwaltung-meldung.gut { color: #7dff5e; }
.verwaltung-meldung.schlecht { color: #ff8f8f; }

.verwaltung-liste {
  margin: 6px 0 0;
  color: #8a8aa8;
  font-size: 13px;
}
