/* =====================================================================
   Quiztival · Reservierung
   Sieht aus wie quizlabor.de/reservierung: Roboto Condensed, Schwarz
   auf Weiß, Orange und Gelb als Farben, schlichte Kästen mit Rand.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed:400,400italic,700&display=swap');

:root {
  --schwarz:  #000;
  --weiss:    #fff;
  --orange:   #f90;
  --orange-d: #e29600;
  --gelb:     #ff9;
  --rot:      #f30;
  --gruen:    #390;
  --blau:     #31839d;
  --braun:    #9d4f00;
  --grau:     #777;
  --hell:     #eee;
  --linie:    #ccc;

  --raum-a:   var(--braun);   /* Textfarbe Raum A */
  --raum-b:   var(--blau);    /* Textfarbe Raum B */

  --schrift:  'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--schwarz);
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.45;
}

a { color: var(--braun); }
a:hover { color: var(--schwarz); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--schwarz);
}

/* --- Kopf ---------------------------------------------------------- */

.kopf {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 16px 18px;
}

.logo { display: inline-block; margin-bottom: 10px; }
.logo img { height: 40px; width: auto; display: block; }

.zurueck {
  display: inline-block;
  font-size: 13px;
  color: var(--grau);
  text-decoration: none;
  margin-bottom: 14px;
}
.zurueck:hover { color: var(--schwarz); text-decoration: underline; }

.kopf h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
}

.untertitel { margin: 4px 0 0; font-size: 16px; }

.meta { margin: 8px 0 0; padding: 0; font-size: 14px; color: var(--grau); }
.meta span + span::before { content: ' · '; }

/* --- Hinweiskästen --------------------------------------------------
   Wie auf der Reservierungsseite: einfacher Rand, 10px Luft, kein Radius. */

.hinweis, .fehler, .warteschild, .sackgasse, .erfolg, .eingang, .abgesagt {
  border: 1px solid var(--linie);
  padding: 10px 12px;
  margin: 0 0 18px;
  font-size: 14px;
}
.hinweis strong { display: block; margin-bottom: 2px; }

