/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  --blauw:        #162D4A;
  --blauw-mid:    #1E3D63;
  --blauw-licht:  #2B5580;
  --goud:         #B07D2E;
  --goud-licht:   #D4A44C;
  --goud-helder:  #F0C060;
  --crème:        #F6F2EA;
  --crème-donker: #E8E0CE;
  --crème-diep:   #D9CDB5;
  --tekst:        #1C1C1C;
  --subtiel:      #5C5C5C;
  --wit:          #FFFFFF;
  --sidebar:      250px;
  --radius:       10px;
  --shadow-zacht: 0 2px 12px rgba(0,0,0,.07);
  --shadow-midden: 0 6px 24px rgba(0,0,0,.11);
  --shadow-diep:  0 16px 48px rgba(0,0,0,.14);
  --overgang:     all .25s cubic-bezier(.4,0,.2,1);
}

/* ── BASIS ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--crème);
  color: var(--tekst);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR ──────────────────────────────────────────────── */
header {
  background: var(--blauw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 20px rgba(0,0,0,.30);
}

/* Gouden streep onderkant header */
header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--goud-licht), transparent);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo span { color: var(--goud-helder); }

.topnav { display: flex; gap: 28px; }
.topnav a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--overgang);
  position: relative;
  padding-bottom: 2px;
}
.topnav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--goud-licht);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.topnav a:hover { color: #fff; }
.topnav a:hover::after { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,.8); border-radius: 2px; transition: all .3s;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.pagina {
  display: flex;
  min-height: calc(100vh - 62px);
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
nav.sidebar {
  width: var(--sidebar);
  min-width: var(--sidebar);
  background: var(--blauw);
  padding: 24px 0 40px;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
  border-right: 1px solid rgba(255,255,255,.05);
}

.sidebar-sectie { margin-bottom: 6px; }

.sidebar-sectie-titel {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--goud-licht);
  padding: 14px 24px 5px;
  opacity: .85;
}

.sidebar a {
  display: flex;
  align-items: center;
  padding: 8px 24px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--overgang);
  position: relative;
}
.sidebar a:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
  border-left-color: var(--goud-licht);
}
.sidebar a.actief {
  background: rgba(255,255,255,.10);
  color: #fff;
  border-left-color: var(--goud-helder);
  font-weight: 600;
}
.sidebar a.sub {
  padding-left: 38px;
  font-size: 13px;
  color: rgba(255,255,255,.72);
}
.sidebar a.sub:hover, .sidebar a.sub.actief {
  color: #fff;
  border-left-color: var(--goud-licht);
}

/* ── HOOFDINHOUD ─────────────────────────────────────────── */
main {
  flex: 1;
  padding: 36px 48px 80px;
  max-width: 840px;
}

/* ── TYPOGRAFIE ──────────────────────────────────────────── */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--blauw);
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -.3px;
}
.subtitel {
  font-size: 1rem;
  color: var(--subtiel);
  margin-bottom: 28px;
  font-style: italic;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--crème-donker);
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--blauw);
  margin: 32px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--crème-donker), transparent);
}
h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  color: var(--blauw-mid);
  margin: 18px 0 6px;
}
p { margin-bottom: 14px; color: #2E2E2E; }
a { color: var(--blauw-licht); transition: color .2s; }
a:hover { color: var(--goud); }
strong { color: var(--blauw); font-weight: 600; }

/* ── WELKOM BLOK ─────────────────────────────────────────── */
.welkom-blok {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 32px;
  background: var(--wit);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--crème-donker);
  box-shadow: var(--shadow-midden);
  position: relative;
  overflow: hidden;
}
.welkom-blok::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blauw), var(--goud-licht));
}
.welkom-foto {
  width: 130px; min-width: 130px; height: 160px;
  border-radius: 8px; object-fit: cover; object-position: top;
  box-shadow: var(--shadow-midden);
}
.welkom-foto-placeholder {
  width: 130px; min-width: 130px; height: 160px;
  border-radius: 8px; background: var(--blauw);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(255,255,255,.3);
}
.welkom-tekst h1 { margin-bottom: 2px; }
.welkom-tekst .subtitel { margin-bottom: 12px; border: none; padding: 0; }

/* ── KAARTJES ────────────────────────────────────────────── */
.kaarten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.kaart {
  background: var(--wit);
  border-radius: var(--radius);
  border: 1px solid var(--crème-donker);
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-zacht);
  transition: var(--overgang);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}
.kaart::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blauw), var(--goud-licht));
  transform: scaleX(0);
  transition: transform .3s ease;
}
.kaart:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-midden);
  color: inherit;
}
.kaart:hover::after { transform: scaleX(1); }
.kaart-icoon { font-size: 26px; margin-bottom: 10px; }
.kaart h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--blauw);
  margin: 0 0 8px; font-weight: 600;
}
.kaart p { font-size: 13.5px; color: #555; margin: 0; line-height: 1.55; }

/* ── TIJDLIJN ────────────────────────────────────────────── */
.tijdlijn { margin: 16px 0; position: relative; }
.tijdlijn::before {
  content: '';
  position: absolute;
  left: 88px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--goud-licht), transparent);
}
.tijdlijn-item {
  display: flex;
  gap: 24px;
  margin-bottom: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--crème-donker);
  position: relative;
}
.tijdlijn-item:last-child { border-bottom: none; }
.tijdlijn-item::before {
  content: '';
  position: absolute;
  left: 84px; top: 24px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--goud);
  border: 2px solid var(--crème);
  box-shadow: 0 0 0 3px var(--goud-licht);
}
.tijdlijn-jaar {
  min-width: 80px;
  font-family: 'Playfair Display', serif;
  font-size: .9rem;
  color: var(--goud);
  font-weight: 700;
  padding-top: 4px;
  text-align: right;
}
.tijdlijn-inhoud { padding-left: 8px; }
.tijdlijn-inhoud h3 { margin: 0 0 4px; font-size: .98rem; }
.tijdlijn-inhoud p { margin: 0; font-size: 13.5px; color: var(--subtiel); line-height: 1.6; }

