:root {
  --surface-0: hsl(209 86% 97%);
  --surface-2: hsl(0 0% 100%);
  --text-primary: hsl(60 2% 17%);
  --text-secondary: hsl(0 0% 0%);
  --text-muted: hsl(31 15% 54%);
  --border: #6C8A60;
  --accent-werk: hsl(36 86% 55%);
  --accent-ev: hsl(157 65% 34%);
  --accent-done: hsl(36 20% 80%);
  --accent-today: hsl(340 60% 58%);
  --accent-nieuws-1: #E24459;
  --accent-nieuws-2: #ECCF6A;
  --accent-nieuws-3: #61666C;
  --accent-nieuws-4: hsl(210 71% 54%);
  --tint-1: hsl(209 86% 97%);
  --tint-1-text: hsl(33 85% 28%);
  --tint-2: hsl(159 50% 92%);
  --tint-2-text: hsl(165 76% 25%);
  --tint-3: hsl(339 68% 95%);
  --tint-3-text: hsl(340 49% 40%);
  --label-w: 176px;
  --today: 0;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --grid-line: hsl(36 26% 37% / 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
}

h2 {
  font-size: 21px;
  font-weight: 500;
  margin: 0;
}

p {
  margin: 0;
}

/* Header */
.site-header {
  background: var(--surface-2);
  border-bottom: 4px solid #6C8A60;
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 16px;
}

.brand {
  display: inline-grid;
  grid-template-columns: max-content;
  gap: 3px;
}

.brand-mark {
  width: 100%;
  aspect-ratio: 640 / 282;
  background-image: url("/image/logomark.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  margin: 0 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-today);
}

.logo {
  font-size: 26px;
  font-weight: 200;
  margin-bottom: 5px;
  line-height: 0;
}

.site-header nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 30px;
}

.site-header nav a:hover {
  background: var(--tint-1);
  color: var(--tint-1-text);
}

.hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  background-image: url("/image/achtergrond-1.jpg");
  background-size: cover;
  background-position: center 60%;
  background-color: var(--tint-1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(30 67% 9% / 0.72), hsl(30 67% 9% / 0.15) 55%, hsl(30 67% 9% / 0));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 26px;
  color: hsl(none 0% 100%);
}

.hero-titel {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 12px hsl(none 0% 0% / 0.3);
}

.hero-sub {
  margin: 6px 0 0;
  font-size: 16px;
  color: hsl(none 0% 100% / 0.9);
  text-shadow: 0 1px 10px hsl(none 0% 0% / 0.35);
  max-width: 46ch;
}

main {
  padding: 28px 20px 48px;
}

main section + section {
  margin-top: 34px;
}

/* Sectiekop en filters */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filters {
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--text-secondary);
}

.filters label:hover {
  border-color: var(--accent-werk);
}

.filter-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#f-werk:checked ~ .section-head .filters label[for="f-werk"] {
  border-color: var(--accent-werk);
  background: var(--tint-1);
  color: var(--tint-1-text);
}

#f-ev:checked ~ .section-head .filters label[for="f-ev"] {
  border-color: var(--accent-ev);
  background: var(--tint-2);
  color: var(--tint-2-text);
}

#f-werk:not(:checked) ~ .card .row[data-type="werk"] {
  display: none;
}

#f-ev:not(:checked) ~ .card .row[data-type="ev"] {
  display: none;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.swatch-werk {
  background: var(--accent-werk);
}

.swatch-ev {
  background: var(--accent-ev);
}

/* Kaart en gantt */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px 20px;
}

.gantt {
  position: relative;
}

.grid-lines {
  position: absolute;
  top: 26px;
  bottom: 0;
  left: var(--label-w);
  right: 0;
  pointer-events: none;
  display: flex;
}

.grid-line {
  border-left: 1px solid var(--grid-line);
}

.grid-line:first-child {
  border-left: none;
}

.months {
  display: grid;
  grid-template-columns: var(--label-w) minmax(0, 1fr);
  margin-bottom: 8px;
}

.months-strip {
  display: flex;
}

.month {
  font-size: 12px;
  color: var(--text-secondary);
  padding-left: 6px;
}

