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

body {
  font-family: system-ui, sans-serif;
  padding: 2rem;

  /* Bildschirmfüllendes Hintergrundbild */
  background-color: #1a202c; /* Fallback-Farbe, falls das Bild noch lädt */
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), /* Leichtes Abdunkeln für besseren Kontrast */
    url("hintergrund.jpg");
  background-size: cover;         /* Füllt die gesamte Fläche ohne Verzerrung aus */
  background-position: center;    /* Zentriert das Bild */
  background-repeat: no-repeat;   /* Verhindert Kacheln */
  background-attachment: fixed;   /* Bild bleibt beim Scrollen ruhig stehen */

  /* Zentrierung der Button-Liste */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  margin-bottom: 1.5rem;
  color: #ffffff; /* Weiße Schrift hebt sich auf dunklerem Hintergrund besser ab */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); /* Sorgt auch auf hellen Bildstellen für Lesbarkeit */
  text-align: center;
}



main {
  width: 95%;
  max-width: 1800px;
}


.button-grid {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  justify-content: center; /* Zentriert die Spalten, falls weniger als 10 Buttons da sind */

  /* Maximal 10 Buttons pro Zeile */
  grid-template-columns: repeat(
    auto-fit,
    minmax(max(130px, calc((100% - 9 * 0.75rem) / 10)), 1fr)
  );
}

.btn {
  display: flex;
  align-items: center;     /* Text im Button vertikal zentriert */
  justify-content: center; /* Text im Button horizontal zentriert */
  text-align: center;
  min-height: 56px;
  padding: 0.75rem 0.5rem;
  background-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}
