/* =====================================================================
   Zaamslag Geleefd — Huisstijl 2.0 (Material 3)
   Eén tokenlaag. Geen !important, geen per-pagina <style>-blokken.
   Kleur = betekenis. Warme, kleiachtige neutrale basis.
   Zie docs/huisstijlboek.html voor de volledige toelichting.
   ===================================================================== */

:root {
  /* --- Kleur · Primair (Moerbei) — merk, zoeken, primaire actie --- */
  --primary:                 #8C3169;
  --on-primary:              #FFFFFF;
  --primary-container:       #FFD8EA;
  --on-primary-container:    #3B0026;
  --primary-hover:           #7A2A5C;
  --primary-container-hover: #F7C8DE;

  /* --- Kleur · Secundair (Indigo) — verhalen, agenda, links --- */
  --secondary:               #3F5185;
  --on-secondary:            #FFFFFF;
  --secondary-container:     #DFE3F8;
  --on-secondary-container:  #141C45;

  /* --- Kleur · Tertiair (Zeeuwse klei-oker) — vrijwilligers, doneren, highlights --- */
  --tertiary:                #8B5A24;
  --on-tertiary:             #FFFFFF;
  --tertiary-container:      #FFDDB8;
  --on-tertiary-container:   #2D1600;

  /* --- Kleur · Error & Success --- */
  --error:                   #B3261E;
  --on-error:                #FFFFFF;
  --error-container:         #F9DEDC;
  --on-error-container:      #410E0B;
  --success:                 #2E6A4F;
  --success-container:       #DCEFE4;

  /* --- Neutrale oppervlakken (warme klei) --- */
  --background:              #E8DED8;
  --surface:                 #FCF8F6;
  --surface-container-lowest:#FFFFFF;
  --surface-container-low:   #F6EEE9;
  --surface-container:       #F1E8E2;
  --surface-container-high:  #EBE1DB;
  --surface-container-highest:#E5DAD3;

  --on-surface:              #221A17;
  --on-surface-variant:      #56463F;
  --on-surface-muted:        #86706A;
  --outline:                 #86706A;
  --outline-variant:         #D9C7C0;

  /* --- Inverse (snackbar, footer) --- */
  --inverse-surface:         #382E2A;
  --inverse-on-surface:      #FCF8F6;
  --inverse-on-surface-dim:  #D9C7C0;
  --inverse-primary:         #FFB1D4;

  /* --- Links --- */
  --link:                    #6E1F50;
  --link-hover:              #8C3169;

  /* --- Typografie --- */
  --font-sans:  'Figtree', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --text-base:  18px;
  --leading:    1.65;

  /* --- Vorm (radius-ladder) --- */
  --r-xs:   4px;   /* chips, badges          */
  --r-s:    8px;   /* velden, kleine vlakken */
  --r-m:    16px;  /* kaarten                */
  --r-l:    28px;  /* panelen, hero          */
  --r-full: 999px; /* knoppen, zoekbalk      */

  /* --- Elevatie (warme schaduw, nooit rand + schaduw tegelijk) --- */
  --e1: 0 1px 2px rgba(60,30,20,.12), 0 1px 3px 1px rgba(60,30,20,.08);
  --e2: 0 1px 2px rgba(60,30,20,.12), 0 2px 6px 2px rgba(60,30,20,.10);
  --e3: 0 4px 8px 3px rgba(60,30,20,.10), 0 1px 3px rgba(60,30,20,.12);

  /* --- Focus --- */
  --focus-ring: 3px solid var(--secondary);

  /* --- Layout --- */
  --container: 1200px;
  --measure:   68ch;
}

/* =====================================================================
   Reset & base
   ===================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--on-surface);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--on-surface); line-height: 1.15; font-weight: 600; text-wrap: pretty; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

strong { font-weight: 600; }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--primary-container); color: var(--on-primary-container); }

hr { border: none; border-top: 1px solid var(--outline-variant); margin: 24px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   Typografie-schaal (utilities)
   ===================================================================== */
.t-display  { font-family: var(--font-serif); font-weight: 600; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; color: var(--on-surface); }
.t-headline { font-family: var(--font-serif); font-weight: 600; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; color: var(--on-surface); }
.t-title    { font-family: var(--font-sans);  font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--on-surface); }
.t-body     { font-family: var(--font-serif); font-weight: 400; font-size: var(--text-base); line-height: var(--leading); color: var(--on-surface); }
.t-body-sans{ font-family: var(--font-sans);  font-weight: 400; font-size: 16px; line-height: 1.55; color: var(--on-surface-variant); }
.t-label    { font-family: var(--font-sans);  font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.overline, .eyebrow {
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--primary);
}
.muted { color: var(--on-surface-variant); }
.measure { max-width: var(--measure); }

