/*
 * system-hinweise.css – Posteingang der Systemhinweise in der Kopfleiste
 * (public/js/systemHinweise.js, 18.10.2026)
 *
 * Kontraste (WCAG 2.2 AA, gerechnet): Zahl weiß auf #92400e 7,1:1, auf #c53030 5,5:1;
 * Symbol und Rand #4c5fd5 auf Weiß 5,4:1; Texte im Fenster #1f2937 14,7:1, #4b5563 7,6:1.
 */

/* Die Leiste, in der das Symbol sitzt: umbrechen statt über den Rand laufen. */
.sh-leiste {
    flex-wrap: wrap;
    row-gap: 8px;
}

.sh-huelle {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sh-knopf {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 38px;
    padding: 0 10px;
    border: 2px solid #4c5fd5;
    border-radius: 8px;
    background: #ffffff;
    color: #4c5fd5;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.sh-knopf:hover {
    background: #eef1ff;
}

.sh-knopf:focus-visible {
    outline: 3px solid #1a56db;
    outline-offset: 2px;
}

.sh-knopf svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.sh-zahl {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #92400e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px #ffffff;
}

.sh-knopf.sh-fehler .sh-zahl {
    background: #c53030;
}

.sh-fenster {
    position: absolute;
    z-index: 900; /* über Kacheln und Kopfleiste, unter Dialogen (ab 1000) */
    box-sizing: border-box;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: 14px 16px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font:
        14px/1.45 system-ui,
        -apple-system,
        'Segoe UI',
        sans-serif;
    text-align: left;
}

.sh-fenster:focus {
    outline: none;
}

.sh-fenster:focus-visible {
    outline: 3px solid #1a56db;
    outline-offset: 2px;
}

.sh-fenster h2 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #1f2937;
}

.sh-liste {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sh-eintrag {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-left: 4px solid #92400e;
    border-radius: 6px;
    background: #fff8e1;
    color: #3d2a00;
}

.sh-eintrag.sh-fehler {
    border-left-color: #c53030;
    background: #fff5f5;
    color: #742a2a;
}

.sh-eintrag strong {
    display: block;
    margin-bottom: 2px;
}

.sh-eintrag p {
    margin: 0;
}

.sh-leer {
    margin: 0 0 10px;
    color: #4b5563;
}

.sh-link {
    display: inline-block;
    margin-top: 2px;
    color: #4c5fd5;
    font-weight: 600;
}
