/* sbweb.be – 2026 */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900; font-style: italic; font-display: swap;
}

:root {
  --lagune: #00afd1;      /* merk-kleur van de oude site */
  --lagune-zacht: #c9eef6;
  --diep: #006a82;        /* links en knoppen, AA-contrast op wit */
  --inkt: #17262e;
  --grijs: #5b6c74;
  --mist: #eef6f8;
  --lijn: #d8e6ea;
  --zon: #f2b01e;         /* wettelijke feestdag */
  --papier: #fff;

  --kop: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --tekst: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 10px;
  --breed: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--papier); color: var(--inkt);
  font: 400 1.0625rem/1.6 var(--tekst);
  font-feature-settings: "ss01";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--diep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--inkt); }
:focus-visible { outline: 3px solid var(--lagune); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--kop); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--breed); margin: 0 auto; padding: 0 1.25rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--inkt); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }

/* ---------- Kop ---------- */
.kop { border-bottom: 1px solid var(--lijn); background: var(--papier); }
.kop-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--inkt); }
.logo-blad {
  width: 42px; height: 46px; border-radius: 7px; background: var(--papier);
  border: 2px solid var(--inkt); display: grid; grid-template-rows: 12px 1fr; overflow: hidden;
}
.logo-blad::before { content: ""; background: var(--lagune); border-bottom: 2px solid var(--inkt); }
.logo-blad span { display: grid; place-items: center; font: 800 1.1rem/1 var(--kop); }
.logo-tekst { display: flex; flex-direction: column; line-height: 1.1; }
.logo-tekst strong { font: 700 1.3rem/1.1 var(--kop); }
.logo-tekst small { color: var(--grijs); font-size: .85rem; }
.menu { display: flex; gap: .25rem; flex-wrap: wrap; }
.menu a { padding: .45rem .8rem; border-radius: 999px; text-decoration: none; color: var(--inkt); font-weight: 600; }
.menu a:hover { background: var(--mist); }
.menu a[aria-current="page"] { background: var(--inkt); color: #fff; }

/* ---------- Held (jaar + jaarbalk) ---------- */
.held { background: var(--mist); border-bottom: 1px solid var(--lijn); padding: 2rem 0 2.25rem; }
.jaarkiezer { display: flex; align-items: center; gap: 1.25rem; margin-bottom: .25rem; }
.jaar-huidig { font: 800 clamp(4.5rem, 14vw, 8.5rem)/.9 var(--kop); letter-spacing: -.04em; color: var(--inkt); }
.jaar-nav {
  font: 600 1.05rem/1 var(--kop); text-decoration: none; color: var(--diep);
  border: 1.5px solid currentColor; border-radius: 999px; padding: .45rem .85rem;
}
.jaar-nav:hover { background: var(--diep); color: #fff; }
.held h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: .6rem 0 .25rem; }
.held-sub { color: var(--grijs); margin-bottom: 1rem; }
.volgende {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem;
  background: var(--papier); border: 1px solid var(--lijn); border-radius: 999px; padding: .45rem .5rem .45rem 1rem;
}
.volgende-dagen { background: var(--zon); color: var(--inkt); font-weight: 700; border-radius: 999px; padding: .15rem .7rem; }

.jaarbalk { margin: 1.75rem 0 0; }
.jb-baan {
  position: relative; height: 76px; background: var(--papier);
  border: 1px solid var(--lijn); border-radius: var(--r); overflow: hidden;
}
.jb-maand {
  position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--lijn);
  font-size: .78rem; color: var(--grijs); padding: .3rem 0 0 .35rem; font-weight: 600;
}
.jb-maand:first-child { border-left: 0; }
.jb-maand .kort { display: none; }
.jb-vak { position: absolute; bottom: 10px; height: 22px; background: var(--lagune); border-radius: 4px; opacity: .9; }
.jb-feest {
  position: absolute; bottom: 40px; width: 11px; height: 11px; margin-left: -5.5px;
  background: var(--zon); border: 2px solid var(--inkt); border-radius: 50%;
}
.jb-feest.is-weekend { background: var(--papier); }
.jb-vandaag { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--inkt); }
.jb-legende { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .6rem; font-size: .88rem; color: var(--grijs); }
.jb-legende i { display: inline-block; vertical-align: -1px; margin-right: .4rem; }
.lg-vak { width: 18px; height: 10px; background: var(--lagune); border-radius: 2px; }
.lg-feest, .lg-weekend { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--inkt); background: var(--zon); }
.lg-weekend { background: var(--papier); }
.lg-vandaag { width: 2px; height: 12px; background: var(--inkt); }

/* ---------- Twee kolommen ---------- */
.twee-kol { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding-top: 2.25rem; padding-bottom: 3.5rem; }
.blok { margin-bottom: 2.75rem; }
.noot { color: var(--grijs); font-size: .95rem; max-width: 70ch; }

