/* AI-wijs op school · stijl in de huisstijl van Het leercollectief
   (Poppins, donkergroen #126425, lichtgroen #CCEFD5, mint #C2E3CC, geel #FBF59B, perzik #FCC89B, lichtblauw #BFE3ED, ronde hoeken 28px) */
:root {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #f4f4f4;
  --ink: #1a1a1a;
  --muted: #4d4d4d;
  --line: #e2e2e2;
  --primary: #126425;
  --primary-ink: #0d4a1b;
  --primary-soft: #ccefd5;
  --mint: #c2e3cc;
  --accent: #fcc89b;
  --accent-ink: #e3b58d;
  --accent-soft: #fbf59b;
  --blue-soft: #bfe3ed;
  --success: #126425;
  --success-soft: #ccefd5;
  --warn: #9a4a05;
  --warn-soft: #fcc89b;
  --danger: #a3242b;
  --danger-soft: #f6dcdc;
  --omgaan: #126425; --omgaan-soft: #ccefd5;
  --creeren: #7a3a05; --creeren-soft: #fcc89b;
  --beheren: #124a5e; --beheren-soft: #bfe3ed;
  --ontwerpen: #5b4f00; --ontwerpen-soft: #fbf59b;
  --radius: 28px;
  --radius-s: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .06);
  --font: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-ink); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: .3em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.02rem; margin: .8em 0 .3em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .3em; }