/* Kleuraccenten als betekenis */
.accent-primary   { color: var(--primary); }
.accent-secondary { color: var(--secondary); }
.accent-tertiary  { color: var(--tertiary); }

/* =====================================================================
   Layout
   ===================================================================== */
.container { max-width: var(--container); margin: 0 auto; padding: 24px 24px 64px; }
.section { margin: 0 0 48px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head .more { margin-left: auto; font-family: var(--font-sans); font-weight: 600; font-size: 16px; color: var(--secondary); white-space: nowrap; }

/* =====================================================================
   Knoppen — minimaal 48px hoog, één primaire actie per blok
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; line-height: 1;
  border: none; border-radius: var(--r-full); cursor: pointer;
  text-decoration: none; transition: background-color .18s ease, box-shadow .18s ease, color .18s ease;
  -webkit-appearance: none; appearance: none;
}
.btn:hover { text-decoration: none; }
.btn .ms { font-size: 20px; }

/* Filled (primair) */
.btn--filled, .btn-primary {
  background: var(--primary); color: var(--on-primary); box-shadow: var(--e1);
}
.btn--filled:hover, .btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); box-shadow: var(--e2); }

/* Filled varianten */
.btn--filled-secondary { background: var(--secondary); color: var(--on-secondary); box-shadow: var(--e1); }
.btn--filled-secondary:hover { background: #35447040; }
.btn--filled-tertiary { background: var(--tertiary); color: var(--on-tertiary); box-shadow: var(--e1); }
.btn--filled-tertiary:hover { background: #74491d; color: var(--on-tertiary); }

/* Tonal */
.btn--tonal, .btn-secondary {
  background: var(--primary-container); color: var(--on-primary-container); box-shadow: none;
}
.btn--tonal:hover, .btn-secondary:hover { background: var(--primary-container-hover); color: var(--on-primary-container); }
.btn--tonal-secondary { background: var(--secondary-container); color: var(--on-secondary-container); }
.btn--tonal-secondary:hover { background: #cdd4f2; }
.btn--tonal-tertiary { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.btn--tonal-tertiary:hover { background: #ffd0a2; }

/* Outlined */
.btn--outlined {
  background: transparent; color: var(--primary); border: 1px solid var(--outline); padding: 11px 27px;
}
.btn--outlined:hover { background: var(--surface-container-low); color: var(--primary); }

/* Tekst */
.btn--text {
  background: transparent; color: var(--secondary); padding: 12px 20px; min-height: 44px;
}
.btn--text:hover { background: var(--secondary-container); color: var(--on-secondary-container); }

/* Status-knoppen (behoud van bestaande namen) */
.btn-success { background: var(--success); color: #fff; box-shadow: var(--e1); }
.btn-danger  { background: var(--error);   color: #fff; box-shadow: var(--e1); }
.btn-warning { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.btn-info    { background: var(--secondary-container); color: var(--on-secondary-container); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }

/* =====================================================================
   Chips
   ===================================================================== */
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 9px 16px; font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  color: var(--on-surface); background: transparent;
  border: 1px solid var(--outline); border-radius: var(--r-s); cursor: pointer;
  text-decoration: none; transition: background-color .15s ease;
}
.chip:hover { background: var(--surface-container-low); text-decoration: none; }
.chip .ms { font-size: 18px; }
.chip--selected {
  background: var(--primary-container); color: var(--on-primary-container);
  border-color: transparent; font-weight: 600;
}
.chip--suggest { background: var(--surface-container-lowest); border-color: var(--outline-variant); }

/* =====================================================================
   Zoekbalk (filled pill) & tekstveld (outlined + floating label)
   ===================================================================== */
.search-bar {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-container-high); border-radius: var(--r-full);
  padding: 12px 22px;
}
.search-bar .ms { font-size: 24px; color: var(--on-surface-variant); }
.search-bar input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--font-sans); font-size: 17px; color: var(--on-surface);
}
.search-bar input::placeholder { color: var(--on-surface-muted); }

/* Legacy .search-section/.search-box → gecentreerde filled pill */
.search-section { max-width: 760px; margin: 0 auto 40px; }
.search-box { display: flex; align-items: center; gap: 12px; background: var(--surface-container-high); border-radius: var(--r-full); padding: 8px 8px 8px 22px; }
.search-box .ms { font-size: 24px; color: var(--on-surface-variant); }
.search-box input { flex: 1; border: none; background: transparent; outline: none; font-family: var(--font-sans); font-size: 17px; color: var(--on-surface); min-width: 0; }
.search-box input::placeholder { color: var(--on-surface-muted); }
.search-box button { flex: none; }

.field { position: relative; margin-top: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-sans); font-size: 17px; color: var(--on-surface);
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-s);
  padding: 17px 16px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary);
}
.field label {
  position: absolute; top: -9px; left: 12px; padding: 0 6px;
  background: var(--surface); font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  color: var(--primary);
}

/* =====================================================================
   Kaarten
   ===================================================================== */
.card {
  display: flex; flex-direction: column;
  background: var(--surface-container-lowest); border-radius: var(--r-m); overflow: hidden;
  box-shadow: var(--e1); text-decoration: none; color: inherit;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--e2); transform: translateY(-2px); text-decoration: none; }
