/* meldung.css — einheitliche Meldungen auf der Seite (Admin, öffentlich, Anmeldung).
 *
 *   <div class="meldung meldung-erfolg">…</div>    Aktion hat geklappt
 *   <div class="meldung meldung-hinweis">…</div>   neutraler Hinweis zum Zustand
 *   <div class="meldung meldung-warnung">…</div>   Zustand, der Aufmerksamkeit braucht
 *   <div class="meldung meldung-fehler">…</div>    Aktion fehlgeschlagen / Eingabe falsch
 *
 * Das Icon setzt die Art per ::before — kein <i class="bi …"> im Markup,
 * sonst steht es doppelt da. Inhalt darf beliebiges Inline-/Block-Markup sein.
 */
.meldung {
    position: relative;
    margin-bottom: 1rem;
    padding: .65rem 1rem .65rem 2.6rem;
    border: 1px solid;
    border-radius: .5rem;
    font-size: .95rem;
    line-height: 1.5;
}
.meldung::before {
    position: absolute;
    left: 1rem;
    top: .65rem;
    font-family: bootstrap-icons;
    line-height: 1.5;
}
.meldung > :last-child { margin-bottom: 0; }
.meldung a { color: inherit; font-weight: 600; text-decoration: underline; }
.meldung :is(h1, h2, h3, h4, h5, h6) { color: inherit; }

.meldung-erfolg  { background: var(--ok-bg); border-color: #bbf7d0; color: var(--ok-text); }
.meldung-hinweis { background: var(--primary-pale); border-color: var(--accent-light); color: var(--primary-dark); }
.meldung-warnung { background: var(--warn-bg); border-color: #fde68a; color: var(--warn-text); }
.meldung-fehler  { background: #fee2e2; border-color: #fecaca; color: #991b1b; }

.meldung-erfolg::before  { content: "\f26b"; }  /* bi-check-circle */
.meldung-hinweis::before { content: "\f431"; }  /* bi-info-circle */
.meldung-warnung::before { content: "\f33b"; }  /* bi-exclamation-triangle */
.meldung-fehler::before  { content: "\f337"; }  /* bi-exclamation-octagon */
