/* Winterdienst-Rush — Spielseite. Nutzt die Tokens aus style.css. */
.wdr-raster { display: grid; gap: 28px; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .wdr-raster { grid-template-columns: minmax(0, 1fr); } }

.wdr { max-width: 520px; width: 100%; margin: 0 auto; }
.wdr-hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.wdr-hud > div { background: var(--brand-deep); color: #fff; border-radius: var(--radius-s); padding: 7px 10px; min-width: 0; }
.wdr-hud-label { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.wdr-hud strong { color: #fff; font-family: var(--display); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.wdr-stuerze { display: flex; gap: 5px; padding-top: 5px; }
.wdr-stuerze i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); display: block; }
.wdr-stuerze i.an { background: var(--coral); border-color: var(--coral); }
.wdr-meter { display: block; height: 10px; margin-top: 7px; background: rgba(255,255,255,.18); border-radius: 6px; overflow: hidden; }
.wdr-meter span { display: block; height: 100%; width: 100%; background: var(--sun); transition: width .2s var(--ease-out); }
.wdr-meter.knapp span { background: var(--coral); }

.wdr-buehne { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); background: #e9eff5; }
.wdr-buehne canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; touch-action: none; outline: none; }
.wdr-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 22px; text-align: center; background: rgba(16, 26, 40, .78); color: #fff; overflow-y: auto; }
.wdr-overlay[hidden] { display: none; }
.wdr-titel { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.2; margin: 0 0 10px; }
.wdr-overlay p { margin: 0 0 12px; max-width: 34em; line-height: 1.5; }
.wdr-gross { font-family: var(--display); font-size: 46px; font-weight: 800; line-height: 1; color: var(--sun); margin: 4px 0 2px; }
.wdr-neu { display: inline-block; background: var(--sun); color: var(--ink-strong); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.wdr-neu[hidden] { display: none; }

.wdr-btn { font: inherit; font-weight: 700; border: 0; border-radius: 99px; padding: 11px 22px; cursor: pointer;
  background: var(--sun); color: var(--ink-strong); transition: transform .12s var(--ease-out); }
.wdr-btn:active { transform: scale(.97); }
.wdr-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.wdr-btn--leise { background: transparent; color: inherit; border: 1.5px solid currentColor; padding: 8px 16px; }

.wdr-leiste { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.wdr-wetter { flex: 1 1 160px; font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.wdr-wetter svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.wdr-leiste .wdr-btn--leise { color: var(--brand); }
.wdr-btn--streu { padding: 12px 26px; }

.wdr-protokoll { background: #fff; color: var(--ink); border-radius: var(--radius-s); width: 100%; max-width: 340px;
  border-collapse: collapse; font-size: 13.5px; margin: 6px 0 14px; text-align: left; }
.wdr-protokoll caption { font-weight: 700; color: #fff; padding-bottom: 6px; text-align: left; }
.wdr-protokoll th, .wdr-protokoll td { padding: 5px 10px; border-bottom: 1px solid var(--line-soft); }
.wdr-protokoll th { font-weight: 600; color: var(--ink-soft); }
.wdr-form { display: flex; gap: 6px; width: 100%; max-width: 340px; margin-bottom: 6px; }
.wdr-form[hidden] { display: none; }
.wdr-form input { flex: 1; min-width: 0; font: inherit; padding: 9px 12px; border-radius: 99px; border: 0; }
.wdr-status { font-size: 13.5px; min-height: 1.4em; }

.wdr-seite h2 { margin-top: 0; }
.wdr-kasten { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.wdr-kasten-titel { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink-strong); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.wdr-kasten-titel svg { width: 20px; height: 20px; color: var(--brand); }
.wdr-tasten { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 15px; }
.wdr-tasten kbd { display: inline-block; min-width: 26px; text-align: center; font: 600 12.5px var(--sans); background: #fff;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; margin-right: 3px; }

.wdr-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.wdr-tabs button { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--brand-line); background: #fff; color: var(--brand);
  border-radius: 99px; padding: 5px 14px; cursor: pointer; }
.wdr-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.wdr-liste { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.wdr-liste li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 4px;
  border-bottom: 1px solid var(--line); font-size: 15px; }
.wdr-liste li.du { background: var(--sun-soft); border-radius: 8px; }
.wdr-liste .rang { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.wdr-liste .name { overflow-wrap: anywhere; }
.wdr-liste .fb { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 1px 7px; border-radius: 99px; }
.wdr-liste .pkt { font-weight: 800; font-family: var(--display); font-variant-numeric: tabular-nums; color: var(--ink-strong); }
.wdr-liste-status { font-size: 14px; color: var(--ink-soft); margin: 8px 0 0; }
.wdr-rekord { font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; }

/* Chef-Taste: sieht aus wie ein nüchterner Prüfkalender */
.wdr-chef { position: fixed; inset: 0; z-index: 9999; background: #fff; overflow-y: auto; padding: 28px 16px; cursor: default; }
.wdr-chef[hidden] { display: none; }
.wdr-chef-innen { max-width: 920px; margin: 0 auto; font-family: var(--sans); color: var(--ink); }
.wdr-chef h2 { font-size: 22px; margin: 0 0 4px; }
.wdr-chef p { color: var(--ink-soft); margin: 0 0 16px; font-size: 14px; }
.wdr-chef table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wdr-chef th, .wdr-chef td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wdr-chef th { background: var(--bg-soft); font-weight: 600; }

@media (max-width: 480px) {
  .wdr-hud strong { font-size: 17px; }
  .wdr-hud > div { padding: 6px 8px; }
  .wdr-titel { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .wdr-meter span, .wdr-btn { transition: none; } }
.wdr .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) { .wdr-overlay { padding: 14px; font-size: 14.5px; } .wdr-overlay p { margin-bottom: 9px; } }

/* Kabelsalat: Steuerkreuz nur auf Touch-Geräten */
.ksl-pad { display: none; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(2, 52px); gap: 6px; justify-content: center; margin-top: 10px; }
.ksl-pad button { border: 0; border-radius: 14px; background: var(--brand-deep); color: #fff; display: grid; place-items: center; cursor: pointer; touch-action: none; }
.ksl-pad button:active { background: var(--brand); }
.ksl-pad svg { width: 26px; height: 26px; }
.ksl-pad-o { grid-column: 2; grid-row: 1; }
.ksl-pad-l { grid-column: 1; grid-row: 2; }
.ksl-pad-u { grid-column: 2; grid-row: 2; }
.ksl-pad-r { grid-column: 3; grid-row: 2; }
@media (hover: none) and (pointer: coarse) { .ksl-pad { display: grid; } }

/* Übersicht Minispiele */
.msp-raster { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.msp-karte { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); align-items: start; }
.msp-bild { display: block; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-deep); }
.msp-bild img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; }
.msp-titel { font-family: var(--display); font-weight: 800; font-size: 21px; margin: 4px 0 8px; display: flex; align-items: center; gap: 8px; }
.msp-titel a { color: var(--ink-strong); text-decoration: none; }
.msp-titel svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.msp-text p { margin: 0 0 10px; line-height: 1.5; }
.msp-meta { font-size: 14px; color: var(--ink-soft); }
.msp-text .wdr-btn { display: inline-block; text-decoration: none; margin-top: 4px; }
@media (max-width: 520px) { .msp-karte { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px; } .msp-titel { font-size: 18px; } }

/* Laubsturm: Helfer-Auswahl und Panel des gewählten Helfers */
.lbs-shop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.lbs-helfer { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px;
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff; color: var(--ink-strong); cursor: pointer; }
.lbs-helfer[aria-pressed="true"] { border-color: var(--sun); background: var(--sun-soft); }
.lbs-helfer.zu-teuer { opacity: .5; }
.lbs-helfer-name { font-weight: 700; font-size: 13.5px; line-height: 1.2; text-align: center; }
.lbs-helfer-preis { font-size: 12.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lbs-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-s); font-size: 14px; }
.lbs-panel[hidden] { display: none; }
.lbs-panel span { flex: 1 1 140px; font-weight: 600; }
.lbs-panel .wdr-btn--leise { color: var(--brand); padding: 6px 12px; font-size: 14px; }
.lbs-panel .wdr-btn:disabled, .wdr-btn:disabled { opacity: .5; cursor: default; }
@media (max-width: 480px) { .lbs-helfer-name { font-size: 12px; } }
