/* Dilemma: gleiche Familie wie jobs.coxilab.de (Papier, Tinte, Gabarito + Onest). */
@font-face {
  font-family: "Gabarito";
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/gabarito-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Onest";
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/onest-latin.woff2) format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f5f4f1;
  --paper-2: #efece5;
  --card: #fbfaf8;
  --ink: #262019;
  --ink-2: #6a6258;
  --rule: #ddd6c9;
  --a: #8a3a2c; /* Option A: Ziegelrot */
  --a-wash: #efe1dc;
  --b: #52646d; /* Option B: Pewter */
  --b-wash: #e3e8ea;
  --c: #9a6b1f; /* Option C: Ocker */
  --c-wash: #f1e7d3;
  --d: #47653c; /* Option D: Moosgrün */
  --d-wash: #e7edde;
  --display: "Gabarito", system-ui, sans-serif;
  --text: "Onest", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--a);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--b);
  outline-offset: 2px;
}
.tnum {
  font-variant-numeric: tabular-nums;
}
[hidden] {
  display: none !important;
}

/* ─── Bausteine ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.9rem;
  padding: 0.55rem 1.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.12s, background 0.12s;
}
.btn:hover {
  background: #000;
  color: var(--paper);
}
.btn:active {
  transform: scale(0.98);
}
.btn.hell {
  background: transparent;
  color: var(--ink);
}
.btn.hell:hover {
  background: var(--paper-2);
}
.btn.klein {
  min-height: 2.3rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.92rem;
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.karte {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
}
.fehler {
  color: var(--a);
  font-weight: 500;
}

/* ─── Szenen (SVG) ─────────────────────────────────────────────────────────── */
.szene-svg {
  display: block;
  width: 100%;
  height: auto;
}
.szene-svg .boden {
  fill: var(--paper-2);
}
.szene-svg .schwellen {
  fill: none;
  stroke: #c9bfae;
  stroke-width: 26;
  stroke-dasharray: 4 14;
}
.szene-svg .schiene-a {
  fill: none;
  stroke: var(--ink);
  stroke-width: 15;
}
.szene-svg .schiene-b {
  fill: none;
  stroke: var(--paper-2);
  stroke-width: 9;
}
.szene-svg .zunge {
  fill: none;
  stroke: var(--a);
  stroke-width: 5;
  stroke-linecap: round;
}
.szene-svg .fig {
  fill: var(--ink);
  transition: opacity 0.5s, fill 0.5s;
}
.szene-svg .fig.du {
  fill: var(--paper-2);
  stroke: var(--ink);
  stroke-width: 2.5;
}
.szene-svg .fig.lieb {
  fill: var(--a);
}
.szene-svg .fig.blass {
  opacity: 0.28;
}
.szene-svg .fig.getroffen {
  opacity: 0.16;
}
.szene-svg .fig.gerettet {
  fill: var(--d);
}
.szene-svg .rucksack {
  fill: var(--c);
}
.szene-svg .etikett {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  fill: var(--ink-2);
}
.szene-svg .etikett.gross {
  font-size: 21px;
  fill: var(--ink);
}
.szene-svg .etikett.lieb {
  fill: var(--a);
}
.szene-svg .marke {
  font-family: var(--text);
  font-size: 14px;
  fill: var(--ink-2);
}
.szene-svg .karosse {
  fill: var(--a);
}
.szene-svg .auto.b .karosse {
  fill: var(--b);
}
.szene-svg .fenster {
  fill: #f6ead9;
}
.szene-svg .streifen {
  fill: #6f2c20;
}
.szene-svg .rad {
  fill: var(--ink);
}
.szene-svg .insasse {
  fill: var(--ink);
}
.szene-svg .ki-marke {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  fill: #f6ead9;
}
.szene-svg .sockel {
  fill: var(--ink);
}
.szene-svg .hebel line {
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
}
.szene-svg .hebel circle {
  fill: var(--a);
}
.szene-svg .pfeiler,
.szene-svg .bruecke {
  fill: #b5ab99;
}
.szene-svg .klappe {
  fill: var(--a);
}
.szene-svg .strasse {
  fill: #d9d3c6;
}
.szene-svg .mittellinie {
  stroke: var(--paper);
  stroke-width: 4;
  stroke-dasharray: 26 20;
}
.szene-svg .zebra {
  fill: var(--paper);
}
.szene-svg .wand rect {
  fill: #b5ab99;
}
.szene-svg .wand path {
  stroke: #9a907e;
  stroke-width: 3;
  fill: none;
}
.szene-svg .bett rect {
  fill: #b5ab99;
}
.szene-svg .trenner {
  stroke: var(--rule);
  stroke-width: 3;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
}
.szene-svg .pille rect {
  fill: var(--card);
  stroke: var(--ink);
  stroke-width: 3;
}
.szene-svg .pille path {
  stroke: var(--ink);
  stroke-width: 3;
}
.szene-svg .ki-kasten rect {
  fill: var(--b);
}
.szene-svg .ki-kasten text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  fill: var(--paper);
}
.szene-svg .ki-kasten.klein text {
  font-size: 22px;
}
.szene-svg .riesig {
  font-family: var(--display);
  font-weight: 700;
  font-size: 76px;
  fill: var(--a);
}
.szene-svg .riesig.b {
  fill: var(--b);
}
.szene-svg .rad-gross circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
}
.szene-svg .blatt {
  fill: var(--card);
  stroke: var(--ink);
  stroke-width: 2.5;
}
.szene-svg .zeilen {
  stroke: var(--ink-2);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
}
.szene-svg .pfeil {
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.szene-svg .pfeil.blass {
  opacity: 0.35;
}
.szene-svg .kegel {
  fill: var(--a);
  opacity: 0.13;
}
.szene-svg .kamera rect {
  fill: var(--ink);
}
.szene-svg .kamera .linse {
  fill: var(--a);
}
.szene-svg .fabrik {
  fill: #cfc7b8;
}
.szene-svg .blase path {
  fill: var(--card);
  stroke: var(--ink);
  stroke-width: 3;
}
.szene-svg .blasentext {
  font-family: var(--text);
  font-size: 29px;
  fill: var(--ink);
}
.szene-svg .knopf path {
  fill: none;
  stroke: var(--paper);
  stroke-width: 9;
  stroke-linecap: round;
}
.szene-svg .knopf-rand {
  fill: var(--a);
}
.szene-svg .waage path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.szene-svg .waage .schale {
  fill: var(--paper);
}
.szene-svg .waage circle {
  fill: var(--ink);
}

/* ─── Optionen & Balken ────────────────────────────────────────────────────── */
.opt-a {
  --f: var(--a);
  --w: var(--a-wash);
}
.opt-b {
  --f: var(--b);
  --w: var(--b-wash);
}
.opt-c {
  --f: var(--c);
  --w: var(--c-wash);
}
.opt-d {
  --f: var(--d);
  --w: var(--d-wash);
}
.buchstabe {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--f);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
}

