/* HexRide – projekteigene Klassen. Die Basis (Tokens, Karten, Buttons …) steht
   unverändert in ds.css; hier nur Ergänzungen für die App auf dem iPhone. */

@font-face{font-family:"Inter"; font-style:normal; font-display:swap; font-weight:100 900;
  src:url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter"; font-style:normal; font-display:swap; font-weight:100 900;
  src:url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --tabbar:58px;
  --safe-t:env(safe-area-inset-top,0px);
  --safe-b:env(safe-area-inset-bottom,0px);
  --glass:rgba(255,255,255,.78);
  --map-bg:#e9e9ec;
}
:root.dunkel{
  --glass:rgba(28,28,30,.74);
  --map-bg:#0b0b0c;
}

[hidden]{display:none !important}
html,body{height:100%}
.tnum{font-variant-numeric:tabular-nums}
body{overscroll-behavior:none; -webkit-tap-highlight-color:transparent; touch-action:manipulation}
.ico{width:18px; height:18px; flex:none; stroke:currentColor; fill:none; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round}
.ico.sm{width:15px; height:15px}
.ico.lg{width:22px; height:22px}
.ico .fill{fill:currentColor; stroke:none}
.btn .ico{width:15px; height:15px; stroke-width:1.9}
.btn.lg{height:48px; padding:0 22px; font-size:15.5px; font-weight:560; letter-spacing:-.012em}
.btn.lg .ico{width:18px; height:18px}
.btn.block{width:100%}
.btn.icon{width:32px; padding:0}
.btn.icon.sm{width:27px}
.btn.icon.lg{width:48px}
.btn.glass{background:var(--glass); -webkit-backdrop-filter:saturate(180%) blur(20px);
  backdrop-filter:saturate(180%) blur(20px); box-shadow:var(--sh-2); border:1px solid var(--line-2)}
.btn.glass:hover{background:var(--surface)}
.btn.glass.on{color:var(--accent)}
.muted{color:var(--tx-3)}
.faint{color:var(--tx-4)}
.row{display:flex; align-items:center; gap:10px}
.row.wrap{flex-wrap:wrap}
.grow{flex:1; min-width:0}
.stack{display:flex; flex-direction:column; gap:10px}
.ell{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0)}

/* ── Grundgerüst ──────────────────────────────────────────────────── */
#app{min-height:100%}
.views{margin-left:var(--side)}
.view{display:none}
.view.on{display:block}
.view.page{min-height:100vh; padding-top:var(--safe-t)}
.view.page .wrap{padding-bottom:calc(var(--tabbar) + var(--safe-b) + 32px)}

#map{position:fixed; top:0; bottom:0; left:var(--side); right:0; background:var(--map-bg)}
#map.off,#map.off *{visibility:hidden !important}
.overlay{position:fixed; top:0; bottom:0; left:var(--side); right:0; pointer-events:none; z-index:10}
.overlay > *{pointer-events:auto}
.overlay > .view{pointer-events:none}
.overlay .float,.overlay .btn,.overlay .seg,.overlay .legend{pointer-events:auto}

.tabbar{display:none}

/* Glas-Panels über der Karte */
.float{background:var(--glass); border:1px solid var(--line-2); border-radius:var(--r-lg);
  box-shadow:var(--sh-2); -webkit-backdrop-filter:saturate(180%) blur(24px); backdrop-filter:saturate(180%) blur(24px)}

.map-top{position:absolute; top:calc(var(--safe-t) + 12px); left:12px; right:12px;
  display:flex; gap:8px; align-items:flex-start; flex-wrap:wrap; pointer-events:none}