.card__media { aspect-ratio: 16 / 9; background: var(--surface-container-highest); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { font-size: 21px; line-height: 1.25; margin: 0; }
.card__body p { color: var(--on-surface-variant); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; margin: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Legacy kaart-markup (.card-image/.card-content) op tokens */
.card-image { aspect-ratio: 16 / 9; background: var(--surface-container-highest); overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-content h3 { font-family: var(--font-serif); font-size: 21px; line-height: 1.25; margin: 0; color: var(--on-surface); }
.card-content p { font-family: var(--font-sans); font-size: 16px; line-height: 1.55; color: var(--on-surface-variant); margin: 0; }

/* Placeholder zonder afbeelding — tonaal vlak i.p.v. roze/blauw gradient */
.teaser-placeholder, .card__placeholder {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  background: var(--surface-container-high); color: var(--on-surface-muted);
}
.teaser-placeholder span { font-family: var(--font-serif); font-size: 40px; font-weight: 600; color: var(--on-surface-muted); }

/* Kleurvlak-kaarten (quick links) */
.tile { display: flex; gap: 16px; align-items: flex-start; border-radius: var(--r-m); padding: 24px; }
.tile .ms { font-size: 28px; flex: none; }
.tile h3 { font-family: var(--font-sans); font-size: 18px; font-weight: 600; margin: 0; }
.tile p { font-family: var(--font-sans); font-size: 16px; line-height: 1.55; margin: 4px 0 0; opacity: .9; }
.tile--primary   { background: var(--primary-container);   color: var(--on-primary-container); }
.tile--primary .ms, .tile--primary h3, .tile--primary p { color: var(--on-primary-container); }
.tile--secondary { background: var(--secondary-container); color: var(--on-secondary-container); }
.tile--secondary .ms, .tile--secondary h3, .tile--secondary p { color: var(--on-secondary-container); }
.tile--tertiary  { background: var(--tertiary-container);  color: var(--on-tertiary-container); }
.tile--tertiary .ms, .tile--tertiary h3, .tile--tertiary p { color: var(--on-tertiary-container); }

/* =====================================================================
   Lijst-items (zoekresultaat, register)
   ===================================================================== */
.list { background: var(--surface-container-lowest); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--e1); }
.list-item {
  display: flex; gap: 20px; align-items: center; padding: 18px 24px;
  border-bottom: 1px solid var(--surface-container-high); text-decoration: none; color: inherit;
  transition: background-color .15s ease;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--surface-container-low); text-decoration: none; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .name { font-family: var(--font-sans); font-size: 20px; font-weight: 600; color: var(--on-surface); }
.list-item .meta { font-family: var(--font-sans); font-size: 16px; color: var(--on-surface-variant); padding-top: 2px; }
.list-item .ms { color: var(--on-surface-muted); flex: none; }

.avatar {
  width: 56px; height: 56px; flex: none; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 19px; font-weight: 600;
  background: var(--secondary-container); color: var(--on-secondary-container);
}
.avatar--primary { background: var(--primary-container); color: var(--on-primary-container); }

/* =====================================================================
   Badges / meta
   ===================================================================== */
.badge {
  display: inline-block; font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--primary);
}
.datechip {
  flex: none; width: 84px; text-align: center; background: var(--tertiary-container);
  border-radius: var(--r-s); padding: 14px 0; color: var(--on-tertiary-container);
}
.datechip .d { font-family: var(--font-sans); font-size: 32px; font-weight: 700; line-height: 1; }
.datechip .m { font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--tertiary); text-transform: uppercase; }

