/* Grundlayout */
body {
  font-family: 'Roboto', sans-serif;
  background: #f0f0f0;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #912f44;
}

/* Teams / Scoreboard */
.scoreboard {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.team {
  background: white;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.team h2 {
  margin: 0;
  color: #912f44;
}

.team p {
  font-size: 1.5em;
  margin: 5px 0;
}

/* Spielfeld mit Buttons */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

/* Spielfeld mit Buttons */
.grid-console {
  display: grid;
  grid-template-columns: repeat(3);
  gap: 0px;
  max-width: 500px;
  margin: auto;
}

.button {
  background: #912f44;
  color: white;
  font-size: 22px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  height: 80px;
  cursor: pointer;
}

.button.played {
  background: #bbb;
  color: #444;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(0,0,0,.6);
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  max-width: 700px;
  width: 90%;
  text-align: center;
  max-height: 99%;
  overflow-y: auto;
  box-sizing: border-box;
}

.rules-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  max-width: 700px;
  width: 90%;
  text-align: left;
  max-height: 99%;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Antworten (zweispaltig, spaltenweise von oben nach unten) */
.answers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
  align-items: start;   /* immer oben beginnen */
}

.answer {
  background: #912f44;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.answer.revealed {
  background: #333;
}

/* Team-Auswahl Buttons */
.team-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px; /* Abstand zwischen Buttons */
  justify-content: center; /* Buttons horizontal zentrieren */
}

.team-btn {
  padding: 5px 10px;
  text-align: center;       /* Text im Button zentrieren */
  white-space: normal;      /* Zeilenumbruch erlauben */
  word-break: break-word;   /* Lange Wörter umbrechen */
  display: inline-block;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #f0f0f0;
  cursor: pointer;
}

.team-btn:hover {
  background-color: #d0d0d0;
}

.close {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  background: crimson;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.reset-btn, .rules-btn, .home-btn {
  margin: 20px auto;
  display: block;
  padding: 10px 20px;
  background: #912f44;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* Eingabefeld und Auswahltasten */
.input-area {
  margin-top: 20px;
}

.team-select-btns {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.team-choice {
  background: #912f44;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.team-choice.active {
  background: #333;
}

input[type=text] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 60%;
}

.reveal-btn {
  padding: 8px 12px;
  border: none;
  background: #912f44;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 5px;
}


/* Hover-Effekt */
.button:hover, .reset-btn:hover, .rules-btn:hover, .home-btn:hover {
    background-color: #a04b5c;
    transform: scale(1.05);
}

.home-btn {
  margin: 20px auto;
  display: block;
  padding: 10px 20px;
  background: #912f44;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.control-buttons {
  display: flex;
  justify-content: center; /* zentriert horizontal */
  gap: 0px;               /* Abstand zwischen den Buttons */
  margin-bottom: 20px;     /* optional: Abstand nach unten */
}

.control-buttons button {
  padding: 8px 16px;       /* kompaktere Buttons */
  font-size: 14px;
}