/* ============================================================
   handleiding.css — extra styling voor /handleiding-*.html
   Werkt bovenop /style.css. Doel: leesbaarheid, sticky inhoudsopgave
   op desktop, comfortabele leeswijdte, print-vriendelijk.
   ============================================================ */

.handleiding-header {
  padding-bottom: 2rem;
}

.handleiding-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 5rem;
}

@media (max-width: 900px) {
  .handleiding-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------------- Zij-inhoudsopgave ---------------- */
.handleiding-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  font-size: 0.875rem;
}

.handleiding-toc h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,241,231,.5);
  margin-bottom: 0.75rem;
}

.handleiding-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid rgba(246,241,231,.1);
}

.handleiding-toc li {
  margin: 0;
}

.handleiding-toc a {
  display: block;
  padding: 0.375rem 0 0.375rem 1rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: rgba(246,241,231,.65);
  text-decoration: none;
  transition: color .2s, border-color .2s;
  line-height: 1.4;
}

.handleiding-toc a:hover {
  color: #f6f1e7;
  border-left-color: rgba(216,175,90,.4);
}

@media (max-width: 900px) {
  .handleiding-toc {
    position: static;
    padding: 1rem;
    background: rgba(255,255,255,.03);
    border-radius: 8px;
  }
  .handleiding-toc ol {
    columns: 2;
    column-gap: 1rem;
    border-left: none;
  }
  .handleiding-toc a { padding-left: 0; border-left: none; }
}

/* Smartphone: 2 kolommen worden te smal voor de TOC-titels; terug naar 1
   en verklein type + spacing zodat de handleiding op ~375px werkt. */
@media (max-width: 560px) {
  .handleiding-wrap {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
    gap: 1rem;
  }
  .handleiding-toc ol { columns: 1; }
  .handleiding-toc { padding: 0.75rem; font-size: 0.8125rem; }
  .hl-sectie { margin-bottom: 2.5rem; }
  .hl-sectie h2 { font-size: 1.5rem; margin-bottom: 0.875rem; }
  .hl-sectie h3 { font-size: 1.0625rem; margin-top: 1.5rem; }
  .hl-sectie p, .hl-sectie li { font-size: 0.9375rem; }
  .hl-stappen li { padding-left: 2.25rem; }
  .hl-stappen li::before { width: 1.625rem; height: 1.625rem; font-size: 0.8125rem; }
  .hl-blok { padding: 0.875rem 1rem; }
  .hl-tip { padding: 0.625rem 0.875rem; font-size: 0.875rem; }
  /* Tabellen laten scrollen zodat kolommen niet uit beeld zakken. */
  .hl-tabel { display: block; overflow-x: auto; white-space: nowrap; }
  .hl-tabel th, .hl-tabel td { padding: 0.5rem 0.625rem; }
  /* Lange placeholders en URL's mogen breken. */
  .hl-sectie p, .hl-sectie li, .hl-sectie dd { overflow-wrap: break-word; }
}

/* ---------------- Hoofdinhoud ---------------- */
.handleiding-inhoud {
  max-width: 68ch;
}

.hl-sectie {
  margin-bottom: 4rem;
  scroll-margin-top: 100px;
}

.hl-sectie h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0.375rem 0 1.25rem;
  line-height: 1.15;
}

.hl-sectie h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: #f6f1e7;
}

.hl-sectie h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: #d8af5a;
}

.hl-sectie p {
  margin-bottom: 1rem;
  color: rgba(246,241,231,.82);
}

.hl-sectie ul, .hl-sectie ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0 1.25rem;
  color: rgba(246,241,231,.82);
}

