/* Hoofdmenu (header), footermenu en taalkiezer. */
.wp-site-blocks .dh-menu__list, .wp-site-blocks .dh-lang__list { list-style: none; margin: 0; padding: 0; }
.dh-menu a { text-decoration: none; }

/* ---------- Header: desktop ---------- */
.dh-menu--header { position: relative; }
.dh-menu--header .dh-menu__toggle { display: none; }
.dh-menu--header .dh-menu__list { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.dh-menu--header .dh-menu__list > li { position: relative; margin: 0 10px; }
.dh-menu--header .dh-menu__list > li:first-child { margin-left: 0; }
.dh-menu--header .dh-menu__list > li:last-child { margin-right: 0; }
.dh-menu--header .dh-menu__list > li > a {
	display: flex;
	align-items: center;
	padding: 13px 0;
	font-family: var(--wp--preset--font-family--roboto);
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	color: var(--wp--preset--color--primair);
	transition: color .3s;
}
.dh-menu--header .dh-menu__list > li > a:hover,
.dh-menu--header .dh-menu__list > li:focus-within > a,
.dh-menu--header .dh-menu__list > li.current-menu-item > a,
.dh-menu--header .dh-menu__list > li.current-menu-ancestor > a { color: var(--wp--preset--color--secundair); }
.dh-menu__arrow { display: inline-flex; margin-left: 10px; }
.dh-menu__arrow .dh-svg { width: 10px; height: 16px; }

.dh-menu--header .sub-menu {
	position: absolute;
	top: calc(100% + 19px);
	left: 0;
	z-index: 20;
	min-width: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	box-shadow: 0 15px 20px 0 rgba(0, 0, 0, .1);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}
.dh-menu--header .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 19px; }
.dh-menu--header .sub-menu .sub-menu { top: 0; left: 100%; }
.dh-menu--header li:hover > .sub-menu,
.dh-menu--header li:focus-within > .sub-menu,
.dh-menu--header li.is-open > .sub-menu { opacity: 1; visibility: visible; }
.dh-menu--header .sub-menu a {
	display: block;
	padding: 15px 8px;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	color: var(--wp--preset--color--primair);
	transition: all .3s;
}
.dh-menu--header .sub-menu a:hover,
.dh-menu--header .sub-menu a:focus { background: var(--wp--preset--color--secundair); color: #fff; }
.dh-menu--header .sub-menu .current-menu-item > a { color: var(--wp--preset--color--secundair); }
.dh-menu--header .sub-menu .current-menu-item > a:hover { color: #fff; }

/* ---------- Header: tablet en mobiel ---------- */
@media (max-width: 1024px) {
	.dh-menu--header { justify-content: flex-end; }
	.dh-menu--header .dh-menu__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 6.5px;
		border: 0;
		border-radius: 3px;
		background: #fff;
		color: var(--wp--preset--color--primair);
		cursor: pointer;
	}
	.dh-menu--header .dh-menu__toggle:hover { color: var(--wp--preset--color--secundair); }
	.dh-menu--header .dh-menu__toggle .dh-svg { width: 26px; height: 26px; }
	.dh-menu__close, .dh-menu--header.is-open .dh-menu__open { display: none; }
	.dh-menu--header.is-open .dh-menu__close { display: inline-flex; }
	.dh-mainbar { position: relative; }
	.dh-menu--header .dh-menu__panel {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 50;
		background: #fff;
		box-shadow: 0 15px 20px 0 rgba(0, 0, 0, .1);
	}
	.dh-mainbar .dh-menu--header { position: static; }
	.dh-menu--header.is-open .dh-menu__panel { display: block; }
	.dh-menu--header .dh-menu__list { display: block; }
	.dh-menu--header .dh-menu__list > li { margin: 0; }
	.dh-menu--header .dh-menu__list > li > a,
	.dh-menu--header .sub-menu a {
		justify-content: center;
		text-align: center;
		padding: 15px 8px;
		font-family: var(--wp--preset--font-family--montserrat);
		font-weight: 400;
		white-space: normal;
	}
	.dh-menu--header .sub-menu {
		position: static;
		box-shadow: none;
		display: none;
		opacity: 1;
		visibility: visible;
		background: #f8f8f8;
	}
	.dh-menu--header .sub-menu::before { display: none; }
	.dh-menu--header li.is-open > .sub-menu { display: block; }
	.dh-menu--header li:hover > .sub-menu { display: none; }
	.dh-menu--header li.is-open:hover > .sub-menu { display: block; }
}
@media (max-width: 767px) {
	.dh-menu--header .dh-menu__toggle .dh-svg { width: 22px; height: 22px; }
	.dh-menu--header .dh-menu__list > li > a,
	.dh-menu--header .sub-menu a { padding: 24px 8px; }
	/* Het menu opent onder de logo-balk, over de knop heen (zoals op de huidige site). */
	.dh-menu--header .dh-menu__panel { top: 64px; }
}

/* ---------- Footer ---------- */
.dh-menu--footer { margin-bottom: 8px; padding-bottom: 20px; }
.dh-menu--footer .dh-menu__list li { display: inline; margin: 0; }
.dh-menu--footer .dh-menu__list a {
	display: inline-block;
	margin: 0 15px 7.5px 0;
	font-family: var(--wp--preset--font-family--heebo);
	font-size: 15px;
	line-height: 26px;
	color: #fff;
	transition: color .3s;
}
.dh-menu--footer .dh-menu__list a:hover { color: var(--wp--preset--color--geel); }
.dh-menu--footer .dh-menu__list li::after {
	content: "";
	display: inline-block;
	width: 1px;
	height: 11px;
	margin-right: 8px;
	background: #edf0f2;
}

/* ---------- Taalkiezer ---------- */
.dh-lang { position: relative; width: 150px; z-index: 30; }
.dh-lang__current { border: 0; margin: 0; text-align: left; box-sizing: border-box; }
.dh-lang__current,
.dh-lang__list a {
	display: flex !important;
	align-items: center;
	gap: 5px;
	width: 100%;
	padding: 12px 10px !important;
	font-family: var(--wp--preset--font-family--heebo);
	font-size: 16px;
	line-height: 1;
	color: #fff !important;
	background: var(--wp--preset--color--secundair);
	cursor: pointer;
	border-radius: 4px;
}
.dh-lang__flag { width: 18px; height: 12px; }
.dh-lang__caret {
	margin-left: auto;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 7px solid #fff;
}
.dh-lang__list {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	visibility: hidden;
}
.dh-lang:hover .dh-lang__list,
.dh-lang:focus-within .dh-lang__list,
.dh-lang.is-open .dh-lang__list { visibility: visible; }
/* Brug over de ruimte tussen knop en menu, zodat het menu open blijft tijdens het bewegen met de muis. */
.dh-lang__list::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; }
.dh-topbar { position: relative; z-index: 60; }
/* Menu sluit aan op de paarse balk: alleen de onderste hoeken afgerond. */
.dh-lang__list a { border-radius: 0 0 4px 4px; }
/* Submenu's in de header: meer ruimte links en rechts, onderste hoeken afgerond (alleen desktop). */
@media (min-width: 1025px) {
	/* Geen overflow:hidden: dan valt de onzichtbare brug boven het menu weg en sluit het menu even. */
	.dh-menu--header .sub-menu { border-radius: 0 0 4px 4px; }
	.dh-menu--header .sub-menu > li:last-child > a { border-radius: 0 0 4px 4px; }
	.dh-menu--header .sub-menu a { padding-left: 20px; padding-right: 20px; }
}
