/* Tris-website: componentstijlen. Kleuren, typografie, radius en schaduw komen
   uitsluitend uit tris-tokens.css (gegenereerd uit design/tris-tokens.json).
   `npm run check:design` weigert losse kleurcodes in dit bestand. */
:root { --pricebar-h: 0px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--c-ink); background: var(--c-bg); padding-bottom: var(--pricebar-h); }
img, svg { max-width: 100%; }
a { color: var(--c-brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); margin-top: 1.4em; }
h3 { font-size: 1.1rem; margin-top: 1.2em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--c-ink-2); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--c-surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
/* Kop in dezelfde lichte stijl als de hoofdsite (wit vlak, officieel logo, navy tekst). */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--c-surface); color: var(--c-ink); height: var(--header-h); box-shadow: 0 1px 0 var(--c-line); }
.header-row { display: flex; align-items: center; gap: 12px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; flex: 0 1 auto; }
.site-header .brand-logo { width: 118px; height: 68px; object-fit: contain; display: block; }
.site-header .nav-item > a, .site-header .nav-disclosure > summary, .site-header .menu-toggle summary { color: var(--c-ink); }
.site-header .nav-item > a:hover, .site-header .nav-disclosure > summary:hover, .site-header .nav-item > a[aria-current="page"], .site-header .nav-disclosure > summary.is-current, .site-header .nav-disclosure[open] > summary { background: var(--c-surface-2); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark .bm-bg { fill: var(--c-accent); }
.brand-mark .bm-roof, .brand-mark .bm-t { fill: none; stroke: var(--tris-color-navy-950); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { display: grid; line-height: 1.05; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: .01em; }
.brand-sub { font-size: .72rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a, .nav-disclosure > summary { display: flex; align-items: center; gap: 6px; color: var(--c-header-ink); text-decoration: none; padding: 10px 11px; border-radius: var(--radius-s); font-size: .95rem; font-weight: 600; white-space: nowrap; min-height: var(--tris-size-tap); cursor: pointer; list-style: none; }
.nav-disclosure > summary::-webkit-details-marker { display: none; }
.nav-item > a:hover, .nav-disclosure > summary:hover, .nav-item > a[aria-current="page"], .nav-disclosure > summary.is-current, .nav-disclosure[open] > summary { background: rgba(255,255,255,.1); }
.nav-item > a[aria-current="page"], .nav-disclosure > summary.is-current { box-shadow: inset 0 -3px 0 var(--c-accent); }
.nav-item > a.nav-cta { background: var(--c-accent); color: var(--c-tape-ink); margin: 0 4px; }
.nav-item > a.nav-cta:hover { background: var(--c-accent-hover); }
.chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
details[open] > summary .chev { transform: translateY(1px) rotate(-135deg); }
.mega-panel, .drop-panel { position: absolute; top: calc(100% + 8px); background: var(--c-surface); color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(8,24,42,.18); z-index: 40; }
.mega-panel { left: 50%; transform: translateX(-38%); width: min(920px, calc(100vw - 32px)); padding: 18px; }
.drop-panel { left: 0; min-width: 240px; padding: 8px; }
.drop-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.drop-panel a { display: block; padding: 10px 12px; border-radius: var(--radius-s); color: var(--c-ink); text-decoration: none; }
.drop-panel a:hover, .drop-panel a[aria-current="page"] { background: var(--c-surface-2); }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 20px; }
.mega-group ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.mega-title { font-weight: 700; color: var(--c-brand); text-decoration: none; }
.mega-title:hover { text-decoration: underline; }
.mega-intro { margin: 2px 0 0; color: var(--c-ink-2); font-size: .85rem; }
.mega-group ul a { color: var(--c-ink); text-decoration: none; font-size: .92rem; display: inline-block; padding: 3px 0; }
.mega-group ul a:hover, .mega-group ul a[aria-current="page"] { color: var(--c-brand); text-decoration: underline; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.menu-toggle { display: none; flex: none; }
.menu-toggle summary { list-style: none; cursor: pointer; color: var(--c-header-ink); padding: 10px; border-radius: var(--radius-s); min-height: var(--tris-size-tap); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.menu-toggle summary::-webkit-details-marker { display: none; }
.menu-toggle summary svg { width: 24px; height: 24px; flex: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--c-surface); color: var(--c-ink); border-bottom: 1px solid var(--c-line); box-shadow: 0 12px 24px rgba(8,24,42,.15); padding: 8px 16px 20px; display: grid; gap: 2px; }
.menu-panel > a, .menu-panel .acc > summary { color: var(--c-ink); text-decoration: none; padding: 12px 8px; border-radius: var(--radius-s); font-weight: 600; min-height: var(--tris-size-tap); display: flex; align-items: center; }
.menu-panel .acc > summary { cursor: pointer; list-style: none; justify-content: space-between; }
.menu-panel .acc > summary::-webkit-details-marker { display: none; }
.menu-panel .acc > summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--c-ink-2); }
.menu-panel .acc[open] > summary::after { content: "–"; }
.menu-panel > a:hover, .menu-panel .acc > summary:hover { background: var(--c-surface-2); }
.acc-body { padding: 0 8px 8px 16px; display: grid; gap: 6px; }
.acc-body ul { list-style: none; margin: 0; padding: 0 0 0 12px; display: grid; gap: 2px; }
.acc-body a { color: var(--c-ink); text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.acc-title { font-weight: 650; }
.acc-all { color: var(--c-brand) !important; font-weight: 650; }
.menu-actions { padding: 10px 8px 0; }
.site-header .header-cta-mobile { display: none; white-space: nowrap; flex: none; }
@media (max-width: 1140px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .site-header .header-cta-mobile { display: inline-flex; margin-left: auto; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .menu-label { display: none; }
  .site-header .header-cta-mobile { padding: 6px 10px; font-size: .88rem; }
}
@media (max-width: 340px) { .brand-name { font-size: 1.05rem; } .site-header .brand-logo { width: 96px; height: 56px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-s); border: 2px solid transparent; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--c-brand); color: var(--c-brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-tape, .btn-accent { background: var(--c-accent); color: var(--c-tape-ink); }
.btn-accent:hover, .btn-tape:hover { background: var(--c-accent-hover); }
.btn-whatsapp { background: var(--c-whatsapp); color: var(--c-white); }
.btn-whatsapp:hover { filter: brightness(1.08); }
.btn-whatsapp-outline { background: transparent; color: var(--c-whatsapp); border-color: var(--c-whatsapp); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.wa-icon { width: 20px; height: 20px; flex: none; }
.btn-secondary { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
.btn-secondary:hover { border-color: var(--c-ink-2); }
.btn-danger { background: var(--c-err); color: var(--c-white); }
.btn-link { background: none; border: none; color: var(--c-brand); padding: 8px 6px; min-height: 40px; text-decoration: underline; font-weight: 600; }
.btn-small { min-height: 40px; padding: 6px 12px; font-size: .92rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Layout pieces */
main { display: block; padding: 20px 0 48px; }
.crumbs { font-size: .88rem; color: var(--c-ink-2); margin-bottom: 8px; }
.crumbs a { color: var(--c-ink-2); }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap); }
.stack > * + * { margin-top: 12px; }
.notice { border-radius: var(--radius-s); padding: 12px 14px; border: 1px solid; margin: 12px 0; }
.notice-info { background: var(--c-brand-soft); border-color: color-mix(in srgb, var(--c-brand) 35%, transparent); }
.notice-warn { background: var(--c-warn-soft); border-color: color-mix(in srgb, var(--c-warn) 40%, transparent); color: var(--c-ink); }
.notice-err { background: var(--c-err-soft); border-color: color-mix(in srgb, var(--c-err) 40%, transparent); }
.notice-ok { background: var(--c-ok-soft); border-color: color-mix(in srgb, var(--c-ok) 40%, transparent); }
.notice strong:first-child { display: block; margin-bottom: 2px; }
.notice summary { cursor: pointer; min-height: 40px; }
.notice summary strong:first-child { display: inline; }
input:disabled, select:disabled, textarea:disabled { background: var(--c-surface-2); color: var(--c-ink-2); }
.test-banner { background: repeating-linear-gradient(135deg, var(--c-tape) 0 12px, var(--c-header-bg) 12px 24px); padding: 3px 0; }
.test-banner p { background: var(--c-tape); color: var(--c-tape-ink); margin: 0 auto; max-width: max-content; padding: 2px 10px; font-weight: 700; font-size: .85rem; text-align: center; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--c-surface-2); color: var(--c-ink); white-space: nowrap; }
.badge-fixed, .badge-accepted, .badge-confirmed, .badge-sent, .badge-active, .badge-done { background: var(--c-ok-soft); color: var(--c-ok); }
.badge-indicative, .badge-requested, .badge-draft, .badge-pending, .badge-planned, .badge-issued { background: var(--c-brand-soft); color: var(--c-brand); }
.badge-assessment, .badge-blocked, .badge-proposed, .badge-open { background: var(--c-warn-soft); color: var(--c-warn); }
.badge-incomplete, .badge-archived, .badge-superseded { background: var(--c-surface-2); color: var(--c-ink-2); }
.badge-failed, .badge-expired, .badge-declined, .badge-cancelled { background: var(--c-err-soft); color: var(--c-err); }

/* Home hero */
.hero { padding: 8px 0 8px; }
.hero h1 { max-width: 20ch; }
.hero .lead { font-size: 1.1rem; color: var(--c-ink-2); max-width: 60ch; }
.start-form { margin-top: 12px; }
.service-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0 0 14px; padding: 0; border: 0; }
.service-pick legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.service-option { position: relative; display: flex; gap: 12px; align-items: flex-start; background: var(--c-surface); border: 2px solid var(--c-line); border-radius: var(--radius); padding: 14px; cursor: pointer; min-height: 44px; }
.service-option:hover { border-color: var(--c-ink-2); }
.service-option input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--c-brand); flex: none; }
.service-option:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-soft); }
.service-option svg { width: 44px; height: 44px; flex: none; margin-left: auto; color: var(--c-brand); }
.service-option strong { display: block; }
.service-option span.muted { font-size: .9rem; }
.usp { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--c-ink-2); font-size: .95rem; }
.usp li::before { content: "✓ "; color: var(--c-ok); font-weight: 700; }
.steps-list { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.steps-list li { counter-increment: s; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px 12px 12px 52px; position: relative; }
.steps-list li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--c-brand); color: var(--c-white); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: var(--radius-s); background: var(--c-surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
th { background: var(--c-surface-2); font-weight: 650; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* Forms */
.field { display: grid; gap: 4px; margin-bottom: 12px; min-width: 0; }
.field > label, .field > .label { font-weight: 650; font-size: .95rem; }
.field .hint { font-size: .86rem; color: var(--c-ink-2); }
.field .error { font-size: .88rem; color: var(--c-err); font-weight: 600; }
input:not([type]), input[type="text"], input[type="datetime-local"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="date"], input[type="time"], input[type="search"], select, textarea {
  font: inherit; font-size: 16px; color: var(--c-ink); background: var(--c-surface); border: 1.5px solid var(--c-line); border-radius: var(--radius-s); padding: 9px 11px; min-height: 44px; width: 100%; min-width: 0;
}
textarea { min-height: 88px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--c-focus); outline: 2px solid color-mix(in srgb, var(--c-focus) 45%, transparent); outline-offset: 0; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--c-err); }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 40px; padding: 6px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-brand); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
fieldset { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; min-width: 0; }
legend { font-weight: 700; padding: 0 4px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--c-line); border-radius: 999px; padding: 8px 14px; min-height: 44px; cursor: pointer; background: var(--c-surface); font-size: .95rem; }
.seg label:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-soft); font-weight: 650; }
.seg input { accent-color: var(--c-brand); }
.seg input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* Calculator */
.calc { display: grid; gap: 20px; }
@media (min-width: 1000px) { .calc { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.stepper { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 16px; overflow: hidden; }
.stepper li { flex: 1 1 0; min-width: 0; }
.stepper button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: none; border: 0; border-top: 4px solid var(--c-line); padding: 6px 2px 4px; color: var(--c-ink-2); font: inherit; font-size: .8rem; cursor: pointer; text-align: left; min-height: 44px; }
.stepper button[aria-current="step"] { border-top-color: var(--c-brand); color: var(--c-ink); font-weight: 700; }
.stepper button.done { border-top-color: color-mix(in srgb, var(--c-brand) 55%, var(--c-line)); color: var(--c-ink); }
.stepper .n { font-weight: 700; }
.stepper .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 520px) { .stepper .t { display: none; } .stepper button[aria-current="step"] .t { display: block; } }
.mode-switch { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.line-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.line-card.is-missing { border-left: 4px solid var(--c-tape); }
.line-card.is-assessment { border-left: 4px solid var(--c-warn); }
.line-card.is-priced { border-left: 4px solid var(--c-ok); }
.line-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.line-no { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 8px; background: var(--c-brand); color: var(--c-white); font-weight: 800; padding: 0 6px; }
.line-head h3 { margin: 0; font-size: 1.05rem; flex: 1 1 160px; }
.line-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.line-body { display: grid; gap: 14px; }
@media (min-width: 760px) { .line-body.with-figure { grid-template-columns: minmax(0, 1fr) 260px; } }
.figure { background: var(--c-surface-2); border-radius: var(--radius-s); padding: 8px; }
.figure svg { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.figure figcaption { font-size: .82rem; color: var(--c-ink-2); margin-top: 4px; }
.measure { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.measure select { width: auto; min-width: 70px; }
.conversion { font-size: .82rem; color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.howto { font-size: .9rem; }
.howto summary { cursor: pointer; color: var(--c-brand); font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.howto > div { background: var(--c-surface-2); border-radius: var(--radius-s); padding: 8px 10px; margin-top: 4px; }
.line-status { font-size: .9rem; border-radius: var(--radius-s); padding: 8px 10px; margin-top: 4px; }
.line-status.missing { background: var(--c-warn-soft); }
.line-status.assessment { background: var(--c-warn-soft); }
.line-status.priced { background: var(--c-ok-soft); }
.add-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.nav-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photo { position: relative; width: 84px; }
.photo img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--c-line); background: var(--c-surface-2); }
.photo span { display: block; font-size: .75rem; color: var(--c-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Pro (snelle) invoer */
.pro-table { display: grid; gap: 8px; }
.pro-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-s); padding: 8px; }
.pro-row > .field, .pro-row > .check { flex: 1 1 110px; min-width: 0; }
.pro-row > .field:has(.measure) { flex: 1.4 1 150px; }
.pro-row > .line-no { flex: none; align-self: center; }
.pro-row .field { margin: 0; }
.pro-row .field > label { font-size: .78rem; font-weight: 600; color: var(--c-ink-2); }
.pro-row input, .pro-row select { min-height: 40px; padding: 6px 8px; }
.pro-row .line-no { align-self: center; }
.pro-row .pro-actions { display: flex; gap: 2px; flex: 1 1 100%; justify-content: flex-end; flex-wrap: wrap; }
.pro-row .pro-msg { flex: 1 1 100%; font-size: .85rem; }

/* Overzicht / prijspaneel */
.summary { position: static; }
@media (min-width: 1000px) { .calc-summary-desktop { position: sticky; top: calc(var(--header-h) + 12px); align-self: start; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; } }
.summary .total { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.summary .total small { font-size: .9rem; font-weight: 500; color: var(--c-ink-2); }
.price-lines { list-style: none; padding: 0; margin: 10px 0; font-size: .93rem; }
.price-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--c-line); }
.price-lines li > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-lines li.sum { font-weight: 700; border-bottom: 0; }
.status-pill { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status-fixed { background: var(--c-ok-soft); color: var(--c-ok); }
.status-indicative { background: var(--c-brand-soft); color: var(--c-brand); }
.status-assessment { background: var(--c-warn-soft); color: var(--c-warn); }
.status-incomplete { background: var(--c-surface-2); color: var(--c-ink-2); }
.pricebar { display: none; }
@media (max-width: 999px) {
  .summary { position: static; }
  .calc-has-bar { padding-bottom: 80px; }
  .pricebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--c-surface); border-top: 1px solid var(--c-line); box-shadow: 0 -2px 10px rgba(8,24,42,.1); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); align-items: center; gap: 10px; min-height: 64px; }
  .pricebar .pb-total { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
  .pricebar .pb-status { font-size: .8rem; color: var(--c-ink-2); }
  .pricebar .btn { margin-left: auto; }
  .calc-summary-desktop { display: none; }
}
@media (min-width: 1000px) { .calc-summary-mobile { display: none; } }

/* Klant/offerte */
.quote-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.timeline li { display: flex; gap: 10px; align-items: baseline; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c-line); flex: none; transform: translateY(2px); }
.timeline li.done .dot { background: var(--c-ok); }
.timeline li.now .dot { background: var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-soft); }
.accept-box { border: 2px solid var(--c-brand); }

