/*
Theme Name: TechRoom
Theme URI: https://techroom.be
Author: TechRoom Izegem
Description: Thema voor TechRoom Izegem. Werkt samen met de plugin TechRoom Core (aanbod, workshops, formulieren, openingsuren).
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: techroom
*/

/* TechRoom Izegem — huisstijl
   Layout: links uitgelijnd, één brede kolom (max 1160px) met ruime secties;
   het weekrooster met openingsuren is het kenmerkende element. */
:root {
  --navy: #132B50;
  --sky: #5FAEF0;
  --link: #1E6FBF;
  --bg: #F5F8FC;
  --surface: #FFFFFF;
  --surface-2: #EAF2FB;
  --ink: #0F1E36;
  --muted: #55667E;
  --line: #D9E2EE;
  --ok: #17885A;
  --warn: #B26A00;
  --danger: #C23B3B;
  --on-navy: #FFFFFF;
  --hero-bg: #132B50;
  --hero-ink: #FFFFFF;
  --hero-muted: #B9CCE6;
  --office: rgba(19, 43, 80, .07);

  --f-display: "Saira", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.1rem;
  --step-4: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);

  --r-sm: 8px;
  --r-md: 14px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #DCE8F7; --sky: #6DB7F4; --link: #8CC6F7;
    --bg: #0B1526; --surface: #11203A; --surface-2: #172C4C; --ink: #E6EEF8; --muted: #9DB0C9;
    --line: #22385B; --ok: #3CC48A; --warn: #E3A23C; --danger: #F07A7A; --on-navy: #0B1526;
    --hero-bg: #0F2240; --hero-ink: #FFFFFF; --hero-muted: #A9C0DE; --office: rgba(220, 232, 247, .06);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy: #DCE8F7; --sky: #6DB7F4; --link: #8CC6F7;
  --bg: #0B1526; --surface: #11203A; --surface-2: #172C4C; --ink: #E6EEF8; --muted: #9DB0C9;
  --line: #22385B; --ok: #3CC48A; --warn: #E3A23C; --danger: #F07A7A; --on-navy: #0B1526;
  --hero-bg: #0F2240; --hero-ink: #FFFFFF; --hero-muted: #A9C0DE; --office: rgba(220, 232, 247, .06);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--navy); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.muted { color: var(--muted); }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 60ch; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: .9em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- announcement ---------- */
