/* NeXtMailbox Web am iPhone wie die iPhone-App (web-mobil, Server 33). Nur mit html.nx-ios (webios.js: schmal UND
   Fingerbedienung). Vorbild: Runde-1111/bilder-web-mobil/ios/NeXtMailbox-*.png – schwebende Reiterleiste mit Pille,
   runde Knöpfe im Kopf, „Neu“ als runder Knopf über der Leiste. Am PC greift nichts davon. © 2026 by Sebastian Hirtreiter */
.wi-suche { display: none; }
html.nx-ios { --wi-akzent: #3b5bdb; --wi-glas: rgba(255, 255, 255, .86); --wi-rand: rgba(60, 60, 67, .14); --wi-feld: rgba(118, 118, 128, .12);
  --wi-schatten: 0 2px 10px rgba(0, 0, 0, .10); }
html.nx-ios[data-theme=dark] { --wi-akzent: #6d8bfc; --wi-glas: rgba(30, 32, 38, .86); --wi-rand: rgba(235, 235, 245, .14); --wi-feld: rgba(118, 118, 128, .26);
  --wi-schatten: 0 2px 12px rgba(0, 0, 0, .45); }
/* Reiterleiste: schwebende Kapsel (Zeile 3 des Rasters wird etwas höher), gewählter Reiter mit Pille */
html.nx-ios:root { --d-unterleiste: 78px; }   /* letzte Rasterzeile (dichte.css) trägt die schwebende Kapsel samt Rand */
html.nx-ios .app > .navleiste { margin: 4px 16px calc(10px + env(safe-area-inset-bottom)); padding: 0 4px; height: 62px; align-self: end;
  border: .5px solid var(--wi-rand); border-radius: 31px; background: var(--wi-glas); box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); align-items: center; }
html.nx-ios .app > .navleiste > .nav-kn { min-height: 54px; margin: 0; border-radius: 27px; color: var(--text); font-size: 11px; font-weight: 600; gap: 2px;
  -webkit-tap-highlight-color: transparent; }
html.nx-ios .app > .navleiste > .nav-kn svg.ic { width: 25px; height: 25px; }
html.nx-ios .app > .navleiste > .nav-kn.an { color: var(--wi-akzent); background: var(--wi-feld); }
html.nx-ios .app > .navleiste > .nav-kn .zahl { top: 2px; right: auto; left: calc(50% + 4px); background: #e03131; }
html.nx-ios .app > .navleiste > .nav-kn[data-wi-app=einstellungen] { display: none !important; }   /* wie die App: im Konto-Menü */
html.nx-ios .app > .navleiste > .wi-suche { display: flex; order: 99; }
html.nx-ios .app > .navleiste > .wi-suche[hidden] { display: none; }
/* Ohne eigene Folge: Folge der App (Mail · Kalender · Aufgaben · Kontakte); mit eigener Folge bleibt die gemeinsame */
html.nx-ios.wi-app-folge .app > .navleiste > [data-wi-app=mail] { order: 1; }
html.nx-ios.wi-app-folge .app > .navleiste > [data-wi-app=kalender] { order: 2; }
html.nx-ios.wi-app-folge .app > .navleiste > [data-wi-app=aufgaben] { order: 3; }
html.nx-ios.wi-app-folge .app > .navleiste > [data-wi-app=kontakte] { order: 4; }
html.nx-ios.wi-app-folge .app > .navleiste > [data-wi-app=notizen] { order: 5; }
/* Kopf: runde Knöpfe wie die App (Profilbild, Kapsel), Titel kräftig */
html.nx-ios .app > .kopf { border-bottom: 0; padding-top: env(safe-area-inset-top); padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
html.nx-ios .app > .kopf > .ik:not([hidden]) { width: 44px; height: 44px; border-radius: 50%; border: .5px solid var(--wi-rand); background: var(--wi-glas);
  box-shadow: var(--wi-schatten); color: var(--wi-akzent); margin: 0 2px; }
html.nx-ios .app > .kopf > .konto-kn { width: 40px; height: 40px; margin-left: 4px; box-shadow: var(--wi-schatten); }
html.nx-ios .app > .kopf .wh-k-titel b, html.nx-ios .app > .kopf .wh-k-titel strong { font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
/* „Neu“: runder Knopf rechts unten wie in der App (Quadrat mit Rundung), Akzentfarbe */
html.nx-ios.wh-einkopf .wh-fab { width: 56px; height: 56px; border-radius: 16px; right: 16px; bottom: 12px; background: var(--wi-akzent);
  box-shadow: 0 6px 18px rgba(59, 91, 219, .35); }
@media (prefers-reduced-motion: reduce) { html.nx-ios .app > .navleiste > .nav-kn { transition: none; } }
/* Server 33: Profilbild links öffnet die Ordnerleiste (webios.js; html.wi-profil = iPhone-Layout in der Mail-Liste) */
html.nx-ios.wi-profil .app > .kopf > .konto-kn { order: -3; margin-left: 0; margin-right: 6px; }
html.nx-ios.wi-profil .app > .kopf > .wh-k-links { display: none !important; }
/* unten in der Leiste: Konto-Zeile wie die Fußleiste der App (Konto-Menü mit Einstellungen, Sprache, Abmelden) */
html.nx-ios .sp-ordner > .wi-ol-konto { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; min-height: 52px; margin: 0;
  padding: 8px 14px; border: 0; border-top: .5px solid var(--wi-rand); background: var(--wi-glas);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.nx-ios .sp-ordner > .wi-ol-konto > .wi-ol-bild { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
html.nx-ios .sp-ordner > .wi-ol-konto > .wi-ol-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
html.nx-ios .sp-ordner > .wi-ol-konto > .wi-ol-text > b, html.nx-ios .sp-ordner > .wi-ol-konto > .wi-ol-text > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.nx-ios .sp-ordner > .wi-ol-konto > .wi-ol-text > small { color: var(--muted); font-size: 12px; }
html.nx-ios .sp-ordner > .wi-ol-konto > svg.ic { width: 20px; height: 20px; color: var(--wi-akzent); flex: none; }
