
:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --primary: #1a3a5c;
  --accent: #c8102e;
  --accent-light: #fce4e6;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* HEADER */
header {
  background: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: -0.3px;
}
.logo:hover { opacity: 0.85; }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
nav a:hover { background: rgba(255,255,255,0.15); color: white; }
.vraag-knop {
  background: var(--accent);
  color: white !important;
  font-weight: 600;
}
.vraag-knop:hover { background: #a00d25 !important; }

/* SEARCH */
.search-box {
  margin-left: auto;
  position: relative;
  width: 240px;
}
#search-input {
  width: 100%;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  background: rgba(255,255,255,0.15);
  color: white;
  outline: none;
  transition: background 0.2s;
}
#search-input::placeholder { color: rgba(255,255,255,0.6); }
#search-input:focus { background: rgba(255,255,255,0.25); }
#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  color: var(--text);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 200;
  margin-top: 4px;
}
#search-results a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
#search-results a:last-child { border-bottom: none; }
#search-results a:hover { background: var(--accent-light); }
#search-results .search-cat { font-size: 11px; color: var(--text-muted); display: block; }

/* MAIN */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, var(--primary), #2a5a8c);
  color: white;
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.hero h1 { font-size: 2.2em; margin-bottom: 12px; }
.hero p { font-size: 1.1em; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* SECTIONS */
.section { margin-bottom: 48px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section h1 { font-size: 1.8em; margin-bottom: 8px; }
.section h2 { font-size: 1.4em; }
.meer-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.meer-link:hover { text-decoration: underline; }
.section-desc { color: var(--text-muted); margin-top: 8px; }

/* VRAGEN GRID */
.vraag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.vraag-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.vraag-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.vraag-datum { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.vraag-card h3 { font-size: 1.05em; margin: 8px 0; line-height: 1.4; }
.vraag-card p { font-size: 14px; color: var(--text-muted); }

/* CATEGORIE GRID */
.categorie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.categorie-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.categorie-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.categorie-card h3 { font-size: 1em; margin-bottom: 4px; }
.cat-count { font-size: 13px; color: var(--text-muted); }

/* VRAGEN LIJST */
.vraag-lijst { list-style: none; }
.vraag-lijst li {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.vraag-lijst a {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
  align-items: baseline;
}
.vraag-lijst a:hover { color: var(--accent); }
.vraag-item-datum {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 130px;
  flex-shrink: 0;
}
.vraag-item-titel { font-weight: 500; }

/* ARTIKEL */
.vraag-artikel, .artikel-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.vraag-artikel h1 { font-size: 1.8em; margin-bottom: 8px; line-height: 1.3; }
.vraag-datum { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.vraag-desc { font-size: 1.1em; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }

/* ARTIKEL INHOUD */
.artikel-inhoud {
  line-height: 1.8;
  font-size: 1.05em;
}
.artikel-inhoud h2 { font-size: 1.3em; margin: 24px 0 12px; }
.artikel-inhoud h3 { font-size: 1.1em; margin: 20px 0 8px; }
.artikel-inhoud p { margin-bottom: 16px; }
.artikel-inhoud ul, .artikel-inhoud ol { margin: 12px 0 16px 24px; }
.artikel-inhoud li { margin-bottom: 6px; }
.artikel-inhoud a { color: var(--accent); }
.artikel-inhoud img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.artikel-inhoud blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--accent-light);
  border-radius: 0 8px 8px 0;
}
.artikel-desc { font-size: 14px; color: var(--text-muted); margin: 4px 0 12px; }

/* CAT OVERZICHT */
.cat-overzicht { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.cat-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.cat-group h2 { font-size: 1.1em; margin-bottom: 4px; }
.cat-group h2 a { color: var(--primary); text-decoration: none; }
.cat-group h2 a:hover { color: var(--accent); }
.cat-group ul { list-style: none; margin-top: 12px; }
.cat-group li { padding: 3px 0; }
.cat-group li a { color: var(--text); text-decoration: none; font-size: 14px; }
.cat-group li a:hover { color: var(--accent); }
.cat-info { color: var(--text-muted); margin-bottom: 20px; }

/* VERTAAL */
.vertaal-lijst { max-width: 700px; }
.alpha-letter {
  font-size: 1.3em;
  color: var(--accent);
  margin: 24px 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
}
.vertaal-item {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.vertaal-item summary {
  cursor: pointer;
  font-weight: 500;
  padding: 8px 0;
  font-size: 1.05em;
}
.vertaal-item summary:hover { color: var(--accent); }
.vertaal-inhoud {
  padding: 12px 0;
  line-height: 1.7;
  font-size: 14px;
}
.bron-link { font-size: 12px; margin-top: 8px; }
.bron-link a { color: var(--text-muted); }

/* FORMULIER */
.form-section {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--surface);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-group .hulp {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.submit-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.submit-btn:hover { background: #a00d25; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.bericht-box {
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 20px;
  font-weight: 500;
  display: none;
}
.bericht-box.succes { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.bericht-box.fout { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* FOOTER */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 32px 24px;
  margin-top: 48px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-small { font-size: 13px; opacity: 0.7; margin-top: 8px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; margin: 0; }
  .hero { padding: 40px 16px; }
  .hero h1 { font-size: 1.5em; }
  .vraag-grid { grid-template-columns: 1fr; }
  .categorie-grid { grid-template-columns: 1fr 1fr; }
  .cat-overzicht { grid-template-columns: 1fr; }
  .vraag-artikel, .artikel-card { padding: 20px; }
}