/* ── INFOBOX ─────────────────────────────────────────────── */
.infobox {
  background: linear-gradient(135deg, var(--wit) 0%, #FDFAF4 100%);
  border-left: 4px solid var(--goud);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 20px;
  margin: 20px 0;
  box-shadow: var(--shadow-zacht);
}
.infobox p { margin: 0; font-size: 14.5px; color: #444; line-height: 1.6; }

/* ── CITAAT ──────────────────────────────────────────────── */
.citaat {
  border-left: 4px solid var(--goud);
  margin: 24px 0;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--wit), #FDFAF4);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #3A3A3A;
  line-height: 1.7;
  font-size: 1.02rem;
  box-shadow: var(--shadow-zacht);
}

/* ── FOTO RASTER ─────────────────────────────────────────── */
.foto-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.foto-raster figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.foto-raster img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform .4s ease; }
.foto-raster figure:hover img { transform: scale(1.05); }
.foto-raster figcaption { font-size: 12px; color: var(--subtiel); padding: 7px 10px 9px; font-style: italic; background: var(--wit); }

/* ── LIJST ───────────────────────────────────────────────── */
ul.lijst { margin: 12px 0 20px; padding-left: 0; list-style: none; }
ul.lijst li {
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid var(--crème-donker);
  font-size: 15px;
}
ul.lijst li:last-child { border-bottom: none; }
ul.lijst li::before { content: '›'; position: absolute; left: 0; color: var(--goud); font-weight: bold; font-size: 20px; line-height: 1.3; }

/* ── CONTACTBLOK ─────────────────────────────────────────── */
.contact-blok {
  background: linear-gradient(135deg, var(--blauw) 0%, var(--blauw-mid) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 24px 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-midden);
  position: relative;
  overflow: hidden;
}
.contact-blok::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--goud), var(--goud-helder));
}
.contact-blok h3 { font-family: 'Playfair Display', serif; color: var(--goud-licht); margin: 0 0 10px; }
.contact-blok p { color: rgba(255,255,255,.85); font-size: 14px; margin: 4px 0; }
.contact-blok a { color: var(--goud-helder); text-decoration: none; }
.contact-blok a:hover { color: #fff; }

/* ── KNOP ────────────────────────────────────────────────── */
.knop {
  display: inline-block;
  background: linear-gradient(135deg, var(--goud) 0%, var(--goud-licht) 100%);
  color: var(--wit);
  padding: 11px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  transition: var(--overgang);
  box-shadow: 0 2px 8px rgba(176,125,46,.35);
  margin-top: 8px;
}
.knop:hover {
  background: linear-gradient(135deg, var(--blauw) 0%, var(--blauw-mid) 100%);
  color: #fff;
  box-shadow: var(--shadow-midden);
  transform: translateY(-1px);
}
.knop-outline {
  display: inline-block;
  border: 2px solid var(--blauw);
  color: var(--blauw);
  padding: 9px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--overgang);
  margin: 4px 8px 4px 0;
}
.knop-outline:hover {
  background: var(--blauw);
  color: #fff;
  transform: translateY(-1px);
}

/* ── VERKENNEN TITEL ─────────────────────────────────────── */
.sectie-titel {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--blauw);
  margin: 32px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -.1px;
}
.sectie-titel::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--crème-donker), transparent);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--blauw);
  color: rgba(255,255,255,.4);
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.06);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--goud), transparent);
}
footer a { color: rgba(255,255,255,.45); transition: color .2s; }
footer a:hover { color: var(--goud-licht); }

/* ── ANIMATIES ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
main > * {
  animation: fadeUp .4s ease both;
}
main > *:nth-child(1) { animation-delay: .05s; }
main > *:nth-child(2) { animation-delay: .10s; }
main > *:nth-child(3) { animation-delay: .15s; }
main > *:nth-child(4) { animation-delay: .20s; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 760px) {
  nav.sidebar {
    display: none; position: fixed; top: 62px; left: 0;
    height: calc(100vh - 62px); z-index: 90; width: 270px;
    box-shadow: 4px 0 20px rgba(0,0,0,.25);
  }
  nav.sidebar.open { display: block; }
  .hamburger { display: flex; }
  main { padding: 28px 20px 60px; }
  .welkom-blok { flex-direction: column; gap: 20px; }
  .welkom-foto, .welkom-foto-placeholder { width: 100%; min-width: unset; height: 180px; }
  h1 { font-size: 1.75rem; }
  .tijdlijn::before { left: 72px; }
  .tijdlijn-item::before { left: 68px; }
  .tijdlijn-jaar { min-width: 64px; font-size: .82rem; }
}
