/* ------------------------------------------------------------------
   Krimi Dinner – gemeinsames Stylesheet
   Mobil zuerst; ab 700 px etwas breiteres Layout.
   ------------------------------------------------------------------ */

:root {
  color-scheme: dark;

  --papier: #f3ece0;
  --tinte: #17120f;

  --nacht: #14100e;
  --nacht-2: #1d1815;
  --nacht-3: #272019;
  --karte: #201a16;
  --linie: #3a2f26;

  --blut: #8f1d1d;
  --blut-hell: #c0392b;
  --gold: #c8a35a;
  --gold-hell: #e3c583;
  --gruen: #4c7a4c;

  --text: #ece3d6;
  --text-leise: #a89b8b;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --schatten: 0 8px 24px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

/* Eigene display-Regeln (z. B. fuer button) haengen sonst das hidden-Attribut ab. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, #2a201a 0%, transparent 60%),
    var(--nacht);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  padding: 0 16px 64px;
}

.huelle { max-width: 720px; margin: 0 auto; }
.schmal { max-width: 560px; }

/* ---------------------------------------------------------- Kopfbereich */

.kopf {
  padding: 28px 0 18px;
  text-align: center;
  border-bottom: 1px solid var(--linie);
  margin-bottom: 24px;
}

.kopf .marke {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}

h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(1.6rem, 6.5vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 6px;
}

h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.3rem;
  margin: 28px 0 10px;
  color: var(--gold-hell);
}

h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin: 18px 0 6px;
  font-weight: 600;
}

.unterzeile { color: var(--text-leise); margin: 0; font-size: 0.95rem; }

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-hell); }

/* ------------------------------------------------------------- Karten */

.karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 14px;
}

.karte.hervor { border-color: var(--gold); box-shadow: var(--schatten); }
.karte.warnung { border-color: var(--blut); background: #251616; }
.karte.ruhig { background: var(--nacht-2); }

.karte > h2:first-child,
.karte > h3:first-child { margin-top: 0; }

/* Aufklappbare Abschnitte */

details.block {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  margin: 0 0 10px;
  overflow: hidden;
}

details.block > summary {
  padding: 13px 16px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--gold-hell);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

details.block > summary::-webkit-details-marker { display: none; }
details.block > summary::after {
  content: "+";
  color: var(--text-leise);
  font-size: 1.2rem;
  line-height: 1;
}
details.block[open] > summary::after { content: "–"; }
details.block > .inhalt { padding: 0 16px 16px; }

/* ------------------------------------------------------- Bedienelemente */

button,
.knopf {
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--linie);
  background: var(--nacht-3);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  width: 100%;
}

button:hover, .knopf:hover { border-color: var(--gold); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

button.haupt, .knopf.haupt {
  background: var(--blut);
  border-color: var(--blut-hell);
  color: #fff;
}
button.haupt:hover, .knopf.haupt:hover { background: var(--blut-hell); }

button.leise, .knopf.leise {
  background: transparent;
  color: var(--text-leise);
  min-height: 42px;
  font-weight: 500;
}

.knopfreihe { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

@media (min-width: 560px) {
  .knopfreihe { flex-direction: row; }
  .knopfreihe > * { flex: 1; }
}

label { display: block; margin: 0 0 6px; font-size: 0.9rem; color: var(--text-leise); }

input[type="text"], input[type="number"], select {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--linie);
  background: var(--nacht);
  color: var(--text);
}

input:focus, select:focus, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Schalter mit Erklaerung, z. B. „Spielleitung spielt mit“. */

.schalter {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 0;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
}
.schalter.karte { margin: 0 0 16px; }
.schalter input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 2px 0 0;
  accent-color: var(--blut-hell);
}
.schalter .text { display: grid; gap: 4px; }
.schalter .hinweis { display: block; }

/* Spielerzahl */

.zahlwahl { display: flex; align-items: center; gap: 12px; }
.zahlwahl button { width: 56px; min-width: 56px; font-size: 1.4rem; padding: 0; }
.zahlwahl .anzeige {
  flex: 1;
  text-align: center;
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--gold-hell);
}

