/*
 * P5.5: Eigene Inhaltselemente „Hinweisbox“ und „Link-Kacheln“ (vorher als HTML-Elemente mit eingebettetem CSS).
 * Farben aus den bisherigen Boxen (cis-info-box) und Kacheln (cis-tile) übernommen; „Fehler“ ist neu.
 */

/* Hinweisbox */
.na-hinweisbox {
    --bg: #eef6ff;
    --line: #3b82c4;
    --icon: #5aa3da;
    --text: #1f2a37;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--bg);
    border-left: 3px solid var(--line);
    border-radius: 2px;
    padding: 12px 14px;
    margin-bottom: 20px;
    color: var(--text);
}

.na-hinweisbox--important {
    --bg: #fff4ec;
    --line: #f5a873;
    --icon: #f3b184;
}

.na-hinweisbox--check {
    --bg: #eef8f1;
    --line: #4fa46b;
    --icon: #6bbf8a;
}

.na-hinweisbox--error {
    --bg: #fdeeee;
    --line: #c0392b;
    --icon: #d9534f;
}

.na-hinweisbox__icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.na-hinweisbox__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.na-hinweisbox__icon svg > circle:first-child {
    fill: var(--icon);
}

.na-hinweisbox__inhalt {
    flex: 1;
}

.na-hinweisbox__titel {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.na-hinweisbox__text {
    font-size: 12px;
    line-height: 1.35;
}

.na-hinweisbox__text p:last-child,
.na-hinweisbox__text ul:last-child,
.na-hinweisbox__text ol:last-child {
    margin-bottom: 0;
}

.na-hinweisbox__text a {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Link-Kacheln */
.na-kacheln {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.na-kacheln__kachel {
    display: block;
    padding: 22px 20px;
    background-color: #003a79;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
    border: 2px solid #003a79;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.na-kacheln__untertitel {
    display: block;
    margin-top: 6px;
    font-size: 0.9em;
    font-weight: 400;
    opacity: 0.9;
}

.na-kacheln__kachel:hover,
.na-kacheln__kachel:focus {
    background-color: #3cd2ff;
    color: #003a79;
    border-color: #3cd2ff;
    text-decoration: none;
}

.na-kacheln__kachel:focus {
    outline: 2px solid #003a79;
    outline-offset: 2px;
}