.map-top > *{pointer-events:auto}
.map-top .grow{pointer-events:none}
.map-top .btn{height:36px}
@media (max-width:420px){.map-top .flt span{display:none} .map-top .flt{width:36px; padding:0}}
.map-side{position:absolute; right:12px; top:calc(var(--safe-t) + 64px); display:flex; flex-direction:column; gap:8px}
.seg.glass{background:var(--glass); -webkit-backdrop-filter:saturate(180%) blur(20px);
  backdrop-filter:saturate(180%) blur(20px); box-shadow:var(--sh-2); border:1px solid var(--line-2);
  border-radius:11px; padding:3px}
.seg.glass button{height:28px; padding:0 12px; font-size:12.5px}
:root.dunkel .seg button.on{background:var(--surface-3)}
.seg.full{display:flex}
.seg.full button{flex:1}
.pillbox{display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 13px;
  border-radius:var(--pill); font-size:12.5px; font-weight:520; color:var(--tx-2)}
.pillbox b{color:var(--tx); font-weight:600}

/* MapLibre an das Designsystem anpassen */
.maplibregl-ctrl-attrib{font-size:10px; background:var(--glass) !important; color:var(--tx-3)}
.maplibregl-ctrl-attrib a{color:var(--tx-3) !important}
.maplibregl-ctrl-attrib-button{filter:none}
:root.dunkel .maplibregl-ctrl-attrib-button{filter:invert(1)}
.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-bottom-left{bottom:calc(var(--tabbar) + var(--safe-b) + 4px)}
.maplibregl-canvas{outline:none}

/* ── Live ─────────────────────────────────────────────────────────── */
.live-panel{position:absolute; left:12px; right:12px;
  bottom:calc(var(--tabbar) + var(--safe-b) + 12px); padding:16px 16px 14px}
.live-head{display:flex; align-items:center; gap:10px; margin-bottom:12px}
.live-head .t{font-size:15px; font-weight:600; letter-spacing:-.016em}
.live-head .s{font-size:12px; color:var(--tx-3)}
.beacon{width:9px; height:9px; border-radius:50%; flex:none; background:var(--tx-4)}
.beacon.good{background:var(--green); box-shadow:0 0 0 3px var(--green-soft)}
.beacon.warn{background:var(--amber); box-shadow:0 0 0 3px var(--amber-soft)}
.beacon.rec{background:var(--red); box-shadow:0 0 0 3px var(--red-soft); animation:puls 1.6s ease-in-out infinite}
.speed{display:flex; align-items:baseline; gap:8px; margin:2px 0 12px}
.speed .v{font-size:64px; font-weight:620; letter-spacing:-.045em; line-height:.95}
.speed .u{font-size:17px; font-weight:520; color:var(--tx-3); letter-spacing:-.01em}
.speed .grow{flex:1}
.speed .clock{font-size:22px; font-weight:560; letter-spacing:-.02em; color:var(--tx-2)}
.minis{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:14px}
.mini{background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r); padding:9px 11px 8px; min-width:0}
:root.dunkel .mini{background:var(--surface-2)}
.mini .k{font-size:10px; font-weight:600; letter-spacing:.055em; text-transform:uppercase; color:var(--tx-3)}
.mini .v{margin-top:3px; font-size:19px; font-weight:600; letter-spacing:-.025em; white-space:nowrap}
.mini .v .u{font-size:12px; font-weight:500; color:var(--tx-3); margin-left:2px}
.mini.fresh .v{color:var(--accent)}
.live-actions{display:flex; gap:8px}
.live-actions .btn{flex:1}
.live-actions .btn.icon{flex:none}
.week{display:flex; align-items:center; gap:12px; margin-bottom:14px; font-size:12.5px; color:var(--tx-3)}
.week b{color:var(--tx); font-weight:600}
.week .meter{flex:1}
.srcs{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px}