.namensliste { display: grid; gap: 8px; margin-top: 10px; }
.namensliste .zeile { display: flex; align-items: center; gap: 10px; }
.namensliste .nummer {
  width: 30px;
  text-align: right;
  color: var(--text-leise);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

/* ------------------------------------------------------- Fallauswahl */

.fallkarte {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px;
  margin-bottom: 12px;
  min-height: 0;
  background: var(--karte);
  border: 1px solid var(--linie);
}
.fallkarte[aria-pressed="true"] { border-color: var(--gold); background: var(--nacht-3); }
.fallkarte > span { display: block; }
.fallkarte .titel {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--gold-hell);
}
.fallkarte .meta { font-size: 0.85rem; color: var(--text-leise); margin-top: 4px; font-weight: 400; }
.fallkarte .text { font-weight: 400; font-size: 0.95rem; margin-top: 10px; line-height: 1.5; }

.fallkarte .kenn {
  font-size: 0.85rem;
  color: var(--gold-hell);
  margin-top: 6px;
  font-weight: 400;
}
.fallkarte .kenn .zeichen { margin-right: 4px; }
.fallkarte .kennteil { white-space: nowrap; }

/* Text, der nur fuer Vorleseprogramme da ist. */
.nur-lesehilfe {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------- Filter */

.filter { margin-bottom: 16px; }
.filtergruppe + .filtergruppe { margin-top: 12px; }

.filtername {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: 8px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chips .chip {
  width: auto;
  min-height: 38px;
  padding: 6px 14px;
  margin: 0;
  border-radius: 999px;
  background: var(--nacht);
  border: 1px solid var(--linie);
  color: var(--text-leise);
  font-size: 0.9rem;
  font-weight: 500;
}
.chips .chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--nacht-3);
  color: var(--gold-hell);
}

#filter-zuruecksetzen { margin-top: 14px; }

/* --------------------------------------------------------- Verteilung */

.spielerkarte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

.spielerkarte .kopfzeile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.spielerkarte .name { font-family: var(--serif); font-size: 1.2rem; }
.spielerkarte .figur { font-size: 0.85rem; color: var(--text-leise); }

/* QR-Code: immer schwarz auf weiss, auch im dunklen Design. Die Ruhezone
   von 4 Modulen steckt schon im SVG; das Polster hier ist nur Optik.
   Mindestens 220 px, damit Handykameras ihn aus normalem Abstand lesen. */
.qr {
  display: block;
  background: #fff;
  border: 0;
  border-radius: 8px;
  padding: 6px;
  width: 240px;
  max-width: 100%;
  margin: 0 auto 10px;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.qr svg { display: block; width: 100%; height: auto; }
.qr:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 300px) {
  .qr { width: 100%; }
}

/* Vollbild: der QR-Code auf dem ganzen Schirm, zum Abscannen vom Handy
   der Spielleitung. Tippen oder Escape schliesst wieder. */
.qr-vollbild {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: zoom-out;
}
.qr-vollbild[hidden] { display: none; }
.qr-vollbild-inhalt {
  width: 100%;
  max-width: min(92vw, 92vh);
  text-align: center;
}
.qr-vollbild-flaeche svg { display: block; width: 100%; height: auto; }
.qr-vollbild-titel,
.qr-vollbild-fuss {
  color: #17120f;
  font-family: var(--sans);
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
}
.qr-vollbild-fuss {
  margin: 10px 0 0;
  font-weight: 400;
  font-size: 0.85rem;
  color: #6b625a;
}

.linkzeile {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.linkzeile input {
  font-size: 0.8rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  min-height: 42px;
}
.linkzeile button { width: auto; min-height: 42px; padding: 0 14px; white-space: nowrap; }

/* --------------------------------------------------------- Rundentabs */

.tableiste {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  margin: 0 -4px 12px;
  -webkit-overflow-scrolling: touch;
}

.tableiste button {
  width: auto;
  min-height: 42px;
  padding: 8px 14px;
  white-space: nowrap;
  font-size: 0.92rem;
  flex: 0 0 auto;
}

.tableiste button[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #241a0c;
}

.tableiste button.gesperrt { color: var(--text-leise); }

/* ------------------------------------------------------------- Details */

.zeilen { display: grid; gap: 10px; }

.feld { border-left: 3px solid var(--linie); padding-left: 12px; }
.feld.gold { border-left-color: var(--gold); }
.feld.blut { border-left-color: var(--blut); }
.feld .marke {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-leise);
  display: block;
  margin-bottom: 2px;
}

ul.sauber { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.sauber li { padding-left: 18px; position: relative; }
ul.sauber li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

ul.strich { padding-left: 20px; margin: 0; display: grid; gap: 6px; }

/* Gegliederte Enthuellung (Taeter/Komplize). Der Fall darf statt eines
   Fliesstexts beschriftete Abschnitte liefern - siehe faelle/FORMAT.md. */

.enthuellung .abschnitt + .abschnitt { margin-top: 16px; }

.enthuellung h4 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold-hell);
}

