:root {
  --font-sans: Catamaran, Arial, Helvetica, sans-serif;
  --merk: #293133;
  --merk-hover: #3b4548;
  --merk-tekst: #ffffff;
  --merk-vlak: #e9ebeb;
  --tekst: #1d1d1f;
  --tekst-zacht: #6b6b6b;
  --wit: #ffffff;
  --vlak: #f7f7f7;
  --rand: #e3e3e3;
  --ok: #3f7d4e;
  --ok-vlak: #eaf2ec;
  --let-op: #b7791f;
  --let-op-vlak: #f8f0e3;
  --fout: #a8432f;
  --fout-vlak: #f6e9e6;
  --neutraal: #9a9a9a;
  --neutraal-vlak: #f0f0f0;
  --land-warm: #f7efe4;
  --land-donker: #3a2a24;
  --land-terra: #c46a4a;
  --land-zacht: #ecd9c4;
  --land-roze: #e8b7ac;
  --ruimte-1: 4px;
  --ruimte-2: 8px;
  --ruimte-3: 12px;
  --ruimte-4: 16px;
  --ruimte-6: 24px;
  --ruimte-8: 32px;
  --radius: 8px;
  --radius-geen: 0px;
  --breedte-max: 1254px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--tekst);
  background: var(--wit);
}

/* Kopbalk: donker, hoekig, 80 px hoog */
header {
  height: 80px;
  background: var(--merk);
  color: var(--merk-tekst);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ruimte-4);
  padding: 0 var(--ruimte-4);
  border-radius: var(--radius-geen);
}
.kop-links, .kop-rechts { display: flex; align-items: center; gap: var(--ruimte-4); }
.logo { font-size: 22px; font-weight: 700; line-height: 1; color: var(--merk-tekst); }
#hdr { display: flex; align-items: center; gap: var(--ruimte-2); flex-wrap: wrap; justify-content: flex-end; }
#hdr button {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--merk-tekst);
  background: transparent;
  border: 2px solid var(--merk-tekst);
  border-radius: var(--radius-geen);
  padding: 10px 16px;
}
#hdr button:hover { background: var(--merk-hover); }
.badge {
  font-size: 14px;
  font-weight: 600;
  color: var(--tekst);
  background: var(--merk-vlak);
  border-radius: var(--radius);
  padding: 6px var(--ruimte-2);
}

/* Navigatie: wit met een rand, de actieve tab in een licht grijs vlak */
nav {
  display: flex;
  gap: var(--ruimte-2);
  flex-wrap: wrap;
  padding: var(--ruimte-3) var(--ruimte-4);
  background: var(--wit);
  border-bottom: 1px solid var(--rand);
}
nav:empty { display: none; }
.nav-lijst { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); }

/* Menuknop met drie streepjes: alleen zichtbaar op telefoon (zie de media query onderaan) */
.menu-knop { display: none; }
.menu-icoon { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 20px; }
.menu-icoon span { display: block; height: 2px; background: currentColor; border-radius: 1px; }
.menu-label { flex: 1; text-align: left; }

/* Teller met nieuwe items naast een tabblad */
.nav-teller {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 var(--ruimte-1);
  margin-left: var(--ruimte-1);
  border-radius: 999px;
  background: var(--merk);
  color: var(--merk-tekst);
  font-size: 12px;
  line-height: 1.4em;
  text-align: center;
  vertical-align: middle;
}

/* Knoppen: wit met rand, primair donker, zonder schaduw of animatie */
button {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tekst);
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: var(--ruimte-2) var(--ruimte-3);
  cursor: pointer;
}
button:hover { background: var(--vlak); }
button.on, button.on:hover { background: var(--merk-vlak); border-color: var(--merk-vlak); color: var(--tekst); }
button.p { background: var(--merk); border-color: var(--merk); color: var(--merk-tekst); }
button.p:hover { background: var(--merk-hover); border-color: var(--merk-hover); }
button.ghost { background: transparent; border-color: transparent; color: var(--tekst-zacht); }
button.ghost:hover { background: var(--vlak); }

main { padding: var(--ruimte-6) var(--ruimte-4); max-width: var(--breedte-max); margin: 0 auto; }
main:has(.landing) { padding: 0; max-width: none; }

/* Lettergrootte: titel 22, kop 18, subkop 16, tekst 16, klein 14 */
h2 { font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--merk); margin: var(--ruimte-6) 0 var(--ruimte-2); }
h3 { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--tekst); margin: var(--ruimte-3) 0 var(--ruimte-2); }
p { margin: var(--ruimte-2) 0; }

