/* ==========================================================================
   Casino zonder registratie — hoofdstijlblad
   Design system + componenten. Eén bestand, geen build-stap.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Kleur — Nederlands institutioneel register (Rijkshuisstijl-verwant) */
  --ink:        #16202e;
  --ink-soft:   #4a5768;
  --ink-mute:   #6f7c8d;
  --navy:       #1b3a5c;
  --navy-deep:  #12283f;
  --azure:      #0e7ca8;
  --azure-soft: #e6f2f7;

  --paper:      #f7f6f3;
  --surface:    #ffffff;
  --surface-alt:#f1f0ec;
  --line:       #dfe3e8;
  --line-soft:  #ebedf0;

  /* Semantisch — de kern van deze site: licentiestatus */
  --ok:         #2c7a5a;
  --ok-bg:      #e8f4ee;
  --warn:       #a9660f;
  --warn-bg:    #fbf1e0;
  --danger:     #b32d2d;
  --danger-bg:  #fbeceb;

  /* Typografie */
  --display: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.7vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.2vw, 2.45rem);
  --step-4:  clamp(2.1rem, 1.7rem + 2vw, 3.2rem);

  /* Ruimte */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.5rem;   --sp-6: 2rem;
  --sp-7: 3rem;     --sp-8: 4rem;     --sp-9: 6rem;

  /* Vorm */
  --r-sm: 3px;  --r-md: 6px;  --r-lg: 10px;
  --shadow-1: 0 1px 2px rgba(22, 32, 46, 0.06), 0 1px 3px rgba(22, 32, 46, 0.04);
  --shadow-2: 0 2px 6px rgba(22, 32, 46, 0.07), 0 8px 24px rgba(22, 32, 46, 0.06);

  --measure: 68ch;
  --wrap: 1180px;
}

/* --------------------------------------------------------------------------
   2. Reset & basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--azure); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }

/* --------------------------------------------------------------------------
   3. Typografie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--navy-deep);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); margin-top: var(--sp-8); }
h3 { font-size: var(--step-2); margin-top: var(--sp-6); }
h4 { font-size: var(--step-1); margin-top: var(--sp-5); font-family: var(--body); font-weight: 700; }

p, ul, ol { margin: 0 0 var(--sp-4); }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--navy-deep); }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: var(--sp-6);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azure);
  margin: 0 0 var(--sp-3);
}

.mono { font-family: var(--mono); font-size: 0.88em; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff;
  padding: var(--sp-3) var(--sp-4); z-index: 999;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* Artikel-grid: inhoud + sticky zijkolom */
.layout {
  display: grid;
  gap: var(--sp-7);
  padding-block: var(--sp-6) var(--sp-9);
  grid-template-columns: 1fr;
}
@media (min-width: 62rem) {
  .layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-8); }
}

.prose { max-width: var(--measure); }
.prose > *:first-child { margin-top: 0; }

.aside { align-self: start; }
@media (min-width: 62rem) {
  .aside { position: sticky; top: 5.5rem; }
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 4rem;
}

.brand {
  font-family: var(--display);
  font-size: 1.16rem; font-weight: 700;
  color: var(--navy-deep); text-decoration: none;
  letter-spacing: -0.02em; white-space: nowrap;
}
.brand span { color: var(--azure); }

.nav { margin-left: auto; }
.nav ul {
  display: flex; gap: var(--sp-5);
  list-style: none; margin: 0; padding: 0;
}
.nav li { margin: 0; }
.nav a {
  font-size: 0.94rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  padding-block: var(--sp-2);
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--navy-deep); border-bottom-color: var(--azure);
}

.age-badge {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--danger); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3);
  font: inherit; font-size: 0.9rem; color: var(--ink);
  cursor: pointer;
}

