/* VAELHAIRE OS — stijl
   Volgt brandguide v2.1: zwart/wit/crème dragen het scherm, de merkkleuren
   verschijnen als dunne lijn of klein accent. Oxide en shell zitten in het
   materiaal (kaarten, chips), niet als groot kleurvlak. */

/* Playfair Display, het font van het wordmark. OFL-licentie, dus vrij te
   gebruiken en te embedden. Alleen de tekens die we nodig hebben, 10 kB per
   gewicht. */
@font-face {
  font-family: "Vaelhaire Serif";
  src: url("assets/brand/playfair-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vaelhaire Serif";
  src: url("assets/brand/playfair-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* merk */
  --ink:        #1A1A1A;   /* schermbasis, neutraal zwart */
  --logo-ink:   #292220;   /* alleen het wordmark, per guideline */
  --black:      #000000;
  --white:      #ffffff;
  --cream:      #FAF9F7;
  --rose:       #F5D6E1;
  --rose-dark:  #C48088;
  --pink:       #F9DBD1;
  --greyblue:   #D5D5E2;
  --oxide:      #9C6A72;
  --shell:      #E8D7D6;

  /* grijstrap */
  --g-50:  #FAF9F7;
  --g-100: #F2F2F1;
  --g-200: #E6E5E3;
  --g-300: #D2D0CD;
  --g-400: #A3A19E;
  --g-500: #767471;
  --g-600: #55504B;

  /* status */
  --ok:      #2F6B4F;
  --ok-bg:   #E6F0EA;
  --warn:    #9A6B1F;
  --warn-bg: #FBF1DF;
  --bad:     #A33A32;
  --bad-bg:  #F8E7E5;

  --r-sm: 8px;  --r-md: 12px;  --r-lg: 18px;  --pill: 9999px;
  --sh-sm: 0 1px 2px rgba(0,0,0,.06);
  --sh-md: 0 6px 24px rgba(0,0,0,.10);
  --t: .18s cubic-bezier(.4, 0, .2, 1);

  --serif: "Vaelhaire Serif", "Didot", "Bodoni MT", "Iowan Old Style", Georgia, serif;
  --sans:  "Futura", "Jost", "Century Gothic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: var(--cream);
  --fg: var(--ink);
  --card: var(--white);
  --line: var(--g-200);
  --muted: var(--g-500);
}

[data-theme="dark"] {
  --bg: #101010;
  --fg: #F3F1EE;
  --card: #1B1B1B;
  --line: #2A2A2A;
  --muted: #9A9A9A;
  --g-50: #161616; --g-100: #1F1F1F; --g-200: #2A2A2A; --g-300: #383838;
  --ok-bg: #16281F; --warn-bg: #2A2115; --bad-bg: #2B1916;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Moet vóór alle display-regels staan: anders wint .gate{display:grid} van [hidden]. */
[hidden] { display: none !important; }
html, body { max-width: 100vw; overflow-x: hidden; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ─── header ─────────────────────────────────────────────────────────────── */
.head {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1rem;
  height: 62px; padding: 0 clamp(1rem, 4vw, 2rem);
  background: var(--ink); color: var(--cream);
  border-bottom: 1px solid rgba(245, 214, 225, .18);
}
.wordmark {
  flex: none; display: block; width: 132px; height: auto;
  /* het witte logo, want de header is inkt */
}
.head .spacer { flex: 1; }
.countdown {
  font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(250, 249, 247, .62); white-space: nowrap;
}
.countdown b { color: var(--cream); font-weight: 600; }
.icon-btn {
  border: 1px solid rgba(250, 249, 247, .2); background: transparent;
  color: inherit; width: 34px; height: 34px; border-radius: var(--pill);
  display: grid; place-items: center; transition: background var(--t); flex: none;
}
.icon-btn:hover { background: rgba(250, 249, 247, .12); }
.who { font-size: .8rem; color: rgba(250, 249, 247, .7); white-space: nowrap; }

/* ─── nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 62px; z-index: 90;
  display: flex; justify-content: center; gap: .25rem;
  overflow-x: auto; scrollbar-width: none;
  padding: .55rem clamp(1rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav::-webkit-scrollbar { display: none; }
.nav button {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  padding: .42rem .85rem; border-radius: var(--pill); white-space: nowrap;
  font-size: .84rem; font-weight: 500; transition: all var(--t);
}
.nav button:hover { color: var(--fg); background: var(--g-100); }
.nav button.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
[data-theme="dark"] .nav button.on { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.nav .badge {
  display: inline-block; margin-left: .4rem; min-width: 18px; padding: 0 5px;
  border-radius: var(--pill); background: var(--rose-dark); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center;
}

/* ─── layout ─────────────────────────────────────────────────────────────── */
main { padding: clamp(1.25rem, 4vw, 2.25rem); max-width: 1240px; margin: 0 auto; }
section[hidden] { display: none; }
.page-title { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.05rem); font-weight: 700; letter-spacing: -.005em; }
.page-sub { color: var(--muted); font-size: .9rem; margin-top: .2rem; margin-bottom: 1.5rem; }
.rule { height: 1px; background: var(--line); margin: 1.75rem 0; border: 0; }
.rule.accent { background: linear-gradient(90deg, var(--rose-dark), transparent 60%); }

.grid { display: grid; gap: 1rem; }
.grid.k2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.k3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.k4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.15rem 1.25rem; box-shadow: var(--sh-sm);
}
.card h3 { font-size: .95rem; font-weight: 600; letter-spacing: .01em; }
.card .meta { color: var(--muted); font-size: .82rem; margin-top: .3rem; }

.stat { text-align: left; }
.stat .n { font-family: var(--serif); font-weight: 700; font-size: 2.05rem; line-height: 1.1; letter-spacing: -.01em; }
.stat .l { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; margin-top: .35rem; }

.bar { height: 5px; border-radius: var(--pill); background: var(--g-200); overflow: hidden; margin-top: .7rem; }
.bar > i { display: block; height: 100%; background: var(--rose-dark); border-radius: var(--pill); transition: width .5s var(--t); }

.chip {
  display: inline-flex; align-items: center; gap: .32rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  padding: .18rem .55rem; border-radius: var(--pill);
  background: var(--g-100); color: var(--muted); border: 1px solid var(--line);
}
.chip.ok      { background: var(--ok-bg);   color: var(--ok);   border-color: transparent; }
.chip.warn    { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.bad     { background: var(--bad-bg);  color: var(--bad);  border-color: transparent; }
.chip.neutral { background: transparent; }

.row {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 500; font-size: .92rem; }
.row .s { color: var(--muted); font-size: .82rem; margin-top: .18rem; }

.btn {
  border: 1px solid var(--line); background: var(--card); color: var(--fg);
  padding: .45rem .9rem; border-radius: var(--pill); font-size: .82rem;
  font-weight: 500; transition: all var(--t); white-space: nowrap;
}
.btn:hover { border-color: var(--g-400); }
.btn.primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
[data-theme="dark"] .btn.primary { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .big { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--fg); margin-bottom: .35rem; }

/* ─── beeldbibliotheek ───────────────────────────────────────────────────── */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.shot {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--card); transition: box-shadow var(--t), transform var(--t);
}
.shot:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.shot .thumb {
  background: var(--g-100);
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}
.shot .body { padding: .6rem .7rem .75rem; }
.shot .id { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; word-break: break-all; }
.shot .acts { display: flex; gap: .35rem; margin-top: .5rem; }
.shot .acts .btn { padding: .28rem .6rem; font-size: .74rem; flex: 1; text-align: center; }

/* ─── tabel ──────────────────────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--g-50); }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ─── login ──────────────────────────────────────────────────────────────── */
.gate {
  position: relative; min-height: 100vh; display: grid; place-items: center;
  padding: 2rem; background: var(--ink) center/cover no-repeat;
}
/* Staat er een sfeerbeeld in Drive, dan wordt dat de achtergrond. Ontbreekt het,
   dan geeft het endpoint 404 en blijft de effen achtergrond staan. */
.gate::before {
  content: ""; position: absolute; inset: 0;
  background: url("/api/drive?achtergrond=1") center/cover no-repeat;
  filter: grayscale(.35) brightness(.55);
}
.gate::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,16,16,.35), rgba(16,16,16,.72));
}
.gate .box { position: relative; z-index: 1; }
.gate .box { width: min(400px, 100%); background: var(--cream); border-radius: var(--r-lg); padding: 2.25rem; text-align: center; }
.gate .tl { margin-top: 1.1rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose-dark); margin-top: .5rem; }
.gate p { color: var(--g-500); font-size: .86rem; margin: 1.4rem 0; }
.gate input {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--g-300);
  border-radius: var(--r-sm); font: inherit; font-size: .9rem; margin-bottom: .6rem;
  background: #fff; color: var(--ink);
}
.gate .btn.primary { width: 100%; padding: .7rem; }
.gate .err { color: var(--bad); font-size: .82rem; min-height: 1.2rem; margin-top: .7rem; }