/* ── Karte ────────────────────────────────────────────────────────── */
.legend{position:absolute; left:12px; bottom:calc(var(--tabbar) + var(--safe-b) + 12px); padding:10px 12px 9px; min-width:170px}
.legend .t{font-size:10.5px; font-weight:600; letter-spacing:.055em; text-transform:uppercase; color:var(--tx-3); margin-bottom:7px}
.legend .ramp{display:flex; gap:2px}
.legend .ramp i{flex:1; height:9px; border-radius:3px}
.legend .ramp i:first-child{border-radius:4px 2px 2px 4px}
.legend .ramp i:last-child{border-radius:2px 4px 4px 2px}
.legend .lab{display:flex; justify-content:space-between; gap:10px; margin-top:5px; font-size:11px; color:var(--tx-3)}
.legend .one{display:flex; align-items:center; gap:8px; font-size:12px; color:var(--tx-2)}
.legend .one i{width:14px; height:14px; border-radius:4px; flex:none}
.hexinfo{position:absolute; left:12px; right:12px; bottom:calc(var(--tabbar) + var(--safe-b) + 12px); padding:14px 16px}
.hexinfo .h{display:flex; align-items:flex-start; gap:10px}
.hexinfo .nm{font-size:15px; font-weight:600; letter-spacing:-.016em}
.hexinfo .sb{font-size:12px; color:var(--tx-3); margin-top:1px}
.hexinfo .facts{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:12px}

/* ── Seiten (Fahrten, Statistik, Mehr) ────────────────────────────── */
.view.page .toolbar{top:0}
.toolbar .acts{display:flex; gap:8px; padding-bottom:2px}
.filters{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:16px}
.ride{display:flex; align-items:center; gap:13px; width:100%; padding:11px 16px 11px 14px;
  border:0; background:none; text-align:left; cursor:pointer; border-bottom:1px solid var(--line-2);
  transition:background .1s ease}
.ride:last-child{border-bottom:0}
.ride:hover{background:var(--surface-2)}
.ride:active{background:var(--surface-3)}
.thumb{width:52px; height:52px; flex:none; border-radius:12px; background:var(--surface-3); display:grid; place-items:center}
.thumb svg{width:40px; height:40px; overflow:visible}
.thumb path{fill:none; stroke:var(--accent); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke}
.thumb circle{fill:var(--accent)}
.ride .nm{font-size:14px; font-weight:550; letter-spacing:-.01em}
.ride .sb{font-size:12px; color:var(--tx-3); margin-top:2px}
.ride .dist{font-size:15px; font-weight:600; letter-spacing:-.02em; white-space:nowrap; text-align:right}
.ride .dist .u{font-size:11.5px; color:var(--tx-3); font-weight:500; margin-left:2px}
.ride .dsb{font-size:11.5px; color:var(--tx-4); text-align:right; margin-top:2px; white-space:nowrap}
.ride .star{color:var(--amber)}
.ride .ico.chev{color:var(--tx-4); width:15px; height:15px}
.monthcap{display:flex; align-items:baseline; gap:10px; padding:4px 4px 8px}
.monthcap h3{font-size:15px; font-weight:620; letter-spacing:-.018em}
.monthcap .s{font-size:12px; color:var(--tx-3)}

.kpi .v .u{margin-left:3px}
.delta{font-weight:550}
.chart{position:relative; user-select:none; -webkit-user-select:none}
.chart svg{display:block; width:100%; overflow:visible}
.chart .grid-l{stroke:var(--line-2); stroke-width:1}
.chart .axis{font-size:10.5px; fill:var(--tx-4); font-family:var(--sans)}
.chart .bar{fill:var(--accent)}
.chart .bar.dim{fill:var(--accent); opacity:.35}
.chart .hit{fill:transparent; cursor:default}
.chart .hl .bar{fill:var(--accent-2)}
.chart .area{fill:var(--accent-soft)}
.chart .line{fill:none; stroke:var(--accent); stroke-width:2; stroke-linejoin:round; stroke-linecap:round}
.chart .xh{stroke:var(--tx-3); stroke-width:1; stroke-dasharray:3 3}
.chart .dotm{fill:var(--accent); stroke:var(--surface); stroke-width:2}
.chart .goal{stroke:var(--tx-3); stroke-width:1; stroke-dasharray:4 4}
.tip{position:absolute; z-index:5; pointer-events:none; padding:7px 10px; border-radius:10px;
  background:var(--surface); border:1px solid var(--line); box-shadow:var(--sh-2);
  font-size:12px; line-height:1.4; white-space:nowrap; transform:translate(-50%,-100%); margin-top:-10px}