.announce { background: var(--sky); color: #0B1A30; font-weight: 700; text-align: center; padding: .55rem var(--gutter); font-size: var(--step--1); }
.announce-link { color: inherit; text-decoration: underline; text-underline-offset: .15em; margin-left: .4em; white-space: nowrap; }
.announce + .announce { border-top: 1px solid rgba(255,255,255,.35); }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.wordmark { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -.01em; line-height: 1; color: var(--navy); }
.wordmark span { color: var(--sky); }
.wordmark small { display: block; font-family: var(--f-body); font-size: .72rem; font-weight: 400; letter-spacing: .04em; color: var(--muted); margin-top: .2rem; white-space: nowrap; }
.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: .5rem .8rem; border-radius: var(--r-sm); }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--link); box-shadow: inset 0 -3px 0 var(--sky); border-radius: 0; }
.open-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--step--1); font-weight: 700; color: var(--muted); white-space: nowrap; }
.open-pill::before { content: ""; width: .6rem; height: .6rem; border-radius: 3px; background: var(--muted); }
.open-pill.is-open { color: var(--ok); }
.open-pill.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); padding: .45rem .7rem; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .site-header .open-pill { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .5rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sky); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border-radius: var(--r-sm); padding: .8rem 1.25rem; border: 2px solid transparent; line-height: 1.2; transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sky); color: #0B1A30; }
.btn-primary:hover { background: color-mix(in srgb, var(--sky) 85%, #fff); }
.btn-dark { background: #132B50; color: #fff; }
.btn-dark:hover { background: #1C3B69; }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-on-dark { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-on-dark:hover { background: rgba(255,255,255,.1); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- hero ---------- */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding-block: clamp(2.5rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 80px; border: 2px solid rgba(95,174,240,.18); transform: rotate(12deg); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 .line2 { display: block; color: var(--sky); }
.hero .lead { color: var(--hero-muted); margin-top: 1.25rem; }
.hero .btn-row { margin-top: 2rem; }
.hero-note { margin-top: 1.5rem; font-size: var(--step--1); color: var(--hero-muted); display: flex; gap: .5rem; align-items: center; }
.hero .open-pill { color: var(--hero-muted); }
.hero .open-pill.is-open { color: #6FE0A8; }
.hero .open-pill.is-open::before { background: #6FE0A8; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.page-head .lead { margin-top: .9rem; color: var(--muted); }
.crumb { font-size: var(--step--1); margin-bottom: .75rem; color: var(--muted); }
.crumb a { color: var(--muted); }

/* ---------- week chart (signature) ---------- */
.week { background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: 1.25rem 1.25rem 1rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); }
.week h2, .week h3 { font-size: var(--step-1); }
.week-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.week-grid { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); row-gap: .4rem; column-gap: .6rem; align-items: center; }
.week-day { font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--muted); }
.week-day.is-today { color: var(--link); }
.week-track { position: relative; height: 1.7rem; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.week-office { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--office) 0 6px, transparent 6px 12px); border-inline: 1px dashed color-mix(in srgb, var(--muted) 45%, transparent); }
.week-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: #132B50; color: #fff; font-size: .75rem; font-weight: 700; display: flex; align-items: center; padding-inline: .45rem; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .week-bar { background: var(--sky); color: #0B1A30; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .week-bar { background: var(--sky); color: #0B1A30; } }
.week-bar.appt { background: transparent; color: var(--link); border: 2px dashed var(--sky); }
.week-now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--danger); }
.week-axis { grid-column: 2; display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .15rem; }
.week-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .9rem; font-size: .8rem; color: var(--muted); }
.week-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.lg { width: 1.3rem; height: .75rem; border-radius: 3px; display: inline-block; }
.lg-open { background: #132B50; }
:root[data-theme="dark"] .lg-open { background: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lg-open { background: var(--sky); } }
.lg-appt { border: 2px dashed var(--sky); }
.lg-office { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 35%, transparent) 0 3px, transparent 3px 6px); border: 1px dashed var(--muted); }

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head p { color: var(--muted); max-width: 60ch; margin-top: .6rem; }

.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 2.5rem; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: minmax(0, 1fr); } }
.svc-group h3 { display: flex; align-items: center; gap: .6rem; padding-bottom: .7rem; border-bottom: 2px solid var(--navy); margin-bottom: .4rem; }
.svc-group h3 svg { width: 1.6rem; height: 1.6rem; flex-shrink: 0; color: var(--sky); }
.svc-group ul { list-style: none; margin: 0; padding: 0; }
.svc-group li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.svc-group li strong { display: block; font-weight: 700; }
.svc-group li span { color: var(--muted); font-size: var(--step--1); line-height: 1.45; display: block; margin-top: .15rem; }

.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 700px) { .audience { grid-template-columns: minmax(0, 1fr); } }
.audience > div { padding: 1.25rem 1.4rem; border-radius: var(--r-md); background: var(--surface-2); }
.audience h3 { margin-bottom: .4rem; }

/* Schatkamer band */
.band { background: var(--surface-2); border-radius: var(--r-md); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 1.5rem 2rem; align-items: center; }
@media (max-width: 760px) { .band { grid-template-columns: minmax(0, 1fr); } }
.band p { margin-top: .5rem; color: var(--muted); max-width: 60ch; }

/* partners */
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--navy); }
@media (max-width: 800px) { .partners { grid-template-columns: minmax(0, 1fr); } }
.partner { padding: 1.4rem 1.5rem 1.4rem 0; border-bottom: 1px solid var(--line); }
.partners .partner + .partner { padding-left: 1.5rem; border-left: 1px solid var(--line); }
@media (max-width: 800px) { .partners .partner + .partner { padding-left: 0; border-left: 0; } }
.partner .for { font-size: var(--step--1); color: var(--muted); }
.partner h3 { margin: .35rem 0 .45rem; font-size: var(--step-2); }
.partner p { color: var(--muted); }
.partner a { display: inline-block; margin-top: .7rem; font-weight: 700; }

