:root { color-scheme: light; --bg:#f2f6ee; --panel:#fff; --ink:#1d3025; --muted:#586b60; --green:#2e7d32; --edge:#d4e0d6; --shadow:0 18px 60px #11271d33; }
html[data-theme="dark"] { color-scheme:dark; --bg:#171c19; --panel:#242c27; --ink:#f0f5f1; --muted:#b4c1b7; --green:#68c67a; --edge:#435248; --shadow:0 18px 60px #0009; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:var(--bg); color:var(--ink); font:16px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif; }
button,select { font:inherit; }
button { color:inherit; cursor:pointer; }
.vh_header { height:64px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:8px clamp(12px,3vw,34px); background:linear-gradient(135deg,#226b30 0%,#43a047 55%,#66bb6a 100%); color:#fff; box-shadow:0 4px 20px #0002; position:relative; z-index:2; }
html[data-theme="dark"] .vh_header { background:linear-gradient(135deg,#1a1a1a 0%,#262626 55%,#4a2f0a 100%); }
.vh_back { justify-self:start; display:inline-flex; min-height:40px; align-items:center; padding:0 17px; border-radius:999px; background:#fff; color:#287a37; font-weight:800; text-decoration:none; box-shadow:0 2px 10px #0002; }
html[data-theme="dark"] .vh_back { color:#fb8c00; background:#1e1e1e; border:1px solid #fb8c00; }
.vh_brand { display:flex; align-items:center; gap:10px; }
.vh_brand img { width:40px; height:40px; }
.vh_brand h1 { margin:0; color:#fff; font-size:1.25rem; line-height:1.1; }
.vh_tools { justify-self:end; display:flex; align-items:center; gap:12px; }
.vh_language select { height:40px; min-width:100px; border:1px solid #ffffff70; border-radius:9px; padding:0 9px; color:#fff; background:#13592466; }
.vh_language option { color:#111; background:#fff; }
.vh_theme { width:74px; height:40px; display:flex; align-items:center; justify-content:space-around; position:relative; border:1px solid #ffffff88; border-radius:999px; background:#174d2670; color:#fff; padding:0; }
.vh_theme i { position:absolute; left:3px; top:3px; width:32px; height:32px; border-radius:50%; background:#fff; transition:transform .2s; }
.vh_theme[aria-checked="true"] i { transform:translateX(34px); }
.vh_main { width:min(1480px,100%); margin:0 auto; padding:12px clamp(8px,1.4vw,22px) 20px; }
.vh_stage { overflow:hidden; border:1px solid var(--edge); border-radius:18px; background:var(--panel); box-shadow:var(--shadow); }
.vh_hud { min-height:54px; display:flex; justify-content:space-between; align-items:center; gap:10px; padding:7px 10px; background:var(--panel); }
.vh_stats,.vh_hud_buttons { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.vh_pill { min-height:35px; display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border:1px solid var(--edge); border-radius:999px; background:color-mix(in srgb,var(--bg) 70%,var(--panel)); font-size:.84rem; }
.vh_pill b { color:var(--muted); font-size:.74rem; font-weight:650; }
.vh_pill strong { font-variant-numeric:tabular-nums; }
.vh_pill small { color:var(--muted); }
.vh_icon_btn { width:40px; height:40px; border:1px solid var(--edge); border-radius:12px; background:var(--panel); font-weight:800; }
.vh_icon_btn:hover,.vh_actions button:hover,.vh_small_menu>button:not(.vh_primary):hover { background:var(--bg); }
.vh_canvas_wrap { position:relative; overflow:hidden; background:#b5d991; }
/* Spielfeld: so breit wie die Buehne, aber nie hoeher als der Bildschirm erlaubt
   (Kopfzeile, HUD und Cockpit bleiben ohne Scrollen sichtbar). Das Seitenverhaeltnis
   passt sich an - die Kamera rechnet den sichtbaren Ausschnitt daraus. */
#world { width:100%; height:auto; aspect-ratio:1280 / 760; max-height:max(300px, calc(100dvh - 64px - 54px - var(--vh_unten, 150px) - 40px)); display:block; touch-action:none; }
.vh_mission_card { position:absolute; left:12px; bottom:12px; width:min(290px,calc(100% - 220px)); padding:10px 13px; border-radius:13px; background:#fffefaed; color:#203429; box-shadow:0 4px 16px #142b1e44; pointer-events:none; }
.vh_mission_card strong,.vh_mission_card span { display:block; }
.vh_mission_card strong { font-size:.96rem; }
.vh_mission_card span { margin-top:2px; font-size:.82rem; }
.vh_progress { height:5px; margin-top:8px; overflow:hidden; border-radius:5px; background:#d9e5dc; }
.vh_progress i { display:block; height:100%; width:0; border-radius:5px; background:#39a355; transition:width .25s; }
#map { position:absolute; right:12px; bottom:12px; width:min(188px,23vw); height:auto; border:2px solid #fff; border-radius:12px; background:#f6f4ddee; box-shadow:0 4px 16px #142b1e44; }
.vh_message { position:absolute; top:15%; left:50%; max-width:min(520px,85%); padding:10px 17px; border-radius:999px; opacity:0; transform:translate(-50%,-7px); transition:.2s; background:#193d29eF; color:#fff; font-weight:700; text-align:center; pointer-events:none; }
.vh_message.is_visible { opacity:1; transform:translate(-50%,0); }
.vh_message.is_danger { background:#a83b25ed; }
.vh_overlay { position:fixed; inset:64px 0 0; z-index:10; display:grid; place-items:center; overflow:auto; padding:20px; background:#142419bd; backdrop-filter:blur(3px); }
.vh_overlay[hidden] { display:none; }
.vh_menu { width:min(600px,100%); padding:clamp(20px,4vw,38px); border:1px solid #ffffff66; border-radius:22px; background:var(--panel); color:var(--ink); box-shadow:0 25px 80px #0006; }
.vh_menu h2 { margin:3px 0 6px; font-size:clamp(1.8rem,4vw,2.65rem); line-height:1.06; letter-spacing:-.035em; }
.vh_menu>p:not(.vh_kicker) { color:var(--muted); }
.vh_kicker { margin:0 0 4px; color:var(--green); font-size:.78rem; font-weight:850; letter-spacing:.11em; text-transform:uppercase; }
.vh_fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:20px 0 14px; }
.vh_fields label { display:grid; gap:5px; color:var(--muted); font-size:.82rem; font-weight:750; }
.vh_fields label:last-child { grid-column:1/-1; }
.vh_fields select { min-height:42px; width:100%; padding:7px 10px; border:1px solid var(--edge); border-radius:10px; color:var(--ink); background:var(--bg); }
.vh_actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.vh_actions .vh_primary { grid-column:1/-1; }
.vh_actions button,.vh_small_menu>button,.vh_dialog form button:not(.vh_close) { min-height:44px; border:1px solid var(--edge); border-radius:11px; padding:9px 14px; background:var(--panel); font-weight:750; }
.vh_primary { color:#fff!important; border-color:#287a39!important; background:linear-gradient(135deg,#247c37,#42a753)!important; box-shadow:0 5px 13px #287a3933; }
.vh_best { min-height:1em; margin:12px 0 0!important; text-align:center; font-size:.84rem; }
.vh_small_menu { width:min(440px,100%); text-align:center; }
.vh_small_menu>button { display:block; width:100%; margin-top:9px; }
.vh_note { margin:8px 6px 0; color:var(--muted); text-align:center; font-size:.8rem; }
.vh_footer { padding:12px 10px 20px; color:var(--muted); text-align:center; font-size:.82rem; }
.vh_footer a { color:var(--green); font-weight:700; }
.vh_touch { display:none; align-items:center; justify-content:space-between; padding:10px 7px; }
.vh_dpad,.vh_pedals { display:grid; grid-template-columns:repeat(3,44px); grid-template-rows:repeat(2,42px); gap:5px; }
.vh_dpad button,.vh_pedals button { border:1px solid var(--edge); border-radius:12px; background:var(--panel); font-size:1.15rem; font-weight:850; touch-action:none; user-select:none; }
.vh_dpad button:nth-child(1) { grid-column:1;grid-row:2; }.vh_dpad button:nth-child(2){grid-column:2;grid-row:1}.vh_dpad button:nth-child(3){grid-column:2;grid-row:2}.vh_dpad button:nth-child(4){grid-column:3;grid-row:2}
.vh_pedals { grid-template-columns:repeat(3,44px); grid-template-rows:44px; }.vh_pedals .vh_brake { background:#fff0e7;color:#a63f20; }
.vh_dialog { width:min(720px,calc(100% - 24px)); max-height:min(86vh,800px); overflow:auto; padding:28px; border:1px solid var(--edge); border-radius:20px; background:var(--panel); color:var(--ink); box-shadow:var(--shadow); }
.vh_dialog::backdrop { background:#101a14b5; backdrop-filter:blur(3px); }
.vh_dialog h2 { margin:4px 36px 14px 0; font-size:1.65rem; line-height:1.12; }
.vh_dialog h3 { margin-bottom:4px; }
.vh_dialog p { color:var(--muted); }
.vh_dialog .vh_close { position:sticky; float:right; top:0; width:40px; height:40px; margin:-12px -12px 0 10px; border:0; border-radius:50%; background:var(--bg); font-size:1.55rem; }
.vh_help_grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0; }
.vh_help_grid>div { padding:12px; border:1px solid var(--edge); border-radius:13px; background:var(--bg); }
.vh_help_grid p { margin:5px 0 0; font-size:.9rem; }
.vh_source_note { padding:11px; border-left:3px solid #dfaa38; border-radius:5px; background:color-mix(in srgb,#dfaa38 12%,var(--panel)); font-size:.86rem; }
.vh_dialog form:last-child { margin-top:18px; text-align:right; }
.vh_sign_grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.vh_sign { min-height:145px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:12px; border:1px solid var(--edge); border-radius:14px; background:var(--bg); text-align:center; }
.vh_sign img { width:70px; height:70px; object-fit:contain; }
.vh_sign strong { font-size:.9rem; }
.vh_sign p { margin:0; font-size:.78rem; }
.sr_only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media (max-width:800px) {
  .vh_header { height:60px; padding:7px 9px; grid-template-columns:minmax(90px,1fr) auto minmax(146px,1fr); gap:4px; }
  .vh_back { min-height:40px; padding:0 10px; font-size:.79rem; }
  .vh_brand { gap:5px; }.vh_brand img { width:33px;height:33px; }.vh_brand h1 { max-width:100px; font-size:.96rem; }
  .vh_tools { gap:5px; }.vh_language select { width:82px; min-width:82px; height:38px; font-size:.82rem; }.vh_theme { width:64px;height:38px; }.vh_theme i { width:30px;height:30px; }.vh_theme[aria-checked="true"] i{transform:translateX(26px)}
  .vh_main { padding:7px 6px 12px; }.vh_stage { border-radius:13px; }.vh_hud { align-items:flex-start; padding:6px; }
  .vh_overlay { inset:60px 0 0; padding:8px; }
  .vh_stats { gap:4px; }.vh_pill { min-height:31px; padding:3px 7px; font-size:.73rem; }.vh_pill b { font-size:.66rem; }.vh_hud_buttons { gap:4px; }.vh_icon_btn { width:38px;height:38px; }
  .vh_mission_card { left:6px;bottom:6px;width:calc(100% - 128px);padding:7px 9px; }.vh_mission_card strong{font-size:.83rem}.vh_mission_card span{font-size:.73rem}
  #map { right:6px;bottom:6px;width:112px; }.vh_note { font-size:.72rem; }.vh_touch { display:flex; }
}
@media (max-width:480px) {
  .vh_brand img { display:none; }.vh_brand h1 { max-width:72px;font-size:.76rem; }
  .vh_back { max-width:106px; padding:0 8px; font-size:.73rem; }
  .vh_stats { max-width:calc(100% - 164px); }.vh_pill { font-size:.68rem; gap:3px; padding-inline:6px; }
  .vh_fields { grid-template-columns:1fr; }.vh_fields label:last-child { grid-column:auto; }
  .vh_actions { grid-template-columns:1fr; }.vh_actions .vh_primary { grid-column:auto; }
  .vh_help_grid { grid-template-columns:1fr; }.vh_dialog { padding:22px 16px; }.vh_sign_grid { grid-template-columns:1fr 1fr; }
  .vh_touch { padding:8px 2px; }.vh_dpad,.vh_pedals { gap:3px; }.vh_dpad { grid-template-columns:repeat(3,40px);grid-template-rows:repeat(2,38px); }.vh_pedals { grid-template-columns:repeat(3,40px); }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important;transition:none!important; } }

/* Polizeikontrolle: blau-roter Rand wie ein Streifenwagen, Liste der Verstoesse. */
.vh_police { border-top:6px solid #1f4fa0; box-shadow:inset 0 2px 0 #d6352d, 0 18px 50px #0006; }
.vh_police .vh_kicker { color:#1f4fa0; }
.vh_police_list { margin:10px 0 14px; padding:0; list-style:none; text-align:left; display:grid; gap:6px; }
.vh_police_list li { padding:8px 10px; border-radius:10px; background:var(--bg); border:1px solid var(--edge); font-size:.92rem; line-height:1.35; }

/* Cockpit: Tacho mit Blinkerpfeilen, Warnblinker, Tempomat und Hupe. */
.vh_cockpit { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px 18px; padding:8px 12px; border-top:1px solid var(--edge); background:linear-gradient(180deg,color-mix(in srgb,var(--panel) 80%,#1b2420),var(--panel)); }
.vh_cockpit[hidden] { display:none; }
.vh_ck_tacho { display:flex; align-items:center; gap:6px; }
.vh_tacho { width:124px; height:124px; display:block; }
.vh_tacho_grund { fill:#1a1f1d; stroke:#3b4541; stroke-width:2; }
.vh_tacho_bahn { fill:none; stroke:#3a4440; stroke-width:4; stroke-linecap:round; }
.vh_tacho_limit { fill:none; stroke:#e5483a; stroke-width:4; stroke-linecap:round; }
.vh_tacho_strich { stroke:#9fb1a8; stroke-width:1.2; }
.vh_tacho_strich.gross { stroke:#f2f6f3; stroke-width:2; }
.vh_tacho_zahl { fill:#d9e3de; font:700 8.5px system-ui,sans-serif; text-anchor:middle; }
.vh_tacho_nadel path { fill:#ff8a2b; filter:drop-shadow(0 0 2px #ff8a2b88); }
.vh_tacho_nabe { fill:#2c3431; stroke:#ff8a2b; stroke-width:1.5; }
.vh_tacho_cc { fill:#5fd37a; }
.vh_tacho_wert { fill:#fff; font:800 17px system-ui,sans-serif; text-anchor:middle; font-variant-numeric:tabular-nums; }
.vh_tacho_einheit { fill:#9fb1a8; font:700 8px system-ui,sans-serif; text-anchor:middle; letter-spacing:.04em; }
.vh_tacho_einheit.is_cc { fill:#5fd37a; }
.vh_ck_blink { width:46px; height:46px; display:grid; place-items:center; padding:0; border:1px solid var(--edge); border-radius:50%; background:#1a1f1d; color:#3f5a48; touch-action:none; user-select:none; }
.vh_ck_blink svg { width:26px; height:26px; fill:currentColor; }
.vh_ck_blink[aria-pressed="true"] { color:#2f7a45; border-color:#3cc36a; }
.vh_ck_blink.is_on { color:#46f07a; box-shadow:0 0 14px #46f07a99; }
.vh_ck_tasten { display:flex; align-items:center; flex-wrap:wrap; justify-content:center; gap:8px; }
.vh_ck_cruise { display:flex; align-items:center; gap:4px; padding:3px; border:1px solid var(--edge); border-radius:13px; background:color-mix(in srgb,var(--bg) 60%,var(--panel)); }
.vh_ck_btn { min-height:42px; display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border:1px solid var(--edge); border-radius:11px; background:var(--panel); font-size:.86rem; font-weight:750; touch-action:none; user-select:none; }
.vh_ck_btn:hover { background:var(--bg); }
.vh_ck_btn kbd { padding:0 5px; border:1px solid var(--edge); border-radius:5px; color:var(--muted); font:700 .68rem system-ui,sans-serif; }
.vh_ck_klein { width:42px; justify-content:center; padding:0; font-size:1.25rem; }
.vh_ck_btn[aria-pressed="true"] { border-color:#3cc36a; background:color-mix(in srgb,#3cc36a 16%,var(--panel)); }
#ckCruiseVal { min-width:2.2em; font-variant-numeric:tabular-nums; }
.vh_ck_hazard svg { width:20px; height:20px; color:#d6352d; }
.vh_ck_hazard[aria-pressed="true"] { border-color:#d6352d; background:color-mix(in srgb,#d6352d 12%,var(--panel)); }
.vh_ck_hazard.is_on svg { color:#ff6a3d; filter:drop-shadow(0 0 5px #ff6a3dcc); }
.vh_ck_horn.is_on { transform:scale(.95); background:var(--bg); }
.vh_ck_klingel { display:none!important; }
.vh_ck_kurz { display:none; }
.vh_cockpit[data-fahrzeug="bicycle"] .vh_ck_hupe { display:none!important; }
.vh_cockpit[data-fahrzeug="bicycle"] .vh_ck_klingel { display:inline!important; }
.vh_cockpit:not([data-fahrzeug="car"]) .vh_ck_hazard,
.vh_cockpit:not([data-fahrzeug="car"]) .vh_ck_cruise { display:none; }
@media (max-width:800px) {
  .vh_cockpit { gap:6px 10px; padding:6px; }
  .vh_tacho { width:104px; height:104px; }
  .vh_ck_blink { width:44px; height:44px; }
  .vh_ck_btn { min-height:40px; padding:4px 9px; font-size:.78rem; }
  .vh_ck_btn kbd { display:none; }
  .vh_ck_klein { width:40px; }
}

/* ------------------------------------------------------------ Startmenue */
.vh_menu_haupt { width:min(760px,100%); max-height:calc(100dvh - 100px); overflow:auto; }
.vh_menu_kopf { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.vh_menu_kopf h2 { margin-bottom:4px; }
.vh_tagline { margin:0; color:var(--muted); }
.vh_menu_werkzeug { display:flex; flex-direction:column; gap:6px; flex-shrink:0; }
.vh_chip { min-height:40px; padding:6px 12px; border:1px solid var(--edge); border-radius:999px; background:var(--panel); font-size:.85rem; font-weight:750; white-space:nowrap; }
.vh_chip:hover { background:var(--bg); }
.vh_chip[aria-pressed="true"] { border-color:#3cc36a; }
.vh_gefahr { color:#b23a26; }
.vh_reiter { display:flex; gap:6px; margin:16px 0 4px; border-bottom:2px solid var(--edge); }
.vh_reiter_btn { min-height:44px; padding:8px 16px; border:0; border-bottom:3px solid transparent; margin-bottom:-2px; background:none; font-weight:800; color:var(--muted); }
.vh_reiter_btn[aria-selected="true"] { color:var(--green); border-bottom-color:var(--green); }
.vh_abschnitt { margin:14px 0 8px; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.vh_fahrzeugwahl { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.vh_fahrzeug { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-height:112px; padding:10px 11px; border:2px solid var(--edge); border-radius:14px; background:var(--bg); text-align:left; }
.vh_fahrzeug:hover { border-color:color-mix(in srgb,var(--green) 50%,var(--edge)); }
.vh_fahrzeug[aria-checked="true"] { border-color:var(--green); background:color-mix(in srgb,var(--green) 12%,var(--panel)); box-shadow:0 4px 14px #287a3922; }
.vh_fahrzeug .vh_fz_icon { font-size:1.9rem; line-height:1.1; }
.vh_fahrzeug strong { font-size:.95rem; }
.vh_fahrzeug small { color:var(--muted); font-size:.74rem; line-height:1.3; }
.vh_fahrzeug .vh_fz_stand { margin-top:auto; padding-top:4px; color:var(--green); font-size:.72rem; font-weight:800; }
.vh_segment { display:flex; gap:4px; padding:4px; border:1px solid var(--edge); border-radius:13px; background:var(--bg); }
.vh_segment button { flex:1; min-height:40px; border:0; border-radius:10px; background:none; font-weight:800; color:var(--muted); }
.vh_segment button[aria-checked="true"] { background:var(--panel); color:var(--ink); box-shadow:0 2px 8px #0002; }
.vh_segment_klein { flex:0 1 auto; }
.vh_segment_klein button { padding:0 12px; }
.vh_routen { display:grid; gap:6px; margin-top:8px; }
.vh_route { display:grid; grid-template-columns:34px 1fr auto; align-items:center; gap:10px; min-height:52px; padding:8px 11px; border:2px solid var(--edge); border-radius:12px; background:var(--panel); text-align:left; }
.vh_route[aria-checked="true"] { border-color:var(--green); background:color-mix(in srgb,var(--green) 10%,var(--panel)); }
.vh_route .vh_nr { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--bg); font-weight:850; }
.vh_route.ist_erledigt .vh_nr { background:#3cc36a; color:#fff; }
.vh_route strong { display:block; font-size:.92rem; }
.vh_route small { color:var(--muted); font-size:.76rem; }
.vh_route .vh_rekord { color:var(--green); font-size:.78rem; font-weight:800; white-space:nowrap; }
.vh_frei_text { margin:0; padding:10px 12px; border-radius:12px; background:var(--bg); color:var(--muted); font-size:.88rem; }
.vh_start_btn { display:block; width:100%; min-height:52px; margin-top:14px; border-radius:13px; font-size:1.08rem; font-weight:850; }
.vh_menu_fuss { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin-top:14px; }
.vh_menu_fuss button { min-height:44px; border:1px solid var(--edge); border-radius:11px; padding:6px 8px; background:var(--panel); font-size:.82rem; font-weight:750; }
.vh_menu_fuss button:hover { background:var(--bg); }
.vh_versteckt { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.vh_fortschritt { display:grid; gap:12px; margin:12px 0; }
.vh_kacheln { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.vh_kachel { padding:10px; border:1px solid var(--edge); border-radius:12px; background:var(--bg); }
.vh_kachel b { display:block; font-size:1.3rem; font-variant-numeric:tabular-nums; }
.vh_kachel span { color:var(--muted); font-size:.76rem; }
.vh_fortschritt h4 { margin:4px 0 0; font-size:.86rem; }
.vh_auftragsliste { display:grid; grid-template-columns:repeat(2,1fr); gap:5px 12px; margin:0; padding:0; list-style:none; font-size:.86rem; }
.vh_auftragsliste li { display:flex; justify-content:space-between; gap:8px; padding:5px 0; border-bottom:1px dashed var(--edge); }
.vh_auftragsliste .ist_erledigt { color:var(--green); font-weight:750; }
/* Pause und Ergebnis */
.vh_werte { display:grid; grid-template-columns:repeat(2,1fr); gap:6px; margin:12px 0; text-align:left; }
.vh_werte div { padding:7px 10px; border-radius:10px; background:var(--bg); }
.vh_werte dt { color:var(--muted); font-size:.72rem; font-weight:750; }
.vh_werte dd { margin:0; font-weight:850; font-variant-numeric:tabular-nums; }
.vh_knopfraster { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:9px; }
.vh_knopfraster button { min-height:44px; border:1px solid var(--edge); border-radius:11px; padding:8px 10px; background:var(--panel); font-weight:750; }
.vh_knopfraster button:hover { background:var(--bg); }
/* Einstellungen */
.vh_einstellungen h3 { margin:18px 0 6px; }
.vh_einst_zeile { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:46px; padding:4px 0; border-bottom:1px solid var(--edge); }
.vh_einst_zeile > span { flex:1; }
.vh_einst_zeile input[type=range] { width:min(220px,42vw); accent-color:var(--green); }
.vh_einst_zeile output { width:3em; text-align:right; font-variant-numeric:tabular-nums; color:var(--muted); }
.vh_schalter { position:relative; width:56px; height:32px; flex-shrink:0; padding:0; border:1px solid var(--edge); border-radius:999px; background:var(--bg); }
.vh_schalter i { position:absolute; left:3px; top:3px; width:24px; height:24px; border-radius:50%; background:#9aa3aa; transition:transform .15s,background .15s; }
.vh_schalter[aria-checked="true"] { background:color-mix(in srgb,var(--green) 25%,var(--panel)); border-color:var(--green); }
.vh_schalter[aria-checked="true"] i { transform:translateX(24px); background:var(--green); }
.vh_tasten { display:grid; grid-template-columns:repeat(2,1fr); gap:6px 14px; margin:8px 0 14px; font-size:.88rem; }
.vh_tasten div { display:flex; align-items:center; gap:8px; }
.vh_tasten kbd { min-width:2.1em; padding:2px 7px; border:1px solid var(--edge); border-bottom-width:3px; border-radius:7px; background:var(--bg); font:800 .78rem system-ui,sans-serif; text-align:center; }
#map.ist_gross { width:min(300px,34vw); }
@media (max-width:640px) {
  .vh_fahrzeugwahl { grid-template-columns:repeat(2,1fr); }
  .vh_menu_fuss { grid-template-columns:repeat(2,1fr); }
  .vh_kacheln { grid-template-columns:repeat(2,1fr); }
  .vh_auftragsliste, .vh_tasten { grid-template-columns:1fr; }
  .vh_menu_kopf { flex-direction:column; }
  .vh_menu_werkzeug { flex-direction:row; }
  .vh_menu_haupt { max-height:none; }
}

/* ------------------------------------------------------------- Vollbild */
/* Echte Vollbild-API auf der Buehne - oder (iPhone) eine feste Ebene ueber
   allem. Die Welt fuellt dann den ganzen Bildschirm; HUD oben, Cockpit unten
   und die Touch-Tasten liegen halbtransparent darueber. */
.vh_vollbild { overflow:hidden; }
.vh_vollbild .vh_stage { position:fixed; inset:0; z-index:40; width:100vw; height:100dvh; border:0; border-radius:0; box-shadow:none; background:#0d120f; }
.vh_vollbild .vh_canvas_wrap { position:absolute; inset:0; }
.vh_vollbild #world { width:100%; height:100%; max-height:none; aspect-ratio:auto; }
.vh_vollbild .vh_hud { position:absolute; left:0; right:0; top:0; z-index:5; min-height:0; padding:8px 10px; background:linear-gradient(180deg,#0008,#0000); pointer-events:none; }
.vh_vollbild .vh_hud > * { pointer-events:auto; }
.vh_vollbild .vh_pill { background:#101a14cc; border-color:#ffffff33; color:#fff; backdrop-filter:blur(4px); }
.vh_vollbild .vh_pill b, .vh_vollbild .vh_pill small { color:#c7d3cb; }
.vh_vollbild .vh_icon_btn { background:#101a14cc; border-color:#ffffff33; color:#fff; }
.vh_vollbild .vh_cockpit { position:absolute; left:50%; bottom:max(8px, env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:5; width:max-content; max-width:calc(100% - 16px); border:1px solid #ffffff2a; border-radius:18px; background:#101a14d9; color:#eef4f0; backdrop-filter:blur(6px); }
.vh_vollbild .vh_ck_btn, .vh_vollbild .vh_ck_cruise { background:#ffffff12; border-color:#ffffff30; color:#eef4f0; }
.vh_vollbild .vh_ck_btn kbd { color:#c7d3cb; border-color:#ffffff40; }
.vh_vollbild .vh_mission_card { bottom:auto; top:calc(var(--vh_oben, 56px) + 8px); }
.vh_vollbild #map { bottom:auto; top:calc(var(--vh_oben, 56px) + 8px); }
.vh_vollbild .vh_message { top:calc(var(--vh_oben, 56px) + 90px); }
.vh_vollbild .vh_overlay { position:absolute; inset:0; }
.vh_vollbild .vh_touch { position:absolute; left:0; right:0; bottom:0; z-index:6; padding:10px max(10px, env(safe-area-inset-left)); pointer-events:none; }
.vh_vollbild .vh_touch > * { pointer-events:auto; }
.vh_vollbild .vh_dpad button, .vh_vollbild .vh_pedals button { background:#101a14b3; border-color:#ffffff40; color:#fff; }
.vh_touchgeraet .vh_touch { display:flex; }
/* Vollbild auf Touchgeraeten: kompaktes Cockpit in einer Zeile zwischen
   Steuerkreuz und Pedalen, Auftrag und Karte oben klein. */
.vh_vollbild.vh_touchgeraet .vh_cockpit { flex-wrap:nowrap; gap:5px; padding:4px 8px; bottom:max(8px, env(safe-area-inset-bottom)); }
.vh_vollbild.vh_touchgeraet .vh_ck_tacho { gap:3px; }
.vh_vollbild.vh_touchgeraet .vh_tacho { width:78px; height:78px; }
.vh_vollbild.vh_touchgeraet .vh_ck_blink { width:40px; height:40px; }
.vh_vollbild.vh_touchgeraet .vh_ck_tasten { flex-wrap:nowrap; gap:4px; }
.vh_vollbild.vh_touchgeraet .vh_ck_text, .vh_vollbild.vh_touchgeraet .vh_ck_btn kbd { display:none!important; }
.vh_vollbild.vh_touchgeraet .vh_ck_kurz { display:inline; font-size:.72rem; color:#9fb1a8; }
.vh_vollbild.vh_touchgeraet .vh_ck_btn { min-height:40px; padding:4px 8px; gap:4px; }
.vh_vollbild.vh_touchgeraet .vh_ck_klein { width:36px; }
.vh_vollbild.vh_touchgeraet .vh_ck_cruise { padding:2px; gap:3px; }
.vh_vollbild.vh_touchgeraet .vh_mission_card { top:calc(var(--vh_oben, 48px) + 6px); bottom:auto; width:min(250px,38%); padding:7px 10px; }
.vh_vollbild.vh_touchgeraet #map { top:calc(var(--vh_oben, 48px) + 6px); bottom:auto; width:120px; }
.vh_vollbild.vh_touchgeraet .vh_pill b { display:none; }
.vh_vollbild.vh_touchgeraet #map.ist_gross { width:min(220px,30vw); }
.vh_vollbild.vh_touchgeraet .vh_hud { padding:5px 6px; }
.vh_vollbild.vh_touchgeraet .vh_pill { min-height:30px; padding:2px 8px; font-size:.74rem; }
.vh_vollbild.vh_touchgeraet .vh_icon_btn { width:40px; height:40px; }
@media (orientation:portrait) {
  .vh_vollbild.vh_touchgeraet .vh_cockpit { bottom:118px; }
  .vh_vollbild.vh_touchgeraet .vh_mission_card { width:calc(100% - 150px); }
}
@media (max-height:560px) { .vh_vollbild:not(.vh_touchgeraet) .vh_cockpit { transform:translateX(-50%) scale(.8); transform-origin:bottom center; } }
/* Startmenue kompakt: passt auf 1280x800 ohne Scrollen. */
.vh_menu_haupt { padding:20px 24px; }
.vh_menu_haupt h2 { font-size:clamp(1.6rem,3.4vw,2.1rem); }
.vh_menu_haupt .vh_tagline { font-size:.88rem; line-height:1.35; }
.vh_menu_haupt .vh_reiter { margin-top:10px; }
.vh_menu_haupt .vh_abschnitt { margin:10px 0 6px; }
.vh_fahrzeug { min-height:0; padding:8px 10px; }
.vh_fahrzeug .vh_fz_icon { font-size:1.6rem; }
.vh_fahrzeug small { font-size:.71rem; }
.vh_route { min-height:46px; padding:6px 10px; }
.vh_start_btn { min-height:48px; margin-top:10px; }
.vh_menu_fuss { margin-top:10px; }
.vh_menu_haupt .vh_best { margin-top:8px!important; }
@media (max-width:640px) { .vh_kachel { padding:7px 9px; } .vh_kachel b { font-size:1.05rem; } }

/* ==================================================================== THEMA
   Seitenkulisse + JUPI-Leiste im Spiel-Look (26.10.2026).
   Muster: Schatzkarte / Raetselrakete / Artikel-Faenger - der Seitenrand
   traegt den Stil des Spiels, die Kopfzeile ist die JUPI-Leiste in
   Spieloptik (links "Alle Spiele", mittig Logo + Name, rechts Sprachwahl
   und Dark-Mode-Schalter; AGENTS.md 3.13.2).
   Die Kulisse ist eine kachelbare Stadtplan-Kachel (kulisse.svg, Generator
   .zcode/verkehrshelden-kulisse.cjs) - dieselbe Draufsicht-Welt wie im Spiel.
   Farben aus dem Paket-Logo: Asphalt-Grau, Ortstafel-Weiss, Signalblau
   #14539b, Leitlinien-Creme #f2efe2, Wiesengruen #2e7d32. */

:root {
  --vh_asphalt_oben:#4a544d;
  --vh_asphalt_mitte:#2e3832;
  --vh_asphalt_unten:#1d2521;
  --vh_asphalt_kante:#111714;
  --vh_lane:#f2efe2;
  --vh_sign_blue:#14539b;
  --vh_sign_blue_tief:#0e3f78;
  --vh_sign_plate:#fbfaf2;
  --vh_sign_plate_unten:#eef0e4;
  --vh_sign_ink:#123a78;
  --vh_kulisse_grund:#e4ebd8;
}

/* ---- Seitenhintergrund: kachelbare Stadtplan-Kulisse ---- */
/* Der Rahmen ist so breit wie das Spielfeld gezeichnet ist (1280 Einheiten):
   auf grossen Fenstern bleibt links und rechts die Stadtkarte sichtbar. */
.vh_main { width:min(1280px,100%); }
body { background-color:var(--vh_kulisse_grund); }
.vh_kulisse {
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:url(kulisse.svg) repeat;
  /* Das Bild ist die 560er-Kachel 4x verspiegelt - erst nach 1120 px
     wiederholt sich die Stadt, sonst sieht man dasselbe Haus viermal. */
  background-size:1120px 1120px;
}
/* Weiche Mitte: das Spielfeld steht ruhig, der Rand darf leben. */
.vh_kulisse::after {
  content:""; position:absolute; inset:0;
  background:radial-gradient(125% 78% at 50% 30%, #ffffff6b 0%, #ffffff26 44%, #0e24160a 100%);
}
html[data-theme="dark"] body { background-color:#0d1310; }
html[data-theme="dark"] .vh_kulisse { filter:brightness(.52) saturate(.5); }
html[data-theme="dark"] .vh_kulisse::after {
  background:radial-gradient(125% 78% at 50% 30%, #0a120e73 0%, #0a120e59 45%, #060b0873 100%);
}

/* ---- JUPI-Leiste: Asphalt-Konsole mit Leitlinie ---- */
/* Zwei Selektoren, weil die Grunddatei fuer den Dunkelmodus eigene
   html[data-theme="dark"]-Regeln hat (hoehere Spezifitaet als .vh_header). */
.vh_header, html[data-theme="dark"] .vh_header {
  background:
    repeating-linear-gradient(118deg, #ffffff0a 0 2px, #ffffff00 2px 7px),
    radial-gradient(130% 190% at 50% -70%, #ffffff24 0%, #ffffff00 62%),
    linear-gradient(180deg, var(--vh_asphalt_oben) 0%, var(--vh_asphalt_mitte) 52%, var(--vh_asphalt_unten) 100%);
  color:#f4f7f2;
  box-shadow:inset 0 1px 0 #ffffff2b, inset 0 -7px 0 var(--vh_asphalt_kante), 0 6px 20px #0a140f5c;
}
html[data-theme="dark"] .vh_header {
  background:
    repeating-linear-gradient(118deg, #ffffff08 0 2px, #ffffff00 2px 7px),
    radial-gradient(130% 190% at 50% -70%, #ffffff17 0%, #ffffff00 62%),
    linear-gradient(180deg, #333c37 0%, #1f2723 52%, #141a17 100%);
}
/* Leitlinie der Fahrbahn am unteren Rand - 13 an / 13 aus wie im Spiel. */
.vh_header::after {
  content:""; position:absolute; left:0; right:0; bottom:2px; height:3px;
  background:repeating-linear-gradient(90deg, var(--vh_lane) 0 13px, #f2efe200 13px 26px);
  opacity:.62;
}
/* "Alle Spiele" als blaue Hinweistafel (österreichische Wegweisung). */
.vh_back, html[data-theme="dark"] .vh_back {
  background:linear-gradient(180deg, #1a5da8, var(--vh_sign_blue) 55%, var(--vh_sign_blue_tief));
  color:#ffffff; border:2px solid #eaf1f8; border-radius:9px;
  box-shadow:0 2px 0 #05131f66;
  text-shadow:0 1px 0 #00000045;
}
.vh_back:hover, .vh_back:focus-visible,
html[data-theme="dark"] .vh_back:hover, html[data-theme="dark"] .vh_back:focus-visible {
  background:linear-gradient(180deg, #1d67b8, var(--vh_sign_blue_tief));
  color:#ffffff;
}
/* Mittig die Ortstafel: weisses Schild mit blauer Doppelkante. */
.vh_brand {
  gap:9px; padding:3px 14px 3px 7px; border-radius:9px;
  background:linear-gradient(180deg, #ffffff, var(--vh_sign_plate) 60%, var(--vh_sign_plate_unten));
  border:2px solid var(--vh_sign_blue);
  box-shadow:0 2px 0 #05131f59, inset 0 0 0 2px #ffffff;
}
.vh_brand img { width:34px; height:34px; filter:drop-shadow(0 1px 0 #00000022); }
.vh_brand h1 {
  color:var(--vh_sign_ink); font-size:1.16rem; letter-spacing:.004em;
  text-shadow:0 1px 0 #ffffff;
}
html[data-theme="dark"] .vh_brand {
  background:linear-gradient(180deg, #f4f5ee, #e2e6da);
  border-color:#0f4380;
}
html[data-theme="dark"] .vh_brand h1 { color:#0d2f5c; }

/* Sprachwahl und Dark-Mode-Schalter als Bedienschilder der Konsole. */
.vh_language select {
  height:40px; min-width:106px; border-radius:9px; padding:0 8px;
  border:2px solid #eaf1f8; background:var(--vh_sign_plate); color:var(--vh_sign_ink);
  font-weight:750; box-shadow:0 2px 0 #05131f59;
}
.vh_language select:hover, .vh_language select:focus-visible { background:#fff; }
.vh_theme {
  width:74px; height:40px; gap:6px; border:2px solid #eaf1f8;
  background:linear-gradient(180deg, #3d4a42, #1b2420);
  box-shadow:0 2px 0 #05131f59, inset 0 1px 0 #ffffff26;
  color:#eef3ec;
}
/* Zwei Lampen wie an einer Ampel: die aktive leuchtet, die andere bleibt blass.
   Der runde Schieber (i) wird dafuer nicht gebraucht. */
.vh_theme i { display:none; }
.vh_theme span {
  width:24px; height:24px; display:grid; place-items:center;
  border-radius:50%; font-size:.78rem; line-height:1; opacity:.34;
  transition:opacity .15s, box-shadow .15s, background .15s;
}
.vh_theme[aria-checked="false"] span:first-of-type {
  opacity:1; background:radial-gradient(circle at 35% 30%, #fff7cc, #ffcf3d 70%, #f0b21f);
  box-shadow:0 0 9px #ffce3da8;
}
.vh_theme[aria-checked="true"] span:last-of-type {
  opacity:1; background:radial-gradient(circle at 35% 30%, #e7efff, #a9bde5 70%, #8ba2cf);
  box-shadow:0 0 9px #a9bde5a8;
}
.vh_theme[aria-checked="true"] { background:linear-gradient(180deg, #26313a, #131a16); }

/* ---- Fuss als kleines Schild auf dem Stadtplan ---- */
.vh_footer {
  width:fit-content; max-width:calc(100% - 16px); margin:0 auto 10px;
  padding:7px 16px; border-radius:999px;
  background:color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow:0 2px 10px #0d1a1230;
  color:var(--muted);
}
.vh_footer a { color:var(--green); }
html[data-theme="dark"] .vh_footer { background:#1b241fdd; color:#b9c7bd; }
html[data-theme="dark"] .vh_footer a { color:#7fd18f; }

/* ---- Schmale Fenster: Leiste bleibt 60 px hoch und passt ---- */
@media (max-width:800px) {
  .vh_brand { padding:2px 9px 2px 5px; gap:6px; }
  .vh_brand img { width:28px; height:28px; }
  .vh_brand h1 { max-width:124px; font-size:1rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .vh_back { padding:0 11px; font-size:.79rem; }
  .vh_language select { width:92px; min-width:92px; font-size:.82rem; padding:0 6px; }
  .vh_theme { width:64px; }
  .vh_theme i { width:28px; height:28px; top:2px; left:2px; }
  .vh_theme[aria-checked="true"] i { transform:translateX(26px); }
}
/* Ganz schmal: die mittlere Spalte bekommt den freien Platz, damit der
   Spielname nicht mehr abgeschnitten wird (vorher "Verkehrshel..."). */
@media (max-width:480px) {
  .vh_header { grid-template-columns:auto minmax(0,1fr) auto; gap:5px; padding-inline:8px; }
  .vh_brand { padding:2px 8px; justify-self:center; min-width:0; }
  .vh_brand h1 { max-width:none; font-size:.86rem; }
  .vh_back { max-width:112px; padding:0 8px; font-size:.7rem; }
  .vh_language select { width:78px; min-width:78px; font-size:.74rem; padding:0 4px; }
  .vh_theme { width:56px; }
  .vh_theme i { width:26px; height:26px; }
  .vh_theme[aria-checked="true"] i { transform:translateX(22px); }
  .vh_theme span { font-size:.72rem; }
}
