/* NeXtMail Web – Reiter (nm-web-status). Leiste unter dem Kopf über Menüband und Inhalt; Höhe aus dichte.css (--d-reiter).
   Nur am Schreibtisch (> 760 px). © 2026 by Sebastian Hirtreiter */
@media (min-width: 761px) {
  .app.nmr-an { grid-template-rows: var(--kopf) var(--d-reiter, 32px) minmax(0, 1fr); }
  .app.nmr-an > .nmr-leiste { grid-row: 2; grid-column: 1 / 3; }
  .app.nmr-an > .navleiste { grid-row: 3; }
  .app.nmr-an > .inhalt, .app.nmr-an > .nmr-flaeche, .app.nmr-an > .verfassen.nmr-voll { grid-row: 3; grid-column: 2; }
  .app.nmr-an.mit-band { grid-template-rows: var(--kopf) var(--d-reiter, 32px) auto minmax(0, 1fr); }
  .app.nmr-an.mit-band > .navleiste { grid-row: 3 / 5; }
  .app.nmr-an.mit-band > .band { grid-row: 3; }
  .app.nmr-an.mit-band > .inhalt, .app.nmr-an.mit-band > .nmr-flaeche { grid-row: 4; }
  .app.nmr-an.mit-band > .verfassen.nmr-voll { grid-row: 3 / 5; }   /* Verfassen hat sein eigenes Band */
}
.app.nmr-verdeckt > .inhalt { visibility: hidden; }
.nmr-flaeche { position: relative; z-index: 3; min-width: 0; min-height: 0; }
.nmr-flaeche[hidden] { display: none !important; }
.nmr-flaeche .lese-leiste .zurueck { display: none !important; }   /* „Zurück zur Liste“ gibt es im Reiter nicht */

/* Verfassen als Reiter: füllt die Fläche statt zu schweben */
.app.nmr-an > .verfassen.nmr-voll { position: relative; inset: auto; right: auto; bottom: auto; width: auto; height: auto; min-width: 0; min-height: 0;
  z-index: 7; border: 0; border-radius: 0; box-shadow: none; }   /* über dem Menüband (z-index 6), Verfassen hat sein eigenes */
.app.nmr-an > .verfassen.nmr-voll.nmr-weg, .verfassen.nmr-weg { display: none !important; }

/* Leiste */
.nmr-leiste { display: flex; align-items: flex-end; gap: 2px; min-width: 0; padding: 0 8px 0 calc(var(--leiste, 56px) - 4px); background: var(--panel2);
  border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; box-sizing: border-box; }
.nmr-leiste::-webkit-scrollbar { display: none; }
.nmr-tab { flex: 0 1 200px; min-width: 96px; max-width: 240px; height: calc(var(--d-reiter, 32px) - 4px); box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px;
  padding: 0 4px 0 10px; border: 1px solid transparent; border-bottom: 0; border-radius: var(--d-radius, 4px) var(--d-radius, 4px) 0 0; background: transparent;
  color: var(--muted); font-size: calc(var(--d-schrift-klein, 12px) + 1px + var(--d-plus, 0px)); line-height: 1.2; cursor: pointer; user-select: none; -webkit-user-select: none; position: relative; }
.nmr-tab.nmr-haupt { flex: 0 1 220px; padding-right: 10px; }
.nmr-tab:hover { background: var(--hover); color: var(--text); }
.nmr-tab.an { background: var(--panel); color: var(--text); border-color: var(--line); margin-bottom: -1px; height: calc(var(--d-reiter, 32px) - 3px); font-weight: 600; }
.nmr-tab.an::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.nmr-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nmr-tab.ziel { box-shadow: inset 2px 0 0 var(--accent); }
.nmr-tab.weg .nmr-titel { text-decoration: line-through; }
.nmr-tab > svg.ic { width: var(--d-symbol-klein, 16px); height: var(--d-symbol-klein, 16px); flex: none; }
.nmr-titel { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nmr-zu { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: var(--d-radius, 4px);
  background: transparent; color: var(--muted); cursor: pointer; }
.nmr-zu svg.ic { width: 14px; height: 14px; }
.nmr-zu:hover { background: var(--hover); color: var(--text); }
.nmr-tab:not(.an):not(:hover) .nmr-zu { visibility: hidden; }
.nmr-plus { flex: none; align-self: center; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; margin-left: 2px;
  border: 0; border-radius: var(--d-radius, 4px); background: transparent; color: var(--muted); cursor: pointer; }
.nmr-plus:hover { background: var(--hover); color: var(--text); }
.nmr-plus svg.ic { width: 16px; height: 16px; }
@media (max-width: 760px) { .nmr-leiste, .nmr-flaeche { display: none !important; } .app.nmr-verdeckt > .inhalt { visibility: visible; } }
@media print { .nmr-leiste { display: none !important; } }
