/* =========================
   GLOBAL
========================= */

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

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f7f9fc;
  color: #222;
  line-height: 1.6;
}

/* =========================
   HEADER / NAVIGATION
========================= */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  font-size: 20px;
}

.header nav a {
  margin-left: 18px;
  text-decoration: none;
  color: #444;
  font-weight: 500;
}

.header nav a:hover {
  color: #5b7cfa;
}

/* =========================
   HERO (STARTSEITE)
========================= */

.hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #5b7cfa, #6dd5ed);
  color: white;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 14px;
}

.hero p {
  font-size: 18px;
  opacity: 0.95;
}

.hero-buttons {
  margin-top: 28px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  margin: 8px;
  transition: 0.2s ease;
}

.primary {
  background: white;
  color: #5b7cfa;
}

.primary:hover {
  background: #eef2ff;
}

.secondary {
  background: rgba(255,255,255,0.25);
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}

.secondary:hover {
  background: rgba(255,255,255,0.4);
}

.btn.disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* =========================
   CARDS (STARTSEITE)
========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
  padding: 60px 30px;
  max-width: 1100px;
  margin: auto;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card h3 {
  margin-bottom: 10px;
}

/* =========================
   SEITEN-HEADER
========================= */

.page-header {
  text-align: center;
  padding: 50px 20px;
}

.page-header h1 {
  margin-bottom: 10px;
}

/* =========================
   SPIELE
========================= */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 40px 30px;
  max-width: 1100px;
  margin: auto;
}

.game-card {
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
}

.game-card h3 {
  margin-bottom: 10px;
}

.game-card p {
  flex-grow: 1;
  color: #555;
}

.game-card.locked {
  opacity: 0.6;
}

/* =========================
   FOOTER
========================= */

.footer {
  text-align: center;
  padding: 30px;
  font-size: 14px;
  color: #666;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */

@media (max-width: 768px) {

  .header {
    flex-direction: column;
    gap: 10px;
  }

  .header nav a {
    margin: 0 10px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

}