/* Was am Tisch nie fallen darf, steht deutlich abgesetzt. */
.enthuellung .sperre {
  margin-top: 18px;
  background: #180c0c;
  border: 1px solid var(--blut-hell);
  border-left-width: 5px;
  border-radius: var(--radius);
  padding: 12px 14px;
}

.enthuellung .sperre h4 {
  color: #f0b3ab;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.enthuellung .sperre ul.sauber li::before { background: var(--blut-hell); }


/* Zeitleisten (Alibi, Tatnacht) */

ul.zeitleiste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.zeitzeile { display: flex; gap: 12px; align-items: flex-start; }
.zeitzeile .zeit {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--gold-hell);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  padding-top: 1px;
}
.zeitzeile .ort {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-leise);
}

.marker {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--linie);
  color: var(--text-leise);
}
.marker.gold { border-color: var(--gold); color: var(--gold-hell); }
.marker.blut { border-color: var(--blut-hell); color: #f0b3ab; }

.codewort {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--gold-hell);
}

.fehler {
  background: #2a1414;
  border: 1px solid var(--blut);
  color: #f3c9c2;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.hinweis { color: var(--text-leise); font-size: 0.9rem; }

.fuss {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--linie);
  color: var(--text-leise);
  font-size: 0.85rem;
  text-align: center;
}

.laden { text-align: center; color: var(--text-leise); padding: 40px 0; }

.trennung {
  border: 0;
  border-top: 1px solid var(--linie);
  margin: 22px 0;
}

/* --------------------------------------------------- Der Außenseiter
   Zweites Spiel, gleiche Sprache: dunkle Karten, Serifen für alles, was
   vorgelesen oder vorgezeigt wird. Das Wort auf dem Handy muss aus einem
   Meter Entfernung nicht lesbar sein – im Gegenteil. */

.wortkarte { text-align: center; padding: 26px 16px; }

.wortkarte .kategorie {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: 10px;
}

/* 9vw, nicht mehr: „Meerschweinchen“ und „Kreuzfahrtschiff“ müssen auf
   einem 375 px breiten Schirm in eine Zeile passen. */
.wortkarte .wort {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 9vw, 3.1rem);
  line-height: 1.15;
  color: var(--gold-hell);
  overflow-wrap: break-word;
  hyphens: auto;
}

.wortkarte .platzzeile { color: var(--text-leise); font-size: 0.9rem; margin-top: 14px; }

.rundenzahl { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-hell); }

button.gruen, .knopf.gruen {
  background: var(--gruen);
  border-color: #6a9c6a;
  color: #fff;
}
button.gruen:hover, .knopf.gruen:hover { background: #5b8f5b; }

/* Punktetabelle */

table.punkte { width: 100%; border-collapse: collapse; }

table.punkte th,
table.punkte td {
  text-align: left;
  padding: 9px 6px;
  border-bottom: 1px solid var(--linie);
}

table.punkte th {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-leise);
  font-weight: 600;
}

table.punkte tr:last-child td { border-bottom: 0; }
table.punkte td.rang { width: 2.4em; color: var(--text-leise); font-variant-numeric: tabular-nums; }
table.punkte td.zahl {
  width: 3.2em;
  text-align: right;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--gold-hell);
  font-variant-numeric: tabular-nums;
}
table.punkte tr.vorn td.name { font-weight: 700; }
table.punkte tr.vorn td.rang { color: var(--gold); }

/* Rundenverlauf mit Möglichkeit zur Korrektur */

.verlauf { display: grid; gap: 8px; }

.verlauf .zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-left: 3px solid var(--linie);
  padding: 6px 0 6px 12px;
}