.card, .unit, .detail {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: var(--ruimte-4);
  margin-bottom: var(--ruimte-4);
}
.unit .unit { margin-left: var(--ruimte-6); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--ruimte-3); }
.stat { background: var(--wit); border: 1px solid var(--rand); border-radius: var(--radius); padding: var(--ruimte-3); }
.stat span { font-size: 14px; line-height: 1.45; color: var(--tekst-zacht); display: block; }
.stat b { font-size: 18px; font-weight: 700; display: block; margin-top: var(--ruimte-1); }

table { width: 100%; border-collapse: collapse; background: var(--wit); }
th, td { text-align: left; padding: var(--ruimte-2); border-bottom: 1px solid var(--rand); vertical-align: top; font-size: 14px; line-height: 1.45; }
th { background: var(--vlak); font-weight: 600; color: var(--tekst); }
th button { font: inherit; font-weight: 600; color: var(--tekst); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
th button:hover { background: none; text-decoration: underline; }
.tablewrap { overflow-x: auto; border: 1px solid var(--rand); border-radius: var(--radius); }
.acts { white-space: nowrap; }
.bar { margin: var(--ruimte-3) 0; display: flex; gap: var(--ruimte-2); flex-wrap: wrap; align-items: center; }
.bar input, .bar select { width: auto; min-width: 180px; }

.muted { font-size: 14px; line-height: 1.45; color: var(--tekst-zacht); }
.err { font-size: 14px; min-height: 1em; color: var(--fout); }
.ok { font-weight: 600; color: var(--tekst); }
.tag { display: inline-block; font-size: 14px; color: var(--tekst); background: var(--neutraal-vlak); border-radius: var(--radius); padding: 2px var(--ruimte-2); }
.vast { font-size: 14px; color: var(--tekst); }

.chk { display: block; padding: var(--ruimte-2) 0; border-bottom: 1px solid var(--rand); }
.chk input { display: inline; width: auto; margin: 0 var(--ruimte-2) 0 0; }
.total { text-align: right; font-size: 16px; }
.people { margin: var(--ruimte-1) 0 var(--ruimte-2); padding-left: var(--ruimte-4); }
.people li { margin: var(--ruimte-1) 0; }
.form { display: grid; gap: var(--ruimte-2); max-width: 560px; }

label { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--tekst); }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: var(--ruimte-1);
  padding: var(--ruimte-2);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--tekst);
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--merk); outline-offset: 0; }
textarea { min-height: 72px; }

.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; z-index: 5; }
.overlay form { background: var(--wit); border: 1px solid var(--rand); border-radius: var(--radius); padding: var(--ruimte-6); width: min(380px, 92vw); }
.overlay h2 { margin-top: 0; }
dialog { border: 1px solid var(--rand); border-radius: var(--radius); padding: var(--ruimte-6); width: min(520px, 94vw); color: var(--tekst); background: var(--wit); }
dialog::backdrop { background: rgba(0, 0, 0, .35); }
.dform { display: grid; gap: var(--ruimte-3); }
.dform h3 { margin-top: 0; }
.actions { display: flex; gap: var(--ruimte-2); justify-content: flex-end; margin-top: var(--ruimte-2); }
#toast { position: fixed; bottom: var(--ruimte-6); left: 50%; transform: translateX(-50%); background: var(--merk); color: var(--merk-tekst); padding: var(--ruimte-3) var(--ruimte-4); border-radius: var(--radius); font-size: 14px; z-index: 9; }

/* Dagprogramma: een lijn met bolletjes. De kleur is de status; het woord staat er altijd bij. */
.detail header { display: block; height: auto; background: none; color: var(--tekst); padding: 0; margin-bottom: var(--ruimte-3); font-size: 16px; }
.tl {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ruimte-1);
  padding: var(--ruimte-6) var(--ruimte-4) var(--ruimte-4);
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  overflow-x: auto;
}
.tl::before {
  content: "";
  position: absolute;
  left: var(--ruimte-4);
  right: var(--ruimte-4);
  top: 33px;
  height: 2px;
  background: var(--rand);
}
.tl-item {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font: inherit;
  color: var(--tekst);
}
.tl-item:hover { background: none; }
.dot {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--wit);
}
.dot.groen { background: var(--ok); }
.dot.oranje { background: var(--let-op); }
.dot.rood { background: var(--fout); }
.tl-item.on .dot { outline: 2px solid var(--merk); outline-offset: 2px; }
.tl-time { font-size: 14px; color: var(--tekst-zacht); margin-top: var(--ruimte-3); }
.tl-status { font-size: 14px; color: var(--tekst); margin-top: var(--ruimte-1); }
.tl-label { font-size: 14px; line-height: 1.3; margin-top: var(--ruimte-1); padding: 0 var(--ruimte-1); }
.tl-item.on .tl-label { font-weight: 700; }
.legend { display: flex; gap: var(--ruimte-4); flex-wrap: wrap; font-size: 14px; color: var(--tekst-zacht); margin: var(--ruimte-3) 0; }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: var(--ruimte-2); }
.lg.groen::before { background: var(--ok); }
.lg.oranje::before { background: var(--let-op); }
.lg.rood::before { background: var(--fout); }
.prog { height: 8px; background: var(--vlak); border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; margin: var(--ruimte-2) 0 var(--ruimte-1); }
.prog i { display: block; height: 100%; background: var(--ok); }
.aan { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--merk); text-decoration: underline; cursor: pointer; }
.aan:hover { background: none; color: var(--merk-hover); }