.hl-sectie li {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.hl-sectie strong {
  color: #f6f1e7;
  font-weight: 600;
}

.hl-sectie em {
  color: #d8af5a;
  font-style: italic;
}

.hl-sectie a {
  color: #d8af5a;
  text-decoration: underline;
  text-decoration-color: rgba(216,175,90,.4);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}

.hl-sectie a:hover { text-decoration-color: #d8af5a; }

/* ---------------- Genummerde stappen ---------------- */
.hl-stappen {
  counter-reset: stap;
  list-style: none;
  padding-left: 0 !important;
}

.hl-stappen li {
  position: relative;
  padding-left: 3rem;
  min-height: 2rem;
  margin-bottom: 1rem;
}

.hl-stappen li::before {
  counter-increment: stap;
  content: counter(stap);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(216,175,90,.15);
  color: #d8af5a;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- Tip- en blok-elementen ---------------- */
.hl-tip {
  padding: 0.875rem 1.125rem;
  background: rgba(216,175,90,.08);
  border-left: 3px solid #d8af5a;
  border-radius: 4px;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
  color: rgba(246,241,231,.92);
}

.hl-blok {
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  margin: 1.5rem 0;
}

.hl-blok h4 {
  margin-top: 0 !important;
}

.hl-blok p:last-child { margin-bottom: 0; }

.hl-blok.warning {
  background: rgba(232,156,138,.06);
  border-color: rgba(232,156,138,.25);
}

.hl-blok.warning h4 { color: #e89c8a; }

/* ---------------- Tabel ---------------- */
.hl-tabel {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9375rem;
}

.hl-tabel th, .hl-tabel td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(246,241,231,.08);
}

.hl-tabel th {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: #d8af5a;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hl-tabel tbody tr:hover {
  background: rgba(255,255,255,.02);
}

/* ---------------- Toetsen ---------------- */
kbd {
  display: inline-block;
  padding: 0.15em 0.5em;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85em;
  font-weight: 500;
  color: #0b0a10;
  background: #d8af5a;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,.3);
  vertical-align: 0.05em;
  line-height: 1.4;
}

/* ---------------- FAQ ---------------- */
.hl-faq {
  margin-top: 1rem;
}

.hl-faq dt {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #f6f1e7;
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
}

.hl-faq dt:first-child { margin-top: 0; }

.hl-faq dd {
  margin-left: 0;
  color: rgba(246,241,231,.78);
  line-height: 1.6;
}

/* ---------------- Screenshot-placeholder ---------------- */
.hl-inhoud [class=""], .hl-sectie *:not(a, kbd, li, strong, em)::before {}
/* Duidelijk zichtbare screenshot-placeholder — tekst tussen [ ] die
   nog ingevuld moet worden. Nu weergegeven als een subtiel gebeitst blok. */
.hl-sectie > p:not(.hl-tip):has(> [class="_should_not_match_"]) {}

/* Simpeler: markeer alle regels die met [SCREENSHOT beginnen automatisch,
   via een span-conventie. Als plaatshouders inline text zijn, laat CSS ze
   staan zoals ze zijn — leesbaar genoeg. Voor extra opvallendheid kunnen
   ze omgezet worden naar <div class="hl-screenshot">…</div> in een latere
   pass. */

/* ---------------- Versie-regel onderaan ---------------- */
.hl-versie {
  margin-top: 3rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246,241,231,.08);
  font-size: 0.8125rem;
  color: rgba(246,241,231,.45);
  font-style: italic;
}

/* ---------------- Print-styling ---------------- */
@media print {
  body {
    background: #fff !important;
    color: #1a1a1a !important;
  }
  .grain, .dev-banner, .nav, .handleiding-toc, .burger, footer .foot-simple, footer .foot-bottom {
    display: none !important;
  }
  .handleiding-wrap {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .handleiding-inhoud { max-width: 100%; }
  .hl-sectie h2, .hl-sectie h3, .hl-sectie h4 { color: #1a1a1a !important; }
  .hl-sectie p, .hl-sectie li, .hl-sectie dd { color: #333 !important; }
  .hl-sectie strong { color: #000 !important; }
  .hl-sectie em { color: #7a5b1e !important; }
  .hl-sectie a { color: #7a5b1e !important; }
  .hl-tip, .hl-blok { border-color: #d0d0d0; background: #fafafa; }
  kbd {
    background: #f0f0f0; color: #333;
    border: 1px solid #ccc; box-shadow: none;
  }
  .hl-stappen li::before {
    background: #f0f0f0; color: #7a5b1e;
  }
  .hl-sectie { page-break-inside: avoid; }
  .hl-sectie h2 { page-break-after: avoid; }
}
