/* Screen-Reader-only Text (visuell verborgen, aber für Screenreader zugänglich) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus-Indikatoren für Barrierefreiheit */

/* Alle interaktiven Elemente sollten sichtbare Focus-Indikatoren haben */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: 3px solid #0f3d81;
    outline-offset: 2px;
}

/* Für Elemente mit eigenen Focus-Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #0f3d81;
    outline-offset: 2px;
}

/* Skip-Link hat bereits eigene Focus-Styles in a11y-skip-link.css */

/* Für Buttons mit role="button" */
[role="button"]:focus {
    outline: 3px solid #0f3d81;
    outline-offset: 2px;
}

/* Für Links in Navigation */
nav a:focus {
    outline: 3px solid #0f3d81;
    outline-offset: 2px;
    background-color: rgba(15, 61, 129, 0.1);
}

/* Für Formular-Elemente */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: 3px solid #0f3d81;
    outline-offset: 2px;
    border-color: #0f3d81;
}

/* Für Checkboxen und Radio-Buttons */
input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: 3px solid #0f3d81;
    outline-offset: 2px;
}

/* Für Submit-Buttons */
input[type="submit"]:focus,
button[type="submit"]:focus {
    outline: 3px solid #0f3d81;
    outline-offset: 2px;
}

/* Überschreibe problematische outline: none Regeln */
*:focus {
    outline: 3px solid #0f3d81 !important;
    outline-offset: 2px !important;
}

/* Ausnahmen für bestimmte Elemente (z.B. Lightbox) */
.glightbox-container:focus,
.glightbox-container *:focus {
    outline: none !important;
}

/* Für Slider-Buttons */
.slider-arrow:focus,
.blog-slider-arrow:focus {
    outline: 3px solid #0f3d81;
    outline-offset: 2px;
}
