/*
Theme Name:        W&A Equine
Theme URI:         https://wa-equine.be
Description:       Eigen thema voor wa-equine.be, de paardentak van W&A Solutions. Zelfstandig (geen Kadence of ander moederthema nodig). Huisstijl uit het Brandboek: Ivory, Warm beige, Champagne, Warm goud, Taupe en Donker taupe, met Noto Serif Display en Noto Sans (lokaal geladen). Maakt bij activatie de pagina's Home, Stalbureau, Stalbeheer, Over ons en Privacyverklaring aan, plus het menu. Foto's en contactgegevens kies je in Weergave > Aanpassen.
Author:            W&A Solutions
Version:           2.0.0
Requires at least: 6.2
Tested up to:      6.7
Requires PHP:      7.4
License:           GNU General Public License v3 or later
License URI:       https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:       wa-equine
*/

/* ==========================================================================
   1. Basis
   ========================================================================== */

:root {
	--ivory: #F8F4EF;
	--beige: #E9DED2;
	--champagne: #D6BE9A;
	--goud: #AD8954;
	--taupe: #77614F;
	--donker: #3D332D;
	--wit: #FFFDFA;
	--lijn: rgba(61, 51, 45, .14);

	--serif: "Noto Serif Display", Georgia, "Times New Roman", serif;
	--sans: "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;

	--max: 1200px;
	--smal: 720px;
	--gutter: clamp(20px, 5vw, 48px);
	--sectie: clamp(76px, 10vw, 144px);
	--rand: max(var(--gutter), calc((100% - var(--max)) / 2));
	--radius: 10px;
	--kop: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kop) + 16px); }

body {
	margin: 0;
	background: var(--ivory);
	color: var(--donker);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--taupe); }

:focus-visible { outline: 2px solid var(--goud); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.012em;
	margin: 0 0 .5em;
	color: var(--donker);
	text-wrap: balance;
}
h1 { font-size: clamp(46px, 7vw, 92px); letter-spacing: -.02em; line-height: 1; }
h2 { font-size: clamp(32px, 4.2vw, 54px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
h4 { font-size: 20px; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--champagne); color: var(--donker); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 100; padding: 12px 18px;
	background: var(--donker); color: var(--ivory); border-radius: 6px;
}

/* ==========================================================================
   2. Knoppen
   ========================================================================== */

.wae-knop,
.wp-block-button__link,
.wp-element-button,
button[type="submit"] {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	padding: 15px 28px;
	border: 1px solid var(--donker);
	border-radius: 999px;
	background: var(--donker);
	color: var(--ivory);
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.wae-knop:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover {
	background: var(--taupe);
	border-color: var(--taupe);
	color: var(--ivory);
}

.wae-knop--rand,
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--donker);
	border-color: rgba(61, 51, 45, .35);
}
.wae-knop--rand:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--donker);
	border-color: var(--donker);
	color: var(--ivory);
}

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.wp-block-button { margin: 0; }

/* Tekstlink met pijl */
.wae-pijl a,
a.wae-pijl {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 3px;
}
.wae-pijl a::after,
a.wae-pijl::after {
	content: "";
	width: 14px; height: 8px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M0 4h12.5M9.5 1l3 3-3 3' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M0 4h12.5M9.5 1l3 3-3 3' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s ease;
}
.wae-pijl a:hover::after,
a.wae-pijl:hover::after { transform: translateX(4px); }

/* ==========================================================================
   3. Header
   ========================================================================== */

.wae-kop {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(248, 244, 239, .92);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	        backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s ease;
}
.wae-kop.is-gescrold { border-bottom-color: var(--lijn); }
.admin-bar .wae-kop { top: 32px; }
@media (max-width: 782px) { .admin-bar .wae-kop { top: 0; } }

.wae-kop__binnen {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--kop);
	padding-inline: var(--rand);
}

.wae-merk {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: var(--donker);
	flex-shrink: 0;
}
.wae-merk img { height: 52px; width: auto; }
.wae-merk__naam {
	font-family: var(--serif);
	font-size: 21px;
	letter-spacing: .02em;
	padding-left: 14px;
	border-left: 1px solid var(--champagne);
	line-height: 1.1;
}
.wae-merk:hover { color: var(--donker); }

.wae-nav { display: flex; align-items: center; gap: 36px; }
.wae-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.wae-nav li { position: relative; }
.wae-nav a {
	text-decoration: none;
	font-size: 15px;
	color: var(--donker);
	padding: 6px 0;
	background: linear-gradient(var(--goud), var(--goud)) left bottom / 0 1px no-repeat;
	transition: background-size .25s ease;
}
.wae-nav a:hover,
.wae-nav .current-menu-item > a,
.wae-nav .current_page_item > a { background-size: 100% 1px; color: var(--donker); }

.wae-nav .sub-menu {
	position: absolute; top: 100%; left: -20px; min-width: 220px;
	display: none; flex-direction: column; gap: 0;
	padding: 10px 0; background: var(--wit);
	border: 1px solid var(--lijn); border-radius: var(--radius);
	box-shadow: 0 18px 40px -20px rgba(61, 51, 45, .3);
}
.wae-nav li:hover > .sub-menu,
.wae-nav li:focus-within > .sub-menu { display: flex; }
.wae-nav .sub-menu a { display: block; padding: 8px 20px; background: none; }

