/* ═══════════════════════════════════════════════════════════════════════════
 * mail.css — MAIL 16.10.2026: die Kachel "[[ASSISTENT]] Mail"
 * ═══════════════════════════════════════════════════════════════════════════
 *
 * Ergaenzt susi.css und powertasks.css (pt-*), ersetzt nichts.
 * ═══════════════════════════════════════════════════════════════════════════
 */

.m-verantwortung {
  max-width: 900px; margin: 0 0 18px; padding: 12px 16px;
  border: 1.5px solid #F2D6A2; border-radius: 10px; background: #FFFBEB;
  font-size: 13px; line-height: 1.55; color: var(--txt);
}
.m-verantwortung p { margin: 0 0 6px }
.m-verantwortung p:last-child { margin-bottom: 0 }

.m-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 900px }
.m-karte {
  background: #fff; border: 1.5px solid var(--bdr); border-radius: var(--rad);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.m-schild { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .03em;
            text-transform: uppercase; color: #92400e; background: #fef3c7;
            border-radius: 99px; padding: 2px 8px; margin-top: 6px }

.m-ergebnis { margin-top: 10px; font-size: 12.5px; line-height: 1.45 }
.m-schritt { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; padding: 3px 0 }
.m-schritt-name { font-weight: 600; color: var(--txt2) }
.m-ok   span:last-child { color: #047857 }
.m-nein span:last-child { color: #b91c1c }
.m-aus  span:last-child { color: var(--txt3) }

.m-loeschen {
  margin-top: 12px; padding: 12px 14px; border: 1.5px solid #F0C4D3;
  border-radius: 10px; background: #FDF5F8; font-size: 13px; line-height: 1.5;
}
.m-loeschen p { margin: 0 0 6px }
.m-loeschen ul { margin: 4px 0 8px 18px; padding: 0 }
.m-loeschen-titel { font-weight: 700; margin-bottom: 6px; color: #A3264F }
.prim-btn.m-rot { background: #A3264F; border-color: #A3264F }
#powertasks-view .prim-btn.m-rot:disabled { opacity: .45 }

.m-form { max-width: 900px }
.m-block {
  background: #fff; border: 1.5px solid var(--bdr); border-radius: 10px;
  padding: 12px 16px; margin-bottom: 12px;
}
.m-zeile { display: flex; flex-wrap: wrap; gap: 0 14px }
.m-zeile > .m-feld { flex: 1 1 220px }
.m-zeile > .m-schmal { flex: 0 0 130px }
.m-feld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 13px }
.m-feld-name { font-weight: 600; font-size: 12.5px }
.m-feld input, .m-feld select {
  font: inherit; font-size: 14px; padding: 8px 10px; border: 1.5px solid var(--bdr);
  border-radius: 8px; background: #fff; color: var(--txt); min-width: 0;
}
.m-feld input:focus, .m-feld select:focus, .m-signatur:focus { outline: none; border-color: var(--acc) }
.m-feld-hilfe { font-size: 12px; color: var(--txt3); line-height: 1.45 }
.m-feld-fehler input, .m-feld-fehler select, .m-signatur.m-feld-fehler,
.m-bestaetigen.m-feld-fehler { border-color: #b91c1c !important; color: #b91c1c }
.m-signatur {
  min-height: 90px; max-height: 320px; overflow: auto; margin-top: 8px;
  border: 1.5px dashed var(--bdr2); border-radius: 8px; padding: 10px 12px;
  background: #fff; font-size: 13px;
}
.m-signatur img { max-width: 100% }
.m-warnung { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: #fef2f2;
             color: #991b1b; font-size: 12.5px; line-height: 1.5 }
.m-bestaetigen { align-items: flex-start; max-width: 900px; line-height: 1.5 }
.m-bestaetigen input { margin-top: 3px }

/* ── Handy ────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .m-liste { grid-template-columns: minmax(0, 1fr) }
  .m-zeile > .m-schmal { flex: 1 1 120px }
}

/* ── MAIL-L2 16.10.2026: Reiter, Kontakte, Import, Sperrliste ─────────────── */

.m-reiter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 900px;
            border-bottom: 1.5px solid var(--bdr); margin: 0 0 16px; padding-bottom: 6px }
.m-reiter-knopf { font: inherit; font-size: 13.5px; font-weight: 600; background: none; border: none;
                  padding: 8px 12px; border-radius: 8px; cursor: pointer; color: var(--txt2) }
.m-reiter-knopf:hover { background: #F3F6FA }
.m-reiter-knopf.m-aktiv { color: var(--acc); background: #EEF4FF }
.m-export { margin-left: auto; text-decoration: none }
.m-warnung .m-export { margin: 8px 0 0; display: inline-block }

.m-werkzeug { display: flex; flex-wrap: wrap; gap: 8px; max-width: 900px; margin-bottom: 4px }
.m-werkzeug input, .m-werkzeug select { font: inherit; font-size: 13.5px; padding: 7px 10px;
  border: 1.5px solid var(--bdr); border-radius: 8px; background: #fff; color: var(--txt) }
.m-suche { flex: 1 1 220px; min-width: 0 }

.m-tabelle-rahmen { max-width: 900px; overflow-x: auto; margin-top: 12px;
                    border: 1.5px solid var(--bdr); border-radius: 10px; background: #fff }
.m-tabelle { width: 100%; border-collapse: collapse; font-size: 13px }
.m-tabelle th { text-align: left; font-size: 12px; color: var(--txt2); font-weight: 600;
                padding: 8px 10px; border-bottom: 1.5px solid var(--bdr); white-space: nowrap }
.m-tabelle td { padding: 7px 10px; border-bottom: 1px solid #EEF2F7; vertical-align: top;
                overflow-wrap: anywhere }
.m-tabelle tr:last-child td { border-bottom: none }
.m-tabelle .pt-leer { text-align: center }
.m-klick { cursor: pointer }
.m-klick:hover { color: var(--acc) }
.m-markiert td { background: #F5F9FF }
.m-chip { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px;
          background: #EEF2F7; color: var(--txt2); margin: 1px 0 }
.m-seiten { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--txt2);
            margin-top: 8px; max-width: 900px }

.m-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 900px;
          margin-top: 12px; padding: 10px 12px; border: 1.5px solid #CFE0FF; border-radius: 10px;
          background: #F5F9FF; font-size: 13px }
.m-bulk select { font: inherit; font-size: 12.5px; padding: 5px 8px; border: 1.5px solid var(--bdr);
                 border-radius: 8px; background: #fff }
.m-bulk .m-loeschen { flex-basis: 100%; margin-top: 6px }

.m-listen-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 }
.m-listen-zeile input { font: inherit; font-size: 13.5px; padding: 6px 10px; flex: 1 1 200px;
                        border: 1.5px solid var(--bdr); border-radius: 8px; min-width: 0 }

.m-import-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px }
.m-import-feld select { width: 100% }

@media (max-width: 900px) {
  .m-import-raster { grid-template-columns: minmax(0, 1fr) }
  .m-export { margin-left: 0 }
}

/* ── MAIL-L2b 16.10.2026: Liste exportieren ───────────────────────────────── */
.m-werkzeug .m-liste-export { text-decoration: none; align-self: center }
.m-listen-zeile .m-liste-export { text-decoration: none }
.m-import-format p { margin: 0 0 8px; font-size: 13px; line-height: 1.5 }
.m-import-format .m-vorlage { text-decoration: none; display: inline-block; margin-top: 2px }

/* ── MAIL-2c 17.10.2026: das Postfach ansehen ─────────────────────────────── */
.m-box-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 4px }
.m-box-titel { font-weight: 700; font-size: 15px }
.m-box-hinweis { margin-bottom: 10px; max-width: 1100px }
.m-box { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; max-width: 1100px }
.m-box-ordnerliste { display: flex; flex-direction: column; gap: 2px; background: #fff;
                     border: 1.5px solid var(--bdr); border-radius: 10px; padding: 6px; align-self: start }
.m-box-ordner { font: inherit; font-size: 13px; text-align: left; background: none; border: none;
                border-radius: 7px; padding: 6px 10px; cursor: pointer; color: var(--txt);
                display: flex; justify-content: space-between; gap: 6px }
.m-box-ordner span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.m-box-ordner:hover { background: #F3F6FA }
.m-box-ordner.m-aktiv { background: #EEF4FF; color: var(--acc); font-weight: 600 }
.m-box-ordner.m-aus { color: var(--txt3); cursor: default }
.m-box-zahl { font-size: 11px; font-weight: 700; background: #EEF4FF; color: var(--acc);
              border-radius: 99px; padding: 0 7px }
.m-box-haupt { min-width: 0 }
.m-box-haupt .m-werkzeug, .m-box-haupt .m-tabelle-rahmen, .m-box-haupt .m-seiten,
.m-box-haupt .m-bulk { max-width: none }
.m-box-tabelle .m-ungelesen td { font-weight: 700 }
.m-box-tabelle .m-stern { color: #D97706; width: 14px }
.m-box-tabelle .m-datum { white-space: nowrap; color: var(--txt2); font-size: 12px }
.m-box-tabelle td { overflow-wrap: break-word }
.m-box-mailkopf { margin-top: 12px }
.m-box-betreff { font-size: 16px; font-weight: 700; margin-bottom: 8px; overflow-wrap: anywhere }
.m-box-mailkopf .m-schritt { grid-template-columns: 90px minmax(0, 1fr); overflow-wrap: anywhere }
.m-box-bilder { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px }
.m-mail-rahmen { width: 100%; height: 70vh; min-height: 360px; border: 1.5px solid var(--bdr);
                 border-radius: 10px; background: #fff }
.m-box-anhaenge { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px }
.m-anhang { text-decoration: none }

@media (max-width: 900px) {
  .m-box { grid-template-columns: minmax(0, 1fr) }
  .m-box-ordnerliste { flex-direction: row; flex-wrap: wrap }
  .m-box-ordner { padding-left: 10px !important }
  .m-box-tabelle td:nth-child(3) { max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
  .m-box-tabelle td:nth-child(2), .m-box-tabelle th:nth-child(2) { padding-left: 0; padding-right: 0 }
  .m-box-tabelle .m-datum { white-space: normal; font-size: 11px }
}

/* ── MAIL-L3 18.10.2026: Aussendungen ─────────────────────────────────────── */
.m-kasten {
  max-width: 900px; margin: 0 0 16px; padding: 12px 16px;
  border: 1.5px solid #C7D2FE; border-radius: 10px; background: #EEF2FF;
  font-size: 13px; line-height: 1.55; color: var(--txt);
}
.m-kasten p { margin: 0 0 6px }
.m-kasten p:last-child { margin-bottom: 0 }
.m-kasten-werbung { margin-top: 10px; padding-top: 10px; border-top: 1px solid #C7D2FE }
.m-wahlen { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px }
.m-wahl { display: flex; align-items: baseline; gap: 6px; font-size: 13px; margin-bottom: 6px; cursor: pointer }
.m-zahl { color: var(--txt3); font-size: 12px }
.m-text {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; line-height: 1.5;
  padding: 8px 10px; border: 1.5px solid var(--bdr); border-radius: 8px; resize: vertical;
}
.m-text:focus { outline: none; border-color: var(--acc) }
.m-feld-fehler .m-text, .m-block.m-feld-fehler { border-color: #b91c1c !important }
.m-vorschau { margin-top: 8px; font-size: 13px; line-height: 1.6 }
.m-chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px }
.m-auftrag { margin-top: 8px; font-size: 13px; white-space: pre-wrap; color: var(--txt2);
             border-left: 3px solid var(--bdr); padding-left: 10px }
.m-au-kopf { max-width: 900px; margin-bottom: 14px }
.m-knoepfe { white-space: nowrap }
.m-knoepfe .sec-btn { padding: 4px 8px; font-size: 12px }
.m-freigabe { max-width: 900px }
.m-au-loeschen { margin-top: 18px; align-items: center; gap: 8px }

/* MAIL-L4 19.10.2026: Eingang je Aussendung */
.m-eingang-zahlen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.m-eingang tr.m-neu td:first-child { font-weight: 600; }
.m-eingang td .m-warnung { margin: 0; }
.m-eingang td:first-child { overflow-wrap: anywhere; min-width: 140px; }
.m-eingang td:nth-child(4) { min-width: 180px; }
@media (max-width: 640px) {
  .m-eingang thead { display: none; }
  .m-eingang, .m-eingang tbody, .m-eingang tr, .m-eingang td { display: block; width: auto; min-width: 0; }
  .m-eingang tr { padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .m-eingang td { padding: 2px 0; border: 0; }
  .m-eingang td.m-knoepfe { padding-top: 6px; }
}

/* ── MAIL-4a 20.10.2026 (Handtest): man sieht, dass ein Knopf wirkt ────────
 * Hover deutlich, ein Kreisel, solange Testmail / Test / Senden laufen, und
 * eine Meldung, die stehen bleibt (nicht nur ein Toast). */
.m-seite .sec-btn:not(:disabled):hover { background: #EEF3FB; border-color: var(--acc); color: var(--acc) }
.m-seite .sec-btn:not(:disabled):active, .m-seite .prim-btn:not(:disabled):active { transform: translateY(1px) }
.m-seite .sec-btn:focus-visible, .m-seite .prim-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px }
.m-seite .sec-btn:disabled { opacity: .55; cursor: default }
.m-laeuft::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: m-dreh .8s linear infinite;
}
.m-seite .sec-btn.m-laeuft:disabled, .m-seite .prim-btn.m-laeuft:disabled { opacity: .8; cursor: progress }
@keyframes m-dreh { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .m-laeuft::before { animation-duration: 2.4s } }
.m-meldung { margin: 10px 0 4px; padding: 9px 12px; border-radius: 8px; font-size: 13px; line-height: 1.45; max-width: 760px }
.m-meldung-ok { background: #E8F5EC; color: #1F6B3A; border: 1px solid #BFE3CB }
.m-meldung-fehler { background: #FBE9EE; color: #A3264F; border: 1px solid #F0C3D1 }
.m-meldung-laeuft { background: #EEF3FB; color: var(--acc); border: 1px solid #CBDAF2 }

/* Import: die Zeilen, die nicht (oder gesperrt) uebernommen werden */
.m-beispiele-titel { margin: 10px 0 4px }
.m-import-hinweise .m-zahl { width: 64px; text-align: right; font-variant-numeric: tabular-nums; color: var(--txt2) }
.m-import-hinweise .m-roh { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all }
.m-import-hinweise th:first-child { text-align: right }
@media (max-width: 600px) {
  .m-import-hinweise thead { display: none }
  .m-import-hinweise table, .m-import-hinweise tbody, .m-import-hinweise tr { display: block; width: 100% }
  .m-import-hinweise tr { padding: 8px 10px; border-bottom: 1px solid var(--bdr) }
  .m-import-hinweise td { display: inline; padding: 0; border: 0 }
  .m-import-hinweise td.m-zahl { width: auto; text-align: left; margin-right: 8px }
  .m-import-hinweise td.m-zahl::before { content: "#" }
  .m-import-hinweise td:last-child { display: block; margin-top: 3px; color: var(--txt2) }
}

/* ── MAIL-4b 20.10.2026: Antworten bearbeiten ────────────────────────────── */
.pt-kachel-anschauen { margin-top: 8px; display: inline-block; font-size: 12px; font-weight: 600; color: #92400e;
                       background: #fef3c7; border-radius: 99px; padding: 2px 10px }
.m-schild-anschauen { color: #92400e; background: #fef3c7 }
.m-bibliothek { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px;
                font-size: 12.5px; color: var(--txt2) }
.m-bibliothek .sec-btn { padding: 4px 10px; font-size: 12px }
.m-antworten-regeln textarea { width: 100%; box-sizing: border-box; margin: 6px 0 }
.m-regeln { margin: 6px 0 8px 18px; padding: 0; font-size: 13px; line-height: 1.5 }
.m-regeln-vorschlag { margin: 10px 0; padding: 10px 12px; border: 1.5px dashed var(--bdr2); border-radius: 10px; background: #fafcff }
.m-regeln-sicher { margin-top: 10px }
.m-anschauen { margin: 8px 0 }
tr.m-eingang-mehr td { background: #fafbfd; padding-top: 4px }
.m-zusammenfassung { font-size: 13px; line-height: 1.45; margin: 2px 0 6px }
.m-aktion { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--txt2); margin: 4px 0 }
.m-aktion-hinweis { color: #92400e }
.m-aktion .sec-btn { padding: 3px 9px; font-size: 12px }
.m-entwurf { margin: 8px 0; padding: 10px 12px; border: 1.5px solid var(--bdr); border-radius: 10px; background: #fff }
.m-entwurf input[type=text], .m-entwurf textarea { width: 100%; box-sizing: border-box }
/* MAIL-4b1 21.10.2026: Antwortfeld, Anweisungen je Person, „Ist das …?“ */
.m-antworten-regeln [hidden], .m-anweisungen [hidden] { display: none !important }
.m-antworten-regeln { max-width: 900px; box-sizing: border-box }
.m-hinweis-vorschlag { font-size: 12.5px; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 6px 10px; margin: 6px 0 }
.m-anweisungen-zu { margin: 8px 0 0 }
.m-anweisungen { margin-top: 8px }
.m-anweisungen textarea { width: 100%; box-sizing: border-box }
.m-person-frage { display: block; padding: 8px 10px; border: 1.5px solid #fcd34d; border-radius: 10px; background: #fffbeb }
.m-person-frage .pt-aktionen { margin-top: 6px }
@media (max-width: 600px) {
  tr.m-eingang-mehr td { display: block; width: 100% }
}

/* ── MAIL-4b3 21.10.2026: zum Anschauen, Ueberblick, Filter, Antwort ansehen ── */
.m-anschauen-knopf { display: block; width: 100%; max-width: 760px; text-align: left; cursor: pointer;
  font: inherit; font-size: 13px }
.m-anschauen-knopf:hover { border-color: var(--acc) }
.m-anschauen-knopf:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px }
.m-eingang tr.m-anschauen-zeile > td:first-child { box-shadow: inset 4px 0 0 #D97706 }
.m-eingang tr.m-blink > td { animation: m-blink 1.6s ease-out }
@keyframes m-blink { 0%, 30% { background: #FEF3C7 } 100% { background: transparent } }
.m-ueberblick { max-width: 900px }
.m-ueberblick-text { margin: 6px 0 8px; font-size: 14px; line-height: 1.55; white-space: pre-line }
.m-themen { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 }
.m-thema, .m-filter-chip { cursor: pointer; font: inherit; font-size: 12px; padding: 3px 10px;
  border: 1px solid var(--bdr2); background: var(--bg2, #f6f8fb); color: var(--txt) }
.m-thema b, .m-filter-chip b { font-weight: 700; margin-left: 2px }
.m-thema:hover, .m-filter-chip:hover { border-color: var(--acc) }
.m-thema.m-aktiv, .m-filter-chip.m-aktiv, .m-chip.m-aktiv { background: var(--acc); border-color: var(--acc); color: #fff }
.m-filter { margin: 12px 0 8px }
.m-filter-chips { display: flex; flex-wrap: wrap; gap: 6px }
.m-filter-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px }
.m-filter-suche { flex: 1 1 220px; max-width: 360px; padding: 7px 10px; border: 1.5px solid var(--bdr2);
  border-radius: 8px; font: inherit; font-size: 13px; background: var(--bg, #fff); color: var(--txt) }
.m-filter-treffer { font-size: 12px; color: var(--txt2) }
.m-ansehen { width: 860px }
.m-ansehen h2 { margin-bottom: 6px; overflow-wrap: anywhere }
.m-ansehen .m-mail-rahmen { height: 55vh; min-height: 300px; margin-top: 8px }
@media (max-width: 640px) {
  /* gestapelte Zeilen: der Rand an der ganzen Zeile, nicht an der ersten Zelle */
  .m-eingang tr.m-anschauen-zeile { box-shadow: inset 4px 0 0 #D97706; padding-left: 14px }
  .m-eingang tr.m-anschauen-zeile > td:first-child { box-shadow: none }
  .m-ansehen { padding: 18px }
  .m-ansehen .m-mail-rahmen { height: 60vh }
  .m-filter-suche { max-width: none }
}
/* MAIL-4c 23.10.2026: Reiter „Aktivitäten“ — Gruppen zum Aufklappen */
.m-aktivitaeten tr.m-gruppe > td { background: var(--bg2, #f6f8fb); padding: 0; border-bottom: 1px solid var(--border) }
.m-gruppe-knopf { display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; font-size: 14px;
  font-weight: 600; color: var(--txt); background: transparent; border: 0; padding: 10px 12px }
.m-gruppe-knopf:hover { background: rgba(0, 0, 0, .03) }
.m-gruppe-knopf:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px }
.m-gruppe-knopf .m-feld-hilfe { display: inline; font-weight: 400 }
.m-gruppe-pfeil { display: inline-block; width: 1.1em; color: var(--acc) }
.m-gruppieren { display: flex; flex-wrap: wrap; align-items: center; gap: 6px }
.m-aktivitaeten tr.m-gruppe.m-anschauen-zeile > td:first-child { box-shadow: inset 4px 0 0 #D97706 }
@media (max-width: 640px) {
  .m-aktivitaeten tr.m-gruppe { padding: 0 }
  .m-aktivitaeten tr.m-gruppe.m-anschauen-zeile { padding-left: 0 }
  .m-gruppe-knopf { padding: 12px 10px }
}
/* ── MAIL-4d 24.10.2026: Leiste „[[ASSISTENT]]“ neben dem Postfach ─────────── */
.m-box.m-box-mit-leiste { grid-template-columns: 200px minmax(0, 1fr) 360px; max-width: 1440px; align-items: start }
.m-leiste { background: #fff; border: 1px solid var(--bdr); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-md, 0 4px 16px rgba(37,99,235,.10));
  position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; min-width: 0 }
.m-leiste-sprung { display: none }
.m-leiste-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap }
.m-leiste-kopf strong { font-size: 15px }
.m-klein { font-size: 12px }
.m-seg { display: flex; background: #EEF3FA; border-radius: 10px; padding: 3px; gap: 2px }
.m-seg-knopf { flex: 1; font: inherit; font-size: 13px; font-weight: 600; color: var(--txt2); background: transparent;
  border: 0; border-radius: 8px; padding: 7px 4px; cursor: pointer }
.m-seg-knopf.m-aktiv { background: #fff; color: var(--txt); box-shadow: 0 1px 3px rgba(15,28,51,.12) }
.m-seg-knopf:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px }
.m-rueck { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px;
  background: #0F1C33; color: #fff; border-radius: 10px; padding: 8px 12px }
.m-rueck .pt-link { color: #9CC3FF; font-weight: 600 }
.m-leiste [hidden] { display: none !important }
.m-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
/* Karten */
.m-ka-ansicht { display: flex; flex-direction: column; gap: 10px }
.m-ka-neufeld { border: 1px solid var(--bdr); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px }
.m-ka-neufeld .m-text { border: 0; padding: 2px; min-height: 56px; resize: vertical; max-width: none }
.m-ka-neufeld .m-text:focus { box-shadow: none }
.m-ka-neufeld .pt-aktionen { margin: 0 }
.m-ka-beispiele { display: flex; flex-wrap: wrap; gap: 6px }
.m-chip.m-ka-beispiel { font-size: 12px; padding: 4px 10px; background: var(--bg2, #F0F7FF); color: var(--txt2);
  border: 0; cursor: pointer; font-family: inherit }
.m-chip.m-ka-beispiel:hover { background: var(--bg3, #DBEAFE) }
.m-ka { border: 1px solid #E3ECF8; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px;
  transition: background .4s }
.m-ka.m-ka-neu { background: #F0F7FF }
.m-ka.m-ka-grau > :not(.m-ka-menue):not(.m-ka-unten):not(.m-ka-edit) { opacity: .55 }
.m-ka-oben { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start }
.m-ka-text { font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap }
.m-ka-vers { font-size: 12.5px; color: var(--txt2); overflow-wrap: anywhere }
.m-ka-vers-label { color: var(--txt3) }
.m-ka-schilder { display: flex; flex-wrap: wrap; gap: 4px }
.m-schild-klein { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px; background: var(--bg2, #F0F7FF); color: var(--txt2) }
.m-schild-klein.m-schild-frist { background: #FEF3C7; color: #92400E }
.m-schild-klein.m-schild-aus { background: #EEF1F5; color: #5B6B80 }
.m-ka-unten { display: flex; justify-content: space-between; align-items: center; gap: 8px }
.m-ka-menue-knopf { font-size: 18px; line-height: 1; padding: 0 6px; letter-spacing: 1px }
.m-ka-menue { display: flex; flex-wrap: wrap; gap: 6px }
.m-ka-menue .sec-btn { font-size: 12px; padding: 5px 12px }
.m-ka-frage { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px; padding: 8px 10px; font-size: 13px;
  display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere }
.m-ka-frage .pt-aktionen { margin: 0 }
.m-ka-edit { display: flex; flex-direction: column; gap: 6px }
.m-ka-edit .m-text { max-width: none }
.m-ka-edit .pt-aktionen { margin: 0 }
.m-ka-probe { font-size: 12.5px; border-top: 1px dashed #E3ECF8; padding-top: 6px }
.m-ka-probe-liste { margin: 4px 0 0 16px; padding: 0 }
.m-ka-probe-liste li { overflow-wrap: anywhere }
.m-ka-frueher summary { cursor: pointer; font-size: 12.5px; color: var(--txt2) }
.m-ka-frueher-text { white-space: pre-wrap; font-size: 12.5px; color: var(--txt2); background: #F7FAFF; border-radius: 8px;
  padding: 8px; margin-top: 6px; overflow-wrap: anywhere }
.m-ka-vorrang { font-size: 11.5px; line-height: 1.45 }
.m-ka-leer { padding: 4px 2px }
.m-ka-zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--txt2); margin: 6px 0 }
.m-ka-au .m-ka-neufeld { max-width: 900px }
.m-ka-au .m-ka { max-width: 900px; margin-top: 8px }
.m-ka-nach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px }
.m-schalter { position: relative; flex: none; width: 38px; height: 22px; border-radius: 11px; border: 0; cursor: pointer;
  background: #CBD5E1; transition: background .2s; padding: 0 }
.m-schalter::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .2s }
.m-schalter.m-an { background: var(--grn, #10B981) }
.m-schalter.m-an::after { left: 18px }
.m-schalter:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px }
/* Chat */
.m-chat { display: flex; flex-direction: column; gap: 10px; min-height: 0 }
.m-chat-verlauf { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; padding-right: 2px }
.m-blase { max-width: 88%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; overflow-wrap: anywhere; font-size: 13.5px }
.m-blase p { margin: 0 0 6px } .m-blase p:last-child { margin: 0 }
.m-blase-ich { align-self: flex-end; background: var(--acc); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap }
.m-blase-sie { align-self: flex-start; background: #F1F5FB; border-bottom-left-radius: 4px }
.m-chat-treffer { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px }
.m-chat-mail { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "von datum" "betreff betreff";
  width: 100%; text-align: left; font: inherit; font-size: 12.5px; background: #fff; border: 1px solid #E3ECF8;
  border-radius: 8px; padding: 5px 8px; cursor: pointer; gap: 0 8px }
.m-chat-mail:hover { border-color: var(--acc) }
.m-chat-mail-von { grid-area: von; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.m-chat-mail-betreff { grid-area: betreff; color: var(--txt2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.m-chat-mail-datum { grid-area: datum; color: var(--txt3); font-size: 11.5px; white-space: nowrap }
.m-chat-beispiele li { font-size: 12.5px; display: flex; gap: 8px; overflow: hidden }
.m-chat-beispiele .m-chat-mail-von { flex: none; max-width: 45% }
.m-chat-hinweis { font-size: 12.5px; color: #92400E; background: #FFFBEB; border-radius: 10px; padding: 7px 10px }
.m-chat-karte { border: 1px solid var(--bdr); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px;
  background: #fff; font-size: 13px; overflow-wrap: anywhere }
.m-chat-karte .pt-aktionen { margin: 0; flex-wrap: wrap }
.m-chat-karte-kopf { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--txt3) }
.m-chat-karte-fertig { background: #FAFCFF }
.m-chat-betreff { font-weight: 600 }
.m-chat-text { white-space: pre-wrap; max-height: 220px; overflow: auto; font-size: 13px }
.m-chat-an { color: var(--txt2); font-size: 12.5px }
.m-chat-feld { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--bdr); border-radius: 22px; padding: 6px 6px 6px 14px }
.m-chat-eingabe { flex: 1; border: 0; resize: none; font: inherit; font-size: 13.5px; line-height: 1.4; padding: 5px 0;
  max-height: 160px; background: transparent; color: var(--txt); min-width: 0 }
.m-chat-eingabe:focus { outline: none }
.m-chat-feld:focus-within { border-color: var(--acc) }
.m-chat-los { padding: 7px 13px !important; border-radius: 18px !important }
.m-chat-leer { display: flex; flex-direction: column; gap: 8px }
.m-chat-denkt { font-size: 12.5px; color: var(--txt3); display: flex; align-items: center; gap: 6px }
.m-punkte { display: inline-flex; gap: 3px }
.m-punkte i { width: 5px; height: 5px; border-radius: 50%; background: var(--txt3); animation: m-punkt 1.2s infinite ease-in-out }
.m-punkte i:nth-child(2) { animation-delay: .15s } .m-punkte i:nth-child(3) { animation-delay: .3s }
@keyframes m-punkt { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .m-punkte i { animation: none } .m-schalter, .m-schalter::after, .m-ka { transition: none } }
@media (max-width: 1279px) {
  .m-box.m-box-mit-leiste { grid-template-columns: 200px minmax(0, 1fr); max-width: 1100px }
  .m-box-mit-leiste .m-leiste { grid-column: 1 / -1; position: static; max-height: none }
  .m-leiste-sprung { display: inline-block; margin-left: auto }
  .m-chat-verlauf { max-height: 70vh }
}
@media (max-width: 900px) {
  .m-box.m-box-mit-leiste { grid-template-columns: minmax(0, 1fr) }
  .m-leiste { padding: 12px; border-radius: 14px }
  .m-blase { max-width: 94% }
}

/* ── MAIL-4e 26.10.2026: im Postfach bleiben, Anweisungen als Reiter, Gespraeche ── */
.m-pf-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 4px 0 6px }
.m-pf-zurueck { font-weight: 600 }
.m-pf-name { font-size: 18px; font-weight: 700; color: var(--txt) }
.m-pf-kopf > .m-feld-hilfe, .m-pf-kopf > .m-warnung { flex-basis: 100% }
.m-pf-reiter { max-width: none; position: relative }
.m-reiter-knopf.m-reiter-global { color: var(--txt3) }
.m-reiter-knopf.m-reiter-global.m-aktiv { color: var(--acc) }
.m-punkt { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #D97706; vertical-align: middle; margin-left: 3px }
@media (max-width: 640px) {
  .m-pf-reiter { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none }
  .m-pf-reiter::-webkit-scrollbar { display: none }
  .m-pf-reiter .m-reiter-knopf, .m-pf-reiter .m-export { flex: 0 0 auto; white-space: nowrap }
}
.m-zeit { white-space: nowrap; color: var(--txt2); font-variant-numeric: tabular-nums; font-size: 12.5px }
.m-aktivitaeten td.m-zeit { width: 1%; padding-right: 10px }
.m-zeitraum { font-weight: 400; color: var(--txt2); font-size: 12.5px; margin-left: 6px; font-variant-numeric: tabular-nums }
.m-akt-chat-liste { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px }
.m-akt-chat-liste li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px }

/* Anweisungen: Zeilen, zwei Abschnitte, Detail rechts (Handy: Blatt von unten) */
.m-anw { display: flex; flex-direction: column; gap: 10px; max-width: 1240px }
.m-anw-spalten { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start }
.m-anw-links { display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.m-anw-detail { position: sticky; top: 12px; background: #fff; border: 1px solid var(--bdr); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 40px); overflow: auto }
.m-anw-detail-leer { padding: 20px 4px }
.m-anw-detail-kopf { display: none; justify-content: flex-end }
.m-anw-werkzeug { display: flex; flex-direction: column; gap: 8px }
.m-anw-werkzeug .m-suche, .m-gesp-alle .m-suche { flex: 0 0 auto; width: 100%; max-width: 420px; font: inherit; font-size: 13.5px;
  padding: 7px 10px; border: 1.5px solid var(--bdr); border-radius: 8px; background: #fff; color: var(--txt) }
.m-anw-werkzeug .m-suche:focus, .m-gesp-alle .m-suche:focus { outline: none; border-color: var(--acc) }
.m-anw-abschnitt { display: flex; flex-direction: column; gap: 6px }
.m-anw-kopf { font-size: 14px; font-weight: 700; margin: 6px 0 0; color: var(--txt) }
.m-anw-global { border-left: 4px solid #7C3AED; padding-left: 12px; background: linear-gradient(90deg, #F5F3FF, transparent 60%);
  border-radius: 4px 10px 10px 4px; padding-top: 4px; padding-bottom: 6px }
.m-anw-global .m-anw-kopf { color: #5B21B6 }
.m-anw-zeile { display: flex; align-items: center; gap: 10px; border: 1px solid #E3ECF8; border-radius: 10px; background: #fff; padding: 2px 10px 2px 2px }
.m-anw-zeile.m-aktiv { border-color: var(--acc); box-shadow: 0 0 0 2px #DBEAFE }
.m-anw-zeile-global { border-color: #DDD6FE }
.m-anw-zeile.m-ka-grau .m-anw-was { color: var(--txt3) }
.m-anw-haupt { flex: 1; min-width: 0; text-align: left; font: inherit; background: none; border: 0; padding: 8px 8px; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; border-radius: 8px; color: var(--txt) }
.m-anw-haupt:hover { background: #F7FAFE }
.m-anw-haupt:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px }
.m-anw-was { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.m-anw-stand { font-size: 12px }
.m-anw-oben { display: flex; flex-direction: column; gap: 8px }
.m-anw-oben-eintrag { display: flex; flex-direction: column; gap: 4px }
.m-anw-oben-titel { font-weight: 600; font-size: 13.5px }
.m-anw-hinweis { background: #F5F3FF; border: 1px solid #DDD6FE; border-radius: 10px; padding: 8px 10px; font-size: 13px }
.m-anw-hinweis .pt-aktionen, .m-anw-frage .pt-aktionen { margin: 4px 0 0; flex-wrap: wrap }
.m-anw-schalter { display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid #EEF3FA; padding-bottom: 10px }
.m-anw-schalter-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px }
.m-anw-schalter-zeile > span { display: flex; flex-direction: column; gap: 2px }
.m-schalter[disabled] { opacity: .45; cursor: not-allowed }
.m-schild-global { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; color: #5B21B6; background: #EDE9FE;
  border-radius: 10px; padding: 2px 10px }
.m-anw-bezug { font-size: 13px; background: #F5F3FF; border-radius: 8px; padding: 6px 8px }
.m-anw-au { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start }
@media (max-width: 1100px) {
  .m-anw-spalten { grid-template-columns: minmax(0, 1fr) }
  .m-anw-detail { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 82vh; border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 30px rgba(15,28,51,.18); z-index: 60; padding: 12px 14px 18px }
  .m-anw-blatt-auf .m-anw-detail { display: flex }
  .m-anw-detail-kopf { display: flex }
}

/* Chat: Gespraeche */
.m-gesp-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px }
.m-gesp-kopf .m-gesp-titel { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.m-gesp-loeschen-frage { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px }
.m-gesp-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px }
.m-gesp-zeile { width: 100%; display: flex; justify-content: space-between; gap: 10px; font: inherit; font-size: 13px; text-align: left;
  background: none; border: 0; border-radius: 8px; padding: 7px 8px; cursor: pointer; color: var(--txt) }
.m-gesp-zeile:hover { background: #F3F6FA }
.m-gesp-zeile .m-gesp-titel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.m-gesp-gruppe { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--txt3); margin-top: 6px }
.m-gesp-alle { display: flex; flex-direction: column; gap: 8px }
.m-gesp-alle-knopf { align-self: flex-start; font-weight: 600 }
.m-chat-zu { display: flex; justify-content: space-between; gap: 10px; width: 100%; font: inherit; font-size: 12.5px; text-align: left;
  color: var(--txt2); background: #F7FAF7; border: 1px solid #DCEFE0; border-radius: 10px; padding: 6px 10px; cursor: pointer }
.m-chat-zu:hover { background: #EFF8F1 }
.m-chat-zuklappen { align-self: flex-end }
.m-chat-bezug { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.m-gesp-weiter { margin: 0; flex-wrap: wrap; align-items: center }

/* ── MAIL-4e1 26.10.2026: Beispiele sehen anders aus als Inhalte ── */
.m-bsp-titel { flex-basis: 100%; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--txt3) }
.m-chip.m-ka-beispiel { font-style: italic; background: transparent; border: 1.5px dashed var(--bdr2, #C9D6E8); color: var(--txt2) }
.m-chip.m-ka-beispiel:hover { background: var(--bg2, #F0F7FF); border-style: solid }

/* ── MAIL-4f 27.10.2026: ungelesen, zuletzt aktiv, Postfach hinzufügen ── */
.m-pf-stand { font-size: 12.5px; color: var(--txt2); margin-top: 2px }
.m-pf-stand-neu { font-weight: 700; color: var(--acc) }
.m-pf-stand-zeit { font-weight: 400; color: var(--txt3) }
.m-pf-stand-aktiv { color: var(--txt3) }
.m-pf-stand-fehler { color: #B45309 }
.m-pf-kopf .m-pf-neu { margin-left: auto; align-self: center }
.m-pf-grenze { margin-top: 10px; max-width: 900px }
@media (max-width: 640px) {
  .m-pf-kopf .m-pf-neu { margin-left: 0; flex-basis: auto }
}


/* ── MAIL-4g 27.10.2026: Mail wie ein Mailprogramm, Vollbild ────────────────
 * Bauplan claude/BAUPLAN-MAIL-4G-2026-10-27.md. Die Breiten richten sich nach
 * der Mail-Flaeche selbst (@container m-app), so gilt dasselbe Layout mit und
 * ohne Vollbild. Dieselben Zahlen stehen in mail.js (_M_CHAT_SPALTE, …).     */

/* Vollbild: nur der Rahmen der Seite verschwindet, solange die Mail zu sehen ist */
body.m-vollbild:has(#powertasks-view[style*="block"] .m-app) #sidebar,
body.m-vollbild:has(#powertasks-view[style*="block"] .m-app) #right-sidebar,
body.m-vollbild:has(#powertasks-view[style*="block"] .m-app) #mobile-topbar { display: none !important }
body.m-vollbild:has(#powertasks-view[style*="block"] .m-app) #powertasks-view { padding: 0; overflow: hidden }

.m-seite-app { display: flex; flex-direction: column; height: 100%; min-height: 0 }
.m-seite-app > .view-head, .m-seite-app > .pt-einleitung { flex: none }
.m-app { container: m-app / inline-size; flex: 1 1 auto; min-height: 560px; display: flex; flex-direction: column;
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--bdr); border-radius: 14px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(15,28,51,.06)) }
.m-app.m-app-voll { border: 0; border-radius: 0; box-shadow: none; min-height: 0; height: 100% }
.m-app button:focus-visible, .m-app a:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px }

/* oben */
.m-oben { flex: none; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px;
  border-bottom: 1px solid var(--bdr); background: #fff }
.m-oben-titel { display: flex; align-items: baseline; gap: 10px; min-width: 0; font-weight: 700; font-size: 15px;
  white-space: nowrap; overflow: hidden }
.m-oben-kachel { color: var(--txt2); flex: none }
.m-oben-ort { overflow: hidden; text-overflow: ellipsis; color: var(--txt) }
.m-oben-platz { flex: 1 1 auto }
.m-oben .sec-btn { white-space: nowrap; flex: none }
.m-oben .m-export { margin-left: 0 }
.m-oben-zurueck { flex: none; font-weight: 600 }
.m-baum-auf { display: none }
.m-oben .m-chat-knopf[aria-pressed="true"], .m-oben .m-voll-knopf[aria-pressed="true"] { background: #EEF4FF; border-color: var(--acc); color: var(--acc) }

/* kompakte Knoepfe in den Leisten (wie ein Mailprogramm) */
.m-oben .sec-btn, .m-lesen-werkzeug .sec-btn, .m-liste-kopf .sec-btn, .m-lesen-werkzeug select {
  padding: 5px 11px; border-radius: 9px; font-size: 12.5px; line-height: 1.3 }
.m-lesen-werkzeug select { border: 1.5px solid var(--bdr); background: #fff; font: inherit; font-size: 12.5px }

/* Leiste, Baum, Haupt */
.m-koerper { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 66px var(--m-baum-b, 250px) minmax(0, 1fr) }
.m-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; min-height: 0;
  background: var(--bg2, #F0F7FF); border-right: 1px solid var(--bdr); overflow-y: auto }
.m-rail-knopf { width: 62px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px;
  border: 0; border-radius: 12px; background: transparent; color: var(--txt2); font: inherit; font-size: 10.5px;
  line-height: 1.15; text-align: center; cursor: pointer; letter-spacing: -.1px }
.m-rail-ic { font-size: 18px; line-height: 1 }
.m-rail-text { max-width: 100%; overflow-wrap: normal; hyphens: auto }
.m-rail-knopf:hover { background: #fff }
.m-rail-knopf.m-aktiv { background: #fff; color: var(--acc); font-weight: 600; box-shadow: 0 1px 4px rgba(37,99,235,.14) }
.m-rail-knopf.m-bald { opacity: .55 }
.m-rail-global .m-rail-ic { filter: saturate(.6) }
.m-rail-platz { flex: 1 1 auto }

.m-baum { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #FBFDFF; border-right: 1px solid var(--bdr) }
.m-baum-kopf { flex: none; padding: 12px 14px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--txt3) }
.m-baum-roll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 8px 8px }
.m-baum-pf { margin-bottom: 6px }
.m-baum-zeile, .m-baum-ordner { width: 100%; display: flex; align-items: center; gap: 7px; border: 0; background: none;
  font: inherit; font-size: 13px; text-align: left; cursor: pointer; min-width: 0 }
.m-baum-zeile { padding: 7px 8px; border-radius: 9px; color: var(--txt) }
.m-baum-ordner { padding: 6px 8px; border-radius: 8px; color: var(--txt2) }
.m-baum-zeile:hover, .m-baum-ordner:hover { background: #F0F5FC }
.m-baum-pfeil { width: 12px; flex: none; color: var(--txt3); font-size: 10px }
.m-baum-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.m-baum-zeile .m-baum-name { font-weight: 600 }
.m-baum-unter { font-size: 11px; color: var(--txt3); padding: 0 8px 1px 27px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.m-baum-zahl { flex: none; font-size: 11px; font-weight: 700; background: #EEF4FF; color: var(--acc); border-radius: 10px; padding: 1px 7px }
.m-baum-zahl.m-grau { background: #EEF2F7; color: #64748B }
.m-baum-gruppe { display: flex; flex-direction: column; gap: 1px; margin-top: 4px }
.m-baum-ordner.m-aktiv { background: #EEF4FF; color: var(--acc); font-weight: 600 }
.m-baum-ordner.m-aus { color: var(--txt3); cursor: default }
.m-baum-ordner.m-aus:hover { background: none }
.m-baum-ic { width: 16px; flex: none; text-align: center; font-size: 13px }
.m-baum-trenn { margin: 10px 8px 2px 27px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--txt3); font-weight: 700 }
.m-baum-unlesbar { opacity: .65; cursor: not-allowed }
.m-baum-unlesbar .m-baum-zeile { cursor: not-allowed; color: #94A3B8 }
.m-baum-unlesbar .m-baum-zeile:hover { background: none }
.m-baum-fuss { flex: none; padding: 8px; border-top: 1px solid var(--bdr) }
.m-baum-neu { width: 100%; padding: 10px; border: 1.5px dashed var(--bdr2, #93C5FD); border-radius: 12px; background: #fff;
  color: var(--acc); font: inherit; font-weight: 600; cursor: pointer }
.m-baum-neu:hover:not(:disabled) { border-color: var(--acc); background: #F5F9FF }
.m-baum-neu:disabled { color: var(--txt3); border-color: var(--bdr); cursor: default }
.m-baum-fuss .m-pf-grenze { margin-top: 6px; font-size: 11.5px; line-height: 1.4 }

.m-haupt { min-width: 0; min-height: 0; overflow-y: auto; padding: 16px 20px 24px }
.m-haupt > .m-verantwortung { max-width: 900px }
.m-haupt.m-haupt-box { padding: 0; overflow: hidden; display: flex; flex-direction: column }
.m-pf-kopf .m-pf-unter { flex-basis: 100%; font-size: 12px; color: var(--txt3); margin-top: -2px }

/* Posteingang: Liste | Lesebereich | [[ASSISTENT]] */
.m-app .m-box.m-box-mit-leiste { flex: 1 1 auto; min-height: 0; height: 100%; max-width: none; margin: 0; gap: 0;
  display: grid; grid-template-columns: var(--m-liste-b, 380px) minmax(0, 1fr) var(--m-chat-b, 340px); align-items: stretch; position: relative }
.m-app.m-chat-zu .m-box.m-box-mit-leiste { grid-template-columns: var(--m-liste-b, 400px) minmax(0, 1fr) }
.m-box-spalte { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff }
.m-app .m-box-haupt { border-right: 1px solid var(--bdr) }
.m-app .m-box-mit-leiste .m-leiste { position: relative; grid-column: auto; height: 100%; max-height: none; min-height: 0;
  overflow: hidden; padding: 12px; border: 0; border-left: 1px solid var(--bdr); border-radius: 0; box-shadow: none; background: #FBFDFF }
.m-app.m-chat-zu .m-box-mit-leiste .m-leiste { display: none }
.m-app .m-leiste .m-chat { flex: 1 1 auto; min-height: 0; overflow-y: auto }
.m-app .m-chat-verlauf { flex: 1 1 auto; max-height: none; min-height: 120px }
.m-chat-zu-knopf { margin-left: auto; font-size: 14px; color: var(--txt3) }

.m-liste-kopf { flex: none; display: flex; flex-direction: column; gap: 7px; padding: 12px 14px 10px; border-bottom: 1px solid var(--bdr) }
.m-liste-titel { display: flex; align-items: baseline; gap: 8px; min-width: 0 }
.m-liste-titel h2 { margin: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60% }
.m-liste-pf { flex: 1 1 auto; min-width: 0; color: var(--txt3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.m-liste-neu { flex: none; align-self: center }
.m-liste-zahlen { margin: -4px 0 0 }
.m-liste-kopf .m-suche { flex: none; width: 100%; font: inherit; font-size: 13px; padding: 7px 10px; border: 1.5px solid var(--bdr);
  border-radius: 9px; background: var(--grau, #F6F9FC); color: var(--txt) }
.m-liste-kopf .m-filter { margin: 0; display: flex; flex-wrap: wrap; gap: 6px }
.m-alle { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--txt2) }
.m-liste-kopf .m-bulk { margin: 0; max-width: none; padding: 8px 10px }
.m-zeilen { flex: 1 1 auto; min-height: 0; overflow-y: auto }
.m-zeilen .pt-leer { padding: 24px 14px; text-align: center }
.m-zeile { position: relative; display: flex; align-items: flex-start; gap: 2px; padding: 0 6px 0 12px; border-bottom: 1px solid #EEF3F9 }
.m-zeile:hover { background: #F7FAFE }
.m-zeile.m-markiert { background: #F5F9FF }
.m-zeile.m-offen { background: #EEF4FF; box-shadow: inset 3px 0 0 var(--acc) }
.m-zeile-haken { flex: none; margin: 12px 4px 0 0 }
.m-zeile-knopf { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 9px 6px 9px 6px;
  border: 0; background: none; font: inherit; font-size: 13px; text-align: left; color: var(--txt2) }
.m-zeile-a, .m-zeile-b { display: flex; align-items: baseline; gap: 8px; min-width: 0 }
.m-zeile-von, .m-zeile-betreff { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.m-zeile-von { color: var(--txt) }
.m-zeile .m-datum { flex: none; font-size: 11.5px; color: var(--txt3); white-space: nowrap }
.m-zeile.m-ungelesen .m-zeile-von, .m-zeile.m-ungelesen .m-zeile-betreff { font-weight: 700; color: var(--txt) }
.m-zeile.m-ungelesen::before { content: ''; position: absolute; left: 3px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc) }
.m-zeile .m-stern { flex: none; color: #D97706 }
.m-zeile-ic { flex: none; font-size: 11px }
.m-box-haupt .m-seiten { flex: none; margin: 0; padding: 6px 14px; border-top: 1px solid var(--bdr) }
.m-box-haupt .m-box-hinweis { flex: none; margin: 0; padding: 6px 14px 10px; font-size: 11px; max-width: none }
.m-box-haupt > .m-meldung { margin: 14px }

.m-lesen-leer { margin: auto; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--txt3) }
.m-lesen-leer > span { font-size: 34px; opacity: .5 }
.m-lesen-werkzeug { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--bdr) }
.m-lesen-werkzeug .m-bulk { flex: 1 1 auto; margin: 0; padding: 0; border: 0; background: none; max-width: none }
.m-lesen-zurueck { display: none }
.m-lesen-werkzeug .m-mit-susi { border-color: var(--bdr2, #93C5FD); color: var(--acc); font-weight: 600 }
.m-lesen-rumpf { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 18px }
.m-lesen-rumpf .m-box-mailkopf { margin: 0 }
.m-lesen-rumpf .m-box-bilder { margin: 0 }
.m-lesen-rumpf .m-mail-rahmen { flex: 1 0 auto; height: auto; min-height: 420px }

.m-kalender { max-width: 520px; margin: 40px auto; padding: 28px; text-align: center; border: 1.5px dashed var(--bdr2, #93C5FD);
  border-radius: 16px; background: #FBFDFF }
.m-kalender-ic { font-size: 40px; opacity: .6 }

/* unter 1340 px Mail-Flaeche: [[ASSISTENT]] als Blatt ueber dem Lesebereich */
@container m-app (max-width: 1339px) {
  .m-app .m-box.m-box-mit-leiste, .m-app.m-chat-zu .m-box.m-box-mit-leiste { grid-template-columns: var(--m-liste-b, 340px) minmax(0, 1fr) }
  .m-app .m-box-mit-leiste .m-leiste { display: none; position: absolute; top: 0; right: 0; bottom: 0; z-index: 5;
    width: min(380px, 92%); height: auto; background: #fff; box-shadow: -8px 0 28px rgba(15,28,51,.16) }
  .m-app.m-chat-auf .m-box-mit-leiste .m-leiste { display: flex }
}
/* unter 1040 px: die Mail ersetzt die Liste */
@container m-app (max-width: 1039px) {
  .m-koerper { grid-template-columns: 66px var(--m-baum-b, 220px) minmax(0, 1fr) }
  .m-app .m-box.m-box-mit-leiste, .m-app.m-chat-zu .m-box.m-box-mit-leiste { grid-template-columns: minmax(0, 1fr) }
  .m-app .m-box-haupt { border-right: 0 }
  .m-app .m-box-lesen { display: none }
  .m-app .m-box-mail-offen .m-box-haupt { display: none }
  .m-app .m-box-mail-offen .m-box-lesen { display: flex }
  .m-lesen-zurueck { display: inline-block }
}
/* Handy: Schritt fuer Schritt — Postfaecher → Liste → Mail, unten die Leiste */
@container m-app (max-width: 759px) {
  .m-koerper { display: flex; flex-direction: column }
  .m-rail { order: 3; flex: none; flex-direction: row; align-items: stretch; gap: 2px; padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--bdr); overflow: visible }
  .m-rail-platz { display: none }
  .m-rail-knopf { width: auto; flex: 1 1 0; min-width: 0; padding: 6px 2px }
  .m-baum { order: 1; flex: 1 1 auto; display: none; border-right: 0 }
  .m-haupt { order: 2; flex: 1 1 auto; padding: 12px 12px 18px }
  .m-app.m-stufe-baum .m-baum { display: flex }
  .m-app.m-stufe-baum .m-haupt { display: none }
  .m-baum-auf { display: inline-block }
  .m-app.m-stufe-baum .m-baum-auf { display: none }
  .m-oben { flex-wrap: wrap; gap: 6px; padding: 6px 8px; min-height: 0 }
  .m-oben-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
  .m-oben-kachel { display: none }
  .m-app .m-box-mit-leiste .m-leiste { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 80%;
    border-left: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(15,28,51,.18) }
  .m-lesen-rumpf { padding: 12px }
  .m-lesen-rumpf .m-mail-rahmen { min-height: 320px }
}
@media (max-width: 760px) {
  .m-app { min-height: 480px }
  /* Handy: die Einleitung nur unter „Postfächer verwalten“ — sonst hat die Mail den Platz */
  .m-seite-app:not(.m-seite-verwalten) > .pt-einleitung { display: none }
}

/* ── MAIL-4h 27.10.2026: viele Ordner, ✎, Spaltenbreiten, Sichern und wiederherstellen ── */
.m-baum { position: relative }
.m-baum-zeile { display: flex; align-items: center; gap: 2px; padding: 2px 2px 2px 4px; border-radius: 9px }
.m-baum-pf.m-offen > .m-baum-zeile { position: sticky; top: 0; z-index: 2; background: #FBFDFF; box-shadow: 0 6px 6px -6px rgba(15,28,51,.12) }
.m-baum-zeile:hover { background: #F0F5FC }
.m-baum-zeile > .m-baum-pfeil { width: 22px; height: 26px; flex: none; border: 0; background: none; border-radius: 6px; padding: 0;
  font: inherit; font-size: 11px; color: var(--txt3); display: inline-flex; align-items: center; justify-content: center }
button.m-baum-pfeil { cursor: pointer }
button.m-baum-pfeil:hover { background: #E6EEF9; color: var(--acc) }
.m-baum-name-knopf { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 5px 6px; border: 0;
  background: none; border-radius: 8px; font: inherit; font-size: 13px; color: var(--txt); text-align: left; cursor: pointer }
.m-baum-name-knopf .m-baum-name { font-weight: 600 }
.m-baum-stift { flex: none; width: 26px; height: 26px; border: 0; background: none; border-radius: 6px; color: var(--txt3); cursor: pointer; font-size: 13px }
.m-baum-stift:hover { background: #E6EEF9; color: var(--acc) }
.m-baum-ordner-zeile { display: flex; align-items: center; gap: 0; min-width: 0 }
.m-baum-ordner-zeile > .m-baum-ordner { flex: 1 1 auto; min-width: 0 }
.m-ordner-kipp { width: 18px; height: 24px; flex: none; border: 0; background: none; border-radius: 5px; padding: 0; color: var(--txt3);
  font-size: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center }
.m-ordner-kipp:hover { background: #E6EEF9; color: var(--acc) }
.m-ordner-kipp.m-leer { cursor: default }
.m-ordner-kipp.m-leer:hover { background: none }
.m-ordner-suche { width: calc(100% - 16px); margin: 4px 8px 4px; font: inherit; font-size: 12.5px; padding: 6px 9px;
  border: 1.5px solid var(--bdr); border-radius: 8px; background: #fff; color: var(--txt) }
.m-baum-leer { padding: 6px 10px }
.m-pf-bearbeiten { flex: none }

/* Griffe zwischen den Spalten */
.m-griff { position: absolute; top: 0; bottom: 0; width: 8px; z-index: 6; cursor: col-resize; touch-action: none; background: transparent }
.m-griff::after { content: ''; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; background: transparent; transition: background .12s }
.m-griff:hover::after, .m-griff:focus-visible::after, .m-griff.m-zieht::after { background: var(--acc) }
.m-griff:focus-visible { outline: none }
.m-griff-baum, .m-griff-liste { right: -4px }
.m-griff-chat { left: -4px }
.m-app .m-box-haupt { position: relative }
.m-app .m-box-haupt > .m-griff-liste { right: 0 }
.m-app .m-leiste > .m-griff-chat { left: 0 }
.m-app.m-chat-zu .m-griff-chat { display: none }
@container m-app (max-width: 1339px) { .m-griff-chat { display: none } }
@container m-app (max-width: 1039px) { .m-griff-liste { display: none } }
@container m-app (max-width: 759px) { .m-griff { display: none } }

/* Sichern und wiederherstellen (unter „Postfächer verwalten“) */
.m-sicher { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; max-width: 900px; margin-bottom: 18px }
.m-sicher-teil { background: #fff; border: 1.5px solid var(--bdr); border-radius: var(--rad, 12px); padding: 14px 16px; min-width: 0 }
.m-sicher-teil > .pt-aktionen { margin: 10px 0 0 }
.m-export-gross { margin-top: 10px }
.m-export-gross p { margin: 0 0 8px }
.m-datei-knopf { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer }
.m-datei-knopf:focus-within { outline: 2px solid var(--acc); outline-offset: 2px }
.m-wh { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; min-width: 0 }
.m-wh-titel { margin: 4px 0 0; font-size: 15px }
.m-wh-h { margin: 6px 0 0; font-size: 13px; color: var(--txt2) }
.m-wh-pf { border: 1px solid var(--bdr); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere }
.m-wh-haken { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer }
.m-wh-haken input { margin-top: 2px }
.m-wh-pf-name { font-weight: 600 }
.m-wh-zustand { font-size: 12px; color: var(--txt2) }
.m-wh-zustand.m-wh-neu { color: #047857 }
.m-wh-zustand.m-wh-kein_platz, .m-wh-zustand.m-wh-unvollstaendig, .m-wh-zustand.m-wh-ungueltig { color: #B45309 }
.m-wh-pw input { max-width: 320px }
.m-wh-nicht summary { cursor: pointer; font-size: 12.5px; color: var(--txt2) }
.m-wh-nicht ul { margin: 6px 0 0 18px; padding: 0; font-size: 12.5px }
.m-wh-archiv { font-style: italic }
.m-wh-pf > .sec-btn { align-self: flex-start }

/* MAIL-4i 28.10.2026: Vorschau des Wiederherstellens — Karten mit ihrer Aussendung,
   je Grund ein Satz; Karten einer geloeschten Aussendung */
.m-wh-karten { margin: 4px 0 0 18px; padding: 0; font-size: 12.5px; overflow-wrap: anywhere }
.m-wh-karten li { margin: 2px 0 }
.m-wh-grund { margin-top: 6px }
.m-wh-grund p, .m-wh-schon p { margin: 6px 0 0 }
.m-ka-spur { margin-top: 4px }

/* MAIL-4j 28.10.2026: Wissen */
.m-wi-hilfe { max-width: 820px }
.m-wi-knoepfe { margin: 2px 0 0; flex-wrap: wrap }
.m-wi-datei { position: relative; overflow: hidden; cursor: pointer; display: inline-flex; align-items: center }
.m-wi-datei-feld { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100% }
.m-wi-datei:focus-within { outline: 2px solid var(--acc); outline-offset: 1px }
.m-wi-stand { font-size: 12px; white-space: nowrap }
.m-wi-laeuft { color: #B45309 }
.m-wi-fehler { color: #B91C1C; white-space: normal }
.m-wi-bereit { color: #047857 }
.m-wi-kopf-stand { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center }
.m-wi-titel { margin: 0; overflow-wrap: anywhere }
.m-wi-ansicht { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.5; background: #F9FBFE;
  border: 1px solid #E3ECF8; border-radius: 10px; padding: 10px 12px; max-height: 60vh; overflow: auto }
.m-wi-text { width: 100%; box-sizing: border-box; min-height: 260px; font: inherit; font-size: 13.5px; line-height: 1.5 }
.m-wi-zaehler { align-self: flex-end }
.m-wi-zu-viel { color: #B91C1C; font-weight: 600 }
.m-wi-wo { border: 0; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap }
.m-wi-wo label { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px }
.m-wi-frage { background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 10px; padding: 8px 10px }
.m-wi-loeschen { border-top: 1px solid #EEF3FA; padding-top: 10px; flex-wrap: wrap }
.m-wi-karte-was { font-weight: 600 }
.m-wi-karte-text { white-space: pre-wrap; max-height: 260px; overflow: auto }
.m-wi-diff { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 }
.m-wi-bisher > div, .m-wi-neu > div { white-space: pre-wrap; border-radius: 8px; padding: 6px 8px; font-size: 13px }
.m-wi-bisher > div { background: #FEF2F2; color: #7F1D1D; text-decoration: line-through; text-decoration-color: #FCA5A5 }
.m-wi-neu > div { background: #ECFDF5; color: #064E3B }
.m-wi-ganz summary { cursor: pointer; font-size: 13px }

/* ── MAIL-4k 29.10.2026: ein Chat über alles — die Spalte [[ASSISTENT]] neben jedem Eintrag ── */
/* die Leiste steht neben dem Haupt (nicht mehr im Posteingang); die Box hat nur noch Liste | Lesebereich */
.m-koerper { position: relative }
.m-app.m-mit-chat .m-koerper { grid-template-columns: 66px var(--m-baum-b, 250px) minmax(0, 1fr) var(--m-chat-b, 340px) }
.m-app.m-mit-chat.m-chat-zu .m-koerper { grid-template-columns: 66px var(--m-baum-b, 250px) minmax(0, 1fr) }
.m-app .m-box.m-box-mit-leiste, .m-app.m-chat-zu .m-box.m-box-mit-leiste { grid-template-columns: var(--m-liste-b, 380px) minmax(0, 1fr) }
.m-app .m-koerper > .m-leiste { position: relative; top: auto; display: flex; flex-direction: column; height: auto; max-height: none;
  min-height: 0; min-width: 0; overflow: hidden; margin: 0; padding: 12px; border: 0; border-left: 1px solid var(--bdr);
  border-radius: 0; box-shadow: none; background: #FBFDFF }
.m-app.m-chat-zu .m-koerper > .m-leiste { display: none }
.m-app .m-koerper > .m-leiste .m-chat { flex: 1 1 auto; min-height: 0; overflow-y: auto }
.m-gesp-zeile .m-gesp-pf { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11.5px; color: var(--txt3) }
.m-chat-karte-pf { margin: -2px 0 2px }
.m-wi-ersetzen-schild { display: block; margin-top: 2px }
.m-wi-ersetzen-hilfe { margin-top: 4px }
/* unter 1340 px Mail-Flaeche: [[ASSISTENT]] als Blatt ueber dem Haupt */
@container m-app (max-width: 1339px) {
  .m-app.m-mit-chat .m-koerper, .m-app.m-mit-chat.m-chat-zu .m-koerper { grid-template-columns: 66px var(--m-baum-b, 250px) minmax(0, 1fr) }
  .m-app .m-box.m-box-mit-leiste, .m-app.m-chat-zu .m-box.m-box-mit-leiste { grid-template-columns: var(--m-liste-b, 340px) minmax(0, 1fr) }
  .m-app .m-koerper > .m-leiste { display: none; position: absolute; top: 0; right: 0; bottom: 0; z-index: 5;
    width: min(380px, 92%); background: #fff; box-shadow: -8px 0 28px rgba(15,28,51,.16) }
  .m-app.m-chat-auf .m-koerper > .m-leiste { display: flex }
}
@container m-app (max-width: 1039px) {
  .m-app.m-mit-chat .m-koerper, .m-app.m-mit-chat.m-chat-zu .m-koerper { grid-template-columns: 66px var(--m-baum-b, 220px) minmax(0, 1fr) }
  .m-app .m-box.m-box-mit-leiste, .m-app.m-chat-zu .m-box.m-box-mit-leiste { grid-template-columns: minmax(0, 1fr) }
}
/* Handy: unten als Blatt */
@container m-app (max-width: 759px) {
  .m-app.m-mit-chat .m-koerper { display: flex; flex-direction: column }
  .m-app .m-koerper > .m-leiste { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 80%;
    border-left: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(15,28,51,.18) }
}