/* Footer */
.site-footer { background: var(--c-footer-bg); color: var(--c-footer-ink); padding: 36px 0 20px; font-size: .92rem; }
.site-footer a { color: var(--c-white); }
.site-footer .brand { color: var(--c-white); margin-bottom: 10px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer ul a { display: inline-block; padding: 2px 0; overflow-wrap: anywhere; }
.site-footer h2 { font-size: 1rem; margin: 0 0 10px; color: var(--c-white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; opacity: .9; }

/* Beheer */
.admin-shell { display: grid; gap: 0; }
@media (min-width: 1000px) { .admin-shell { grid-template-columns: 220px minmax(0, 1fr); } }
.admin-nav { background: var(--c-surface); border-right: 1px solid var(--c-line); padding: 12px; }
.admin-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.admin-nav a { display: flex; justify-content: space-between; padding: 10px; border-radius: var(--radius-s); text-decoration: none; color: var(--c-ink); min-height: 40px; }
.admin-nav a[aria-current="page"], .admin-nav a:hover { background: var(--c-surface-2); }
.admin-nav-mobile > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
@media (max-width: 999px) {
  .admin-nav { border-right: 0; border-bottom: 1px solid var(--c-line); padding: 4px 16px; }
  .admin-nav-desktop { display: none; }
}
@media (min-width: 1000px) { .admin-nav-mobile { display: none; } }
.admin-main { padding: 16px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--c-ink); }
.kpi strong { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.diff-up { color: var(--c-err); font-weight: 700; }
.diff-down { color: var(--c-ok); font-weight: 700; }
.rate-input { width: 90px !important; min-height: 40px !important; text-align: right; }
pre.json { background: var(--c-surface-2); padding: 10px; border-radius: var(--radius-s); overflow: auto; font-size: .82rem; max-height: 420px; }
.wo-line { border-left: 4px solid var(--c-brand); }
@media print { .site-header, .site-footer, .admin-nav, .pricebar, .no-print { display: none !important; } body { background: var(--c-white); } .card { box-shadow: none; } }
@media (prefers-reduced-motion: no-preference) {
  .figure svg .anim { transition: all .25s ease; }
}

/* Maattekening: op telefoons direct boven de maatvelden, op brede schermen ernaast */
.fig-inline { display: block; margin: 4px 0 12px; }
.fig-side { display: none; }
@media (min-width: 760px) { .fig-inline { display: none; } .fig-side { display: block; position: sticky; top: calc(var(--header-h) + 12px); align-self: start; } }
.more-details { border-top: 1px solid var(--c-line); margin-top: 8px; padding-top: 4px; }
.more-details > summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; color: var(--c-brand); }

/* Grid-kinderen mogen smaller worden dan hun inhoud (voorkomt overloop op telefoons) */
.calc > *, .grid-2 > *, .grid-3 > *, .form-grid > *, .stack > *, .admin-main > * { min-width: 0; }
.price-lines li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.card, .notice { overflow-wrap: break-word; }
.q-mobile { display: none; }
@media (max-width: 600px) {
  .price-table, .price-table tbody { display: block; }
  .price-table thead, .price-table .col-qty { display: none; }
  .price-table tr { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 0 6px; border-bottom: 1px solid var(--c-line); padding: 8px 6px; }
  .price-table tr:last-child { border-bottom: 0; }
  .price-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .price-table .q-mobile { display: block; margin-top: 2px; }
}
fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea, input:disabled, select:disabled, textarea:disabled { background: var(--c-surface-2); color: var(--c-ink-2); cursor: not-allowed; }
.service-pick { display: block; }
.service-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0 0 16px; }
.service-group-title { grid-column: 1 / -1; margin: 0; font-weight: 700; font-size: .95rem; color: var(--c-ink-2); }
.summary-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; }
.summary-dl dt { font-weight: 650; }
.summary-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Tris: homepage, keuzehulp, diensten */
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--c-accent); margin: 0 0 8px; }
.lead { font-size: 1.1rem; color: var(--c-ink-2); max-width: 62ch; }
main:has(> .home-hero) { padding-top: 0; }
.home-hero { background: var(--c-header-bg); color: var(--c-header-ink); padding: 36px 0 40px; margin-bottom: 8px; }
.home-hero .lead a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.home-hero .lead { color: var(--c-footer-ink); }
.home-hero h1 { max-width: 22ch; }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 860px) { .home-hero-inner { grid-template-columns: minmax(0, 1fr); } }
.home-hero .btn-whatsapp-outline { color: var(--c-white); border-color: var(--c-white); }
.hero-note { opacity: .85; margin-top: 10px; }
.hero-panel { background: var(--c-surface); color: var(--c-ink); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.hero-panel-title { font-weight: 800; font-size: 1.1rem; margin: 0 0 8px; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hero-panel a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 10px; border-radius: var(--radius-s); color: var(--c-ink); text-decoration: none; font-weight: 600; }
.hero-panel a::after { content: "›"; color: var(--c-accent); font-size: 1.3rem; }
.hero-panel a:hover { background: var(--c-surface-2); }
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.service-card { display: flex; gap: 14px; align-items: flex-start; color: var(--c-ink); text-decoration: none; min-width: 0; }
.service-card:hover { border-color: var(--c-brand); }
.service-card svg, .choice-head svg { width: 44px; height: 44px; flex: none; color: var(--c-brand); }
.service-card strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.service-card .muted { display: block; font-size: .92rem; }
.example-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); margin: 12px 0; }
.example-card h3 { margin-top: 0; font-size: 1rem; }
.example-amount { font-size: 1.35rem; font-weight: 800; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--c-brand); color: var(--c-brand-ink); border-radius: var(--radius); padding: 22px; margin: 32px 0 8px; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn-whatsapp-outline { color: var(--c-white); border-color: var(--c-white); }
.faq { display: grid; gap: 8px; }
.faq-item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-s); padding: 0 14px; }
.faq-item summary { cursor: pointer; font-weight: 650; min-height: 48px; display: flex; align-items: center; }
.faq-item p { margin: 0 0 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); margin: 16px 0; }
.choice-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.choice-card .btn-row { margin-top: auto; }
.choice-card p { margin: 0 0 6px; }
.choice-head { display: flex; gap: 12px; align-items: center; }
.choice-head h2 { margin: 0; font-size: 1.15rem; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.chip-nav a { border: 1px solid var(--c-line); background: var(--c-surface); border-radius: var(--tris-radius-pill); padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; color: var(--c-ink); font-size: .92rem; }
.chip-nav a:hover { border-color: var(--c-brand); }
.group-list { display: grid; gap: var(--gap); }
.group-card { scroll-margin-top: calc(var(--header-h) + 12px); }
.group-card h2 { margin-top: 0; }
.service-hero { background: var(--c-navy-50); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; margin: 4px 0 20px; }
.service-hero h1 { margin-bottom: 8px; }
.service-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .service-body { grid-template-columns: minmax(0, 1fr); } }
.service-main section:first-child h2 { margin-top: 0; }
.service-aside { display: grid; gap: var(--gap); position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 900px) { .service-aside { position: static; } }