.tip b{font-weight:600}
.tip .m{color:var(--tx-3)}
.heat .cell{rx:3px}
.heat .lab{font-size:10px; fill:var(--tx-4)}

.tiles{display:grid; grid-template-columns:repeat(4,1fr); gap:8px}
.tile{padding:10px 12px; border-radius:var(--r); background:var(--surface-2); border:1px solid var(--line-2); min-width:0}
.tile .k{font-size:11px; color:var(--tx-3)}
.tile .v{font-size:19px; font-weight:600; letter-spacing:-.022em; margin-top:2px}
.tile .s{font-size:10.5px; color:var(--tx-4); margin-top:1px}
.hexdot{width:10px; height:10px; flex:none; clip-path:polygon(25% 5%,75% 5%,100% 50%,75% 95%,25% 95%,0 50%); background:var(--accent)}

.list-row{display:flex; align-items:center; gap:12px; width:100%; padding:11px 20px; border:0; background:none;
  text-align:left; border-bottom:1px solid var(--line-2); cursor:pointer; font-size:13px}
.list-row:last-child{border-bottom:0}
.list-row:hover{background:var(--surface-2)}
.list-row .rank{width:22px; height:22px; flex:none; border-radius:7px; display:grid; place-items:center;
  font-size:11px; font-weight:650; background:var(--surface-3); color:var(--tx-2)}
.list-row .rank.top{background:var(--accent-soft); color:var(--accent)}
.list-row .nm{font-weight:550; letter-spacing:-.008em}
.list-row .sb{font-size:11.5px; color:var(--tx-3); margin-top:1px}
.list-row .val{font-weight:600; white-space:nowrap; text-align:right}
.list-row .vsb{font-size:11px; color:var(--tx-4); text-align:right}
.list-row .ic{width:30px; height:30px; flex:none; border-radius:9px; display:grid; place-items:center;
  background:var(--surface-3); color:var(--tx-2)}
.list-row .ic.acc{background:var(--accent-soft); color:var(--accent)}
.list-row .ic.amb{background:var(--amber-soft); color:var(--amber)}
.list-row .ic.grn{background:var(--green-soft); color:var(--green)}
.list-row .ico.chev{color:var(--tx-4); width:15px; height:15px; flex:none}
.list-row.static{cursor:default}
.list-row.static:hover{background:none}

/* ── Fahrt-Detail ─────────────────────────────────────────────────── */
.sheet-box.ride-box{width:min(760px,100%); height:min(920px,100%)}
.sheet-h .ttl{font-size:15px; font-weight:600; letter-spacing:-.016em}
.sheet-h .ttl-s{font-size:11.5px; color:var(--tx-3)}
.sheet-c.flush{padding:0}
.ride-map{position:relative; height:300px; background:var(--map-bg); border-bottom:1px solid var(--line-2)}
.ride-map .maplibregl-ctrl-bottom-right,.ride-map .maplibregl-ctrl-bottom-left{bottom:0}
.ride-body{padding:18px 18px 28px}
.ride-hero{display:flex; align-items:flex-end; gap:14px; margin-bottom:16px}
.ride-hero .v{font-size:40px; font-weight:630; letter-spacing:-.04em; line-height:1}
.ride-hero .u{font-size:16px; font-weight:520; color:var(--tx-3)}
.ride-hero .grow{flex:1}
.route-ft{display:flex; flex-direction:column; gap:0; margin:4px 0 18px}
.route-ft .pt{display:flex; gap:12px; align-items:center}
.route-ft .pin{width:12px; height:12px; flex:none; border-radius:50%; border:2.5px solid var(--accent); background:var(--surface)}
.route-ft .pin.end{background:var(--accent)}
.route-ft .ln{width:2px; height:16px; margin-left:5px; background:var(--line-3); border-radius:2px}
.route-ft .nm{font-size:13.5px; font-weight:550}
.route-ft .tm{font-size:12px; color:var(--tx-3); margin-left:auto}
.route-ft button.nm{border:0; background:none; padding:0; cursor:pointer; text-align:left}
.route-ft button.nm:hover{color:var(--accent)}
.speed-leg{display:flex; align-items:center; gap:8px; font-size:11px; color:var(--tx-3)}
.speed-leg .bar{width:72px; height:6px; border-radius:3px}
.section-t{font-size:11px; font-weight:600; letter-spacing:.055em; text-transform:uppercase; color:var(--tx-3); margin:22px 0 10px}
.edit-t{font-size:15px; font-weight:600; letter-spacing:-.016em; border:0; background:transparent; width:100%;
  padding:2px 0; border-radius:6px}
