/* ==========================================================================
   Het Laantje – stylesheet
   Mobile first. Colours and sizes live in the custom properties below.
   ========================================================================== */

/* Fonts (self-hosted, no requests to Google) */
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/open-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url("/assets/fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url("/assets/fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("/assets/fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  --kleur-groen: #86c546;
  --kleur-groen-donker: #4e8221;     /* links/text on white (contrast AA) */
  --kleur-groen-hover: #63a223;
  --kleur-grijs: #5d676c;            /* logo grey, body text */
  --kleur-kop: #333333;
  --kleur-donker: #2b2b2b;
  --kleur-achtergrond: #ffffff;
  --kleur-vlak: #f6f7f8;
  --kleur-rand: #e4e7e9;

  --font-tekst: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-kop: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --breedte: 75rem;                  /* 1200px */
  --rand: 1rem;
  --ruimte: clamp(2.5rem, 6vw, 3.75rem);
  --radius: 4px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
ul[role="list"] { list-style: none; padding: 0; }

body {
  font-family: var(--font-tekst);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--kleur-grijs);
  background: var(--kleur-achtergrond);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-kop); color: var(--kleur-kop); line-height: 1.25; font-weight: 700; }
a { color: var(--kleur-groen-donker); text-underline-offset: .15em; }
a:hover { color: var(--kleur-groen-hover); }
:focus-visible { outline: 3px solid var(--kleur-groen); outline-offset: 2px; }

