/*
 * Taalhuis Helmond – toegankelijkheid
 * Copyright (C) 2026 Softion (https://softion.nl). GPL-2.0-or-later.
 * Swink-quickscan 15-10-2026. Nummers in de commentaren verwijzen naar de bevindingen.
 */

/* ---------- Kleuren (wachten op akkoord Sahar: alleen deze drie regels aanpassen) ---------- */
:root {
	--th-orange: #b04e14; /* wit erop: 5,3:1 (was #ff7320, 2,7:1) */
	--th-blue: #007a9e;   /* wit erop / op wit: 4,9:1 (was #0093bd, 3,6:1) */
	--th-focus: #1a1a1a;  /* focusrand: ≥ 3:1 op wit, op oranje en op de blauwe footer */
}

/* 32942, 32949, 32968, 32978: het thema zet al het oranje via één variabele.
   Knoppen, oranje blokken, tabs, verzendknop, carrouselknoppen: in één keer donkerder, op de hele site. */
html:root {
	--oranje-100: var(--th-orange);
}

/* 32833: actieve pagina in het menu */
header#my-header {
	--menu-txt-clr-a: var(--th-blue);
	--menu-txt-clr-h: var(--th-blue);
	--sub-menu-txt-clr-a: var(--th-blue);
	--sub-menu-txt-clr-h: var(--th-blue);
}

/* 32978 en hover-staten: wit op blauw haalt met #0093bd geen 4,5:1.
   Alleen waar witte tekst op blauw staat; koppen en footer blijven ongewijzigd. */
.c-tabs,
.c-btn,
.wpcf7,
.owl-carousel,
.pager {
	--blauw-100: var(--th-blue);
}

/* ---------- Focus (32924, 32927, 32954) ---------- */
/* Eén duidelijke focusrand voor alles wat met het toetsenbord bediend kan worden. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible {
	outline: 3px solid var(--th-focus) !important;
	outline-offset: 2px !important;
}

/* Bootstraps lichtblauwe focusschaduw (rgba(13,110,253,.25), 1,4:1) vervangen door de rand hierboven. */
.nav-link:focus-visible,
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.navbar-toggler:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	box-shadow: none !important;
}

/* Formuliervelden: rand ook bij klikken met de muis (tekstvelden hebben altijd focus-visible). */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
input:focus,
textarea:focus {
	outline: 3px solid var(--th-focus) !important;
	outline-offset: 2px !important;
}

/* Carrouselknoppen: de carrousel-plugin zet hier een eigen (witte) rand met een sterkere selector. */
.owl-carousel.owl-carousel .owl-nav .owl-prev:focus-visible,
.owl-carousel.owl-carousel .owl-nav .owl-next:focus-visible {
	outline: 3px solid var(--th-focus) !important;
	outline-offset: 2px !important;
}
/* Het thema animeert hier álles in 0,5 s, ook de focusrand. De rand moet direct zichtbaar zijn. */
.owl-carousel.owl-carousel .owl-nav .owl-prev,
.owl-carousel.owl-carousel .owl-nav .owl-next {
	transition-property: background-color, color !important;
}

/* Slides en carrousel-items: de rand binnen het kader, want sliders knippen alles daarbuiten af. */
.n2-ss-slide:focus-visible,
.owl-carousel .owl-item a:focus-visible {
	outline-offset: -4px !important;
}
.n2-ss-slide:focus-visible {
	outline-width: 4px !important;
}

/* Het doel van de skiplink is een container, geen knop: geen rand eromheen. */
#inhoud:focus {
	outline: none !important;
}

/* <main id="inhoud"> om de inhoud (32965). <body> is in dit thema een flex-kolom; zonder deze regel
   vallen marges tussen blokken samen en schuift de pagina op. Zo gedragen de blokken zich als voorheen. */
#inhoud {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

/* ---------- Skiplink (32965) ---------- */
.th-skiplink {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 100000;
	padding: 12px 16px;
	background: #ffffff;
	color: #1a1a1a !important;
	font-weight: 700;
	text-decoration: underline;
	border-radius: 4px;
}
.th-skiplink:focus {
	top: 8px;
}

/* ---------- Alleen voor hulpsoftware ---------- */
.th-visually-hidden {
	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;
}

/* ---------- Footer-iconen als SVG (32933) ---------- */
footer .th-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
	overflow: visible;
}
/* LinkedIn-rondje: zelfde plek, maat en kleur als het oude Font Awesome-icoon (font-size 30px, gecentreerd). */
footer .high-foo .socials .th-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 30px;
	transform: translate(-50%, -50%);
	color: var(--txt-clr);
}

/* ---------- Cookiemelding: <h2> ziet er hetzelfde uit als de oude <div> (32829) ---------- */
.cmplz-cookiebanner h2.cmplz-title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: none;
	color: inherit;
}

/* ---------- Slider onder de header bij zoom en op smalle schermen (33008) ---------- */
/* De tekst staat ín de afbeelding (1920×600). Smart Slider snijdt die op smalle schermen bij (cover),
   waardoor bij 200% zoom tweederde wegvalt. Hier tonen we de hele afbeelding.
   Netter: in Smart Slider de lege laag op tablet/mobiel weghalen, zodat de slider zijn verhouding houdt. */
@media (max-width: 1023px) {
	.n2-ss-slide-background-image img {
		object-fit: contain !important;
		object-position: center top !important;
	}
}

/* ---------- Carrouselknoppen (32963): knopgedrag zonder ander uiterlijk ---------- */
.owl-carousel .owl-nav [role="button"] {
	cursor: pointer;
}