.balken {
  display: grid;
  gap: 0.2em;
}
.balken + .balken {
  margin-top: 0.85em;
}
.balken-kopf {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  font-family: var(--display);
  font-weight: 600;
}
.balken-kopf .name {
  flex: 1;
  min-width: 0;
}
.balken-kopf .pz {
  font-size: 1.35em;
  color: var(--f);
}
.balken-kopf .anz {
  font-family: var(--text);
  font-weight: 400;
  font-size: 0.8em;
  color: var(--ink-2);
}
.balken-spur {
  position: relative;
  height: 1.05em;
  border-radius: 999px;
  background: var(--w);
  overflow: hidden;
}
.balken-wert {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--f);
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.balken-alt {
  height: 0.4em;
  margin-top: 0.15em;
  border-radius: 999px;
  background: var(--w);
  overflow: hidden;
}
.balken-alt i {
  display: block;
  height: 100%;
  background: color-mix(in srgb, var(--f) 45%, transparent);
  border-radius: 999px;
}
.balken.meins .name::after {
  content: "deine Wahl";
  margin-left: 0.6em;
  padding: 0.1em 0.55em;
  border-radius: 999px;
  background: var(--f);
  color: #fff;
  font-size: 0.68em;
  font-weight: 600;
  vertical-align: 0.15em;
  white-space: nowrap;
}
.wechsel {
  font-family: var(--text);
  font-weight: 500;
  font-size: 0.78em;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ─── Startseite & Handy ───────────────────────────────────────────────────── */
.seite {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}
.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0 1rem;
}
.marke-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}
.marke-logo svg {
  width: 1.7rem;
  height: 1.7rem;
}
.held h1 {
  font-size: clamp(2.3rem, 9vw, 3.8rem);
  margin-top: 0.4rem;
}
.held h1 em {
  font-style: normal;
  color: var(--a);
}
.held .lead {
  margin-top: 1rem;
  font-size: 1.14rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34rem;
}
.beitritt {
  margin-top: 1.75rem;
  padding: 1.25rem;
}
.beitritt label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.beitritt .zeile {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.code-feld {
  flex: 1 1 9rem;
  min-width: 0;
  height: 3.4rem;
  padding: 0 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}
.code-feld::placeholder {
  color: #c9c1b3;
  letter-spacing: 0.3em;
}
.beitritt .btn {
  flex: 1 1 8rem;
  height: 3.4rem;
}
.wege {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}
@media (min-width: 36rem) {
  .wege {
    grid-template-columns: 1fr 1fr;
  }
}
.weg {
  display: block;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.weg:hover {
  border-color: var(--ink);
  color: inherit;
  transform: translateY(-1px);
}
.weg h2 {
  font-size: 1.2rem;
}
.weg p {
  margin-top: 0.3rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.weg .pf {
  color: var(--a);
}
.abschnitt {
  margin-top: 2.75rem;
}
.abschnitt > h2 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.kapitel-liste {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.kapitel-liste li {
  padding: 0.9rem 1.1rem;
}
.kapitel-liste strong {
  font-family: var(--display);
  font-size: 1.08rem;
}
.kapitel-liste span {
  display: block;
  color: var(--ink-2);
  font-size: 0.93rem;
  margin-top: 0.15rem;
}
.fuss {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--ink-2);
}
.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  margin-bottom: 0.9rem;
  color: var(--ink);
}
.fuss p + p {
  margin-top: 0.6rem;
}
.prosa h2 {
  font-size: 1.45rem;
  margin: 2.2rem 0 0.6rem;
}
.prosa p,
.prosa li {
  line-height: 1.62;
  max-width: 62ch;
}
.prosa p + p {
  margin-top: 0.8rem;
}
.prosa ul,
.prosa ol {
  padding-left: 1.2rem;
  margin: 0.6rem 0;
}
.prosa li + li {
  margin-top: 0.35rem;
}

/* Handy im Raum */
.handy {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0.9rem 1rem 2.5rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.handy-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--ink-2);
  padding-bottom: 0.8rem;
}
.handy-kopf b {
  font-family: var(--display);
  letter-spacing: 0.12em;
  color: var(--ink);
}
.handy-kopf button {
  border: 0;
  background: none;
  text-decoration: underline;
  color: var(--ink-2);
  padding: 0.4rem 0;
}
.warten {
  flex: 1;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.7rem;
  padding: 2rem 0;
}
.warten h1 {
  font-size: 2rem;
}
.warten p {
  color: var(--ink-2);
}
.puls {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: var(--a);
  animation: puls 1.8s ease-in-out infinite;
}
@keyframes puls {
  50% {
    transform: scale(0.72);
    opacity: 0.45;
  }
}
.handy h1 {
  font-size: 1.75rem;
  margin: 0.25rem 0 0.5rem;
}
.handy details {
  margin: 0.2rem 0 0.9rem;
  color: var(--ink-2);
}
.handy details summary {
  cursor: pointer;
  font-size: 0.92rem;
  padding: 0.3rem 0;
}
.handy details p {
  margin-top: 0.4rem;
  color: var(--ink);
  line-height: 1.55;
}
.handy .frage {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}
.wahl {
  display: grid;
  gap: 0.7rem;
}
.wahl button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 4.2rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--f);
  border-radius: 16px;
  background: var(--card);
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.15;
  transition: background 0.12s, transform 0.12s, opacity 0.2s;
}
.wahl button small {
  display: block;
  font-family: var(--text);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-top: 0.15rem;
}
.wahl button:active {
  transform: scale(0.985);
}
.wahl button[aria-pressed="true"] {
  background: var(--f);
  color: #fff;
}
.wahl button[aria-pressed="true"] small {
  color: rgba(255, 255, 255, 0.85);
}
.wahl button[aria-pressed="true"] .buchstabe {
  background: #fff;
  color: var(--f);
}
.wahl.gewaehlt button[aria-pressed="false"] {
  opacity: 0.55;
}
.gruende {
  margin-top: 1.2rem;
  padding: 1rem;
  animation: rein 0.3s both;
}
.gruende h2 {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.gruende > p {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-bottom: 0.6rem;
}
.gruende button {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  margin-top: 0.45rem;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  line-height: 1.35;
}
.gruende button[aria-pressed="true"] {
  border-color: var(--f);
  background: var(--w);
  font-weight: 500;
}
.hinweis {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-2);
  text-align: center;
}
@keyframes rein {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.rueckblick {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.rueckblick li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
}
.rueckblick .t {
  flex: 1;
  min-width: 0;
}
.rueckblick .t b {
  display: block;
  font-family: var(--display);
}
.rueckblick .t span {
  font-size: 0.86rem;
  color: var(--ink-2);
}
.rueckblick .m {
  font-size: 0.8rem;
  color: var(--ink-2);
  text-align: right;
  white-space: nowrap;
}

/* ─── Bühne (Beamer & Solo) ────────────────────────────────────────────────── */
.buehne-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.leiste {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem clamp(0.9rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 5;
}
.leiste .mitte {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.raum-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0.4rem 0.25rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  white-space: nowrap;
}
.raum-chip b {
  font-family: var(--display);
  font-size: 1.5em;
  letter-spacing: 0.14em;
}
.raum-chip .dabei {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
}
.leiste .rechts {
  display: flex;
  gap: 0.5rem;
}
.leiste .marke-logo {
  flex: none;
}
@media (max-width: 52rem) {
  .raum-chip .url,
  .leiste .marke-logo span {
    display: none;
  }
  .leiste {
    gap: 0.5rem;
    padding-inline: 0.75rem;
  }
  .leiste .mitte {
    justify-content: flex-start;
  }
  .leiste .kicker {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
  }
  .leiste .btn.klein {
    padding: 0.25rem 0.7rem;
    font-size: 0.84rem;
    min-height: 2.5rem;
  }
  .raum-chip {
    gap: 0.4rem;
    padding-left: 0.7rem;
  }
  .raum-chip b {
    font-size: 1.25em;
    letter-spacing: 0.08em;
  }
  .raum-chip .dabei {
    padding: 0.2rem 0.5rem;
  }
}
@media (max-width: 60rem) {
  /* Einspaltig (Handy, Tablet hochkant): Knöpfe fließen mit, statt Inhalt zu verdecken. */
  .steuer {
    position: static;
    padding-top: 0.4em;
  }
  .buehne .links h1 {
    font-size: 2.1em;
  }
}

.buehne {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2.75rem);
  padding: clamp(1rem, 2vw, 2rem) clamp(0.9rem, 2.5vw, 2.75rem) 2rem;
  max-width: 112rem;
  width: 100%;
  margin: 0 auto;
  font-size: clamp(1rem, 1.25vw, 1.45rem);
  align-items: start;
}
@media (max-width: 60rem) {
  .buehne {
    grid-template-columns: 1fr;
  }
}
.buehne .links h1 {
  font-size: 2.5em;
  margin: 0.15em 0 0.35em;
}
.buehne .text {
  margin-top: 0.9em;
  font-size: 1.08em;
  line-height: 1.52;
  max-width: 44em;
}
.fall-zeile {
  margin-top: 0.8em;
  padding: 0.6em 0.9em;
  border-left: 5px solid var(--f, var(--ink));
  background: var(--w, var(--paper-2));
  border-radius: 0 12px 12px 0;
  font-family: var(--display);
  font-weight: 600;
  animation: rein 0.4s both;
}
.buehne .rechts-spalte {
  display: grid;
  gap: 1em;
  align-content: start;
}
.buehne .frage {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.75em;
  line-height: 1.12;
  text-wrap: balance;
}
.runde-marke {
  display: inline-block;
  padding: 0.15em 0.7em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.75em;
  margin-bottom: 0.5em;
}
.opt-karten {
  display: grid;
  gap: 0.6em;
}
.opt-karte {
  display: flex;
  align-items: center;
  gap: 0.8em;
  width: 100%;
  padding: 0.75em 1em;
  border: 2px solid var(--f);
  border-radius: 16px;
  background: var(--card);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2em;
  line-height: 1.15;
  text-align: left;
}
.opt-karte small {
  display: block;
  font-family: var(--text);
  font-weight: 400;
  font-size: 0.68em;
  color: var(--ink-2);
  margin-top: 0.2em;
}
button.opt-karte:hover {
  background: var(--w);
}
.zaehler {
  padding: 0.9em 1.1em;
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}
.zaehler .zahl {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6em;
  line-height: 1;
}
.zaehler .wort {
  flex: 1;
  color: var(--ink-2);
  line-height: 1.3;
  min-width: 8em;
}
.punkte {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28em;
  width: 100%;
}
.punkte i {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--rule);
}
.punkte i.an {
  background: var(--ink);
  animation: plopp 0.3s both;
}
@keyframes plopp {
  from {
    transform: scale(0.2);
  }
  60% {
    transform: scale(1.4);
  }
}
.ergebnis {
  padding: 1em 1.1em;
  animation: rein 0.35s both;
}
.ergebnis .n {
  margin-top: 0.8em;
  font-size: 0.78em;
  color: var(--ink-2);
}
.notiz {
  padding: 0.8em 1em;
  border-radius: 14px;
  background: var(--paper-2);
  font-size: 0.92em;
  line-height: 1.45;
  animation: rein 0.35s 0.15s both;
}
.notiz b {
  font-family: var(--display);
}
.notiz .gross {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25em;
}
.klapp {
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
  animation: rein 0.35s 0.25s both;
}
.klapp summary {
  cursor: pointer;
  padding: 0.7em 1em;
  font-family: var(--display);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.klapp summary::-webkit-details-marker {
  display: none;
}
.klapp summary::after {
  content: "+";
  font-size: 1.3em;
  line-height: 1;
  color: var(--ink-2);
}
.klapp[open] summary::after {
  content: "–";
}
.klapp .innen {
  padding: 0 1em 0.9em;
  font-size: 0.93em;
  line-height: 1.5;
}
.klapp ul {
  margin: 0;
  padding-left: 1.1em;
}
.klapp li + li {
  margin-top: 0.45em;
}
.klapp .gz {
  display: flex;
  gap: 0.6em;
  align-items: baseline;
}
.klapp .gz + .gz {
  margin-top: 0.4em;
}
.klapp .gz .k {
  flex: none;
  min-width: 1.6em;
  font-family: var(--display);
  font-weight: 700;
  color: var(--f);
}
.steuer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  align-items: center;
  position: sticky;
  bottom: 0;
  padding: 0.7em 0;
  background: linear-gradient(transparent, var(--paper) 22%);
  padding-top: 1.1em;
}
.auswertung .steuer {
  position: static;
}
.auswertung .weg h2 {
  margin: 0;
  font-size: 1.2em;
}
.steuer .btn {
  font-size: 0.95em;
}
.steuer .spacer {
  flex: 1;
}

