/* =========================================================
   Thomas More - Web Design 2026
   Alle kleuren en lettertypes komen uit Website-instellingen
   via CSS-variabelen (--tm-primair, --tm-accent, --tm-tint,
   --tm-font-koppen, --tm-font-tekst).
   ========================================================= */

:root {
	--tm-primair: #1f3a5f;
	--tm-accent: #e8562a;
	--tm-tint: #f5f2ee;
	--tm-font-koppen: 'Poppins', sans-serif;
	--tm-font-tekst: 'Inter', sans-serif;
	--tm-tekst: #1c1c1c;
	--tm-tekst-licht: #5a5a5a;
	--tm-wit: #ffffff;
	--tm-rand: #e4e1dc;
	--tm-radius: 12px;
	--tm-schaduw: 0 6px 24px rgba(0, 0, 0, 0.06);
	--tm-breedte: 1180px;
	--tm-breedte-smal: 780px;
	--tm-ruimte: clamp(3rem, 8vw, 6rem);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--tm-font-tekst);
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--tm-tekst);
	background: var(--tm-wit);
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--tm-primair); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tm-accent); }
:focus-visible { outline: 3px solid var(--tm-accent); outline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--tm-font-koppen);
	line-height: 1.15;
	color: var(--tm-primair);
	margin: 0 0 0.6em;
	font-weight: 700;
	overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.tm-container { width: min(100% - 2.5rem, var(--tm-breedte)); margin-inline: auto; }
.tm-container--smal { max-width: var(--tm-breedte-smal); }
.tm-centreer { text-align: center; }
.tm-centreer .tm-knop { margin-inline: auto; }

.tm-skip {
	position: absolute; left: -999px; top: 0; z-index: 1000;
	background: var(--tm-primair); color: #fff; padding: 0.75rem 1rem; border-radius: 0 0 8px 0;
}
.tm-skip:focus { left: 0; }
.tm-visueel-verborgen { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Knoppen ---------- */
.tm-knop {
	display: inline-block;
	padding: 0.8rem 1.5rem;
	border-radius: 999px;
	background: var(--tm-primair);
	color: #fff !important;
	font-family: var(--tm-font-koppen);
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	min-height: 44px;
	line-height: 1.3;
}
.tm-knop:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.tm-knop--accent { background: var(--tm-accent); }
.tm-knop--groot { padding: 1rem 2rem; font-size: 1.1rem; }
.tm-knop--licht { background: #fff; color: var(--tm-primair) !important; }

/* ---------- Header ---------- */
.tm-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,0.96);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--tm-rand);
}
/* Ingelogd: de zwarte WordPress-balk staat bovenaan, de header schuift eronder. */
.admin-bar .tm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tm-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tm-header { top: 0; } }

