/* =========================================================
   Laag-Soeren — hoofdstijl
   Kleuren ontleend aan de dorpsvlag:
   donkergroen #01572A  ·  lentegroen #8BC04E
   ========================================================= */
:root {
  --forest: #01572A;
  --forest-deep: #013d1d;
  --spring: #8BC04E;
  --spring-soft: #c5dea0;
  --ink: #0f2418;
  --paper: #f7f5ec;
  --paper-2: #efece0;
  --card: #ffffff;
  --line: #ddd9c9;
  --muted: #5c6b5c;
  --shadow: 0 1px 2px rgba(1,61,29,.05), 0 12px 30px -18px rgba(1,61,29,.35);
  --radius: 14px;
  --maxw: 1140px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--forest-deep); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }

.container { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--forest); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }

.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 600; color: var(--forest); margin: 0 0 .4rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.empty { color: var(--muted); font-style: italic; padding: 2rem 0; }

.btn {
  display: inline-block; background: var(--forest); color: #fff;
  padding: .8rem 1.6rem; border-radius: 999px; font-weight: 600;
  border: none; cursor: pointer; font-family: var(--sans); font-size: 1rem;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: var(--forest-deep); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,236,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); }
.brand-flag { width: 52px; height: 35px; object-fit: cover; border-radius: 5px; box-shadow: var(--shadow); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.brand-text small { color: var(--muted); font-size: .78rem; letter-spacing: .03em; }

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.primary-nav > ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: block; padding: .55rem .8rem; border-radius: 8px; font-weight: 500;
  color: var(--ink); transition: background .15s, color .15s;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > a[aria-current] { background: var(--spring); color: var(--forest-deep); }

.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: .35em; opacity: .6; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); list-style: none; margin: 0; padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: .5rem .7rem; border-radius: 7px; color: var(--ink); }
.submenu a:hover { background: var(--paper-2); }

