.wg-header {
	position: relative;
	z-index: 100;
	width: 100%;
	background: #ffffff;
	border-bottom: 1px solid var(--color-border, #e3e8ee);
}

.wg-header__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(var(--wg-container-width), calc(100% - (2 * var(--wg-page-gutter))));
	min-height: 70px;
	margin-inline: auto;
}

.wg-header__brand {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
}

.wg-header__brand:hover,
.wg-header__brand:focus {
	text-decoration: none;
}

/* Beeldmerk + echte merknaam: schaalbaar en scherper dan één breed logobestand. */
.wg-brand-lockup {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
	white-space: nowrap;
}

.wg-brand-lockup__picture {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}

.wg-brand-lockup__icon {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.wg-brand-lockup__name {
	display: inline-flex;
	align-items: baseline;
	font-size: 22px;
	font-weight: 750;
	line-height: 1;
	letter-spacing: -0.035em;
}

.wg-brand-lockup__primary { color: #123e6b; }
.wg-brand-lockup__accent { color: #2b82c2; }

.wg-brand-lockup__suffix {
	margin-left: 1px;
	color: #123e6b;
	font-size: .72em;
	font-weight: 650;
	letter-spacing: -0.015em;
}

.wg-header__navigation {
	display: flex;
	align-items: center;
	gap: 22px;
}

.wg-header__navigation > a {
	color: #334155;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

.wg-header__navigation > a:hover,
.wg-header__navigation > a:focus {
	color: #0b4f71;
}

.wg-header__navigation .wg-header__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	color: #ffffff;
	background: #0b4f71;
	border-radius: 8px;
}

.wg-header__navigation .wg-header__button:hover,
.wg-header__navigation .wg-header__button:focus {
	color: #ffffff;
	background: #083f5a;
}

.wg-header__mobile-actions {
	display: none;
	align-items: center;
	margin-left: auto;
}

.wg-header__mobile-choice-help {
	display: none;
}

.wg-header__toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.wg-header__toggle span {
	display: block;
	width: 24px;
	height: 2px;
	margin: 5px auto;
	background: #102033;
	border-radius: 2px;
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}

@media (max-width: 820px) {

	.wg-header__container {
		width: min(var(--wg-container-width), calc(100% - (2 * var(--wg-page-gutter-mobile))));
		min-height: 66px;
	}

	.wg-header__brand .wg-brand-lockup { gap: 4px; }
	.wg-header__brand .wg-brand-lockup__icon { width: 35px; height: 35px; }
	.wg-header__brand .wg-brand-lockup__name { font-size: 19px; letter-spacing: -0.04em; }
	.wg-header__brand .wg-brand-lockup__suffix { margin-left: 1px; font-size: .7em; }

	.wg-header__mobile-actions {
		display: flex;
		gap: 8px;
	}

	.wg-header__mobile-choice-help {
		display: inline-flex;
		align-items: center;
		min-height: 40px;
		padding: 0 2px;
		color: #475569;
		font-size: 13px;
		font-weight: 600;
		line-height: 1;
		text-decoration: none;
		white-space: nowrap;
	}

	.wg-header__mobile-choice-help:hover,
	.wg-header__mobile-choice-help:focus {
		color: #0b4f71;
	}

	.wg-header__mobile-choice-help:focus-visible {
		outline: 2px solid #0b4f71;
		outline-offset: 3px;
		border-radius: 3px;
	}

	.wg-header__toggle {
		display: block;
		flex: 0 0 44px;
	}

	.wg-header__navigation {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px 16px 20px;
		background: #ffffff;
		border-top: 1px solid #e3e8ee;
		border-bottom: 1px solid #e3e8ee;
		box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
	}

	.wg-header__navigation.is-open {
		display: flex;
	}

	.wg-header__navigation > a {
		padding: 13px 4px;
	}

	.wg-header__navigation .wg-header__button {
		margin-top: 8px;
		padding: 0 18px;
	}

	.wg-header__toggle.is-open span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.wg-header__toggle.is-open span:nth-child(2) {
		opacity: 0;
	}

	.wg-header__toggle.is-open span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}


@media (max-width: 360px) {
	.wg-header__brand .wg-brand-lockup { gap: 3px; }
	.wg-header__brand .wg-brand-lockup__icon { width: 31px; height: 31px; }
	.wg-header__brand .wg-brand-lockup__name { font-size: 17.5px; letter-spacing: -0.042em; }
	.wg-header__brand .wg-brand-lockup__suffix { font-size: .68em; }

	.wg-header__mobile-actions {
		gap: 4px;
	}

	.wg-header__mobile-choice-help {
		font-size: 12px;
	}
}

/* Toggle button */
.wg-header__toggle,
.wg-header__toggle:hover,
.wg-header__toggle:focus,
.wg-header__toggle:active {
	background: transparent !important;
	color: inherit;
	box-shadow: none;
	outline: none;
}

.wg-header__toggle:focus-visible {
	outline: 2px solid #0b4f71;
	outline-offset: 3px;
}
/* ========================================================================
   3.2.6 — mobiel hamburgermenu: compactere, rustigere navigatie onder zoeken
   ======================================================================== */
@media (max-width: 820px) {
	.wg-header__navigation {
		padding: 10px 16px 16px;
		background: #ffffff;
		box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
	}

	/* Kleine sectiekop tussen zoekveld en navigatie. */
	.wg-header__navigation::before {
		content: "Navigatie";
		order: -5;
		display: block;
		margin: 3px 2px 8px;
		color: #7a8a99;
		font-size: 10.5px;
		font-weight: 750;
		line-height: 1.2;
		letter-spacing: .08em;
		text-transform: uppercase;
	}

	/* De vijf gewone menu-items vormen één rustige kaart. */
	.wg-header__navigation > a:not(.wg-header__button) {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 48px;
		margin: 0;
		padding: 0 12px;
		color: #17324d;
		background: #ffffff;
		border: 1px solid #e5edf3;
		border-bottom: 0;
		font-size: 15px;
		font-weight: 650;
		line-height: 1.2;
		text-decoration: none;
		transition: background-color .16s ease, color .16s ease, border-color .16s ease;
	}

	.wg-header__navigation > a:not(.wg-header__button)::after {
		content: "›";
		flex: 0 0 auto;
		margin-left: 14px;
		color: #8fa1b1;
		font-size: 23px;
		font-weight: 400;
		line-height: 1;
		transform: translateY(-1px);
	}

	.wg-header__navigation > a:not(.wg-header__button):first-of-type {
		border-radius: 11px 11px 0 0;
	}

	.wg-header__navigation > a:not(.wg-header__button):nth-of-type(5) {
		border-bottom: 1px solid #e5edf3;
		border-radius: 0 0 11px 11px;
	}

	.wg-header__navigation > a:not(.wg-header__button):hover,
	.wg-header__navigation > a:not(.wg-header__button):focus-visible {
		color: #0b5f84;
		background: #f7fafc;
		border-color: #d6e3ec;
	}

	.wg-header__navigation > a:not(.wg-header__button):focus-visible {
		position: relative;
		z-index: 1;
		outline: 2px solid rgba(11, 95, 132, .20);
		outline-offset: -2px;
	}

	.wg-header__navigation .wg-header__button {
		min-height: 48px;
		margin: 12px 0 0;
		padding: 0 18px;
		border-radius: 10px;
		font-size: 14px;
		font-weight: 750;
		box-shadow: 0 5px 14px rgba(11, 79, 113, .12);
	}
}

/* ========================================================================
   3.2.7 — mobiel menu: lossere, modernere navigatierijen
   ======================================================================== */
@media (max-width: 820px) {
	.wg-header__navigation {
		padding: 10px 16px 16px;
	}

	.wg-header__navigation::before {
		margin: 5px 2px 7px;
		color: #7b8b99;
		font-size: 10px;
		font-weight: 750;
		letter-spacing: .085em;
	}

	/* Geen zware aaneengesloten kaart meer: ieder onderdeel krijgt een rustige rij. */
	.wg-header__navigation > a:not(.wg-header__button) {
		min-height: 44px;
		margin: 0 0 5px;
		padding: 0 11px 0 13px;
		color: #17324d;
		background: #f8fafc;
		border: 1px solid #e4ebf1;
		border-radius: 9px;
		font-size: 14.5px;
		font-weight: 650;
		box-shadow: none;
	}

	.wg-header__navigation > a:not(.wg-header__button):first-of-type,
	.wg-header__navigation > a:not(.wg-header__button):nth-of-type(5) {
		border-radius: 9px;
		border-bottom: 1px solid #e4ebf1;
	}

	.wg-header__navigation > a:not(.wg-header__button)::after {
		content: "";
		width: 7px;
		height: 7px;
		margin-left: 12px;
		border-top: 1.5px solid #7590a4;
		border-right: 1.5px solid #7590a4;
		transform: rotate(45deg);
	}

	.wg-header__navigation > a:not(.wg-header__button):hover,
	.wg-header__navigation > a:not(.wg-header__button):focus-visible {
		color: #0b5f84;
		background: #f2f7fa;
		border-color: #cbdce7;
	}

	.wg-header__navigation > a:not(.wg-header__button):focus-visible {
		outline: 2px solid rgba(11, 95, 132, .16);
		outline-offset: 1px;
	}

	.wg-header__navigation .wg-header__button {
		min-height: 46px;
		margin: 8px 0 0;
		border-radius: 9px;
		font-size: 14px;
		box-shadow: none;
	}
}

/* ========================================================================
   3.2.8 — mobiel menu: navigatierijen dichter bij elkaar
   Alleen spacing/maatvoering; zoekfunctie en menu-gedrag blijven ongewijzigd.
   ======================================================================== */
@media (max-width: 820px) {
	.wg-header__navigation {
		padding: 9px 16px 14px;
	}

	.wg-header__navigation::before {
		margin: 3px 2px 5px;
	}

	.wg-header__navigation > a:not(.wg-header__button) {
		min-height: 41px;
		margin-bottom: 2px;
		padding-inline: 12px 10px;
		border-radius: 8px;
		font-size: 14.5px;
	}

	.wg-header__navigation > a:not(.wg-header__button):first-of-type,
	.wg-header__navigation > a:not(.wg-header__button):nth-of-type(5) {
		border-radius: 8px;
	}

	.wg-header__navigation .wg-header__button {
		min-height: 44px;
		margin-top: 6px;
		border-radius: 8px;
	}
}