.verlauf .zeile.gefunden { border-left-color: var(--gruen); }
.verlauf .zeile.entkommen { border-left-color: var(--blut-hell); }
.verlauf .zeile .was { font-size: 0.95rem; }
.verlauf .zeile .wer { display: block; color: var(--text-leise); font-size: 0.85rem; }
.verlauf .zeile button {
  width: auto;
  min-height: 38px;
  padding: 4px 12px;
  font-size: 0.85rem;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------- Imposter
   Das zweite Spiel läuft über den Server; deshalb gibt es hier Dinge, die
   das Krimi-Dinner nicht braucht: eine Verbindungsmeldung, einen Code zum
   Ansagen, Wahlknöpfe und ein Podest.

   Alles ist für 375 px gebaut. Die Wahlknöpfe sind absichtlich groß: Man
   tippt sie am Tisch, im Halbdunkel, mit einem Glas in der anderen Hand. */

/* Verbindung weg. Steht oben, bleibt stehen, verdrängt nichts – der
   angezeigte Spielstand ist der letzte gültige und soll sichtbar bleiben. */
.verbindung {
  border: 1px solid var(--gold);
  background: #2a2013;
  color: var(--gold-hell);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

/* Kurze Rückmeldung auf einen Knopf, z. B. „Du hast schon abgestimmt“. */
.meldung {
  border: 1px solid var(--linie);
  background: var(--nacht-2);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

/* Der Beitrittscode: muss über einen Tisch hinweg vorgelesen werden. */
.codekarte { text-align: center; }
.codekarte .marke {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-leise);
}

.grosscode {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 16vw, 4.2rem);
  letter-spacing: 0.14em;
  line-height: 1.1;
  color: var(--gold-hell);
  margin: 6px 0 8px;
  font-variant-numeric: tabular-nums;
}

.beitrittsfelder { display: grid; gap: 8px; grid-template-columns: 5.5em 1fr; }
.beitrittsfelder input:first-child {
  text-align: center;
  letter-spacing: 0.18em;
  font-family: var(--serif);
  font-size: 1.3rem;
}

/* Kopf der laufenden Runde */
.rundenkopf { margin: 0 0 14px; }
.rundenkopf .rundenzahl { margin: 0; }
.rundenkopf .hinweis { margin: 2px 0 0; }

/* Der Imposter. Rot, damit kein Zweifel bleibt, und ohne Wort – es steht
   nicht einmal in der Antwort des Servers. */
.imposterkarte {
  border-color: var(--blut-hell);
  background: #2a1513;
  text-align: center;
  padding: 22px 16px;
}

.imposterzeile {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.6rem, 8vw, 2.4rem);
  letter-spacing: 0.22em;
  color: #f0b3ab;
  margin: 0 0 10px;
}

.imposterkarte .kategorie {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 7vw, 2.2rem);
  color: var(--gold-hell);
  line-height: 1.2;
}

.impostertext { color: var(--text-leise); font-size: 0.92rem; margin: 12px 0 0; }

/* Sprechreihenfolge */
.dranzeile {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-hell);
  margin: 0 0 10px;
}

ol.reihenliste { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
ol.reihenliste li { font-size: 0.95rem; }
ol.reihenliste li.ich { color: var(--gold-hell); font-weight: 600; }

/* Wunsch und Abstimmung */
.wunschstand,
.abstimmstand {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold-hell);
  margin: 0 0 10px;
}

.gewaehlt { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-hell); }

.wahlknoepfe { display: grid; gap: 8px; margin: 12px 0; }

button.wahl {
  min-height: 54px;
  font-family: var(--serif);
  font-size: 1.15rem;
  background: var(--nacht-3);
}
button.wahl:hover { border-color: var(--gold); }

/* Ergebnis einer Runde */
.ergebnissatz { font-size: 1.02rem; margin-top: 12px; }
.grossname { font-family: var(--serif); font-size: 1.3rem; color: var(--text); }

/* Podest. Gleichstand heißt: mehrere Namen auf derselben Stufe. */
.podest { display: grid; gap: 10px; margin-top: 14px; }

.podest .stufe {
  display: grid;
  grid-template-columns: 2.2em 1fr auto;
  align-items: baseline;
  gap: 10px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--nacht-2);
}

.podest .stufe.rang1 { border-color: var(--gold); background: var(--nacht-3); }
.podest .platzzahl { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-hell); }
.podest .namen { font-family: var(--serif); font-size: 1.1rem; }
.podest .punkte { color: var(--text-leise); font-size: 0.9rem; white-space: nowrap; }

/* ------------------------------------------------ Spickzettel (ausdruck.html)
   Eine Seite für die Spielleitung, auf dem Schirm wie der Rest der App,
   im Druck schwarz auf weiß und zweispaltig. Was nur auf dem Schirm einen
   Sinn hat – Knöpfe, Meldungen – trägt `nur-schirm`. */

