/* Opmaak van de losse pagina's (contact, over ons, FAQ, materialen, levering, privacy, voorwaarden, zoeken, foutpagina's).
   Hoort bij templates/pages/*.html. Strenge CSP: geen inline stijlen, alle opmaak staat hier. Alle tekst is wit (var(--t1..4)). */

body.site-page { min-height: 100vh; display: flex; flex-direction: column; }
body.site-page > main { flex: 1 0 auto; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.site-page a { color: var(--t1); text-underline-offset: 3px; }
.site-page a:focus-visible, .site-page button:focus-visible, .site-page summary:focus-visible,
.site-page input:focus-visible, .site-page select:focus-visible, .site-page textarea:focus-visible { outline: 2px solid #6f8cff; outline-offset: 2px; }
.site-page h1, .site-page h2, .site-page h3 { color: var(--t1); letter-spacing: -.01em; }
.site-page .btn-primary, .site-page .btn-ghost { text-decoration: none; font-size: 14px; padding: 9px 16px; }
.muted { color: var(--t3); }

/* ── Kop van elke pagina ── */
.page-hero { padding: 2.6rem 0 2rem; border-bottom: 1px solid var(--bd); background: radial-gradient(800px 320px at 85% -20%, rgba(42,79,196,.35), transparent 70%), var(--bg1); }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 600; line-height: 1.15; margin-bottom: .8rem; max-width: 22ch; }
.page-hero .lead { font-size: 1.05rem; line-height: 1.6; max-width: 62ch; color: var(--t2); }
.doc-meta { margin-top: .9rem; font-size: 12px; color: var(--t3); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: 12px; margin-bottom: 1rem; color: var(--t3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }

/* ── Inhoud ── */
.prose-wrap { max-width: 1100px; padding-top: 2rem; padding-bottom: 3rem; }
.prose-wrap > .block + .block, .block + .block { margin-top: 2.4rem; }
.block h2 { font-size: 1.35rem; font-weight: 600; margin-bottom: .8rem; }
.block h3 { font-size: 1.05rem; font-weight: 600; margin: 1.2rem 0 .4rem; }
.block p, .prose-wrap p { line-height: 1.7; margin-bottom: .8rem; max-width: 74ch; font-size: 15px; }
.block ul:not([class]), .block ol:not([class]) { padding-left: 1.3rem; line-height: 1.7; margin-bottom: .8rem; max-width: 74ch; font-size: 15px; }
.small-print { font-size: 12px; color: var(--t3); margin-top: .8rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }

.card, .tile { background: var(--bg3); border: 1px solid var(--bd2); border-radius: 12px; padding: 1.25rem; }
.card h2, .card h3 { font-size: 1.1rem; margin-bottom: .7rem; }
.tile { display: flex; flex-direction: column; gap: .4rem; }
.tile i { font-size: 22px; color: var(--t1); }
.tile h3 { font-size: 1rem; margin: 0; }
.tile p { font-size: 14px; margin: 0; max-width: none; color: var(--t2); }
a.tile { text-decoration: none; transition: border-color .2s, background .2s; }
a.tile:hover { border-color: #3a5bd0; background: rgba(26,57,168,.14); }

.grid-3, .grid-4, .grid-mat { display: grid; gap: 14px; margin: 1rem 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-mat { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.contact-layout { padding-top: 2rem; padding-bottom: 3rem; }

/* ── Lijsten en tabellen ── */
.link-list, .contact-list, .check-list, .steps-list, .jump-list, .result-list, .swatches, .status-flow { list-style: none; padding: 0; margin: 0; }
.link-list li + li { margin-top: .55rem; }
.link-list a, .contact-list a { text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline; line-height: 1.45; }
.link-list a:hover, .contact-list a:hover { text-decoration: underline; }
.link-list i { color: var(--t1); }
.contact-list li { display: flex; gap: 12px; margin-bottom: .9rem; line-height: 1.5; font-size: 14px; }
.contact-list li > i { font-size: 20px; color: var(--t1); margin-top: 2px; }
.contact-list strong { display: block; font-size: 12px; font-weight: 500; color: var(--t3); }
.check-list li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; line-height: 1.6; font-size: 15px; max-width: 74ch; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--t1); font-weight: 700; }
.steps-list { counter-reset: stap; display: grid; gap: 12px; }
.steps-list li { counter-increment: stap; position: relative; padding: .9rem 1rem .9rem 3.4rem; background: var(--bg3); border: 1px solid var(--bd2); border-radius: 10px; line-height: 1.55; font-size: 14px; }
.steps-list li::before { content: counter(stap); position: absolute; left: 1rem; top: .8rem; width: 28px; height: 28px; border-radius: 50%; background: var(--p); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.steps-list strong { display: block; font-size: 15px; margin-bottom: 2px; }
.jump-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.1rem; }
.jump-list a { display: inline-block; padding: 6px 12px; border: 1px solid var(--bd2); border-radius: 20px; font-size: 13px; text-decoration: none; background: var(--bg3); }
.jump-list a:hover { border-color: #3a5bd0; background: rgba(26,57,168,.18); }
.prose-wrap > .jump-list { margin: 0 0 1.5rem; }
.status-flow { display: flex; flex-wrap: wrap; gap: 8px; margin: .8rem 0 1rem; }
.status-flow li { padding: 5px 12px; border: 1px solid var(--bd2); border-radius: 20px; font-size: 13px; background: var(--bg3); }
.status-flow li:not(:last-child)::after { content: "\2192"; margin-left: 10px; color: var(--t3); }
.def-list { display: grid; gap: 10px; margin: .8rem 0 1rem; }
.def-list > div, .spec-list > div { background: var(--bg3); border: 1px solid var(--bd); border-radius: 10px; padding: .75rem 1rem; }
.def-list dt, .spec-list dt { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.def-list dd, .spec-list dd { font-size: 14px; line-height: 1.6; color: var(--t2); margin: 0; }
.spec-list { display: grid; gap: 6px; margin: .6rem 0; }
.spec-list > div { display: flex; justify-content: space-between; gap: 12px; padding: .45rem .75rem; }
.spec-list dt { margin: 0; color: var(--t3); font-weight: 500; }
.spec-list dd { text-align: right; }
.mat-card h3 { font-size: 1.15rem; margin: 0; }
.mat-tag { color: var(--t3); font-size: 13px !important; margin: 2px 0 .4rem !important; }
.mat-use { font-size: 14px !important; margin: .6rem 0 0 !important; }

.table-wrap { overflow-x: auto; border: 1px solid var(--bd2); border-radius: 10px; margin: .8rem 0 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.data-table th, .data-table td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid var(--bd); vertical-align: top; line-height: 1.5; }
.data-table thead th { background: var(--bg3); font-weight: 600; font-size: 13px; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody th { font-weight: 500; width: 36%; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: .6rem 0 1rem; font-size: 14px; }
.swatches li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: inline-block; }
/* De kleur van elk bolletje (.sw-x<hex>) staat in /kleuren.css, gemaakt uit je filamentvoorraad. */
.mat-colors { font-size: 14px; }
.mat-out { color: #fff; font-style: italic; }

dl.facts { display: grid; gap: 6px; margin: .5rem 0 1rem; font-size: 14px; }
dl.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; }
dl.facts dt { color: var(--t3); }
dl.facts dd { margin: 0; }

/* ── Formulier ── */
.form { display: grid; gap: 1rem; margin-top: .6rem; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.opt { color: var(--t3); font-weight: 400; }
.form input, .form select, .form textarea, .search-form input, .faq-tools input {
  width: 100%; background: var(--bg1); color: var(--t1); border: 1px solid var(--bd2); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px;
}
.form textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus, .search-form input:focus, .faq-tools input:focus { border-color: #6f8cff; }
.form [aria-invalid="true"] { border-color: var(--red); }
.field-hint { font-size: 12px; color: var(--t3); margin-top: 4px; }
.field-hint.is-over { font-weight: 600; }
.form-note { font-size: 12px !important; color: var(--t3); margin: 0 !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .65; cursor: progress; }
.btn-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: pr-spin .7s linear infinite; }
@keyframes pr-spin { to { transform: rotate(360deg); } }
.site-page .ok-box, .site-page .error-box { margin: .6rem 0 1rem; line-height: 1.55; font-size: 14px; }
.search-form { display: flex; gap: 10px; max-width: 560px; margin-top: 1rem; }
.search-form input { flex: 1; min-width: 0; }
.search-form .btn-primary { white-space: nowrap; }
.result-list li { padding: .9rem 0; border-bottom: 1px solid var(--bd); }
.result-list li:last-child { border-bottom: 0; }
.result-list p { margin: .3rem 0 0; font-size: 14px; color: var(--t2); }
.result-meta { margin-left: 10px; font-size: 12px; color: var(--t3); }

/* ── FAQ ── */
.faq-tools { margin-top: 1.2rem; max-width: 560px; }
.faq-status { font-size: 13px; color: var(--t3); margin-top: 6px; min-height: 1.2em; }
.faq-item { background: var(--bg3); border: 1px solid var(--bd2); border-radius: 10px; margin-bottom: 8px; }
.faq-item summary { cursor: pointer; padding: .85rem 2.6rem .85rem 1rem; font-weight: 500; font-size: 15px; line-height: 1.45; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1rem; top: .65rem; font-size: 20px; line-height: 1; color: var(--t1); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item:target { border-color: #6f8cff; }
.faq-answer { padding: 0 1rem .6rem; }
.faq-answer p { margin-bottom: .6rem; color: var(--t2); }
.faq-empty { padding: 1rem; background: var(--bg3); border: 1px dashed var(--bd2); border-radius: 10px; }
.faq-item.is-hidden, .faq-group.is-hidden { display: none; }

/* ── Juridische teksten ── */
.legal { max-width: 860px; }
.legal .clauses { padding-left: 1.4rem; line-height: 1.7; font-size: 15px; max-width: 74ch; }
.legal .clauses li { margin-bottom: .5rem; padding-left: .2rem; }
.draft-note { padding: .8rem 1rem; border: 1px solid var(--yellow); border-radius: 10px; background: rgba(232,176,48,.08); margin-bottom: 1.6rem; font-size: 14px; line-height: 1.5; }
.legal table { margin: .6rem 0 1rem; }
.form-model { margin: .8rem 0 0; padding: .8rem 1rem; border: 1px solid var(--bd2); border-radius: 10px; background: var(--bg3); }
.form-model summary { cursor: pointer; font-weight: 500; }
.form-model p { margin: .6rem 0 0; font-size: 14px; }
.toc { padding: 1rem 1.2rem; border: 1px solid var(--bd2); border-radius: 10px; background: var(--bg3); margin-bottom: 1.6rem; }
.toc ol { padding-left: 1.2rem; line-height: 1.8; font-size: 14px; }

/* ── Foutpagina ── */
.error-hero { text-align: left; }
.error-code { font-size: clamp(3rem, 12vw, 6rem); font-weight: 700; line-height: 1; color: var(--t1); opacity: .14; margin-bottom: .4rem; }

/* ── Oproep onderaan een pagina ── */
.cta-band { border-top: 1px solid var(--bd); background: linear-gradient(135deg, rgba(26,57,168,.35), rgba(5,9,31,0) 70%), var(--bg2); padding: 2.2rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-inner h2 { font-size: 1.35rem; margin-bottom: .3rem; }
.cta-inner p { max-width: 52ch; line-height: 1.55; color: var(--t2); margin: 0; }
.cta-actions { margin-top: 0; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 1rem; }
  .page-hero { padding: 1.8rem 0 1.4rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-mat { grid-template-columns: 1fr; }
  dl.facts > div { grid-template-columns: 1fr; gap: 0; }
  .search-form { flex-direction: column; }
  .data-table tbody th { width: auto; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost, .cta-actions .btn-primary, .cta-actions .btn-ghost { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation-duration: 2s; }
  * { scroll-behavior: auto !important; }
}
@media print {
  #navbar, .site-footer, .cta-band, .skip-link, #toast { display: none !important; }
  body, .page-hero { background: #fff !important; }
  body, .site-page h1, .site-page h2, .site-page h3, .site-page p, .site-page li, .site-page a { color: #000 !important; }
  .card, .faq-item, .def-list > div { border-color: #999 !important; background: #fff !important; }
}
