/* MAB A11y Fixes – CSS-Korrekturen */

/* --- Fix 4 (WCAG 1.4.3): unzureichende Farbkontraste.
   Redakteure haben Zusatztexte per Inline-Style auf #808080 (3,5:1) gesetzt.
   #595959 erreicht 7:1 auf Weiß und bleibt optisch "grau". */
[style*="#808080"],
[style*="rgb(128, 128, 128)"] {
	color: #595959 !important;
}

/* Zeitanzeigen im MediaElement-Videoplayer (mejs) waren zu kontrastarm. */
.mejs-container .mejs-currenttime,
.mejs-container .mejs-duration,
.mejs-container .mejs-time {
	color: #ffffff !important;
	text-shadow: 0 0 3px #000000;
}
.mejs-controls {
	background: rgba(0, 0, 0, 0.85) !important;
}

/* --- Fix 5 (WCAG 1.4.1): Links im Fließtext nicht nur farblich kennzeichnen.
   Bewusst auf Inhaltsbereiche beschränkt, damit Navigation/Buttons
   unverändert bleiben. */
.wpb_text_column a:not(.qbutton),
.qode_content_holder p a:not(.qbutton),
.content p a:not(.qbutton),
.vc_column-inner p a:not(.qbutton) {
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

/* --- Bonus (WCAG 2.4.7): sichtbarer Tastaturfokus site-weit. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid #1a5dab !important;
	outline-offset: 2px;
}

/* Skip-Link beim Fokussieren sichtbar machen (falls Theme ihn dauerhaft versteckt). */
a.skip-link:focus,
#skip-to-content:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100000;
	padding: 10px 16px;
	background: #ffffff;
	color: #1a1a1a;
	clip: auto !important;
	clip-path: none !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
}

/* Fokus-Ziel des Skip-Links: kein Fokusring auf dem Container selbst nötig. */
[role="main"]:focus,
main:focus {
	outline: none;
}

/* --- Fix 9: visuell versteckte, screenreader-lesbare H1. */
.mab-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