@media (max-width: 61.99rem) {
  .nav-toggle { display: block; }
  .nav {
    display: none; order: 3;
    width: 100%; margin: 0;
    border-top: 1px solid var(--line);
    padding-block: var(--sp-3);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: var(--sp-3) 0; border-bottom: 0; }
  .header-bar { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   6. Artikel-meta (E-E-A-T)
   -------------------------------------------------------------------------- */
.breadcrumb {
  font-size: var(--step--1); color: var(--ink-mute);
  padding-block: var(--sp-4) 0;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: var(--sp-2); color: var(--line); }

.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4);
  padding: var(--sp-4) 0;
  margin-bottom: var(--sp-6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--ink-mute);
}
.byline img {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  object-fit: cover; background: var(--surface-alt);
}
.byline .author { color: var(--navy-deep); font-weight: 600; }
.byline time { font-family: var(--mono); font-size: 0.82rem; }

/* --------------------------------------------------------------------------
   7. Statusbadges — het signatuurelement
   Elke bewering over een aanbieder krijgt één van drie statussen.
   -------------------------------------------------------------------------- */
.status {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.22em 0.62em;
  border-radius: 100px;
  font-family: var(--body);
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status::before {
  content: ""; width: 0.5em; height: 0.5em; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.status--ok     { color: var(--ok);     background: var(--ok-bg);     border-color: #bfe0cf; }
.status--warn   { color: var(--warn);   background: var(--warn-bg);   border-color: #ebd6ac; }
.status--danger { color: var(--danger); background: var(--danger-bg); border-color: #eec4c1; }

/* --------------------------------------------------------------------------
   8. Callouts
   -------------------------------------------------------------------------- */
.callout {
  margin: var(--sp-6) 0;
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border-left: 3px solid var(--azure);
  background: var(--azure-soft);
}
.callout > *:last-child { margin-bottom: 0; }
.callout-title {
  font-family: var(--body); font-weight: 700; font-size: var(--step-0);
  color: var(--navy-deep); margin: 0 0 var(--sp-2);
}
.callout--warn   { border-left-color: var(--warn);   background: var(--warn-bg); }
.callout--danger { border-left-color: var(--danger); background: var(--danger-bg); }
.callout--help {
  border-left-color: var(--ok); background: var(--ok-bg);
}

/* --------------------------------------------------------------------------
   9. Inhoudsopgave
   -------------------------------------------------------------------------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.toc h2 {
  font-family: var(--body); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 var(--sp-3);
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin-bottom: var(--sp-1); counter-increment: toc; }
.toc a {
  display: block; padding: var(--sp-2) 0 var(--sp-2) 1.9rem;
  position: relative;
  font-size: 0.9rem; line-height: 1.4;
  color: var(--ink-soft); text-decoration: none;
  border-left: 2px solid transparent; margin-left: -2px;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: var(--sp-3);
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--line); top: 0.72em;
}
.toc a:hover { color: var(--navy-deep); }
.toc a.is-active {
  color: var(--navy-deep); font-weight: 600;
  border-left-color: var(--azure);
}
.toc a.is-active::before { color: var(--azure); }

/* --------------------------------------------------------------------------
   10. Operatorkaart
   -------------------------------------------------------------------------- */
.operators { display: grid; gap: var(--sp-4); margin: var(--sp-6) 0; }

.operator {
  display: grid; gap: var(--sp-4);
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-1);
}
@media (min-width: 40rem) {
  .operator { grid-template-columns: 8.5rem minmax(0, 1fr) auto; align-items: center; }
}

.operator-logo {
  display: grid; place-items: center;
  height: 3.5rem; padding: var(--sp-2);
  background: var(--surface-alt);
  border-radius: var(--r-md);
}
.operator-logo img { max-height: 100%; width: auto; object-fit: contain; }

.operator-name {
  font-family: var(--display); font-size: var(--step-1);
  font-weight: 600; color: var(--navy-deep);
  margin: 0 0 var(--sp-2);
}
.operator-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3);
  align-items: center; margin-bottom: var(--sp-3);
}
.operator-licence {
  font-family: var(--mono); font-size: 0.76rem;
  color: var(--ink-mute);
}
.operator-facts {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  font-size: 0.88rem; color: var(--ink-soft);
}
.operator-facts li { margin: 0; }
.operator-facts b { font-weight: 600; color: var(--navy-deep); }

/* --------------------------------------------------------------------------
   11. Knoppen
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.7em 1.3em;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-family: var(--body); font-size: 0.94rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-alt); color: var(--navy-deep); }
.btn--wide { width: 100%; }

/* --------------------------------------------------------------------------
   12. Tabellen
   -------------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  margin: var(--sp-6) 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
caption {
  caption-side: top; text-align: left;
  padding: var(--sp-4) var(--sp-4) var(--sp-2);
  font-size: var(--step--1); color: var(--ink-mute);
}
th, td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
}
thead th {
  background: var(--surface-alt);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--paper); }
td.num { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }

/* Sorteerknop in de kop, toegevoegd door main.js */
.th-sort {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.35em;
}
.th-sort::after {
  content: "↕"; font-size: 0.85em; color: var(--line);
}
[aria-sort="ascending"]  .th-sort::after { content: "↑"; color: var(--azure); }
[aria-sort="descending"] .th-sort::after { content: "↓"; color: var(--azure); }

/* --------------------------------------------------------------------------
   13. Stappen (HowTo — pagina 4 en 5)
   -------------------------------------------------------------------------- */
.steps { list-style: none; margin: var(--sp-6) 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 var(--sp-6) var(--sp-7);
  margin: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600;
}
.steps > li::after {
  content: ""; position: absolute;
  left: 1rem; top: 2.4rem; bottom: 0.4rem;
  width: 1px; background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.step-title {
  font-family: var(--body); font-size: var(--step-0); font-weight: 700;
  color: var(--navy-deep); margin: 0.25rem 0 var(--sp-2);
}

/* --------------------------------------------------------------------------
   14. FAQ-accordeon
   -------------------------------------------------------------------------- */
.faq { margin: var(--sp-6) 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) 0;
  font-family: var(--body); font-weight: 600; font-size: var(--step-0);
  color: var(--navy-deep);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0;
  font-family: var(--mono); font-size: 1.3rem; font-weight: 400;
  line-height: 1; color: var(--azure);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { padding-bottom: var(--sp-4); }
.faq details p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   15. Zijkolom-widgets
   -------------------------------------------------------------------------- */
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.widget h2 {
  font-family: var(--body); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 var(--sp-3);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: var(--sp-3); font-size: 0.9rem; line-height: 1.45; }
.widget li:last-child { margin-bottom: 0; }

.widget--help { background: var(--ok-bg); border-color: #bfe0cf; }
.widget--help h2 { color: var(--ok); }
.widget--help .tel {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 600;
  color: var(--navy-deep); text-decoration: none; display: block;
  margin-bottom: var(--sp-2);
}

/* --------------------------------------------------------------------------
   16. Leeftijdscheck
   -------------------------------------------------------------------------- */
body.is-locked { overflow: hidden; }

.agegate[hidden] { display: none; }
.agegate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: var(--sp-4);
  background: rgba(18, 40, 63, 0.55);
  backdrop-filter: blur(3px);
}
.agegate-box {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: var(--sp-6);
  max-width: 30rem; width: 100%;
}
.agegate-box h2 { margin-top: 0; font-size: var(--step-2); }
.agegate-box p { font-size: 0.94rem; color: var(--ink-soft); }
.agegate-actions { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #c3cede;
  padding-block: var(--sp-8) var(--sp-6);
  font-size: 0.9rem;
}
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,0.35); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }

.footer-grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-grid h2 {
  font-family: var(--body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #7f93ad; margin: 0 0 var(--sp-3);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: var(--sp-2); }

.footer-legal {
  padding-top: var(--sp-6);
  display: grid; gap: var(--sp-4);
  font-size: 0.84rem; line-height: 1.6;
  color: #98a8bd;
}
.footer-legal strong { color: #fff; }

.footer-marks {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5);
  padding-block: var(--sp-4);
}
.footer-marks img { height: 2.2rem; width: auto; opacity: 0.9; }

.responsible {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4);
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  color: #fff; font-weight: 600;
}
.responsible .age-badge { background: var(--danger); }

/* --------------------------------------------------------------------------
   18. Hulpmiddelen
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.stack-6 > * + * { margin-top: var(--sp-6); }
.text-mute { color: var(--ink-mute); }
.updated { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-mute); }

/* Print */
@media print {
  .site-header, .aside, .site-footer, .agegate, .btn { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .layout { display: block; padding: 0; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
