/* NeXtMail Web – Gleichstand Build 25 (web-gleichstand): eigenes Mail-Fenster, Seitenleiste anordnen/einklappen,
   gefährliche Anhänge. © 2026 by Sebastian Hirtreiter */

/* Seitenleiste: Knopf zum Ein-/Ausklappen unten (über dem Zahnrad), eingeklappt nur ein schmaler Streifen mit diesem Knopf */
.navleiste .g25-klapp { min-height: 36px; margin-top: auto; }
.navleiste .g25-klapp + .nav-kn.unten { margin-top: 0; }
.navleiste .g25-klapp svg.ic { width: 18px; height: 18px; }
/* eingeklappt = nur Symbole, schmaler (wie Windows-Client 17 „« Einklappen“) */
.app.g25-nav-zu { --leiste: 46px; }
.app.g25-nav-zu > .navleiste > .nav-kn { width: 38px; min-height: 40px; }
.app.g25-nav-zu > .navleiste > .nav-kn > span:not(.zahl) { display: none; }
.app.g25-nav-zu > .navleiste > .nav-kn .zahl { top: 0; right: 0; }
.app.g25-nav-zu > .navleiste > .g25-klapp svg.ic { transform: rotate(180deg); }
.navleiste .nav-kn.g25-zieht { opacity: .45; }
.navleiste .nav-kn.g25-ziel-oben { box-shadow: inset 0 2px 0 var(--accent); }
.navleiste .nav-kn.g25-ziel-unten { box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 760px) { .navleiste .g25-klapp { display: none; } }

/* „Seitenleiste anpassen“ */
.g25-anpassen .hilfe { margin: 0 0 10px; }
.g25-liste { display: flex; flex-direction: column; gap: 2px; min-width: min(360px, 80vw); }
.g25-zeile { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 6px; cursor: grab; }
.g25-zeile:hover { background: var(--hover); }
.g25-zeile.g25-ziel-oben { box-shadow: inset 0 2px 0 var(--accent); }
.g25-wahl { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.g25-wahl svg.ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.g25-wahl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g25-zeile .ik.aus { visibility: hidden; }

/* Mail im eigenen Fenster: nur der Lesebereich, ohne Seitenleiste, Ordnerleiste, Liste und Menüband */
html.g25-fenster .app { grid-template-columns: 0 1fr; }
html.g25-fenster .app > .navleiste, html.g25-fenster .band, html.g25-fenster .nmr-leiste, html.g25-fenster .statusleiste,
html.g25-fenster .kopf .suchfeld, html.g25-fenster .kopf .such-box, html.g25-fenster .kopf .suche-kopf { display: none !important; }
html.g25-fenster .app.mit-band > .inhalt { grid-row: 2 / -1; }
html.g25-fenster .mail .spalten { grid-template-columns: 0 0 0 0 minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) !important; }
html.g25-fenster .mail .sp-ordner, html.g25-fenster .mail .sp-liste, html.g25-fenster .mail .trenner { display: none !important; }
html.g25-fenster .mail .sp-lesen { grid-column: 5; grid-row: 1; display: flex !important; }
html.g25-fenster .kopf .g25-zu { margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; }

/* Anhang mit Programm/Makros: Warnzeichen in Warnfarbe */
.anhang.av-riskant svg.ic { color: var(--warn); }
.anhang.av-riskant { border-color: var(--warn); }

/* nm25-gleich (nm-client-neu W4): Kategorien am Kontakt als Schalter; W3 „Gehe zu Ordner“ */
.g25-kon-kat { display: flex; flex-wrap: wrap; gap: 6px; }
button.chip.g25-kat { cursor: pointer; font: inherit; font-size: 12px; color: var(--text); min-height: 28px; }
button.chip.g25-kat.an { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
button.chip.g25-kat:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (pointer: coarse) { button.chip.g25-kat { min-height: 36px; padding: 0 12px; } }
.g25-gehe-box input.feld { width: 100%; margin-bottom: 8px; }
.g25-gehe { max-height: min(50vh, 420px); overflow: auto; }
.g25-gehe .ordner .name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g25-gehe-pf { flex: 0 1 40%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
