/* Glocke / Mitteilungen – gemeinsames Bauteil für Intranet und MDG AI Client (beide binden diese Datei ein).
   Braucht die Farb-Variablen der Seite: --flaeche, --flaeche-2, --flaeche-3, --linie, --linie-2, --tinte, --leise, --akzent,
   --akzent-2, --akzent-tinte, --gefahr, --warn, --warn-2, --schatten-hoch. */
.mglocke { position: relative; }
.mglocke summary { list-style: none; cursor: pointer; border-radius: 50%; }
.mglocke summary::-webkit-details-marker { display: none; }
.mglocke .mt-box { position: absolute; right: 0; top: calc(100% + 10px); background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 14px; box-shadow: var(--schatten-hoch); z-index: 40; text-align: left; }
.mglocke .ic, .mt-seite .ic { flex: none; display: block; }
.mt-box a, .mt-box button { font: inherit; }
.mglocke summary { position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: var(--tinte); }
.mglocke summary:hover, .mglocke[open] summary { background: var(--flaeche-3); }
.mglocke-zahl { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #C23A2B; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--flaeche); }
.mt-box { width: 380px; max-height: min(70vh, 560px); overflow-y: auto; padding: 6px 6px 8px; }
.mt-kopf { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 6px; }
.mt-box .mt-link, .mt-link { width: auto; padding: 4px 8px; background: none; border: 0; color: var(--akzent-tinte); font-size: 13px;
  font-weight: 600; cursor: pointer; border-radius: 8px; }
.mt-gruppe { display: block; padding: 8px 10px 4px; color: var(--leise); font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; }
.mt { display: flex; align-items: flex-start; gap: 4px; border-radius: 10px; position: relative; }
.mt:hover { background: var(--flaeche-2); }
.mt.neu::before { content: ""; position: absolute; left: 2px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); }
.mt-box a.mt-zeile, .mt-zeile { display: flex; gap: 10px; flex: 1; min-width: 0; padding: 9px 6px 9px 12px; text-decoration: none;
  color: var(--tinte); align-items: flex-start; background: none; }
.mt-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--akzent-2);
  color: var(--akzent-tinte); }
.mt-icon .ic { color: inherit; }
.mt-stoerung { background: var(--warn-2); color: var(--warn); }
.mt-text { display: flex; flex-direction: column; min-width: 0; font-size: 14px; line-height: 1.35; }
.mt-text b { font-weight: 600; }
.mt.neu .mt-text b { font-weight: 750; }
.mt-text small { color: var(--leise); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mt-text .mt-zeit { font-size: 12px; }
/* Aktionen liegen über der Zeile (nehmen dem Text keinen Platz), erscheinen bei Hover/Fokus; am Handy stehen sie darunter */
.mt-akt { display: flex; gap: 4px; position: absolute; right: 6px; top: 7px; opacity: 0; pointer-events: none; transition: opacity .12s;
  background: var(--flaeche-2); padding-left: 8px; border-radius: 8px; }
.mt:hover .mt-akt, .mt:focus-within .mt-akt { opacity: 1; pointer-events: auto; }
.mt-box .mt-akt button, .mt-akt button { width: auto; padding: 4px 8px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche);
  color: var(--leise); font-size: 12.5px; cursor: pointer; }
.mt-akt button:hover { color: var(--tinte); border-color: var(--akzent); }
.mt-leer { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 10px; margin: 0; color: var(--leise); }
.mt-box a.mt-alle, .mt-alle { display: block; text-align: center; padding: 9px; margin-top: 4px; font-size: 13.5px; font-weight: 600;
  border-top: 1px solid var(--linie-2); border-radius: 0 0 10px 10px; }
.mt-seite { max-width: 720px; margin: 0 auto; padding: 8px; }
@media (hover: none) { .mt { flex-wrap: wrap; } .mt-akt { position: static; opacity: 1; pointer-events: auto; width: 100%; background: none;
  padding: 0 8px 8px 54px; } .mt-akt button { padding: 6px 14px; min-height: 44px; min-width: 44px; } }
@media (max-width: 760px) { .mglocke .mt-box { position: fixed; right: 12px; left: 12px; width: auto; max-height: 72vh;
  top: calc(var(--kopf-h, 54px) + env(safe-area-inset-top) + 8px); } .mglocke { margin-right: 2px; } .kopf-suche { margin-right: 0; } }