img { max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
pre { font-family: var(--mono); font-size: .92rem; white-space: pre-wrap; word-wrap: break-word; }
blockquote { margin: 1em 0; padding: .6em 1em; border-left: 4px solid var(--primary-soft); background: var(--surface-2); border-radius: 0 10px 10px 0; }
blockquote p:last-child { margin-bottom: 0; }
blockquote .bq-copy { display: block; margin-top: .6em; }
table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
th, td { text-align: left; padding: .5em .7em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.wrap { 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); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5em .8em; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.small { font-size: .88rem; color: var(--muted); }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 800; color: var(--primary); margin: 0 0 .4em; }

/* knoppen */
.btn { display: inline-flex; align-items: center; gap: .4em; font: inherit; font-weight: 600; font-size: .95rem; padding: .7em 1.4em; border-radius: 999px; border: 2px solid var(--primary); background: var(--surface); color: var(--primary); cursor: pointer; text-decoration: none; transition: background .15s, color .15s, transform .05s; }
.btn:hover { background: var(--primary-soft); color: var(--primary-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-ink); color: #fff; }
.btn-small { font-size: .86rem; padding: .42em .9em; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-done .done-on { display: none; }
.btn-done.is-done { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.btn-done.is-done .done-off { display: none; }
.btn-done.is-done .done-on { display: inline; }

/* header / footer */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 16px rgba(0,0,0,.05); }
.site-head-in { display: flex; align-items: center; justify-content: space-between; gap: 1em; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .9em; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1rem; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-sep { width: 1px; height: 28px; background: var(--line); }
.brand-mark { display: none; }
.site-nav { display: flex; gap: .2em; flex-wrap: wrap; }
.site-nav a { padding: .4em .7em; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--muted); }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav .kort { display: none; }
.site-foot { margin-top: 4em; padding: 2.5em 0 3em; background: var(--surface); border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 1em; margin-bottom: 1em; flex-wrap: wrap; }
.foot-brand img { height: 44px; width: auto; }
.foot-motto { font-weight: 600; color: var(--ink); }
.foot-motto em { font-style: normal; position: relative; z-index: 0; }
.foot-motto em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .4em; background: var(--mint); z-index: -1; }
.site-foot p { max-width: 70ch; }

/* hero */
.hero { padding: 2.5em 0 1.5em; }
.hero-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2em; align-items: start; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: .1em 0 .4em; }
.hero h1 em { font-style: normal; position: relative; display: inline-block; z-index: 0; }
.hero h1 em::after { content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .08em; height: .38em; background: var(--mint); z-index: -1; border-radius: 3px; }
.hero-tag { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--primary-ink); background: var(--primary-soft); padding: .35em .9em; border-radius: 999px; font-size: .88rem; margin-top: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero-cta { display: flex; gap: .6em; flex-wrap: wrap; margin: 1.2em 0; }
.hero-psst { background: var(--accent-soft); border-radius: var(--radius-s); padding: .9em 1.2em; font-size: .95rem; max-width: 60ch; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4em 1.5em; box-shadow: var(--shadow); }
.hero-card h2 { margin-top: 0; font-size: 1.1rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .6em 1em; margin: 0 0 1.2em; }
.facts div { border-top: 1px solid var(--line); padding-top: .5em; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 800; font-size: 1.1rem; }
.hero-progress { border-top: 1px solid var(--line); padding-top: 1em; }
.hero-progress h3 { margin: 0 0 .3em; font-size: 1rem; }
.hero-progress-actions { display: flex; gap: .4em; flex-wrap: wrap; margin: .6em 0 0; }
.bar { display: block; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-in { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .4s; }

/* overzicht */
.section-h { font-size: 1.8rem; margin: 1.6em 0 .2em; }
.section-sub { color: var(--muted); margin-bottom: 1.4em; }
.stap { display: grid; grid-template-columns: 1fr 2.2fr; gap: 1.6em; padding: 1.6em 0; border-top: 1px solid var(--line); }
.stap-head h3 { margin: 0 0 .4em; font-size: 1.4rem; }
.stap-head p { color: var(--muted); }
.stap-meta { font-size: .88rem; font-weight: 700; }
.hcards { display: grid; gap: .8em; }
.hcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow); overflow: hidden; }
.hcard summary { list-style: none; display: grid; grid-template-columns: auto 1fr; gap: 1em; padding: 1em 1.1em; cursor: pointer; }
.hcard summary::-webkit-details-marker { display: none; }
.hcard summary::after { content: "▾"; color: var(--muted); grid-column: 3; align-self: start; transition: transform .2s; }
.hcard[open] summary::after { transform: rotate(180deg); }
.hcard-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; }
.hcard-main { display: grid; gap: .25em; }
.hcard-main strong { font-size: 1.1rem; }
.hcard-intro { color: var(--muted); font-size: .95rem; }
.hcard-meta { display: flex; gap: .8em; flex-wrap: wrap; font-size: .85rem; color: var(--muted); align-items: center; }
.hcard-progress { display: flex; align-items: center; gap: .6em; font-size: .82rem; color: var(--muted); margin-top: .2em; }
.hcard-progress .bar { flex: 1; height: 7px; }
.hcard-lessen { margin: 0; padding: .4em 1.1em 0 1.1em; list-style: none; border-top: 1px solid var(--line); }
.hcard-lessen li { margin: 0; }
.hcard-lessen a { display: flex; gap: .7em; align-items: center; padding: .45em .3em; text-decoration: none; color: var(--ink); border-radius: 8px; }
.hcard-lessen a:hover { background: var(--surface-2); }
.hcard-start { padding: .6em 1.1em 1em; margin: 0; }
.route-toggle { display: flex; align-items: center; gap: .5em; padding: .4em 1.1em; font-weight: 700; font-size: .92rem; cursor: pointer; }
.route-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }
.hcard.in-route summary { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); }
.side-num { font-family: var(--mono); font-size: .8rem; color: var(--muted); min-width: 2.4em; }
.side-check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.is-done > .side-check, a.is-done .side-check { background: var(--success); border-color: var(--success); position: relative; }
a.is-done .side-check::after { content: "✓"; color: #fff; font-size: .75rem; font-weight: 800; position: absolute; inset: 0; display: grid; place-items: center; }
.pill { display: inline-block; font-size: .74rem; font-weight: 800; padding: .15em .6em; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.pill-omgaan { background: var(--omgaan-soft); color: var(--omgaan); }
.pill-creeren { background: var(--creeren-soft); color: var(--creeren); }
.pill-beheren { background: var(--beheren-soft); color: var(--beheren); }
.pill-ontwerpen { background: var(--ontwerpen-soft); color: var(--ontwerpen); }
.domein-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8em; }
.domein-card { border-radius: var(--radius-s); padding: 1.1em 1.2em; text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; }
.domein-card h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.domein-card p { margin: 0; color: var(--ink); font-size: .95rem; }
.over p { max-width: 75ch; }
.start-cta { margin-top: 2.5em; }
.cta-box { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 2.4em 2em; text-align: center; }
.cta-box h2 { margin: 0 0 .3em; }
.cta-box p { opacity: .9; }
.cta-box .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cta-box .btn-primary:hover { background: var(--accent-ink); }

/* les */
.les-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 2em; padding-top: 1.5em; align-items: start; }
.side { position: sticky; top: 76px; }
.side-details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .9em 1em; }
.side-details summary { cursor: pointer; list-style: none; display: grid; }
.side-details summary::-webkit-details-marker { display: none; }
.side-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.side-list { list-style: none; padding: 0; margin: .8em 0 0; }
.side-list li { margin: 0; }
.side-list a { display: flex; gap: .6em; align-items: center; padding: .4em .5em; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .92rem; }
.side-list a:hover { background: var(--surface-2); }
.side-list .is-current > a { background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; }
.side-title { flex: 1; }
.side-foot { margin: .8em 0 0; font-size: .88rem; }
.les { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8em clamp(1em, 4vw, 2.8em) 2.2em; box-shadow: var(--shadow); min-width: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .4em; display: flex; gap: .5em; align-items: center; flex-wrap: wrap; }
.les-intro { font-size: 1.15rem; color: var(--muted); }
.les-meta { font-size: .88rem; color: var(--muted); display: flex; gap: 1em; }
.video { aspect-ratio: 16 / 9; margin: 1em 0; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.doelen { background: var(--primary-soft); border-radius: var(--radius-s); padding: .9em 1.1em; margin: 1.2em 0; }
.doelen-h { margin: 0 0 .3em; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-ink); }
.doelen ul { margin: 0; }
.les-body > h2 { margin-top: 1.8em; padding-top: .2em; }
.les-body > p, .les-body li { max-width: 72ch; }
.les-afronden { margin-top: 2.5em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.les-afronden h2 { margin-top: 0; }
.les-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; margin-top: 1.6em; }
.les-nav a { display: grid; text-decoration: none; padding: .9em 1.1em; border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--ink); }
.les-nav a span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.les-nav a:hover { background: var(--surface-2); }
.les-next { text-align: right; }