/* ---------- Feestdagen ---------- */
.feestlijst { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.feest {
  display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem .7rem .7rem;
  border: 1px solid var(--lijn); border-radius: var(--r); background: var(--papier);
}
.blad {
  flex: none; width: 54px; border: 2px solid var(--inkt); border-radius: 8px; overflow: hidden;
  text-align: center; background: var(--papier);
}
.blad-maand { display: block; background: var(--zon); border-bottom: 2px solid var(--inkt); font: 700 .72rem/1.5 var(--tekst); text-transform: lowercase; }
.blad-dag { display: block; font: 800 1.55rem/1.35 var(--kop); }
.feest-tekst { display: flex; flex-direction: column; min-width: 0; }
.feest-naam { font-weight: 700; }
.feest-dag { color: var(--grijs); font-size: .92rem; }
.feest .label { margin-left: auto; }
.feest.is-weekend .blad-maand { background: var(--papier); }
.feest.is-info { background: var(--mist); border-style: dashed; }
.feest.is-info .blad-maand { background: var(--lagune-zacht); }
.is-voorbij { opacity: .55; }
.label { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .1rem .55rem; background: var(--mist); color: var(--grijs); white-space: nowrap; }
.label-weekend { background: var(--inkt); color: #fff; }

/* ---------- Schoolvakanties ---------- */
.vaklijst { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--lijn); }
.vak { display: grid; grid-template-columns: 11rem 1fr auto; gap: .25rem 1rem; align-items: baseline; padding: .85rem 0 .85rem 1rem; border-bottom: 1px solid var(--lijn); position: relative; }
.vak::before { content: ""; position: absolute; left: 0; top: .9rem; bottom: .9rem; width: 4px; border-radius: 2px; background: var(--lagune); }
.vak-naam { font-weight: 700; }
.vak-duur { color: var(--grijs); font-size: .92rem; white-space: nowrap; }

/* ---------- Agenda ---------- */
.agenda { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; border-radius: var(--r); background: var(--inkt); color: #fff; }
.agenda h2 { font-size: 1.25rem; margin-bottom: .2rem; }
.agenda p { margin: 0; color: #c3d3d9; }
.agenda .knop { background: var(--lagune); color: var(--inkt); }
.agenda .knop:hover { background: #fff; }

.knop {
  display: inline-block; background: var(--diep); color: #fff; text-decoration: none; font-weight: 700;
  border: 0; border-radius: 999px; padding: .65rem 1.2rem; cursor: pointer; font-family: var(--tekst); font-size: 1rem;
}
.knop:hover { background: var(--inkt); color: #fff; }

/* ---------- Kaartjes (blog) ---------- */
.kaartjes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.kaartjes a { display: block; text-decoration: none; color: var(--inkt); font-weight: 700; line-height: 1.3; }
.kaartjes img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border-radius: var(--r); margin-bottom: .55rem; }
.kaartjes a:hover span { text-decoration: underline; }

/* ---------- Zijbalk ---------- */
.zij-blok { margin-bottom: 2rem; }
.zij-blok h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.jaarlinks, .partners { list-style: none; margin: 0; padding: 0; }
.jaarlinks li { border-bottom: 1px solid var(--lijn); }
.jaarlinks a { display: block; padding: .45rem 0; text-decoration: none; font-weight: 600; }
.jaarlinks a:hover { text-decoration: underline; }
.partners { display: grid; gap: .6rem; }
.partners img { border: 1px solid var(--lijn); border-radius: var(--r); background: #fff; }
.adverteren { background: var(--mist); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.adverteren p { font-size: .95rem; }
.adverteren .knop { font-size: .9rem; padding: .5rem 1rem; overflow-wrap: anywhere; }
.pixel { position: absolute; width: 1px; height: 1px; }

/* ---------- Paginakop ---------- */
.paginakop { background: var(--mist); border-bottom: 1px solid var(--lijn); padding: 2.25rem 0 1.75rem; }
.paginakop p { color: var(--grijs); }
.tagwolk { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tagwolk a { text-decoration: none; border: 1px solid var(--lijn); background: var(--papier); color: var(--inkt); border-radius: 999px; padding: .25rem .8rem; font-size: .9rem; font-weight: 600; }
.tagwolk a[aria-current="page"] { background: var(--inkt); border-color: var(--inkt); color: #fff; }

/* ---------- Bloglijst ---------- */
.bloglijst { list-style: none; margin: 0; padding: 0; }
.post { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding: 0 0 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--lijn); }
.post-beeld img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--r); }
.post h2 { font-size: 1.35rem; margin-bottom: .3rem; }
.post h2 a { color: var(--inkt); text-decoration: none; }
.post h2 a:hover { text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--grijs); font-size: .9rem; margin-bottom: .6rem; align-items: center; }
.meta .tag { text-decoration: none; background: var(--mist); border-radius: 999px; padding: .05rem .6rem; color: var(--diep); font-weight: 600; }
.paginering { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }

/* ---------- Artikel ---------- */
.kruimel { font-size: .9rem; color: var(--grijs); margin-bottom: .75rem; }
.artikel h1 { max-width: 24ch; }
.artikel-beeld { width: 100%; border-radius: var(--r); margin: .5rem 0 1.75rem; }
.tekst { max-width: 70ch; }
.tekst h2 { font-size: 1.4rem; margin-top: 1.8em; }
.tekst h3 { margin-top: 1.5em; }
.tekst a { font-weight: 600; }
.tekst ul, .tekst ol { padding-left: 1.3rem; }
.tekst li { margin-bottom: .35em; }
.tekst img { border-radius: var(--r); margin: 1rem 0; }
.delen { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 2rem 0 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--lijn); }
.delen span { font-weight: 700; margin-right: .25rem; }
.delen a { text-decoration: none; border: 1px solid var(--lijn); border-radius: 999px; padding: .3rem .85rem; font-size: .92rem; font-weight: 600; }
.delen a:hover { border-color: var(--diep); }

/* ---------- Contact ---------- */
.contactlijst { display: grid; grid-template-columns: 8rem 1fr; gap: .6rem 1rem; margin: 0 0 2.5rem; font-size: 1.1rem; }
.contactlijst dt { font-weight: 700; }
.contactlijst dd { margin: 0; }

/* ---------- Voet ---------- */
.voet { background: var(--inkt); color: #c3d3d9; padding-top: 2.75rem; font-size: .95rem; }
.voet a { color: #fff; text-decoration: none; }
.voet a:hover { text-decoration: underline; }
.voet h2 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.voet ul { list-style: none; margin: 0; padding: 0; }
.voet li { margin-bottom: .35rem; }
.voet-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.voet-logo { font: 700 1.4rem/1 var(--kop); color: #fff; margin-bottom: .6rem; }
.voet-onder { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; padding-bottom: 1.25rem; }

/* ---------- Responsief ---------- */
@media (max-width: 960px) {
  .twee-kol { grid-template-columns: 1fr; gap: 1rem; }
  .zij { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1.5rem; }
  .voet-in { grid-template-columns: 1fr 1fr; }
  .voet-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .kop-in { padding-top: .6rem; padding-bottom: .6rem; }
  .menu { width: 100%; justify-content: space-between; }
  .menu a { padding: .4rem .6rem; }
  .jaarkiezer { gap: .6rem; flex-wrap: wrap; }
  .volgende { border-radius: var(--r); }
  .jb-maand { font-size: .72rem; padding-left: .2rem; }
  .jb-maand .lang { display: none; }
  .jb-maand .kort { display: inline; }
  .jb-feest { width: 9px; height: 9px; margin-left: -4.5px; border-width: 1.5px; }
  .feestlijst { gap: .5rem; }
  .feest { padding: .5rem .7rem .5rem .5rem; }
  .vak { grid-template-columns: 1fr auto; }
  .vak-periode { grid-column: 1 / -1; grid-row: 2; }
  .post { grid-template-columns: 1fr; gap: .75rem; }
  .post-beeld img { aspect-ratio: 16/9; }
  .contactlijst { grid-template-columns: 1fr; gap: .1rem; }
  .contactlijst dd { margin-bottom: .75rem; }
  .voet-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------- Beheer ---------- */
.beheer-main { padding-top: 2rem; padding-bottom: 4rem; }
.beheer-kop { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.beheer-tabel { width: 100%; border-collapse: collapse; }
.beheer-tabel th, .beheer-tabel td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--lijn); vertical-align: top; }
.beheer-tabel form { margin: 0; }
.link-knop { background: none; border: 0; color: #b42318; cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.melding { background: #e7f6ec; border: 1px solid #a6d8b5; padding: .7rem 1rem; border-radius: var(--r); }
.melding.is-fout { background: #fdecea; border-color: #f2b8b5; }
.login { max-width: 360px; display: grid; gap: 1rem; }
.beheer label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.beheer input:not([type=checkbox]), .beheer select, .beheer textarea {
  font: inherit; font-weight: 400; padding: .55rem .7rem; border: 1px solid #b9cbd1; border-radius: 8px; width: 100%; background: #fff;
}
.velden { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.velden .breed { grid-column: 1 / -1; }
.velden .prefix { font-weight: 400; color: var(--grijs); font-size: .85rem; }
.werkbalk { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.werkbalk button { font: 600 .9rem var(--tekst); border: 1px solid var(--lijn); background: var(--mist); border-radius: 6px; padding: .35rem .7rem; cursor: pointer; }
.editor-panelen { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.editor textarea { min-height: 520px; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; line-height: 1.5; }
.voorbeeld { border: 1px solid var(--lijn); border-radius: 8px; padding: 1rem 1.25rem; max-height: 620px; overflow: auto; }
.editor-acties { display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; margin-top: 1rem; }
.editor-acties .check { display: flex; gap: .5rem; align-items: center; margin-right: auto; font-weight: 400; }
@media (max-width: 800px) { .velden, .editor-panelen { grid-template-columns: 1fr; } }