/* ---------- product grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip { font: inherit; font-size: var(--step--1); font-weight: 700; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: #132B50; color: #fff; border-color: #132B50; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit; padding: 0; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.product:hover { border-color: var(--sky); box-shadow: 0 10px 30px -18px rgba(19,43,80,.5); }
.product-img { aspect-ratio: 4 / 3; width: 100%; background: var(--surface-2); position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-meta { font-size: .8rem; color: var(--muted); }
.product-title { font-family: var(--f-display); font-weight: 600; color: var(--navy); font-size: 1.12rem; line-height: 1.2; }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .6rem; }
.price { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.badge { position: absolute; left: .7rem; top: .7rem; font-size: .75rem; font-weight: 700; padding: .25rem .55rem; border-radius: 6px; background: var(--surface); color: var(--ink); }
.badge.reserved { background: #FFE7B8; color: #6B4100; }
.badge.sold { background: var(--danger); color: #fff; }
.badge.new { background: var(--sky); color: #0B1A30; }
.product.is-sold .product-img img { filter: grayscale(1) opacity(.6); }
.empty { padding: 2.5rem; text-align: center; border: 2px dashed var(--line); border-radius: var(--r-md); color: var(--muted); }

/* dialog */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-md); width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: var(--surface); color: var(--ink); }
dialog.modal::backdrop { background: rgba(8, 18, 34, .65); }
.modal-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
@media (max-width: 760px) { .modal-inner { grid-template-columns: minmax(0, 1fr); } }
.gallery-main { aspect-ratio: 4 / 3; background: var(--surface-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: .4rem; padding: .5rem; flex-wrap: wrap; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 6px; overflow: hidden; width: 64px; height: 48px; cursor: pointer; background: var(--surface-2); }
.thumbs button[aria-current="true"] { border-color: var(--sky); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-text { padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; overflow-y: auto; }
.modal-close { position: absolute; right: .6rem; top: .6rem; z-index: 2; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; width: 2.4rem; height: 2.4rem; font-size: 1.3rem; cursor: pointer; }
.desc { white-space: pre-line; }

/* ---------- workshops ---------- */
.ws-list { display: flex; flex-direction: column; border-top: 2px solid var(--navy); }
.ws { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: start; }
@media (max-width: 700px) { .ws { grid-template-columns: 4.8rem minmax(0, 1fr); } .ws .ws-cta { grid-column: 1 / -1; } }
.ws-date { font-family: var(--f-display); text-align: center; border-radius: var(--r-sm); background: #132B50; color: #fff; padding: .55rem .3rem .6rem; line-height: 1.1; }
.ws-date .d { font-size: 2rem; font-weight: 700; display: block; }
.ws-date .m { font-size: .85rem; text-transform: lowercase; display: block; }
.ws-date .wd { font-size: .78rem; opacity: .8; display: block; margin-bottom: .15rem; }
.ws h3 { font-size: var(--step-1); }
.ws-facts { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; color: var(--muted); font-size: var(--step--1); margin-top: .4rem; font-variant-numeric: tabular-nums; }
.ws p.sum { margin-top: .6rem; max-width: 62ch; }
.ws-cta { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; min-width: 10rem; }
@media (max-width: 700px) { .ws-cta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; align-items: center; } }
.seats { font-size: var(--step--1); font-weight: 700; color: var(--ok); }
.seats.low { color: var(--warn); }
.seats.full { color: var(--danger); }

/* ---------- forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.25rem, 3vw, 2rem); }
form.form { display: flex; flex-direction: column; gap: 1.4rem; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
legend { font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); color: var(--navy); margin-bottom: .6rem; padding: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label, .label { font-weight: 700; font-size: .95rem; }
.req { color: var(--danger); }
.hint { font-size: .85rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="password"], input[type="url"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .7rem .8rem; width: 100%; min-width: 0;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 30%, transparent); }
input[type="file"] { font: inherit; font-size: .95rem; max-width: 100%; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .5rem; }
.choice { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; background: var(--bg); line-height: 1.35; }
.choice:has(input:checked) { border-color: var(--sky); background: var(--surface-2); }
.choice input { margin-top: .2rem; accent-color: #1E6FBF; flex-shrink: 0; }
.choice small { display: block; color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.tabs .choice { flex-direction: column; gap: .2rem; font-weight: 700; }
.tabs .choice input { position: absolute; opacity: 0; pointer-events: none; }
.tabs .choice:has(input:focus-visible) { outline: 3px solid var(--sky); outline-offset: 2px; }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { margin-top: .3rem; accent-color: #1E6FBF; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 1rem 1.2rem; border-radius: var(--r-sm); font-weight: 700; }
.form-msg.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ink); border-left: 4px solid var(--ok); }
.form-msg.err { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--ink); border-left: 4px solid var(--danger); }
.form-msg.info { background: var(--surface-2); color: var(--ink); border-left: 4px solid var(--sky); }
.success { display: flex; flex-direction: column; gap: 1rem; }
.pay { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .4rem 1.2rem; padding: 1rem 1.2rem; background: var(--surface-2); border-radius: var(--r-sm); font-variant-numeric: tabular-nums; }
.pay dt { color: var(--muted); }
.pay dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.aside { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 90px; }
.aside .card h3 { margin-bottom: .5rem; }
.dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1rem; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* hours table */
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 400; color: var(--muted); }
.hours td { font-weight: 700; text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--link); }
.hours td .appt { color: var(--muted); font-weight: 400; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { background: #0E2140; color: #C9D7EA; padding-block: 3rem 2rem; margin-top: 0; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.site-footer .wordmark { color: #fff; }
.foot-hours { display: grid; grid-template-columns: auto 1fr; gap: .15rem .8rem; font-size: .92rem; font-variant-numeric: tabular-nums; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .85rem; }

.demo-flag { position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: #FFE7B8; color: #4A2E00; font-size: .8rem; font-weight: 700; padding: .45rem .75rem; border-radius: 8px; box-shadow: 0 6px 20px -8px rgba(0,0,0,.4); max-width: calc(100vw - 24px); }

/* ================= WordPress-inhoud ================= */
.entry { display: flow-root; }
.entry > * { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.entry > * + * { margin-top: 1.25rem; }
.entry > .tr-section, .entry > .tr-hero { max-width: none; margin-top: 0; padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
.entry > .tr-section + .tr-section { margin-top: 0; }
.entry > :last-child:not(.tr-section) { margin-bottom: clamp(3rem, 7vw, 5rem); }
.entry > :first-child:not(.tr-section):not(.tr-hero) { margin-top: clamp(2rem, 5vw, 3.5rem); }

.tr-section { padding-block: clamp(3rem, 7vw, 5.5rem); display: flex; flex-direction: column; gap: 1rem; }
.tr-section > * { margin: 0; }
.tr-section.tr-alt { background: var(--surface); border-block: 1px solid var(--line); }
.tr-section.tr-tight { padding-block: 0; }
.tr-section .tr-intro { color: var(--muted); max-width: 62ch; margin-bottom: 1rem; }
.tr-section h2 + .tr-intro { margin-top: .1rem; }
.tr-section .wp-block-buttons { margin-top: .5rem; }

/* hero */
.tr-hero { background: var(--hero-bg); color: var(--hero-ink); padding-block: clamp(2.5rem, 6vw, 5rem); position: relative; overflow: hidden; }
.tr-hero > .wp-block-columns { position: relative; z-index: 1; gap: clamp(2rem, 5vw, 4rem); align-items: center !important; margin: 0; }
.tr-hero h1 { color: #fff; }
.tr-hero h1 strong { display: block; color: var(--sky); font-weight: inherit; }
.tr-hero p { color: var(--hero-muted); font-size: var(--step-1); line-height: 1.5; max-width: 52ch; margin-top: 1.25rem; }
.tr-hero .wp-block-buttons { margin-top: 2rem; }
.tr-hero .open-pill { color: var(--hero-muted); margin-top: 1.5rem; }
.tr-hero .open-pill.is-open { color: #6FE0A8; }
.tr-hero .open-pill.is-open::before { background: #6FE0A8; }
.tr-hero p:has(> .open-pill) { font-size: var(--step--1); }
.tr-hero .week p { color: var(--muted); font-size: .9rem; margin-top: .6rem; max-width: none; }
.tr-hero .week .open-pill { color: var(--muted); margin-top: 0; }
.tr-hero .week .open-pill.is-open { color: var(--ok); }
.tr-hero .week .open-pill.is-open::before { background: var(--ok); }

/* pagina-kop */
.tr-pagehead { padding-block: clamp(2rem, 5vw, 3.5rem) .5rem; }
.tr-pagehead p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 60ch; }

/* knoppen (blok "Knoppen") */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-body); font-size: 1rem; font-weight: 700; text-decoration: none; border-radius: var(--r-sm); padding: .8rem 1.25rem; border: 2px solid transparent; line-height: 1.2; background: #132B50; color: #fff; transition: background .15s; }
.wp-block-button .wp-block-button__link:hover { background: #1C3B69; }
.wp-block-button.tr-primary .wp-block-button__link { background: var(--sky); color: #0B1A30; }
.wp-block-button.tr-primary .wp-block-button__link:hover { background: color-mix(in srgb, var(--sky) 85%, #fff); }
.wp-block-button.tr-ghost .wp-block-button__link { background: transparent; border-color: currentColor; color: var(--navy); }
.wp-block-button.tr-ghost .wp-block-button__link:hover { background: var(--surface-2); }
.tr-hero .wp-block-button.tr-ghost .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.55); }
.tr-hero .wp-block-button.tr-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.1); }

/* diensten */
.tr-services { gap: 2rem 2.5rem !important; flex-wrap: wrap !important; }
.tr-services > .wp-block-column { flex: 1 1 220px !important; min-width: 0; }
.tr-services h3 { padding-bottom: .7rem; border-bottom: 2px solid var(--navy); margin-bottom: .4rem; display: flex; gap: .55rem; align-items: center; }
.tr-services h3::before { content: ""; width: .7rem; height: .7rem; border-radius: 3px; background: var(--sky); flex-shrink: 0; }
.tr-services ul { list-style: none; margin: 0; padding: 0; }
.tr-services li { padding: .65rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); line-height: 1.45; }
.tr-services li strong { display: block; color: var(--ink); font-size: var(--step-0); margin-bottom: .1rem; }

.tr-audience { gap: 1rem !important; margin-top: 1.5rem !important; }
.tr-audience > .wp-block-column { padding: 1.25rem 1.4rem; border-radius: var(--r-md); background: var(--surface-2); }
.tr-audience h3 { margin-bottom: .4rem; }
.tr-audience p { color: var(--muted); }

/* banden */
.tr-band { background: var(--surface-2); border-radius: var(--r-md); padding: clamp(1.5rem, 4vw, 2.5rem) !important; gap: 1rem 2rem !important; align-items: center !important; }
.tr-band p { color: var(--muted); max-width: 60ch; margin-top: .5rem; }
.tr-band .wp-block-buttons { justify-content: flex-start; }
.tr-band > .wp-block-column:last-child { flex-basis: auto !important; flex-grow: 0 !important; }
@media (max-width: 781px) { .tr-band > .wp-block-column:last-child { flex-basis: 100% !important; } }

/* partners */
.tr-partners { gap: 0 !important; border-top: 2px solid var(--navy); margin-top: 1rem !important; }
.tr-partners > .wp-block-column { padding: 1.4rem 1.5rem 1.4rem 0; border-bottom: 1px solid var(--line); }
.tr-partners > .wp-block-column + .wp-block-column { padding-left: 1.5rem; border-left: 1px solid var(--line); }
@media (max-width: 781px) { .tr-partners > .wp-block-column + .wp-block-column { padding-left: 0; border-left: 0; } }
.tr-partners h3 { font-size: var(--step-2); margin: .35rem 0 .45rem; }
.tr-partners p { color: var(--muted); }
.tr-partners p.tr-for { font-size: var(--step--1); }
.tr-partners a { font-weight: 700; }

.tr-two { gap: clamp(1.5rem, 4vw, 3rem) !important; }
.tr-two > .wp-block-column { min-width: 0; }
.tr-two h2, .tr-two h3 { margin-bottom: .8rem; }
.tr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.25rem, 3vw, 2rem) !important; }
.tr-card + .tr-card { margin-top: 1rem; }

/* gewone tekst in pagina's */
.entry h2:not([class]) { margin-top: 2.25rem; }
.entry p:not([class]) + p:not([class]) { margin-top: .9em; }
.entry > p, .entry > ul, .entry > ol { max-width: calc(66ch + 2 * var(--gutter)); margin-inline: auto; }

/* single-sjablonen */
.tr-single { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
@media (max-width: 860px) { .tr-single { grid-template-columns: minmax(0, 1fr); } }
.tr-single .content > * + * { margin-top: 1rem; }

.site-header .custom-logo { width: 40px; height: 40px; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav .current-menu-item > a, .nav .current_page_item > a { color: var(--link); box-shadow: inset 0 -3px 0 var(--sky); border-radius: 0; }
@media (max-width: 860px) { .nav ul { flex-direction: column; } .nav .current-menu-item > a { box-shadow: inset 3px 0 0 var(--sky); } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.wp-block-image img { border-radius: var(--r-md); }
.entry > .tr-tight:last-child { padding-bottom: clamp(3rem, 7vw, 5rem); }
[hidden] { display: none !important; }
.tr-pagehead { display: flex; flex-direction: column; gap: .9rem; }
.tr-pagehead > * { margin: 0; }
.entry > :not(.tr-section) + .tr-section.tr-tight { margin-top: clamp(2.5rem, 6vw, 4rem); }
.entry > .tr-section + .tr-section.tr-tight { padding-top: clamp(2.5rem, 6vw, 4rem); }
.tr-card > .wp-block-heading:first-child { margin-top: 0; }

.field .choice { font-weight: 400; }
.tabs .choice { font-weight: 700; }
.hours td .appt { display: block; font-size: .85rem; }
.tr-card > * + * { margin-top: .8rem; }

/* afspraakdagen: tekst in het gestippelde vak */
.week-bar.appt { justify-content: center; padding-inline: .2rem; font-size: .72rem; }
@media (max-width: 460px) { .week-bar.appt { font-size: .6rem; padding-inline: .1rem; } }
/* (oud) label links van het tijdvak */
.week-appt-label { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding-right: .45rem; font-size: .75rem; font-weight: 700; color: var(--link); white-space: nowrap; font-variant-numeric: tabular-nums; z-index: 1; }

/* dienstenkoppen altijd op één lijn */
.tr-services h3 { white-space: nowrap; font-size: clamp(1.05rem, .9rem + .5vw, 1.25rem); }

/* ---------- zaalverhuur ---------- */
.zaal { display: grid; gap: 1.25rem; }
.zaal-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 760px) { .zaal-info { grid-template-columns: minmax(0, 1fr); } }
.zaal h3 { margin-bottom: .6rem; }
.zaal-list, .zaal-prices { list-style: none; margin: 0 0 .6rem; padding: 0; }
.zaal-list li, .zaal-prices li { padding: .45rem 0 .45rem 1.4rem; border-bottom: 1px solid var(--line); position: relative; }
.zaal-list li::before { content: ""; position: absolute; left: 0; top: .9rem; width: .6rem; height: .6rem; border-radius: 3px; background: var(--sky); }
.zaal-prices li { padding-left: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.zaal-cal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.zaal-cal-nav { display: flex; align-items: center; gap: .6rem; }
.zaal-cal-nav strong { min-width: 9.5rem; text-align: center; text-transform: capitalize; }
.zaal-cal-nav .chip[disabled] { opacity: .35; cursor: default; }
.zaal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.zg-h { font-size: .78rem; color: var(--muted); text-align: center; font-weight: 700; padding-bottom: .2rem; }
.zg-d { min-height: 4.4rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; text-align: left; padding: .3rem; display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.zg-d:hover:not([disabled]) { border-color: var(--sky); }
.zg-d.past { opacity: .4; cursor: default; }
.zg-d.today { box-shadow: inset 0 0 0 2px var(--sky); }
.zg-n { font-size: .8rem; font-weight: 700; }
.zg-c { font-size: .68rem; font-weight: 700; border-radius: 4px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.zg-c.b { background: #132B50; color: #fff; }
.zg-c.o { border: 1.5px dashed var(--sky); color: var(--link); }
@media (max-width: 560px) { .zg-d { min-height: 3.4rem; padding: .2rem; } .zg-c { font-size: .58rem; padding: 0 2px; } }
.lg.zl-free { background: var(--bg); border: 1px solid var(--line); }
.lg.zl-busy { background: #132B50; }
.lg.zl-option { border: 2px dashed var(--sky); }
.zaal-est { font-weight: 700; color: var(--navy); margin: 0; min-height: 1.4em; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 600px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
