@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #C0392B;
  --primary-dark: #922B21;
  --primary-light: #FADBD8;
  --accent: #F0B429;
  --bg: #F8F4F1;
  --surface: #FFFFFF;
  --border: #E8E0D8;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --sidebar-w: 280px;
  --header-h: 64px;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --green: #16A34A;
  --red: #DC2626;
  --blue: #2563EB;
  --yellow: #D97706;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── PINCODE OVERLAY ── */
#pin-overlay {
  position: fixed; inset: 0;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s;
}
#pin-overlay.hidden { opacity: 0; pointer-events: none; }

.pin-box {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 340px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.pin-box .logo-area {
  width: 64px; height: 64px;
  background: var(--primary);
  border-radius: 16px;
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.pin-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}
.pin-box p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.pin-dots {
  display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 1.5rem;
}
.pin-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: all 0.2s;
}
.pin-dot.filled { background: var(--primary); border-color: var(--primary); }

.pin-keypad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.pin-key {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.pin-key:hover { background: var(--bg); border-color: var(--primary); }
.pin-key.delete { color: var(--text-muted); font-size: 0.9rem; }
.pin-key.empty { border: none; background: transparent; pointer-events: none; }
.pin-error { color: var(--red); font-size: 0.85rem; margin-top: 0.75rem; min-height: 1.2rem; }

/* ── HEADER ── */
header {
  height: var(--header-h);
  background: var(--primary);
  display: flex; align-items: center;
  padding: 0 1.5rem;
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.header-logo {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
}
.header-logo .badge {
  background: rgba(255,255,255,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}
.header-actions {
  margin-left: auto;
  display: flex; gap: 0.5rem; align-items: center;
}
.btn-export {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-export:hover { background: rgba(255,255,255,0.25); }

.hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 0.5rem;
  margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: white; margin: 5px 0;
  border-radius: 2px; transition: all 0.3s;
}

/* ── LAYOUT ── */
.layout {
  display: flex;
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding: 1.5rem 0;
  z-index: 90;
  transition: transform 0.3s;
}
.sidebar-section {
  padding: 0.35rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1rem;
}
.sidebar-section:first-child { margin-top: 0; }
.nav-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
}
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
  font-weight: 600;
}
.nav-item .icon { font-size: 1rem; width: 1.2rem; text-align: center; flex-shrink: 0; }

/* ── MAIN CONTENT ── */
main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 2.5rem 3rem 4rem;
  max-width: calc(100% - var(--sidebar-w));
}

/* ── SECTIONS ── */
.section {
  max-width: 820px;
  margin: 0 auto 5rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.section-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.section-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}
.section-intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  border-left: 3px solid var(--primary-light);
  padding-left: 1rem;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.card p, .card li { font-size: 0.9rem; color: var(--text); line-height: 1.7; }
.card ul, .card ol { padding-left: 1.25rem; }
.card li { margin-bottom: 0.3rem; }

/* ── SWOT GRID ── */
.swot-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1.5rem;
}
.swot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.swot-card.strengths { border-top: 4px solid var(--green); }
.swot-card.weaknesses { border-top: 4px solid var(--red); }
.swot-card.opportunities { border-top: 4px solid var(--blue); }
.swot-card.threats { border-top: 4px solid var(--yellow); }
.swot-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.swot-card.strengths .swot-label { color: var(--green); }
.swot-card.weaknesses .swot-label { color: var(--red); }
.swot-card.opportunities .swot-label { color: var(--blue); }
.swot-card.threats .swot-label { color: var(--yellow); }
.swot-card ul { padding-left: 1.1rem; }
.swot-card li { font-size: 0.85rem; margin-bottom: 0.35rem; line-height: 1.5; }

