/* Storingtest – KPN huisstijl
   Lettertype: KPN Extended. Kleur: KPN groen (#00ad0d). Groen logo op wit, links boven. */

@font-face {
    font-family: 'KPN Extended';
    src: url('../fonts/KPNExtended_v3Web.woff2') format('woff2');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --green: #00ad0d;          /* KPN groen */
    --green-dark: #007a0b;     /* groen voor tekst en links op wit (genoeg contrast) */
    --green-tint: #e6f6e7;
    --ink: #1c2428;
    --muted: #55626a;
    --line: #d6dcd9;
    --bg: #f3f5f4;
    --white: #ffffff;
    --error: #b3141f;
    --error-tint: #fdeced;
    --warn-tint: #fff4d6;
    --radius: 22px;
    --focus: 0 0 0 3px #fff, 0 0 0 6px var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'KPN Extended', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 900; line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -.01em; margin-bottom: .8rem; }
h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; }
h3 { font-size: 1.05rem; margin-top: 1.4rem; }
p { margin: 0 0 .9rem; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
code { background: var(--bg); padding: .1rem .35rem; border-radius: 6px; font-size: .9em; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ---------- Kop ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
/* Kop: logo, titel en gebruiker op de eerste regel, het menu op één regel eronder */
.bar { display: flex; align-items: center; gap: .5rem 1.2rem; flex-wrap: wrap; padding-top: .4rem; padding-bottom: .4rem; }
.logo { order: 1; display: block; line-height: 0; }   /* Logo links boven, met de vaste marge uit het logobestand */
.logo img { display: block; width: 104px; height: auto; }
.app-name { order: 2; font-weight: 900; font-size: 1.2rem; min-width: 0; }
.user { order: 3; margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.user form { margin: 0; }
.user-name { color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.user-name:hover { text-decoration: underline; }
.menu { display: contents; }
.menu-toggle { display: none; }
.nav { order: 4; flex: 0 0 100%; display: flex; gap: .1rem .15rem; flex-wrap: wrap; padding-bottom: .5rem; }
.nav a { flex: none; padding: .4rem .75rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; white-space: nowrap; }
.nav a:hover { background: var(--green-tint); }
.nav a[aria-current="page"] { background: var(--green); color: #fff; }
.user-name:hover { text-decoration: underline; }

.main { padding-top: 56px; padding-bottom: 140px; }

/* ---------- Knoppen ---------- */
.btn {
    display: inline-block;
    background: var(--green);
    color: #fff;
    border: 2px solid var(--green);
    border-radius: 999px;
    padding: .7rem 1.5rem;
    font: inherit;
    font-weight: 800;
    font-size: 1.2rem;           /* groot en vet: wit op groen blijft goed leesbaar */
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--green-dark); border-color: var(--green); font-size: 1.05rem; }
.btn-secondary:hover { background: var(--green-tint); color: var(--ink); border-color: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: transparent; font-size: 1rem; }
.btn-ghost:hover { background: var(--green-tint); color: var(--ink); border-color: transparent; }
.btn-danger { background: #fff; color: var(--error); border-color: var(--error); font-size: 1.05rem; }
.btn-danger:hover { background: var(--error); color: #fff; border-color: var(--error); }
.btn-small { padding: .35rem .9rem; font-size: .95rem; }

/* ---------- Kaarten en meldingen ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; margin-bottom: 32px; }
.card-narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.empty { text-align: center; padding: 40px 24px; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--green); color: #fff; font-size: 1rem; flex: none; }

.notice { border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--white); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice-ok { background: var(--green-tint); border-color: var(--green); }
.notice-error { background: var(--error-tint); border-color: var(--error); color: #5e0b11; }
.notice-warn { background: var(--warn-tint); border-color: #d9a400; }
.notice-info { background: var(--green-tint); border-color: var(--green); }
.secret { font-family: Consolas, 'Courier New', monospace; font-size: 1.15rem; background: #fff; border: 1px dashed var(--ink); padding: .6rem .8rem; border-radius: 8px; word-break: break-all; }

.tip { background: var(--green-tint); border-left: 6px solid var(--green); border-radius: 8px; padding: 14px 18px; margin-bottom: 16px; }
.hint { color: var(--muted); font-size: .92rem; }
.meta { color: var(--muted); font-size: .88rem; margin: 0; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 36px; }
.page-head h1 { margin-bottom: .3rem; }
.lead { color: var(--muted); margin: 0; max-width: 60ch; }
.crumb { margin: 0 0 .3rem; font-size: .92rem; }
.head-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.head-actions form { margin: 0; }

/* ---------- Formulieren ---------- */
.field { margin-bottom: 14px; min-width: 0; }
label, legend { display: block; font-weight: 700; margin-bottom: .3rem; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], select, textarea {
    width: 100%;
    font: inherit;
    font-weight: 400;
    color: var(--ink);
    background: #fff;
    border: 2px solid #9aa6a0;
    border-radius: 10px;
    padding: .6rem .75rem;
    min-height: 46px;
}
textarea { resize: vertical; min-height: 5.5rem; }
input:focus, select:focus, textarea:focus { border-color: var(--green-dark); }
.check label { display: flex; align-items: center; gap: .5rem; font-weight: 600; min-height: 46px; margin: 0; }
.check input { width: 22px; height: 22px; accent-color: var(--green-dark); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
    .grid-3 { grid-template-columns: 1fr 2fr 2fr; }
    .grid-4 { grid-template-columns: 2fr 1.3fr 1.3fr auto; }
    .field-end { align-self: end; }
}
.grow-2 { min-width: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 6px; margin-bottom: 20px; }
.filters .field { flex: 1 1 180px; }
.filters .btn { margin-bottom: 14px; }
.inline { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.inline select { min-height: 38px; padding: .3rem .5rem; width: auto; }

/* Rijen in het invulformulier */
.rows { display: grid; gap: 14px; margin-bottom: 14px; }
.row-card { border: 2px solid var(--line); border-radius: 18px; padding: 22px; background: #fbfcfb; }
.row-card legend { font-size: 1rem; background: var(--green); color: #fff; border-radius: 999px; padding: .2rem .9rem; margin-bottom: .6rem; float: none; width: auto; }
.legend { margin: 0 0 14px; background: var(--bg); border-radius: 10px; padding: 10px 16px; }
.legend summary { cursor: pointer; font-weight: 700; }
.legend ul { margin-top: .6rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; font-weight: 600; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.chip span { display: inline-block; padding: .4rem 1rem; border: 2px solid #9aa6a0; border-radius: 999px; background: #fff; }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chip input:focus-visible + span { box-shadow: var(--focus); }
.link-btn { background: none; border: 0; padding: 0 .4rem; font: inherit; font-weight: 600; color: var(--green-dark); text-decoration: underline; cursor: pointer; }

.scale-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 640px) { .scale-options { grid-template-columns: 1fr; } }
.scale-opt { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; border: 2px solid #9aa6a0; border-radius: 12px; padding: .7rem .4rem; cursor: pointer; font-weight: 600; margin: 0; background: #fff; }
.scale-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.scale-num { font-size: 1.6rem; font-weight: 900; }
.scale-text { font-size: .85rem; }
.scale-opt:has(input:checked) { background: var(--green); border-color: var(--green); color: #fff; }
.scale-opt:has(input:focus-visible) { box-shadow: var(--focus); }

.savebar { position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 24px; z-index: 20; }
.savebar-in { display: flex; gap: .7rem; justify-content: flex-end; align-items: center; flex-wrap: wrap; }

/* ---------- Tabellen en lijsten ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--white); }
.table th { text-align: left; font-size: .85rem; text-transform: none; color: var(--muted); border-bottom: 2px solid var(--line); padding: .6rem .7rem; }
.table td { padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .actions { white-space: nowrap; text-align: right; }
.card .table-wrap { margin: 0 -8px; }

@media (max-width: 760px) {
    .table thead { position: absolute; left: -9999px; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { border: 1px solid var(--line); border-radius: 12px; padding: .5rem .8rem; margin-bottom: 12px; background: #fff; }
    .table td { border: 0; padding: .3rem 0; }
    .table td[data-label]::before { content: attr(data-label) ': '; font-weight: 700; color: var(--muted); }
    .table .actions { text-align: left; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-num { display: block; font-size: 2.2rem; font-weight: 900; color: var(--green-dark); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .9rem; }

.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: .1rem .65rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.tag-afgerond { background: var(--green-tint); border-color: var(--green); color: #05500c; }
.tag-concept { background: #fff; border-color: #9aa6a0; color: var(--muted); }
.tag-sig-individueel { background: #fff; border-color: #9aa6a0; }
.tag-sig-terugkerend { background: var(--green-tint); border-color: var(--green); color: #05500c; }
.tag-sig-skill { background: #fff; border: 2px solid var(--green-dark); color: #05500c; }
.tag-sig-structureel { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.tag-soort-afwijking, .tag-soort-ontbreekt { border-color: var(--ink); }
.tag-soort-goed, .tag-soort-overeenkomst { background: var(--green-tint); border-color: var(--green); color: #05500c; }

.plain { list-style: none; padding: 0; }
.plain > li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.plain > li:last-child { border-bottom: 0; }
.more { margin-top: .4rem; }
.more summary { cursor: pointer; color: var(--green-dark); font-weight: 600; font-size: .92rem; }
.items { list-style: none; padding: .6rem 0 0; }
.items li { background: var(--bg); border-radius: 8px; padding: .6rem .8rem; margin-bottom: .5rem; font-size: .95rem; }
progress { width: 90px; height: 12px; vertical-align: middle; accent-color: var(--green); }

/* Weergave van één test */
.facts { margin: 1rem 0 0; }
.facts div { padding: .6rem 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 700; font-size: .92rem; color: var(--muted); }
.facts dd { margin: 0; }
.person { padding: .8rem 0; border-top: 1px solid var(--line); }
.person:first-of-type { border-top: 0; }
.person h3 { margin: 0 0 .2rem; display: flex; gap: .6rem; align-items: center; }
.soort { border-left: 6px solid var(--green); padding-left: .7rem; }
.soort-afwijking, .soort-ontbreekt { border-left-color: var(--ink); }
.obs { padding: .7rem 0 .7rem 1rem; border-bottom: 1px solid var(--line); }
.obs-top { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .3rem; }

.checks { list-style: none; padding: 0; }
.checks li { padding: .3rem 0 .3rem 1.8rem; position: relative; }
.checks li::before { position: absolute; left: 0; font-weight: 900; }
.checks .ok::before { content: '✓'; color: var(--green-dark); }
.checks .fout::before { content: '✗'; color: var(--error); }

/* ---------- Voet ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--white); padding: 18px 0; color: var(--muted); font-size: .88rem; }
.site-footer p { margin: 0 0 .2rem; }

@media print {
    .site-header .nav, .user, .savebar, .head-actions, .site-footer, .filters { display: none; }
    body { background: #fff; }
    .card { border: 0; padding: 0; break-inside: avoid; }
}

/* ---------- Scenario's en bot-tests ---------- */
[hidden] { display: none !important; }

.steps { padding-left: 1.4rem; margin: .4rem 0 1rem; }
.steps li { padding: .1rem 0; }
.steps li.sub { margin-left: 1.4rem; list-style-type: circle; }

.situatie { background: var(--bg); border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.situatie p { margin: 0 0 .4rem; }

.score-row { border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px 6px; margin: 0 0 14px; background: #fbfcfb; }
.score-row > legend { font-size: 1rem; font-weight: 800; background: var(--green); color: #fff; border-radius: 999px; padding: .2rem .9rem; margin-bottom: .6rem; float: none; width: auto; }
.golden-box { background: var(--white); border-left: 6px solid var(--green); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.golden-box p { margin: 0 0 .4rem; }
.golden-label { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--green-dark); margin-bottom: .2rem; }
.note { margin-top: 10px; }
.note input { min-height: 40px; }

.check-line { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; margin: 0 0 .4rem; }
.check-line input { width: 22px; height: 22px; flex: none; accent-color: var(--green-dark); margin-top: .1rem; }
.checklist { margin-bottom: .6rem; }
.radio-stack { display: grid; gap: .5rem; }

.cols { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .cols { grid-template-columns: 1fr 1fr; } }

.stat-alert .stat-num { color: var(--ink); }
.tag-ernst-klein { background: #fff; }
.tag-ernst-ernstig { border: 2px solid var(--ink); background: #fff; }
.tag-ernst-blokkerend { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Huisregels */
.rules-bar { background: var(--warn-tint); border-bottom: 2px solid #d9a400; padding: .55rem 0; font-size: .92rem; }
.rules ul { margin: .4rem 0 0; }
.rules li { margin-bottom: .25rem; }

/* Upgrade */
.mono { font-family: Consolas, 'Courier New', monospace; word-break: break-all; }
input.mono { font-size: .95rem; }

/* Instellingen */
.setting-line { align-items: end; }

/* Melding met kruisje */
.rules-bar .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.rules-close { flex: none; border: 0; background: transparent; font: inherit; font-size: 1.6rem; line-height: 1; font-weight: 700; color: var(--ink); cursor: pointer; padding: 0 .4rem; border-radius: 6px; }
.rules-close:hover { background: rgba(0, 0, 0, .08); }

/* ---------- Kleine schermen ---------- */
@media (max-width: 640px) {
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.15rem; align-items: flex-start; }
    .wrap { padding: 0 14px; }
    .logo img { width: 84px; }
    .app-name { font-size: 1rem; }
    .user-name { font-size: .9rem; }
    .main { padding-top: 24px; padding-bottom: 110px; }
    .card { padding: 20px 18px; margin-bottom: 20px; border-radius: 18px; }
    .row-card { padding: 16px 14px; }
    .score-row { padding: 12px 12px 4px; }
    .page-head { margin-bottom: 22px; }
    .page-head .btn, .head-actions .btn { width: 100%; text-align: center; }
    .head-actions { width: 100%; }
    .btn { font-size: 1.05rem; padding: .65rem 1.2rem; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat { padding: 12px 14px; }
    .stat-num { font-size: 1.7rem; }
    .filters { padding: 14px 14px 2px; }
    .filters .btn { width: 100%; }
    .chip span { padding: .35rem .8rem; }
    /* Opslaan-balk: klein en op één regel */
    .savebar { padding: 8px 0; margin-top: 16px; }
    .savebar-in { gap: .4rem; flex-wrap: nowrap; justify-content: space-between; }
    .savebar .btn { flex: 1 1 auto; font-size: .92rem; padding: .5rem .5rem; text-align: center; white-space: nowrap; }
    .savebar .btn-ghost { flex: 0 1 auto; }
    .rules-bar { font-size: .85rem; }
}

/* Hamburgermenu op telefoon en kleine tablet */
@media (max-width: 860px) {
    .menu-toggle { order: 3; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--green); border-radius: 999px; background: #fff; cursor: pointer; padding: 0; }
    .menu-toggle:hover { background: var(--green-tint); }
    .burger, .burger::before, .burger::after { display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--green-dark); content: ''; position: relative; transition: transform .15s, opacity .15s; }
    .burger::before { position: absolute; top: -7px; }
    .burger::after { position: absolute; top: 7px; }
    .menu-toggle[aria-expanded="true"] .burger { background: transparent; }
    .menu-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }

    .menu { display: none; order: 5; flex: 0 0 100%; flex-direction: column; gap: .5rem; padding: .25rem 0 .75rem; border-top: 1px solid var(--line); }
    .menu.open { display: flex; }
    .nav { order: 0; flex: none; flex-direction: column; flex-wrap: nowrap; overflow: visible; gap: .1rem; padding: .4rem 0 0; }
    .nav a { display: block; padding: .75rem 1rem; font-size: 1.05rem; border-radius: 14px; }
    .user { order: 0; margin: 0; justify-content: space-between; padding: .6rem 1rem 0; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
    /* De titel mag over twee regels, zodat de menuknop naast de titel past */
    .bar { flex-wrap: wrap; flex-direction: row; }
    .app-name { flex: 1 1 0; min-width: 0; font-size: .95rem; line-height: 1.15; }
    .menu-toggle { flex: none; }
}

/* Demo */
.demo-bar { background: var(--ink); color: #fff; padding: .6rem 0; font-size: .95rem; }
.demo-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.demo-bar form { margin: 0; }
.demo-bar strong { background: var(--green); color: #fff; border-radius: 999px; padding: .1rem .7rem; margin-right: .4rem; }

/* Foto's bij een scenario */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 24px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); background: #f4f6f4; }
.gallery figcaption { font-size: .9rem; color: var(--muted, #555); }

.gallery-small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 16px 0 0; }
.gallery-small img { height: 110px; border-radius: 14px; }
.gallery a { cursor: zoom-in; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 18px; background: #fff; }
.lightbox figcaption { color: #fff; text-align: center; font-weight: 600; }
.lightbox button { position: absolute; background: #fff; color: #111; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:focus-visible { outline: 3px solid var(--green, #00ad0d); outline-offset: 2px; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox button[hidden] { display: none; }
body.lb-open { overflow: hidden; }
@media (max-width: 640px) { .lightbox { padding: 56px 12px 24px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 8px; transform: none; } }

/* ---------- Workflow-review en logboek (versie 1.6.0) ---------- */
.stap { border: 2px solid var(--line); border-left-width: 8px; border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; background: #fbfcfb; }
.stap h3 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.stap-controle { border-left-color: #185fa5; }
.stap-actie { border-left-color: #ba7517; }
.uitkomsten { list-style: none; padding: 0; margin: .4rem 0 0; }
.uitkomsten li { padding: .35rem 0; border-top: 1px dashed var(--line); }
.opmerking { border-top: 1px solid var(--line); padding: 14px 0; }
.opmerking:first-of-type { border-top: 0; }
.opmerking .inline { margin-top: .4rem; flex-wrap: wrap; }
.opmerking .inline input[type="text"] { min-width: 14rem; }
.resultaat-regel { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 0 0 1rem; }
.tag-ernst-blokkerend { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Workflow als stroomschema (zoals de review-pagina) ---------- */
.wf { --bl-bg:#E6F1FB; --bl-b:#185FA5; --bl-t:#0C447C; --or-bg:#FAEEDA; --or-b:#BA7517; --or-t:#633806; --gr-bg:#EAF3DE; --gr-b:#3B6D11; --gr-t:#27500A; --rd-bg:#FCEBEB; --rd-b:#A32D2D; --rd-t:#791F1F; --pu-bg:#EEEDFE; --pu-b:#534AB7; --pu-t:#3C3489; font-size: .92rem; margin-bottom: 28px; }
.wf .b { background: var(--bl-bg); border: 1px solid var(--bl-b); color: var(--bl-t); }
.wf .o { background: var(--or-bg); border: 1px solid var(--or-b); color: var(--or-t); }
.wf .g { background: var(--gr-bg); border: 1px solid var(--gr-b); color: var(--gr-t); }
.wf .r { background: var(--rd-bg); border: 1px solid var(--rd-b); color: var(--rd-t); }
.wf .p { background: var(--pu-bg); border: 1px solid var(--pu-b); color: var(--pu-t); }
.wf .n { background: #fff; border: 1px solid #c3c2b7; color: var(--ink); }
.wf .t { background: var(--rd-bg); border: 1.5px dashed var(--rd-b); color: var(--rd-t); }
.wf .x { background: var(--bg); border: 1px dashed var(--muted); color: var(--muted); }
.wf .td { border-style: dashed; border-width: 1.5px; }
.wf .bk { background: #fff; border: 1.5px solid var(--bl-b); color: var(--bl-t); font-weight: 700; }
.wf .jp { background: #fff; border: 1.5px solid var(--or-b); color: var(--or-t); font-weight: 700; }
.wf .t5 { font-weight: 700; }
.wf .st { color: var(--muted); font-size: .88rem; margin: 0 0 8px; }
.wf .box { border-radius: 8px; padding: 8px 11px; line-height: 1.4; }
.wf .sm { font-size: .88rem; opacity: .9; }
.wf .leg { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.wf .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.wf .zb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.wf .zb-start { flex: 1 1 150px; font-size: .88rem; }
.wf .zk { flex: 1 1 110px; border-radius: 10px; padding: 8px 6px; text-align: center; text-decoration: none; color: var(--ink); line-height: 1.3; font-size: .88rem; }
.wf .zk:hover { background: var(--green-tint); }
.wf .zk.on { outline: 3px solid var(--bl-b); outline-offset: 1px; }
.wf .zk .sub { font-size: .78rem; color: var(--muted); }
.wf .wrow { display: grid; grid-template-columns: 1fr 14px 130px 14px 1.9fr; align-items: center; gap: 4px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.wf .wrow:target .box { box-shadow: 0 0 0 3px var(--ink); }
.wf .ar { align-self: center; color: var(--muted); text-align: center; }
.wf .dm { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--bl-bg); color: var(--bl-t); min-height: 92px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .82rem; padding: 0 22px; font-weight: 700; }
.wf .nod { height: 2px; background: var(--bl-b); align-self: center; margin: 0 8px; }
.wf .oc { display: flex; flex-direction: column; gap: 6px; border-left: 2px solid var(--bl-b); padding: 2px 0; }
.wf .out { position: relative; margin-left: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; border: 1px solid #c3c2b7; border-radius: 8px; padding: 6px 8px; background: #fff; }
.wf .out::before { content: ''; position: absolute; left: -14px; top: 50%; width: 13px; border-top: 2px solid var(--bl-b); }
.wf .out .ga { font-size: .78rem; color: var(--muted); }
.wf .lb { font-weight: 700; flex: 1 1 130px; min-width: 0; }
.wf .chip { display: inline-block; border-radius: 6px; padding: 3px 8px; font-size: .85rem; text-decoration: none; margin: 0; }
.wf a.chip:hover { filter: brightness(.95); text-decoration: underline; }
.wf .tagk { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; margin-right: 5px; }
.wf .rnote { margin-top: 6px; font-size: .8rem; border: 1.5px dashed currentColor; border-radius: 4px; padding: 2px 6px; }
.wf .wnote { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--or-b); padding: 4px 10px; margin: 0 0 14px; }
.wf .dg { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 6px; }
.wf .dg .chip { display: block; margin-bottom: 5px; }
@media (max-width: 700px) {
    .wf .wrow { grid-template-columns: 1fr; }
    .wf .wrow .ar { display: none; }
    .wf .dm { max-width: 220px; }
}
@media (prefers-color-scheme: dark) { .wf { color: var(--ink); } }

/* Workflow-review: opmerkingen in meerdere regels */
.regels { display: grid; gap: 12px; margin-bottom: 12px; }
.regel { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr auto; gap: 12px; align-items: start; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fbfcfb; }
.regel .field { margin: 0; }
.regel .regel-weg { font-size: 1.4rem; line-height: 1; padding: .2rem .5rem; }
@media (max-width: 700px) { .regel { grid-template-columns: 1fr; } }

/* Beheer-menu */
.nav-dd { position: relative; }
.nav-dd summary { list-style: none; cursor: pointer; padding: .4rem .75rem; border-radius: 999px; font-weight: 600; font-size: .98rem; white-space: nowrap; }
.nav-dd summary::-webkit-details-marker { display: none; }
.nav-dd summary::after { content: ' ▾'; font-size: .8em; }
.nav-dd summary:hover { background: var(--green-tint); }
.nav-dd summary[aria-current="page"] { background: var(--green); color: #fff; }
.nav-dd-list { position: absolute; right: 0; top: calc(100% + 4px); min-width: 12rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .35rem; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 30; display: flex; flex-direction: column; }
.nav-dd-list a { border-radius: 10px; }
@media (max-width: 860px) {
    .nav-dd summary { padding: .75rem 1rem; font-size: 1.05rem; border-radius: 14px; }
    .nav-dd-list { position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
}
@media print { .nav-dd { display: none; } }

/* Uitleg bij stappen, rapport en afdrukken */
.wf .meer { margin-top: 6px; font-size: .85rem; }
.wf .meer summary { cursor: pointer; font-weight: 700; }
.legend.scenario { margin-bottom: 14px; }
.rapport-stap { border-top: 1px solid var(--line); padding: 12px 0; }
.rapport-stap h3 { margin: 0 0 .2rem; }
@media print {
    body { background: #fff; }
    .rules-bar, .demo-bar, .site-footer, .btn, .head-actions, .menu-toggle { display: none !important; }
    .card { border: 0; padding: 0 0 12px; break-inside: avoid-page; }
    .rapport-stap { break-inside: avoid; }
    a { color: inherit; text-decoration: none; }
}

/* Werkblad om af te drukken */
.werkblad { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 32px; }
.wb-kop h1 { font-size: 1.8rem; }
.wb-naam { margin: 1rem 0; }
.wb-streep { display: inline-block; width: 16rem; border-bottom: 1px solid var(--ink); }
.wb-streep.kort { width: 7rem; }
.wb-hoofdstuk { margin-top: 28px; }
.wb-hoofdstuk h2 { border-bottom: 3px solid var(--green); padding-bottom: .3rem; }
.wb-stap { border: 1px solid var(--line); border-left-width: 8px; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; break-inside: avoid; }
.wb-controle { border-left-color: #185fa5; }
.wb-actie { border-left-color: #ba7517; }
.wb-diag { border-left-color: var(--green); }
.wb-stap h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.wb-nr { font-weight: 900; }
.wb-stap p { margin: 0 0 .35rem; }
.wb-vraag { font-weight: 700; margin-top: .4rem; }
.wb-noot { border: 1px dashed var(--ink); border-radius: 6px; padding: 2px 8px; font-size: .9rem; }
.wb-uitkomsten { list-style: none; padding: 0; margin: 0 0 .4rem; }
.wb-uitkomsten li::before { content: '☐ '; }
.wb-pijl { color: var(--muted); }
.wb-lijnen span { display: block; height: 1.9rem; border-bottom: 1px solid #9aa6a0; }
.wb-voet { margin-top: 24px; font-size: .8rem; color: var(--muted); }
@media print {
    @page { size: A4; margin: 14mm; }
    .nonprint { display: none !important; }
    .werkblad { border: 0; padding: 0; border-radius: 0; margin: 0; font-size: 10.5pt; }
    .wb-hoofdstuk { break-before: page; margin-top: 0; }
    .wb-kop + .wb-blok + .wb-hoofdstuk, .wb-kop + .wb-hoofdstuk { break-before: auto; }
    .wb-stap { border: 1px solid #999; border-left-width: 6px; }
    .wb-lijnen span { height: 1.6rem; border-bottom-color: #666; }
    .wb-voet { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; text-align: center; }
    .main { padding: 0; }
    .rules-bar { display: none !important; }
}
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Scenario afdrukken */
.wb-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.wb-fotos img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.wb-fotos figure { margin: 0; break-inside: avoid; }
@media print { .wb-hoofdstuk.wb-eerste { break-before: auto; } }