/* Helpers ---------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--rand), var(--breedte)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--rand); top: -10rem; z-index: 100; padding: .75rem 1rem; background: var(--kleur-donker); color: #fff; }
.skip-link:focus { top: var(--rand); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.knop {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2.2rem; border: 0; border-radius: 30px;
  background: var(--kleur-groen); color: #fff;
  font: 500 1.0625rem/1 var(--font-kop); text-decoration: none;
  transition: background-color .2s;
}
.knop:hover, .knop:focus-visible { background: var(--kleur-donker); color: #fff; }
.knop--wit { background: #fff; color: var(--kleur-groen-donker); }

/* Header ----------------------------------------------------------------- */
.topbar { background: var(--kleur-groen); color: #fff; font-size: .875rem; }
.topbar__lijst { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; padding-block: .5rem; list-style: none; padding-inline: 0; }
.topbar__lijst li { display: flex; align-items: center; gap: .6rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: inherit; }
@media (max-width: 47.99em) { .topbar__lijst li:nth-child(n+3) { display: none; } }

.site-header { background: #fff; box-shadow: 0 1px 0 var(--kleur-rand); position: relative; z-index: 10; }
.site-header__balk { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.site-header__logo img { width: 130px; height: auto; }

.menu-knop {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .75rem;
  border: 1px solid var(--kleur-rand); border-radius: var(--radius); background: #fff;
  font: 500 1rem var(--font-kop); color: var(--kleur-kop); cursor: pointer;
}
.hoofdnavigatie { flex-basis: 100%; }
.js .hoofdnavigatie:not(.is-open) { display: none; }
.hoofdnavigatie__lijst { list-style: none; padding: 0; }
.hoofdnavigatie a {
  display: block; padding: .7rem 0; border-top: 1px solid var(--kleur-rand);
  font: 500 1rem var(--font-kop); color: var(--kleur-kop); text-decoration: none;
}
.hoofdnavigatie a:hover, .hoofdnavigatie a[aria-current="page"] { color: var(--kleur-groen-donker); }
.site-header__balk { flex-wrap: wrap; }

@media (min-width: 64em) {
  .site-header__balk { flex-wrap: nowrap; padding-block: 1.25rem; }
  .site-header__logo img { width: 170px; }
  .menu-knop { display: none; }
  .hoofdnavigatie, .js .hoofdnavigatie:not(.is-open) { display: flex; flex-basis: auto; flex-grow: 1; justify-content: space-between; align-items: center; margin-left: 3rem; }
  .hoofdnavigatie__lijst { display: flex; gap: 1.75rem; }
  .hoofdnavigatie a { border: 0; padding: .5rem 0; font-size: .95rem; position: relative; }
  .hoofdnavigatie a[aria-current="page"]::after, .hoofdnavigatie a:hover::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--kleur-groen);
  }
  .hoofdnavigatie__lijst--secundair a { color: var(--kleur-grijs); }
}

/* Notice ----------------------------------------------------------------- */
.melding { background: #fff8e1; border-bottom: 1px solid #f0d68a; color: var(--kleur-kop); }
.melding__inhoud { padding-block: .75rem; }

/* Hero (home) ------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--kleur-donker); }
.hero__dia { position: relative; min-height: clamp(22rem, 45vw, 33rem); display: grid; align-items: center; }
.hero__dia[hidden] { display: none; }
.hero__achtergrond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero__dia::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(0 0 0 / .55), rgb(0 0 0 / .15) 70%); }
.hero__tekst { padding-block: 3rem 5rem; }
.hero__titel { color: #fff; font-size: clamp(2.5rem, 6vw, 4.375rem); line-height: 1.05; margin-bottom: 1rem; }
.hero__ondertitel { font: 400 clamp(1.125rem, 2vw, 1.375rem)/1.45 var(--font-kop); margin-bottom: 2rem; max-width: 34rem; }
.hero__bediening { position: absolute; left: 0; right: 0; bottom: 1.25rem; display: flex; gap: .5rem; }
.hero__bediening button { background: none; border: 0; padding: 0; color: #fff; cursor: pointer; opacity: .9; }
.hero__bediening button:hover { opacity: 1; }
.hero__bediening .icon { width: 2.5rem; height: 2.5rem; stroke-width: 1.2; }
.js .hero__dia.is-actief { animation: vervagen .8s ease; }
@keyframes vervagen { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .js .hero__dia.is-actief { animation: none; } }

/* Info blocks ------------------------------------------------------------ */
.blokken { display: grid; gap: 1.5rem; list-style: none; padding: 0; }
@media (min-width: 48em) { .blokken { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); } }
.blok { padding: 2rem; background: var(--kleur-vlak); border-radius: var(--radius); text-align: center; }
.blok__icoon { width: 3rem; height: 3rem; margin: 0 auto 1rem; color: var(--kleur-groen); stroke-width: 1.2; }
.blok__titel { font-size: 1.375rem; margin-bottom: .75rem; }
.blok__tekst > * + * { margin-top: .6rem; }
.blok__tekst ul { text-align: left; display: inline-block; }

.home__blokken { margin-top: 1.5rem; position: relative; z-index: 2; }
@media (min-width: 48em) { .home__blokken { margin-top: -2.5rem; } .hero__tekst { padding-bottom: 6rem; } .hero__bediening { bottom: 3.5rem; } }
.home__blokken .blok { background: var(--kleur-groen); color: #fff; }
.home__blokken .blok:nth-child(2) { background: var(--kleur-groen-hover); }
.home__blokken .blok:nth-child(3) { background: var(--kleur-groen-donker); }
.home__blokken .blok__titel, .home__blokken .blok__icoon, .home__blokken a { color: #fff; }

/* Call to action --------------------------------------------------------- */
.oproep {
  display: grid; justify-items: center; gap: 1rem; text-align: center;
  margin-block: var(--ruimte); padding: 2.5rem 1.5rem; border: 1px solid var(--kleur-rand); border-radius: var(--radius);
}
.oproep__icoon { width: 3rem; height: 3rem; color: var(--kleur-groen); stroke-width: 1.2; }
.oproep__titel { font-size: 1.5rem; }
@media (min-width: 48em) {
  .oproep { grid-template-columns: auto 1fr auto; text-align: left; padding: 2rem 2.5rem; }
}

/* Team ------------------------------------------------------------------- */
.sectie-titel { font-size: 1.875rem; margin-bottom: 1.5rem; }
.team { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.teamlid { text-align: center; }
.teamlid__foto { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; max-width: 16rem; margin-inline: auto; }
.teamlid__functie { font-style: italic; color: var(--kleur-groen-donker); order: -1; }
.teamlid article { display: flex; flex-direction: column; }
.teamlid__naam { font-size: 1.25rem; margin-bottom: .25rem; }
.teamlid__foto { order: -2; }
.teamlid__werkdagen, .teamlid__big { font-size: .9375rem; }

.home__team { margin-bottom: var(--ruimte); }
.home__team .team { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
@media (min-width: 64em) {
  .home__team { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1.5rem; align-items: start; }
  .home__team > .sectie-titel { grid-column: 1 / -1; }
  .home__team .team { grid-column: span 2; grid-template-columns: 1fr 1fr; }
  .home__team-cta { grid-column: span 2; padding-left: 2rem; }
}
.home__team-cta { margin-top: 2rem; }
.home__team-cta p { margin-bottom: 1.5rem; }

/* Sub pages -------------------------------------------------------------- */
.paginakop { background: var(--kleur-vlak); padding-block: 2.5rem; margin-bottom: var(--ruimte); }
.paginakop__titel { font-size: clamp(1.875rem, 4vw, 2.5rem); }
.kruimelpad ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; font-size: .875rem; margin-top: .5rem; }
.kruimelpad li + li::before { content: "›"; margin-inline: .5rem; }

.pagina__inhoud { display: grid; gap: 2.5rem; margin-bottom: var(--ruimte); }
.pagina__banner { width: 100%; border-radius: var(--radius); }
.pagina__iframe { width: 100%; min-height: 600px; border: 0; }

.prose { max-width: 50rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .25rem; }

.galerij { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; list-style: none; padding: 0; }
@media (min-width: 48em) { .galerij { grid-template-columns: repeat(4, 1fr); } }
.galerij img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); transition: opacity .2s; }
.galerij a:hover img { opacity: .85; }

/* Contact ---------------------------------------------------------------- */
.contact { display: grid; gap: 2.5rem; margin-bottom: var(--ruimte); }
.contact__kaart { background: var(--kleur-vlak); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); }
.contact__kaart > * + * { margin-top: 1rem; }
.contact__kaart h2 { font-size: 1.5rem; }
.contact address { font-style: normal; }
.contact__gegevens { margin-top: 1rem; }
.contact__gegevens div { display: flex; gap: .35rem; }
.contact__gegevens dt { font-weight: 600; color: var(--kleur-kop); }
.contact__kaartje img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--kleur-rand); }
@media (max-width: 47.99em) { .contact__kaartje img { aspect-ratio: 4 / 3; } }
.contact__kaartje figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-top: .75rem; }
.contact__kaartje figcaption > a { display: inline-flex; align-items: center; gap: .4rem; }
.contact__bron { font-size: .75rem; }

