@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap;
  src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap;
  src: url("/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --donkerblauw: #154273;
  --hemelblauw: #007bc7;
  --lichtblauw: #e5f1fa;
  --lijn: #b9d4ea;
  --tekst: #1c2a3a;
  --grijs: #5b6b7c;
  --rood: #b3261e;
  --wit: #ffffff;
  --radius: 6px;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--tekst);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--wit); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { width: min(1080px, 100% - 2rem); margin-inline: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--hemelblauw); outline-offset: 2px; }

/* ---------- Topbalk ---------- */
.topbar { background: var(--donkerblauw); color: var(--wit); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; }
.brand { font-weight: 700; font-size: 1.125rem; }
.link-btn { background: none; border: 0; color: var(--wit); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: .25rem 0; }

/* ---------- Datum ---------- */
.day-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 3vw, 2.5rem); padding: 2.5rem 0 2rem; }
.date-btn {
  display: flex; align-items: center; gap: 1.25rem; background: none; border: 0; cursor: pointer;
  padding: .5rem 1rem .5rem .5rem; border-radius: 999px; text-align: left;
}
.date-btn:hover .date-month { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.date-ring {
  display: grid; place-items: center; flex: none;
  width: clamp(6rem, 18vw, 9rem); aspect-ratio: 1; border-radius: 50%;
  font-size: clamp(3rem, 9vw, 4.75rem); font-weight: 700; color: var(--donkerblauw);
  font-variant-numeric: lining-nums tabular-nums; line-height: 1;
  border: 2px dashed var(--lijn);
}
.date-ring.has-entry { border: 6px solid var(--hemelblauw); }
.date-rest { display: flex; flex-direction: column; }
.date-weekday { font-size: clamp(1.125rem, 3vw, 1.5rem); color: var(--grijs); font-weight: 600; }
.date-month { font-size: clamp(1.75rem, 5.5vw, 2.75rem); font-weight: 700; color: var(--donkerblauw); line-height: 1.1; }

.arrow {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--lijn); background: var(--wit); cursor: pointer; flex: none;
}
.arrow svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--donkerblauw); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover:not(:disabled) { background: var(--lichtblauw); }
.arrow:disabled { opacity: .3; cursor: default; }
.arrow.small { width: 2.5rem; height: 2.5rem; }

/* ---------- Registratie ---------- */
.meta { text-align: center; color: var(--grijs); margin: -1rem 0 2rem; }
.meta strong { color: var(--tekst); font-weight: 600; }

.values {
  background: var(--lichtblauw); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 2.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 2.5rem;
}
.values div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--lijn); }
.values dt { color: var(--grijs); }
.values dd { margin: 0; font-weight: 600; font-size: 1.125rem; text-align: right; font-variant-numeric: tabular-nums; }
.values dd small { display: block; font-weight: 400; font-size: .8rem; color: var(--grijs); }

.media { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .media { grid-template-columns: 1fr; } }
.media h2 { font-size: 1.375rem; color: var(--donkerblauw); margin: 0 0 .75rem; }

/* ---------- Carrousel ---------- */
.carousel { position: relative; }
.frame {
  position: relative; background: var(--lichtblauw); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; display: grid; place-items: center; touch-action: pan-y;
}
.frame.maps { background: var(--wit); border: 1px solid var(--lijn); aspect-ratio: 1 / 1.05; }
.frame img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.frame > a { display: block; width: 100%; height: 100%; }
.frame .nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 0; background: rgb(255 255 255 / .92); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 1px 4px rgb(21 66 115 / .25);
}
.frame .nav svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--donkerblauw); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.frame .nav.prev { left: .75rem; }
.frame .nav.next { right: .75rem; }
.caption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .6rem; min-height: 2rem; }
.caption-text { font-weight: 600; }
.dots { display: flex; gap: .4rem; }
.dots button { width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--hemelblauw); background: none; padding: 0; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--hemelblauw); }
.empty-frame { color: var(--grijs); padding: 2rem; text-align: center; }

.tools { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.admin { margin: 3rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--lijn); display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }

