/* Heading font (loaded from Google Fonts) */
@import url("https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&display=swap");

/* ===================================================================
   ROOT VARIABLES
   Edit the MAIN BRAND COLORS below to re-theme the whole page.
=================================================================== */
:root {
  /* ----- MAIN BRAND COLORS (change these) ----- */
  --color-primary: #b91c1c; /* links, primary buttons, accents */
  --color-primary-dark: #991b1b; /* hover / active state           */
  --color-accent: #e8912e; /* secondary highlight (gold)      */

  /* ----- Neutral / light theme surface colors (warm-neutral, tuned to red) ----- */
  --color-bg: #ffffff;
  --color-surface: #fbf3f2;
  --color-text: #241a1a;
  --color-muted: #6d5a5a;
  --color-border: #f1dede;

  /* ----- Typography ----- */
  --font-display: "Libre Caslon Display", "Times New Roman", Georgia, serif;
  --font-body:
    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  /* ----- Type scale ----- */
  --step-eyebrow: 0.8rem;
  --step-body: 1.0625rem;
  --step-h4: 1.5rem; /* 1.5x */
  --step-h3: 1.875rem; /* 1.25rem x 1.5 */
  --step-h2: 2.4rem; /* 1.6rem x 1.5 */
  --step-h1: clamp(2.6rem, 6vw, 3.25rem); /* raised so h1 stays above the bigger h2 */

  /* ----- Layout / spacing ----- */
  --maxw: 1120px;
  --header-h: 64px;
  --radius: 10px;
  --gap: clamp(1rem, 3vw, 2rem);
}

/* ===================== Base ===================== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  /* Libre Caslon Display ships a single weight; 400 avoids synthetic faux-bold */
  font-weight: 400;
}
h1 {
  font-size: var(--step-h1);
  margin: 0 0 0.5rem;
  letter-spacing: 0;
}
h2 {
  font-size: var(--step-h2);
  margin: 2.5rem 0 0.75rem;
}
h3 {
  font-size: var(--step-h3);
  margin: 1.75rem 0 0.5rem;
}
h4 {
  font-size: var(--step-h4);
  margin: 1.5rem 0 0.5rem;
}
p {
  margin: 0 0 1rem;
}
a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--color-primary-dark);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 8px;
  color: #fff;
}

/* ===================== Header / Nav ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
}
.logo span {
  color: var(--color-primary);
}
.main-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}
.main-nav a:hover {
  color: var(--color-primary);
}

/* Hamburger / X toggle (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }
  /* Nav becomes a dropdown panel anchored under the sticky header */
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }
  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }
  .main-nav a {
    display: block;
    padding: 0.85rem var(--gap);
    font-size: 1.05rem;
  }
  .main-nav a:hover {
    background: var(--color-surface);
  }
}

/* Current page in the nav */
.main-nav a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

/* ===================== Breadcrumb ===================== */
.breadcrumb {
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--color-border);
}
.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--color-primary);
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(
      130% 115% at 100% 0%,
      color-mix(in srgb, var(--color-primary) 13%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(
      95% 95% at 0% 100%,
      color-mix(in srgb, var(--color-accent) 11%, transparent) 0%,
      transparent 52%
    ),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}
/* Thin brand gradient rule along the top edge */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
}
/* Decorative WebGL layer (Three.js spade) sits behind the content */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}
/* Keep hero content centered and above the decorative background layers */
.hero .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}
/* Eyebrow becomes a "live" pill badge with a pulsing status dot */
/* Premium frosted-glass badge — no border, soft depth */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.7);
  backdrop-filter: blur(14px) saturate(1.7);
  border: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin: 0 0 1.25rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(120, 20, 20, 0.06),
    0 8px 24px rgba(120, 20, 20, 0.1);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: eyebrow-pulse 2.2s ease-in-out infinite;
}
@keyframes eyebrow-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 38%, transparent);
  }
  70% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-primary) 0%, transparent);
  }
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 58ch;
  margin: 0 auto 1.75rem;
}
/* Byline (E-E-A-T): author + last-updated */
.byline {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
}
.byline a {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.byline a:hover {
  color: var(--color-primary);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 2026 trend: a light "sheen" sweeps across the button on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 70%
  );
  transform: translateX(-160%) skewX(-16deg);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.btn:hover::after {
  transform: translateX(160%) skewX(-16deg);
}
.btn:hover {
  transform: translateY(-3px) scale(1.015);
}
.btn:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.1s;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--color-primary) 28%, transparent);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow:
    0 14px 34px color-mix(in srgb, var(--color-primary) 45%, transparent),
    0 0 0 4px color-mix(in srgb, var(--color-primary) 14%, transparent);
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--color-primary) 32%, transparent);
}