/* blokken */
.blk { border-radius: var(--radius-s); border: 1px solid var(--line); padding: 1em 1.2em; margin: 1.3em 0; background: var(--surface); }
.blk-head { display: flex; align-items: center; gap: .5em; margin-bottom: .5em; }
.blk-label { font-weight: 800; font-size: .92rem; }
.blk-head .btn { margin-left: auto; }
.blk-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); font-size: .85rem; }
.blk-body > :last-child { margin-bottom: 0; }
.blk-foot { margin: .6em 0 0; font-size: .82rem; color: var(--muted); }
.blk-prompt { background: #f3f9f5; border-color: #b6d6be; }
.blk-prompt .blk-ico { background: var(--primary); color: #fff; }
.prompt-text { margin: 0; background: var(--surface); border: 1px dashed #8fc39d; border-radius: 10px; padding: .8em 1em; font-family: var(--font); font-size: .98rem; line-height: 1.55; }
.blk-voorbeeld { background: #fbfbfd; }
.blk-voorbeeld .blk-body { border-left: 4px solid var(--line); padding-left: 1em; }
.blk-tip { background: var(--blue-soft); border-color: #9fd0e0; }
.blk-tip .blk-ico { background: var(--beheren); color: #fff; }
.blk-letop { background: #fde9d6; border-color: #f2c69b; }
.blk-letop .blk-ico { background: var(--warn); color: #fff; }
.blk-opdracht { background: var(--primary-soft); border-color: #a9d8b6; }
.blk-opdracht .blk-ico { background: var(--primary); color: #fff; }
.blk-kernpunten { background: var(--accent-soft); border-color: #e9e07a; }
.blk-kernpunten .blk-ico { background: var(--accent); color: var(--ink); }
.blk-nadenken { background: var(--surface-2); }
.blk-nadenken .blk-ico { background: var(--ink); color: #fff; font-weight: 800; }
.note-field { width: 100%; font: inherit; font-size: .98rem; padding: .6em .8em; border: 1px solid var(--line); border-radius: 10px; margin-top: .6em; resize: vertical; background: var(--surface); }
.stappen ol { counter-reset: stap; list-style: none; padding: 0; margin: 0; }
.stappen ol > li { counter-increment: stap; position: relative; padding-left: 2.6em; margin-bottom: .9em; }
.stappen ol > li::before { content: counter(stap); position: absolute; left: 0; top: .05em; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.stappen ol > li:not(:last-child)::after { content: ""; position: absolute; left: .9em; top: 2.1em; bottom: -.9em; width: 2px; background: var(--line); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist label { display: flex; gap: .6em; align-items: flex-start; cursor: pointer; padding: .3em 0; }
.checklist input { width: 20px; height: 20px; margin-top: .15em; accent-color: var(--success); flex: none; }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.vergelijk { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.vergelijk-col { border-radius: 10px; padding: .8em 1em; background: var(--surface-2); }
.vergelijk-col h4 { margin-top: 0; }
.vergelijk-col-0 { background: #fde9d6; }
.vergelijk-col-1 { background: var(--success-soft); }
.vergelijk-col > :last-child { margin-bottom: 0; }
.tab-list { display: flex; gap: .4em; flex-wrap: wrap; margin-bottom: .8em; }
.tab-btn { font: inherit; font-weight: 700; font-size: .9rem; padding: .4em .9em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.tab-btn.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-panel > :last-child { margin-bottom: 0; }
.blk-promptbouwer { background: #f3f9f5; border-color: #b6d6be; }
.pb-fields { display: grid; gap: .6em; margin: .6em 0 1em; }
.pb-field { display: grid; gap: .25em; font-weight: 700; font-size: .92rem; }
.pb-field input { font: inherit; font-weight: 400; padding: .55em .8em; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.pb-result .blk-head { margin-top: .4em; }

/* quiz */
.quiz { margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1.3em 1.4em; background: var(--surface-2); }
.quiz-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; margin-bottom: 1em; }
.quiz-stats div { background: var(--surface); border-radius: 10px; padding: .7em; text-align: center; display: grid; }
.quiz-stats strong { font-size: 1.5rem; }
.quiz-stats span { font-size: .8rem; color: var(--muted); }
.quiz-how { padding-left: 1.3em; }
.quiz-best { font-weight: 700; color: var(--success); min-height: 1.2em; }
.quiz-progress { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: .5em; font-weight: 700; }
.quiz-q { font-size: 1.1rem; font-weight: 700; margin-bottom: .8em; }
.quiz-topic { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); font-weight: 800; margin-bottom: .3em; }
.quiz-opts { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: .5em; }
.quiz-opt { display: flex; gap: .7em; align-items: flex-start; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-s); padding: .7em .9em; cursor: pointer; text-align: left; font: inherit; width: 100%; color: var(--ink); }
.quiz-opt:hover { border-color: var(--primary); }
.quiz-opt.is-selected { border-color: var(--primary); background: var(--primary-soft); }
.quiz-opt .opt-id { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-weight: 800; font-size: .85rem; flex: none; text-transform: uppercase; }
.quiz-opt.is-correct { border-color: var(--success); background: var(--success-soft); }
.quiz-opt.is-wrong { border-color: var(--accent-ink); background: #fde9d6; }
.quiz-opt[disabled] { cursor: default; }
.quiz-feedback { border-radius: 10px; padding: .8em 1em; margin-bottom: 1em; background: var(--surface); border-left: 5px solid var(--line); }
.quiz-feedback.is-correct { border-color: var(--success); }
.quiz-feedback.is-wrong { border-color: var(--accent-ink); }
.quiz-feedback strong { display: block; margin-bottom: .2em; }
.quiz-actions { display: flex; gap: .6em; flex-wrap: wrap; }
.quiz-result { text-align: center; padding: 1em 0; }
.quiz-score { font-size: 3rem; font-weight: 800; line-height: 1; margin: .2em 0; }
.quiz-result.is-passed .quiz-score { color: var(--success); }
.quiz-result.is-failed .quiz-score { color: var(--warn); }
.quiz-review { text-align: left; margin-top: 1.2em; }
.quiz-review li { font-size: .92rem; }
.done-hint { color: var(--muted); }

/* certificaat */
.cert-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: .4em; }
.cert-row { display: grid; grid-template-columns: auto 1fr auto; gap: .8em; align-items: center; background: var(--surface-2); border-radius: 10px; padding: .55em .9em; }
.cert-h { font-family: var(--mono); font-weight: 800; color: var(--muted); }
.cert-status { font-weight: 700; font-size: .9rem; }
.cert-row.is-complete .cert-status { color: var(--success); }
.cert-form { display: grid; gap: .3em; max-width: 480px; margin-bottom: 1em; }
.cert-form label { font-weight: 700; font-size: .92rem; margin-top: .5em; }
.cert-form input { font: inherit; padding: .6em .8em; border: 1px solid var(--line); border-radius: 10px; }
.cert-msg { font-weight: 700; }
.cert-paper { display: none; }
.cert-paper.is-visible { display: block; margin-top: 1.5em; }
.cert-paper-in { border: 6px double var(--primary); border-radius: var(--radius-s); padding: 2.5em 2em; text-align: center; background: #fff; max-width: 760px; margin: 0 auto; }
.cp-kicker { text-transform: uppercase; letter-spacing: .25em; color: var(--muted); font-weight: 800; margin: 0; }
.cp-title { margin: .2em 0 0; font-size: 2rem; color: var(--primary); }
.cp-sub { color: var(--muted); margin-top: .2em; }
.cp-lead { margin: 1.4em 0 .3em; color: var(--muted); }
.cp-naam { font-size: 2rem; font-weight: 700; margin: 0; }
.cp-school { margin: .2em 0 0; color: var(--muted); }
.cp-list { list-style: none; padding: 0; margin: 0 auto; max-width: 480px; text-align: left; }
.cp-list li { padding: .25em 0; border-bottom: 1px dotted var(--line); }
.cp-date { margin-top: 1.6em; }
.cp-org { font-weight: 800; margin: 0; }

/* dialoog */
.dlg { border: 0; border-radius: var(--radius-s); padding: 1.4em; max-width: 520px; width: calc(100% - 32px); box-shadow: var(--shadow); }
.dlg::backdrop { background: rgba(20, 26, 51, .5); }
.dlg h2 { margin-top: 0; }
.dlg textarea { width: 100%; font-family: var(--mono); font-size: .85rem; padding: .6em; border: 1px solid var(--line); border-radius: 10px; }
.dlg menu { display: flex; gap: .5em; padding: 0; margin: 1em 0 0; justify-content: flex-end; flex-wrap: wrap; }

/* pagina met tekst */
.page-text .wrap { max-width: 820px; padding-top: 1.5em; }
.tabel { font-size: .92rem; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--primary); color: #fff; padding: .6em 1.1em; border-radius: 999px; font-weight: 700; font-size: .92rem; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; }
.toast.is-visible { opacity: 1; }

/* responsief */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .stap { grid-template-columns: 1fr; gap: .6em; }
  .les-wrap { grid-template-columns: 1fr; }
  .side { position: static; }
  .side-details { padding: .6em .9em; }
  .side-details summary { grid-template-columns: 1fr auto; align-items: center; }
  .side-details summary::after { content: "Lessen ▾"; grid-column: 2; grid-row: 1 / span 2; font-size: .82rem; font-weight: 700; color: var(--primary); }
  .side-details[open] summary::after { content: "Sluiten ▴"; }
  .side-details[open] .side-list { max-height: 50vh; overflow: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav a { padding: .35em .5em; font-size: .85rem; }
  /* De kop brak op een gsm over twee regels en at zo 70px van elk scherm.
     Korte labels, en de link voor leerkrachten staat hier in de voettekst. */
  .site-nav { flex-wrap: nowrap; }
  .site-nav .lang, .site-nav .nav-leerkrachten { display: none; }
  .site-nav .kort { display: inline; }
  .site-head-in { min-height: 60px; }
  .brand-name, .brand-sep { display: none; }
  .brand-logo { height: 30px; }
  .vergelijk { grid-template-columns: 1fr; }
  .les-nav { grid-template-columns: 1fr; }
  .les-next { text-align: left; }
  .quiz-stats { grid-template-columns: 1fr 1fr 1fr; }
  .quiz-stats strong { font-size: 1.2rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .hcard summary { grid-template-columns: auto 1fr; }
  .hcard summary::after { grid-column: 2; justify-self: end; }
}

/* afdrukken van het certificaat */
@media print {
  body { background: #fff; }
  .site-head, .site-foot, .side, .crumbs, .les-meta, .doelen, .les-body, .les-afronden, .les-nav, .cert-list, .cert-form, .cert-msg, .js-cert-print, .les > h1, .les-intro, .cert > h2 { display: none !important; }
  .les-wrap { display: block; padding: 0; }
  .les { border: 0; box-shadow: none; padding: 0; }
  .cert-paper { display: block !important; margin: 0; }
  .cert-paper-in { border-color: #2744c9; }
  @page { margin: 14mm; }
}