/* ---------- Tekstvelden (wolkensoort, mist) ---------- */
.tekstveld { padding: .75rem 0; border-bottom: 1px solid var(--lijn); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.tools + .tekstveld { margin-top: 1.25rem; border-top: 1px solid var(--lijn); }
.tekstveld-tekst { margin: 0; flex: 1; min-width: 12rem; }
.tekstveld-tekst span, .tekstveld-tekst em { color: var(--grijs); }
.tekstveld-label { font-weight: 600; width: 100%; }
.tekstveld-rij { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; }
.tekstveld-rij input { font: inherit; padding: .5rem .7rem; border: 1px solid var(--lijn); border-radius: var(--radius); flex: 1 1 100%; }
.tekstveld-rij input.tekstveld-pin { flex: 0 0 7rem; }
.tekstveld .status { width: 100%; }
.tekstveld .status:empty { display: none; }

/* ---------- Leeg ---------- */
.empty { text-align: center; padding: 3rem 1rem 4rem; }
.empty p { font-size: 1.25rem; margin: 0 0 1.5rem; }

/* ---------- Knoppen ---------- */
.btn {
  background: var(--donkerblauw); color: var(--wit); border: 2px solid var(--donkerblauw);
  border-radius: var(--radius); padding: .6rem 1.25rem; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--hemelblauw); border-color: var(--hemelblauw); }
.btn.ghost { background: var(--wit); color: var(--donkerblauw); }
.btn.ghost:hover { background: var(--lichtblauw); }
.btn.danger { background: var(--rood); border-color: var(--rood); }
.btn.subtle { background: none; border-color: var(--lijn); color: var(--donkerblauw); font-weight: 400; padding: .4rem .9rem; }
.btn.subtle:hover { background: var(--lichtblauw); }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Dialogen ---------- */
.dialog { border: 0; border-radius: 10px; padding: 1.5rem; width: min(26rem, 100% - 2rem); color: var(--tekst); }
.dialog::backdrop { background: rgb(21 66 115 / .45); }
.dialog h2 { margin: 0 0 .5rem; color: var(--donkerblauw); font-size: 1.375rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.25rem; }
.muted { color: var(--grijs); margin: 0 0 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; font-weight: 600; }
.field input { font: inherit; font-weight: 400; padding: .55rem .7rem; border: 1px solid var(--lijn); border-radius: var(--radius); }
.field input[type=file] { padding: .45rem; }
.status { min-height: 1.5rem; margin: 0; }
.status.error { color: var(--rood); font-weight: 600; }

/* ---------- Kalender ---------- */
.cal { width: min(24rem, 100% - 2rem); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-head h2 { margin: 0; text-transform: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; text-align: center; }
.cal-grid .wd { font-size: .85rem; color: var(--grijs); font-weight: 600; padding-bottom: .25rem; }
.cal-grid button {
  aspect-ratio: 1; border-radius: 50%; border: 3px solid transparent; background: none; cursor: pointer;
  font-variant-numeric: tabular-nums; display: grid; place-items: center;
}
.cal-grid button:hover:not(:disabled) { background: var(--lichtblauw); }
.cal-grid button.has-entry { border-color: var(--hemelblauw); font-weight: 700; color: var(--donkerblauw); }
.cal-grid button.selected { background: var(--donkerblauw); color: var(--wit); }
.cal-grid button.is-today { text-decoration: underline; text-underline-offset: 3px; }
.cal-grid button:disabled { color: #b4bfca; cursor: default; }
.cal-legend { display: flex; align-items: center; gap: .5rem; color: var(--grijs); margin: 1rem 0 0; }
.legend-ring { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 3px solid var(--hemelblauw); display: inline-block; }

/* ---------- Voet ---------- */
.footer { margin-top: 4rem; padding: 1.5rem 0; border-top: 1px solid var(--lijn); color: var(--grijs); font-size: .95rem; }
.footer a { color: var(--hemelblauw); }

@media (max-width: 520px) {
  .day-nav { gap: .25rem; padding-top: 1.5rem; }
  .date-btn { gap: .75rem; padding-right: .25rem; }
  .arrow { width: 2.5rem; height: 2.5rem; }
  .values { padding: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .frame img.fade { animation: fade .25s ease; }
  @keyframes fade { from { opacity: .3; } }
}