/* ===================== Content layout (article + TOC) ===================== */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 2.5rem 0 3rem;
}
/* Laat grid-kolommen krimpen zodat brede inhoud (bijv. tabellen) binnen
   .table-wrap kan scrollen i.p.v. de layout op te rekken. */
.layout > * {
  min-width: 0;
}
/* Pages without a TOC sidebar (e.g. Über uns) must not drop their article
   into the narrow 240px column — give them a single, readable column. */
.layout:not(:has(aside)) {
  grid-template-columns: 1fr;
}
.layout:not(:has(aside)) .article {
  max-width: 75ch;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* Table of contents (sidebar) */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  align-self: start;
}
.toc h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--color-border);
}
.toc li {
  margin: 0;
}
.toc a {
  display: block;
  padding: 0.4rem 0.75rem;
  margin-left: -2px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.92rem;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.toc a:hover {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
}
/* Highlighted by scrollspy as the section currently in view */
.toc a.is-active {
  color: var(--color-primary);
  font-weight: 600;
  border-left-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 9%, transparent);
}
.toc .sub a {
  padding-left: 1.5rem;
  font-size: 0.88rem;
}
@media (max-width: 900px) {
  .toc {
    position: static;
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
  }
  .toc ul {
    border-left: none;
  }
  .toc a {
    border-left: none;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
  }
  .toc .sub a {
    padding-left: 1.2rem;
  }
}

.article :first-child {
  margin-top: 0;
}
.article ul,
.article ol {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}
.article li {
  margin-bottom: 0.4rem;
}
.article figure {
  margin: 1.75rem 0;
}
.article figure img {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  background: var(--color-surface);
}
.article figcaption {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

.callout {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p {
  margin: 0;
}

/* ===================== FAQ ===================== */
.faq {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
}
.faq h2 {
  margin-top: 0;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--color-bg);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1;
  flex: none;
}
.faq-item[open] summary::after {
  content: "\2013";
}
.faq-item[open] summary {
  color: var(--color-primary);
}
.faq-item .answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--color-muted);
}
.faq-item .answer p {
  margin: 0;
}

/* ===================== Author box ===================== */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2.5rem 0;
}
.author-box img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex: none;
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-border);
}
.author-box .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
}
.author-box .position {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.1rem 0 0.6rem;
}
.author-box p.bio {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}
@media (max-width: 480px) {
  .author-box {
    flex-direction: column;
  }
}

/* ===================== Footer ===================== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin: 0 0 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 0.55rem;
}
.footer-col a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--color-primary);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
}
.footer-logo img {
  height: 42px;
  width: auto;
  display: block;
}
.footer-logo span {
  color: var(--color-primary);
}
.footer-col p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
  max-width: 34ch;
}
.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.footer-bottom p {
  margin: 0 0 0.4rem;
}
.footer-disclaimer {
  max-width: none;
  font-size: 0.82rem;
}

/* Responsible-gambling note (18+) */
.rg-note {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-size: 0.85rem;
  color: var(--color-muted);
}
.rg-note strong {
  color: var(--color-text);
}

/* ===================== Link box (internal / external links) ===================== */
.linkbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
@media (max-width: 560px) {
  .linkbox {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
.linkbox h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
}
.linkbox ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.linkbox li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}
.linkbox li::before {
  position: absolute;
  left: 0;
  top: 0;
}
.linkbox .internal li::before {
  content: "\2192"; /* → */
  color: var(--color-primary);
}
.linkbox .external li::before {
  content: "\2197"; /* ↗ */
  color: var(--color-accent);
}
.linkbox a {
  text-decoration: none;
}
.linkbox a:hover {
  text-decoration: underline;
}

/* ===================== Pro / cons (voordelen & nadelen) ===================== */
.procons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}
@media (max-width: 560px) {
  .procons {
    grid-template-columns: 1fr;
  }
}
.procons-col {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  background: var(--color-bg);
}
.procons-col h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.procons-pro {
  border-top: 3px solid #1c8a5b;
}
.procons-con {
  border-top: 3px solid #c0392b;
}
.procons ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.procons li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.55rem;
}
.procons-pro li::before {
  content: "\2713"; /* ✓ */
  position: absolute;
  left: 0;
  color: #1c8a5b;
  font-weight: 700;
}
.procons-con li::before {
  content: "\2715"; /* ✕ */
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: 700;
}

/* ===================== Comparison table ===================== */
.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  -webkit-overflow-scrolling: touch;
}
table.cmp {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.cmp th,
table.cmp td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
table.cmp thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-bottom: none;
}
table.cmp thead th:first-child {
  border-top-left-radius: var(--radius);
}
table.cmp thead th:last-child {
  border-top-right-radius: var(--radius);
}
table.cmp tbody th {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  white-space: nowrap;
}
table.cmp tbody tr:last-child th,
table.cmp tbody tr:last-child td {
  border-bottom: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
  .btn:hover {
    transform: none;
  }
}