.tm-header__binnen { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.tm-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.tm-logo img { max-height: 48px; max-width: 220px; width: auto; height: auto; object-fit: contain; }
.tm-logo__tekst { font-family: var(--tm-font-koppen); font-weight: 700; font-size: 1.4rem; color: var(--tm-primair); line-height: 1.2; }

.tm-nav { display: flex; align-items: center; gap: 1.5rem; }
.tm-nav__lijst, .tm-nav__lijst ul { list-style: none; margin: 0; padding: 0; }
.tm-nav__lijst { display: flex; gap: 0.25rem; align-items: center; }
.tm-nav__lijst > li { position: relative; }
.tm-nav__lijst a {
	display: block; padding: 0.6rem 0.9rem; text-decoration: none; white-space: nowrap;
	color: var(--tm-tekst); font-weight: 500; border-radius: 8px;
}
.tm-nav__lijst a:hover,
.tm-nav__lijst .current-menu-item > a, .tm-nav__lijst .current-menu-ancestor > a,
.tm-nav__lijst .current_page_item > a, .tm-nav__lijst .current_page_ancestor > a { color: var(--tm-accent); }
.tm-nav__lijst .menu-item-has-children > a::after { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-left: 0.45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.2em) rotate(45deg); }
.tm-nav__lijst .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 220px; z-index: 10;
	background: #fff; border: 1px solid var(--tm-rand); border-radius: var(--tm-radius); box-shadow: var(--tm-schaduw);
	padding: 0.5rem; display: none;
}
.tm-nav__lijst .sub-menu a { white-space: normal; }
.tm-nav__lijst li:hover > .sub-menu, .tm-nav__lijst li:focus-within > .sub-menu { display: block; }
.tm-nav__knop .tm-knop { white-space: nowrap; }
.tm-menuknop {
	display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
	flex-direction: column; justify-content: center; gap: 5px; padding: 8px; flex-shrink: 0;
}
.tm-menuknop span { display: block; height: 3px; background: var(--tm-primair); border-radius: 3px; transition: transform 0.2s, opacity 0.2s; }
.tm-menuknop[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.tm-menuknop[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tm-menuknop[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hamburgermenu: op gsm en tablet, en ook op een groot scherm als het menu niet naast het logo past
   (de klasse tm-header--compact wordt gezet door een klein script in header.php). */
.tm-header--compact .tm-menuknop { display: flex; }
.tm-header--compact .tm-nav {
	display: none; position: absolute; left: 0; right: 0; top: 100%;
	background: #fff; border-bottom: 1px solid var(--tm-rand); box-shadow: 0 12px 24px rgba(0,0,0,0.08);
	flex-direction: column; align-items: stretch; padding: 0.5rem 1.25rem 1.5rem; gap: 1rem;
	max-height: calc(100vh - 76px); overflow-y: auto; overscroll-behavior: contain;
}
.tm-header--compact .tm-nav.is-open { display: flex; }
.tm-header--compact .tm-nav__lijst { flex-direction: column; align-items: stretch; gap: 0; }
.tm-header--compact .tm-nav__lijst a { padding: 0.85rem 0.5rem; font-size: 1.1rem; border-bottom: 1px solid var(--tm-rand); border-radius: 0; white-space: normal; }
.tm-header--compact .tm-nav__lijst .menu-item-has-children > a::after { display: none; }
.tm-header--compact .tm-nav__lijst .sub-menu { position: static; display: block; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 1rem; min-width: 0; }
.tm-header--compact .tm-nav__lijst .sub-menu a { font-size: 1rem; }
.tm-header--compact .tm-nav__knop .tm-knop { display: block; text-align: center; }
.tm-header--compact .tm-header__binnen { min-height: 68px; }
.tm-header--compact .tm-logo img { max-height: 42px; max-width: 180px; }

/* ---------- Secties ---------- */
.tm-sectie { padding-block: var(--tm-ruimte); }
.tm-sectie--tint { background: var(--tm-tint); }
.tm-sectie--tint + .tm-sectie--tint { border-top: 1px solid rgba(0,0,0,0.06); }
.tm-sectie[id], .tm-inhoud [id] { scroll-margin-top: 96px; }
.tm-sectie__kop { margin-bottom: 1.5rem; }
.tm-sectie__intro { max-width: 680px; margin-inline: 0; margin-bottom: 2.5rem; color: var(--tm-tekst-licht); }
.tm-centreer.tm-sectie__intro { margin-inline: auto; }

/* Hero */
.tm-hero { position: relative; isolation: isolate; background: var(--tm-primair); color: #fff; overflow: hidden; display: flex; align-items: center; }
.tm-hero--groot { padding-block: clamp(5rem, 14vw, 10rem); min-height: min(78vh, 760px); }
.tm-hero--klein { padding-block: clamp(3rem, 7vw, 5rem); }
.tm-hero__beeld { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.tm-hero--beeld::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.2) 100%); }
.tm-hero__binnen { position: relative; }
.tm-hero__kop { color: #fff; margin-bottom: 0.4em; max-width: 18em; text-wrap: balance; }
.tm-hero__tekst { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-bottom: 1.8rem; max-width: 36em; opacity: 0.95; }
@media (max-width: 700px) {
	.tm-hero--groot { min-height: 0; }
	.tm-hero--beeld::before { background: rgba(0,0,0,0.55); }
}

/* Tekst */
.tm-inhoud > *:first-child { margin-top: 0; }
.tm-inhoud h2, .tm-inhoud h3 { margin-top: 1.4em; }
.tm-inhoud ul, .tm-inhoud ol { padding-left: 1.4em; }
.tm-inhoud--kolommen { column-count: 2; column-gap: 3rem; }
@media (max-width: 720px) { .tm-inhoud--kolommen { column-count: 1; } }

/* Tekst en beeld */
.tm-tekstbeeld__binnen { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.tm-tekstbeeld--links .tm-tekstbeeld__tekst { order: 2; }
.tm-tekstbeeld__beeld { margin: 0; }
.tm-tekstbeeld__beeld img { border-radius: var(--tm-radius); box-shadow: var(--tm-schaduw); width: 100%; }
.tm-tekstbeeld .tm-knop { margin-top: 1.5rem; }
.tm-tekstbeeld--zonder-beeld .tm-tekstbeeld__binnen { grid-template-columns: 1fr; max-width: var(--tm-breedte-smal); }
@media (max-width: 800px) {
	.tm-tekstbeeld__binnen { grid-template-columns: 1fr; }
	.tm-tekstbeeld--links .tm-tekstbeeld__tekst { order: 0; }
}

/* USP's */
.tm-usps__raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tm-usps__raster--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.tm-usps__raster--2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.tm-usps__raster--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .tm-usps__raster--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .tm-usps__raster--3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tm-usps__raster, .tm-usps__raster--2, .tm-usps__raster--4 { grid-template-columns: 1fr; } }
.tm-usp { background: #fff; border-radius: var(--tm-radius); padding: 1.75rem; box-shadow: var(--tm-schaduw); }
.tm-usp__icoon { display: block; font-size: 2rem; margin-bottom: 0.75rem; line-height: 1; }
.tm-usp__titel { margin-bottom: 0.4em; }
.tm-usp p { color: var(--tm-tekst-licht); font-size: 1rem; }

/* Kaarten */
.tm-kaarten { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem; }
.tm-kaarten > .tm-kaart { flex: 1 1 280px; max-width: 370px; }
.tm-kaarten--blog { justify-content: flex-start; }
.tm-kaart {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tm-rand);
	border-radius: var(--tm-radius); overflow: hidden; text-decoration: none; color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.tm-kaart:hover { transform: translateY(-4px); box-shadow: var(--tm-schaduw); color: inherit; }
.tm-kaart__beeld img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tm-kaart__tekst { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.tm-kaart__titel { margin: 0; }
.tm-kaart__tekst p { color: var(--tm-tekst-licht); font-size: 1rem; }
.tm-kaart__meta { font-size: 0.9rem; color: var(--tm-tekst-licht); }
.tm-kaart__link { margin-top: auto; color: var(--tm-accent); font-weight: 600; }

/* Reviews */
.tm-reviews__raster { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.tm-reviews__raster > .tm-review { flex: 1 1 280px; max-width: 370px; }
.tm-review { margin: 0; background: #fff; border-radius: var(--tm-radius); padding: 1.75rem; box-shadow: var(--tm-schaduw); border-left: 5px solid var(--tm-accent); display: flex; flex-direction: column; }
.tm-review__citaat { margin: 0; font-size: 1.05rem; font-style: italic; flex: 1; }
.tm-review__naam { color: var(--tm-tekst-licht); font-size: 0.95rem; margin-top: 1rem; }

/* Team */
.tm-team__raster { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.tm-team__raster > .tm-lid { flex: 1 1 200px; max-width: 260px; }
.tm-lid { text-align: center; }
.tm-lid__foto img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; width: 100%; max-width: 220px; margin: 0 auto 1rem; }
.tm-lid__initiaal { display: flex; align-items: center; justify-content: center; width: 160px; aspect-ratio: 1; margin: 0 auto 1rem; border-radius: 50%; background: var(--tm-tint); color: var(--tm-primair); font-family: var(--tm-font-koppen); font-weight: 700; font-size: 3rem; }
.tm-lid__naam { margin-bottom: 0.2em; }
.tm-lid__functie { color: var(--tm-tekst-licht); font-size: 1rem; }

/* Galerij */
.tm-galerij__raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.tm-galerij__item { margin: 0; }
.tm-galerij__raster--1 { grid-template-columns: minmax(0, 780px); justify-content: center; }
.tm-galerij__raster--2 { grid-template-columns: repeat(2, 1fr); }
.tm-galerij__raster--3 { grid-template-columns: repeat(3, 1fr); }
.tm-galerij__raster--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .tm-galerij__raster--4 { grid-template-columns: repeat(2, 1fr); } }
.tm-galerij__item a { display: block; border-radius: var(--tm-radius); overflow: hidden; }
.tm-galerij__item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.3s ease; }
.tm-galerij__item a:hover img { transform: scale(1.04); }
.tm-galerij__item figcaption { font-size: 0.9rem; color: var(--tm-tekst-licht); margin-top: 0.4rem; }
@media (max-width: 600px) { .tm-galerij__raster--3, .tm-galerij__raster--4 { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; } }

/* Video */
.tm-video__kader { position: relative; aspect-ratio: 16 / 9; border-radius: var(--tm-radius); overflow: hidden; background: #000; }
.tm-video__kader iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* FAQ */
.tm-faq__item { background: #fff; border-radius: var(--tm-radius); border: 1px solid var(--tm-rand); margin-bottom: 0.75rem; }
.tm-faq__vraag {
	cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.4rem; font-family: var(--tm-font-koppen); font-weight: 600;
	color: var(--tm-primair); position: relative; list-style: none; font-size: 1.05rem;
}
.tm-faq__vraag::-webkit-details-marker { display: none; }
.tm-faq__vraag::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--tm-accent); line-height: 1; }
.tm-faq__item[open] .tm-faq__vraag::after { content: "–"; }
.tm-faq__antwoord { padding: 0 1.4rem 1.3rem; }

/* Bento grid */
.tm-bento__raster {
	display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto);
	grid-auto-flow: dense; gap: 1rem;
}
.tm-tegel {
	position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
	border-radius: calc(var(--tm-radius) + 6px); padding: clamp(1.25rem, 2.5vw, 2rem); text-decoration: none; color: var(--tm-tekst);
	background: #fff; border: 1px solid var(--tm-rand); min-height: 220px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.tm-tegel:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.12); }
.tm-tegel--breed { grid-column: span 2; }
.tm-tegel--hoog  { grid-row: span 2; }
.tm-tegel--groot { grid-column: span 2; grid-row: span 2; }
.tm-tegel--tint    { background: var(--tm-tint); border-color: transparent; }
.tm-sectie--tint .tm-tegel--tint { background: var(--tm-tint); background: color-mix(in srgb, var(--tm-tint) 90%, var(--tm-primair)); }
.tm-sectie--tint .tm-tegel--wit { border-color: transparent; }
.tm-tegel--primair { background: var(--tm-primair); border-color: transparent; color: #fff; }
.tm-tegel--accent  { background: var(--tm-accent); border-color: transparent; color: #fff; }
.tm-tegel--beeld   { border-color: transparent; color: #fff; background: var(--tm-primair); }
/* Tekstkleur vastzetten, ook bij hover (anders maakt a:hover de tekst donker of oranje). */
.tm-tegel.tm-tegel--primair, .tm-tegel.tm-tegel--accent, .tm-tegel.tm-tegel--beeld { color: #fff; }
.tm-tegel.tm-tegel--wit, .tm-tegel.tm-tegel--tint { color: var(--tm-tekst); }
.tm-tegel__beeld { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 0.4s ease; }
.tm-tegel--beeld::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.72) 100%); }
a.tm-tegel--beeld:hover .tm-tegel__beeld { transform: scale(1.05); }
.tm-tegel__icoon { display: block; font-size: 2rem; line-height: 1; margin-bottom: 0.75rem; }
.tm-tegel__titel { margin: 0 0 0.35em; color: inherit; font-size: 1.25rem; }
.tm-tegel--primair .tm-tegel__titel, .tm-tegel--accent .tm-tegel__titel, .tm-tegel--beeld .tm-tegel__titel { color: #fff; }
.tm-tegel--wit .tm-tegel__titel, .tm-tegel--tint .tm-tegel__titel { color: var(--tm-primair); }
.tm-tegel--groot .tm-tegel__titel { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tm-tegel__tekst { margin: 0; font-size: 1rem; opacity: 0.92; }
.tm-tegel--wit .tm-tegel__tekst, .tm-tegel--tint .tm-tegel__tekst { color: var(--tm-tekst-licht); opacity: 1; }
.tm-tegel__link { position: absolute; top: 1rem; right: 1rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.9); color: var(--tm-primair); font-weight: 700; transition: transform 0.2s ease; }
.tm-tegel--wit .tm-tegel__link { background: var(--tm-tint); }
a.tm-tegel:hover .tm-tegel__link { transform: translateX(3px); }
@media (max-width: 900px) {
	.tm-bento__raster { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(200px, auto); }
}
@media (max-width: 600px) {
	.tm-bento__raster { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.tm-tegel--breed, .tm-tegel--groot { grid-column: auto; }
	.tm-tegel--hoog, .tm-tegel--groot { grid-row: auto; }
	.tm-tegel { min-height: 180px; }
	.tm-tegel--beeld { min-height: 260px; }
}

/* Call-to-action */
.tm-cta--donker { background: var(--tm-primair); color: #fff; }
.tm-cta--donker .tm-cta__kop { color: #fff; }
.tm-cta--licht { background: var(--tm-tint); }
.tm-cta__tekst { font-size: 1.15rem; margin-bottom: 1.8rem; opacity: 0.95; }

/* Contact */
.tm-contact__raster { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 1rem; }
.tm-contact__gegevens p { margin-bottom: 1rem; }
.tm-contact__kaart { margin-top: 1.5rem; border-radius: var(--tm-radius); overflow: hidden; }
.tm-contact__kaart iframe { width: 100%; min-height: 280px; border: 0; display: block; }
.tm-contact__formulier { background: var(--tm-tint); padding: 2rem; border-radius: var(--tm-radius); }
.tm-contact__leeg { background: #fff6e5; border: 1px dashed #e0a300; padding: 1rem; border-radius: 8px; font-size: 0.95rem; }
.tm-contact__raster--een { grid-template-columns: 1fr; max-width: var(--tm-breedte-smal); }
@media (max-width: 800px) { .tm-contact__raster { grid-template-columns: 1fr; } .tm-contact__formulier { padding: 1.25rem; } }

/* Formulieren (WPForms / Contact Form 7) */
.tm-theme input[type="text"], .tm-theme input[type="email"], .tm-theme input[type="tel"], .tm-theme input[type="search"],
.tm-theme input[type="url"], .tm-theme input[type="number"], .tm-theme input[type="date"], .tm-theme input[type="time"],
.tm-theme input[type="password"], .tm-theme textarea, .tm-theme select {
	width: 100%; max-width: 100%; padding: 0.8rem 1rem; border: 1px solid #cfcac2; border-radius: 8px; font: inherit; background: #fff; color: var(--tm-tekst);
}
.tm-theme input:focus, .tm-theme textarea:focus, .tm-theme select:focus { border-color: var(--tm-primair); outline: 2px solid var(--tm-primair); outline-offset: 0; }
.tm-zoek input[type="search"] { flex: 1; min-width: 0; }
.tm-theme button[type="submit"], .tm-theme input[type="submit"] {
	background: var(--tm-accent); color: #fff; border: 0; border-radius: 999px; padding: 0.85rem 1.75rem;
	font-family: var(--tm-font-koppen); font-weight: 600; font-size: 1rem; cursor: pointer; min-height: 44px;
}

/* Inhoud uit de editor (berichten en pagina's zonder secties) */
.tm-inhoud img { border-radius: 8px; }
.tm-inhoud figure { margin: 2rem 0; }
.tm-inhoud figcaption, .wp-caption-text { font-size: 0.9rem; color: var(--tm-tekst-licht); margin-top: 0.5rem; }
.tm-inhoud blockquote { margin: 2rem 0; padding: 0.5rem 0 0.5rem 1.25rem; border-left: 4px solid var(--tm-accent); font-style: italic; }
.tm-inhoud table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1rem; }
.tm-inhoud th, .tm-inhoud td { border: 1px solid var(--tm-rand); padding: 0.6rem 0.8rem; text-align: left; }
.tm-inhoud .wp-block-button__link { background: var(--tm-primair); color: #fff; border-radius: 999px; text-decoration: none; font-family: var(--tm-font-koppen); font-weight: 600; }
.alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1rem 0; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 0.75rem 1rem; background: #fff; z-index: 1000; }

/* Artikel (bericht / gewone pagina) */
.tm-artikel { padding-block: var(--tm-ruimte); }
.tm-artikel__meta { color: var(--tm-tekst-licht); font-size: 0.95rem; margin-bottom: 0.5rem; }
.tm-artikel__titel { margin-bottom: 1rem; }
.tm-artikel__beeld { margin: 0 0 2rem; }
.tm-artikel__beeld img { border-radius: var(--tm-radius); width: 100%; }
.tm-artikel__terug { margin-top: 3rem; }
.tm-paginering { margin-top: 2.5rem; text-align: center; }
.tm-paginering .page-numbers { display: inline-block; padding: 0.5rem 0.9rem; border-radius: 8px; text-decoration: none; }
.tm-paginering .page-numbers.current { background: var(--tm-primair); color: #fff; }

/* 404 */
.tm-404__code { font-family: var(--tm-font-koppen); font-size: clamp(4rem, 15vw, 8rem); font-weight: 700; color: var(--tm-accent); line-height: 1; margin: 0; }

/* Zoeken */
.tm-zoek { display: flex; gap: 0.5rem; }

/* ---------- Footer ---------- */
.tm-footer { background: var(--tm-primair); background: color-mix(in srgb, var(--tm-primair) 82%, #000); color: rgba(255,255,255,0.88); padding-block: 3.5rem 1.5rem; margin-top: auto; }
.tm-footer a { color: #fff; }
.tm-footer a:hover { color: var(--tm-accent); }
.tm-footer .tm-logo { margin-bottom: 1rem; }
.tm-footer .tm-logo img { max-height: 56px; max-width: 220px; filter: brightness(0) invert(1); }
.tm-footer .tm-logo--eigen img { filter: none; }
.tm-footer .tm-logo__tekst { color: #fff; }
.tm-footer__kolommen { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; }
.tm-footer__kop { color: #fff; font-size: 1.1rem; margin-bottom: 0.75rem; }
.tm-footer__klein { font-size: 0.9rem; opacity: 0.8; }
.tm-footer__lijst { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.tm-footer__lijst a { text-decoration: none; }
.tm-footer__onder { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.9rem; opacity: 0.85; }
.tm-social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tm-social__link { border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 0.3rem 0.9rem; text-decoration: none; font-size: 0.95rem; }
.tm-social__link:hover { border-color: var(--tm-accent); }

/* Body als flex, zodat de footer altijd onderaan staat */
body.tm-theme { display: flex; flex-direction: column; min-height: 100vh; }
.tm-main { flex: 1; }

/* Minder beweging voor wie dat verkiest */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tm-knop, .tm-kaart, .tm-tegel, .tm-tegel__beeld, .tm-galerij__item img, .tm-menuknop span { transition: none; }
}

/* Afdrukken */
@media print {
	.tm-header, .tm-footer, .tm-menuknop, .tm-knop { display: none !important; }
}