.wae-nav a.wae-knop { padding: 11px 22px; font-size: 14px; background: transparent; color: var(--donker); border-color: rgba(61, 51, 45, .35); }
.wae-nav a.wae-knop:hover { background: var(--donker); color: var(--ivory); border-color: var(--donker); }

.wae-menuknop {
	display: none;
	width: 46px; height: 46px;
	border: 1px solid var(--lijn); border-radius: 50%;
	background: transparent; color: var(--donker);
	padding: 0; cursor: pointer;
	align-items: center; justify-content: center;
}
.wae-menuknop span,
.wae-menuknop span::before,
.wae-menuknop span::after {
	display: block; width: 18px; height: 1.5px; background: currentColor;
	position: relative; transition: transform .25s ease, background-color .25s ease;
}
.wae-menuknop span::before, .wae-menuknop span::after { content: ""; position: absolute; left: 0; }
.wae-menuknop span::before { top: -6px; }
.wae-menuknop span::after { top: 6px; }
.menu-open .wae-menuknop span { background: transparent; }
.menu-open .wae-menuknop span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .wae-menuknop span::after { transform: translateY(-6px) rotate(-45deg); }
.wae-menuknop:hover, .wae-menuknop:focus-visible { background: var(--donker); color: var(--ivory); }

@media (max-width: 900px) {
	:root { --kop: 72px; }
	.wae-kop { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ivory); }
	.wae-merk img { height: 42px; }
	.wae-merk__naam { font-size: 18px; padding-left: 12px; }
	.wae-menuknop { display: inline-flex; }
	.wae-nav {
		position: fixed; inset: var(--kop) 0 0 0;
		flex-direction: column; align-items: flex-start; gap: 32px;
		padding: 36px var(--gutter) 48px;
		background: var(--ivory);
		border-top: 1px solid var(--lijn);
		overflow-y: auto;
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
	}
	.admin-bar .wae-nav { inset-block-start: calc(var(--kop) + 46px); }
	.menu-open .wae-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.wae-nav ul { flex-direction: column; gap: 0; width: 100%; }
	.wae-nav li { border-bottom: 1px solid var(--lijn); }
	.wae-nav a { display: block; padding: 16px 0; font-family: var(--serif); font-size: 28px; background: none; }
	.wae-nav .sub-menu { position: static; display: flex; border: 0; box-shadow: none; background: none; padding: 0 0 12px 16px; }
	.wae-nav .sub-menu li { border: 0; }
	.wae-nav .sub-menu a { font-family: var(--sans); font-size: 16px; padding: 6px 0; }
	.wae-nav a.wae-knop { display: inline-flex; padding: 15px 28px; font-family: var(--sans); font-size: 15px; background: var(--donker); color: var(--ivory); }
	body.menu-open { overflow: hidden; }
}

/* ==========================================================================
   4. Inhoud en secties
   ========================================================================== */

.wae-inhoud > *:not(.alignfull):not(.wae-sectie):not(.wae-hero) {
	max-width: var(--smal);
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: content-box;
}

/* Gewone pagina (zonder eigen opmaak): titel + tekst */
.wae-paginakop { padding: clamp(56px, 8vw, 112px) var(--rand) clamp(28px, 4vw, 48px); }
.wae-paginakop h1 { font-size: clamp(40px, 5.6vw, 72px); max-width: 14ch; margin: 0; }
.wae-tekstpagina { padding-bottom: var(--sectie); }
.wae-tekstpagina h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.6em; }
.wae-tekstpagina h3 { margin-top: 1.4em; }
.wae-tekstpagina ul, .wae-tekstpagina ol { padding-left: 1.2em; }
.wae-tekstpagina li { margin-bottom: .4em; }

/* Elke sectie loopt over de volle breedte; de inhoud blijft binnen --max. */
.wae-sectie,
.wae-hero {
	padding: var(--sectie) var(--rand);
	margin: 0;
}
.wae-sectie > *, .wae-hero > * { margin-top: 0; }

.wae-sectie--beige { background: var(--beige); }
.wae-sectie--donker { background: var(--donker); color: var(--ivory); }
.wae-sectie--donker h2, .wae-sectie--donker h3 { color: var(--ivory); }
.wae-sectie--krap { padding-top: calc(var(--sectie) * .5); }

.wae-lead {
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.6;
	color: var(--taupe);
	max-width: 34em;
}

.wae-zacht { color: var(--taupe); }

/* Kolommen */
.wp-block-columns { display: flex; gap: clamp(32px, 6vw, 96px); margin: 0; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 860px) {
	.wp-block-columns { flex-direction: column; align-items: stretch !important; }
	.wp-block-column { flex-basis: auto !important; width: 100%; }
}

/* --- Hero ---------------------------------------------------------------- */

.wae-hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(72px, 9vw, 128px); }
.wae-hero h1 { margin-bottom: 28px; }
.wae-hero .wp-block-columns { align-items: center; }
.wae-hero--home .wp-block-column:first-child { flex: 1 1 0; }
.wae-hero--home .wp-block-column:last-child { flex: 1.08 1 0; padding-bottom: 48px; }

