/* NeXtMail Web – Statusleiste unten (nm-web-status). Höhe aus dichte.css (--d-status), Farben aus web.css.
   © 2026 by Sebastian Hirtreiter */
html.mit-statusleiste { --nms-h: calc(var(--d-status, 24px) + var(--d-plus, 0px)); }
html.mit-statusleiste body > .app { bottom: var(--nms-h); }
.statusleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--nms-h, 24px); box-sizing: border-box;
  display: flex; align-items: center; gap: 8px; padding: 0 6px; background: var(--panel2); border-top: 1px solid var(--line);
  color: var(--muted); font-family: var(--schrift); font-size: calc(var(--d-schrift-klein, 12px) + var(--d-plus, 0px)); line-height: 1;
  white-space: nowrap; overflow: hidden; user-select: none; -webkit-user-select: none; }
.statusleiste .nms-links, .statusleiste .nms-rechts { display: flex; align-items: center; height: 100%; min-width: 0; }
.statusleiste .nms-links { flex: 1 1 auto; overflow: hidden; }
.statusleiste .nms-rechts { flex: 0 1 auto; overflow: hidden; justify-content: flex-end; }
.statusleiste .nms-teil { display: inline-flex; align-items: center; gap: 5px; height: calc(100% - 4px); padding: 0 7px; margin: 0; border: 0;
  border-radius: var(--d-radius, 4px); background: transparent; color: inherit; font: inherit; line-height: 1; flex: 0 1 auto; min-width: 0; }
.statusleiste .nms-teil > .nms-wort { overflow: hidden; text-overflow: ellipsis; }
.statusleiste .nms-zahl { overflow: hidden; text-overflow: ellipsis; }
.statusleiste button.nms-teil { cursor: pointer; }
.statusleiste button.nms-teil:hover { background: var(--hover); color: var(--text); }
.statusleiste button.nms-teil:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.statusleiste .nms-teil svg.ic { width: calc(var(--d-schrift-klein, 12px) + 2px); height: calc(var(--d-schrift-klein, 12px) + 2px); flex: none; }
.statusleiste .nms-trenn { width: 1px; height: 12px; background: var(--line); flex: none; }
.statusleiste .nms-punkt { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.statusleiste .nms-verb.ok .nms-punkt { background: var(--ok); }
.statusleiste .nms-verb.warn .nms-punkt { background: var(--warn); }
.statusleiste .nms-verb.aus .nms-punkt { background: var(--gefahr); }
.statusleiste .nms-verb.aus { color: var(--gefahr); }
/* nm26-status: Farben wie Client 18 – verbindet = blau, Problem (> 60 s) = orange mit „Jetzt verbinden“, aktuell = grün */
.statusleiste .nms-verb.verbinde .nms-punkt { background: var(--accent); }
.statusleiste .nms-verb.warn { color: var(--warn); }
.statusleiste .nms-stand.nms-laeuft { color: var(--accent); }
.statusleiste .nms-stand.nms-aktuell { color: var(--ok); }
.statusleiste .nms-jetzt { color: var(--warn); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.statusleiste button.nms-jetzt:hover { color: var(--warn); background: var(--warn-soft); }
/* Sammel 22: Postfach antwortet nicht – Hinweis bleibt auch im schmalen Fenster lesbar */
.statusleiste .nms-stand.nms-fehler { color: var(--gefahr); }
.statusleiste .nms-balken { width: 44px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; flex: none; }
.statusleiste .nms-balken i { display: block; height: 100%; background: var(--accent); }
.statusleiste .nms-balken.warn i { background: var(--warn); }
.statusleiste .nms-balken.voll i { background: var(--gefahr); }

/* Was unten schwebt, rückt über die Leiste */
html.mit-statusleiste .verfassen:not(.angedockt):not(.nmr-voll) { bottom: calc(16px + var(--nms-h)); height: min(680px, calc(100vh - 90px - var(--nms-h))); }
html.mit-statusleiste .verfassen.gross:not(.angedockt):not(.nmr-voll) { bottom: calc(20px + var(--nms-h)); height: auto; }
html.mit-statusleiste .meldungen { bottom: calc(20px + var(--nms-h)); }
html.mit-statusleiste .meldungen.ueber-fuss { bottom: calc(84px + var(--nms-h)); }
html.mit-statusleiste .pwa-leiste { bottom: calc(14px + var(--nms-h) + env(safe-area-inset-bottom, 0px)); }
html.mit-statusleiste .pim-erinnerungen { bottom: calc(16px + var(--nms-h)); }

/* Schmale Fenster: Wörter rechts kürzer, Zahlen links bleiben */
@media (max-width: 1100px) {
  .statusleiste .nms-stand:not(.nms-fehler) .nms-wort, .statusleiste .nms-dichte .nms-wort { display: none; }
}
@media (max-width: 760px) { .statusleiste { display: none; } html.mit-statusleiste body > .app { bottom: 0; } }
@media print { .statusleiste { display: none !important; } html.mit-statusleiste body > .app { bottom: 0; } }
