/**
 * WCAG 2.1 AA Skip-Link
 * - 2.4.1 Bypass Blocks (Level A)
 * - 2.4.7 Focus Visible (Level AA): Fokus muss klar sichtbar sein
 */

/* Standard: visuell versteckt, aber für Screenreader und DOM vorhanden */
.wcag-skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	clip-path: inset(50%);
	background: #fff;
	color: #1a1a1a;
	font-size: 1rem;
	line-height: 1.5;
	text-decoration: none;
	z-index: 100000;
	transition: none;
}

/* Bei Fokus/Tastatur: sichtbar machen – WCAG 2.4.7 Focus Visible */
.wcag-skip-link:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	clip-path: none;
	/* Deutlicher Fokusring mind. 2px, Kontrast gem. WCAG */
	outline: 3px solid #005fcc;
	outline-offset: 2px;
	box-shadow: 0 0 0 1px #fff;
}

/* :focus-visible für moderne Browser (nur bei Tastaturfokus) */
.wcag-skip-link:focus:not(:focus-visible) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	outline: none;
	box-shadow: none;
}

.wcag-skip-link:focus-visible {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	outline: 3px solid #005fcc;
	outline-offset: 2px;
	box-shadow: 0 0 0 1px #fff;
}
