/* Wartenummern: eine Datei für alle Seiten. Systemschrift, keine Dateien aus dem Netz. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
.klein {
  font-size: 14px;
  color: #5b6472;
}
.meldung {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-weight: 600;
}
.meldung.fehler {
  color: #b42318;
}
.meldung.ok {
  color: #067647;
}

/* ---------- Anmelden ---------- */
.seite-anmelden {
  background: #f2f4f7;
  color: #1d2129;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.anmelden {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 2px 12px rgba(16, 24, 40, 0.08);
}
.anmelden h1 {
  margin: 0 0 16px;
  font-size: 26px;
}
.anmelden form {
  display: grid;
  gap: 8px;
}
.anmelden input {
  padding: 12px;
  border: 1px solid #c4cad4;
  border-radius: 10px;
  font-size: 18px;
  width: 100%;
}
.anmelden button {
  margin-top: 8px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #0b5cad;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

/* ---------- Platz ---------- */
.seite-platz {
  background: #f2f4f7;
  color: #1d2129;
}
.kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #1d2129;
  color: #fff;
  font-size: 20px;
}
.leise {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 15px;
}
.platz {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 16px;
}
.aktuell,
.knoepfe,
.feld,
.klappe {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.06);
}
.aktuell {
  text-align: center;
}
.aktuell-titel {
  font-size: 15px;
  color: #5b6472;
}
.meine-nummer {
  font-size: 84px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.meine-nummer.frei {
  font-size: 48px;
  color: #98a2b3;
}
.andere {
  margin-top: 6px;
  color: #5b6472;
  font-size: 15px;
}
.gross {
  width: 100%;
  padding: 22px;
  border: 0;
  border-radius: 14px;
  background: #0b5cad;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}
.neben {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.neben button,
.einstellungen button,
.warnung {
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid #c4cad4;
  background: #fff;
  font-size: 17px;
  font-weight: 600;
}
.warnung {
  margin-top: 12px;
  color: #b42318;
  border-color: #f1b8b3;
}
.feld-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.feld-kopf h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.seiten {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.seite {
  padding: 6px 10px;
  border: 1px solid #c4cad4;
  border-radius: 8px;
  background: #fff;
}
.seite.aktiv {
  background: #1d2129;
  color: #fff;
}
.nummern {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.kachel {
  position: relative;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid #c4cad4;
  background: #fff;
  color: #1d2129;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0;
}
.kachel:disabled {
  opacity: 1;
}
.kachel.jetzt {
  background: #0b5cad;
  border-color: #0b5cad;
  color: #fff;
}
.kachel.aufgerufen {
  background: #e4e7ec;
  border-color: #e4e7ec;
  color: #7a8394;
}
.kachel.ausgekreuzt {
  background: repeating-linear-gradient(45deg, #fff, #fff 6px, #f2e4e2 6px, #f2e4e2 12px);
  color: #b42318;
  text-decoration: line-through;
}
.kachel small {
  position: absolute;
  right: 4px;
  bottom: 2px;
  font-size: 10px;
  font-weight: 700;
}
.legende {
  list-style: none;
  padding: 0;
  margin: 12px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
  color: #5b6472;
}
.probe {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid #c4cad4;
  margin-right: 6px;
  vertical-align: -2px;
}
.probe.jetzt {
  background: #0b5cad;
  border-color: #0b5cad;
}
.probe.aufgerufen {
  background: #e4e7ec;
}
.probe.ausgekreuzt {
  background: repeating-linear-gradient(45deg, #fff, #fff 3px, #f2b8b5 3px, #f2b8b5 6px);
}
.klappe summary {
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
}
.verlauf {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
  font-size: 15px;
  display: grid;
  gap: 4px;
}
.einstellungen {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.einstellungen label {
  display: grid;
  gap: 4px;
  font-size: 15px;
  color: #344054;
}
.einstellungen input,
.einstellungen select {
  padding: 10px;
  border: 1px solid #c4cad4;
  border-radius: 10px;
  font-size: 17px;
  width: 100%;
  background: #fff;
}
.zwei {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.verbindung {
  position: fixed;
  top: 10px;
  right: 10px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 15px;
  z-index: 20;
}
@media (min-width: 768px) {
  .nummern {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

/* ---------- Anzeige (Beamer, Fernseher) ---------- */
.seite-anzeige {
  background: #0d0f12;
  color: #f4f4f5;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.anzeige-kopf h1 {
  margin: 2vh 3vw 1vh;
  font-size: 5.5vh;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plaetze {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2vh 2vw;
  padding: 1vh 3vw;
  min-height: 0;
}
.kachel-platz {
  background: #1b1f26;
  border: 0.7vh solid #1b1f26;
  border-radius: 2.5vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.kachel-platz .name {
  font-size: 5vh;
  color: #c8ccd3;
}
.kachel-platz .zahl {
  font-size: 23vh;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kachel-platz.leer .zahl {
  color: #4b5260;
}
.kachel-platz.neu {
  border-color: #ffd43b;
  background: #2b2611;
}
.zuletzt {
  padding: 1.5vh 3vw 2.5vh;
  font-size: 4.5vh;
  color: #c8ccd3;
  white-space: nowrap;
  overflow: hidden;
}
.zuletzt-titel {
  margin-right: 2vw;
}
#zuletzt span + span {
  margin-left: 3vw;
}
.aufruf {
  position: fixed;
  left: 10vw;
  right: 10vw;
  top: 22vh;
  bottom: 22vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3vw;
  background: rgba(13, 15, 18, 0.95);
  border: 0.8vh solid #ffd43b;
  border-radius: 3vh;
  z-index: 10;
}
.aufruf-nummer {
  font-size: 30vh;
  font-weight: 800;
  color: #ffd43b;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.aufruf-pfeil {
  font-size: 15vh;
}
.aufruf-platz {
  font-size: 13vh;
  font-weight: 700;
}
.seite-anzeige .verbindung {
  font-size: 2.5vh;
}
.steuerung {
  position: fixed;
  right: 2vw;
  bottom: 2vh;
  display: flex;
  gap: 10px;
  z-index: 30;
}
.steuerung button {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #5b6472;
  background: #1b1f26;
  color: #f4f4f5;
  font-size: 16px;
}
.start {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2vh;
  z-index: 40;
  font-size: 3vh;
}
.start button {
  font-size: 5vh;
  padding: 2.5vh 5vw;
  border-radius: 2vh;
  border: 0;
  background: #ffd43b;
  color: #0d0f12;
  font-weight: 800;
}
