/* Fahrer-App (Phase 3ah): untere Navigation, grosse Zielflaechen, Installieren-Banner, Update-Hinweis, Offline-Seite.
   Nutzt nur die Variablen der Themen (Korall, Blau-Grau, Glas); lokal, ohne Bilder und Schriften von aussen. */
.unternav{display:none}
.update-hinweis{position:fixed;z-index:90;left:.6rem;right:.6rem;bottom:calc(4.6rem + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:.8rem;
 padding:.7rem 1rem;border-radius:16px;background:var(--bg1);color:var(--ink);border:1px solid var(--accent);box-shadow:var(--shadow);font-weight:600}
.update-hinweis button{min-height:48px;padding:.5rem 1.1rem}
body:not(.rolle-fahrer) .update-hinweis{bottom:.8rem}
.install-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem 1rem;max-width:none;margin:.4rem 0 1rem}
.install-banner[hidden]{display:none}
.install-banner p{margin:0;flex:1 1 14rem}
.install-banner button{min-height:48px;padding:.5rem 1.2rem}
.anleitung{max-width:none;margin:0 0 1rem}
.anleitung summary{cursor:pointer;font-weight:600;min-height:48px;display:flex;align-items:center}
.anleitung[hidden]{display:none}
.anleitung ol{margin:.2rem 0 .4rem 1.2rem;padding:0}
.anleitung li{margin:.25rem 0}
.status-kachel{display:block;padding:.15rem 0 0;font-weight:600;color:var(--ink)}
.offline-seite{min-height:100vh;display:grid;place-items:center;padding:1.5rem}
.offline-seite .karte{max-width:26rem;text-align:center}
.offline-seite .ico-gross{font-size:2.6rem;line-height:1}
.offline-seite button{min-height:52px;padding:.6rem 1.6rem}
.mehr-liste{display:grid;gap:.6rem;max-width:36rem}
.mehr-liste a,.mehr-liste button{display:flex;align-items:center;gap:.8rem;min-height:56px;width:100%;padding:.7rem 1rem;border-radius:var(--r);background:var(--card);
 border:1px solid var(--line);color:var(--ink);text-decoration:none;font-weight:600;text-align:left;justify-content:flex-start;box-shadow:var(--shadow)}
.mehr-liste a:hover,.mehr-liste button:hover{background:var(--card2)}
.mehr-liste form{margin:0}
.mehr-liste .ico{color:var(--accent);flex:none}
.pw-form label{display:block;margin:.5rem 0}
.pw-form input{width:100%;min-height:48px}

@media (max-width:900px){
 /* Fahrer: untere Leiste statt Seitenmenue */
 body.rolle-fahrer .nav,body.rolle-fahrer .burger{display:none}
 body.rolle-fahrer .kopfzeile{padding-top:.5rem}
 body.rolle-fahrer main{padding-bottom:calc(5.6rem + env(safe-area-inset-bottom));overflow-wrap:anywhere}
 body.rolle-fahrer .unternav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;z-index:60;left:0;right:0;bottom:0;
  background:var(--bg1);border-top:1px solid var(--line);box-shadow:0 -6px 24px rgba(0,0,0,.14);padding:.25rem .25rem calc(.25rem + env(safe-area-inset-bottom))}
 body.rolle-fahrer .unternav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.1rem;min-height:56px;padding:.25rem .1rem;border-radius:14px;
  color:var(--mut);text-decoration:none;font-size:.74rem;font-weight:600;position:relative}
 body.rolle-fahrer .unternav a .ico{width:24px;height:24px}
 body.rolle-fahrer .unternav a[aria-current=page]{color:var(--ink);background:var(--card2);box-shadow:inset 0 0 0 1px var(--line)}
 body.rolle-fahrer .unternav a[aria-current=page] .ico{color:var(--accent)}
 body.rolle-fahrer .unternav .badge{position:absolute;top:.1rem;right:calc(50% - 1.6rem);min-width:1.1rem;height:1.1rem;font-size:.68rem;padding:0 .25rem;line-height:1.1rem}
 /* Handschuh-tauglich: Zielflaechen mindestens 48 px */
 body.rolle-fahrer button,body.rolle-fahrer .knopf,body.rolle-fahrer .btn,body.rolle-fahrer input:not([type=checkbox]):not([type=radio]),
 body.rolle-fahrer select,body.rolle-fahrer textarea{min-height:48px;font-size:1rem}
 body.rolle-fahrer input[type=checkbox],body.rolle-fahrer input[type=radio]{width:1.5rem;height:1.5rem}
 body.rolle-fahrer main label{min-height:48px}
 body.rolle-fahrer main a:not(.start-kachel){display:inline-flex;align-items:center;min-height:48px}
 body.rolle-fahrer main a.start-kachel{display:flex}
 body.rolle-fahrer .start-kacheln{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.rolle-fahrer .start-kachel{min-height:8.5rem}
 body.rolle-fahrer .karte{max-width:none}
 /* Fahrtenliste als Karten statt enger Tabelle */
 body.rolle-fahrer table.kartenliste{display:block;overflow:visible}
 body.rolle-fahrer table.kartenliste tr:first-child:has(th){display:none}
 body.rolle-fahrer table.kartenliste tr{display:block;margin:.5rem 0;padding:.6rem .8rem;border:1px solid var(--line);border-radius:var(--r);background:var(--card)}
 body.rolle-fahrer table.kartenliste td{display:flex;gap:.6rem;padding:.15rem 0;border:0;min-width:0}
 body.rolle-fahrer table.kartenliste td[data-l]::before{content:attr(data-l);flex:0 0 5.2rem;color:var(--mut);font-size:.85rem}
 body.rolle-fahrer table.kartenliste td.aktion{gap:1rem;padding-top:.4rem}
}
@media (max-width:360px){body.rolle-fahrer .start-kacheln{grid-template-columns:1fr}}
@media (display-mode:standalone){body.rolle-fahrer .kopfzeile{padding-top:calc(.5rem + env(safe-area-inset-top))}}
.mehr-liste .ico{width:24px;height:24px}
table.kartenliste td.aktion a+a{margin-left:.9rem}
