:root {
  --blue-900: #0D2B6B;
  --blue-800: #1565C0;
  --blue-700: #1976D2;
  --blue-500: #2196F3;
  --blue-100: #BBDEFB;
  --blue-50:  #E3F2FD;
  --white:    #FFFFFF;
  --gray-100: #F5F7FA;
  --gray-200: #E8ECF0;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow:    0 2px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--gray-100);
}

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

/* ── Navigation ────────────────────────────────────────── */
.site-header {
  background: var(--blue-800);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-logo {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 0;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--blue-100); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: flex;
  list-style: none;
  margin-left: auto;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 0.9rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-menu > li > a:hover,
.nav-menu > li:hover > a { background: var(--blue-700); text-decoration: none; }

.nav-menu > li > a .arrow { font-size: 0.7rem; margin-left: 2px; }

/* Dropdowns */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--blue-900);
  list-style: none;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  border-top: 3px solid var(--blue-500);
}

.nav-menu > li.has-dropdown:hover .nav-dropdown,
.nav-menu > li.has-dropdown.open .nav-dropdown { display: block; }

.nav-dropdown li a {
  display: block;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s;
}
.nav-dropdown li a:hover { background: var(--blue-700); color: var(--white); text-decoration: none; }

/* ── Banner ─────────────────────────────────────────────── */
.banner-wrapper { background: var(--blue-900); line-height: 0; text-align: center; padding: 1rem 0; }
.site-banner { width: 33.33%; height: auto; display: inline-block; }

/* ── Main content ────────────────────────────────────────── */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--white);
  min-height: 60vh;
  box-shadow: var(--shadow);
}

/* ── Typography ──────────────────────────────────────────── */
H1, h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--blue-100);
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}

H2, h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-700);
  margin: 1.4rem 0 0.4rem;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}

H3, h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-800);
  margin: 1.1rem 0 0.3rem;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}

H4, h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 0.9rem 0 0.25rem;
}

P, p {
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 0.85rem;
  line-height: 1.7;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}

A, a { color: var(--blue-700); text-decoration: none; }
A:hover, a:hover { color: var(--blue-800); text-decoration: underline; }
A:visited, a:visited { color: var(--blue-800); }

UL, ul { font-size: 1rem; margin: 0.5rem 0 1rem 1.5rem; line-height: 1.7; font-family: 'Segoe UI', Arial, Helvetica, sans-serif; }
OL, ol { font-size: 1rem; margin: 0.5rem 0 1rem 1.5rem; line-height: 1.7; font-family: 'Segoe UI', Arial, Helvetica, sans-serif; }
li { margin-bottom: 0.3rem; }

hr { border: none; border-top: 2px solid var(--gray-200); margin: 1.5rem 0; }

/* ── Tables ──────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.data-table th {
  background: var(--blue-50);
  color: var(--blue-800);
  font-weight: 600;
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--blue-100);
}
.data-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.data-table tr:hover td { background: var(--blue-50); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.9rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--blue-100); }
.card h3 { margin-top: 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--blue-700);
  color: var(--white);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover,
.btn:visited,
.btn:active { background: var(--blue-800); color: var(--white); text-decoration: none; }

/* ── Nieuws lijst ─────────────────────────────────────────── */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--gray-200); }
.news-list li:last-child { border-bottom: none; }
.news-list li a { font-weight: 500; }
.news-meta { color: var(--gray-700); font-size: 0.85rem; }

/* ── Intro blok (homepage) ────────────────────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.intro-grid img { border-radius: 8px; box-shadow: var(--shadow); }

/* ── Highlight box ────────────────────────────────────────── */
.highlight-box {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
  padding: 1rem 1.2rem;
  border-radius: 0 6px 6px 0;
  margin: 1.2rem 0;
}
.highlight-box h3 { margin-top: 0; color: var(--blue-800); }

/* ── Contact info ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-info p { margin-bottom: 0.5rem; max-width: none; }

/* ── Bestuur / Commissies tabel ───────────────────────────── */
.persons-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.5rem; }
.persons-table td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--gray-200); vertical-align: top; font-size: 0.95rem; font-family: 'Segoe UI', Arial, sans-serif; }
.persons-table td:first-child { font-weight: 600; color: var(--blue-800); white-space: nowrap; width: 200px; }
.persons-table tr:last-child td { border-bottom: none; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--blue-900);
  color: var(--white);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
}
.site-footer p { color: var(--white); }
.site-footer a { color: var(--blue-100); }
.site-footer a:hover { color: var(--white); text-decoration: none; }

/* ── Backward compat: archief pagina's (tabel-layout) ─────── */
#hoofdtabel {
  width: 100% !important;
  max-width: 1050px !important;
  margin: 0 auto !important;
  border: none !important;
  border-collapse: collapse;
}
#cel_1 img { width: 33.33%; height: auto; display: block; margin: 1rem auto; }
#cel_3 { display: none !important; }
#hoofdvak {
  width: 100% !important;
  padding: 1.5rem !important;
  vertical-align: top !important;
  background: var(--white);
  font-family: 'Segoe UI', Arial, sans-serif;
}
div.copy { display: none; }
div.sdmenu { display: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-900);
    box-shadow: var(--shadow-lg);
    padding-bottom: 0.5rem;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 0.75rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.07); }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    background: rgba(0,0,0,0.25);
    display: none;
  }
  .nav-menu > li.has-dropdown.open .nav-dropdown { display: block; }

  .intro-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-main { padding: 1.25rem 1rem; }
  h1, H1 { font-size: 1.35rem; }
}

@media (max-width: 480px) {
  .persons-table td:first-child { width: auto; }
  .btn { width: 100%; text-align: center; }
}