/* Verbeteringen na concurrentieonderzoek (28-09) */
.header-wa { display: inline-flex; align-items: center; gap: 6px; color: var(--c-whatsapp); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: var(--radius-s); min-height: 40px; white-space: nowrap; flex: none; }
.header-wa:hover { background: var(--c-surface-2); }
.header-wa .wa-icon { width: 18px; height: 18px; }
@media (max-width: 1140px) { .header-wa { display: none; } }
/* Mobiel: één vaste actiezone (de actiebalk onderaan); geen tweede knop in de kop. */
@media (max-width: 760px) { .site-header .header-cta-mobile { display: none; } }
.btn-icon { padding-left: 12px; padding-right: 12px; }
.btn-icon .wa-icon { width: 22px; height: 22px; }
.wa-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: inherit; }
.wa-link .wa-icon { width: 18px; height: 18px; flex: none; }
.notice .next-step { display: block; margin-top: 8px; }
body.menu-open { overflow: hidden; }
body.menu-open .action-bar { display: none; }
@media (min-width: 1141px) { body.menu-open { overflow: auto; } }
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--c-surface); border-top: 1px solid var(--c-line); box-shadow: 0 -2px 10px rgba(8,24,42,.1); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .action-bar .btn { width: 100%; padding-left: 8px; padding-right: 8px; }
  .action-bar .btn-icon { width: auto; padding-left: 14px; padding-right: 14px; }
  body.has-action-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: var(--c-surface); border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent); border-radius: var(--radius-s); padding: 10px 12px; margin: 0 0 14px; max-width: 62ch; }