.bericht__datum { color: var(--kleur-grijs); font-size: .875rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--kleur-donker); color: #c5cacd; font-size: .9375rem; position: relative; }
.site-footer__inhoud { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.75rem; }
.site-footer__menu { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--kleur-groen); }
.naar-boven {
  position: fixed; right: 1rem; bottom: 1rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  background: var(--kleur-groen); color: #fff !important; border-radius: 50%; font-size: 1.25rem; box-shadow: 0 2px 8px rgb(0 0 0 / .2);
}

@media print {
  .topbar, .menu-knop, .hoofdnavigatie, .hero__bediening, .naar-boven, .contact__kaartje { display: none !important; }
}

/* News feed -------------------------------------------------------------- */
.nieuwsfeed { list-style: none; padding: 0; display: grid; gap: 2rem; max-width: 56rem; }
.nieuwsfeed__item { display: grid; gap: 1rem 1.75rem; padding-bottom: 2rem; border-bottom: 1px solid var(--kleur-rand); }
.nieuwsfeed__foto { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.nieuwsfeed__titel { font-size: 1.375rem; margin: 0; }
.nieuwsfeed__titel a { color: var(--kleur-kop); text-decoration: none; }
.nieuwsfeed__titel a:hover { color: var(--kleur-groen-donker); }
.nieuwsfeed__tekst > * + * { margin-top: .5rem; }
.nieuwsfeed__lees-verder { display: inline-block; font-weight: 600; text-decoration: none; }
@media (min-width: 48em) {
  .nieuwsfeed__item { grid-template-columns: 16rem 1fr; align-items: start; }
  .nieuwsfeed__item:not(:has(.nieuwsfeed__foto)) { grid-template-columns: 1fr; }
}
.bericht__foto img { width: 100%; max-width: 50rem; border-radius: var(--radius); }
.prose img:not([class]) { border-radius: var(--radius); margin-block: 1rem; }