.blatt-kopf {
  border-bottom: 1px solid var(--linie);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.blatt-kopf h1 { font-size: clamp(1.5rem, 5.5vw, 2rem); margin: 0 0 4px; }
.blatt-unterzeile { color: var(--gold-hell); margin: 0 0 4px; font-size: 0.95rem; }
.blatt-kenn { color: var(--text-leise); margin: 0; font-size: 0.88rem; }

.blatt-vorbereitung { display: grid; gap: 8px; margin-bottom: 16px; }
.blatt-feld { font-size: 0.92rem; }

.blatt-marke {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-right: 8px;
  font-weight: 600;
}
.blatt-marke.allein { display: block; margin: 10px 0 3px; }

.blatt-spalten { display: grid; gap: 14px; }

@media (min-width: 700px) {
  .blatt-spalten { grid-template-columns: 1fr 1fr; align-items: start; }
}

.blatt-runde {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 12px 14px;
  break-inside: avoid;
}

.blatt-runde h2 {
  font-size: 1.12rem;
  margin: 0 0 2px;
  color: var(--gold-hell);
}

.blatt-meta { color: var(--text-leise); font-size: 0.85rem; margin: 0 0 8px; }
.blatt-zeile { margin: 0 0 6px; font-size: 0.92rem; }

.blatt-codewort {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  color: var(--gold-hell);
}

.blatt-liste { margin: 0; padding-left: 18px; }
.blatt-liste li { font-size: 0.9rem; margin-bottom: 5px; }
.blatt-liste li:last-child { margin-bottom: 0; }

.blatt-bonus { display: block; color: var(--gold-hell); font-size: 0.85rem; }

.blatt-abstimmung {
  margin: 10px 0 0;
  padding-top: 6px;
  border-top: 1px dashed var(--linie);
  font-size: 0.88rem;
  color: var(--text-leise);
}

.blatt-fuss {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-leise);
}

/* Papierformat für den Spickzettel */
@page { size: A4 portrait; margin: 12mm; }

/* Druckansicht für die Spielleitung */
@media print {
  body { background: #fff; color: #000; padding: 0; }
  .karte, details.block, .spielerkarte { border-color: #999; background: #fff; }
  button, .knopfreihe, .tableiste { display: none !important; }
  h2, .fallkarte .titel { color: #000; }
  .fallkarte .kenn { color: #333; }
  .filter { display: none !important; }

  /* Spickzettel: alles auf eine Seite, schwarz auf weiß, zwei Spalten. */
  .nur-schirm { display: none !important; }

  .blatt-seite { font-size: 9.2pt; line-height: 1.26; }
  .blatt-seite .huelle { max-width: none; }

  .blatt-kopf { border-bottom: 1.2pt solid #000; padding-bottom: 1.6mm; margin-bottom: 2.5mm; }
  .blatt-kopf h1 { font-size: 14.5pt; color: #000; }
  .blatt-unterzeile { font-size: 10.5pt; }
  .blatt-kenn { font-size: 9pt; }

  .blatt-vorbereitung { gap: 0.8mm; margin-bottom: 2.5mm; }
  .blatt-feld { font-size: 9pt; }

  .blatt-unterzeile,
  .blatt-kenn,
  .blatt-meta,
  .blatt-marke,
  .blatt-codewort,
  .blatt-bonus,
  .blatt-abstimmung,
  .blatt-fuss { color: #000; }

  .blatt-marke.allein { margin: 2mm 0 0.5mm; }

  /* Die vier Runden laufen nebeneinander; eine Runde wird nie zerrissen. */
  .blatt-spalten { display: block; columns: 2; column-gap: 7mm; }

  .blatt-runde {
    background: #fff;
    border: 0.5pt solid #000;
    border-radius: 0;
    padding: 1.6mm 2.2mm;
    margin: 0 0 2.5mm;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
  }

  /* Die Farbregel der Schirmansicht ist spezifischer als das allgemeine
     h2 weiter oben – hier muss die Überschrift ausdrücklich schwarz werden. */
  .blatt-runde h2 { font-size: 10.5pt; margin-bottom: 0.5mm; color: #000; }
  .blatt-meta { font-size: 8.4pt; margin-bottom: 1.5mm; }
  .blatt-zeile { font-size: 8.8pt; margin-bottom: 1mm; }
  .blatt-liste { padding-left: 4mm; }
  .blatt-liste li { font-size: 8.7pt; margin-bottom: 0.8mm; }
  .blatt-bonus { font-size: 8.3pt; font-style: italic; }
  .blatt-abstimmung { font-size: 8.3pt; margin-top: 1.2mm; padding-top: 0.8mm; border-top: 0.5pt dashed #000; }
  .blatt-fuss { margin-top: 3mm; font-size: 8pt; }
}