.hero-price strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.hero-price span { color: var(--c-ink-2); font-size: .92rem; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--gap); margin: 12px 0 8px; }
.overview-card { display: flex; flex-direction: column; gap: 4px; color: var(--c-ink); text-decoration: none; min-width: 0; }
.overview-card:hover { border-color: var(--c-brand); }
.overview-head { display: flex; align-items: center; gap: 10px; }
.overview-head svg { width: 32px; height: 32px; color: var(--c-brand); flex: none; }
.overview-amount { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.more-link { margin-top: 10px; }
.pc-check label { display: block; font-weight: 650; margin-bottom: 6px; }
.pc-row { display: flex; gap: 8px; }
.pc-row input { flex: 1 1 auto; min-width: 0; max-width: 180px; }
@media (min-width: 900px) {
  .service-cards, .overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1141px) and (max-width: 1380px) { .brand-sub { display: none; } }

/* 2026-09-29: tweede route, WhatsApp als alternatief, kleine klus, projectcases */
.route-alt { margin: 10px 0 0; }
.home-hero .route-alt, .cta-band .route-alt { opacity: .9; }
.home-hero .btn-ghost, .cta-band .btn-ghost { color: var(--c-white); border-color: var(--c-white); }
.small-job { margin: 16px 0; }
.small-job p:last-child { margin-bottom: 0; }
.project-card img, .project-case img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); }
.project-card h3 { margin: 10px 0 4px; font-size: 1.05rem; }
.project-list { display: grid; gap: var(--gap); }
.project-case { display: grid; gap: var(--gap); }
@media (min-width: 860px) { .project-case { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.project-case h2 { margin-top: 0; }
.project-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.project-photos figure { margin: 0; }
.project-photos figcaption { font-size: .85rem; color: var(--c-ink-2); margin-top: 4px; }
.case-dl dt { font-weight: 650; margin-top: 8px; }
.case-dl dd { margin: 2px 0 0; }
.case-review { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--c-line); background: var(--c-surface-2); border-radius: var(--radius-s); }
.quote-pills { gap: 6px; }
.status-request { background: var(--c-surface-2); color: var(--c-ink); }
.home-split { align-items: start; margin-top: 32px; }
.home-split > div > h2:first-child { margin-top: 0; }
/* Mobiel typen: de vaste prijsbalk en actiebalk wijken voor het schermtoetsenbord en bedekken geen velden. */
@media (max-width: 999px) {
  html { scroll-padding-bottom: 96px; }
  body:has(.calc input:focus, .calc textarea:focus, .calc select:focus) .pricebar { display: none; }
}
@media (max-width: 760px) {
  body:has(main input:focus, main textarea:focus, main select:focus) .action-bar { display: none; }
}
