/* Sentum designsysteem - warm, modern, bewust niet klinisch. Mobile first. */

/* Kleuren en typografie van sentum.be: het diepe leisteenblauw #304B54 en het
   mintgroen #59C3C1, met Raleway voor titels en Lato voor lopende tekst. */
:root {
  --bg: #f4f8f8;
  --surface: #ffffff;
  --surface-2: #eaf3f3;
  --ink: #1e343c;
  --ink-soft: #40606a;
  --muted: #6d858d;
  --line: #dde9ea;
  --line-strong: #c2d8da;

  --primary: #304b54;
  --primary-dark: #1e343c;
  --primary-soft: #e3f0f0;
  --accent: #59c3c1;
  --accent-dark: #3ea9a7;
  --accent-ink: #16333a;
  --accent-soft: #e0f5f4;
  --danger: #b4402b;
  --danger-soft: #fbe9e5;
  --ok: #1f7a6b;
  --ok-soft: #e0f2ef;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(23, 35, 31, .05), 0 2px 8px rgba(23, 35, 31, .04);
  --shadow-md: 0 2px 6px rgba(23, 35, 31, .06), 0 12px 28px rgba(23, 35, 31, .07);

  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Raleway", "Lato", -apple-system, "Segoe UI", sans-serif;

  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.005em; }
h1 { font-size: 2rem; letter-spacing: -.02em; }
h2 { font-size: 1.4rem; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
a { color: var(--primary-dark); }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.hidden { display: none !important; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 248, 248, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
}
.brand-name { font-family: var(--font-display); font-size: 1.22rem; letter-spacing: .01em; }
.brand-sub { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.header-link { font-size: .875rem; color: var(--muted); text-decoration: none; }
.header-link:hover { color: var(--primary-dark); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 550; line-height: 1;
  padding: .8rem 1.35rem; border-radius: var(--r-pill);
  border: 1px solid transparent; background: var(--primary); color: #fff;
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .16s ease, box-shadow .16s ease;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-dark); color: var(--accent-ink); }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }

:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(89, 195, 193, .55); outline-offset: 2px;
}

/* ------------------------------------------------------------------ hero */

.hero { padding: 2.5rem 0 1.5rem; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.1rem); max-width: 16ch; }
.hero .lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.assurances { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 1.5rem; color: var(--muted); font-size: .875rem; }
.assurances span { display: inline-flex; align-items: center; gap: .4rem; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ------------------------------------------------------------------ stepper */

.stepper { display: flex; gap: .4rem; margin: 0 0 1.75rem; list-style: none; padding: 0; }
.stepper li {
  flex: 1; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding-top: .55rem; border-top: 3px solid var(--line);
  transition: color .2s, border-color .2s;
}
.stepper li.done { border-color: var(--primary-soft); color: var(--ink-soft); }
.stepper li.active { border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.stepper .num { display: none; }
@media (max-width: 520px) {
  .stepper li { font-size: 0; padding-top: .5rem; }
  .stepper .num { display: block; font-size: .72rem; text-align: center; }
}

/* ------------------------------------------------------------------ cards */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 1rem; }
.card-pad-lg { padding: 1.6rem; }
@media (min-width: 720px) { .card { padding: 1.8rem; } }

.section-head { margin-bottom: 1.25rem; }
.section-head p { margin: .45rem 0 0; color: var(--muted); }
.eyebrow {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-dark); font-weight: 700; margin-bottom: .4rem;
}

/* ------------------------------------------------------------------ topic chips */

.topic-grid { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .topic-grid { grid-template-columns: 1fr 1fr; } }

.topic {
  display: flex; gap: .8rem; align-items: flex-start; text-align: left;
  padding: .9rem 1rem; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--surface);
  cursor: pointer; font: inherit; color: inherit; width: 100%;
  transition: border-color .15s, background .15s, transform .12s;
}
.topic:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.topic[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.topic .icon { font-size: 1.15rem; line-height: 1.3; }
.topic .label { font-weight: 550; display: block; }
.topic .hint { display: block; font-size: .84rem; color: var(--muted); margin-top: .15rem; }
.topic .tick {
  margin-left: auto; width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  color: #fff; font-size: .7rem;
}
.topic[aria-pressed="true"] .tick { background: var(--primary); border-color: var(--primary); }

/* ------------------------------------------------------------------ forms */

.field { margin-bottom: 1.15rem; }
.field > label, .field-label {
  display: block; font-weight: 550; font-size: .93rem; margin-bottom: .4rem;
}
.field .help { font-size: .84rem; color: var(--muted); margin: -.15rem 0 .5rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .7rem .85rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong); background: var(--surface);
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  font: inherit; font-size: .9rem; cursor: pointer;
  padding: .5rem .95rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  transition: all .15s;
}
.pill:hover { border-color: var(--primary); }
.pill[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.checkline { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; }
.checkline input { width: auto; margin-top: .25rem; flex: none; }

.step-actions {
  display: flex; gap: .75rem; align-items: center; margin-top: 1.5rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.step-actions .spacer { flex: 1; }

/* ------------------------------------------------------------------ matches */

.match { display: grid; gap: 1.1rem; }
.match-head { display: flex; gap: 1rem; align-items: flex-start; }
.avatar {
  width: 66px; height: 66px; border-radius: 20px; flex: none;
  object-fit: cover; background: var(--surface-2);
}
.avatar-sm { width: 40px; height: 40px; border-radius: 12px; }
.match-title { flex: 1; min-width: 0; }
.match-title h3 { font-size: 1.2rem; }
.match-title .role { color: var(--muted); font-size: .88rem; }

.score {
  flex: none; text-align: center; min-width: 62px;
  background: var(--primary-soft); border-radius: var(--r-md); padding: .5rem .4rem;
}
.score b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--primary-dark); line-height: 1; }
.score span { font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; color: var(--primary-dark); opacity: .75; }

