:root {
  --accent: #2f7d5b;
  --accent-ink: #fff;
  --ink: #1f2420;
  --muted: #5f6862;
  --line: #e2e5e1;
  --card: #ffffff;
  --soft: #f4f6f3;
  --danger: #b3261e;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.5;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: transparent; }
body { padding: 4px; }
main { max-width: 860px; margin: 0 auto; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
a { color: var(--accent); }
.muted { color: var(--muted); }
button, .btn {
  font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); padding: 9px 14px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px;
}
button:hover, .btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar h1 { font-size: 1.35rem; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border-radius: 999px; padding: 5px 12px; min-height: 34px; font-size: .9rem; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.dropdown { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 250px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.menu[hidden] { display: none; }
.menu a, .menu button {
  display: flex; width: 100%; border: 0; background: none; padding: 9px 10px; border-radius: 6px;
  color: var(--ink); text-decoration: none; min-height: 0; text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--soft); }
.menu small { display: block; color: var(--muted); padding: 4px 10px 6px; font-size: .8rem; }

/* Lijst */
.month { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 8px; font-weight: 600; }
.month:first-of-type { margin-top: 4px; }
.list { display: grid; gap: 10px; }
.item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; cursor: pointer; text-align: left; width: 100%; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.item:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.datebox { text-align: center; background: var(--soft); border-radius: 10px; padding: 6px 0; }
.datebox .d { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.datebox .m { font-size: .75rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.item h3 { font-size: 1.05rem; }
.meta { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.badge { font-size: .78rem; border-radius: 999px; padding: 3px 10px; white-space: nowrap; font-weight: 600; }
.badge.open { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.badge.full, .badge.closed { background: #f1e6e4; color: #8a3a31; }
.empty { text-align: center; padding: 40px 10px; background: var(--soft); border-radius: var(--radius); }

/* Detail */
.back { margin-bottom: 14px; }
.detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.detail img.hero { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.detail .body { padding: 20px; }
.detail h2 { font-size: 1.5rem; margin-bottom: 8px; }
.detail .meta { font-size: 1rem; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.desc { white-space: pre-wrap; margin: 0 0 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

/* Formulier */
.form-wrap { border-top: 1px solid var(--line); padding: 20px; background: var(--soft); }
.form-wrap h3 { font-size: 1.2rem; margin-bottom: 4px; }
form { display: grid; gap: 14px; margin-top: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: 4px; }
label .opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
input, textarea, select {
  font: inherit; width: 100%; padding: 10px 12px; border: 1px solid #c9cec8; border-radius: 8px;
  background: #fff; color: var(--ink); min-height: 44px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; }
.field-error { color: var(--danger); font-size: .88rem; margin-top: 4px; }
.invalid { border-color: var(--danger) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 14px; border-radius: 8px; font-size: .95rem; }
.notice.ok { background: color-mix(in srgb, var(--accent) 12%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 35%, #fff); }
.notice.err { background: #fbeceb; border: 1px solid #f0c4c0; color: #7d1d17; }
.notice.info { background: #fff; border: 1px solid var(--line); }
.success { text-align: center; padding: 10px 0; }
.success .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-grid; place-items: center; font-size: 28px; margin-bottom: 8px; }

@media (max-width: 560px) {
  .item { grid-template-columns: 54px 1fr; }
  .item .badge { grid-column: 2; justify-self: start; }
  .row-2 { grid-template-columns: 1fr; }
  .detail .body, .form-wrap { padding: 16px; }
  .toolbar h1 { font-size: 1.2rem; }
}
