/* Chat, Mitteilungen und rote Punkte (aus der Quelle übernommen, Stand 24.11.2026, neutral). Geladen von Plattform und App. */
/* Chat oben rechts: Zahl der ungelesenen Nachrichten am Knopf */
.chat-kopf-knopf { position: relative; }
.chat-kopf-knopf .zaehler { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; box-sizing: border-box; padding: 0 5px;
  border-radius: 9px; background: var(--rot); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center;
  font-variant-numeric: tabular-nums; }
/* Roter Punkt „hier ist etwas zu tun“ an Reitern */
.segmente button .tab-punkt { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; margin-left: -3px; align-self: flex-start; margin-top: 3px; }
/* Mitteilungszentrale wie macOS: Datum und Uhrzeit oben rechts, Mitteilungen aufklappbar, Hinweise oben rechts */
.mz-uhr {
  display: inline-flex; align-items: center; gap: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 500;
  padding: 5px 9px; border-radius: 8px; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; min-height: 30px;
}
.mz-uhr:hover { background: var(--hg-3); }
.mz-uhr.offen { background: var(--hg-3); }
.mz-uhr .mz-kurz { display: none; }
.mz-zahl {
  min-width: 18px; height: 18px; border-radius: 9px; background: var(--rot); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px;
  padding: 0 5px; margin-left: 7px; text-align: center; font-variant-numeric: tabular-nums;
}
.mz-schleier { position: fixed; inset: 0; z-index: 90; background: transparent; }
.mz-zentrale {
  position: fixed; top: calc(var(--kopf-hoehe) + 6px); right: 12px; z-index: 95; width: min(400px, calc(100vw - 24px));
  max-height: calc(100vh - var(--kopf-hoehe) - 20px); overflow: auto; overscroll-behavior: contain; padding: 12px 12px 14px;
  background: var(--glas); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border-radius: 18px; box-shadow: var(--schatten-blatt); animation: mz-rein 0.22s cubic-bezier(.2,.8,.3,1);
}
.mz-kopf { display: flex; align-items: flex-start; gap: 8px; padding: 2px 4px 8px; }
.mz-kopf h2 { margin: 0; font-size: 17px; }
.mz-kopf-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mz-kopf-text span { font-size: 12.5px; color: var(--text-2); }
.mz-kopf .knopf.rund { margin-left: auto; }
.mz-leiste { display: flex; align-items: center; gap: 6px; padding: 0 4px 10px; }
.mz-filter { border: 0; background: var(--hg-3); color: var(--text); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.mz-filter.aktiv { background: var(--akzent); color: #fff; }
.mz-textknopf { border: 0; background: none; color: var(--akzent-text); font: inherit; font-size: 12.5px; cursor: pointer; padding: 3px 4px; }
/* Bereiche der Mitteilungen: Auswahl oben, Farbe je Bereich */
.b-auftraege { --b: var(--orange); }
.b-buchhaltung { --b: var(--lila); }
.b-technik { --b: #30b0c7; }
.b-allgemein { --b: var(--grau-text); }
.mz-bereiche { display: flex; align-items: center; gap: 6px; padding: 0 4px 8px; overflow-x: auto; scrollbar-width: none; }
.mz-bereiche::-webkit-scrollbar { display: none; }
.mz-bereiche-titel { flex: none; font-size: 11.5px; font-weight: 600; color: var(--text-2); margin-right: 2px; }
.mz-bereich, .mz-ordnen {
  flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linie); background: var(--hg-2); color: var(--text);
  border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.mz-bereich.aktiv { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.mz-bpunkt { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--b, var(--grau-text)); }
.mz-bereich.aktiv .mz-bpunkt { box-shadow: 0 0 0 1.5px #fff; }
.mz-banzahl {
  min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--hg-3); color: var(--text-2); font-size: 11px; font-weight: 600;
  line-height: 17px; text-align: center; font-variant-numeric: tabular-nums;
}
.mz-banzahl.neu { background: var(--akzent); color: #fff; }
.mz-bereich.aktiv .mz-banzahl { background: rgba(255, 255, 255, 0.25); color: #fff; }
.mz-ordnen { color: var(--akzent-text); }
.mz-ordnen.aktiv { background: var(--akzent-hg); border-color: transparent; }
.mz-btag { flex: none; font-weight: 600; color: var(--b); }
.mz-tag-bereich { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
/* Suche in den Mitteilungen, auch in den weggeklickten  */
.mz-suche { padding: 0 2px 10px; }
.mz-suche .feld { width: 100%; }
.mz-hinweiszeile { font-size: 12px; color: var(--text-2); margin: -2px 6px 10px; }
.mz-windows {
  display: flex; align-items: center; gap: 8px; background: var(--akzent-hg); border-radius: 12px; padding: 8px 10px; margin: 0 2px 10px; font-size: 12.5px;
}
.mz-windows > .ic { color: var(--akzent-text); flex: none; }
.mz-windows .knopf { margin-left: auto; flex: none; }
.mz-liste { display: flex; flex-direction: column; gap: 6px; }
.mz-tag { font-size: 12px; font-weight: 600; color: var(--text-2); margin: 8px 6px 1px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mz-tag:first-child { margin-top: 0; }
.mz-tag .mz-textknopf { font-weight: 500; font-size: 12px; }
/* Schließen wie macOS: X oben links an der Mitteilung, beim Darüberfahren  */
.mz-karte .mz-weg { position: absolute; left: -6px; top: -6px; background: var(--hg-2); box-shadow: var(--schatten-hoch); z-index: 1; }
.mz-karte:hover .mz-weg, .mz-karte:focus-within .mz-weg { opacity: 1; }
.mz-karte.geht { animation: mz-raus 0.16s ease-in forwards; }
.mz-karte {
  position: relative; display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit;
  color: var(--text); background: var(--hg-2); border-radius: 14px; padding: 10px 12px 10px 14px; box-shadow: var(--schatten); transition: box-shadow 0.12s;
}
.mz-karte:hover { box-shadow: var(--schatten-hoch); }
.mz-karte.wichtig { box-shadow: inset 3px 0 0 var(--rot), var(--schatten); }
.mz-symbol { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--akzent-hg); color: var(--akzent-text); }
.mz-karte-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mz-karte-kopf { display: flex; gap: 8px; font-size: 11.5px; color: var(--text-2); }
.mz-herkunft { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-zeit { flex: none; font-variant-numeric: tabular-nums; }
.mz-titel { font-size: 13.5px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.mz-karte.neu .mz-titel { font-weight: 650; }
.mz-vorschau, .mz-hinweis-text {
  font-size: 12.5px; color: var(--text-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mz-karte .pille { align-self: flex-start; margin-top: 3px; }
/* 06.11.2026: nur in den Mitteilungs-Karten – sonst überschrieb es den Ungelesen-Punkt der Mail-Liste (Postfächer), Punkte hingen links am Rand */
.mz-karte .mz-punkt { position: absolute; left: 4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--akzent); }
.mz-hinweise {
  position: fixed; top: calc(var(--kopf-hoehe) + 8px); right: 12px; z-index: 150; display: flex; flex-direction: column; gap: 8px;
  width: min(370px, calc(100vw - 24px)); pointer-events: none;
}
.mz-hinweis {
  pointer-events: auto; position: relative; display: flex; flex-direction: column; gap: 3px; text-align: left; border: 0; font: inherit; color: var(--text);
  background: var(--glas); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border-radius: 16px; box-shadow: var(--schatten-blatt); padding: 10px 12px 11px; cursor: pointer; animation: mz-rein 0.28s cubic-bezier(.2,.8,.3,1);
}
.mz-hinweis.wichtig { box-shadow: inset 3px 0 0 var(--rot), var(--schatten-blatt); }
.mz-hinweis.geht { animation: mz-raus 0.26s ease-in forwards; }
.mz-hinweis-kopf { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); }
.mz-app { display: inline-flex; align-items: center; gap: 5px; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; font-size: 10.5px; }
.mz-app .ic { color: var(--akzent); }
.mz-hinweis-zeit { margin-left: auto; font-variant-numeric: tabular-nums; }
.mz-weg {
  border: 0; background: var(--hg-3); color: var(--text-2); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center;
  cursor: pointer; padding: 0; opacity: 0; transition: opacity 0.15s;
}
.mz-weg .ic { width: 12px; height: 12px; }
.mz-hinweis:hover .mz-weg, .mz-hinweis:focus-within .mz-weg { opacity: 1; }
/* Eigenes Fenster: ausklappen – im Hinweis neben dem X, in der Liste oben rechts, beide beim Darüberfahren */
.mz-fenster {
  border: 0; background: var(--hg-3); color: var(--text-2); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center;
  cursor: pointer; padding: 0; opacity: 0; transition: opacity 0.15s;
}
.mz-fenster .ic { width: 12px; height: 12px; }
.mz-fenster:hover { color: var(--akzent-text); }
.mz-hinweis:hover .mz-fenster, .mz-hinweis:focus-within .mz-fenster { opacity: 1; }
.mz-karte .mz-fenster { position: absolute; right: -6px; top: -6px; background: var(--hg-2); box-shadow: var(--schatten-hoch); z-index: 1; }
.mz-karte:hover .mz-fenster, .mz-karte:focus-within .mz-fenster { opacity: 1; }
.mz-hinweis-titel { font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.mz-mehr { font-size: 12.5px; color: var(--akzent-text); font-weight: 500; align-items: center; }
@keyframes mz-rein { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes mz-raus { to { opacity: 0; transform: translateX(26px); } }
.mz-detail { display: flex; flex-direction: column; gap: 12px; }
.mz-aktionen { gap: 6px; }
.mz-inhalt { font-size: 14px; line-height: 1.5; overflow-x: auto; background: var(--hg); border-radius: 12px; padding: 12px 14px; overflow-wrap: anywhere; }
.mz-inhalt p { margin: 0 0 8px; }
.mz-inhalt ul, .mz-inhalt ol { margin: 4px 0 8px; padding-left: 22px; }
.mz-inhalt li { margin: 2px 0; }
.mz-inhalt table { border-collapse: collapse; margin: 6px 0 10px; font-size: 13px; overflow-wrap: normal; }
.mz-inhalt th, .mz-inhalt td { border: 0.5px solid var(--linie-stark); padding: 4px 8px; vertical-align: top; text-align: left; }
.mz-inhalt th { background: var(--hg-4); font-weight: 600; }
.mz-inhalt blockquote { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--linie-stark); color: var(--text-2); }
.mz-inhalt pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; }
.mz-inhalt h1, .mz-inhalt h2, .mz-inhalt h3, .mz-inhalt h4 { font-size: 15px; margin: 10px 0 6px; }
/* Antworten im Verlauf einer Mitteilung */
.mz-verlauf { display: flex; flex-direction: column; gap: 8px; }
.mz-verlauf-titel { font-size: 13px; font-weight: 600; color: var(--text-2); }
.mz-antwort { display: flex; flex-direction: column; gap: 4px; background: var(--akzent-hg); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.mz-antwort-lena { background: var(--hg); border-radius: 10px; padding: 8px 10px; margin-top: 4px; }
.mz-inhalt hr { border: 0; border-top: 0.5px solid var(--linie); margin: 10px 0; }
.mz-inhalt a { color: var(--akzent-text); }
@media (hover: none) { .mz-weg, .mz-fenster { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mz-zentrale, .mz-hinweis, .mz-hinweis.geht { animation: none; } }
@media (max-width: 760px) {
  .mz-uhr { padding: 5px 6px; min-height: 44px; }
  .mz-uhr .mz-lang { display: none; }
  .mz-uhr .mz-kurz { display: inline; }
  .mz-zentrale { left: 8px; right: 8px; width: auto; top: calc(var(--kopf-hoehe) + 4px); max-height: calc(100vh - var(--kopf-hoehe) - 96px); }
  .mz-hinweise { left: 8px; right: 8px; width: auto; }
}
/* App: Chat-Knopf im Kopf */
.mkopf .chat-kopf-knopf { position: relative; flex: none; width: 38px; min-width: 38px; padding: 0; color: var(--akzent-text); }
.mkopf .chat-kopf-knopf .sym { width: 22px; height: 22px; }
.mkopf .chat-kopf-knopf .zaehler { position: absolute; top: -3px; inset-inline-end: -3px; height: 17px; min-width: 17px; font-size: 10.5px; }
