/* Stil C «Weihnachtspullover», Farben und Masse siehe docs/DESIGN.md */

:root {
  --rot: #B3262E;
  --rot-dunkel: #9A1F26;
  --gruen: #1F6B45;
  --gruen-hell: #EAF4EE;
  --weiss: #FFFFFF;
  --feld: #F6F1F1;
  --text: #2B2622;
  --text-auf-rot: #FCE3E3;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--rot); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--rot);
  color: var(--weiss);
  font-family: Nunito, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

.strick { display: block; width: 100%; height: 18px; background: var(--gruen); }

main {
  max-width: 420px;
  margin: 0 auto;
  padding: 18px 16px calc(32px + env(safe-area-inset-bottom, 0px));
}

h1 { margin: 4px 0 0; text-align: center; font-size: 26px; font-weight: 800; line-height: 1.2; }

.phase { margin: 4px 0 16px; text-align: center; font-size: 14px; color: var(--text-auf-rot); }

.erkl { background: var(--rot-dunkel); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.erkl p { margin: 0 0 8px; }
.erkl p:last-child { margin: 0; }

.karte { background: var(--weiss); color: var(--text); border-radius: 14px; padding: 14px; margin: 0 0 14px; }
.karte p { margin: 0 0 10px; }

label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 4px; }

input[type=text] {
  display: block; width: 100%; height: 46px; margin: 0 0 12px; padding: 0 14px;
  border: 2px solid var(--feld); border-radius: 10px; background: var(--feld);
  font: inherit; font-size: 17px; color: var(--text);
}
input[type=text]:focus { outline: none; border-color: var(--gruen); background: var(--weiss); }

button {
  font: inherit; cursor: pointer; border: 0; -webkit-tap-highlight-color: transparent;
}

.knopf {
  display: block; width: 100%; min-height: 48px; padding: 10px 16px; border-radius: 24px;
  background: var(--gruen); color: var(--weiss); font-weight: 800; font-size: 17px;
}
.knopf:active { transform: scale(0.98); }
.knopf[aria-busy=true] { opacity: 0.7; }

.leise {
  display: inline-block; padding: 6px 2px; background: none; color: var(--gruen);
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.auf-rot .leise, .leise.auf-rot { color: var(--weiss); }

.fehler { margin: 10px 0 0; color: var(--rot); font-weight: 700; }
.fehler:empty { display: none; }
.auf-rot .fehler { color: var(--weiss); background: var(--rot-dunkel); border-radius: 10px; padding: 8px 12px; }

.titel-klein { font-size: 14px; color: var(--text-auf-rot); margin: 18px 0 6px; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li { background: var(--rot-dunkel); border-radius: 10px; padding: 9px 12px; margin: 0 0 6px; }
.liste .deins { color: var(--text-auf-rot); font-size: 14px; }

.wahl {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; text-align: left;
  background: var(--weiss); color: var(--text); border: 2px solid var(--weiss); border-radius: 14px;
  padding: 10px 14px; margin: 0 0 8px; font-size: 17px;
}
.wahl .haken {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #CFC4C4;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: var(--weiss);
}
.wahl[aria-pressed=true] { border-color: var(--gruen); background: var(--gruen-hell); }
.wahl[aria-pressed=true] .haken { background: var(--gruen); border-color: var(--gruen); }

.zaehler { text-align: center; font-weight: 700; margin: 14px 0 10px; }
.hinweis { text-align: center; font-size: 14px; color: var(--text-auf-rot); margin: -4px 0 10px; }
.hinweis:empty { display: none; }

.sieger { background: var(--weiss); color: var(--rot); border-radius: 16px; padding: 18px 14px; text-align: center; margin: 10px 0 16px; }
.sieger .gericht { font-size: 30px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.sieger .info { color: var(--gruen); font-weight: 700; margin-top: 6px; }

.rang { display: flex; align-items: center; gap: 12px; background: var(--rot-dunkel); border-radius: 12px; padding: 9px 12px; margin: 0 0 6px; }
.rang .platz { width: 18px; font-weight: 800; }
.rang .mitte { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rang .von { color: var(--text-auf-rot); font-size: 14px; }
.rang .balken { height: 6px; border-radius: 3px; background: var(--weiss); margin-top: 4px; }
.rang .zahl { font-weight: 800; }

/* Admin */
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0; border-top: 1px solid #EEE3E3; }
.zeile:first-child { border-top: 0; }
.zeile .wer { flex: 1 1 160px; min-width: 0; }
.zeile .was { color: #6b5f5f; font-size: 14px; overflow-wrap: anywhere; }
.marke { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 8px; padding: 2px 8px; margin: 4px 4px 0 0; background: var(--feld); color: #6b5f5f; }
.marke.ja { background: var(--gruen-hell); color: var(--gruen); }
.zeile .leise { font-size: 14px; color: var(--rot); margin-right: 16px; }
.zahlen { display: flex; gap: 8px; margin: 0 0 14px; }
.zahlen div { flex: 1; background: var(--rot-dunkel); border-radius: 12px; padding: 10px; text-align: center; }
.zahlen b { display: block; font-size: 24px; }
.zahlen span { font-size: 13px; color: var(--text-auf-rot); }
.bestaetigen { display: flex; gap: 8px; }
.bestaetigen .knopf { flex: 1; }
.knopf.zurueck { background: var(--feld); color: var(--text); }
.knopf.gefahr { background: var(--rot-dunkel); }
