/* Eén kop en één voettekst voor elke pagina van leermeesterlijk.nl.
   De opmaak (HTML) komt uit tools/kader.py, zodat menu, logo en voettekst overal gelijk zijn.
   Staat los van de opmaak per pagina; laad dit bestand als laatste in de <head>.
   Huisstijl oktober 2026: petrol, groenpetrol en turkoois, letter Inter. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* Houd ruimte voor de scrollbalk vrij. Zonder dit schuift de hele pagina ongeveer
   vijftien pixels op zodra een pagina lang genoeg is om te scrollen. */
html { scrollbar-gutter: stable; }

/* ---------- kop ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(186, 210, 218, .6);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: "Inter", system-ui, sans-serif;
}
/* De opmaak per pagina mag kop en voettekst niet verschuiven: zet tekstinstellingen vast. */
body .header *, body footer.site-voet * {
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  font-style: normal;
  box-sizing: border-box;
}
body .header .brand, body footer.site-voet .brand { letter-spacing: -.02em; }
body .header .wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
body .header .nav {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
body .header .brand,
body footer.site-voet .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #222326;
  text-decoration: none;
}
body .header .brand svg,
body footer.site-voet .brand svg { display: block; flex: 0 0 auto; width: 40px; height: 40px; }

body .header .navlinks {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
}
body .header .navlinks a { padding: 8px 14px; border-radius: 32px; color: #5f6b6e; text-decoration: none; }
body .header .navlinks a:hover { color: #222326; background: #f5f9fa; }
body .header .navlinks a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-left: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 128px;
  background: #008070;
  color: #ffffff;
  box-shadow: none;
  font: 500 15px/1.3 "Inter", system-ui, sans-serif;
}
body .header .navlinks a.button:hover { background: #197d8a; color: #ffffff; }

body .header .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #dde9ed;
  border-radius: 14px;
  background: #ffffff;
  color: #222326;
  cursor: pointer;
}
body .header .menu-toggle span,
body .header .menu-toggle::before,
body .header .menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
body .header.is-open .menu-toggle::before { transform: translateY(7px) rotate(45deg); }
body .header.is-open .menu-toggle span { opacity: 0; }
body .header.is-open .menu-toggle::after { transform: translateY(-7px) rotate(-45deg); }
body .header .menu-toggle:focus-visible,
body .header .navlinks a:focus-visible,
body footer.site-voet a:focus-visible { outline: 3px solid #63c2cc; outline-offset: 3px; }

/* ---------- voettekst ---------- */
body footer.site-voet {
  margin: 0;
  padding: 40px 0;
  border: 0;
  background: #eaf2f4;
  color: #4b4e57;
  font: 400 15px/1.5 "Inter", system-ui, sans-serif;
  text-align: left;
}
body footer.site-voet .wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}
body footer.site-voet p { margin: 12px 0 0; max-width: 46ch; color: #4b4e57; font-size: 15px; }
body footer.site-voet nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
body footer.site-voet nav a { color: #4b4e57; text-decoration: none; }
body footer.site-voet nav a:hover { color: #222326; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  body .header .wrap { width: min(100% - 28px, 1160px); }
  body .header .nav { position: relative; min-height: 68px; padding: 10px 0; }
  body .header .brand { gap: 10px; font-size: 19px; }
  body .header .brand svg { width: 36px; height: 36px; }
  body .header .menu-toggle { display: inline-flex; }
  body .header .navlinks {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid #dde9ed;
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 36px rgba(31, 32, 37, .12);
  }
  body .header.is-open .navlinks { display: flex; }
  body .header .navlinks a {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
  }
  body .header .navlinks a.button { width: 100%; margin: 8px 0 0; justify-content: center; }
  body footer.site-voet .wrap { width: min(100% - 28px, 1160px); grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body .header .menu-toggle span,
  body .header .menu-toggle::before,
  body .header .menu-toggle::after { transition: none; }
}
