/* ==========================================================================
   Life Navigator - stijlblad
   --------------------------------------------------------------------------
   Kleuren, lettertypen en maten staan hieronder als variabelen.
   Pas je een waarde aan, dan verandert die overal op de site.
   ========================================================================== */

:root {
  /* Kleuren */
  --kleur-blauw: #124184;          /* hoofdkleur Life Navigator */
  --kleur-blauw-licht: #4f6fa3;    /* achtergrond van de blauwe kaders */
  --kleur-link: #236ed8;           /* kleur van links */
  --kleur-accent: #d7004d;         /* "Lees meer"-teksten */
  --kleur-tekst: #555b66;          /* gewone tekst */
  --kleur-kop: #1b1e24;            /* koppen */
  --kleur-citaat: #696969;         /* citaten op de workshop-pagina */
  --kleur-vlak: #f5f6f8;           /* lichtgrijze vlakken (tegels, kaarten) */
  --kleur-lijn: #e3e6eb;           /* scheidingslijnen */
  --kleur-pagina: #ffffff;         /* achtergrond onder het verloop bovenaan de pagina */
  --kleur-wit: #ffffff;

  /* Lettertype */
  --lettertype: "Source Sans 3", "Source Sans Pro", Tahoma, Verdana, sans-serif;
  --tekstgrootte: 1.0625rem;

  /* Maten */
  --breedte-site: 1000px;
  --ruimte: 1.5rem;
  --afronding: 10px;
  --schaduw: 0 1px 4px rgba(0, 0, 0, .12);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--lettertype);
  font-size: var(--tekstgrootte);
  line-height: 1.6;
  color: var(--kleur-tekst);
  background: var(--kleur-pagina) url("../afbeeldingen/algemeen/achtergrond.jpg") repeat-x top;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--kleur-link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--kleur-link); outline-offset: 2px; }

h1, h2, h3, h4 { color: var(--kleur-kop); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 600; }
h2 { font-size: 1.35rem; color: var(--kleur-blauw); }
h3 { font-size: 1.1rem; }

p, ul, ol { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--kleur-lijn); margin: var(--ruimte) 0; }

table { border-collapse: collapse; max-width: 100%; }
td, th { padding: .35rem .6rem; vertical-align: top; text-align: left; }

.container { width: 100%; max-width: var(--breedte-site); margin: 0 auto; padding: 0 16px; }

.visueel-verborgen {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Koptekst en menu ---------- */
.koptekst-inhoud {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 96px; position: relative;
}
.logo img { display: block; width: 220px; }

.hoofdmenu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.hoofdmenu a {
  display: block; padding: .4rem .7rem; border-radius: 6px;
  color: #3366cc; font-size: 1.05rem;
}
.hoofdmenu a:hover { color: #000; background: rgba(255, 255, 255, .6); text-decoration: none; }
.hoofdmenu a[aria-current="page"] { color: #000; font-weight: 600; }

.menu-knop {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 6px;
  background: var(--kleur-wit); box-shadow: var(--schaduw); cursor: pointer;
}
.menu-knop-streep, .menu-knop-streep::before, .menu-knop-streep::after {
  display: block; width: 22px; height: 2px; margin: 0 auto; background: var(--kleur-blauw);
  position: relative; transition: transform .2s;
}
.menu-knop-streep::before, .menu-knop-streep::after { content: ""; position: absolute; left: 0; }
.menu-knop-streep::before { top: -7px; }
.menu-knop-streep::after { top: 7px; }
.menu-knop[aria-expanded="true"] .menu-knop-streep { background: transparent; }
.menu-knop[aria-expanded="true"] .menu-knop-streep::before { transform: translateY(7px) rotate(45deg); }
.menu-knop[aria-expanded="true"] .menu-knop-streep::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Wit inhoudsblok ---------- */
.inhoud {
  background: var(--kleur-wit);
  border-radius: var(--afronding);
  box-shadow: var(--schaduw);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  margin-bottom: var(--ruimte);
  overflow: hidden;
}
.inhoud > section + section { margin-top: var(--ruimte); }

/* Uitlijning (komt uit de oude site) */
.tekst-midden { text-align: center; }
.tekst-rechts { text-align: right; }

/* Kolommen: blokken naast elkaar, op mobiel onder elkaar */
.kolommen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--ruimte);
  align-items: start;
  margin-bottom: var(--ruimte);
}
.kolom > :last-child { margin-bottom: 0; }

/* Icoon vóór een kop of tekstregel */
h2 > img:first-child, p > img:first-child:not(:only-child) { margin-right: .5rem; }

/* Afbeelding die naast de tekst zweeft */
.zweef-rechts { float: right; margin: 0 0 1rem 1.5rem; }
.zweef-links { float: left; margin: 0 1.5rem 1rem 0; }

/* Blauw kader met witte tekst */
.kader {
  background: var(--kleur-blauw-licht);
  color: var(--kleur-wit);
  padding: 1.1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: var(--ruimte);
}
.kader h2, .kader h3, .kader a, .kader strong { color: var(--kleur-wit); }
.kader h2 { font-size: 1.15rem; }
.kader a { text-decoration: underline; }
.kader > :last-child { margin-bottom: 0; }

/* Citaat */
.citaat {
  margin: 0 0 1em;
  padding: .25rem 0 .25rem 1rem;
  border-left: 3px solid var(--kleur-blauw-licht);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--kleur-citaat);
}

/* Knop "Lees verder" onderaan pagina's */
.volgende-pagina { text-align: right; clear: both; margin-top: var(--ruimte); }
.knop {
  display: inline-block; padding: .55rem 1.1rem; border-radius: 6px;
  background: var(--kleur-blauw); color: var(--kleur-wit); font-weight: 600;
}
.knop:hover { background: var(--kleur-link); text-decoration: none; }