/* ─── notitie / feedback ─────────────────────────────────────────────────── */
textarea.note {
  width: 100%; min-height: 76px; resize: vertical; padding: .6rem .75rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-size: .86rem; background: var(--bg); color: var(--fg);
}

.banner {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  padding: .7rem 1rem; border-radius: var(--r-md); font-size: .84rem;
  border: 1px solid var(--line); background: var(--g-50); margin-bottom: 1.25rem;
}
.banner.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.banner.ok   { background: var(--ok-bg);   border-color: transparent; color: var(--ok); }
.banner .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.banner.source-lock {
  align-items: flex-start;
  border-color: rgba(156,106,114,.45);
  background: linear-gradient(135deg, rgba(156,106,114,.13), rgba(246,242,236,.68));
  color: var(--fg);
}
.banner.source-lock .dot { margin-top: .38rem; background: var(--oxide); }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(140%);
  background: var(--ink); color: var(--cream); padding: .65rem 1.15rem;
  border-radius: var(--pill); font-size: .85rem; z-index: 300;
  transition: transform .3s var(--t); box-shadow: var(--sh-md);
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .head { gap: .6rem; }
  .countdown { display: none; }
  main { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }


/* ════ DASHBOARDKOP, naar het model van de kWh-hub ═══════════════════ */

