/*
 * VOT-318: gemeinsame Pill-Optik der Rechtliches-Navigation.
 *
 * Statisches Stylesheet für alle öffentlichen Betriebsseiten. Es wird im
 * `<head>` geladen (nicht per `@once`-Link im Body) und enthält kein
 * JavaScript, damit die Hash-CSP (ADR-022) und die Vorgabe „Air und b2b-info
 * ohne JavaScript“ unverändert bleiben.
 *
 * Die Fundstelle steuert nur ihre Platzierung (z. B. `.footer-legal`) bei; die
 * hier definierten Regeln tragen die einheitliche Form. Touch-Ziele bleiben
 * mindestens 44 px hoch (WCAG 2.5.8), der Tastaturfokus ist sichtbar
 * (WCAG 2.4.7), die aktuelle Rechtstext-Seite wird nicht nur über Farbe
 * markiert (`aria-current="page"`).
 */

.legal-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-pills a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
    border-radius: 999px;
    color: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.legal-pills a:hover {
    border-color: currentColor;
    background-color: color-mix(in srgb, currentColor 10%, transparent);
}

.legal-pills a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.legal-pills a[aria-current="page"] {
    border-color: currentColor;
    background-color: color-mix(in srgb, currentColor 16%, transparent);
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .legal-pills a {
        transition: none;
    }
}