/* Lobby */
.lobby {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  max-width: 82rem;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 3vw, 3rem);
  font-size: clamp(1rem, 1.35vw, 1.5rem);
}
@media (max-width: 54rem) {
  .lobby {
    grid-template-columns: 1fr;
  }
}
.lobby h1 {
  font-size: 2.9em;
}
.lobby .schritte {
  margin: 1.1em 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6em;
  font-size: 1.15em;
}
.lobby .schritte b {
  font-family: var(--display);
}
.lobby .gross-code {
  display: inline-block;
  margin-top: 0.1em;
  padding: 0.05em 0.35em 0.05em 0.5em;
  border-radius: 0.2em;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.8em;
  letter-spacing: 0.16em;
  line-height: 1.15;
}
.lobby .qr {
  width: min(42vh, 24rem, 80vw);
  aspect-ratio: 1;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
}
.lobby .qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.lobby .dabei-gross {
  margin-top: 1.3em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25em;
}
.lobby .dabei-gross b {
  font-size: 1.6em;
  color: var(--a);
}
.ablauf-wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 1.3em 0 1em;
}
.ablauf-wahl button {
  padding: 0.5em 1em;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
}
.ablauf-wahl button small {
  display: block;
  font-family: var(--text);
  font-weight: 400;
  font-size: 0.72em;
  color: var(--ink-2);
}
.ablauf-wahl button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.ablauf-wahl button[aria-pressed="true"] small {
  color: #cfc8bb;
}