.groet { margin: 0 0 1.6rem; }
.groet h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.015em; line-height: 1.1;
}
.groet .datum { color: var(--muted); font-size: .88rem; margin-top: .35rem; }

/* Welke systemen hangen eraan, in een oogopslag */
.systeemrij { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; margin-top: .9rem; }
.sys { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); }
.sys .stip { width: 8px; height: 8px; border-radius: 50%; background: var(--g-400); flex: none; }
.sys.aan   .stip { background: var(--ok); }
.sys.aan   { color: var(--fg); }
.sys.wacht .stip { background: var(--warn); animation: pols 1.8s ease-in-out infinite; }
.sys.uit   .stip { background: var(--g-300); }
@keyframes pols { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Statkaarten */
.statrij { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.statkaart { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem 1.15rem; }
.statkaart .l { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.statkaart .n { font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; margin-top: .45rem; }
.statkaart .s { font-size: .78rem; color: var(--muted); margin-top: .1rem; }

/* Paneel: stip, titel, kleinkapitaal-ondertitel */
.paneelrij { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.2rem; margin-bottom: 1.4rem; }
.paneel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.2rem 1.35rem 1.35rem; }
.paneel > h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.02rem; font-weight: 700; margin-bottom: 1rem; }
.paneel > h3 .stip { width: 9px; height: 9px; border-radius: 50%; background: var(--rose-dark); flex: none; }
.paneel > h3 .onder { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: .1rem; }
.paneel .vakjes { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.paneel .vak { background: var(--g-50); border: 1px solid var(--line); border-radius: var(--r-md); padding: .8rem .9rem; }
.paneel .vak .l { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.paneel .vak .n { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin-top: .2rem; }

/* Voortgangsregels */
.voortgang { display: flex; flex-direction: column; gap: .75rem; }
.voortgang .regel .top { display: flex; justify-content: space-between; font-size: .84rem; margin-bottom: .3rem; }
.voortgang .regel .top b { font-variant-numeric: tabular-nums; }
.voortgang .spoor { height: 6px; border-radius: var(--pill); background: var(--g-200); overflow: hidden; }
.voortgang .spoor i { display: block; height: 100%; background: var(--rose-dark); border-radius: var(--pill); transition: width .7s var(--t); }

/* ════ CHAT RECHTSONDER ═══════════════════════════════════════════════ */

.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 210;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--ink); color: var(--cream); display: grid; place-items: center;
  box-shadow: 0 12px 32px rgba(0,0,0,.28); transition: transform var(--t), background var(--t);
}
.chat-fab:hover { transform: translateY(-3px); }
.chat-fab.open { background: var(--oxide); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab .telt {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--pill); background: var(--rose-dark); color: #fff;
  font-size: .67rem; font-weight: 700; line-height: 20px; text-align: center;
}

/* ════ ONTBREKENDE KLASSEN ════════════════════════════════════════════
   De nieuwe weergaven gebruiken Nederlandse namen. Hier staan ze, in
   dezelfde visuele taal als de rest. */

.band { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
        padding: 1.2rem clamp(1rem,2.2vw,1.5rem) 1.4rem; margin: 0 0 1.2rem; box-shadow: var(--sh-sm); }
.band-kop { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin: 0 0 1rem; }
.band-kop h2 { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; letter-spacing: -.005em; }
.band-kop .sub { color: var(--muted); font-size: .8rem; }

.kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 1.1rem; }
.kaart { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
         background: var(--card); display: flex; flex-direction: column;
         transition: box-shadow var(--t), transform var(--t); }