/* Voorpagina: warm en feestelijk, los van de kantoorstijl. Alleen land-* variabelen. */
.landing {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--ruimte-8) var(--ruimte-6);
  background: var(--land-warm);
  color: var(--land-donker);
}
.land-cirkels { position: absolute; inset: 0; pointer-events: none; }
.land-cirkels span { position: absolute; border-radius: 50%; opacity: .45; }
.land-cirkels .c1 { width: 520px; height: 520px; left: -160px; top: -160px; background: var(--land-zacht); }
.land-cirkels .c2 { width: 360px; height: 360px; right: -110px; bottom: -110px; background: var(--land-terra); opacity: .22; }
.land-cirkels .c3 { width: 150px; height: 150px; right: 14%; top: 12%; background: var(--land-roze); opacity: .6; }
.landing > :not(.land-cirkels) { position: relative; z-index: 1; }
.landing .land-small { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--land-terra); }
.landing h1 { margin: var(--ruimte-2) 0 0; font-size: clamp(44px, 8vw, 88px); font-weight: 700; line-height: 1.05; color: var(--land-donker); }
.landing .land-year { margin: var(--ruimte-2) 0 0; font-size: clamp(72px, 15vw, 150px); font-weight: 700; line-height: 1; color: var(--land-terra); }
.landing .land-text { margin: var(--ruimte-4) 0 0; font-size: clamp(18px, 2.4vw, 22px); font-weight: 400; line-height: 1.5; max-width: 620px; }
.land-knoppen { display: flex; gap: var(--ruimte-3); flex-wrap: wrap; justify-content: center; margin-top: var(--ruimte-8); }
/* Rustige inlogregel onderaan de voorpagina: tekstknop, geen opvallende knop */
.land-login {
  font-size: 14px;
  font-weight: 600;
  color: var(--land-donker);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--land-zacht);
  border-radius: 0;
  padding: 4px 2px;
  opacity: .6;
}
.land-login:hover { background: transparent; border-bottom-color: var(--land-terra); opacity: 1; }
/* Voorpagina zonder kopbalk: de pagina neemt de volle hoogte */
body.uitgelogd > header { display: none; }
body.uitgelogd .landing { min-height: 100vh; }
.land-knop {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--land-donker);
  background: var(--wit);
  border: 2px solid var(--land-donker);
  border-radius: 999px;
  padding: 12px 28px;
}
.land-knop:hover { background: var(--land-zacht); }
.land-knop.p { background: var(--land-terra); border-color: var(--land-terra); color: var(--wit); }
.land-knop.p:hover { background: var(--land-donker); border-color: var(--land-donker); }
.land-info {
  margin-top: var(--ruimte-6);
  max-width: 480px;
  background: var(--wit);
  border-radius: 16px;
  padding: var(--ruimte-4) var(--ruimte-6);
  font-size: 16px;
}
.land-info p { margin: var(--ruimte-2) 0; }

@media (max-width: 640px) {
  header { height: auto; min-height: 80px; flex-wrap: wrap; padding: var(--ruimte-2) var(--ruimte-4); }
  #hdr button { font-size: 14px; padding: 8px 12px; }
  /* Uitloggen staat op smalle schermen in het menu; naam en beheer niet in de kopbalk */
  .kop-uitloggen, .kop-naam, .kop-beheer { display: none; }
}

/* Voettekst: op elk scherm zichtbaar zodra er iets in staat (voor ingelogden) */
#voet { display: none; }
#voet:not(:empty) { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--ruimte-2); padding: var(--ruimte-3) var(--ruimte-4); border-top: 1px solid var(--rand); }
#voet button { font-size: 12px; font-weight: 400; color: var(--tekst-zacht); background: transparent; border-color: transparent; padding: var(--ruimte-1) var(--ruimte-2); opacity: 0.7; }
#voet button:hover, #voet button:focus-visible { opacity: 1; }
/* De beheerschakelaar staat op groter scherm in de kopbalk, dus hier alleen op telefoon */
.voet-beheer { display: none; }
@media (max-width: 900px) {
  .voet-beheer { display: inline; }
}