.edit-t:focus{outline:0; background:var(--surface-2); box-shadow:0 0 0 3px var(--accent-soft)}
.edit-t::placeholder{color:var(--tx)}
.sheet-h .btn.fav{color:var(--amber)}
.sheet-h .btn.fav .ico,.ride .ico.star{fill:currentColor}
.done-banner{display:flex; align-items:center; gap:10px; padding:10px 14px; margin-bottom:14px; border-radius:var(--r);
  background:var(--green-soft); color:var(--green); font-size:13px; font-weight:550}

/* ── Anmeldung ────────────────────────────────────────────────────── */
.auth{min-height:100vh; display:grid; place-items:center; padding:calc(var(--safe-t) + 24px) 20px calc(var(--safe-b) + 24px)}
.auth-box{width:min(400px,100%)}
.auth-logo{display:flex; flex-direction:column; align-items:center; gap:14px; margin-bottom:26px; text-align:center}
.auth-logo .glyph{width:64px; height:64px; border-radius:17px}
.auth-logo .glyph svg{width:36px; height:36px; stroke-width:1.9}
.auth-logo h1{font-size:26px; font-weight:650; letter-spacing:-.03em}
.auth-logo p{font-size:13.5px; color:var(--tx-3); max-width:34ch}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:12px}
.field label{font-size:12px; font-weight:550; color:var(--tx-2)}
.field .inp{height:44px; font-size:16px; border-radius:var(--r-sm)}
.field .hint{font-size:11.5px; color:var(--tx-4)}
.inp.lg{height:44px; font-size:16px; border-radius:var(--r-sm)}
.err{color:var(--red); font-size:12.5px; min-height:18px; margin:2px 0 8px}
.code{font-family:var(--mono); font-size:17px; letter-spacing:.04em; line-height:1.7; text-align:center;
  padding:14px; border-radius:var(--r); background:var(--surface-2); border:1px dashed var(--line-3);
  user-select:all; -webkit-user-select:all; word-spacing:.2em}
.check{display:flex; gap:10px; align-items:flex-start; font-size:13px; color:var(--tx-2); cursor:pointer; margin:14px 0}
.check input{width:18px; height:18px; margin-top:1px; accent-color:var(--accent); flex:none}
.foot-links{display:flex; justify-content:center; gap:16px; margin-top:16px}
.lock-list{display:flex; flex-direction:column; gap:9px; margin-top:18px; font-size:12px; color:var(--tx-3)}
.lock-list div{display:flex; gap:9px; align-items:flex-start}
.lock-list .ico{width:15px; height:15px; margin-top:1px; color:var(--tx-4)}