.lees-meer { color: var(--kleur-accent); font-weight: 600; }
.lees-meer::after { content: " \2192"; }

/* ---------- Homepage ---------- */
.inhoud-home { padding-top: 0; }

.slider {
  position: relative;
  margin: 0 calc(-1 * clamp(1.25rem, 4vw, 2.5rem)) var(--ruimte);
}
.slider-dias { list-style: none; margin: 0; padding: 0; display: grid; }
.slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.slide.is-actief { opacity: 1; visibility: visible; }
.slide a { display: block; position: relative; color: var(--kleur-wit); text-decoration: none; }
.slide img { display: block; width: 100%; aspect-ratio: 980 / 221; object-fit: cover; }
.slide-tekst {
  display: block;
  position: absolute; left: 1.25rem; bottom: 1.25rem;
  max-width: 340px; padding: .75rem 1rem;
  background: rgba(18, 65, 132, .78);
  font-size: .95rem; line-height: 1.4;
}
.slide-tekst strong, .slide-titel { display: block; }
.slide-titel { font-size: 1.35rem; font-weight: 600; margin-bottom: .2rem; }
.slide-tekst em { display: block; margin-top: .35rem; font-size: .85rem; }

.slider-bolletjes {
  position: absolute; right: 1rem; bottom: .75rem; display: flex; gap: .4rem;
}
.slider-bolletjes button {
  width: 12px; height: 12px; padding: 0; border: 2px solid var(--kleur-wit); border-radius: 50%;
  background: transparent; cursor: pointer;
}
.slider-bolletjes button[aria-current="true"] { background: var(--kleur-wit); }

.home-intro {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: calc(var(--ruimte) * 1.5); align-items: start;
}
.home-intro h1 { font-size: 1.5rem; color: var(--kleur-blauw-licht); font-weight: 700; }

.tegels {
  list-style: none; margin: var(--ruimte) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--ruimte);
}
.tegel a {
  display: flex; flex-direction: column; height: 100%;
  padding: .75rem; background: var(--kleur-vlak); color: #78777f; text-decoration: none;
  border-radius: 6px; transition: box-shadow .2s;
}
.tegel a:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.tegel img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; margin-bottom: .6rem; }
.tegel-titel { font-size: 1rem; text-transform: uppercase; color: var(--kleur-kop); font-weight: 600; margin-bottom: .25rem; }
.tegel p { font-size: .95rem; flex: 1; }
.tegel .lees-meer { align-self: flex-end; }

/* ---------- Cases ---------- */
.case-lijst { display: grid; gap: var(--ruimte); }
.case {
  display: grid; grid-template-columns: 160px 1fr; gap: .25rem 1.5rem;
  padding-bottom: var(--ruimte); border-bottom: 1px solid var(--kleur-lijn);
}
.case-logo { grid-row: span 3; }
.case h3 { color: var(--kleur-blauw); }

/* ---------- Artikelen-strook ---------- */
.artikelen { margin-bottom: var(--ruimte); }
.artikelen > .container {
  background: var(--kleur-wit); border-radius: var(--afronding); box-shadow: var(--schaduw);
  padding: 1.25rem;
}
.artikelen-titel { font-size: 1.15rem; margin-bottom: .75rem; }
.artikelen-strook {
  list-style: none; margin: 0; padding: 0 0 .5rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.artikel-kaart { scroll-snap-align: start; }
.artikel-kaart a { display: flex; flex-direction: column; height: 100%; color: var(--kleur-tekst); text-decoration: none; font-size: .9rem; line-height: 1.4; }
.artikel-kaart img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 4px; margin-bottom: .5rem; }
.artikel-kaart-titel { color: var(--kleur-link); font-weight: 700; font-size: 1rem; margin-bottom: .25rem; }
.artikel-kaart-tekst { flex: 1; margin-bottom: .35rem; }
.artikel-kaart a:hover .artikel-kaart-titel { text-decoration: underline; }

/* ---------- Voettekst ---------- */
.voettekst { padding: .5rem 0 2.5rem; }
.voettekst-inhoud { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ruimte); }
.voettekst-titel { font-size: 1.1rem; color: var(--kleur-kop); display: flex; align-items: center; gap: .5rem; padding-bottom: .4rem; border-bottom: 1px solid #555; }
.voettekst-social .voettekst-titel { border-bottom: 0; }
.voettekst-mail { font-size: 1.25rem; display: inline-flex; align-items: center; gap: .6rem; }
.social-lijst { list-style: none; margin: 0; padding: 0; display: flex; gap: .6rem; }

/* ---------- Mobiel en tablet ---------- */
@media (max-width: 760px) {
  .menu-knop { display: block; }
  .hoofdmenu {
    display: none; position: absolute; top: 100%; left: 16px; right: 16px; z-index: 10;
    background: var(--kleur-wit); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    padding: .5rem;
  }
  .hoofdmenu.is-open { display: block; }
  .hoofdmenu ul { flex-direction: column; }
  .hoofdmenu a { padding: .7rem .9rem; }
  .logo img { width: 180px; }

  .home-intro { grid-template-columns: 1fr; }
  .slide-tekst { position: static; max-width: none; background: var(--kleur-blauw); }

  .zweef-rechts, .zweef-links { float: none; display: block; margin: 0 auto 1rem; }
  .tekst-rechts { text-align: left; }
  .case { grid-template-columns: 1fr; }
  .case-logo { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .menu-knop-streep { transition: none; }
}