.wae-hero--pagina { padding-bottom: clamp(48px, 6vw, 80px); }
.wae-hero--pagina h1 { font-size: clamp(44px, 6.4vw, 84px); }
.wae-hero--pagina .wp-block-columns { align-items: flex-end; }

/* Een gesplitste hero zonder foto wordt één kolom. */
.wae-hero--foto .wp-block-columns { align-items: center; }
.wae-hero--foto .wp-block-column:has(> .wae-foto) { flex: .9 1 0; }
.wae-hero--foto .wp-block-column:not(:has(*)) { display: none; }

/* --- Grote zin ----------------------------------------------------------- */

.wae-zin p {
	font-family: var(--serif);
	font-size: clamp(27px, 3.3vw, 44px);
	line-height: 1.24;
	letter-spacing: -.01em;
	max-width: 24em;
	margin: 0;
}

/* --- Twee panelen -------------------------------------------------------- */

.wae-panelen { padding-top: 0; }
.wae-panelen .wp-block-columns { gap: 20px; align-items: stretch; }
.wae-paneel {
	display: flex;
	flex-direction: column;
	min-height: clamp(380px, 38vw, 520px);
	padding: clamp(32px, 4vw, 56px);
	border-radius: var(--radius);
	background: var(--beige);
	position: relative;
	overflow: hidden;
}
.wae-paneel h2 { font-size: clamp(36px, 4vw, 52px); margin-bottom: auto; padding-bottom: 32px; }
.wae-paneel p { max-width: 30em; }
.wae-paneel .wae-pijl { margin-top: 28px; }
.wae-paneel--donker { background: var(--donker); color: var(--ivory); }
.wae-paneel--donker h2 { color: var(--ivory); }
.wae-paneel--donker a:hover { color: var(--champagne); }
.wae-paneel__teken {
	font-family: var(--serif);
	font-size: 15px;
	color: var(--goud);
	letter-spacing: .04em;
	margin-bottom: 12px !important;
}

/* --- Rijen (titel links, tekst rechts) ----------------------------------- */

.wae-rijen-kop { margin-bottom: clamp(32px, 5vw, 64px) !important; }
.wae-rijen-kop h2 { max-width: 14em; margin: 0; }
.wae-rij { border-top: 1px solid var(--lijn); padding: 28px 0 !important; gap: clamp(24px, 4vw, 64px) !important; }
.wae-rij:last-child { border-bottom: 1px solid var(--lijn); }
.wae-rij h3 { margin: 0; }
.wae-rij .wp-block-column:first-child { flex: .8 1 0; }
.wae-rij .wp-block-column:last-child { flex: 1.2 1 0; color: var(--taupe); }
.wae-rij p { max-width: 36em; }
@media (max-width: 860px) {
	.wae-rij { gap: 8px !important; }
}

/* --- Brede foto ---------------------------------------------------------- */

.wae-fotoband { padding: 0 var(--rand); }
.wae-fotoband:not(:has(.wae-foto)) { display: none; }

/* --- Smalle tekst -------------------------------------------------------- */

.wae-smal > * { max-width: var(--smal); }
.wae-smal h2 { margin-bottom: 24px; }

/* --- Contactband --------------------------------------------------------- */

.wae-band .wp-block-columns { align-items: flex-end; }
.wae-band h2 { margin: 0; max-width: 11em; }
.wae-band p { color: var(--taupe); max-width: 30em; }
.wae-band .wp-block-buttons { margin-top: 28px; }
.wae-sectie--donker.wae-band p { color: var(--champagne); }
.wae-sectie--donker .wp-block-button__link { background: var(--ivory); color: var(--donker); border-color: var(--ivory); }
.wae-sectie--donker .wp-block-button__link:hover { background: var(--champagne); border-color: var(--champagne); }

/* --- Contact (Over ons) -------------------------------------------------- */

.wae-contact .wp-block-columns { align-items: flex-start; }
.wae-contact .wp-block-column:last-child { flex: 1.25 1 0; }

.wae-gegevens { list-style: none; margin: 32px 0 0; padding: 0; }
.wae-gegevens li { padding: 16px 0; border-top: 1px solid var(--lijn); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.wae-gegevens li:last-child { border-bottom: 1px solid var(--lijn); }
.wae-gegevens span { color: var(--taupe); font-size: 14px; padding-top: 2px; }
.wae-gegevens a { text-decoration: none; }
.wae-gegevens a:hover { text-decoration: underline; }

/* ==========================================================================
   5. Foto's
   ========================================================================== */

.wae-foto { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--beige); position: relative; }
.wae-foto img { width: 100%; height: 100%; object-fit: cover; }
.wae-foto--breed { aspect-ratio: 21 / 9; }
.wae-foto--staand { aspect-ratio: 4 / 5; }
.wae-foto--portret { aspect-ratio: 4 / 5; }
@media (max-width: 700px) { .wae-foto--breed { aspect-ratio: 4 / 3; } }

/* Lege plek: enkel zichtbaar voor beheerders, met uitleg. */
.wae-foto--leeg {
	display: grid; place-items: center; text-align: center;
	border: 1px dashed rgba(119, 97, 79, .45);
	background: repeating-linear-gradient(135deg, rgba(214, 190, 154, .18) 0 12px, transparent 12px 24px), var(--beige);
	color: var(--taupe); font-size: 14px; padding: 24px;
}
.wae-foto--leeg strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--donker); margin-bottom: 4px; }