.row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--label-w) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  border-top: 1px solid var(--tint-1);
}

.row:nth-child(even) {
  background: hsl(37 66% 83% / 0.28);
}

.row-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.row-dates {
  font-size: 12px;
  color: var(--text-secondary);
}

.badge-live {
  font-size: 11px;
  font-weight: 400;
  margin-left: 5px;
  background: var(--tint-3);
  color: var(--tint-3-text);
  border-radius: 999px;
  padding: 1px 7px;
}

.track {
  position: relative;
  height: 26px;
  border-radius: 999px;
}

.bar {
  position: absolute;
  top: 4px;
  height: 18px;
  border-radius: 999px;
  min-width: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 11px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
}

.bar-label {
  display: block;
  overflow-x: hidden;
  overflow-y: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.bar-werk {
  background: var(--accent-werk);
  color: hsl(34 96% 21%);
}

.bar-ev {
  background: var(--accent-ev);
  color: hsl(none 0% 100% / 0.95);
}

.bar-done {
  background: var(--accent-done);
  color: hsl(37 12% 26%);
}

.todayline {
  position: absolute;
  top: 14px;
  bottom: 0;
  left: calc(var(--label-w) + (100% - var(--label-w)) * var(--today));
  border-left: 2px dashed var(--accent-today);
  pointer-events: none;
}

.todaylabel {
  position: absolute;
  top: -6px;
  left: calc(var(--label-w) + (100% - var(--label-w)) * var(--today));
  transform: translateX(-50%);
  font-size: 11px;
  color: hsl(none 0% 100%);
  background: var(--accent-today);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

/* Nieuws */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.news-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent-nieuws-1);
  border-radius: 0 0 12px 12px;
  padding: 14px 18px 16px;
}

.news-card:nth-child(4n+2) {
  border-top-color: var(--accent-nieuws-2);
}

.news-card:nth-child(4n+3) {
  border-top-color: var(--accent-nieuws-3);
}

.news-card:nth-child(4n+4) {
  border-top-color: var(--accent-nieuws-4);
}

.news-date {
  font-size: 12px;
  color: var(--text-muted);
}

.news-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  margin: 3px 0 4px;
}

.news-body {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Footer */
.btn {
  background: var(--accent-ev);
  color: hsl(none 0% 100%);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
}

.btn:hover {
  background: hsl(157 63% 37%);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 32px;
  font-size: 13px;
  color: var(--text-secondary);
}

a.bar {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

a.bar:hover {
  filter: brightness(1.08);
}

a.bar:focus-visible {
  outline: 2px solid var(--accent-today);
  outline-offset: 2px;
}

.modal-overlay-css {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: hsl(35 38% 13% / 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.modal-overlay-css:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: relative;
  background: var(--surface-2);
  border-radius: 16px;
  border-top: 5px solid var(--accent-werk);
  padding: 22px 26px 24px;
  max-width: 440px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

.modal.is-ev {
  border-top-color: var(--accent-ev);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  line-height: 0;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-tag {
  display: inline-block;
  font-size: 12px;
  background: var(--tint-1);
  color: var(--tint-1-text);
  border-radius: 999px;
  padding: 2px 10px;
}

.modal.is-ev .modal-tag {
  background: var(--tint-2);
  color: var(--tint-2-text);
}

.modal-titel {
  font-size: 20px;
  font-weight: 500;
  margin: 8px 0 12px;
  line-height: 1.3;
}

.modal-meta {
  margin: 0 0 12px;
  font-size: 14px;
}

.modal-meta div {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid var(--tint-1);
}

.modal-meta dt {
  color: var(--text-secondary);
  min-width: 92px;
}

.modal-meta dd {
  margin: 0;
}

.modal-tekst {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.modal-link {
  display: inline-block;
}

/* Mobiel: label boven de balk */
@media (max-width: 640px) {
  :root {
    --label-w: 0px;
  }

  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .months {
    grid-template-columns: minmax(0, 1fr);
  }

  .months > div:first-child {
    display: none;
  }

  .todayline {
    top: 24px;
  }

  .hero {
    min-height: 190px;
  }

  .hero-titel {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 15px;
  }
}