:root {
  --bg: #f4f6f8;
  --accent: #2c3e50;
  --accent-light: #3a4a5a;
  --accent-hover: #1f2a38;
  --black: #111;
  --white: #fff;
  --border: #d0d7de;
}

/* =========================================================
   RESET & BASE
========================================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--black);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}


  .light-highlight {
    background-color: #E3F2FD ;
  }




/* =========================================================
   TYPOGRAPHY & SPACING
========================================================= */
.content > * {
  margin-bottom: 0.75rem;
}

p {
  margin: 0 0 0.75rem 0;
}

/* minder ruimte ALS NA TEKST EEN OPSOMMING KOMT */
p + ul,
p + ol {
  margin-top: -0.25rem;
}

/* OPSOMMINGEN – compact */
ul,
ol {
  margin: 0 0 0.5rem 0;
  padding-left: 1.4rem;
}

li {
  line-height: 1.35;
  margin: 0;
}

/* =========================================================
   HEADER
========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--white);
  padding: 16px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

header p {
  margin: 4px 0 0;
  font-size: 1.2rem;
  opacity: 0.9;
}

/* =========================================================
   HAMBURGER
========================================================= */
#menu-toggle {
  display: none;
  position: absolute;
  left: 16px;
  top: 16px;
  background: var(--white);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 101;
}

/* =========================================================
   LAYOUT
========================================================= */
main {
  display: flex;
}

/* =========================================================
   SIDEBAR
========================================================= */
.sidebar {
  width: 260px;
  position: fixed;
  top: 80px;
  bottom: 0;
  left: 0;
  height: calc(100vh - 80px);
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 0 16px 16px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  box-shadow: 2px 0 8px rgba(0,0,0,0.05);
  border-radius: 0 12px 12px 0;
  transition: left 0.3s ease;
  z-index: 100;
}

.sidebar-title {
  position: sticky;
  top: 0;
  background: var(--white);
  padding: 16px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.sidebar h2 {
  margin: 0 0 8px;
  padding-top: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar button,
.sidebar a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 6px;
  border: none;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.sidebar button:hover,
.sidebar a:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.toggle-btn::after {
  content: '▼';
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.toggle-btn.active::after {
  transform: rotate(-180deg);
}

/* =========================================================
   SUBMENU
========================================================= */
.submenu {
  max-height: 0;
  overflow: hidden;
  padding-left: 12px;
  margin-bottom: 8px;
  transition: max-height 0.3s ease;
}

.submenu a {
  display: block;
  margin-bottom: 4px;
  padding: 8px 14px;
  background: #eef2f7;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}

.submenu a:hover {
  background: var(--accent-light);
  color: var(--white);
}

/* =========================================================
   CONTENT
========================================================= */
.content {
  flex: 1;
  margin-left: 280px;
  padding: 28px;
  padding-bottom: 80px;
  overflow-y: auto;
}

.content h2 {
  margin-top: 2.2rem;
  padding-bottom: 8px;
  font-size: 2rem;
  font-weight: 700;
  border-bottom: 3px solid var(--accent);
}

/* =========================================================
   IMAGE BOX
========================================================= */
.image-box {
  max-width: 520px;
  margin: 32px auto;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.image-box img {
  width: 100%;
  display: block;
}

.image-box figcaption {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #555;
  background: #f9fafb;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* =========================================================
   TABLES – COMPACTERE REGELAFSTAND
========================================================= */
.antwoorden-table,
.antwoorden-table-8 {
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.35; /* 🔧 compacter dan body */
  background: #f9fafb;
  border: 2px solid var(--black);
  border-radius: 8px;
}


.antwoorden-table th:nth-child(-n+3),
.antwoorden-table td:nth-child(-n+3),
.antwoorden-table-8 th:nth-child(-n+7),
.antwoorden-table-8 td:nth-child(-n+7) {
  width: 60px;
  text-align: left;
}

.antwoorden-table th:nth-child(4),
.antwoorden-table td:nth-child(4),
.antwoorden-table-8 th:nth-child(8),
.antwoorden-table-8 td:nth-child(8) {
  width: 1500px;
  text-align: left;
  padding-left: 12px;
}

.antwoorden-table td,
.antwoorden-table-8 td {
  padding: 5px 8px; /* iets strakker */
  vertical-align: middle;
  
  
}



table {
  display: block;
  overflow-x: auto;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  padding: 16px;
  text-align: center;
  background: var(--accent);
  color: var(--white);
  font-size: 0.95rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  #menu-toggle { display: block; }

  .sidebar {
    left: -100%;
    top: 0;
    height: 100vh;
    border-radius: 0;
    z-index: 200;
  }

  .sidebar.open { left: 0; }

  body.sidebar-active::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 150;
  }

  .content {
    margin-left: 0;
    padding: 20px;
  }

  .image-box {
    max-width: 100%;
  }
  
}