/* Telefoon en smalle tablet: één menuknop met drie streepjes; de tabbladen en uitloggen klappen uit als een lijst */
@media (max-width: 900px) {
  nav { flex-direction: column; align-items: stretch; padding: 0 var(--ruimte-4); }
  #menu-kop { display: flex; }
  .menu-knop { display: flex; align-items: center; gap: var(--ruimte-2); font-size: 16px; padding: 8px 12px; color: var(--merk-tekst); background: transparent; border: 2px solid var(--merk-tekst); border-radius: var(--radius-geen); }
  .menu-knop:hover { background: var(--merk-hover); }
  .menu-icoon { color: var(--merk-tekst); }
  .menu-label { flex: none; font-weight: 700; }
  .nav-lijst { display: none; flex-direction: column; gap: var(--ruimte-1); }
  .nav-lijst.open { display: flex; padding: var(--ruimte-2) 0 var(--ruimte-3); }
  .nav-lijst button { width: 100%; text-align: left; font-size: 16px; padding: 12px 14px; }
  .nav-lijst .menu-uitloggen { display: block; margin-top: var(--ruimte-2); border-top: 1px solid var(--rand); border-radius: var(--radius-geen); padding-top: var(--ruimte-3); color: var(--tekst-zacht); }
}

/* Aanvinklijst (meerdere eigenaren): vakje naast de naam, binnen het venster scrollbaar */
.dform fieldset { border: 1px solid #ddd; border-radius: 6px; padding: 8px 12px; margin: 12px 0; max-height: 260px; overflow-y: auto; }
.dform fieldset legend { font-size: 14px; font-weight: 600; padding: 0 4px; }
.dform .check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; padding: 4px 0; cursor: pointer; }
.dform .check input[type="checkbox"] { width: auto; margin: 0; flex: none; }

/* Uitklaplijst eigenaren */
.dform .multi { margin: 12px 0; }
.dform .multi-label { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.dform .multi summary { border: 1px solid #ccc; border-radius: 6px; padding: 8px 10px; cursor: pointer; font-size: 15px; background: #fff; list-style-position: inside; }
.dform .multi-lijst { border: 1px solid #ddd; border-top: none; border-radius: 0 0 6px 6px; max-height: 260px; overflow-y: auto; padding: 4px 10px; background: #fff; }

/* Notitie-bolletje; de balloon zelf staat op de pagina (zie app.js) zodat tabellen niet gaan scrollen */
.info { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; background: var(--accent, #2a6f5f); color: #fff; font-size: 12px; font-weight: 700; cursor: help; vertical-align: middle; }
.tip { position: fixed; z-index: 1000; width: 280px; max-width: calc(100vw - 24px); white-space: pre-wrap; background: #222; color: #fff; font-size: 13px; font-weight: 400; line-height: 1.4; padding: 8px 10px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); pointer-events: none; text-align: left; }
.tip[hidden] { display: none; }

/* Prikbord */
.prik-form { margin-bottom: 20px; }
.prik-form textarea { min-height: 80px; }
.prik-bericht { border: 1px solid var(--rand); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.prik-kop { font-size: 14px; margin-bottom: 4px; }
.prik-bericht p { white-space: pre-wrap; margin: 0; }

/* Kanalen: groen vinkje = ingezet voor het symposium, rood vinkje = (nog) niet */
.vink { font-weight: 700; white-space: nowrap; }
.vink.ja { color: #2e7d32; }
.vink.nee { color: #c62828; }
.kz { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.kz label, .kz select { font-size: 13px; font-weight: 400; }
.kz label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.kz input[type="checkbox"] { width: auto; margin: 0; }
.kl-contact { font-size: 12px; font-weight: 400; color: var(--tekst-zacht); margin-top: 2px; }
.waarschuwing { color: #c62828; }

/* Kanalen per organisatie: een kaart per organisatie, de platforms onder elkaar */
.kan-kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.kan-kaart { border: 1px solid var(--rand); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.kan-kaart h3 { margin: 0; font-size: 17px; }
.kan-kaart .kl-contact { margin: 2px 0 0; }
.kan-samenvatting { font-size: 13px; color: var(--tekst-zacht); margin: 6px 0 10px; }
.kan-kaart ul { list-style: none; margin: 0; padding: 0; }
.kan-rij { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rand); }
.kan-naam { font-size: 14px; font-weight: 600; padding-top: 2px; }
.kan-rij .kz { flex-direction: column; align-items: flex-end; min-width: 0; }
.kan-rij .kz select { max-width: 190px; }

/* Kop als keuze: de actieve kant is de kop, de andere kant is klikbaar (Kanalen | Tijdlijn) */
.kopwissel { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.kopwissel button { font: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; color: var(--merk); opacity: .45; background: none; border: 0; border-radius: 0; padding: 0; cursor: pointer; }
.kopwissel button:hover { background: none; opacity: .8; text-decoration: underline; }
.kopwissel button.on, .kopwissel button.on:hover { background: none; border: 0; opacity: 1; text-decoration: none; cursor: default; }
.kop-sep { color: var(--tekst-zacht); font-weight: 400; }
