/* =====================================================================
   STIJL VAN DE ACTIESITE
   - Kleuren en lettertypes: pas de variabelen hieronder (:root) aan.
   - Elk onderdeel van de pagina heeft een eigen kopje in dit bestand.
   - Breedte-regels voor tablet en telefoon staan onderaan.
   ===================================================================== */
:root {
  --bg: #f3f5f8; --surface: #ffffff; --ink: #15202e; --muted: #5b6878; --line: #dde3ea;
  --glass: #b9c3cf; --tube: #eef1f5; --accent: #1f4f8a; --good: #1d7a4f; --shine: rgba(255,255,255,.55);
  --coral: #d9705f; --coral-ink: #a8473a; --coral-soft: #fbe9e4;
  /* kleuren voor de thermometer (12 stuks, daarna herhalen ze) */
  --c1: #1f7a7a; --c2: #d08a1c; --c3: #4a5fc1; --c4: #c8553d; --c5: #6f8a2a; --c6: #8a4c9a;
  --c7: #2f8fbf; --c8: #b5651d; --c9: #5a6b2f; --c10: #b0457a; --c11: #3d6e5a; --c12: #7a5c3a;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font-body); }
a { color: var(--accent); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 56px; display: grid; gap: 28px; }

/* kopbalk */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar img { height: 44px; width: auto; max-width: 70vw; display: block; }
.topbar .jaar { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* introductie met bestelknop */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; padding-top: 36px; }
.eyebrow { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); margin: 0 0 6px; }
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 50px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.01em; text-wrap: balance; }
.lead { margin: 0 0 22px; color: var(--muted); font-size: 18px; max-width: 56ch; }
.hero .evp { width: 190px; height: auto; display: block; }
.bestel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.bestel p { margin: 0; color: var(--muted); font-size: 15px; max-width: 34ch; }
.knop { display: inline-flex; align-items: center; gap: 10px; background: var(--coral); color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 19px; padding: 14px 24px; border-radius: 10px; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.knop:hover { background: #cf6150; }
.knop:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.knop svg { width: 20px; height: 20px; }

/* dashboard: links de stand (thermometer + bedragen), rechts de planning */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.dash { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 20px; align-items: start; }
.stand { display: grid; grid-template-columns: 185px minmax(0, 1fr); overflow: hidden; }
.stand .summary { border-left: 1px solid var(--line); }
.thermo-card { padding: 20px 6px 14px; display: flex; justify-content: center; align-items: center; }
.thermo-svg { width: 100%; max-width: 230px; height: auto; display: block; overflow: visible; }
.thermo-svg text { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.t-label { font-size: 13px; fill: var(--muted); }
.t-goal { font-size: 13px; font-weight: 600; fill: var(--ink); }
.t-now { font-family: var(--font-display) !important; font-size: 15px; font-weight: 700; fill: var(--ink); }
.t-pct { font-family: var(--font-display) !important; font-size: 22px; font-weight: 800; fill: #fff; }

.summary { display: flex; flex-direction: column; min-width: 0; }
.sum-top { padding: 22px 20px 18px; display: grid; gap: 6px; }
.label { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.big { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 4.2vw, 50px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.of { color: var(--muted); font-size: 17px; }
.of strong { color: var(--ink); font-weight: 600; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.kpi { padding: 12px 20px; display: grid; gap: 2px; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi b { font-family: var(--font-display); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi b.done { color: var(--good); }
.breakdown { border-top: 1px solid var(--line); padding: 14px 20px 4px; flex: 1; }
.breakdown h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr:first-child td { border-top: 0; }
.tbl .c-dot { width: 22px; }
.dot { display: block; width: 12px; height: 12px; border-radius: 50%; }
.tbl .c-name { overflow-wrap: anywhere; padding-right: 12px; }
.tbl .c-amt { text-align: right; font-weight: 600; white-space: nowrap; }
.tbl tr.total td { border-top: 2px solid var(--ink); font-weight: 700; }
.bijgewerkt { color: var(--muted); font-size: 13px; margin: 0; padding: 8px 20px 16px; }

/* likes (hartjes) */
.like { font: inherit; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; flex: none; min-width: 58px; min-height: 34px; justify-content: center; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 4px 12px; }
.like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.like:hover { border-color: var(--coral); color: var(--coral-ink); }
.like[aria-pressed="true"] { background: var(--coral-soft); border-color: var(--coral); color: var(--coral-ink); cursor: default; }
.like[aria-pressed="true"] svg { fill: var(--coral); stroke: var(--coral); }
.like:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.like .n:empty { display: none; }

/* planning / tijdlijn */
.planning { padding: 22px 22px 16px; display: grid; gap: 14px; min-width: 0; align-content: start; }
.planning[hidden] { display: none; }
.planning-kop { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.planning h2 { font-family: var(--font-display); font-size: 20px; margin: 0 0 4px; }
.planning .intro { margin: 0; color: var(--muted); font-size: 15px; }
.legenda { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.legenda li { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.legenda .streep i { background: repeating-linear-gradient(135deg, #b7c0ca 0 3px, #fff 3px 6px); border: 1px dashed #98a3ae; }
:root { --g-allen: #7d8a97; --g-min12: #d9705f; --g-min16: #4a7fc1; --g-plus16: #4f9a6a; }
.tl { --maanden: 7; display: grid; grid-template-columns: minmax(210px, 2.2fr) repeat(var(--maanden), minmax(30px, 1fr)); position: relative; font-size: 15px; }
.tl > div { border-top: 1px solid var(--line); min-height: 44px; display: flex; align-items: center; }
.tl .kop { border-top: 0; min-height: 30px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tl .kop.m { justify-content: center; }
.tl .kop.wie, .tl .kop.status { font-size: 12px; color: var(--muted); }
.tl .kop .kort { display: none; }
.tl .m-cel { border-left: 1px solid var(--line); }
.tl .m-cel.nu { background: #fbf3f1; }
.tl .kop.m.nu { color: var(--coral-ink); }
.tl .naam { padding: 5px 10px 5px 0; font-weight: 500; min-width: 0; justify-content: space-between; gap: 8px; }
.tl .n-tekst { min-width: 0; line-height: 1.3; }
.tl .n-tekst a { font-weight: 600; white-space: nowrap; }
.tl .n-tekst small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.tl .n-tekst .gepland, .tl .n-tekst .klaar { color: var(--good); }
.tl .punt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.tl .like { min-width: 46px; min-height: 28px; padding: 2px 8px; font-size: 13px; gap: 4px; }
.tl .like svg { width: 14px; height: 14px; }
.tl .wie { font-size: 14px; color: var(--muted); }
.tl .status { font-size: 13px; }
.tl .badge { display: inline-block; border-radius: 999px; padding: 1px 9px; font-weight: 600; white-space: nowrap; }
.tl .badge.gepland { background: #e2f2e9; color: var(--good); }
.tl .badge.volgt { background: #f1f3f5; color: var(--muted); }
.tl .badge.klaar { background: #e2f2e9; color: var(--good); }
.tl .balk { border-top: 0; align-self: center; min-height: 0; height: 18px; margin: 0 4px; border-radius: 6px; position: relative; z-index: 1; }
.tl .balk.volgt { background: repeating-linear-gradient(135deg, var(--kleur) 0 4px, color-mix(in srgb, var(--kleur) 35%, white) 4px 8px) !important; }
.tl .rij-klaar { opacity: .55; }
.tl .nu-lijn { position: absolute; top: 30px; bottom: 0; width: 2px; background: var(--coral-ink); z-index: 2; pointer-events: none; border-top: 0; min-height: 0; }
.tl .nu-lijn span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--coral-ink); background: var(--surface); padding: 0 4px; white-space: nowrap; }
@media (max-width: 760px) {
  .tl { grid-template-columns: minmax(0, 1fr) repeat(var(--maanden), 22px); font-size: 14px; }
  .tl .wie, .tl .status, .tl .kop.wie, .tl .kop.status { display: none; }
  .tl .naam { padding-right: 6px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
  .tl .like { min-height: 24px; min-width: 40px; padding: 1px 7px; font-size: 12px; }
  .tl .kop.m { font-size: 12px; letter-spacing: 0; }
  .tl .kop .lang { display: none; }
  .tl .kop .kort { display: inline; }
  .tl .nu-lijn { top: 30px; }
  .tl .nu-lijn span { display: none; }
  .tl .balk { margin: 0 2px; height: 14px; }
}
@media (max-width: 640px) { .planning { padding: 18px 16px 14px; } }

/* doelen */
.doelen { padding: 24px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 40px; }
.doelen h2 { font-family: var(--font-display); font-size: 20px; margin: 0 0 6px; }
.doelen p { margin: 0; color: var(--muted); }
.doelen ol { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
footer { color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* uitgelicht (balk onder de introductie) */
.uitgelicht { background: var(--coral-soft); border: 1px solid #f2cfc6; border-radius: 12px; padding: 18px 24px; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.uitgelicht[hidden] { display: none; }
.uitgelicht .u-tekst { flex: 1 1 420px; min-width: 0; }
.uitgelicht .u-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--coral-ink); border-radius: 4px; padding: 1px 7px; margin-right: 8px; vertical-align: 3px; }
.uitgelicht h2 { display: inline; font-family: var(--font-display); font-size: 20px; margin: 0; }
.uitgelicht p { margin: 6px 0 0; color: var(--ink); max-width: 75ch; }
.knop.klein { font-size: 16px; padding: 10px 18px; background: var(--surface); color: var(--coral-ink); border: 2px solid var(--coral); box-shadow: none; }
.knop.klein:hover { background: #fff6f3; }

.like[disabled] { cursor: default; opacity: .75; }
.like[disabled]:hover { border-color: var(--line); color: var(--muted); }

/* live-label bij automatisch bijgewerkte bestellingen */
.live-tag { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--good); background: #e2f2e9; border-radius: 4px; padding: 0 6px; vertical-align: 2px; }
.live-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--good); margin-right: 5px; vertical-align: 1px; }

/* lange opbrengstlijst inklappen */
.meer { margin: 2px 0 6px; }
.meer summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; padding: 6px 0; }

/* ===== tablet en telefoon ===== */
@media (max-width: 1040px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .stand { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .doelen { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px 48px; gap: 20px; }
  .topbar .in { padding: 12px 16px; }
  .topbar img { height: 34px; }
  .topbar .jaar { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 22px; }
  .hero .evp { width: 120px; order: -1; }
  .lead { margin-bottom: 18px; }
  .knop { width: 100%; justify-content: center; }
  .dash { grid-template-columns: 1fr; }
  .stand { grid-template-columns: 1fr; }
  .stand .summary { border-left: 0; border-top: 1px solid var(--line); }
  .thermo-svg { max-width: 190px; }
  .sum-top, .kpi, .breakdown, .bijgewerkt { padding-left: 18px; padding-right: 18px; }
  .doelen { padding: 20px 18px; }
  .uitgelicht { padding: 16px 18px; }
}

/* ===================== DASHBOARD: STAND + PLANNING ===================== */
.dash { grid-template-columns: 390px minmax(0, 1fr); align-items: stretch; gap: 24px; }
.stand { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; }
.stand .summary { display: contents; }
.stand .thermo-card { grid-column: 1; grid-row: 1 / 3; padding: 18px 0 10px 12px; align-items: center; }
.stand .thermo-svg { max-width: 150px; }
.stand .t-label { font-size: 17px; }
.stand .t-goal { font-size: 17px; }
.stand .t-now { font-size: 19px; }
.stand .sum-top { grid-column: 2; grid-row: 1; padding: 26px 22px 16px; align-self: end; }
.stand .big { font-size: 44px; }
.stand .kpis { grid-column: 2; grid-row: 2; border-top: 1px solid var(--line); align-self: start; }
.stand .kpi { padding: 12px 22px 14px; }
.stand .kpi + .kpi { padding-left: 16px; }
.stand .breakdown { grid-column: 1 / -1; grid-row: 3; padding: 16px 22px 0; }
.stand .bijgewerkt { grid-column: 1 / -1; grid-row: 4; padding: 12px 22px 18px; border-top: 1px solid var(--line); }
.stand .tbl td { padding: 9px 0; font-size: 15px; }

.planning { padding: 24px 24px 20px; gap: 16px; }
.planning h2 { font-size: 22px; }
.tl { grid-template-columns: minmax(200px, 1fr) repeat(var(--maanden), minmax(34px, 54px)) 64px; font-size: 15px; }
.tl > div { min-height: 52px; }
.tl .kop { min-height: 32px; }
.tl .naam { padding: 0 12px 0 0; }
.tl .n-tekst { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; width: 100%; }
.tl .n-tekst small { overflow: hidden; text-overflow: ellipsis; }
.tl .like-cel { justify-content: flex-end; }
.tl .kop.like-kop { justify-content: flex-end; padding-right: 6px; }
.tl .like { min-width: 52px; justify-content: center; }
.tl .m-cel:last-of-type { border-right: 1px solid var(--line); }
.tl .balk { height: 16px; margin: 0 5px; }

@media (max-width: 1040px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .stand { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .stand .thermo-card { grid-row: 1 / 4; }
  .stand .breakdown { grid-column: 3; grid-row: 1 / 3; border-top: 0; border-left: 1px solid var(--line); padding-top: 26px; }
  .stand .bijgewerkt { grid-column: 2 / 4; grid-row: 3; }
}
@media (max-width: 760px) {
  .tl { grid-template-columns: minmax(0, 1fr) repeat(var(--maanden), 22px) 48px; font-size: 14px; }
  .tl .n-tekst { white-space: normal; }
  .tl .like { min-width: 40px; }
}
@media (max-width: 640px) {
  .stand { grid-template-columns: 130px minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
  .stand .thermo-card { grid-row: 1 / 3; padding-left: 6px; }
  .stand .sum-top { padding: 20px 16px 12px; }
  .stand .big { font-size: 36px; }
  .stand .kpi { padding: 10px 16px 12px; }
  .stand .breakdown { grid-column: 1 / -1; grid-row: 3; border-left: 0; border-top: 1px solid var(--line); padding: 14px 16px 0; }
  .stand .bijgewerkt { grid-column: 1 / -1; grid-row: 4; padding: 10px 16px 16px; }
}
.dash { grid-template-columns: 410px minmax(0, 1fr); }
.stand .label { white-space: nowrap; }
.stand .kpis .label { font-size: 12px; letter-spacing: .04em; }
.stand .breakdown { padding-bottom: 6px; }
.tl { grid-template-columns: minmax(200px, 1fr) repeat(var(--maanden), minmax(30px, 46px)) 62px; }
.tl > div { min-height: 48px; }
.tl .nu-lijn span { display: none; }
.legenda .nu-leg i { width: 2px; height: 14px; border-radius: 0; background: var(--coral-ink); }
@media (max-width: 1040px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: minmax(200px, 1fr) repeat(var(--maanden), minmax(30px, 60px)) 62px; }
}
@media (max-width: 760px) {
  .tl { grid-template-columns: minmax(0, 1fr) repeat(var(--maanden), 22px) 48px; }
}
/* thermometer-kolom */
.stand { grid-template-columns: 178px minmax(0, 1fr); }
.stand .thermo-svg { max-width: 178px; }
.stand .thermo-card { padding: 22px 0 14px 14px; }
.stand .sum-top { align-self: center; padding-top: 30px; }
.tl { grid-template-columns: minmax(200px, 1fr) repeat(var(--maanden), minmax(30px, 44px)) 60px; }
@media (max-width: 1040px) {
  .stand { grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1fr); }
  .tl { grid-template-columns: minmax(200px, 1fr) repeat(var(--maanden), minmax(30px, 60px)) 62px; }
}
@media (max-width: 760px) {
  .tl { grid-template-columns: minmax(0, 1fr) repeat(var(--maanden), 22px) 48px; }
}
@media (max-width: 640px) {
  .stand { grid-template-columns: 140px minmax(0, 1fr); }
  .stand .thermo-svg { max-width: 140px; }
}
/* compacte planning, met de doelen eronder */
.rechts { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rechts .planning { padding: 18px 20px 14px; gap: 10px; }
.planning-kop { align-items: center; }
.planning h2 { font-size: 19px; margin: 0; }
.rechts .planning .intro { font-size: 13px; margin: 2px 0 0; }
.tl { font-size: 14px; }
.tl > div { min-height: 34px; }
.tl .kop { min-height: 26px; font-size: 11px; }
.tl .n-tekst small { display: none; }
.tl .n-tekst { line-height: 1.2; }
.tl .n-tekst .n-link { font-size: 12px; margin-left: 8px; }
.tl .punt { margin-right: 8px; vertical-align: 1px; }
.tl .balk { height: 12px; border-radius: 4px; }
.tl .like { min-width: 44px; min-height: 24px; padding: 0 7px; font-size: 12px; }
.tl .like svg { width: 12px; height: 12px; }
.tl .nu-lijn { top: 26px; }
.rechts .doelen { display: block; padding: 16px 20px 18px; flex: 1; }
.rechts .doelen h2 { font-size: 16px; margin: 0 0 10px; }
.rechts .doelen ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: d; }
.rechts .doelen li { display: grid; gap: 2px; font-size: 13px; color: var(--muted); padding-left: 28px; position: relative; counter-increment: d; }
.rechts .doelen li::before { content: counter(d); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--coral-soft); color: var(--coral-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.rechts .doelen li strong { color: var(--ink); font-size: 14px; }
@media (max-width: 760px) {
  .tl .n-tekst { white-space: normal; }
  .tl > div { min-height: 40px; }
  .rechts .doelen ol { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
  .tl { grid-template-columns: minmax(0, 1fr) repeat(var(--maanden), 17px) 42px; font-size: 13.5px; }
  .tl .n-tekst { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .tl .punt { margin-right: 6px; }
  .tl .n-tekst .n-link { margin-left: 4px; }
  .tl .balk { margin: 0 2px; height: 10px; }
  .tl .like { min-width: 36px; padding: 0 5px; }
  .tl .kop.like-kop { font-size: 0; }
  .tl .kop.m { font-size: 11px; }
}
@media (max-width: 760px) { .tl .n-tekst .n-link { display: none; } }
/* compacte opbrengstlijst (tot 8 regels zonder inklappen) */
.stand .breakdown h2 { font-size: 16px; margin-bottom: 2px; }
.stand .tbl td { padding: 6px 0; font-size: 14px; }
.stand .tbl .c-dot { width: 20px; }
.stand .dot { width: 10px; height: 10px; }
.stand .tbl tr.total td { padding-top: 8px; font-size: 15px; }
.stand .meer summary { padding: 4px 0; }
/* extra hoogte gaat naar de planningsrijen */
.rechts .planning { flex: 1; grid-template-rows: auto 1fr auto; }
.rechts .doelen { flex: none; }
.tl { grid-template-rows: 26px; grid-auto-rows: minmax(34px, 1fr); }
.tl > div { min-height: 0; }
@media (max-width: 1040px) { .rechts .planning { flex: none; } .tl { grid-auto-rows: minmax(34px, auto); } }
@media (max-width: 760px) { .tl { grid-auto-rows: minmax(40px, auto); } }
/* thermometer vult de vrije ruimte (buis wordt langer of korter) */
.stand { grid-template-columns: 178px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr) auto auto; }
.stand .thermo-card { grid-column: 1; grid-row: 1 / 5; position: relative; min-height: 330px; padding: 0; }
.stand .thermo-card .thermo-svg { position: absolute; left: 14px; right: 0; top: 18px; bottom: 10px; width: calc(100% - 14px); height: calc(100% - 28px); max-width: none; }
.stand .sum-top { grid-column: 2; grid-row: 2; align-self: end; padding-top: 18px; }
.stand .kpis { grid-column: 2; grid-row: 3; }
.stand .breakdown { grid-column: 1 / -1; grid-row: 5; }
.stand .bijgewerkt { grid-column: 1 / -1; grid-row: 6; }
@media (max-width: 1040px) {
  .stand { grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr) auto; }
  .stand .thermo-card { grid-row: 1 / 6; min-height: 340px; }
  .stand .breakdown { grid-column: 3; grid-row: 1 / 5; }
  .stand .bijgewerkt { grid-column: 2 / 4; grid-row: 5; }
}
@media (max-width: 640px) {
  .stand { grid-template-columns: 140px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr) auto auto; }
  .stand .thermo-card { grid-row: 1 / 5; min-height: 280px; }
  .stand .thermo-card .thermo-svg { left: 6px; width: calc(100% - 6px); }
  .stand .breakdown { grid-column: 1 / -1; grid-row: 5; }
  .stand .bijgewerkt { grid-column: 1 / -1; grid-row: 6; }
}
/* links nooit hoger dan rechts; de thermometer krijgt de overgebleven ruimte */
@media (min-width: 1041px) {
  .stand { contain: size; }
  .stand.open { contain: none; }
  .stand .thermo-card { min-height: 0; }
}

/* ===================== AFTELSCHERM TOT DE LIVEGANG ===================== */
.aftel { display: none; position: fixed; inset: 0; z-index: 100; place-items: center; overflow: auto; padding: 24px 16px;
  background: radial-gradient(120% 90% at 50% 8%, #ffffff 0%, #fbe9e4 55%, #f4cfc5 100%); color: var(--ink); text-align: center;
  transition: transform 1.1s cubic-bezier(.7, 0, .2, 1), opacity 1.1s ease; }
.aftel-mogelijk .aftel { display: grid; }
.aftel-mogelijk body { overflow: hidden; }
.aftel.open { transform: translateY(-100%); opacity: .4; }
.aftel-in { display: grid; gap: 20px; justify-items: center; max-width: 760px; }
.aftel-kerk { height: 38px; width: auto; }
.aftel-evp { width: 170px; height: auto; }
.aftel-jaar { margin: 0; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); }
.aftel h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 5vw, 48px); line-height: 1.1; }
.aftel-tegels { display: flex; gap: 14px; }
.aftel-tegels div { background: #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(168, 71, 58, .15); padding: 16px 8px 12px; width: 118px; display: grid; gap: 2px; }
.aftel-tegels b { font-family: var(--font-display); font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; }
.aftel-tegels span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.aftel-balk { width: min(520px, 80vw); height: 14px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px #e8c3b9; overflow: hidden; }
.aftel-balk i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--coral), #e9967f); transition: width 1s linear; }
.aftel-tekst { margin: 0; font-size: 17px; color: var(--muted); max-width: 46ch; }
@media (max-width: 560px) {
  .aftel-tegels { gap: 8px; }
  .aftel-tegels div { width: 74px; padding: 12px 4px 10px; border-radius: 12px; }
  .aftel-tegels b { font-size: 34px; }
  .aftel-tegels span { font-size: 11px; letter-spacing: .02em; }
  .aftel-evp { width: 130px; }
}
@media (prefers-reduced-motion: reduce) { .aftel { transition: opacity .4s ease; } .aftel.open { transform: none; opacity: 0; } }
.aftel-mogelijk-bezig .aftel { display: grid; }