/* ── START/STOP/ETC ── */
.ssdu-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ssdu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.ssdu-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  width: fit-content;
}
.ssdu-card.start .ssdu-label { background: #DCFCE7; color: #16A34A; }
.ssdu-card.stop .ssdu-label { background: #FEE2E2; color: #DC2626; }
.ssdu-card.doorgaan .ssdu-label { background: #DBEAFE; color: #2563EB; }
.ssdu-card.updaten .ssdu-label { background: #FEF3C7; color: #D97706; }
.ssdu-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.ssdu-card p { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.ssdu-item { margin-bottom: 0.85rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border); }
.ssdu-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* ── BRONNEN ── */
.bron-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex; gap: 1rem; align-items: flex-start;
  box-shadow: var(--shadow);
}
.bron-nr {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700; font-size: 0.8rem;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 0.1rem;
}
.bron-content h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.bron-content p { font-size: 0.83rem; color: var(--text-muted); }
.bron-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-right: 0.3rem; margin-bottom: 0.3rem;
}
.tag-theologie { background: #EDE9FE; color: #7C3AED; }
.tag-onderzoek { background: #DBEAFE; color: #2563EB; }
.tag-vrijwilligers { background: #FEF3C7; color: #D97706; }
.tag-uitval { background: #FEE2E2; color: #DC2626; }
.tag-plek { background: #DCFCE7; color: #16A34A; }

/* ── JAARPLAN TIMELINE ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0.6rem; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute; left: -1.85rem; top: 0.25rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 2px solid white;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-month {
  font-weight: 700; font-size: 0.85rem;
  color: var(--primary); margin-bottom: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}
.timeline-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; }
.timeline-card ul { padding-left: 1.1rem; }
.timeline-card li { font-size: 0.85rem; margin-bottom: 0.3rem; color: var(--text); }

/* ── 5-JARENPLAN ── */
.jaar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.jaar-card:nth-child(2) { border-left-color: #9333EA; }
.jaar-card:nth-child(3) { border-left-color: #0891B2; }
.jaar-card:nth-child(4) { border-left-color: #16A34A; }
.jaar-card:nth-child(5) { border-left-color: #D97706; }
.jaar-header { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.75rem; }
.jaar-nr { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.jaar-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; }
.jaar-theme {
  font-style: italic; color: var(--text-muted); font-size: 0.85rem;
  margin-bottom: 0.75rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.jaar-card ul { padding-left: 1.1rem; }
.jaar-card li { font-size: 0.875rem; margin-bottom: 0.3rem; }

/* ── VISIE ── */
.visie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.visie-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.visie-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.route-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex; gap: 1rem; align-items: flex-start;
  box-shadow: var(--shadow);
}
.route-nr {
  background: var(--primary);
  color: white; font-weight: 700; font-size: 0.85rem;
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.route-content h4 { font-size: 0.9rem; font-weight: 700; }
.route-content p { font-size: 0.85rem; color: var(--text-muted); }
.kernwaarde-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.kernwaarde-pill {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  display: flex; align-items: center; gap: 0.4rem;
}

/* ── QUOTE ── */
.quote-block {
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  position: relative;
}
.quote-block::before {
  content: '"'; font-family: 'Playfair Display', serif;
  font-size: 5rem; line-height: 1; color: rgba(255,255,255,0.2);
  position: absolute; top: -0.5rem; left: 1.25rem;
}
.quote-block p {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; line-height: 1.6;
  position: relative; z-index: 1;
}

/* ── AANPAK STEPS ── */
.steps { display: flex; flex-direction: column; gap: 1rem; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
  box-shadow: var(--shadow);
}
.step-nr {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: white;
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-content h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.step-content p { font-size: 0.85rem; color: var(--text-muted); }
.step.done { opacity: 0.7; }
.step.done .step-nr { background: var(--green); }

/* ── NOTES SYSTEM ── */
.note-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.note-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.note-count {
  background: var(--primary);
  color: white;
  font-size: 0.65rem; font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 10px; min-width: 18px; text-align: center;
}

.notes-panel {
  display: none;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}
.notes-panel.open { display: block; }
.notes-list { margin-bottom: 1rem; }
.note-item {
  background: white;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}
.note-meta { font-size: 0.72rem; color: #92400E; margin-bottom: 0.3rem; font-weight: 600; }
.note-text { font-size: 0.85rem; }
.notes-form { display: flex; flex-direction: column; gap: 0.5rem; }
.notes-form input, .notes-form textarea {
  border: 1px solid #FDE68A; border-radius: 8px;
  padding: 0.6rem 0.75rem; font-size: 0.85rem;
  font-family: 'Inter', sans-serif; background: white;
  resize: vertical;
}
.notes-form input:focus, .notes-form textarea:focus {
  outline: none; border-color: var(--primary);
}
.note-submit {
  align-self: flex-start;
  background: var(--primary); color: white;
  border: none; border-radius: 8px;
  padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif;
}
.note-submit:hover { background: var(--primary-dark); }
.notes-empty { color: #92400E; font-size: 0.85rem; font-style: italic; margin-bottom: 0.75rem; }

/* ── ALLE NOTITIES PAGINA ── */
.notities-sectie {
  margin-bottom: 2rem;
}
.notities-sectie-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem; gap: 1rem;
}
.notities-sectie-titel {
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.5rem;
}
.notities-sectie-count {
  background: var(--primary-light); color: var(--primary);
  font-size: 0.72rem; font-weight: 700;
  padding: 0.15rem 0.55rem; border-radius: 20px;
}
.notitie-kaart {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.6rem;
}
.notitie-kaart-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem;
}
.notitie-kaart-meta { font-size: 0.75rem; color: #92400E; font-weight: 600; }
.notitie-kaart-acties { display: flex; gap: 0.4rem; flex-shrink: 0; }
.notitie-actie-btn {
  background: none; border: 1px solid #FDE68A;
  border-radius: 6px; padding: 0.2rem 0.5rem;
  font-size: 0.75rem; cursor: pointer; color: #92400E;
  font-family: 'Inter', sans-serif; transition: all 0.15s;
}
.notitie-actie-btn:hover { background: #FDE68A; }
.notitie-actie-btn.verwijder:hover { background: #FEE2E2; border-color: #FCA5A5; color: var(--red); }
.notitie-kaart-tekst { font-size: 0.875rem; line-height: 1.6; }
.notitie-edit-form {
  display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem;
}
.notitie-edit-form textarea {
  border: 1px solid #FDE68A; border-radius: 8px;
  padding: 0.6rem 0.75rem; font-size: 0.875rem;
  font-family: 'Inter', sans-serif; resize: vertical;
  background: white;
}
.notitie-edit-form textarea:focus { outline: none; border-color: var(--primary); }
.notitie-edit-acties { display: flex; gap: 0.5rem; }
.notitie-edit-opslaan {
  background: var(--primary); color: white;
  border: none; border-radius: 8px;
  padding: 0.4rem 0.9rem; font-size: 0.83rem; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif;
}
.notitie-edit-annuleer {
  background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 0.4rem 0.9rem;
  font-size: 0.83rem; cursor: pointer; font-family: 'Inter', sans-serif;
}
.notitie-toevoegen-sectie {
  background: white; border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-bottom: 0.6rem;
}
.notitie-toevoegen-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
  font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 0.4rem;
  padding: 0;
}
.notitie-toevoegen-toggle:hover { color: var(--primary); }
.notitie-toevoegen-form {
  display: none; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem;
}
.notitie-toevoegen-form.open { display: flex; }
.notitie-toevoegen-form input, .notitie-toevoegen-form textarea {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0.6rem 0.75rem; font-size: 0.85rem;
  font-family: 'Inter', sans-serif; resize: vertical;
}
.notitie-toevoegen-form input:focus, .notitie-toevoegen-form textarea:focus {
  outline: none; border-color: var(--primary);
}
.notitie-sectie-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}

/* ── TRENDS ── */
.trend-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.trend-nr {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 20px;
  margin-bottom: 0.6rem;
}
.trend-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.trend-card p { font-size: 0.875rem; line-height: 1.7; color: var(--text); margin-bottom: 0.5rem; }
.trend-implication {
  background: var(--bg);
  border-left: 3px solid var(--primary);
  padding: 0.6rem 0.75rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.83rem;
  margin-top: 0.75rem;
}
.trend-implication strong { color: var(--primary); }

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th {
  background: var(--bg); padding: 0.65rem 1rem;
  text-align: left; font-weight: 700; font-size: 0.8rem;
  border-bottom: 2px solid var(--border); color: var(--text-muted);
}
td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* ── ACCORDION ── */
.accordion { margin-bottom: 1.5rem; }
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; cursor: pointer;
  gap: 0.75rem; user-select: none;
}
.accordion-header:hover { background: var(--bg); }
.accordion-title { font-size: 0.95rem; font-weight: 700; flex: 1; }
.accordion-subtitle { font-size: 0.8rem; color: var(--text-muted); }
.accordion-chevron {
  font-size: 0.75rem; color: var(--text-muted);
  transition: transform 0.2s; flex-shrink: 0;
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  display: none; padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}
.accordion-item.open .accordion-body { display: block; }

/* ── PRIORITEITENBORD ── */
.priority-board {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem; margin-bottom: 1.5rem;
}
.priority-col {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 200px;
}
.priority-col-header {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid;
}
.priority-col.hoog .priority-col-header { color: var(--red); border-color: var(--red); }
.priority-col.middel .priority-col-header { color: var(--yellow); border-color: var(--yellow); }
.priority-col.later .priority-col-header { color: var(--text-muted); border-color: var(--border); }

.priority-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow);
  cursor: default;
}
.priority-card-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 10px;
  margin-bottom: 0.4rem;
}
.tag-vrijwilligers { background: #FEF3C7; color: #D97706; }
.tag-overgangen { background: #DBEAFE; color: #2563EB; }
.tag-jeugdhonk { background: #DCFCE7; color: #16A34A; }
.tag-discipelschap { background: #EDE9FE; color: #7C3AED; }
.tag-leiderschap { background: #FCE7F3; color: #BE185D; }
.tag-ouders { background: #FEE2E2; color: #DC2626; }
.tag-structuur { background: #F3F4F6; color: #374151; }
.priority-card h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; }
.priority-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ── LEEFTIJDSMATRIX ── */
.age-matrix-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.age-matrix { width: 100%; border-collapse: collapse; font-size: 0.83rem; min-width: 600px; }
.age-matrix th {
  background: var(--primary); color: white;
  padding: 0.6rem 0.85rem; text-align: left;
  font-size: 0.78rem; font-weight: 700;
}
.age-matrix th:first-child { border-radius: 8px 0 0 0; }
.age-matrix th:last-child { border-radius: 0 8px 0 0; }
.age-matrix td { padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.age-matrix tr:last-child td { border-bottom: none; }
.age-matrix tr:hover td { background: var(--bg); }
.age-badge {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem;
  border-radius: 20px; white-space: nowrap;
}
.status-ok { color: var(--green); font-weight: 700; }
.status-warn { color: var(--yellow); font-weight: 700; }
.status-alert { color: var(--red); font-weight: 700; }
.age-gap-banner {
  background: #FEF3C7; border: 1px solid #FDE68A;
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-bottom: 1.25rem; display: flex; gap: 0.75rem; align-items: flex-start;
}
.age-gap-banner p { font-size: 0.875rem; }
.age-gap-banner strong { color: var(--yellow); }

/* ── VRAGENLIJST ── */
.vl-progress {
  display: flex; gap: 0.35rem; margin-bottom: 2rem;
}
.vl-step-dot {
  height: 4px; flex: 1; border-radius: 4px;
  background: var(--border); transition: background 0.3s;
}
.vl-step-dot.active { background: var(--primary); }
.vl-step-dot.done { background: var(--green); }

.vl-section { display: none; }
.vl-section.active { display: block; }
.vl-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; margin-bottom: 0.35rem;
}
.vl-section-desc { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }

.vl-question { margin-bottom: 1.5rem; }
.vl-label {
  font-size: 0.9rem; font-weight: 700;
  display: block; margin-bottom: 0.6rem;
}
.vl-sublabel { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.6rem; display: block; }

.vl-radio-group, .vl-check-group { display: flex; flex-direction: column; gap: 0.4rem; }
.vl-option {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.6rem 0.85rem; cursor: pointer;
  font-size: 0.875rem; transition: all 0.15s;
}
.vl-option:hover { border-color: var(--primary); background: var(--primary-light); }
.vl-option input { accent-color: var(--primary); }
.vl-option.selected { border-color: var(--primary); background: var(--primary-light); }

.vl-scale {
  display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap;
}
.vl-scale-btn {
  width: 42px; height: 42px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.vl-scale-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.vl-scale-btn.selected { background: var(--primary); color: white; border-color: var(--primary); }
.vl-scale-labels {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem;
}

.vl-textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 0.7rem 0.85rem; font-size: 0.875rem;
  font-family: 'Inter', sans-serif; resize: vertical; min-height: 80px;
}
.vl-textarea:focus { outline: none; border-color: var(--primary); }
.vl-input {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 0.65rem 0.85rem; font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
}
.vl-input:focus { outline: none; border-color: var(--primary); }

.vl-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.vl-btn-prev {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 0.6rem 1.2rem; font-size: 0.875rem; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.vl-btn-next {
  background: var(--primary); color: white; border: none; border-radius: 8px;
  padding: 0.6rem 1.5rem; font-size: 0.875rem; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.vl-btn-next:hover { background: var(--primary-dark); }
.vl-step-indicator { font-size: 0.8rem; color: var(--text-muted); }

/* Resultaten */
.vl-results { display: none; }
.vl-results.active { display: block; }
.vl-result-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem; box-shadow: var(--shadow);
}
.vl-result-q { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.35rem; }
.vl-result-a { font-size: 0.875rem; }
.vl-result-bar { height: 6px; background: var(--primary-light); border-radius: 3px; margin-top: 0.35rem; }
.vl-result-bar-fill { height: 100%; background: var(--primary); border-radius: 3px; }
.vl-prompt-box {
  background: #1A1A2E; color: #E2E8F0;
  border-radius: var(--radius); padding: 1.25rem;
  font-size: 0.8rem; line-height: 1.7; white-space: pre-wrap;
  max-height: 300px; overflow-y: auto; margin-bottom: 1rem;
  font-family: 'Courier New', monospace;
}
.vl-copy-btn {
  background: var(--primary); color: white; border: none;
  border-radius: 8px; padding: 0.6rem 1.25rem;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.vl-submitted-banner {
  background: #DCFCE7; border: 1px solid #86EFAC;
  border-radius: var(--radius); padding: 1.25rem;
  text-align: center; margin-bottom: 1.5rem;
}
.vl-submitted-banner h3 { color: var(--green); font-size: 1.1rem; margin-bottom: 0.25rem; }
.vl-submitted-banner p { color: #166534; font-size: 0.875rem; }
.vl-personen-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0;
}
.vl-persoon-chip {
  background: var(--primary-light); color: var(--primary);
  font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }
  .sidebar.open { transform: translateX(0); }
  main { margin-left: 0; max-width: 100%; padding: 1.5rem 1.25rem 3rem; }
  .hamburger { display: block; }
  .btn-export { display: none; }
  .swot-grid, .ssdu-grid, .visie-grid { grid-template-columns: 1fr; }
  .header-logo .badge { display: none; }
  .overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 199; }
  .overlay.open { display: block; }
}
@media (max-width: 600px) {
  main { padding: 1rem 1rem 3rem; }
  .section-title { font-size: 1.4rem; }
  .quote-block p { font-size: 1rem; }
}