.rank-badge {
  display: inline-block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--accent-ink); background: var(--accent-soft);
  padding: .25rem .6rem; border-radius: var(--r-pill); margin-bottom: .5rem;
}

.why { background: var(--surface-2); border-radius: var(--r-md); padding: 1rem 1.1rem; }
.why h4 { margin: 0 0 .55rem; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.why ul { margin: 0; padding-left: 1.1rem; }
.why li { margin-bottom: .3rem; font-size: .92rem; }
.why li:last-child { margin-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  font-size: .78rem; padding: .25rem .6rem; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line);
}
.tag-primary { background: var(--primary-soft); border-color: transparent; color: var(--primary-dark); }

.next-slot {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
  justify-content: space-between; padding: .85rem 1rem;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
}
.next-slot .when { font-weight: 550; }

.bio { font-size: .93rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------ slots */

.day-block + .day-block { margin-top: 1.25rem; }
.day-block h4 { margin: 0 0 .6rem; font-size: .95rem; }
.slot-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot {
  font: inherit; font-size: .95rem; font-variant-numeric: tabular-nums;
  padding: .6rem 1rem; border-radius: var(--r-sm); cursor: pointer;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: all .14s;
}
.slot:hover { border-color: var(--primary); background: var(--primary-soft); }
.slot[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot .mode { display: block; font-size: .68rem; opacity: .7; margin-top: .1rem; }

/* ------------------------------------------------------------------ notices */

.notice {
  border-radius: var(--r-md); padding: .9rem 1.1rem; font-size: .9rem;
  border: 1px solid var(--line); background: var(--surface-2);
}
.notice-info { background: var(--primary-soft); border-color: transparent; color: var(--primary-dark); }
.notice-warn { background: #fdf3e3; border-color: transparent; color: #8a5a1c; }
.notice-error { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.notice-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }

.disclaimer {
  font-size: .84rem; color: var(--muted); line-height: 1.5;
  border-left: 3px solid var(--line-strong); padding-left: .9rem; margin-top: 1.5rem;
}

/* ------------------------------------------------------------------ crisis */

.crisis { border: 2px solid var(--danger); background: #fff; }
.crisis h2 { color: var(--danger); }
.crisis-contacts { list-style: none; padding: 0; margin: 1rem 0 0; }
.crisis-contacts li {
  display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline;
  padding: .75rem 0; border-top: 1px solid var(--line);
}
.crisis-contacts .number {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--danger); min-width: 3.5rem;
}
.crisis-contacts .name { font-weight: 550; }

/* ------------------------------------------------------------------ confirmation */

.confirm-hero { text-align: center; padding: .5rem 0 1.25rem; }
.confirm-check {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 1.8rem;
}
.summary { list-style: none; margin: 0; padding: 0; }
.summary li {
  display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between;
  padding: .7rem 0; border-bottom: 1px solid var(--line);
}
.summary li:last-child { border-bottom: 0; }
.summary .k { color: var(--muted); font-size: .9rem; }
.summary .v { font-weight: 550; text-align: right; }

/* ------------------------------------------------------------------ spinner */

.loading { display: flex; gap: .7rem; align-items: center; color: var(--muted); padding: 1.5rem 0; justify-content: center; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid var(--line-strong); border-top-color: var(--primary);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fade .28s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Geselecteerde thema's als chips onder het tekstveld, en de niet-blokkerende crisishulp. */
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 0; }
.chip-row:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px;
  background: var(--primary, #304b54); color: #fff; font-size: .82rem; }
.chip button { all: unset; cursor: pointer; font-weight: 700; line-height: 1; padding: 0 .1rem; opacity: .85; }
.chip button:hover { opacity: 1; }
.chip-label { font-size: .78rem; color: var(--muted, #667); margin-right: .2rem; align-self: center; }
.crisis-inline { margin: .6rem 0 0; padding: .8rem 1rem; border-radius: 12px; border: 1px solid #e8b4b4;
  background: #fff5f5; font-size: .9rem; }
.crisis-inline strong { display: block; margin-bottom: .3rem; }
.crisis-inline .numbers { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.crisis-inline .numbers a { text-decoration: none; padding: .35rem .7rem; border-radius: 999px; background: #b23b3b; color: #fff; font-weight: 700; }
.theme-confirm { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 12px; background: #eef7f7; border: 1px solid #cfe6e5; }
.theme-confirm h4 { margin: 0 0 .5rem; }
.theme-confirm label { display: flex; gap: .5rem; align-items: center; margin: .3rem 0; }
.crisis-contacts a { text-decoration: none; color: inherit; }
.returning-list { display: grid; gap: .75rem; }
@media (min-width: 640px) { .returning-list { grid-template-columns: 1fr 1fr; } }
.returning-card { display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line, #dfe6e8); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; }
.returning-card:hover { border-color: var(--accent, #59c3c1); }
.returning-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.returning-card .role { font-size: .8rem; color: var(--muted, #667); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  margin-top: 3rem; padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}

/* ------------------------------------------------------------------ admin */

.admin-body { background: var(--surface-2); }
/* Het dashboard mag breder dan de bezoekerssite: een kalender met zeven kolommen
   heeft ruimte nodig, een leestekst niet. */
.admin-body .wrap { --wrap: 1440px; }
.admin-shell { display: grid; grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem 0 3rem; }
@media (min-width: 900px) { .admin-shell { grid-template-columns: 210px minmax(0, 1fr); gap: 1.75rem; align-items: start; } }

.admin-nav { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; }
@media (min-width: 900px) {
  .admin-nav { flex-direction: column; position: sticky; top: 5rem; overflow: visible; }
}
.admin-nav button {
  font: inherit; font-size: .92rem; text-align: left; white-space: nowrap;
  padding: .6rem .9rem; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--ink-soft);
}
.admin-nav button:hover { background: rgba(255, 255, 255, .7); }
.admin-nav button[aria-current="true"] { background: var(--surface); border-color: var(--line); font-weight: 600; color: var(--primary-dark); box-shadow: var(--shadow-sm); }

.stat-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; color: var(--primary-dark); }
.stat span { font-size: .8rem; color: var(--muted); }

.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.badge {
  display: inline-block; font-size: .74rem; font-weight: 600; padding: .2rem .55rem;
  border-radius: var(--r-pill); text-transform: capitalize;
}
.badge-booked { background: var(--primary-soft); color: var(--primary-dark); }
.badge-available { background: var(--surface-2); color: var(--muted); }
.badge-cancelled { background: var(--danger-soft); color: var(--danger); }
.badge-completed { background: var(--ok-soft); color: var(--ok); }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 140px; flex: 1 1 140px; }
.filters .field > label { font-size: .78rem; }

.psy-row {
  display: flex; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.psy-row:last-child { border-bottom: 0; }
.psy-row .grow { flex: 1; min-width: 0; }
.psy-row .actions { display: flex; gap: .4rem; flex-wrap: wrap; }

dialog {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0;
  width: min(100% - 2rem, 620px); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-md);
}
dialog::backdrop { background: rgba(23, 35, 31, .45); }
.dialog-head { padding: 1.25rem 1.4rem .75rem; }
.dialog-body { padding: 0 1.4rem; max-height: 62vh; overflow-y: auto; }
.dialog-foot {
  display: flex; gap: .6rem; justify-content: flex-end;
  padding: 1rem 1.4rem 1.25rem; border-top: 1px solid var(--line); margin-top: 1rem;
}

.login-shell { display: grid; place-items: center; min-height: 78vh; padding: 2rem 0; }
.login-card { width: min(100% - 2rem, 400px); }

.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex; gap: .7rem; align-items: center; justify-content: space-between;
  padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.hours-list li:last-child { border-bottom: 0; }
.icon-btn {
  font: inherit; font-size: .8rem; cursor: pointer; color: var(--danger);
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .25rem .6rem;
}
.icon-btn:hover { background: var(--danger-soft); border-color: var(--danger-soft); }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  z-index: 60; max-width: min(92vw, 460px);
  padding: .85rem 1.2rem; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-size: .9rem; box-shadow: var(--shadow-md);
}
.toast-error { background: var(--danger); }


/* ------------------------------------------------------- hulpvraag-accordeon */

.category-list { display: grid; gap: .45rem; }

.category {
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden;
  transition: border-color .16s, box-shadow .16s;
}
.category:hover { border-color: var(--line-strong); }
.category.is-open { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.category.has-selection { border-color: var(--primary); }

.category-head {
  display: flex; align-items: center; gap: .7rem; width: 100%;
  padding: .6rem .9rem; font: inherit; color: inherit; text-align: left;
  background: transparent; border: 0; cursor: pointer; min-height: 48px;
}
.category-head .icon { font-size: 1.05rem; line-height: 1; flex: none; }
.category-head .grow { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.category-head .label { font-weight: 600; font-family: var(--font-display); font-size: .98rem; }
.category-head .hint { font-size: .8rem; color: var(--muted); }
.category.is-open .category-head { padding: .9rem 1.05rem; }
.category.is-open .category-head .grow { display: block; }
.category.is-open .category-head .hint { display: block; margin-top: .1rem; font-size: .84rem; }
@media (max-width: 520px) { .category:not(.is-open) .category-head .hint { display: none; } }
.category-head .count {
  flex: none; font-size: .74rem; font-weight: 700; padding: .18rem .5rem;
  border-radius: var(--r-pill); background: var(--primary); color: #fff;
}
.category-head .chev {
  flex: none; color: var(--muted); font-size: .8rem;
  transition: transform .2s ease;
}
.category.is-open .chev { transform: rotate(180deg); }

.category-body { padding: 0 1.05rem 1.05rem; display: grid; gap: .5rem; }
@media (min-width: 640px) { .category-body { grid-template-columns: 1fr 1fr; } }

.category-body .topic { padding: .75rem .9rem; }
.category-body .topic .label { font-size: .95rem; }

/* ------------------------------------------------------- dringende hulpvraag */

.urgent-box {
  border: 1.5px solid var(--accent); background: var(--accent-soft);
  border-radius: var(--r-md); padding: 1rem 1.15rem; margin-top: 1rem;
}
.urgent-box h4 { margin: 0 0 .35rem; font-size: 1rem; font-family: var(--font-display); }
.urgent-box p { margin: 0 0 .5rem; font-size: .9rem; color: var(--ink-soft); }
.urgent-box p:last-child { margin-bottom: 0; }
.urgent-box .safety { font-size: .84rem; color: var(--ink-soft); border-top: 1px solid rgba(48,75,84,.15); padding-top: .55rem; margin-top: .55rem; }

/* ------------------------------------------------------- demo-melding */

.demo-banner {
  background: var(--primary); color: #fff; font-size: .82rem;
  text-align: center; padding: .5rem 1rem; line-height: 1.4;
}
.demo-banner strong { color: var(--accent); font-weight: 700; }

/* Echte foto's van sentum.be zijn portretten: bovenaan uitsnijden staat beter. */
.avatar { object-position: center 22%; }


/* ------------------------------------------------- dialoogfout & bevestiging */

/* Buiten .dialog-body, zodat een foutmelding nooit onzichtbaar onderaan
   een scrollend formulier belandt. */
.dialog-error:empty { display: none; }
.dialog-error { padding: 0 1.4rem; margin-top: 1rem; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f3222; }

#confirm-dialog { width: min(100% - 2rem, 440px); }
#confirm-dialog .dialog-body p { margin: 0; color: var(--ink-soft); }

.hint-warn {
  display: inline-block; margin-top: .25rem; font-size: .78rem;
  color: #8a5a1c; background: #fdf3e3; border-radius: var(--r-pill); padding: .12rem .55rem;
}

/* ------------------------------------------------------------- aanmeldscherm */

.or-line {
  display: flex; align-items: center; gap: .8rem;
  color: var(--muted); font-size: .8rem; margin-bottom: .8rem;
}
.or-line::before, .or-line::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.code-input {
  font-size: 1.5rem; letter-spacing: .5em; text-align: center;
  font-variant-numeric: tabular-nums; padding-left: .5em;
}

#google-btn { gap: .6rem; text-decoration: none; }

/* ------------------------------------------------------------------ profiel */

.profile-head { display: flex; gap: 1.1rem; align-items: flex-start; }
.profile-avatar {
  width: 62px; height: 62px; border-radius: 20px; flex: none;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.perm-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; }
@media (min-width: 700px) { .perm-list { grid-template-columns: 1fr 1fr; } }
.perm-list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; }
.perm-tick { color: var(--accent-dark); font-weight: 700; flex: none; }

.role-ladder { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.role-ladder li {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
}
.role-ladder li.is-me { border-color: var(--primary); background: var(--primary-soft); }
.rung-level {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  background: var(--surface-2); color: var(--ink-soft);
}
.role-ladder li.is-me .rung-level { background: var(--primary); color: #fff; }

.gdpr-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.gdpr-list li {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.gdpr-list li:last-child { border-bottom: 0; }
.gdpr-list .grow { flex: 1; min-width: 220px; }

/* ------------------------------------------------------------------ prose */

.prose { max-width: 760px; }
.prose h2 { margin: 2rem 0 .6rem; font-size: 1.25rem; }
.prose h3 { margin: 1.4rem 0 .5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose code {
  background: var(--surface-2); padding: .1rem .35rem;
  border-radius: 5px; font-size: .9em;
}

.privacy-table { width: 100%; min-width: 0; border-collapse: collapse; margin: .8rem 0 1.2rem; font-size: .9rem; }
.privacy-table th, .privacy-table td {
  text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
.privacy-table th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ------------------------------------------------------------------ over Sentum */

.about-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 760px) { .about-grid { grid-template-columns: repeat(3, 1fr); } }
.about-card {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.1rem; background: var(--surface);
}
.about-card h4 { margin: 0 0 .4rem; font-family: var(--font-display); font-size: 1rem; }
.about-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

.value-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.value-pill {
  font-size: .85rem; padding: .35rem .85rem; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600;
}

.team-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.team-chip {
  display: flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .25rem .8rem .25rem .25rem; background: var(--surface); font-size: .85rem;
}
.team-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: center 20%; }

.practice-facts { list-style: none; margin: 1rem 0 0; padding: 0; font-size: .9rem; }
.practice-facts li { display: flex; gap: .6rem; padding: .35rem 0; color: var(--ink-soft); }
.practice-facts .icon { flex: none; }

.nav-badge {
  display: inline-block; min-width: 18px; padding: 0 .35rem; margin-left: .3rem;
  border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink);
  font-size: .7rem; font-weight: 700; text-align: center;
}
.role-select { width: auto; min-width: 130px; padding: .35rem .5rem; font-size: .85rem; }


/* ================================================================== kalendersysteem
   Eén visuele taal voor de planningskalender én de beschikbaarheidskalender:
   dezelfde cellen, dezelfde items, dezelfde kleurenlogica. Kolommen zijn altijd
   even breed (minmax(0, 1fr)); lange tekst wordt afgekapt, nooit uitgerekt. */

:root {
  --cal-client: #304b54;      --cal-client-bg: #e3f0f0;
  --cal-intern: #3ea9a7;      --cal-intern-bg: #e0f5f4;
  --cal-casus: #7a4a86;       --cal-casus-bg: #efe8f3;
  --cal-intervisie: #3b5a9a;  --cal-intervisie-bg: #e7ecf6;
  --cal-opleiding: #c98a2b;   --cal-opleiding-bg: #fbf1df;
  --cal-overig: #7d8b90;      --cal-overig-bg: #eef1f2;
  --cal-done: #1f7a6b;        --cal-done-bg: #e0f2ef;
  --cal-absent: #c9856a;      --cal-absent-bg: #f8ece6;
  --cal-cell-h: 118px;
}

/* ---- werkbalk ---- */
.cal-toolbar {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center;
  justify-content: space-between; margin-bottom: .75rem;
}
.cal-nav { display: flex; align-items: center; gap: .35rem; }
.cal-nav h2, .cal-nav h3 { font-size: 1.15rem; text-transform: capitalize; margin-left: .35rem; white-space: nowrap; }
.cal-controls { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.cal-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; background: var(--surface); }
.seg button {
  font: inherit; font-size: .85rem; padding: .45rem .95rem; border: 0; cursor: pointer;
  background: transparent; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.seg-wrap { flex-wrap: wrap; }

.cal-legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .78rem; color: var(--muted); margin: 0 0 .75rem; align-items: center; }
.cal-legend i, .cal-legend .cal-swatch {
  display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px;
  border-left: 3px solid transparent;
}

/* ---- maandraster (gedeeld) ---- */
.cal-month, .av-month { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cal-month-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal-dow { padding: .5rem .6rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.cal-dow:nth-child(6), .cal-dow:nth-child(7) { color: #9aacb0; }

.cal-month-grid, .av-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }

.cal-cell, .av-cell {
  min-width: 0; min-height: var(--cal-cell-h); padding: .4rem .45rem .45rem;
  border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .3rem; align-items: stretch; text-align: left;
  font: inherit; color: inherit; background: var(--surface); cursor: default;
  transition: background .12s;
}
.cal-cell:nth-child(7n), .av-cell:nth-child(7n) { border-right: 0; }
.cal-cell:nth-child(7n), .cal-cell:nth-child(7n-1),
.av-cell:nth-child(7n), .av-cell:nth-child(7n-1) { background: #fafcfc; }        /* weekend */
.cal-cell.is-other, .av-cell.is-other { background: #f5f8f8; }
.cal-cell.is-other .cal-daynum, .av-cell.is-other .av-daynum { color: #a9b8bc; }
.av-cell { cursor: pointer; }
.av-cell:hover { background: var(--primary-soft); }
.av-cell.is-absent { background: repeating-linear-gradient(135deg, #fff 0 7px, #f4f0ee 7px 14px); }

.cal-cell-head, .av-cell-head {
  display: flex; align-items: center; justify-content: space-between; gap: .35rem; min-width: 0;
}
.cal-daynum, .av-daynum {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: .82rem; font-weight: 700; flex: none;
}
.cal-cell.is-today .cal-daynum, .av-cell.is-today .av-daynum { background: var(--primary); color: #fff; }
.cal-meta {
  font-size: .68rem; font-weight: 700; color: var(--accent-dark); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em;
}
.cal-meta.is-booked { color: var(--primary-dark); }

.cal-cell-items, .av-bars { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }

/* ---- items (gedeeld door beide kalenders) ---- */
.cal-item, .av-bar {
  display: flex; align-items: baseline; gap: .35rem; min-width: 0; width: 100%;
  font: inherit; font-size: .72rem; line-height: 1.3; text-align: left;
  padding: .2rem .45rem .2rem .4rem; border-radius: 6px; border: 0;
  border-left: 3px solid var(--cal-overig); background: var(--cal-overig-bg); color: var(--ink);
  cursor: pointer; overflow: hidden; white-space: nowrap;
}
.av-bar { cursor: inherit; }
.cal-item-time, .av-bar-time { font-weight: 700; font-variant-numeric: tabular-nums; flex: none; color: inherit; opacity: .85; }
.cal-item-title, .av-bar-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cal-item-sub, .av-bar em { font-style: normal; flex: none; opacity: .65; font-size: .66rem; }

.cal-item.ev-client   { border-left-color: var(--cal-client);   background: var(--cal-client-bg); }
.cal-item.ev-completed{ border-left-color: var(--cal-done);     background: var(--cal-done-bg); }
.cal-item.ev-cancelled{ border-left-color: #b9c6c9; background: #f1f4f5; color: var(--muted); text-decoration: line-through; }
.cal-item.ev-intern   { border-left-color: var(--cal-intern);   background: var(--cal-intern-bg); }
.cal-item.ev-casus    { border-left-color: var(--cal-casus);    background: var(--cal-casus-bg); }
.cal-item.ev-intervisie{ border-left-color: var(--cal-intervisie); background: var(--cal-intervisie-bg); }
.cal-item.ev-opleiding{ border-left-color: var(--cal-opleiding); background: var(--cal-opleiding-bg); }
.cal-item.ev-overig   { border-left-color: var(--cal-overig);   background: var(--cal-overig-bg); }
.cal-item:hover { filter: brightness(.96); }

.av-rule   { border-left-color: var(--cal-client); background: var(--cal-client-bg); }
.av-extra  { border-left-color: var(--cal-intern); background: var(--cal-intern-bg); }
.av-absent { border-left-color: var(--cal-absent); background: var(--cal-absent-bg); color: #7a4a35; }
.av-event  { border-left-color: var(--cal-casus);  background: var(--cal-casus-bg); }

/* legenda-staaltjes in dezelfde kleuren */
.cal-legend .ev-client   { background: var(--cal-client-bg);   border-left-color: var(--cal-client); }
.cal-legend .ev-intern   { background: var(--cal-intern-bg);   border-left-color: var(--cal-intern); }
.cal-legend .ev-casus    { background: var(--cal-casus-bg);    border-left-color: var(--cal-casus); }
.cal-legend .ev-intervisie{ background: var(--cal-intervisie-bg); border-left-color: var(--cal-intervisie); }
.cal-legend .ev-opleiding{ background: var(--cal-opleiding-bg); border-left-color: var(--cal-opleiding); }
.cal-legend .av-rule     { background: var(--cal-client-bg);   border-left-color: var(--cal-client); }
.cal-legend .av-extra    { background: var(--cal-intern-bg);   border-left-color: var(--cal-intern); }
.cal-legend .av-absent   { background: var(--cal-absent-bg);   border-left-color: var(--cal-absent); }
.cal-legend .av-event    { background: var(--cal-casus-bg);    border-left-color: var(--cal-casus); }

.cal-more {
  font: inherit; font-size: .68rem; font-weight: 700; background: transparent; border: 0;
  color: var(--primary-dark); cursor: pointer; text-align: left; padding: .1rem .4rem;
}
.cal-more:hover { text-decoration: underline; }
.av-foot { margin-top: auto; font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- weekraster ---- */
.cal-week { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cal-week-head { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal-week-dayhead { padding: .5rem .3rem; text-align: center; border-left: 1px solid var(--line); min-width: 0; }
.cal-week-dow { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.cal-week-daynum { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; }
.cal-week-dayhead.is-today .cal-week-daynum { background: var(--primary); color: #fff; }
.cal-week-dayhead .cal-meta { display: block; margin-top: .1rem; }
.cal-week-body { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); overflow-x: auto; }
.cal-week-hours { position: relative; }
.cal-hour { position: absolute; right: .45rem; transform: translateY(-50%); font-size: .66rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-week-col {
  position: relative; min-width: 0; border-left: 1px solid var(--line);
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% 60px;
}
.cal-week-col.is-today { background-color: rgba(89, 195, 193, .07); }
.cal-block {
  position: absolute; font: inherit; text-align: left; cursor: pointer; min-width: 0;
  border: 0; border-left: 3px solid var(--cal-overig); background: var(--cal-overig-bg); color: var(--ink);
  border-radius: 6px; padding: .25rem .4rem; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.08);
  display: flex; flex-direction: column; gap: .05rem;
}
.cal-block.ev-client    { border-left-color: var(--cal-client);    background: var(--cal-client-bg); }
.cal-block.ev-completed { border-left-color: var(--cal-done);      background: var(--cal-done-bg); }
.cal-block.ev-cancelled { border-left-color: #b9c6c9; background: #f1f4f5; color: var(--muted); text-decoration: line-through; }
.cal-block.ev-intern    { border-left-color: var(--cal-intern);    background: var(--cal-intern-bg); }
.cal-block.ev-casus     { border-left-color: var(--cal-casus);     background: var(--cal-casus-bg); }
.cal-block.ev-intervisie{ border-left-color: var(--cal-intervisie);background: var(--cal-intervisie-bg); }
.cal-block.ev-opleiding { border-left-color: var(--cal-opleiding); background: var(--cal-opleiding-bg); }
.cal-block-time { font-size: .64rem; font-weight: 700; opacity: .8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cal-block-title { font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-block-sub { font-size: .66rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- regels (beschikbaarheid) ---- */
.rule-list { display: grid; gap: .5rem; }
.rule { border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: border-color .15s; }
.rule:hover { border-color: var(--line-strong); }
.rule.is-open { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.rule-head {
  display: grid; grid-template-columns: 96px 110px 1fr auto; align-items: center; gap: .9rem; width: 100%;
  padding: .7rem .95rem; font: inherit; color: inherit; text-align: left; background: transparent; border: 0; cursor: pointer;
}
.rule-day { font-weight: 700; font-family: var(--font-display); }
.rule-time { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.rule-meta { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 0; }
.rule-chip {
  font-size: .74rem; padding: .15rem .55rem; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-soft); white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem;
}
.rule-chip.is-place { background: var(--cal-client-bg); color: var(--primary-dark); }
.rule-chip.is-repeat { background: var(--cal-intern-bg); color: var(--accent-ink); }
.rule-chip.is-ending { background: var(--cal-opleiding-bg); color: #7a5416; }
.rule .chev { color: var(--muted); font-size: .75rem; transition: transform .2s; }
.rule.is-open .chev { transform: rotate(180deg); }
.rule-body { border-top: 1px solid var(--line); background: #fbfdfd; }
.rule-form { padding: .9rem .95rem 1rem; }
.rule-grid { display: grid; gap: .6rem .75rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.rule-grid .field { margin: 0; min-width: 0; }
.rule-grid .field > label { font-size: .76rem; margin-bottom: .3rem; color: var(--ink-soft); }
.rule-section { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.rule-section-label { font-size: .76rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .45rem; text-transform: uppercase; letter-spacing: .06em; }
.repeat-seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.repeat-seg button {
  font: inherit; font-size: .84rem; padding: .5rem .9rem; border-radius: var(--r-pill); cursor: pointer;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .45rem;
}
.repeat-seg button .ico { font-size: .95rem; line-height: 1; }
.repeat-seg button:hover { border-color: var(--primary); }
.repeat-seg button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.rule-dates { display: grid; gap: .6rem .75rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: .6rem; }
.rule-dates .field { margin: 0; }
.rule-dates .field > label { font-size: .76rem; margin-bottom: .3rem; color: var(--ink-soft); }
.rule-foot { display: flex; gap: .5rem; justify-content: space-between; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.rule-hint { font-size: .78rem; color: var(--muted); margin: .35rem 0 0; }

/* ---- dagdialoog ---- */
.hours-list li .av-bar { display: inline-block; width: 10px; height: 10px; padding: 0; margin-right: .45rem; border-radius: 3px; vertical-align: -1px; }
.day-actions { display: grid; gap: .6rem; }
.day-action { border: 1px solid var(--line); border-radius: var(--r-md); padding: .65rem .9rem; background: var(--surface-2); }
.day-action summary { cursor: pointer; font-weight: 600; font-size: .92rem; list-style: none; display: flex; align-items: center; gap: .5rem; }
.day-action summary::-webkit-details-marker { display: none; }
.day-action summary::before { content: "+"; font-weight: 700; color: var(--accent-dark); width: 1em; }
.day-action[open] summary::before { content: "–"; }

/* ---- kleinere schermen ---- */
@media (max-width: 900px) {
  :root { --cal-cell-h: 96px; }
  .rule-head { grid-template-columns: 84px 96px 1fr auto; gap: .6rem; padding: .6rem .8rem; }
}
/* Tekst in een cel past zich aan de celbreedte aan, niet aan het scherm: eerst valt de
   plaatsnaam weg, daarna de titel. Zo staat er nooit een afgebroken "E…". */
.cal-cell, .av-cell { container-type: inline-size; }
/* Bij werkuren en extra uren is het uur de kern; bij afwezigheid en interne
   afspraken is de tekst de kern. Die blijft dus altijd staan. */
@container (max-width: 150px) {
  .av-rule .av-bar-text, .av-extra .av-bar-text { display: none; }
  .av-rule .av-bar-time, .av-extra .av-bar-time { flex: 1; }
}
@container (max-width: 118px) { .cal-meta { font-size: .62rem; } }
@container (max-width: 84px)  { .cal-item-title { display: none; } }
@container (max-width: 92px)  { .av-bar-time, .cal-item-time { font-size: .64rem; } }

@media (max-width: 640px) {
  :root { --cal-cell-h: 74px; }
  .cal-item, .av-bar { padding-left: .3rem; padding-right: .3rem; }
  .cal-week-body { min-width: 720px; }
  .rule-head { grid-template-columns: 1fr auto; }
  .rule-head .rule-time { grid-column: 1; }
  .rule-head .rule-meta { grid-column: 1 / -1; }
}

/* ------------------------------------------------------ expertise met niveaus */

.level-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .78rem; margin: .3rem 0 .6rem; }
.lvl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
.lvl-dot.lvl-1, .lvl-btn.lvl-1[aria-pressed="true"] { background: #cfe3e6; color: var(--ink); }
.lvl-dot.lvl-2, .lvl-btn.lvl-2[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.lvl-dot.lvl-3, .lvl-btn.lvl-3[aria-pressed="true"] { background: var(--primary); color: #fff; }
.exp-group { border: 1.5px solid var(--line); border-radius: var(--r-md); margin-bottom: .45rem; background: var(--surface); overflow: hidden; }
.exp-group.is-open { border-color: var(--line-strong); }
.exp-head {
  display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .8rem;
  font: inherit; color: inherit; text-align: left; background: transparent; border: 0; cursor: pointer;
}
.exp-head .icon { font-size: 1.05rem; }
.exp-head .label { font-weight: 600; font-family: var(--font-display); font-size: .95rem; }
.exp-head .count { font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: var(--r-pill); background: var(--primary); color: #fff; }
.exp-head .chev { color: var(--muted); font-size: .7rem; transition: transform .2s; }
.exp-group.is-open .exp-head .chev { transform: rotate(180deg); }
.exp-body { border-top: 1px solid var(--line); }
.exp-group[data-group="intake"] .exp-body { border-top: 0; }
.exp-row { display: flex; align-items: center; gap: .8rem; padding: .5rem .8rem; border-bottom: 1px solid var(--line); }
.exp-row:last-child { border-bottom: 0; }
.exp-row .label { display: block; font-size: .88rem; font-weight: 550; }
.exp-row .hint { display: block; font-size: .74rem; color: var(--muted); }
.lvl-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; flex: none; }
.lvl-btn { font: inherit; font-size: .74rem; padding: .3rem .55rem; border: 0; background: var(--surface); color: var(--muted); cursor: pointer; }
.lvl-btn[aria-pressed="true"] { font-weight: 700; }
.lvl-btn[data-level="0"][aria-pressed="true"] { background: var(--surface-2); color: var(--ink-soft); }
@media (max-width: 640px) { .exp-row { flex-direction: column; align-items: flex-start; } }


/* ------------------------------------------------------ stap 1: onthaal */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.welcome { background: var(--surface-2); border-radius: var(--r-md); padding: 1.1rem 1.15rem 1rem; }
.welcome-text { margin: 0 0 .75rem; color: var(--ink-soft); }
.welcome textarea { min-height: 96px; }

/* Vaste minimumhoogte: suggesties verschijnen zonder dat de pagina verschuift. */
.suggest-area {
  min-height: 2.5rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  margin-top: .5rem;
}
.suggest-label { font-size: .82rem; color: var(--muted); margin-right: .2rem; }
.pill-soft {
  background: var(--accent-soft); border-color: transparent; color: var(--accent-ink);
  font-size: .84rem; padding: .35rem .8rem; animation: fade .25s ease both;
}
.pill-soft:hover { background: var(--accent); }

.unsure-row { display: flex; flex-direction: column; gap: .5rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.unsure-row .pill { font-size: .85rem; }