.kaart:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.kaart .beeld { display: block; width: 100%; height: auto; object-fit: contain; background: var(--g-100); }
.kaart .leeg { min-height: 240px; display: grid; place-items: center; background: var(--g-100);
               color: var(--muted); font-size: .8rem; text-align: center; padding: 1rem; }
.kaart .lijf { padding: .75rem .85rem .9rem; display: flex; flex-direction: column; gap: .1rem; }
.kaart .kop { font-weight: 600; font-size: .87rem; line-height: 1.3; }
.kaart .meta { color: var(--muted); font-size: .72rem; word-break: break-all; }
.kaart .acties { display: flex; gap: .35rem; margin-top: .6rem; }
.kaart .acties > * { flex: 1; text-align: center; padding: .34rem .4rem; font-size: .76rem; }

.knop { display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
        border: 1px solid var(--line); background: var(--card); color: var(--fg);
        padding: .45rem .9rem; border-radius: var(--pill);
        font-size: .82rem; font-weight: 500; text-decoration: none;
        white-space: nowrap; transition: all var(--t); }
.knop:hover { border-color: var(--g-400); }
.knop.vol { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.knop.vol:hover { background: var(--mauve); border-color: var(--mauve); }
.knop.leeg { border-color: transparent; background: transparent; color: var(--muted); }
.knop:disabled { opacity: .45; cursor: not-allowed; }

.seg { display: inline-flex; background: var(--g-100); border: 1px solid var(--line);
       border-radius: var(--pill); padding: 3px; gap: 2px; margin-bottom: 1.2rem; }
.seg button { border: none; background: transparent; color: var(--muted);
              font-size: .82rem; font-weight: 600; padding: .42rem .95rem;
              border-radius: var(--pill); display: inline-flex; align-items: center; gap: .45rem;
              transition: all var(--t); }
.seg button em { font-style: normal; font-size: .68rem; background: var(--g-200);
                 color: var(--g-600); border-radius: var(--pill); padding: .02rem .45rem; }
.seg button.on { background: var(--card); color: var(--fg); box-shadow: var(--sh-sm); }
.seg button.on em { background: var(--rose); color: var(--logo-ink); }

.rij { display: flex; align-items: flex-start; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.rij:last-child { border-bottom: 0; }
.rij .groei { flex: 1; min-width: 0; }
.rij .t { font-weight: 500; font-size: .9rem; }
.rij .s { color: var(--muted); font-size: .8rem; margin-top: .12rem; }

.melding { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
           padding: .75rem 1rem; border-radius: var(--r-md); font-size: .84rem;
           background: var(--g-100); margin-bottom: 1.2rem; }
.melding.warn { background: var(--warn-bg); color: var(--warn); }
.melding.ok { background: var(--ok-bg); color: var(--ok); }
.melding .stip { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

.leegstaat { text-align: center; padding: 2.8rem 1rem; color: var(--muted); }
.leegstaat .groot { font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
                    color: var(--fg); margin-bottom: .35rem; }

textarea.notitie { width: 100%; resize: vertical; padding: .55rem .7rem;
                   border: 1px solid var(--line); border-radius: var(--r-sm);
                   font-family: var(--sans); font-size: .84rem; line-height: 1.45;
                   background: var(--bg); color: var(--fg); outline: none;
                   transition: border-color var(--t); }
textarea.notitie:focus { border-color: var(--rose-dark); }
textarea.notitie::placeholder { color: var(--g-400); font-family: var(--sans); }

/* ════ DAGUPDATE ══════════════════════════════════════════════════════ */
.dagupdate { background: var(--ink); color: var(--cream); border-radius: var(--r-lg);
             padding: 1.3rem clamp(1.1rem,2.5vw,1.7rem) 1.4rem; margin-bottom: 1.3rem; }
.du-kop { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
          font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.du-kop .stip { width: 8px; height: 8px; border-radius: 50%; background: var(--rose-dark);
                align-self: center; flex: none; }
.du-thema { font-family: var(--sans); font-weight: 400; font-size: .85rem;
            color: rgba(250,249,247,.6); }
.du-lijst { list-style: none; margin: .9rem 0 0; display: flex; flex-direction: column; gap: .4rem; }
.du-lijst li { font-size: .89rem; color: rgba(250,249,247,.82); padding-left: 1rem; position: relative; }
.du-lijst li::before { content: ""; position: absolute; left: 0; top: .62em;
                       width: 5px; height: 5px; border-radius: 50%; background: var(--rose-dark); opacity: .8; }
.du-lijst li b { color: var(--cream); font-weight: 700; }
.du-morgen { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid rgba(250,249,247,.14);
             font-size: .85rem; color: rgba(250,249,247,.7); }
.du-morgen b { color: var(--cream); }
.du-acties { display: flex; gap: .5rem; margin-top: 1.1rem; flex-wrap: wrap; }
.du-acties .knop { background: transparent; color: var(--cream); border-color: rgba(250,249,247,.28); }
.du-acties .knop:hover { border-color: var(--cream); }
.du-acties .knop.vol { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.du-acties .knop.vol:hover { background: var(--shell, #E8D7D6); border-color: var(--shell, #E8D7D6); }

/* ════ KEUZE ══════════════════════════════════════════════════════════ */
.keuze { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
         padding: 1.2rem 1.3rem 1.3rem; margin-bottom: 1.2rem; }
.keuze-kop { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.keuze-kop h3 { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.keuze-knoppen { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .7rem; }
.keuze-knop { display: flex; flex-direction: column; gap: .22rem; text-align: left;
              padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r-md);
              background: var(--bg); color: var(--fg); transition: all var(--t); }
.keuze-knop:hover { border-color: var(--oxide, #9C6A72); transform: translateY(-2px); box-shadow: var(--sh-md); }
.keuze-knop .letter { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.keuze-knop .naam { font-weight: 600; font-size: .88rem; }
.keuze-knop .bij { font-size: .76rem; color: var(--muted); line-height: 1.4; }
.keuze-knop.aan { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.keuze-knop.aan .bij { color: rgba(250,249,247,.7); }
.keuze-default { margin-top: .9rem; font-size: .8rem; color: var(--muted); }
.kaart .door { font-size: .72rem; color: var(--muted); margin-top: .4rem; font-style: italic; }

/* ════ JOUW BEURT ═════════════════════════════════════════════════════ */
.stapbalk { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.stap { display: flex; align-items: center; gap: .5rem; padding: .5rem .9rem .5rem .55rem;
        border: 1px solid var(--line); border-radius: var(--pill); background: var(--card);
        font-size: .82rem; color: var(--muted); }
.stap .bol { width: 22px; height: 22px; border-radius: 50%; background: var(--g-200);
             color: var(--g-600); display: grid; place-items: center;
             font-size: .74rem; font-weight: 700; flex: none; }
.stap.nu { border-color: var(--ink); color: var(--fg); }
.stap.nu .bol { background: var(--ink); color: var(--cream); }
.stap.af { opacity: .6; }
.stap.af .bol { background: var(--ok); color: #fff; }
.volgende { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.volgende b { color: var(--fg); }
.klaarmelding { text-align: center; padding: 3.5rem 1.5rem; background: var(--card);
                border: 1px solid var(--line); border-radius: var(--r-lg); }
.klaarmelding .groot { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; }
.klaarmelding p { color: var(--muted); font-size: .9rem; margin: .5rem 0 1.3rem; }
.bwbaar { position: relative; }
.bwknop { border: none; background: transparent; color: var(--g-400); padding: 0 .3rem;
          font-size: .82rem; opacity: 0; transition: opacity var(--t); }
.bwbaar:hover .bwknop, .rij:hover .bwknop, .card:hover .bwknop { opacity: 1; }
.bwknop:hover { color: var(--oxide, #9C6A72); }

/* ════ CHATPANEEL ═════════════════════════════════════════════════════ */
.chat-paneel {
  position: fixed; right: 22px; bottom: 92px; z-index: 209;
  width: min(400px, calc(100vw - 44px)); height: min(600px, calc(100vh - 130px));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  display: none; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .22s ease, transform .22s cubic-bezier(.22,1,.36,1);
}
.chat-paneel.on { display: flex; }
.chat-paneel.zicht { opacity: 1; transform: none; }

.chat-kop { display: flex; align-items: center; gap: .6rem; padding: .85rem 1.05rem;
            border-bottom: 1px solid var(--line); flex: none; }
.chat-kop b { font-family: var(--serif); font-weight: 700; font-size: 1rem; }

.chat-kanalen { display: flex; gap: .25rem; overflow-x: auto; flex: none;
                padding: .55rem 1.05rem; border-bottom: 1px solid var(--line);
                scrollbar-width: none; }
.chat-kanalen::-webkit-scrollbar { display: none; }
.chat-kanalen button { border: none; background: transparent; color: var(--muted);
                       font-size: .77rem; font-weight: 600; padding: .26rem .6rem;
                       border-radius: var(--pill); white-space: nowrap; transition: all var(--t); }
.chat-kanalen button:hover { background: var(--g-100); color: var(--fg); }
.chat-kanalen button.on { background: var(--ink); color: var(--cream); }

.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: .9rem 1.05rem; }

.chat-in { flex: none; padding: .8rem 1.05rem .9rem; border-top: 1px solid var(--line); }
.chat-in textarea {
  width: 100%; min-height: 44px; max-height: 120px; resize: none;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .55rem .7rem; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: .86rem; line-height: 1.45; outline: none;
  transition: border-color var(--t);
}
.chat-in textarea:focus { border-color: var(--oxide, #9C6A72); }
.chat-in textarea::placeholder { color: var(--g-400); font-family: var(--sans); }

.bericht { display: flex; gap: .6rem; padding: .45rem 0; }
.bericht .av { width: 27px; height: 27px; border-radius: 8px; flex: none;
               display: grid; place-items: center; font-size: .73rem; font-weight: 700; color: #fff; }
.bericht .naam { font-size: .79rem; font-weight: 700; }
.bericht .tijd { font-size: .69rem; color: var(--muted); margin-left: .3rem; }
.bericht .tekst { font-size: .85rem; line-height: 1.5; white-space: pre-wrap;
                  word-wrap: break-word; margin-top: .1rem; }

@media (max-width: 640px) {
  .chat-paneel { right: 12px; left: 12px; width: auto; bottom: 86px; height: min(68vh, 520px); }
}
.stap .etiket { white-space: nowrap; }

/* ════ TO DO, beeldvullend ════════════════════════════════════════════ */
.todo-balk { display: flex; align-items: center; gap: .4rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.tb { border: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
      background: var(--g-200); color: var(--g-600); font-size: .76rem; font-weight: 700; flex: none; }
.tb.nu { background: var(--ink); color: var(--cream); }
.tb.af { background: var(--ok); color: #fff; }
.tb:hover { transform: scale(1.12); }
.tb { transition: transform var(--t), background var(--t); }
.tb-tekst { font-size: .8rem; color: var(--muted); margin-left: .5rem; }

.todo { max-width: 1100px; margin: 0 auto; }
.todo h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.015em;
           font-size: clamp(1.7rem, 4.2vw, 2.6rem); line-height: 1.1; }
.todo-bij { color: var(--muted); font-size: .95rem; margin: .5rem 0 1.6rem; max-width: 62ch; }

.todo-blad { display: block; width: 100%; border-radius: var(--r-lg);
             border: 1px solid var(--line); margin-bottom: 1.8rem; cursor: zoom-in;
             background: var(--g-100); }

.todo-opties { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.todo-optie { display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden;
              border: 1.5px solid var(--line); border-radius: var(--r-lg);
              background: var(--card); color: var(--fg); transition: all var(--t); }
.todo-optie:hover { border-color: var(--oxide, #9C6A72); transform: translateY(-3px); box-shadow: var(--sh-md); }
.todo-optie img { width: 100%; height: auto; object-fit: contain; background: var(--g-100); display: block; cursor: zoom-in; }
.todo-optie .oi { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem .3rem; }
.todo-optie .letter { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; line-height: 1; }
.todo-optie .naam { font-weight: 600; font-size: .92rem; }
.todo-optie .bij { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.todo-optie .vink { margin: .7rem 1rem 1rem; padding: .45rem .8rem; border-radius: var(--pill);
                    background: var(--g-100); color: var(--muted); font-size: .78rem;
                    font-weight: 600; text-align: center; transition: all var(--t); }
.todo-optie:hover .vink { background: var(--ink); color: var(--cream); }
.todo-optie.aan { border-color: var(--ink); border-width: 2px; }
.todo-optie.aan .vink { background: var(--ok); color: #fff; }

.todo-verder { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
               margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.knop.groot { padding: .72rem 1.6rem; font-size: .92rem; }

/* ════ LOGOANIMATIE ═══════════════════════════════════════════════════
   Het wordmark schrijft zichzelf: letter voor letter omhoog en scherp,
   daarna trekt de accentlijn zich eronder open. Duurt 1,2 seconde en
   gebeurt een keer, bij het inlogscherm. */

.wm-wrap { display: block; width: 210px; max-width: 72%; margin: 0 auto; }
.wm-anim { display: block; width: 100%; height: auto; color: var(--logo-ink, #292220); }
.wm-anim .ltr {
  opacity: 0;
  transform: translateY(14px);
  transform-box: fill-box; transform-origin: center bottom;
  animation: ltr-in .62s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(var(--i) * 62ms + 120ms);
}
@keyframes ltr-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to   { opacity: 1; transform: none;             filter: blur(0); }
}
.wm-lijn {
  display: block; height: 1px; margin: .85rem auto 0;
  background: var(--rose-dark, #C48088);
  width: 0; animation: lijn-uit .7s cubic-bezier(.22, 1, .36, 1) forwards .78s;
}
@keyframes lijn-uit { to { width: 46%; } }

@media (prefers-reduced-motion: reduce) {
  .wm-anim .ltr { animation: none; opacity: 1; transform: none; filter: none; }
  .wm-lijn { animation: none; width: 46%; }
}

/* ════ BRIEFING NA INLOGGEN ═══════════════════════════════════════════ */
.briefing-ov {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  padding: 1.5rem; background: rgba(10,10,10,.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .28s ease;
}
.briefing-ov.zicht { opacity: 1; }
.briefing {
  width: min(600px, 100%); background: var(--card); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem clamp(1.3rem, 3vw, 2.2rem) 1.6rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  transform: translateY(14px) scale(.985);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}
.briefing-ov.zicht .briefing { transform: none; }
.br-kop { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.br-dag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.br-kop .knop { margin-left: auto; }
.briefing h2 {
  font-family: var(--serif); font-weight: 700; letter-spacing: -.015em;
  font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.15; margin-bottom: 1rem;
}
.br-tekst {
  font-size: .95rem; line-height: 1.7; white-space: pre-wrap;
  min-height: 8.5rem; max-height: 46vh; overflow-y: auto;
  color: var(--fg);
}
/* de cursor knippert zolang er getypt wordt */
.br-tekst::after {
  content: ""; display: inline-block; width: 2px; height: 1.05em;
  background: var(--oxide, #9C6A72); vertical-align: text-bottom;
  margin-left: 2px; animation: knipper 1s steps(2) infinite;
}
@keyframes knipper { 50% { opacity: 0; } }
.br-voet {
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(8px); transition: all .34s cubic-bezier(.22, 1, .36, 1);
}
.br-voet.zicht { opacity: 1; transform: none; }
.br-voet .knop { width: 100%; }
@media (prefers-reduced-motion: reduce) { .br-tekst::after { animation: none; } }
.wa-knop { display: inline-flex; align-items: center; justify-content: center;
           padding: .38rem .8rem; border-radius: var(--pill); text-decoration: none;
           background: #25D366; color: #08331b; font-size: .78rem; font-weight: 700;
           white-space: nowrap; flex: none; transition: filter var(--t); }
.wa-knop:hover { filter: brightness(1.08); }
.kaart .wa-knop { display: block; margin-top: .5rem; text-align: center; }