/* Start (vor dem Raum) */
.start {
  max-width: 50rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem) 1.25rem 3rem;
}
.start h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin: 0.3rem 0 0.9rem;
}
.start .lead {
  font-size: 1.14rem;
  color: var(--ink-2);
  max-width: 38rem;
}

/* Übersicht (Schublade) */
.schublade {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(38, 32, 25, 0.4);
  display: flex;
  justify-content: flex-end;
}
.schublade .blatt {
  width: min(30rem, 100%);
  height: 100%;
  overflow: auto;
  background: var(--paper);
  padding: 1.25rem;
  animation: schieb 0.22s both;
}
@keyframes schieb {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
}
.schublade h2 {
  font-size: 1.5rem;
}
.schublade h3 {
  margin: 1.3rem 0 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.schublade .eintrag {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-top: 0.35rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
}
.schublade .eintrag:hover {
  border-color: var(--ink);
}
.schublade .eintrag.aktiv {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.schublade .eintrag .st {
  margin-left: auto;
  font-family: var(--text);
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.75;
  white-space: nowrap;
}
.schublade .eintrag .nr {
  opacity: 0.55;
  min-width: 1.4em;
}
.schublade .eintrag.fern {
  opacity: 0.6;
}

/* Auswertung */
.auswertung {
  max-width: 78rem;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vw, 3rem) 3rem;
  font-size: clamp(1rem, 1.15vw, 1.3rem);
}
.auswertung h1 {
  font-size: 2.6em;
  margin-bottom: 0.3em;
}
.auswertung .lead {
  color: var(--ink-2);
  max-width: 46em;
  font-size: 1.1em;
}
.auswertung h2 {
  font-size: 1.5em;
  margin: 1.8em 0 0.6em;
}
.kipp {
  padding: 1.2em 1.3em;
}
.kipp-zeile {
  display: grid;
  grid-template-columns: minmax(7em, 15em) 1fr 3.4em;
  gap: 0.8em;
  align-items: center;
}
.kipp-zeile + .kipp-zeile {
  margin-top: 0.6em;
}
.kipp-zeile .t {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
}
.kipp-zeile .t small {
  display: block;
  font-family: var(--text);
  font-weight: 400;
  font-size: 0.72em;
  color: var(--ink-2);
}
.kipp-zeile .spur {
  height: 1.5em;
  background: var(--a-wash);
  border-radius: 999px;
  overflow: hidden;
}
.kipp-zeile .spur i {
  display: block;
  height: 100%;
  background: var(--a);
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.kipp-zeile .pz {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3em;
  text-align: right;
}
.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19em, 1fr));
  gap: 0.8em;
}
.raster .karte {
  padding: 0.9em 1em;
}
.raster h3 {
  font-size: 1.1em;
  margin-bottom: 0.6em;
}
.raster .balken {
  font-size: 0.85em;
}
.weiter-karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17em, 1fr));
  gap: 0.8em;
}

.qr-gross {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(245, 244, 241, 0.97);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  cursor: zoom-out;
}
.qr-gross .qr {
  width: min(70vh, 86vw);
  aspect-ratio: 1;
  background: #fff;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--rule);
}
.qr-gross b {
  font-family: var(--display);
  font-size: 3rem;
  letter-spacing: 0.16em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media print {
  .leiste,
  .steuer {
    display: none;
  }
}

/* ─── Schmale Bildschirme: zuletzt, damit es die Regeln oben überschreibt ──── */
@media (max-width: 60rem) {
  .steuer {
    position: static;
    padding-top: 0.4em;
    background: none;
  }
}
@media (max-width: 40rem) {
  .kipp-zeile {
    grid-template-columns: 1fr auto;
    gap: 0.25em 0.8em;
  }
  .kipp-zeile .t {
    grid-column: 1;
  }
  .kipp-zeile .pz {
    grid-column: 2;
    grid-row: 1;
  }
  .kipp-zeile .spur {
    grid-column: 1 / -1;
    height: 1.1em;
  }
  .kipp-zeile + .kipp-zeile {
    margin-top: 0.9em;
  }
  .lobby h1 {
    font-size: 2.3em;
  }
  .lobby .qr {
    justify-self: center;
  }
}
