:root {
  --bg: #f4f9f2; --surface: #fff; --text: #0b2530; --muted: #4a5f68; --line: #cfdccb;
  --brand: #003144; --green: #b0d8a6; --orange: #f9ce88;   /* huisstijl Vonk & Volta */
  --accent: #003144; --accent-ink: #fff; --danger: #a31515; --ok: #176b3a; --warn: #8a5a00;
  --radius: 12px; --shadow: 0 1px 3px rgba(0,0,0,.12);
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
h1 { font-size: 1.7rem; margin: 0 0 .75rem; } h2 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; } h3 { margin: 0 0 .25rem; }
a { color: var(--accent); }
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; outline: none; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
main:focus, main:focus-visible { outline: none; }   /* <main> is enkel programmatisch focusbaar (tabindex=-1) en krijgt bij een klik op de achtergrond focus: daar geen rand */

/* navigatie */
#topbar { background: #fff; color: var(--brand); border-bottom: 5px solid var(--green); box-shadow: 0 5px 0 var(--orange); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 16px; position: sticky; top: 0; z-index: 10; }
#topbar a.brand:hover { background: none; text-decoration: none; }
#topbar .brand { padding: 0; display: inline-flex; align-items: center; margin-right: 8px; }
#topbar .brand img { height: 46px; width: auto; display: block; }
.login-logo { display: block; height: 80px; width: auto; max-width: 100%; margin: 0 auto 12px; }
#topbar nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
#topbar a { color: var(--brand); text-decoration: none; padding: 8px 9px; border-radius: 8px; }
#topbar a:hover, #topbar a.on { background: var(--green); text-decoration: underline; }
#topbar .who { font-size: .85rem; opacity: .9; }
.badge-n { background: var(--orange); color: var(--brand); border-radius: 99px; padding: 0 8px; font-size: .8rem; font-weight: 700; margin-left: 4px; }