/* ── Einstellungen ────────────────────────────────────────────────── */
.opt .ctl{display:flex; align-items:center; gap:8px}
.opt .ctl .inp{width:92px; text-align:right}
.copy{display:flex; gap:6px; align-items:center}
.copy .inp{font-family:var(--mono); font-size:11.5px; flex:1; min-width:0}
.btn.icon.sm{width:27px}
.monthcap{flex-wrap:wrap}
.steps{display:flex; flex-direction:column; gap:10px; margin:6px 0 4px; counter-reset:st}
.steps li{list-style:none; display:flex; gap:10px; font-size:13px; color:var(--tx-2); line-height:1.5}
.steps li::before{counter-increment:st; content:counter(st); width:20px; height:20px; flex:none; border-radius:50%;
  display:grid; place-items:center; background:var(--accent-soft); color:var(--accent); font-size:11px; font-weight:650; margin-top:1px}
.steps b{color:var(--tx); font-weight:600}
.setlist{display:grid; grid-template-columns:auto 1fr; gap:4px 14px; font-size:12.5px; margin-top:8px}
.setlist span:nth-child(odd){color:var(--tx-3)}
.setlist span:nth-child(even){font-weight:550}
.modal-b .field .inp{font-size:16px}
.modal-box.wide{width:min(520px,100%)}
.danger-zone{border-color:var(--red-soft)}

/* ── Hinweise ─────────────────────────────────────────────────────── */
.toast{position:fixed; left:50%; top:calc(var(--safe-t) + 14px); z-index:90; transform:translateX(-50%);
  display:flex; align-items:center; gap:8px; max-width:calc(100% - 32px);
  padding:10px 16px; border-radius:var(--pill); font-size:13px; font-weight:520;
  animation:drop .28s cubic-bezier(.2,.9,.3,1)}
.toast .ico{width:16px; height:16px}
.toast.good .ico{color:var(--green)}
.toast.bad .ico{color:var(--red)}
@keyframes drop{from{opacity:0; transform:translate(-50%,-12px)}to{opacity:1; transform:translate(-50%,0)}}
.spin{width:18px; height:18px; border-radius:50%; border:2px solid var(--line-3); border-top-color:var(--accent);
  animation:rot .8s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}
.loading{display:grid; place-items:center; padding:60px 0}
.boot{position:fixed; inset:0; display:grid; place-items:center}

/* ── Mobil: Tab-Leiste unten, keine Seitenleiste ──────────────────── */
@media (max-width:860px){
  .side{display:none}
  .views{margin-left:0}
  #map,.overlay{left:0}
  .tabbar{display:flex; position:fixed; left:0; right:0; bottom:0; z-index:40;
    height:calc(var(--tabbar) + var(--safe-b)); padding:0 6px var(--safe-b);
    background:var(--chrome); -webkit-backdrop-filter:saturate(180%) blur(24px); backdrop-filter:saturate(180%) blur(24px);
    border-top:1px solid var(--line-2)}
  .tab{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
    border:0; background:none; color:var(--tx-3); font-size:10px; font-weight:550; letter-spacing:.005em; cursor:pointer}
  .tab .ico{width:23px; height:23px; stroke-width:1.6}
  .tab.on{color:var(--accent)}
  .tab.on .ico{stroke-width:1.9}
  .toolbar{padding:18px 18px 12px}
  .toolbar h1{font-size:28px; letter-spacing:-.03em}
  .toolbar.stuck h1{font-size:17px}
  .wrap{padding:4px 14px 72px}
  .card-h{padding:13px 16px}
  .card-b{padding:15px 16px}
  .kv{padding:10px 16px}
  .kvh{padding:8px 16px}
  .opt{padding:12px 16px}
  .list-row{padding:11px 16px}
  .kv > span:first-child{width:auto}
  .kpi{padding:13px 14px 12px}
  .kpi .v{font-size:24px}
  .tiles{grid-template-columns:repeat(2,1fr)}
  .sheet{padding:calc(var(--safe-t) + 10px) 0 0; place-items:end stretch}
  .sheet-box,.sheet-box.ride-box{width:100%; height:100%; border-radius:22px 22px 0 0; border-bottom:0}
  .ride-map{height:260px}
  .modal{place-items:end stretch; padding:10px 10px calc(var(--safe-b) + 10px)}
  .modal-box,.modal-box.wide{width:100%; max-height:calc(100vh - var(--safe-t) - 40px)}
  .legend{min-width:150px}
}
@media (min-width:861px){
  .live-panel,.hexinfo{left:20px; right:auto; width:380px; bottom:20px}
  .legend{left:auto; right:20px; bottom:34px}
  .map-top{left:20px; right:20px; top:20px}
  .map-side{right:20px; top:76px}
  .maplibregl-ctrl-bottom-right,.maplibregl-ctrl-bottom-left{bottom:0}
  .side .nav{font-size:14px; padding:8px 11px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:0s !important; animation-duration:0s !important}
}