.search { display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; transition: background .18s ease, box-shadow .18s ease; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(139,192,78,.28); }
.search input[type=search] { border: none; outline: none; padding: .5rem .9rem; background: transparent; font: inherit; width: 160px; min-width: 0; transition: width .22s ease, opacity .18s ease, padding .22s ease; }
.js .search:not(.open) input[type=search] { width: 0; padding-left: 0; padding-right: 0; opacity: 0; pointer-events: none; }
.search button { border: none; background: transparent; padding: .45rem .7rem; cursor: pointer; color: var(--forest); display: flex; align-items: center; justify-content: center; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(320px, 38vh, 400px); overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide-picture, .hero-slide-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide-picture { display: block; }
.hero-slide-image { max-width: none; object-fit: cover; object-position: center; }
.hero-fallback { background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 50%, #0a4d24 100%); opacity: 1; }
.hero-overlay { position: relative; z-index: 1; min-height: inherit; display: flex; align-items: center; background: linear-gradient(90deg, rgba(1,46,22,.20) 0%, rgba(1,46,22,.08) 48%, rgba(1,46,22,.02) 100%); }
.hero-content { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; padding-block: clamp(1.5rem, 4vh, 2.4rem); }
.hero-text-panel { max-width: 660px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2rem); backdrop-filter: blur(3px); }
.hero-content .eyebrow { color: var(--forest); margin: 0 0 .45rem; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 .6rem; color: var(--ink); font-weight: 600; }
.hero-intro { color: #2c3a2c; font-size: 1.04rem; line-height: 1.65; }
.hero-intro p { margin: 0 0 .75rem; }
.hero-intro p:last-child { margin-bottom: 0; }
.hero-intro a { text-decoration: underline; }
.hero-dots { position: absolute; z-index: 2; bottom: 1.4rem; right: clamp(1.5rem, 5vw, 4rem); display: flex; gap: .5rem; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.hero-dots button.is-active { background: #fff; width: 26px; border-radius: 999px; }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--forest); padding-bottom: .6rem; }
.section-head h2 { font-size: 1.7rem; margin: 0; }
.more { font-weight: 600; font-size: .95rem; white-space: nowrap; }

/* ---------- Home grid ---------- */
.home-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; padding: clamp(1.5rem, 3vw, 2.25rem) 0 3rem; align-items: start; }

.news-list { display: flex; flex-direction: column; gap: 1.2rem; }
.news-card { display: grid; grid-template-columns: 130px 1fr; gap: 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card .thumb { position: relative; overflow: hidden; background: var(--spring-soft); min-height: 162px; }
.news-card .news-body { padding: 1rem 1.1rem 1rem 0; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.news-card time { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.news-card strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .excerpt { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.agenda-col { background: var(--forest); border-radius: var(--radius); padding: 1.6rem; color: #fff; }
.agenda-col .section-head { border-color: rgba(255,255,255,.3); }
.agenda-col .section-head h2 { color: #fff; }
.agenda-col .more { color: var(--spring); }
.agenda-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.agenda-list li { border-bottom: 1px solid rgba(255,255,255,.14); }
.agenda-list li:last-child { border-bottom: none; }
.agenda-item { display: flex; gap: 1rem; padding: .9rem 0; color: #fff; border-radius: 10px; transition: background .15s ease, transform .15s ease; }
.agenda-item:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateX(2px); }
.agenda-item:focus-visible { outline: 2px solid var(--spring); outline-offset: 3px; }
.agenda-date { background: var(--spring); color: var(--forest-deep); border-radius: 10px; width: 52px; min-width: 52px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.agenda-date strong { font-family: var(--serif); font-size: 1.4rem; }
.agenda-date small { font-size: .68rem; text-transform: uppercase; }
.agenda-body { display: flex; flex-direction: column; }
.agenda-body strong { font-weight: 600; color: #fff; }
.agenda-body small { color: rgba(255,255,255,.72); font-size: .82rem; }

/* ---------- Company banner / marquee ---------- */
.company-banner { background: var(--paper-2); padding: 3rem 0; overflow: hidden; }
.banner-title { text-align: center; font-size: 1.4rem; margin: 0 0 1.5rem; color: var(--muted); font-weight: 500; }
.logo-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-row { display: flex; gap: 3rem; align-items: center; width: max-content; animation: marquee 35s linear infinite; }
.logo-track:hover .logo-row { animation-play-state: paused; }
.logo-item { display: flex; align-items: center; justify-content: center; height: 70px; filter: grayscale(1); opacity: .7; transition: .25s; }
.logo-item:hover { filter: none; opacity: 1; }
.logo-item img { max-height: 70px; width: auto; }
.logo-text { font-family: var(--serif); font-size: 1.3rem; color: var(--forest); white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Page heads ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 .6rem; }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.6rem; padding-bottom: 3rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--spring-soft); }
.responsive-picture, .media-picture { display: contents; }
.media-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.media-img.crop-contain { object-fit: contain; }
.media-img.crop-rect {
  inset: auto;
  left: var(--crop-left, 0);
  top: var(--crop-top, 0);
  width: var(--crop-width, 100%);
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: initial;
}

.card-body { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body time { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card-body h2, .card-body h3 { font-size: 1.35rem; margin: 0; }
.card-body p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-body .read { margin-top: auto; color: var(--forest); font-weight: 600; font-size: .9rem; }
.tag { align-self: flex-start; background: var(--spring); color: var(--forest-deep); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 999px; }
.group-head { font-size: 1.8rem; margin: 1rem 0 1.2rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.tabs a { padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 500; }
.tabs a.is-active, .tabs a:hover { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ---------- Subpagina navigatie ---------- */
.subpage-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.7rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.subpage-nav a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .94rem; }
.subpage-nav a.is-active, .subpage-nav a:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.subpage-title { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 1rem; }

/* ---------- Article ---------- */
.article { max-width: 760px; padding: 2rem 0 4rem; }
.back { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; }
.article-head { margin-bottom: 1.5rem; }
.article-head time { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .4rem 0; }
.article-hero { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; }
.article-hero img { width: 100%; height: auto; object-fit: cover; max-height: 480px; }
.article-main-image { width: 100%; height: auto; }
.article-hero-crop { position: relative; aspect-ratio: 16 / 9; max-height: 480px; background: var(--spring-soft); }
.article-hero-crop .media-img { max-height: none; }

/* Rich text */
.rich { font-size: 1.08rem; color: #233223; }
.rich h2 { font-size: 1.8rem; margin: 2rem 0 .8rem; }
.rich h3 { font-size: 1.4rem; margin: 1.6rem 0 .6rem; }
.rich p { margin: 0 0 1.1rem; }
.rich a { text-decoration: underline; }
.rich a.button-link,
a.button-link {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  text-decoration: none;
  padding: .75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.25;
  margin: .2rem .2rem .7rem 0;
  transition: transform .15s ease, background .2s ease;
}
.rich a.button-link:hover,
a.button-link:hover {
  background: var(--forest-deep);
  color: #fff;
  transform: translateY(-1px);
}

.rich a.attachment-link,
a.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--forest);
  text-decoration: none;
  padding: .7rem .95rem;
  font-weight: 700;
  line-height: 1.25;
  margin: .15rem .2rem .75rem 0;
}
.rich a.attachment-link::before,
a.attachment-link::before {
  content: "↧";
  font-size: 1rem;
  line-height: 1;
}
.rich a.attachment-link:hover,
a.attachment-link:hover {
  border-color: var(--forest);
  background: #fff;
  color: var(--forest-deep);
}
.rich .attachment-meta {
  color: var(--muted);
  font-size: .92em;
}
.rich img { border-radius: 10px; margin: 1.2rem 0; }
.rich ul, .rich ol { padding-left: 1.4rem; margin: 0 0 1.1rem; }
.rich blockquote { border-left: 4px solid var(--spring); margin: 1.5rem 0; padding: .4rem 0 .4rem 1.3rem; font-style: italic; color: var(--muted); }
.rich table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; }
.rich th, .rich td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.rich th { background: var(--paper-2); }

/* ---------- Calendar ---------- */
.cal-layout { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(250px, .75fr); gap: 2rem; padding-bottom: 4rem; align-items: start; }
.cal-grid-wrap { min-width: 0; }
.cal-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-controls h2 { font-size: 1.5rem; margin: 0; text-transform: capitalize; }
.cal-controls button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.4rem; cursor: pointer; color: var(--forest); line-height: 1; }
.cal-controls button:hover { background: var(--forest); color: #fff; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.cal-dow { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: .4rem 0; }
.cal-cell { min-height: 96px; border-radius: 8px; padding: .42rem; font-size: .85rem; position: relative; background: var(--paper); border: 1px solid rgba(221,217,201,.75); display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.cal-cell.out { color: #9aa698; background: #f1eee3; }
.cal-cell.today { background: var(--spring-soft); font-weight: 700; }
.cal-cell.has-event { background: #f9faf5; color: var(--ink); border-color: rgba(1,87,42,.25); }
.cal-cell.has-event:hover { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.cal-day-number { font-weight: 700; line-height: 1; }
.cal-events { display: flex; flex-direction: column; gap: .22rem; min-width: 0; }
.cal-event-link,
.cal-event-more { display: block; width: 100%; border-radius: 6px; padding: .16rem .32rem; background: var(--forest); color: #fff; font-size: .73rem; line-height: 1.2; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event-link:hover,
.cal-event-link:focus-visible { background: var(--forest-deep); color: #fff; }
.cal-event-more { background: var(--paper-2); color: var(--muted); font-weight: 500; }

.cal-upcoming { min-width: 0; }
.cal-agenda h2 { font-size: 1.4rem; border-bottom: 2px solid var(--forest); padding-bottom: .5rem; margin: 0 0 1rem; }
.cal-agenda .muted-head { color: var(--muted); border-color: var(--line); }
.cal-past { grid-column: 1 / -1; margin-top: 1rem; }
.cal-past-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .8rem; align-items: start; }
.event-row { border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; background: var(--card); overflow: hidden; }
.event-row summary { display: flex; gap: 1rem; padding: 1rem; cursor: pointer; list-style: none; align-items: center; }
.event-row summary::-webkit-details-marker { display: none; }
.ev-date { background: var(--spring); color: var(--forest-deep); border-radius: 10px; width: 52px; min-width: 52px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ev-date strong { font-family: var(--serif); font-size: 1.4rem; }
.ev-date small { font-size: .68rem; text-transform: uppercase; }
.ev-head { display: flex; flex-direction: column; }
.ev-head strong { font-size: 1.1rem; }
.ev-head small { color: var(--muted); font-size: .85rem; }
.ev-detail { padding: 0 1rem 1.2rem; }
.ev-images { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ev-images img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }


@media (max-width: 900px) {
  .cal-layout { grid-template-columns: 1fr; }
  .cal-past { margin-top: 0; }
}
@media (max-width: 640px) {
  .cal-grid { gap: 3px; padding: 6px; }
  .cal-cell { min-height: 72px; padding: .3rem; font-size: .78rem; }
  .cal-event-link, .cal-event-more { font-size: .66rem; padding-inline: .22rem; }
}

/* ---------- Companies ---------- */
.company-grid { display: grid; gap: 1.4rem; padding-bottom: 4rem; }
.company { display: grid; grid-template-columns: 120px 1fr; gap: 1.6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; align-items: start; }
.company-logo { width: 120px; height: 120px; border-radius: 12px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
a.company-logo { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; border: 1px solid transparent; }
a.company-logo:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--spring); }
.company-logo img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.company-logo span { font-family: var(--serif); font-size: 2.6rem; color: var(--forest); }
.company-info h2 { font-size: 1.5rem; margin: 0 0 .4rem; }
.company-desc { color: #2c3a2c; margin: 0 0 1rem; }
.company-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .95rem; }
.company-meta li { display: grid; grid-template-columns: 90px 1fr; gap: .6rem; }
.company-meta span { color: var(--muted); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; padding-bottom: 4rem; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.contact-form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form textarea { font: inherit; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--spring); border-color: var(--spring); }
.contact-form .btn { align-self: flex-start; margin-top: .5rem; }
.field-error { color: #b3261e; font-weight: 500; font-size: .85rem; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; }
.notice-ok { background: var(--spring-soft); color: var(--forest-deep); }

/* ---------- Search ---------- */
.search-page { width: 100%; max-width: 560px; margin-top: 1rem; }
.search-page input { width: 100%; }
.result-count { color: var(--muted); margin-bottom: 1.5rem; }
.result-list { list-style: none; padding: 0; margin: 0 0 4rem; display: flex; flex-direction: column; gap: .8rem; }
.result-list a { display: flex; flex-direction: column; gap: .3rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; color: var(--ink); }
.result-list a:hover { box-shadow: var(--shadow); }
.result-list strong { font-family: var(--serif); font-size: 1.2rem; }
.result-list .snippet { color: var(--muted); font-size: .92rem; }
.notfound { text-align: center; padding: 5rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(255,255,255,.82); margin-top: 3rem; }
.footer-inner { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 2.5rem; padding: 3.5rem 0; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-flag { width: 56px; height: 38px; border-radius: 5px; }
.footer-brand strong { color: #fff; font-family: var(--serif); font-size: 1.2rem; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { color: rgba(255,255,255,.82); }
.footer-nav a:hover { color: var(--spring); }
.colofon h2 { color: #fff; font-size: 1.2rem; margin: 0 0 .6rem; }
.colofon-body { font-size: .92rem; }
.colofon-body a { color: var(--spring); }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); }
.footer-base { display: flex; justify-content: space-between; width: min(100% - 3rem, var(--maxw)); margin-inline: auto; padding: 1.2rem 0; font-size: .85rem; }
.footer-base a { color: rgba(255,255,255,.6); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .home-grid, .cal-layout, .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem 1.5rem 2rem;
    gap: 1rem; transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav > ul { flex-direction: column; gap: .2rem; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 1rem; }
  .search { align-self: flex-start; }
  .search.open { width: 100%; }
  .search.open input[type=search] { width: 100%; }
}
@media (max-width: 560px) {
  .hero { min-height: 460px; }
  .hero-content { width: min(100% - 2rem, var(--maxw)); }
  .hero-text-panel { padding: 1.15rem; }
  .hero-content h1 { font-size: clamp(2rem, 13vw, 3rem); }
  .hero-intro { font-size: .98rem; }
  .news-card { grid-template-columns: 1fr; }
  .news-card .thumb { min-height: 160px; }
  /* De homepage gebruikt op desktop een staande 4:5-crop, terwijl de kaart op
     mobiel breed wordt. Gebruik daar dezelfde gekozen focus, maar laat de
     afbeelding responsief coveren in plaats van de desktop-uitsnede te forceren. */
  .news-card .thumb .media-img.crop-rect {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: var(--crop-position, center);
  }
  .company { grid-template-columns: 1fr; }
  .company-logo { width: 90px; height: 90px; }
}

/* Imported WordPress news galleries */
.import-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 1.5rem 0;
}
.import-gallery img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.wp-caption {
  margin: 1.5rem 0;
}
.wp-caption img {
  max-width: 100%;
  height: auto;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0 0 3.5rem;
}
.pagination-status {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: .25rem;
}
.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
}
.pagination-link,
.pagination-ellipsis {
  min-width: 2.45rem;
  min-height: 2.45rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--forest);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination-prev,
.pagination-next { padding-inline: 1rem; }
.pagination-link:hover,
.pagination-link.is-current {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.pagination-link.is-disabled {
  opacity: .45;
  pointer-events: none;
}
.pagination-ellipsis {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

/* ---------- Inline contact forms in rich text ---------- */
.inline-contact-form-wrap {
  margin: 2rem 0;
}
.rich .inline-contact-form-wrap h2 {
  margin-top: 0;
}
.inline-contact-form {
  margin-top: .8rem;
}
.rich .inline-contact-form p {
  margin: 0;
}


/* Rich text content: image sizing and alignment */
.rich img {
  max-width: min(100%, 800px);
  height: auto;
}
.rich .alignleft,
.rich img.alignleft {
  float: left;
  margin: .35rem 1.25rem .85rem 0;
}
.rich .alignright,
.rich img.alignright {
  float: right;
  margin: .35rem 0 .85rem 1.25rem;
}
.rich .aligncenter,
.rich img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.rich .alignnone,
.rich img.alignnone {
  display: inline-block;
}
.rich::after {
  content: "";
  display: table;
  clear: both;
}
@media (max-width: 640px) {
  .rich .alignleft,
  .rich img.alignleft,
  .rich .alignright,
  .rich img.alignright {
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}


/* Per-organization color themes */
.organization-theme {
  color: var(--theme-text, var(--ink));
}
.article.organization-theme {
  position: relative;
}
.article.organization-theme::before {
  content: "";
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-accent));
  margin: 0 0 1.4rem;
}
.organization-theme .back,
.organization-theme .rich a:not(.button-link) {
  color: var(--theme-primary);
}
.organization-theme .article-head h1,
.organization-theme .subpage-title,
.organization-theme .rich {
  color: var(--theme-text);
}
.organization-theme .tag {
  background: var(--theme-accent);
  color: var(--theme-primary-dark);
}
.organization-theme .subpage-nav {
  background: var(--theme-bg);
  border-color: var(--theme-accent-soft);
}
.organization-theme .subpage-nav a {
  border-color: var(--theme-accent-soft);
  color: var(--theme-primary-dark);
  background: rgba(255,255,255,.48);
}
.organization-theme .subpage-nav a.is-active,
.organization-theme .subpage-nav a:hover {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
}
.organization-theme .article-hero {
  border: 4px solid var(--theme-accent-soft);
  background: var(--theme-bg);
}
.organization-theme .rich a.button-link,
.organization-theme a.button-link {
  background: var(--theme-primary);
  color: #fff !important;
}
.organization-theme .rich a.button-link:hover,
.organization-theme a.button-link:hover {
  background: var(--theme-primary-dark);
  color: #fff !important;
}
.organization-theme .rich blockquote {
  border-left-color: var(--theme-accent);
}
.card.organization-theme {
  border-color: var(--theme-accent-soft);
}
.card.organization-theme:hover {
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 16px 36px -22px var(--theme-primary);
}
.card.organization-theme .read,
.card.organization-theme h3 {
  color: var(--theme-text);
}