/* knoppen en formulieren */
button, .btn { font: inherit; cursor: pointer; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); padding: 8px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; display: inline-block; }
button.secondary, .btn.secondary { background: #fff; color: var(--accent); }
button.danger { background: #fff; color: var(--danger); border-color: var(--danger); }
button.danger.solid { background: var(--danger); color: #fff; }
button.small { padding: 4px 10px; font-size: .9rem; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.big { padding: 14px 24px; font-size: 1.2rem; }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
input, select, textarea { font: inherit; padding: 9px 10px; border: 2px solid #7b8794; border-radius: 8px; width: 100%; background: #fff; color: var(--text); }
input[type=checkbox] { width: auto; transform: scale(1.3); margin-right: 8px; }
input[type=number] { width: 90px; text-align: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } .row > * { flex: 0 0 auto; } .row .grow { flex: 1 1 200px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.help { color: var(--muted); font-size: .9rem; margin: 2px 0; }

/* kaarten en tabellen */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f3f6fa; border-radius: 8px; }
.product .desc { color: var(--muted); font-size: .92rem; flex: 1; }
.avail { font-weight: 700; } .avail.none { color: var(--danger); } .avail.low { color: var(--warn); } .avail.ok { color: var(--ok); }
.avail::before { content: "● "; } .avail.none::before { content: "✖ "; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #e9eef5; font-size: .9rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.thumb { width: 48px; height: 48px; object-fit: contain; background: #f3f6fa; border-radius: 6px; }
.table-wrap { overflow-x: auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.chip { background: #fff; color: var(--text); border: 2px solid var(--line); border-radius: 99px; padding: 6px 16px; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.status { display: inline-block; border: 2px solid currentColor; border-radius: 6px; padding: 1px 8px; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.s-bevestigd { color: #5b21b6; } .s-in_verwerking { color: #1d4ed8; } .s-wordt_klaargelegd { color: #8a5a00; }
.s-klaar_voor_afhaling { color: #176b3a; } .s-uitgegeven { color: #374151; } .s-geannuleerd { color: #a31515; text-decoration: line-through; }
.alert { border-left: 6px solid var(--warn); background: #fff7e0; padding: 10px 14px; border-radius: 8px; margin: 8px 0; }
.alert.err { border-color: var(--danger); background: #fdecec; } .alert.ok { border-color: var(--ok); background: #e8f6ee; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { text-align: center; text-decoration: none; color: inherit; } .tile b { display: block; font-size: 2rem; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.big-number { font-size: 2.4rem; font-weight: 800; letter-spacing: .02em; }
.check-back { margin: 8px 0; }
.check-btns { gap: 8px; margin-top: 8px; }
.delivery { border: 2px solid var(--green); border-radius: 12px; margin: 12px 0; padding: 8px 14px 10px; }
.delivery legend { font-weight: 700; padding: 0 6px; }
.delivery .opt { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-weight: 600; }
.delivery .opt input { width: auto; margin: 0; }
.login { max-width: 420px; margin: 8vh auto; }
.login-wrap { display: flex; align-items: center; justify-content: center; gap: 32px; max-width: 980px; margin: 6vh auto; }
.login-wrap .login { margin: 0; flex: 0 1 460px; }
.login-voltje img { display: block; height: 300px; width: auto; max-width: 100%; object-fit: contain; }
.login-voltje { display: flex; flex-direction: column; align-items: flex-start; }
.login-bubble { position: relative; background: #fff; color: var(--brand); border: 3px solid var(--green); border-radius: 18px; padding: 10px 16px; margin: 0 70px 16px 0; align-self: flex-end; max-width: 240px; box-shadow: 0 4px 14px rgba(0,0,0,.15); line-height: 1.35; }
.login-bubble::after { content: ""; position: absolute; right: 44px; bottom: -13px; width: 20px; height: 20px; background: #fff; border-right: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(45deg); }
@media (max-width: 760px) { .login-wrap { flex-direction: column; gap: 10px; margin: 2vh auto; } .login-voltje { flex-direction: row; align-items: center; justify-content: center; gap: 14px; } .login-voltje img { height: 120px; }
  .login-bubble { margin: 0; max-width: 220px; font-size: .95rem; } .login-bubble::after { left: auto; right: -13px; bottom: auto; top: calc(50% - 10px); transform: rotate(45deg); border: 0; border-top: 3px solid var(--green); border-right: 3px solid var(--green); }
  .login-wrap .login { width: 100%; } }
.hist { list-style: none; padding: 0; margin: 0; } .hist li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.muted { color: var(--muted); } .right { text-align: right; } .nowrap { white-space: nowrap; }

/* klaarlegweergave voor leerlingen: groot, veel witruimte */
.pick-list { display: grid; gap: 16px; }
.pick-card { display: block; text-decoration: none; color: inherit; padding: 22px; border: 3px solid #111; }
.pick-card .big-number { color: #111; } .pick-card:hover { background: #eef4fb; }
.pick-head { padding: 22px; border: 3px solid #111; background: #fff; border-radius: var(--radius); margin-bottom: 20px; }
.pick-head .big-number { font-size: 3rem; }
.pick-head p { margin: 4px 0; font-size: 1.3rem; }
.pick-line { display: grid; grid-template-columns: 110px 140px 1fr; gap: 22px; align-items: center; padding: 22px; margin-bottom: 18px; border: 3px solid #111; border-radius: var(--radius); background: #fff; }
.pick-line img { width: 140px; height: 140px; object-fit: contain; background: #f3f6fa; border: 1px solid #888; border-radius: 8px; }
.pick-line .name { font-size: 1.6rem; font-weight: 800; }
.pick-line .take { display: inline-block; font-size: 2.2rem; font-weight: 900; border: 4px solid var(--accent); padding: 2px 16px; margin: 8px 0; border-radius: 8px; }
.pick-line .loc { font-size: 1.4rem; }
.pick-line.done { background: #eaf7ef; border-style: solid; } .pick-line.missing { background: #fdecec; border-style: dashed; }
.check { width: 110px; height: 110px; border: 6px solid #111; border-radius: 14px; background: #fff; font-size: 4.2rem; line-height: 1; padding: 0; color: #111; display: flex; align-items: center; justify-content: center; }
.check[aria-pressed=true] { background: var(--ok); color: #fff; border-color: #0d4a28; }
.state-text { font-size: 1.2rem; font-weight: 800; margin-top: 4px; }
.progress { height: 18px; background: #dde3ea; border-radius: 99px; overflow: hidden; border: 2px solid #111; }
.progress > i { display: block; height: 100%; background: var(--ok); }
@media (max-width: 760px) { .pick-line { grid-template-columns: 90px 1fr; } .pick-line img { display: none; } .check { width: 90px; height: 90px; } }

/* demo en 'bekijk als' */
.banner { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 8px 14px; margin: -8px -16px 6px; font-weight: 600; }
.banner.imp { background: #f59e0b; color: #111; }
.banner.imp.acts { background: #b91c1c; color: #fff; }
.banner.imp.acts button { background: #fff; color: #111; border-color: #fff; }
.banner.demo { background: #5b21b6; color: #fff; justify-content: center; padding: 4px 14px; font-size: .9rem; }
.banner button { background: #111; color: #fff; border-color: #111; }
#topbar .switch { background: #fff; color: var(--brand); border-color: var(--brand); }

/* menu op één lijn: logo links, de menu-items in het midden (ze lopen door naar een volgende regel als er te weinig plaats is),
   rechts de naam, 'Bekijk als', account en afmelden. Een balk (demo of 'bekijk als') staat boven alles. */
#topbar .banner { order: 0; }
#topbar .brand { order: 1; }
#topbar nav { order: 2; flex: 1 1 0; min-width: 0; }
#topbar .who { order: 3; white-space: nowrap; }
#topbar .switch, #topbar > a { order: 3; white-space: nowrap; }
#topbar .navtoggle { display: none; }
@media (max-width: 1250px) { #topbar nav { order: 4; flex: 1 1 100%; } #topbar .who { margin-left: auto; } }   /* te weinig plaats: het menu op een eigen regel */

/* uitklapmenu's in het hoofdmenu */
details.navmenu { position: relative; }
details.navmenu > summary { list-style: none; cursor: pointer; color: var(--brand); padding: 8px 9px; border-radius: 8px; }
details.navmenu > summary::-webkit-details-marker { display: none; }
details.navmenu > summary:hover, details.navmenu[open] > summary, details.navmenu > summary.on { background: var(--green); }
.navpop { position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 2px solid var(--green); border-radius: 10px; padding: 6px; z-index: 30; display: grid; gap: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.navpop a { display: block; }

/* mededelingen bovenaan en het versienummer onderaan */
#notices { position: relative; z-index: 20; }
.notice { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid rgba(0,0,0,.15); }
.notice > div { flex: 1; }
.notice .notice-text, .notice .notice-when { display: block; white-space: pre-line; }
.notice .notice-when { font-weight: 600; }
.n-info { background: #dbeafe; color: #0b2a55; }
.n-onderhoud { background: var(--orange); color: #4a2c00; border-left: 8px solid #b45309; }
.n-update { background: var(--brand); color: #fff; }
.n-update button { background: #fff; color: var(--brand); border-color: #fff; }
/* "wat is nieuw": venster op de voorgrond */
#whatsnew { max-width: min(560px, 94vw); border: 0; border-radius: 16px; padding: 0 24px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
#whatsnew::backdrop { background: rgba(0, 49, 68, .55); }
#whatsnew .wn-head { margin: 0 -24px 14px; padding: 12px 24px; background: var(--green); border-bottom: 5px solid var(--orange); display: flex; gap: 12px; align-items: center; }
#whatsnew .wn-badge { background: var(--brand); color: #fff; font-weight: 700; border-radius: 99px; padding: 2px 12px; }
#whatsnew .wn-version { font-weight: 700; color: var(--brand); }
#whatsnew h2 { margin-top: 0; }
#whatsnew .wn-body ul { padding-left: 1.2rem; } #whatsnew .wn-body li { margin: 4px 0; }
#footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 0 16px 24px; }

/* smal scherm: het menu scrolt mee in plaats van vast te blijven staan (anders bedekt het de pagina) */
@media (max-width: 1000px) { #topbar { position: static; } }
@media (max-width: 1100px) {
  /* telefoon: logo en een menuknop; het menu klapt open onder het logo */
  #topbar .navtoggle { display: inline-block; order: 2; margin-left: auto; padding: 8px 14px; }
  #topbar nav, #topbar .who, #topbar .switch, #topbar > a:not(.brand) { display: none; }
  #topbar.open nav { display: flex; flex-direction: column; order: 4; flex: 1 1 100%; gap: 2px; }
  #topbar.open .who { display: block; order: 5; flex: 1 1 100%; margin-left: 0; }
  #topbar.open .switch, #topbar.open > a:not(.brand) { display: block; order: 5; flex: 1 1 100%; text-align: left; }
  #topbar.open nav a, #topbar.open nav summary, #topbar.open > a:not(.brand) { display: block; padding: 10px 14px; }
  #topbar.open .who { padding: 4px 14px; }
  details.navmenu { position: static; }
  .navpop { position: static; box-shadow: none; border: 0; border-left: 4px solid var(--green); border-radius: 0; margin-left: 8px; }
}


/* analyse: cirkeldiagram */
.donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 8px 0; }
.donut { width: 210px; height: 210px; flex: none; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1 1 260px; }
.donut-legend li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.donut-legend .sw { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.3); }
.donut-legend .lg-name { overflow: hidden; text-overflow: ellipsis; }
.donut-legend .lg-val { white-space: nowrap; }

/* analyse: staafdiagram */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: minmax(110px, 40%) 1fr auto auto; gap: 8px; align-items: center; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 16px; background: #dde3ea; border-radius: 4px; overflow: hidden; border: 1px solid #94a3b8; }
.bar i { display: block; height: 100%; background: var(--accent); }

/* foto bekijken */
img[data-zoom] { cursor: zoom-in; }
#lightbox { max-width: 100vw; width: 100vw; max-height: 100vh; height: 100vh; padding: 0; border-radius: 0; background: #111; color: #fff; }
#lightbox[open] { display: flex; flex-direction: column; }
.lb-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; background: #000; }
.lb-bar button { background: #fff; color: #111; border-color: #fff; }
.lb-title { flex: 1; color: #ddd; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-stage { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 8px; }
.lb-stage img { display: block; background: #222; }
.lb-stage img.fit { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.lb-stage img.zoomed { max-width: none; cursor: zoom-out; margin: auto; }

/* dialoog en meldingen */
dialog { border: 0; border-radius: var(--radius); padding: 20px; max-width: min(720px, 94vw); width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(0,0,0,.5); }
#toasts { position: fixed; bottom: 16px; right: 16px; display: grid; gap: 8px; z-index: 50; }
.toast { background: #111827; color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); max-width: 380px; }
.toast.err { background: var(--danger); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Vonk, de mascotte */
main { padding-bottom: 110px; }
.mascot { position: fixed; right: 30px; bottom: 26px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.mascot > * { pointer-events: auto; }
.mascot-figure { position: relative; }
.mascot-btn { display: block; background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; border-radius: 16px; min-height: 0; }
.mascot-btn img { height: 120px; width: 104px; object-fit: contain; object-position: bottom right; filter: drop-shadow(0 4px 5px rgba(0,0,0,.22)); transform-origin: 50% 100%; }
.mascot-waving { display: none; }                  /* Voltje staat stil en zwaait als je erover gaat */
.mascot-figure:hover .mascot-waving, .mascot-btn:focus-visible .mascot-waving { display: block; }
.mascot-figure:hover .mascot-still, .mascot-btn:focus-visible .mascot-still { display: none; }
@media (prefers-reduced-motion: reduce) { .mascot-figure:hover .mascot-waving, .mascot-btn:focus-visible .mascot-waving { display: none; } .mascot-figure:hover .mascot-still, .mascot-btn:focus-visible .mascot-still { display: block; } }
.mascot-actions { position: absolute; right: 100%; bottom: 28%; display: none; flex-direction: column; gap: 8px; padding-right: 4px; }
.mascot-figure:hover .mascot-actions, .mascot-figure:has(:focus-visible) .mascot-actions, .mascot.open .mascot-actions { display: flex; }
.mascot-act { background: #fff; color: var(--brand); border: 3px solid var(--green); border-radius: 999px; padding: 6px 16px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.22); white-space: nowrap; min-height: 0; }
.mascot-act:hover, .mascot-act:focus-visible { background: #e3f0d9; }
.mascot-bubble { position: relative; max-width: min(300px, calc(100vw - 40px)); background: #fff; color: var(--text); border: 3px solid var(--green); border-radius: 16px; padding: 10px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.28); margin-right: 18px; }
.mascot-bubble::after { content: ""; position: absolute; right: 28px; bottom: -13px; width: 20px; height: 20px; background: #fff; border-right: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(45deg); }
.mascot-text { margin: 0 0 8px; font-weight: 600; }
.mascot-btns { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mascot-bubble { min-width: 250px; padding-right: 30px; }
.mascot-x { position: absolute; top: 4px; right: 6px; background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; min-height: 0; }
.mascot-menu { display: grid; gap: 6px; margin: 6px 0; }
.mascot-choice { text-align: left; background: #f3f8ee; color: var(--brand); border: 2px solid var(--green); border-radius: 12px; padding: 8px 12px; font-weight: 600; cursor: pointer; min-height: 0; }
.mascot-choice:hover, .mascot-choice:focus-visible { background: #e3f0d9; }
.mascot-foot { margin: 6px 0 0; font-size: .85rem; text-align: right; }
.linklike { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; min-height: 0; font: inherit; }
.mascot.cheer .mascot-btn img { animation: mascot-hop .6s ease-out 2; }
@keyframes mascot-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-16px) rotate(-6deg); } 70% { transform: translateY(-4px) rotate(4deg); } }
@keyframes mascot-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .mascot-btn img { animation: none; } }
@media (max-width: 640px) { .mascot { right: 16px; bottom: 16px; } .mascot-btn img { height: 96px; } }
body:has(#tourlayer) #mascot, body:has(#dlg[open]) #mascot { display: none; }
@media print { #mascot { display: none !important; } }
@media print { #topbar, #toasts, #notices, #footer, #whatsnew, button { display: none !important; } body { background: #fff; } }

/* rechtenmatrix */
.matrix th.c, .matrix td.c { text-align: center; }
.matrix thead th.c { vertical-align: bottom; min-width: 130px; font-size: .9rem; line-height: 1.3; }
.matrix tbody th { min-width: 260px; background: #f3f6fa; position: sticky; left: 0; }
.matrix td.c input { width: 22px; height: 22px; margin: 0; transform: none; }
.matrix tbody tr:hover td, .matrix tbody tr:hover th { background: #eef4fb; }

/* handleidingen */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 12px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); border-width: 2px; transition: transform .12s, border-color .12s; }
.guide-card:hover, .guide-card:focus-visible { border-color: var(--brand); transform: translateY(-2px); }
.guide-card b { font-size: 1.1rem; color: var(--brand); }
.gicon { overflow: hidden; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--green); font-size: 1.9rem; line-height: 1; }
.gicon.big { width: 72px; height: 72px; font-size: 2.4rem; flex: none; }
.guide-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.guide-article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.guide-body { margin-top: 10px; max-width: 70ch; line-height: 1.6; }
.guide-body h3 { margin: 22px 0 8px; font-size: 1.15rem; color: var(--brand); border-bottom: 3px solid var(--orange); display: inline-block; padding-bottom: 2px; }
.guide-body ul { padding-left: 1.4rem; }
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 10px 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 5px 0 16px 54px; min-height: 40px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
ol.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--green); }
.kbtn { display: inline-block; padding: 0 10px; border: 2px solid var(--brand); border-radius: 8px; background: #fff; color: var(--brand); font-weight: 600; line-height: 1.5; box-shadow: 0 2px 0 rgba(0, 49, 68, .25); white-space: nowrap; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border-left: 6px solid; margin: 14px 0; }
.callout .ci { font-size: 1.3rem; line-height: 1.3; }
.callout.c-tip { background: #eaf5e6; border-color: #5a9a4c; }
.callout.c-warn { background: #fdf0d8; border-color: #d98c1c; }
.callout.c-info { background: #e6f0f5; border-color: var(--brand); }
.gk-rood { color: #c62828; font-weight: 700; }
.gk-groen { color: #1b6e2e; font-weight: 700; }
.guide-body figure { margin: 14px 0; }
.guide-body figure img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; cursor: zoom-in; display: block; }
.guide-body figcaption { color: var(--muted); font-size: .9rem; margin-top: 4px; }
ol.steps > li figure { margin-top: 10px; }
.guide-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* rondleiding (Samen doen) */
#tourlayer { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.tp-dim { position: fixed; background: rgba(0, 12, 22, .66); pointer-events: auto; }
.tp-ring { position: fixed; border: 3px solid var(--orange); border-radius: 10px; box-shadow: 0 0 0 4px rgba(249, 206, 136, .45); pointer-events: none; animation: tp-pulse 1.6s ease-in-out infinite; }
@keyframes tp-pulse { 50% { box-shadow: 0 0 0 9px rgba(249, 206, 136, .15); } }
@media (prefers-reduced-motion: reduce) { .tp-ring { animation: none; } }
#tourpop { position: fixed; width: min(360px, 92vw); background: #fff; color: var(--text); border-radius: 14px; border-top: 6px solid var(--orange); padding: 14px 16px; box-shadow: 0 10px 34px rgba(0, 0, 0, .45); pointer-events: auto; }
#tourvoltje { position: fixed; object-fit: contain; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.tp-count { font-size: .85rem; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.tp-text { font-size: 1.05rem; line-height: 1.5; }
.logstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.log-err td { background: #fdecea; }
.log-detail { white-space: pre-wrap; word-break: break-word; margin: 6px 0 0; font-size: .85rem; }
.tp-hint { margin: 8px 0 0; font-weight: 700; color: var(--brand); }
.tp-note { margin: 8px 0 0; color: #8a5a00; }
.tp-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
#tourbar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 800; max-width: 96vw; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  background: var(--brand); color: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .4); }
#tourbar .tb-title { font-weight: 600; }
#tourpick { position: fixed; bottom: 84px; left: 50%; cursor: grab; touch-action: none; transform: translateX(-50%); z-index: 950; background: #fff; color: var(--text); border: 3px solid var(--orange); border-radius: 12px;
  padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; box-shadow: 0 8px 28px rgba(0, 0, 0, .4); max-width: 96vw; }
.tp-hover { position: fixed; z-index: 940; border: 3px dashed var(--orange); background: rgba(249, 206, 136, .25); pointer-events: none; border-radius: 6px; }
body.tour-picking, body.tour-picking * { cursor: crosshair !important; }
.tp-block { margin: 8px 0 0; color: #a31515; font-weight: 700; }
#tourpop.nope { border-top-color: #a31515; animation: tp-shake .35s; }
@keyframes tp-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { #tourpop.nope { animation: none; } }
.tp-ring.tp-done { border-color: #6fc060; box-shadow: 0 0 0 4px rgba(111, 192, 96, .45); }
.tp-count { cursor: grab; user-select: none; touch-action: none; }

body.tour-picking #tourpick { cursor: grab !important; }
body.tour-picking #tourpick button { cursor: pointer !important; }

/* reeksen van handleidingen */
.guide-series { margin: 22px 0 8px; }
.guide-series h2 { margin: 0 0 4px; }
.guide-main { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text); border-width: 2px; border-left: 10px solid var(--brand); padding: 16px 18px; transition: transform .12s, border-color .12s; }
.guide-main:hover, .guide-main:focus-visible { border-color: var(--brand); transform: translateY(-2px); }
.guide-main .gm-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.guide-main b { font-size: 1.3rem; color: var(--brand); }
.guide-main .gm-go { font-weight: 700; color: var(--brand); white-space: nowrap; }
.guide-series .guide-grid { margin-top: 14px; padding-left: 14px; border-left: 4px solid var(--green); }
.guide-card { position: relative; }
.gnum { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (max-width: 560px) { .guide-main { flex-wrap: wrap; } .guide-series .guide-grid { padding-left: 8px; } }