/* =====================================================================
   Berichten / alerts / snackbar
   ===================================================================== */
.message, .alert { padding: 14px 18px; border-radius: var(--r-s); margin-bottom: 16px; font-family: var(--font-sans); }
.message.success, .alert-success { background: var(--success-container); color: #14352a; }
.message.error, .alert-error, .message.danger { background: var(--error-container); color: var(--on-error-container); }
.message.info { background: var(--secondary-container); color: var(--on-secondary-container); }

/* Snackbar — vervangt de groene toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 20px;
  background: var(--inverse-surface); color: var(--inverse-on-surface);
  font-family: var(--font-sans); font-size: 16px;
  padding: 16px 22px; border-radius: var(--r-s); box-shadow: var(--e3);
  z-index: 10000; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  max-width: min(92vw, 560px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.error { background: #5c2b2e; }
.toast .action { font-weight: 600; color: var(--inverse-primary); cursor: pointer; }

/* =====================================================================
   Hero / paginakop — geen fel roze vlak meer, maar een warm paneel
   ===================================================================== */
.hero {
  background: var(--surface-container-low); border-radius: var(--r-l);
  padding: 56px; margin: 0 0 48px;
}
.hero h1 { font-family: var(--font-serif); font-size: clamp(34px, 5vw, 52px); line-height: 1.08; color: var(--on-surface); margin: 0 0 18px; }
.hero p  { font-family: var(--font-serif); font-size: 20px; line-height: 1.6; color: var(--on-surface-variant); margin: 0; max-width: 46ch; }

.page-header {
  background: var(--surface-container-low); color: var(--on-surface);
  border-radius: var(--r-l); padding: 44px 48px; margin: 8px auto 32px;
  max-width: var(--container);
}
.page-header h1 { font-family: var(--font-serif); color: var(--on-surface); margin: 0 0 8px; }
.page-header p { color: var(--on-surface-variant); margin: 0; }
.crumbs { font-family: var(--font-sans); font-size: 15px; color: var(--on-surface-muted); margin-bottom: 10px; }

/* =====================================================================
   Extended FAB — één stuk: verbetering voorstellen
   ===================================================================== */
.fab-improvement, .fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 16px 22px;
  background: var(--primary-container); color: var(--on-primary-container);
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  border: none; border-radius: var(--r-m); cursor: pointer; box-shadow: var(--e3);
  text-decoration: none; transition: background-color .18s ease;
}
.fab-improvement:hover, .fab:hover { background: var(--primary-container-hover); color: var(--on-primary-container); }
.fab-improvement::before, .fab::before {
  font-family: 'Material Symbols Outlined'; content: 'edit'; font-size: 22px; line-height: 1;
}
.fab-improvement span, .fab span { display: inline; white-space: nowrap; }

/* =====================================================================
   Modal / dialog
   ===================================================================== */
.modal-overlay, .login-modal {
  position: fixed; inset: 0; background: rgba(34,26,23,.45);
  z-index: 9000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-content {
  background: var(--surface); border-radius: var(--r-l); padding: 32px;
  max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--e3);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; position: relative; padding-right: 44px; }
.modal-header h2 { color: var(--on-surface); margin: 0; }
.modal-close {
  position: absolute; top: 0; right: 0; width: 44px; height: 44px; border-radius: var(--r-full);
  background: var(--surface-container-high); border: none; color: var(--on-surface-variant);
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background-color .15s ease;
}
.modal-close:hover { background: var(--surface-container-highest); }

/* =====================================================================
   Tabellen & formulieren
   ===================================================================== */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--outline-variant); }