.fehler       { border-color: var(--rot); }
.erfolg       { border-color: var(--gruen); }
.eingang      { border-color: var(--orange); background: #fffbe6; }
.warteschild,
.sackgasse    { border-color: var(--orange); background: #fffbe6; }
.abgesagt     { border-color: var(--rot); }

.erfolg h2, .eingang h2, .abgesagt h2 {
  border: 0; padding: 0; margin: 0 0 4px; font-size: 17px;
}
.erfolg p, .eingang p, .abgesagt p { margin: 0 0 6px; }
.erfolg p:last-child, .eingang p:last-child, .abgesagt p:last-child { margin-bottom: 0; }

/* --- Erklärung ------------------------------------------------------ */

.erklaerung { margin-bottom: 22px; }

/* --- Programmreihe: die sechs Quizze mit Bild und Stand ------------------ */

.programm { margin-bottom: 26px; }
.programm h2 { margin: 0 0 12px; }
.programm-reihe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.kachel { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kachel-bild { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; display: block;
               border-top: 4px solid var(--linie); }
.kachel.raum-a .kachel-bild { border-top-color: var(--raum-a); }
.kachel.raum-b .kachel-bild { border-top-color: var(--raum-b); }
.kachel-bild.leer { background: var(--gelb); display: flex; align-items: center; justify-content: center;
                    font-weight: 700; font-size: 22px; color: var(--orange-d); }
.kachel-block { margin-top: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--grau); }
.kachel-titel { font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.kachel-stand { font-size: 13px; font-style: italic; color: var(--grau); }
.kachel.voll .kachel-stand { color: var(--rot); font-style: normal; }
.kachel.voll .kachel-bild { filter: grayscale(1); opacity: 0.7; }
@media (max-width: 760px) { .programm-reihe { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .programm-reihe { grid-template-columns: repeat(2, 1fr); } }
.schritte-erklaert { margin: 0; padding-left: 1.3em; }
.schritte-erklaert li { margin-bottom: 4px; }

/* --- Fortschritt (von JS eingesetzt) -------------------------------- */

.fortschritt {
  display: flex;
  gap: 3px;
  margin: 0 0 14px;
  list-style: none;
  padding: 0;
}
.fortschritt li { flex: 1; height: 5px; background: var(--hell); }
.fortschritt li.erledigt { background: var(--orange); }
.fortschritt li.jetzt    { background: var(--schwarz); }

/* --- Schritte ------------------------------------------------------- */

.schritt {
  border: 1px solid var(--linie);
  padding: 14px 16px 16px;
  margin: 0 0 16px;
  min-inline-size: 0;   /* fieldset darf schrumpfen */
}

/* Mit Schrittführung ist immer nur ein Schritt sichtbar; ohne JS und
   auf der Änderungsseite stehen alle untereinander. */
.js [data-wizard] .schritt { display: none; }
.js [data-wizard] .schritt.aktiv { display: block; }

.schritt legend {
  font-size: 18px;
  font-weight: 700;
  padding: 0 6px;
}
.schritt legend .nr::after { content: '.'; }
.schritt legend .zeit {
  font-weight: 400;
  font-size: 14px;
  color: var(--grau);
  margin-left: 6px;
}

.schritt-frage { margin: 6px 0 12px; }

/* --- Formularfelder -------------------------------------------------- */

.felder {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
  margin-top: 8px;
}
.feld-breit { grid-column: 1 / -1; }

.feld { display: block; }
.feld .label { display: block; font-weight: 700; margin-bottom: 3px; }
.optional { font-weight: 400; color: var(--grau); }

.feld input, .feld textarea, .auswahl {
  width: 100%;
  background: var(--weiss);
  border: 1px solid #999;
  border-radius: 0;
  color: var(--schwarz);
  font: inherit;
  font-size: 15px;
  padding: 7px 8px;
}
.feld input:focus, .feld textarea:focus, .auswahl:focus {
  outline: 2px solid var(--orange);
  outline-offset: 0;
}
.feld input.ungueltig, .feld textarea.ungueltig { border-color: var(--rot); }

/* Kursiver Hinweis unter dem Feld — wie auf der Reservierungsseite. */
.hilfe {
  display: block;
  font-size: 12px;
  font-style: italic;
  color: var(--grau);
  margin-top: 3px;
}
.hilfe.zentriert { text-align: center; }
.feld .fehlertext { display: block; font-size: 12px; color: var(--rot); margin-top: 3px; }
.wahlfehler { font-size: 14px; color: var(--rot); margin: 10px 0 0; }

/* --- Quizauswahl ----------------------------------------------------- */

.quizwahl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quizkarte { position: relative; display: block; cursor: pointer; }

.quizkarte input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}

/* Die Karte ist eine gelbe Zeile wie eure Veranstaltungsliste. */
.karte-inhalt {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 3px;
  background: var(--gelb);
  border: 2px solid var(--gelb);
  padding: 10px 12px;
}
.quizkarte:hover .karte-inhalt { border-color: var(--orange); }

.karte-inhalt .raum {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.raum-a .karte-inhalt .raum { color: var(--raum-a); }
.raum-b .karte-inhalt .raum { color: var(--raum-b); }

/* Mit Bild: Bild links, Text rechts — die Verfügbarkeit bleibt unten über die ganze Breite. */
.karte-inhalt { flex-flow: row wrap; align-content: space-between; }
.karte-bild { width: 88px; height: 88px; flex: none; object-fit: cover; display: block; margin-right: 12px; }
.karte-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.karte-inhalt .verfuegbarkeit { flex-basis: 100%; }
.karte-inhalt .titel { font-size: 17px; font-weight: 700; line-height: 1.2; }
.karte-inhalt .beschreibung { font-size: 13.5px; flex: 1; }

.karte-inhalt .verfuegbarkeit {
  font-size: 12px;
  font-style: italic;
  color: var(--grau);
  border-top: 1px solid rgba(0,0,0,0.15);
  padding-top: 5px;
  margin-top: 4px;
}
.quizkarte.knapp .verfuegbarkeit { color: var(--braun); font-style: normal; }

/* ausgewählt: orange mit schwarzem Rand */
.quizkarte input:checked ~ .karte-inhalt {
  background: var(--orange);
  border-color: var(--schwarz);
}
.quizkarte input:checked ~ .karte-inhalt .verfuegbarkeit { color: var(--schwarz); }
.quizkarte input:focus-visible ~ .karte-inhalt { outline: 2px solid var(--schwarz); outline-offset: 2px; }

/* ausgebucht und nicht wählbar */
.quizkarte.voll { cursor: not-allowed; }
.quizkarte.voll .karte-inhalt { background: var(--hell); border-color: var(--hell); color: var(--grau); }
.quizkarte.voll .karte-inhalt .raum { color: var(--grau); }
.quizkarte.voll .verfuegbarkeit { color: var(--rot); font-style: normal; }

/* voll, aber als Anfrage auf die Warteliste möglich */
.quizkarte.warteliste .karte-inhalt { background: #fffbe6; border-style: dashed; border-color: var(--orange); }
.quizkarte.warteliste .verfuegbarkeit { color: var(--braun); font-style: normal; }

.z-warte {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--braun);
  border: 1px solid var(--orange);
  padding: 0 4px;
  margin-left: 6px;
  vertical-align: 1px;
  background: #fffbe6;
}

/* --- Buttons --------------------------------------------------------- */

.schritt-navi {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 9px 16px;
  border: 1px solid var(--schwarz);
  background: var(--weiss);
  color: var(--schwarz);
  cursor: pointer;
}
.btn:hover { background: var(--gelb); }

.btn.weiter, .btn.primaer {
  background: var(--schwarz);
  border-color: var(--schwarz);
  color: var(--weiss);
}
.btn.weiter:hover, .btn.primaer:hover { background: var(--orange-d); border-color: var(--orange-d); color: var(--schwarz); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.geist { border-color: var(--linie); }

a.btn { display: inline-block; text-decoration: none; }

/* --- Übersicht -------------------------------------------------------- */

.uebersicht { margin-top: 10px; }

.uebersicht .zeile {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--linie);
}
.uebersicht .zeile:last-child { border-bottom: 0; }

.uebersicht .z-zeit { font-variant-numeric: tabular-nums; color: var(--grau); font-size: 14px; flex: none; width: 104px; }
.uebersicht .z-titel { font-weight: 700; flex: 1; }
.uebersicht .z-raum { font-size: 13px; text-transform: uppercase; font-weight: 700; }
.uebersicht .z-raum.raum-a { color: var(--raum-a); }
.uebersicht .z-raum.raum-b { color: var(--raum-b); }
.uebersicht .zeile-teil { border-top: 0; padding-top: 0; margin-top: -4px; }
.uebersicht .z-personen { font-weight: 400; color: var(--grau); font-size: 14px; margin-left: 6px; }
.uebersicht .z-wunsch { display: block; font-weight: 400; color: var(--grau); font-size: 13.5px; }
.vormerken { margin-top: 12px; }

.uebersicht .teamzeile {
  background: var(--gelb);
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.js .ohne-js { display: none; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Aufteilen pro Block ------------------------------------------------ */

.aufteilen { margin: 14px 0 0; }
.ankreuz {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  margin: 10px 0 0;
  cursor: pointer;
}
.ankreuz input { margin-top: 3px; flex: none; }
.ankreuz[hidden] { display: none; }
.aufteilen-felder { margin: 10px 0 0 26px; }
.aufteilen-felder[hidden] { display: none; }
.aufteilen-felder .feld { max-width: 32em; }
.anderes-quiz { font-weight: 700; }
/* Ohne JavaScript ist der Schalter nutzlos — dann steht das Zahlenfeld einfach da. */
html:not(.js) .aufteilen-schalter { display: none; }
html:not(.js) .aufteilen-felder[hidden] { display: block; }
.aufteilen-fest { margin: 14px 0 0; padding: 10px 14px; border-left: 4px solid var(--orange); background: var(--gelb); font-size: 15px; }

.plan {
  border: 1px solid var(--linie);
  padding: 4px 14px;
  margin-bottom: 18px;
}

/* --- Fuß -------------------------------------------------------------- */

.fusszeile {
  margin-top: 28px;
  color: var(--grau);
  font-size: 13px;
}

/* --- Chiffre ---------------------------------------------------------- */

.chiffre-box {
  background: var(--gelb);
  border: 1px solid var(--orange);
  padding: 12px 16px;
  margin-bottom: 18px;
  text-align: center;
}
.chiffre-label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.chiffre-wert {
  display: block;
  margin: 4px 0 6px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.chiffre-hilfe { display: block; font-size: 12px; font-style: italic; color: var(--grau); }

input.chiffre-eingabe {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  padding: 10px;
}
input.chiffre-eingabe::placeholder { font-weight: 400; color: #bbb; }

/* --- Status ------------------------------------------------------------- */

.status { font-weight: 700; text-transform: uppercase; font-size: 12px; white-space: nowrap; }
.status-angefragt  { color: var(--braun); }
.status-bestaetigt { color: var(--gruen); }
.status-abgelehnt  { color: var(--rot); }
.status-storniert  { color: var(--grau); }
.status-warteliste { color: var(--braun); }

/* --- Schmal ------------------------------------------------------------ */

@media (max-width: 620px) {
  .felder   { grid-template-columns: 1fr; }
  .quizwahl { grid-template-columns: 1fr; }
  .schritt  { padding: 12px 12px 14px; }
  .schritt-navi .btn { flex: 1; }
  .uebersicht .zeile { flex-wrap: wrap; gap: 2px 10px; }
  .uebersicht .z-zeit { width: auto; }
}
