/* =========================================
   Grundlayout
========================================= */
body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background: #f7f7f7;
  color: #333;
  font-size: 1.8rem;
}

h1 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2.4rem;
}

/* =========================================
   Boxen
========================================= */
#metaBox, #umDieBox, #saetzeBox, #aktionenBox {
  background: white;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

/* =========================================
   Meta-Infos
========================================= */
.meta-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 12px 0;
}

.meta-row label {
  width: 150px;
  font-weight: bold;
  font-size: 1.6rem;
}

.meta-row input,
.meta-row select {
  font-size: 1.6rem;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #aaa;
}

/* =========================================
   Spielerbox (Scrollbox)
========================================= */
#spielerBox {
  width: 60%;
  max-height: 550px;
  margin: 0 auto 25px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  background: white;
}

.spieler-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  font-size: 2.0rem;
}

.spieler-name {
  flex: 0.4; /* genug Platz für Checkboxen */
  font-weight: 600;
}

.team-checks {
  display: flex;
  gap: 20px;
  white-space: nowrap; /* verhindert Umbruch */
}

.team-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.8rem;
}

.team-checks input[type="checkbox"] {
  width: 24px;
  height: 24px;
  transform: scale(1.2);
}

/* =========================================
   Sätze
========================================= */
.satz-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 12px 0;
}

.satz-row label {
  width: 150px;
  font-weight: bold;
  font-size: 1.6rem;
}

.satz-row input {
  width: 100px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #aaa;
  font-size: 1.6rem;
}

/* =========================================
   Buttons
========================================= */
#aktionenBox {
  text-align: center;
}

#aktionenBox button {
  padding: 18px 25px;
  font-size: 1.8rem;
  border: none;
  border-radius: 8px;
  background: #0078d4;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 80%;
  max-width: 400px;
}

#aktionenBox button:hover {
  background: #005fa3;
}

/* =========================================
   Mobile Optimierung
========================================= */
@media (max-width: 600px) {

  body {
    font-size: 1.6rem;
  }

  h1 {
    font-size: 2rem;
  }

  #spielerBox {
    width: 60%;
    max-height: 500px;
  }

  .meta-row label,
  .satz-row label {
    width: 120px;
  }

  #aktionenBox button {
    width: 100%;
    font-size: 1.6rem;
    padding: 20px;
  }
}