/* Monogram als er nog geen portret is (voor bezoekers). */
.wae-monogram {
	display: grid; place-items: center; aspect-ratio: 4 / 5;
	border-radius: var(--radius); background: var(--beige);
	font-family: var(--serif); font-size: clamp(64px, 9vw, 120px); color: var(--taupe); letter-spacing: -.02em;
	position: relative;
}
.wae-monogram::after {
	content: ""; position: absolute; left: 50%; bottom: 30%; width: 48px; height: 1px;
	background: var(--goud); transform: translateX(-50%);
}

/* ==========================================================================
   6. Stalkaart (voorbeeld plattegrond op de startpagina)
   ========================================================================== */

:root {
	--stro: #E6CF98;
	--hout: #EEDFC4;
	--vlas: #D3CABB;
}
.wae-stalkaart {
	background: var(--wit);
	border: 1px solid var(--lijn);
	border-radius: 16px;
	padding: clamp(18px, 2.4vw, 28px);
	box-shadow: 0 40px 80px -48px rgba(61, 51, 45, .45), 0 2px 6px -2px rgba(61, 51, 45, .08);
	font-size: 13px;
	position: relative;
}
.wae-stalkaart__kop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.wae-stalkaart__titel { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.wae-stalkaart__teller { color: var(--taupe); font-size: 12.5px; white-space: nowrap; }

.wae-stalkaart__rij { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wae-stalkaart__gang {
	margin: 8px 0; padding: 9px 12px; border-radius: 6px;
	background: repeating-linear-gradient(90deg, rgba(61, 51, 45, .05) 0 1px, transparent 1px 22px), #F3EDE4;
	color: var(--taupe); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; text-align: center;
}

.wae-box {
	position: relative;
	aspect-ratio: 1 / 1.05;
	border-radius: 7px;
	padding: 9px 10px;
	display: flex; flex-direction: column; justify-content: space-between;
	border: 1px solid rgba(61, 51, 45, .16);
	overflow: hidden;
	isolation: isolate;
}
.wae-box::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.wae-box--stro { background: var(--stro); }
.wae-box--stro::before { background: repeating-linear-gradient(28deg, rgba(150, 110, 40, .22) 0 1px, transparent 1px 7px), repeating-linear-gradient(-34deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 9px); }
.wae-box--hout { background: var(--hout); }
.wae-box--hout::before { background: radial-gradient(circle at 30% 40%, rgba(173, 137, 84, .28) 0 2px, transparent 2.5px) 0 0 / 13px 11px, radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .5) 0 1.6px, transparent 2px) 0 0 / 9px 10px; }
.wae-box--vlas { background: var(--vlas); }
.wae-box--vlas::before { background: repeating-linear-gradient(0deg, rgba(61, 51, 45, .09) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 1px, transparent 1px 11px); }
.wae-box--vrij { background: transparent; border-style: dashed; border-color: rgba(119, 97, 79, .4); }

.wae-box__nr { font-size: 11px; font-weight: 600; color: rgba(61, 51, 45, .62); letter-spacing: .04em; }
.wae-box__naam {
	align-self: flex-start;
	font-family: var(--serif); font-size: 16px; line-height: 1.1;
	background: rgba(255, 253, 250, .9); padding: 3px 7px; border-radius: 4px;
	max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wae-box--vrij .wae-box__naam { background: none; color: var(--taupe); font-family: var(--sans); font-size: 12px; padding: 0; }
.wae-box.is-gekozen { outline: 2px solid var(--donker); outline-offset: 2px; }

.wae-stalkaart__legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; color: var(--taupe); font-size: 12px; }
.wae-stalkaart__legende span { display: inline-flex; align-items: center; gap: 7px; }
.wae-stalkaart__legende i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(61, 51, 45, .2); display: inline-block; }
.wae-stalkaart__legende i.stro { background: var(--stro); }
.wae-stalkaart__legende i.hout { background: var(--hout); }
.wae-stalkaart__legende i.vlas { background: var(--vlas); }

/* Kleine zwevende kaart bij de gekozen box */
.wae-stalkaart__tip {
	position: absolute; right: clamp(-32px, -2.4vw, -12px); bottom: -64px;
	width: 230px; background: var(--donker); color: var(--ivory);
	border-radius: 12px; padding: 16px 18px; font-size: 12.5px; line-height: 1.5;
	box-shadow: 0 24px 48px -24px rgba(61, 51, 45, .7);
}
.wae-stalkaart__tip strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; margin-bottom: 6px; }
.wae-stalkaart__tip dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.wae-stalkaart__tip dt { color: var(--champagne); }
.wae-stalkaart__tip dd { margin: 0; }
@media (max-width: 1100px) { .wae-stalkaart__tip { right: 12px; } }
@media (max-width: 560px) {
	.wae-stalkaart__tip { position: static; width: auto; margin-top: 14px; }
	.wae-box__naam { font-size: 13px; padding: 2px 5px; }
	.wae-stalkaart__rij { gap: 6px; }
}

/* ==========================================================================
   7. Invulkaart
   ========================================================================== */

