/* Erweiterte Stadt: Fahrpedale, ÖV und Rundkurs auf dem Handy. */
.stadt-dialog{position:fixed;inset:0;z-index:37;display:none;align-items:center;justify-content:center;padding:12px;box-sizing:border-box;background:rgba(14,30,28,.8)}
.stadt-karte{background:#fffdf6;color:#304d39;border-radius:20px;padding:18px;width:100%;max-width:660px;max-height:calc(100dvh - 24px);overflow-y:auto;box-sizing:border-box}.stadt-kopf{display:flex;align-items:center;gap:12px;justify-content:space-between}.stadt-kopf h2{margin:0;font-size:1.25rem}.stadt-karte p{font-size:.9rem;line-height:1.45}.stadt-karte button{min-height:44px;border:0;border-radius:12px;padding:10px 14px;color:#304d39;background:#e5eddf;cursor:pointer;font-weight:800}.stadt-schliessen{min-width:44px}.oev-linie{margin-top:12px;border:1px solid #ced9c7;border-radius:14px;padding:12px}.oev-linie h3{margin:0 0 8px;font-size:1rem}.oev-linie li{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:6px 0;font-size:.85rem}.oev-linie ul{list-style:none;padding:0;margin:0}.oev-linie small{display:block;color:#607365}.linie-marke{display:inline-block;border-radius:7px;color:#fff;padding:5px 8px;margin-right:6px}.stadt-schnell{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.stadt-schnell button{flex:1;min-width:130px}.stadt-info{color:#607365}
#stadtAktion{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(76px + env(safe-area-inset-bottom));z-index:17;display:none;min-height:48px;border:0;border-radius:15px;padding:12px 18px;font-weight:900;background:#e6bc62;color:#243c2c;box-shadow:0 6px 18px #0003;cursor:pointer;max-width:calc(100vw - 280px)}
.stadt-fahrt-hud{position:fixed;top:calc(64px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:17;display:none;align-items:center;gap:8px;box-sizing:border-box;width:260px;max-width:calc(100vw - 290px);padding:8px 10px;border-radius:14px;background:rgba(25,50,48,.96);color:#fffdf6;box-shadow:0 4px 18px #0003;font-size:.8rem}.stadt-fahrt-hud>div{min-width:0;flex:1}.stadt-fahrt-hud b,.stadt-fahrt-hud small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stadt-fahrt-hud small{margin-top:4px}.stadt-fahrt-hud button{width:44px;min-height:44px;flex-shrink:0;border:0;border-radius:10px;background:#ffffff20;color:inherit;cursor:pointer;font-size:1rem}
#fahrPedale{position:fixed;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:18;display:none;gap:10px}#fahrPedale button{width:66px;height:64px;border:2px solid #ffffff90;border-radius:18px;background:#213e32;color:#fffdf6;font-weight:900;font-size:.85rem;box-shadow:0 4px 14px #0004;touch-action:none;user-select:none}#fahrPedale #fahrBremse{background:#75463a}#fahrPedale button.aktiv{background:#d9b35f;color:#20382d;transform:translateY(2px)}
body.stadt-fahren #fahrPedale{display:flex}body.stadt-fahren #modeBtn{display:none!important}body.stadt-fahren #zoomBtns{right:12px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;flex-direction:row!important;gap:8px!important}body.stadt-fahren #vollBtn{position:static;right:auto;bottom:auto}body.stadt-fahren #nitroBtn,body.stadt-fahren #hornBtn,body.stadt-fahren #lieferBtn{width:44px!important;height:44px!important;top:calc(64px + env(safe-area-inset-top))!important;bottom:auto!important;font-size:1rem!important}body.stadt-fahren #nitroBtn{right:12px!important}body.stadt-fahren #hornBtn{right:64px!important}body.stadt-fahren #lieferBtn{right:116px!important}body.stadt-fahren #rallyHud,body.stadt-fahren #rennenHud{width:200px;max-width:calc(100vw - 320px)}body.stadt-fahren #exitCar{bottom:calc(14px + env(safe-area-inset-bottom))!important}
body.stadt-oev #joy,body.stadt-oev #modeBtn,body.stadt-oev #crimeBtn,body.stadt-oev #tragBtn,body.stadt-oev #growBtn,body.stadt-oev #emoteToggle{display:none!important}
@media(max-height:420px){.stadt-karte{padding:12px}.stadt-karte h2{font-size:1.1rem}.oev-linie{padding:10px}.stadt-fahrt-hud{font-size:.75rem}}
#introCard>div{max-height:calc(100dvh - 24px);overflow-y:auto;box-sizing:border-box}
body.stadt-fahren #speedo{left:auto!important;right:12px!important;bottom:calc(152px + env(safe-area-inset-bottom))!important;transform:none!important}
.karten-werkzeuge{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.karten-werkzeuge button{border:0;border-radius:12px;min-width:44px;min-height:44px;padding:8px 12px;background:#fff9e9;color:#304d39;font-weight:800;cursor:pointer}#bigmapWrap{gap:6px!important}#bigmap{max-height:66vh!important}
.oev-linie summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:900;list-style:none}.oev-linie summary:after{content:'＋';margin-left:auto}.oev-linie[open] summary:after{content:'−'}.oev-linie summary::-webkit-details-marker{display:none}
#bigmap{max-height:calc(100dvh - 152px)!important;min-height:0}
@media(max-height:420px){.oev-linie{padding:4px 10px;margin-top:6px}.stadt-karte p{font-size:.8rem;line-height:1.3;margin:8px 0}}

/* Das Album bleibt auch auf kleinen Bildschirmen scrollbar und bedienbar. */
.stadt-album{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.stadt-album article{border:1px solid #cdd9cc;border-radius:14px;overflow:hidden;background:#f3f1e5}.stadt-album h3{font-size:.9rem;padding:10px;margin:0}.stadt-album img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.album-leer{aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;background:#e1e8dc;color:#5b6b5b;font-size:.8rem}.stadt-album button{display:block;width:calc(100% - 16px);margin:8px;min-height:48px}.stadt-karte progress{width:100%;height:12px;accent-color:#477e68}.album-fortschritt{font-weight:900}.stadt-ruhe{display:flex;align-items:center;gap:10px;min-height:48px;font-size:.85rem;cursor:pointer}.stadt-ruhe input{width:24px;height:24px;flex-shrink:0}
@media(max-width:380px){.stadt-album{grid-template-columns:1fr}}
.stadt-karte{display:flex;flex-direction:column;overflow:hidden}.stadt-kopf{flex-shrink:0;background:#fffdf6;padding-bottom:8px}.stadt-karte>p{flex-shrink:0}#stadtInhalt{overflow-y:auto;min-height:0;overscroll-behavior:contain}

@media(max-width:900px) and (orientation:portrait){.stadt-dialog{z-index:71}}
