/* Glocke der Meldungen in der Kopfzeile von /app (Fail-Loud 0.2b, components/meldungen_glocke.py).
   Farben wie die neue Oberfläche: Fehler/zurückgehalten #C24A3A, Warnung #C47A0A (nie als Fließtext),
   Erfolg #1F7A52, Akzent #1E4F7A. Präfix mk- (keine Werbeblocker-Muster, Gotcha 14). */

.mk-knopf {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #E1E6EE;
    border-radius: 999px;
    background: #FFFFFF;
    color: #0E1726;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}
.mk-knopf:hover { background: #F1F4F8; border-color: #C9D2DE; }
.mk-knopf:focus-visible { outline: 2px solid #1E4F7A; outline-offset: 2px; }

.mk-zahl {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #556070;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 2px #FFFFFF;
}
.mk-zahl-kritisch { background: #C24A3A; }

/* Aufgeklappte Liste: rechts unter der Kopfzeile */
.mk-liste {
    position: fixed;
    top: 68px;
    right: 16px;
    z-index: 1060;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 96px);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E1E6EE;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(14, 23, 38, 0.14);
    overflow: hidden;
}
.mk-liste.d-none { display: none !important; }
.mk-liste-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
    border-bottom: 1px solid #E1E6EE;
}
.mk-liste-titel { margin: 0; font-size: 15px; font-weight: 600; }
.mk-zu {
    width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent;
    color: #556070; font-size: 20px; line-height: 1;
}
.mk-zu:hover { background: #F1F4F8; color: #0E1726; }
.mk-liste-inhalt { overflow-y: auto; padding: 8px 12px 4px; }
.mk-zusammenfassung { margin: 0 4px 6px; font-size: 13px; color: #556070; }
.mk-zeilen { list-style: none; margin: 0; padding: 0; }
.mk-zeile { padding: 8px 6px; border-radius: 8px; }
.mk-zeile + .mk-zeile { border-top: 1px solid #F1F4F8; }
.mk-zeile-kritisch { background: rgba(194, 74, 58, 0.06); }
.mk-zeile-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mk-titel { font-size: 13.5px; font-weight: 600; color: #0E1726; }
.mk-text { font-size: 13px; color: #0E1726; margin-top: 2px; }
.mk-unter { font-size: 12.5px; color: #556070; }
.mk-weitere { margin: 6px 4px; font-size: 12.5px; color: #556070; }
.mk-verweis { display: inline-block; margin: 4px 4px 2px; font-size: 13px; font-weight: 600; color: #1E4F7A; text-decoration: none; }
.mk-verweis:hover { text-decoration: underline; }
.mk-stufe {
    display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
}
.mk-stufe.mk-kritisch { background: #C24A3A; color: #FFFFFF; }
.mk-stufe.mk-fehler { background: rgba(194, 74, 58, 0.12); color: #9E3528; }
.mk-stufe.mk-warnung { background: rgba(196, 122, 10, 0.14); color: #7A4B05; }
.mk-stufe.mk-hinweis-stufe { background: #DDE8F3; color: #1E4F7A; }
.mk-quitt { margin-top: 6px; }
.mk-rueckmeldung { padding: 0 16px 10px; font-size: 12.5px; color: #1F7A52; font-weight: 550; }
.mk-rueckmeldung:empty { display: none; }
.mk-stoerung {
    margin: 4px 0 8px; padding: 10px 12px; border-radius: 8px;
    background: rgba(194, 74, 58, 0.08); border: 1px solid rgba(194, 74, 58, 0.35); color: #9E3528; font-size: 13px;
}

/* Hinweis unter der Kopfzeile: unquittierte kritische Meldungen, oder „nicht lesbar“ */
.mk-hinweis-rahmen:empty { display: none; }
.mk-hinweis-rahmen { padding: 10px 24px 0; }
.mk-banner {
    padding: 10px 14px; border-radius: 10px; font-size: 13.5px;
    background: #FBECEA; border: 1px solid #E6A79D; color: #7E2A1F;
}
.mk-banner .mk-unter { color: #7E2A1F; opacity: 0.85; }
.mk-banner-zeilen { list-style: none; margin: 6px 0 0; padding: 0; }
.mk-banner-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 0; }
.mk-banner-zeile .mk-quitt { margin-top: 0; margin-left: auto; }
.mk-banner-zeile .mk-titel { color: #7E2A1F; }

@media (max-width: 575px) {
    .mk-hinweis-rahmen { padding: 8px 12px 0; }
    .mk-liste { top: 60px; right: 8px; width: calc(100vw - 16px); }
}
