/* Capricon-kern — vermelding "Website door Capricon" en de 404-pagina (sinds 1.9.5).
   Volgt de opmaak van de website: tekstkleur, lettertype en (via 404.js) de accentkleur. */
.cq-credit-sep { margin-right: .1em; }
.cq-credit { display: inline-flex; align-items: center; gap: .4em; font-size: .8rem; line-height: 1; opacity: .75; white-space: nowrap; transition: opacity .2s; }
.cq-credit:hover, .cq-credit:focus-within { opacity: 1; }
.cq-credit-auto { display: flex; justify-content: center; margin: 0; padding: .9em 1em; }
.cq-credit a { display: inline-flex; color: inherit !important; text-decoration: none !important; border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; }
.cq-credit svg { display: block; width: 1.3em; height: 1.3em; flex: 0 0 auto; }
.cq-credit a:hover svg, .cq-credit a:focus-visible svg { animation: cq-beat 1s ease-in-out 1; }
@keyframes cq-beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }

/* 404 — de houder neemt altijd de volle breedte, ook als <main> een flex- of rasteropmaak heeft (sinds 1.9.9) */
[data-cq-404] { display: block; box-sizing: border-box; width: 100%; max-width: 100%; flex: 1 1 100%; grid-column: 1 / -1; align-self: stretch; }
/* 404 — kleuren als variabelen; 404.js vult ze in uit de stijl van de site */
.cq-404 { box-sizing: border-box; width: 100%; --cq4-acc: currentColor; --cq4-on: #fff; --cq4-ink: currentColor; --cq4-bg: #fff; --cq4-r: 6px; text-align: center; max-width: 640px; margin: 0 auto; padding: 2.5rem 1rem 3rem; }
.cq-404-t { margin: 0 0 .4em; }
.cq-404-p { margin: 0 auto 1.4em; max-width: 46ch; opacity: .85; }
.cq-404-btns { display: flex; gap: .6em; justify-content: center; flex-wrap: wrap; margin: 1.6em 0 0; }
.cq-404-btn { display: inline-block; padding: .65em 1.2em; border-radius: var(--cq4-r); border: 2px solid var(--cq4-acc); color: inherit; text-decoration: none; font-weight: 600; line-height: 1.2; }
.cq-404.cq4-ok .cq-404-btn { background: var(--cq4-acc); color: var(--cq4-on); }
.cq-404.cq4-ok .cq-404-btn.cq-404-ghost { background: transparent; color: var(--cq4-acc); }
.cq-404-btn:hover { filter: brightness(1.08); }
.cq-404-game { width: min(520px, 100%); margin: 0 auto; }
.cq4-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .85rem; margin-bottom: 8px; opacity: .9; }
.cq4-msg { min-height: 1.5em; font-weight: 600; margin: 12px 0 0; }
.cq4-sbtn { font: inherit; font-size: .85rem; padding: .35em .9em; border-radius: var(--cq4-r); border: 0; background: var(--cq4-acc); color: var(--cq4-on); cursor: pointer; font-weight: 600; }
.cq4-soft { background: rgba(127, 127, 127, .12); }
/* schuifpuzzel */
.cq4-puz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: min(270px, 80vw); aspect-ratio: 1; margin: 0 auto; padding: 6px; border-radius: 12px; }
.cq4-puz button { position: relative; border: 0; border-radius: 8px; background: var(--cq4-acc); color: var(--cq4-on); font-family: inherit; font-size: 34px; font-weight: 800; line-height: 1; cursor: default; touch-action: none; user-select: none; transition: transform .12s; }
.cq4-puz button.cq4-can { cursor: grab; }
.cq4-puz button.cq4-can:hover { filter: brightness(1.08); }
.cq4-puz button.cq4-drag { transition: none; cursor: grabbing; z-index: 2; }
.cq4-puz button.cq4-empty { background: transparent; }
.cq4-puz.cq4-done button:not(.cq4-empty) { animation: cq4-pop .5s ease both; }
.cq4-puz:focus-visible { outline: 3px solid var(--cq4-acc); outline-offset: 3px; }
@keyframes cq4-pop { 50% { transform: translateY(-10px); } }
/* vang de pagina */
.cq4-field { position: relative; height: 240px; border-radius: 12px; overflow: hidden; touch-action: manipulation; }
.cq4-fly { position: absolute; left: 45%; top: 40%; width: 48px; height: 60px; padding: 0; border: 0; background: none; cursor: pointer; transition: left .9s cubic-bezier(.5, 0, .3, 1), top .9s cubic-bezier(.5, 0, .3, 1), transform .9s; }
.cq4-fly svg { width: 100%; height: 100%; animation: cq4-flap .6s ease-in-out infinite alternate; }
@keyframes cq4-flap { to { transform: rotate(8deg) scaleX(.9); } }
.cq4-poof { position: absolute; font-weight: 800; color: var(--cq4-acc); pointer-events: none; animation: cq4-poof .8s ease-out forwards; }
@keyframes cq4-poof { to { transform: translateY(-30px); opacity: 0; } }
/* mep de 404 */
.cq4-holes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(300px, 86vw); margin: 0 auto; }
.cq4-hole { position: relative; aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; overflow: hidden; cursor: pointer; touch-action: manipulation; background: radial-gradient(circle at 50% 35%, rgba(127, 127, 127, .3), rgba(127, 127, 127, .12) 70%); box-shadow: inset 0 6px 10px rgba(0, 0, 0, .15); }
.cq4-hole span { position: absolute; left: 50%; bottom: -70%; transform: translateX(-50%); padding: 6px 10px; border-radius: 10px; background: var(--cq4-acc); color: var(--cq4-on); font-family: inherit; font-size: 20px; font-weight: 800; line-height: 1; transition: bottom .15s; }
.cq4-hole.cq4-up span { bottom: 34%; }
.cq4-hole.cq4-hit span { background: var(--cq4-ink); bottom: -70%; transition: bottom .25s; }
/* springende steenbok */
.cq4-run { display: block; width: 100%; height: auto; border-radius: 12px; cursor: pointer; touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { .cq-credit svg, .cq-404 *:not(.cq4-puz *) { animation: none !important; } }
/* Quality Label-badge (sinds 1.9.11): rechtsonder in de voettekst, op de lijn van de ©-tekst.
   De balk rond de ©-regel krijgt rechts plaats voor de badge; wat daar stond, schuift op naar links.
   64 px; bij aanwijzen (of toetsenbordfocus) groeit ze naar 125 px, naar links en naar boven. */
.cq-ql { display: inline-block; width: 64px; height: 64px; margin-left: 1em; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; text-decoration: none !important; line-height: 0; vertical-align: middle; position: relative; z-index: 20; transform-origin: 100% 100%; transition: transform .2s ease; }
.cq-ql img { display: block; width: 64px !important; height: 64px !important; max-width: none !important; margin: 0 !important; border: 0 !important; border-radius: 50%; box-shadow: none !important; }
@supports selector(:has(*)) {
  :has(> .cq-ql):not(footer) { position: relative; padding-right: calc(64px + 1.25rem) !important; }
  footer:has(> .cq-ql) { position: relative; }
  :has(> .cq-ql) > .cq-ql { position: absolute; right: 0; top: 50%; margin: -32px 0 0; }
  footer:has(> .cq-ql) > .cq-ql { top: auto; right: 1.25rem; bottom: 1rem; margin: 0; }
}
@media (hover: hover) { .cq-ql:hover { transform: scale(1.953); } }
.cq-ql:focus-visible { transform: scale(1.953); outline: 2px solid currentColor; outline-offset: 2px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .cq-ql { transition: none; } }
@media print { .cq-ql { display: none !important; } }

/* Algemene voorwaarden en privacyverklaring uit een document (sinds 1.9.12): tabellen en de PDF-link, met zo weinig mogelijk eigen opmaak */
:where(.cq-pv-tabel) { overflow-x: auto; margin: 1em 0; }
:where(.cq-pv-tabel table) { border-collapse: collapse; width: 100%; }
:where(.cq-pv-tabel td) { border: 1px solid rgba(127, 127, 127, .35); padding: .45em .6em; vertical-align: top; }
:where(a.cq-pv-pdf) { font-weight: 600; }
