/* Stijl voor delentseaarde.nl - bewust eenvoudig en toegankelijk */

:root {
  --groen: #2e6b34;
  --groen-donker: #1f4a24;
  --groen-licht: #e8f1e6;
  --tekst: #26302a;
  --grijs: #6b756e;
  --lijn: #d5dcd4;
  --achtergrond: #fbfaf7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--tekst);
  background: var(--achtergrond);
}

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

a { color: var(--groen); }
a:hover { color: var(--groen-donker); }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--groen);
  color: #fff;
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; z-index: 10; }

:focus-visible { outline: 3px solid var(--groen); outline-offset: 2px; }

/* ---- kop ---- */
.site-header {
  background: var(--groen-licht);
  border-bottom: 3px solid var(--groen);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--groen-donker);
  text-decoration: none;
  padding: 0.5rem 0;
}

.brand img { height: 3rem; width: auto; }

.hoofdmenu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hoofdmenu a,
.hoofdmenu summary {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  color: var(--groen-donker);
  text-decoration: none;
  cursor: pointer;
}

.hoofdmenu a:hover,
.hoofdmenu summary:hover,
.hoofdmenu details[open] > summary {
  background: #fff;
}

.submenu { position: relative; }

.submenu details > ul {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 10rem;
  background: #fff;
  border: 1px solid var(--lijn);
  border-radius: 0 0 0.35rem 0.35rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
}

.submenu summary { list-style: none; }
.submenu summary::after { content: " \25be"; }
.submenu details[open] > summary { border-radius: 0.35rem 0.35rem 0 0; }

/* ---- inhoud ---- */
main {
  padding: 1.5rem 1rem 3rem;
}

h1, h2, h3, h4 { color: var(--groen-donker); line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 1rem 0 1rem; }
h2 { font-size: 1.35rem; }
main :is(h2, h3):not(.teaser h2) { margin-top: 1.8rem; }

.meta {
  color: var(--grijs);
  font-size: 0.9rem;
  margin: 0.25rem 0 0.75rem;
}

.tag {
  display: inline-block;
  background: var(--groen-licht);
  border-radius: 1rem;
  padding: 0.1rem 0.7rem;
  font-size: 0.85rem;
  text-decoration: none;
}

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

article table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}
article th, article td {
  border: 1px solid var(--lijn);
  padding: 0.4rem 0.6rem;
  vertical-align: top;
}

blockquote {
  margin: 1rem 0;
  padding: 0.25rem 1rem;
  border-left: 4px solid var(--groen);
  background: var(--groen-licht);
}

/* teasers op home en in secties */
.teaser {
  border-bottom: 1px solid var(--lijn);
  padding: 1.2rem 0;
}
.teaser h2 { margin: 0 0 0.2rem; }
.teaser p { margin: 0.5rem 0; }
.read-more { font-size: 0.9rem; }

/* paginering (component paginator) */
.pagination { margin: 2rem 0; }
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pager__link {
  display: block;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--lijn);
  border-radius: 0.25rem;
  text-decoration: none;
}
.pager__link:hover { border-color: var(--groen); }
.pager__item--active .pager__link {
  background: var(--groen);
  border-color: var(--groen);
  color: #fff;
}
.pager__link svg { display: inline-block; vertical-align: middle; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.archief { margin-top: 1.5rem; }

.agenda-item {
  border-bottom: 1px solid var(--lijn);
  padding: 1.2rem 0;
}

.jaren {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  list-style: none;
  padding: 0;
  font-size: 1.15rem;
}

/* ---- voet ---- */
.site-footer {
  background: var(--groen-donker);
  color: #fff;
  padding: 1.5rem 0;
}
.site-footer a { color: #cfe6cf; }
.site-footer p { margin: 0.3rem 0; }

@media (max-width: 47.5rem) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
}