.wae-invulkaart {
	background: var(--wit);
	border-radius: 16px;
	border: 1px solid var(--lijn);
	box-shadow: 0 40px 80px -50px rgba(61, 51, 45, .5);
	overflow: hidden;
	max-width: 480px;
	margin-left: auto;
}
.wae-invulkaart__kop { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--lijn); }
.wae-invulkaart__nr {
	width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
	display: grid; place-items: center;
	background: repeating-linear-gradient(0deg, rgba(61, 51, 45, .09) 0 1px, transparent 1px 4px), #D3CABB;
	font-weight: 600; font-size: 18px;
}
.wae-invulkaart__naam { font-family: var(--serif); font-size: 28px; line-height: 1; }
.wae-invulkaart__sub { color: var(--taupe); font-size: 13px; margin-top: 4px; }
.wae-invulkaart dl { margin: 0; padding: 8px 26px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 24px; }
.wae-invulkaart dt, .wae-invulkaart dd { padding: 11px 0; border-bottom: 1px solid rgba(61, 51, 45, .08); font-size: 14.5px; margin: 0; }
.wae-invulkaart dt { color: var(--taupe); }
.wae-invulkaart dl > :nth-last-child(-n+2) { border-bottom: 0; }
.wae-invulkaart .wae-staal { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 8px; border: 1px solid rgba(61, 51, 45, .2); background: #D3CABB; }
@media (max-width: 860px) { .wae-invulkaart { margin: 40px 0 0; } }
@media (max-width: 420px) { .wae-invulkaart dl { column-gap: 16px; padding-inline: 20px; } .wae-invulkaart dt, .wae-invulkaart dd { font-size: 13.5px; } }

/* Stalplanner op de Stalbureau-pagina */
.wae-planner { padding-top: 0; }
.wae-planner .wa-stalplanner { margin: 0; }
.wae-onderschrift { color: var(--taupe); font-size: 14px; margin-top: 16px !important; }

/* ==========================================================================
   8. Formulier
   ========================================================================== */

.wae-formulier { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wae-formulier .vol { grid-column: 1 / -1; }
.wae-formulier label { display: block; font-size: 14px; color: var(--taupe); margin-bottom: 6px; }
.wae-formulier input,
.wae-formulier textarea {
	width: 100%;
	font: inherit; color: var(--donker);
	padding: 14px 16px;
	background: var(--wit);
	border: 1px solid rgba(61, 51, 45, .22);
	border-radius: 8px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.wae-formulier textarea { min-height: 160px; resize: vertical; }
.wae-formulier input:focus,
.wae-formulier textarea:focus { outline: none; border-color: var(--goud); box-shadow: 0 0 0 3px rgba(214, 190, 154, .45); }
.wae-formulier .wae-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wae-formulier__voet { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.wae-formulier__voet small { color: var(--taupe); font-size: 13px; max-width: 34em; }
.wae-melding { grid-column: 1 / -1; padding: 14px 18px; border-radius: 8px; background: var(--beige); border-left: 3px solid var(--goud); }
.wae-melding--fout { border-left-color: #9a4a3a; }
@media (max-width: 600px) { .wae-formulier { grid-template-columns: 1fr; } }

/* ==========================================================================
   9. Footer
   ========================================================================== */

.wae-voet { background: var(--donker); color: rgba(248, 244, 239, .78); font-size: 15px; }
.wae-voet a { color: var(--ivory); text-decoration: none; }
.wae-voet a:hover { color: var(--champagne); }
.wae-voet__boven {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
	padding: clamp(64px, 8vw, 104px) var(--rand) 56px;
}
.wae-voet__merk img { height: 70px; width: auto; margin-bottom: 24px; }
.wae-voet__merk p { max-width: 24em; }
.wae-voet h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--champagne); margin-bottom: 18px; }
.wae-voet ul { list-style: none; margin: 0; padding: 0; }
.wae-voet li { margin-bottom: 8px; }
.wae-voet__onder {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
	padding: 22px var(--rand) 28px;
	border-top: 1px solid rgba(248, 244, 239, .12);
	font-size: 13px; color: rgba(248, 244, 239, .55);
}
.wae-voet__onder a { color: rgba(248, 244, 239, .75); }
@media (max-width: 860px) { .wae-voet__boven { grid-template-columns: 1fr; gap: 36px; } }

/* ==========================================================================
   10. Berichten, 404, WordPress-klassen
   ========================================================================== */

.wae-lijst { padding: 0 var(--rand) var(--sectie); display: grid; gap: 0; }
.wae-lijst article { border-top: 1px solid var(--lijn); padding: 32px 0; }
.wae-lijst h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.wae-lijst h2 a { text-decoration: none; }
.wae-meta { color: var(--taupe); font-size: 14px; margin-bottom: 12px; }

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { color: var(--taupe); font-size: 14px; margin-top: 8px; }

/* ==========================================================================
   11. Beweging
   ========================================================================== */

.js .wae-verschijn { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .wae-verschijn.is-zichtbaar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .wae-verschijn { opacity: 1; transform: none; transition: none; }
	* { transition-duration: 0s !important; }
}

/* ==========================================================================
   12. Versie 2: donkere kop, toestellen, paspoort, functietegels
   ========================================================================== */

:root {
	--nacht: #2F2723;
	--ivory-70: rgba(248, 244, 239, .72);
	--ivory-12: rgba(248, 244, 239, .12);
}

/* --- Donkere header (op pagina's met een donkere hero) ------------------- */

.kop-donker .wae-kop { background: var(--donker); }
.kop-donker .wae-kop.is-gescrold { border-bottom-color: var(--ivory-12); }
.kop-donker .wae-merk, .kop-donker .wae-merk:hover { color: var(--ivory); }
.kop-donker .wae-merk__naam { border-left-color: rgba(214, 190, 154, .5); }
.kop-donker .wae-nav a { color: var(--ivory); }
.kop-donker .wae-nav a.wae-knop { color: var(--ivory); border-color: rgba(248, 244, 239, .4); }
.kop-donker .wae-nav a.wae-knop:hover { background: var(--ivory); color: var(--donker); border-color: var(--ivory); }
.kop-donker .wae-menuknop { color: var(--ivory); border-color: rgba(248, 244, 239, .3); }
.kop-donker .wae-menuknop:hover { background: var(--ivory); color: var(--donker); }
.wae-merk .wae-logo--licht { display: none; }
.kop-donker .wae-merk .wae-logo--licht { display: block; }
.kop-donker .wae-merk .wae-logo:not(.wae-logo--licht) { display: none; }

.wae-nav a.wae-inlog { font-weight: 600; }
.wae-nav__acties { display: flex; align-items: center; gap: 24px; }

@media (max-width: 900px) {
	.kop-donker .wae-kop { background: var(--donker); }
	.kop-donker .wae-nav { background: var(--donker); border-top-color: var(--ivory-12); }
	.kop-donker .wae-nav li { border-bottom-color: var(--ivory-12); }
	.kop-donker .wae-nav a.wae-knop { background: var(--ivory); color: var(--donker); }
	.wae-nav__acties { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* --- Donkere hero --------------------------------------------------------- */

.wae-hero--donker {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(900px 520px at 85% 20%, rgba(214, 190, 154, .16), transparent 60%),
		radial-gradient(700px 500px at 0% 100%, rgba(119, 97, 79, .35), transparent 60%),
		var(--donker);
	color: var(--ivory);
	padding-top: clamp(48px, 7vw, 104px);
	padding-bottom: clamp(64px, 9vw, 136px);
}
.wae-hero--donker::after {
	content: "";
	position: absolute; z-index: -1;
	right: -4%; top: -6%;
	width: min(640px, 70vw); aspect-ratio: 280 / 305;
	background: url(assets/img/paard-lijn-champagne.png) center / contain no-repeat;
	opacity: .09;
	pointer-events: none;
}
.wae-hero--donker h1 { color: var(--ivory); font-size: clamp(44px, 5.4vw, 80px); }
.wae-hero--donker .wae-lead { color: var(--ivory-70); }
.wae-hero--donker .wp-block-button__link { background: var(--ivory); color: var(--donker); border-color: var(--ivory); }
.wae-hero--donker .wp-block-button__link:hover { background: var(--champagne); border-color: var(--champagne); color: var(--donker); }
.wae-hero--donker .is-style-outline > .wp-block-button__link { background: transparent; color: var(--ivory); border-color: rgba(248, 244, 239, .4); }
.wae-hero--donker .is-style-outline > .wp-block-button__link:hover { background: var(--ivory); color: var(--donker); }
.wae-hero--donker .wp-block-columns { align-items: center; }
.wae-hero--donker .wp-block-column:first-child { flex: 1 1 0; }
.wae-hero--donker .wp-block-column:last-child { flex: 1.25 1 0; }
.wae-klein { font-size: 14px; color: var(--ivory-70); margin-top: 20px !important; }
.wae-hero--donker .wae-klein a { color: var(--ivory); }

/* --- Toestellen (scherm + gsm) ------------------------------------------- */

.wae-toestellen { position: relative; padding: 0 0 64px 120px; }
.wae-scherm {
	background: var(--wit);
	border-radius: 14px;
	box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
	overflow: hidden;
	color: var(--donker);
}
.wae-scherm__balk { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #EFE8DF; border-bottom: 1px solid var(--lijn); }
.wae-scherm__balk i { width: 9px; height: 9px; border-radius: 50%; background: rgba(61, 51, 45, .18); display: block; }
.wae-scherm__balk span { margin-left: 10px; font-size: 12px; color: var(--taupe); }
.wae-scherm__binnen { display: grid; grid-template-columns: 116px 1fr; min-height: 300px; }
.wae-scherm__zij { background: var(--donker); color: var(--ivory-70); padding: 16px 12px; font-size: 11.5px; display: flex; flex-direction: column; gap: 4px; }
.wae-scherm__zij b { font-family: var(--serif); font-weight: 400; font-size: 15px; color: var(--ivory); margin-bottom: 10px; }
.wae-scherm__zij span { padding: 6px 8px; border-radius: 6px; }
.wae-scherm__zij span.is-actief { background: var(--ivory-12); color: var(--ivory); }
.wae-scherm .wae-stalkaart { box-shadow: none; border: 0; border-radius: 0; padding: 16px; font-size: 12px; }
.wae-scherm .wae-stalkaart__tip { display: none; }
.wae-scherm .wae-box__naam { font-size: 13px; padding: 2px 6px; }
.wae-scherm .wae-stalkaart__titel { font-size: 18px; }

.wae-gsm {
	position: absolute; left: 0; bottom: 0;
	width: 196px;
	padding: 8px;
	border-radius: 38px;
	background: #1F1A17;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.wae-gsm__scherm { background: var(--ivory); border-radius: 30px; overflow: hidden; padding: 30px 12px 14px; position: relative; color: var(--donker); }
.wae-gsm__scherm::before { content: ""; position: absolute; top: 9px; left: 50%; width: 64px; height: 18px; border-radius: 10px; background: #1F1A17; transform: translateX(-50%); }
.wae-gsm__titel { font-family: var(--serif); font-size: 17px; margin: 4px 4px 10px; }
.wae-gsm .wae-pas { font-size: 10px; padding: 12px; border-radius: 12px; box-shadow: none; }
.wae-gsm .wae-pas__naam { font-size: 22px; }
.wae-gsm .wae-pas__foto { width: 44px; height: 44px; border-radius: 10px; }
.wae-gsm .wae-pas__nrs dd { font-size: 10px; white-space: nowrap; letter-spacing: .02em; }
.wae-gsm .wae-pas__nrs div { padding: 7px 9px; }
.wae-toestellen .wae-scherm__binnen { grid-template-columns: 1fr; }
.wae-toestellen .wae-scherm__zij { display: none; }
.wae-gsm .wae-pas__qr { width: 34px; height: 34px; }
.wae-gsm .wae-pas__kop { margin-bottom: 10px; }
.wae-gsm__lijst { margin-top: 10px; display: grid; gap: 6px; }
.wae-gsm__lijst div { display: flex; justify-content: space-between; gap: 8px; background: var(--wit); border-radius: 10px; padding: 8px 10px; font-size: 10.5px; border: 1px solid rgba(61, 51, 45, .08); }
.wae-gsm__lijst span { color: var(--taupe); }

@media (max-width: 860px) {
	.wae-toestellen { padding: 0 0 0 0; margin-top: 24px; }
	.wae-scherm__binnen { grid-template-columns: 1fr; }
	.wae-scherm__zij { display: none; }
	.wae-gsm { position: relative; margin: -90px auto 0; width: 220px; }
}

/* --- Digitaal paspoort ---------------------------------------------------- */

.wae-pas {
	--pas-bg: #F1E8DC;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		repeating-radial-gradient(circle at 110% -10%, transparent 0 9px, rgba(173, 137, 84, .09) 9px 10px),
		repeating-radial-gradient(circle at -20% 120%, transparent 0 13px, rgba(119, 97, 79, .06) 13px 14px),
		var(--pas-bg);
	border: 1px solid rgba(173, 137, 84, .35);
	border-radius: 22px;
	padding: clamp(20px, 3vw, 32px);
	color: var(--donker);
	font-size: 14px;
	box-shadow: 0 50px 90px -50px rgba(61, 51, 45, .55);
	max-width: 520px;
}
.wae-pas::after {
	content: ""; position: absolute; z-index: -1; right: -30px; bottom: -40px;
	width: 220px; aspect-ratio: 280 / 305;
	background: url(assets/img/paard-lijn-donker.png) center / contain no-repeat;
	opacity: .06;
}
.wae-pas__kop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.wae-pas__merk { font-size: .82em; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }
.wae-pas__land { font-size: .82em; font-weight: 600; letter-spacing: .08em; border: 1px solid rgba(61, 51, 45, .3); border-radius: 999px; padding: 2px 9px; }
.wae-pas__midden { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.wae-pas__foto {
	width: 76px; height: 76px; border-radius: 16px; flex-shrink: 0;
	background: var(--donker) url(assets/img/paard-lijn-champagne.png) 60% 55% / 78% no-repeat;
	overflow: hidden;
}
.wae-pas__foto img { width: 100%; height: 100%; object-fit: cover; }
.wae-pas__naam { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); line-height: 1; letter-spacing: -.01em; }
.wae-pas__sub { color: var(--taupe); margin-top: 6px; font-size: .95em; }
.wae-pas__nrs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(61, 51, 45, .12); border-radius: 12px; overflow: hidden; }
.wae-pas__nrs div { background: rgba(255, 253, 250, .72); padding: 10px 12px; }
.wae-pas__nrs dt { font-size: .78em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); }
.wae-pas__nrs dd { margin: 3px 0 0; font-variant-numeric: tabular-nums; letter-spacing: .04em; font-size: 1.02em; font-weight: 600; white-space: nowrap; }
.wae-pas__voet { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 18px; }
.wae-pas__status { display: grid; gap: 6px; font-size: .92em; }
.wae-pas__status span { display: inline-flex; align-items: center; gap: 8px; }
.wae-pas__status i { width: 8px; height: 8px; border-radius: 50%; background: #6E8B5B; display: inline-block; flex-shrink: 0; }
.wae-pas__status i.later { background: var(--goud); }
.wae-pas__qr { width: 64px; height: 64px; flex-shrink: 0; color: var(--donker); }
.wae-pas--klein .wae-pas__nrs { grid-template-columns: 1fr; }
.wae-pas--klein .wae-pas__nrs dd { white-space: normal; }
@media (max-width: 420px) {
	.wae-pas__nrs { grid-template-columns: 1fr; }
}

.wae-paspoort-sectie .wp-block-columns { align-items: center; }
.wae-paspoort-sectie .wae-pas { margin-inline: auto; transform: rotate(-2deg); }
.wae-hero--donker .wae-pas { margin-left: auto; }

/* --- Functietegels -------------------------------------------------------- */

.wae-tegels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.wae-tegel {
	grid-column: span 2;
	background: var(--wit);
	border-radius: 18px;
	padding: 26px;
	display: flex; flex-direction: column; gap: 6px;
	border: 1px solid rgba(61, 51, 45, .08);
	min-height: 300px;
	overflow: hidden;
}
.wae-tegel--groot { grid-column: span 4; }
.wae-tegel--donker { background: var(--donker); color: var(--ivory-70); border-color: transparent; }
.wae-tegel--donker h3 { color: var(--ivory); }
.wae-tegel h3 { font-size: 24px; margin: 0; }
.wae-tegel p { font-size: 15px; color: var(--taupe); margin: 0; max-width: 30em; }
.wae-tegel--donker p { color: var(--ivory-70); }
.wae-tegel__beeld { margin-top: auto; padding-top: 22px; }
@media (max-width: 980px) {
	.wae-tegels { grid-template-columns: 1fr 1fr; }
	.wae-tegel, .wae-tegel--groot { grid-column: span 1; }
	.wae-tegel--groot { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.wae-tegels { grid-template-columns: 1fr; }
	.wae-tegel { min-height: 0; }
}

/* mini-UI in de tegels */
.wae-mini { display: grid; gap: 8px; font-size: 13px; }
.wae-mini__rij { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--ivory); }
.wae-tegel--donker .wae-mini__rij { background: var(--ivory-12); color: var(--ivory); }
.wae-mini__rij b { font-weight: 600; }
.wae-mini__rij small { color: var(--taupe); font-size: 12px; }
.wae-tegel--donker .wae-mini__rij small { color: var(--champagne); }
.wae-chip { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #E3EADB; color: #4C6440; white-space: nowrap; }
.wae-chip--open { background: #F3E6D0; color: #8A6430; }
.wae-mini-stal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.wae-mini-stal .wae-box { aspect-ratio: 1; padding: 6px; border-radius: 6px; }
.wae-mini-stal .wae-box__naam { font-size: 12px; padding: 1px 5px; }
.wae-mini-stal .wae-box__nr { font-size: 10px; }
.wae-mini-stal .gang { grid-column: 1 / -1; height: 18px; border-radius: 4px; background: #F3EDE4; }
@media (max-width: 600px) { .wae-mini-stal { grid-template-columns: repeat(4, 1fr); } .wae-mini-stal .wae-box:nth-of-type(n+5):nth-of-type(-n+6), .wae-mini-stal .wae-box:nth-of-type(n+11) { display: none; } }

/* --- Doelgroepen ---------------------------------------------------------- */

.wae-voorwie .wp-block-columns { gap: 16px; align-items: stretch; }
.wae-kaart {
	border-radius: 18px; padding: clamp(28px, 4vw, 48px);
	background: var(--beige);
	height: 100%;
}
.wae-kaart--donker { background: var(--donker); color: var(--ivory-70); }
.wae-kaart--donker h3 { color: var(--ivory); }
.wae-kaart h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 20px; }
.wae-kaart p.wae-punt { margin: 0; padding: 12px 0; border-top: 1px solid var(--lijn); }
.wae-kaart--donker p.wae-punt { border-top-color: var(--ivory-12); }

/* --- Donkere afsluiter --------------------------------------------------- */

.wae-slot {
	background:
		radial-gradient(700px 400px at 100% 0%, rgba(214, 190, 154, .14), transparent 60%),
		var(--donker);
	color: var(--ivory-70);
	position: relative; overflow: hidden; isolation: isolate;
	text-align: center;
}
.wae-slot::after {
	content: ""; position: absolute; z-index: -1; left: 50%; bottom: -12%;
	width: 420px; aspect-ratio: 280 / 305; transform: translateX(-50%);
	background: url(assets/img/paard-lijn-champagne.png) center / contain no-repeat; opacity: .07;
}
.wae-slot h2 { color: var(--ivory); font-size: clamp(38px, 5.6vw, 76px); max-width: 13em; margin-inline: auto; }
.wae-slot p { max-width: 34em; margin-inline: auto; }
.wae-slot .wp-block-buttons { justify-content: center; }
.wae-slot .wp-block-button__link { background: var(--ivory); color: var(--donker); border-color: var(--ivory); }
.wae-slot .wp-block-button__link:hover { background: var(--champagne); border-color: var(--champagne); }
.wae-slot .is-style-outline > .wp-block-button__link { background: transparent; color: var(--ivory); border-color: rgba(248, 244, 239, .4); }

/* --- Kop boven een sectie ------------------------------------------------- */

.wae-sectiekop { margin-bottom: clamp(28px, 4vw, 48px) !important; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.wae-sectiekop h2 { margin: 0; max-width: 13em; }
.wae-sectiekop p { max-width: 30em; color: var(--taupe); margin: 0; }

/* --- Stalplanner in een kader --------------------------------------------- */

.wae-planner--donker { background: var(--donker); }
.wae-planner--donker .wae-onderschrift { color: var(--champagne); }
