* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #103932; color: #fbfaf3; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body { overscroll-behavior: none; }
.versteckt { display: none !important; }
.seite { min-height: 100%; padding: max(24px, env(safe-area-inset-top)) 22px 28px; display: flex; flex-direction: column; gap: 14px; max-width: 520px; margin: 0 auto; }
.marke { font-weight: 900; letter-spacing: 2px; font-size: 18px; }
.marke span { color: #f6c945; }
h1 { font-size: 30px; line-height: 1.1; margin: 8px 0; }
h2 { font-size: 30px; margin: 6px 0; color: #f6c945; }
label { font-weight: 700; display: block; margin-bottom: 6px; }
input { width: 100%; font-size: 22px; padding: 14px 16px; border-radius: 14px; border: 3px solid #9fc7bd; background: #fff; color: #103932; font-weight: 700; }
input:focus { outline: none; border-color: #f6c945; }
button { font-family: inherit; cursor: pointer; }
.gross { width: 100%; margin-top: 14px; font-size: 24px; font-weight: 900; padding: 18px; border-radius: 16px; border: 0; background: #f6c945; color: #103932; box-shadow: 0 6px 0 #c99a17; }
.gross:active { transform: translateY(4px); box-shadow: 0 2px 0 #c99a17; }
.klein { font-size: 14px; color: #9fc7bd; }
.text { font-size: 19px; line-height: 1.4; }
.erklaerung { background: rgba(255,255,255,0.08); border-radius: 16px; padding: 14px 16px; font-size: 16px; }
.erklaerung h3 { margin: 0 0 6px; color: #f6c945; }
.erklaerung p { margin: 6px 0; }
#e-fehler { font-size: 17px; color: #ffb4a8; padding-left: 20px; }
#e-fehler li.ok { color: #9fe3c9; list-style: none; margin-left: -20px; }
.werbung { display: block; margin-top: 18px; text-align: center; color: #fbfaf3; text-decoration: none; background: #207162; border-radius: 16px; padding: 16px; font-size: 17px; }
.werbung b { color: #f6c945; font-size: 20px; }
.netz { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); background: #c62828; color: #fff; padding: 8px 16px; border-radius: 10px; font-size: 14px; z-index: 9; }

/* ---------- Steuerung ---------- */
.spiel { position: fixed; inset: 0; display: grid; grid-template-rows: auto auto auto 1fr 1.25fr; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom)); user-select: none; -webkit-user-select: none; touch-action: none; }
.oben { display: flex; align-items: center; gap: 10px; }
.tacho { background: #0b2b26; border-radius: 14px; padding: 6px 12px; text-align: center; min-width: 86px; }
.tacho b { font-size: 32px; display: block; line-height: 1; }
.tacho small { font-size: 12px; color: #9fc7bd; }
.tacho.zuschnell b { color: #ff6b5f; }
.schild { width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 6px solid #d32f2f; color: #111; font-weight: 900; font-size: 18px; display: grid; place-items: center; flex: none; }
.navi { flex: 1; background: #fff; color: #103932; border-radius: 14px; padding: 8px 12px; font-weight: 800; font-size: 18px; line-height: 1.15; }
.navi small { display: block; font-size: 13px; color: #5d6b68; font-weight: 600; }
.meldung { min-height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; text-align: center; padding: 4px 8px; }
.meldung.fehler { background: #c62828; }
.meldung.hinweis { background: #f6c945; color: #103932; }
.meldung.info, .meldung.gut { background: #207162; }
.blinker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tast { border: 0; border-radius: 16px; background: #2b5a52; color: #fbfaf3; font-size: 18px; font-weight: 800; padding: 12px; }
.tast.an { background: #ffb300; color: #103932; }
.blinker .tast.an { animation: blink 0.8s steps(2) infinite; }
@keyframes blink { 50% { background: #7a5800; color: #ffb300; } }
.lenken { display: grid; grid-template-columns: 1fr 0.8fr 1fr; gap: 10px; align-items: stretch; }
.pfeil { font-size: 42px; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pfeil small { font-size: 14px; margin-top: 4px; }
.wahl { display: grid; place-items: center; text-align: center; font-weight: 800; color: #9fc7bd; font-size: 15px; border: 2px dashed #2b5a52; border-radius: 16px; }
.pedale { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }
.pedal { border: 0; border-radius: 20px; font-size: 26px; font-weight: 900; color: #fff; box-shadow: inset 0 -8px 0 rgba(0,0,0,0.25); }
.bremse { background: #c62828; }
.gas { background: #2e9e57; }
.pedal.an { transform: scale(0.97); filter: brightness(1.25); box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25); }
.tast:active { filter: brightness(1.3); }

@media (orientation: landscape) and (max-height: 520px) {
  .spiel { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr 1fr; }
  .oben { grid-column: 1 / 3; }
  .meldung { grid-column: 1 / 3; min-height: 30px; }
  .blinker { grid-column: 1; grid-row: 3; }
  .lenken { grid-column: 1; grid-row: 4; }
  .pedale { grid-column: 2; grid-row: 3 / 5; }
}