/* ── Fahrt-Leiste: während einer Fahrt in jeder Ansicht ── */
:root{--rb:66px}
.ridebar{position:fixed; z-index:45; left:calc(var(--side) + 20px); right:20px; bottom:20px; margin:0 auto; max-width:520px;
  height:var(--rb); display:flex; align-items:center; padding:0 6px; border:1px solid var(--line-2); border-radius:var(--r-lg);
  background:var(--glass); -webkit-backdrop-filter:saturate(180%) blur(24px); backdrop-filter:saturate(180%) blur(24px);
  box-shadow:var(--sh-2); color:var(--tx); font:inherit; text-align:center; cursor:pointer;
  -webkit-tap-highlight-color:transparent; transition:transform .12s}
.ridebar:active{transform:scale(.985)}
.ridebar[hidden]{display:none}
.rb-cell{flex:1; min-width:0}
.rb-v{font-size:23px; font-weight:620; letter-spacing:-.03em; line-height:1.05; white-space:nowrap}
.rb-cell.main .rb-v{font-size:34px; color:var(--accent); letter-spacing:-.045em}
.rb-k{margin-top:3px; font-size:10px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--tx-3)}
.rb-sep{width:1px; align-self:stretch; margin:15px 0; background:var(--line-2)}
.rb-sync{position:absolute; left:50%; top:-11px; transform:translateX(-50%); display:inline-flex; align-items:center; gap:5px;
  height:22px; padding:0 10px; border-radius:980px; background:var(--tx); color:var(--bg); font-size:11px; font-weight:600;
  white-space:nowrap; box-shadow:var(--sh-2)}
.rb-sync.warn{background:var(--red); color:#fff}
.rb-sync .ico{width:13px; height:13px}
.rb-sync[hidden]{display:none}
body.riding .live-panel,body.riding .legend,body.riding .hexinfo{bottom:calc(var(--tabbar) + var(--safe-b) + var(--rb) + 22px)}
body.riding .maplibregl-ctrl-bottom-right,body.riding .maplibregl-ctrl-bottom-left{bottom:calc(var(--tabbar) + var(--safe-b) + var(--rb) + 14px)}
body.riding .view.page .wrap{padding-bottom:calc(var(--tabbar) + var(--safe-b) + var(--rb) + 44px)}
.offline-sum{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:4px 0 2px}
@media (max-width:860px){
  .ridebar{left:10px; right:10px; bottom:calc(var(--tabbar) + var(--safe-b) + 8px)}
}
@media (min-width:861px){
  body.riding .live-panel,body.riding .hexinfo,body.riding .legend{bottom:calc(20px + var(--rb) + 12px)}
  body.riding .maplibregl-ctrl-bottom-right,body.riding .maplibregl-ctrl-bottom-left{bottom:calc(var(--rb) + 30px)}
}

/* Legende: Symbol für das Nebel-Raster */
.legend .one i.fogkey{background:rgba(142,142,147,.22); border:1px solid; border-radius:4px}
