/* === Grundlayout === */
body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(to bottom, #293133, #000);
  color: #001a00;
  overflow-x: hidden;
}

/* === Header === */
header {
  background: #111;
  padding: 3px;
  text-align: center;
  box-shadow: 0 0 30px #0ff;
}

header h1 {
  color: #0ff;
  font-size: 2.2em;
  text-shadow: 0 0 20px #0ff, 0 0 2px #0ff;
  letter-spacing: 2px;
}

/* === Abschnittsstruktur === */
section {
  padding: 6px 40px;
  text-align: center;
}

h2 {
  font-size: 2em;
  color: #0ff;
  text-shadow: 0 0 8px #0ff;
  margin-bottom: 2px;
}

p {
  font-size: 1.1em;
  color: #ccc;
  max-width: 700px;
  margin: auto;
}

/* === Button-Gruppe === */
.button-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 40px auto;
  max-width: 950px;
  justify-items: stretch;
}

@media (min-width: 600px) {
  .button-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .button-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === Neon-Button === */
.neon-button {
  width: 100%;
  min-height: 60px;
  padding: 15px 20px;
  font-size: 1.2em;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #111;
  color: #0ff;
  border: 2px solid #0ff;
  border-radius: 12px;
  box-shadow: 0 0 10px #0ff, inset 0 0 10px #0ff;
  transition: 0.3s ease;
  touch-action: manipulation;
}

.neon-button:hover {
  background-color: #0ff;
  color: #000;
  box-shadow: 0 0 20px #0ff, inset 0 0 20px #0ff;
}

/* === Footer === */
footer {
  background-color: #111;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9em;
  color: #aaa;
}

footer h3 {
  color: #0ff;
  text-shadow: 0 0 5px #0ff;
  margin-top: 30px;
}

footer a {
  color: #0ff;
  text-decoration: none;
}

footer a:hover {
  text-shadow: 0 0 5px #0ff;
}

/* === Sonstige Elemente === */
hr {
  margin: 30px auto;
  width: 60%;
  border: 1px solid #0ff;
}

.datenschutz-link {
  font-size: 1em;
}

#matrix {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

/* === Tabelle === */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px auto;
  max-width: 95%;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

td, th {
  text-align: center;
  padding: 6px;
  word-break: break-word;
  white-space: nowrap;
}

label {
  display: inline-block;
  width: 100%;
  max-width: 50px;
  height: 50px;
  border: 2px solid #0ff;
  border-radius: 8px;
  box-shadow: 0 0 8px #0ff;
  background-color: #111;
  color: #0ff;
  text-align: center;
  line-height: 46px;
  cursor: pointer;
  font-size: 1.1em;
}

input[type="radio"] {
  display: none;
}

/* === Mobile Optimierung === */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.6em;
  }

  section {
    padding: 6px 20px;
  }

  table {
    font-size: 0.85em;
  }

  td, th {
    padding: 4px;
  }

  label {
    max-width: 36px;
    height: 36px;
    line-height: 32px;
    font-size: 0.9em;
  }

  .neon-button {
    font-size: 1em;
    min-height: 45px;
    padding: 10px;
  }

  .button-group {
    gap: 12px;
    margin: 20px auto;
  }
}
td:first-child,
td:last-child,
th:first-child,
th:last-child {
  font-weight: bold;
  color: #0ff;
  text-shadow: 0 0 6px #0ff;
  white-space: nowrap;
}
