:root {
  --akzent: #ffc581;
  --akzent-dunkel: #a5714f;
  --grund: #192a2e;
  --lp-glas: #16292eeb;
  --lp-rand: #e3bb826b;
}

#strasse { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lp-spiel, .lp-viertel { padding: 0; }
/* Die Kern-Abdunklung von .bildschirm (bis 78 % Schwarz, für Menüs über einem Spiel) machte die ganze Straße grau.
   Start und Spiel zeigen die Welt hell; Texte stehen ohnehin auf eigenen Glasflächen (04.12.2026). */
.bildschirm.lp-spiel { background: none; }
.bildschirm.lp-start { background: linear-gradient(180deg, #00000094 0%, #0000 30%, #0000 62%, #00000052 100%); }
.lp-start .knopf, .lp-viertel .knopf, .lp-spiel .knopf { min-width: 120px; min-height: 96px; }
.lp-spiel .pause-begleitung { cursor: pointer; z-index: 3; }
.lp-sammlung, .lp-ladenname, .lp-status, .lp-ladestand {
  background: var(--lp-glas);
  border: 1px solid var(--lp-rand);
  box-shadow: var(--schatten-weich);
}
.lp-ladenname h1 { margin: 0; color: #ffe1ad; letter-spacing: -.035em; }
.lp-startwahl, .lp-ergebniswahl {
  display: flex; gap: var(--luecke); justify-content: center;
}
.lp-start .knopf.glas, .lp-viertel .knopf.glas, .lp-spiel .knopf.glas { background: var(--lp-glas); }
/* Startseite: Kopf aus dem Rahmen (.start-oben), unten Sammlung links und „Spielen“/„Touren“ rechts */
.lp-start .start-unten.lp-titelunten {
  flex-direction: row; gap: var(--luecke); justify-content: space-between; align-items: end; max-width: none;
}
.lp-startwahl .knopf, .lp-ergebniswahl .knopf {
  justify-content: center;
  width: clamp(132px,22vw,270px);
}
/* „Spielen“ ist der größte Knopf der Startseite (größer als die Kopfknöpfe 220 × 112, Prüfbaustein „aufbau“) */
.lp-startwahl .knopf.haupt { width: auto; min-width: max(132px, min(46vw, 320px)); min-height: 124px; }
/* Hochformat (Tablets und Handys): Sammlung über den Knöpfen; kurzes Querformat: schmalere Knöpfe, alles in einer Reihe
   (Prüfbaustein „responsiv“: „Touren“ ragte bei 768 × 1024 und iPhone SE quer aus dem Fenster) */
@media (orientation: portrait) {
  .lp-start .start-unten.lp-titelunten { flex-direction: column; align-items: center; }
}
@media (height <= 470px) {
  .lp-startwahl .knopf.haupt { min-height: 96px; min-width: 150px; }
  .lp-startwahl .knopf { width: auto; min-width: 120px; }
}
.lp-sammlung {
  border-radius: var(--r-mittel); padding: 8px 12px;
  display: flex; flex-direction: column; gap: 4px;
  font-weight: 750; font-size: var(--s-klein);
}
.lp-fensterreihe { display: grid; gap: 3px; grid-template-columns: repeat(6,1fr); }
.lp-fenster {
  display: inline-grid; place-items: center; width: clamp(26px,5vmin,50px); aspect-ratio: 1;
  border: 1px solid #debf8655; border-radius: 7px; color: #a2aea3;
  background: #1e3133; padding: 3px;
}
.lp-fenster svg { width: 100%; height: 100%; }
.lp-fenster.lp-hell { background: var(--fenster); color: #392e24; box-shadow: 0 0 12px #ffc87652; }
.lp-sammlung-klein { padding: 5px; }
.lp-sammlung-klein .lp-fenster { width: 21px; }
.lp-viertel { padding: var(--oben) var(--rechts) var(--unten) var(--links); background: #18292dcc; }
.lp-viertel .titel { margin-bottom: var(--luecke); }
.lp-tourenliste {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--luecke); max-width: 1000px; margin-inline: auto;
}
.lp-tour { min-height: 96px; gap: var(--luecke); padding: 8px; display: flex; align-items: center; }
.lp-tour > span { min-width: 0; }
.lp-tour small { display: block; color: var(--leise); font-size: .86em; }
.lp-tour .lp-fenster { flex: 0 0 clamp(32px,7vmin,68px); }
.lp-geschlossen { border: 1px solid var(--lp-rand); border-radius: var(--r-mittel); background: var(--lp-glas); }
.lp-spielkopf {
  position: absolute; inset: var(--oben) var(--rechts) auto var(--links);
  display: flex; justify-content: center; align-items: start; gap: var(--luecke);
  pointer-events: none;
}
.lp-spielkopf .pause-knopf { position: fixed; pointer-events: auto; }
.lp-ladenname {
  padding: 6px 16px; border-radius: var(--r-mittel); text-align: center;
}
.lp-ladenname h1 { font-size: clamp(19px, 4vmin, 44px); line-height: 1.07; }
.lp-ladenname > span { font-size: var(--s-klein); color: #ffe5bd; }
.lp-spiel .lp-luecke {
  position: absolute; padding: 0; border-radius: 12px; border: 2px solid transparent;
  min-width: 120px; min-height: 96px; background: transparent; box-shadow: none;
  touch-action: manipulation;
}
.lp-spiel .lp-luecke:hover { background: #e7ffc21a; }
.lp-spiel .lp-luecke:focus-visible, .lp-spiel .lp-luecke.scan-fokus {
  outline: 4px solid #fff2a9; outline-offset: -4px;
}
.lp-spielfuss {
  position: absolute; inset: auto var(--rechts) var(--unten) var(--links);
  display: flex; justify-content: center; gap: 6px var(--luecke); align-items: center; flex-wrap: wrap;
  pointer-events: none;
}
.lp-spielfuss .knopf { pointer-events: auto; }
.lp-status, .lp-ladestand {
  margin: 0; padding: 6px 12px; border-radius: var(--r-mittel);
  color: #fff0d7; font-size: var(--s-klein); text-align: center;
}
.lp-status { font-weight: 750; }
.lp-ergebnis .lp-status { font-size: var(--s-text); }
/* CVI (04.12.2026): Der Kern macht im CVI-Modus jeden .bildschirm und jeden .knopf deckend schwarz (rahmen.js CVI_KLASSEN,
   barrierefreiheit.css). Über der Leinwand verdeckte das die ganze Spielwelt samt Formen in den Lücken. Start und Spiel
   bleiben deshalb durchsichtig (die Leinwand zeichnet selbst schwarzen Grund und helle Umrisse), die Lücken nur umrandet. */
body.bf-cvi #oberflaeche.bildschirm:is(.lp-spiel, .lp-start) { background: transparent !important; }
body.bf-cvi #oberflaeche .lp-luecke.knopf { background: transparent !important; border: 4px solid var(--bf-cvi-farbe,#ffe288) !important; }
body.bf-cvi #oberflaeche .lp-luecke.knopf:hover { background: #ffffff14 !important; }
body.bf-cvi .lp-ladenname,
body.bf-cvi .lp-status,
body.bf-cvi .lp-ladestand,
body.bf-cvi .lp-sammlung { background: #000; border-color: #a89d77; }
body.bf-cvi .lp-viertel { background: #000c; }
@media (width <= 760px) {
  .lp-spielkopf { justify-content: flex-end; }
  .lp-sammlung-klein { align-self: flex-start; }
}
@media (width <= 530px) {
  .lp-start .start-unten.lp-titelunten { flex-direction: column; align-items: center; }
  .lp-spielkopf { flex-direction: column; align-items: flex-end; gap: 4px; }
  .lp-sammlung-klein { align-self: flex-end; }
  .lp-ladenname { max-width: calc(100vw - 147px); }
  .lp-ergebnis { flex-direction: column; }
  .lp-ergebniswahl .knopf, .lp-startwahl .knopf { flex-direction: column; gap: 4px; padding: 5px; }
  .lp-ergebniswahl .knopf > svg, .lp-startwahl .knopf > svg { width: 28px; height: 28px; flex: 0 0 28px; }
  .lp-tour .lp-fenster { display: none; }
}
@media (width >= 531px) and (height <= 470px) {
  .lp-ergebnis { justify-content: flex-end; }
  .lp-ergebnis .lp-status { margin-right: auto; }
}