.table th { font-weight: 600; font-family: var(--font-sans); background: var(--surface-container-low); color: var(--on-surface); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-family: var(--font-sans); color: var(--on-surface); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; font-family: var(--font-sans); font-size: 16px;
  border: 1px solid var(--outline); border-radius: var(--r-s); background: var(--surface); color: var(--on-surface);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* =====================================================================
   Site-header (topbar)
   ===================================================================== */
.header {
  background: var(--surface); padding: 12px 32px; border-bottom: 1px solid var(--surface-container-high);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 100;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand .name { font-family: var(--font-serif); font-size: 21px; font-weight: 600; color: var(--on-surface); line-height: 1.1; }
.brand .tag { font-family: var(--font-sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-surface-muted); }
.logo { font-family: var(--font-serif); font-size: 21px; font-weight: 600; color: var(--on-surface); text-decoration: none; }
.logo:hover { text-decoration: none; color: var(--on-surface); }

/* Pill-navigatie */
.nav { display: flex; gap: 4px; align-items: center; position: relative; }
.nav a { font-family: var(--font-sans); font-size: 17px; color: var(--on-surface); padding: 11px 18px; border-radius: var(--r-full); text-decoration: none; transition: background-color .15s ease; }
.nav a:hover { background: var(--surface-container); color: var(--on-surface); text-decoration: none; }
.nav a.active { background: var(--primary-container); color: var(--primary); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; padding: 8px; color: var(--on-surface); }
.nav-close { display: none; position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 30px; cursor: pointer; color: var(--on-surface); }

/* Gebruikersmenu */
.user-menu { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 12px; border-radius: var(--r-full); }
.user-menu:hover { background: var(--surface-container); }
.user-avatar {
  width: 36px; height: 36px; border-radius: var(--r-full); background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; flex-shrink: 0; object-fit: cover;
  font-family: var(--font-sans);
}
.user-name { color: var(--on-surface); font-size: 16px; font-weight: 500; white-space: nowrap; font-family: var(--font-sans); }
.user-arrow { color: var(--on-surface-variant); font-size: 12px; }
.user-dropdown { display: none; position: absolute; top: 100%; right: 0; background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--r-m); box-shadow: var(--e3); min-width: 180px; z-index: 200; margin-top: 8px; overflow: hidden; }
.user-menu:hover .user-dropdown, .user-dropdown:hover { display: block; }
.user-dropdown a { display: block; padding: 12px 18px; color: var(--on-surface); font-family: var(--font-sans); font-size: 16px; text-decoration: none; }
.user-dropdown a:hover { background: var(--surface-container-low); text-decoration: none; }

/* Inlog-knop (uitgelogd) */
.login-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--on-surface); border: 1px solid var(--outline); border-radius: var(--r-full); padding: 10px 18px; text-decoration: none; }
.login-link:hover { background: var(--surface-container); color: var(--on-surface); text-decoration: none; }
.login-link .ms { font-size: 20px; color: var(--on-surface-variant); }

/* =====================================================================
   Footer — inverse surface
   ===================================================================== */
.footer, .site-footer { background: var(--inverse-surface); color: var(--inverse-on-surface); padding: 48px 32px 32px; margin-top: 64px; }
.footer a, .site-footer a { color: var(--inverse-on-surface-dim); }
.footer a:hover, .site-footer a:hover { color: var(--inverse-on-surface); }
.footer h4 { color: var(--inverse-primary); font-family: var(--font-sans); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }

/* =====================================================================
   Mobiele bottom-navigatie (alleen < 768px)
   ===================================================================== */
.mobile-tabbar { display: none; }

/* =====================================================================
   Responsief
   ===================================================================== */
@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header { padding: 10px 16px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: fixed; inset: 0; background: var(--surface); z-index: 1000;
    flex-direction: column; align-items: stretch; gap: 6px; padding: 72px 20px 20px;
  }
  .nav.mobile-open { display: flex; }
  .nav-close { display: block; }
  .nav a { padding: 14px 16px; font-size: 19px; }
  .user-menu { margin-top: 12px; }
  .hero, .page-header { padding: 32px 24px; }
  .container { padding: 16px 16px 48px; }
  .card-grid { grid-template-columns: 1fr; }

  /* Bottom-navigatiebalk */
  body { padding-bottom: 76px; }
  .mobile-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: var(--surface-container); border-top: 1px solid var(--outline-variant);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-tabbar a { flex: 1; text-align: center; text-decoration: none; color: var(--on-surface-variant); }
  .mobile-tabbar .ic { display: inline-flex; align-items: center; justify-content: center; padding: 5px 20px; border-radius: var(--r-full); }
  .mobile-tabbar .ms { font-size: 24px; }
  .mobile-tabbar .lbl { display: block; font-family: var(--font-sans); font-size: 13px; padding-top: 3px; }
  .mobile-tabbar a.active { color: var(--on-primary-container); }
  .mobile-tabbar a.active .ic { background: var(--primary-container); }
  .mobile-tabbar a.active .ms { color: var(--on-primary-container); }
  .mobile-tabbar a.active .lbl { color: var(--on-surface); font-weight: 600; }

  /* FAB boven de balk houden */
  .fab-improvement, .fab { bottom: 92px; }
}
