/* stijl.css — opgeschoonde, responsieve basis met behoud van de oorspronkelijke speelse stijl.
   Kleurvariabelen worden bij elk bezoek willekeurig ingesteld door kleuren.js. */

@import url('https://fonts.googleapis.com/css2?family=Barriecito&family=Roboto:wght@400;500;600;700&family=Shadows+Into+Light&display=swap');

:root {
  color-scheme: light;
  --color-orange: #F5750B;
  --color-sky: #579FD4;
  --color-red: #D44647;
  --color-turquoise: #22BCCE;
  --color-yellow: #E7CC7B;
  --color-green: #58B79A;
  --color-blue: #658FE8;
  --color-sand: #E7CC90;

  --color-ink: #202124;
  --color-muted: #55585c;
  --color-paper: #f5f5f3;
  --color-surface: #ffffff;
  --color-border: #d7d7d3;
  --color-accent: var(--color-blue);
  --color-accent-2: var(--color-orange);
  --color-accent-3: var(--color-green);
  --color-accent-ink: #171717;

  --font-body: "Roboto", Arial, sans-serif;
  --font-display: "Barriecito", system-ui, sans-serif;
  --content-width: 800px;
  --radius: 16px;
  --shadow: 0 3px 12px rgb(0 0 0 / 12%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  height: auto;
  object-fit: contain;
}

a {
  color: #174f78;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.toggle:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-align: center;
}

h1 {
  margin: 0.5em 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.125rem);
}

h1.titel {
  margin: 10px;
  padding: 0.25em 0.2em 0.45em;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: clamp(2.8rem, 10vw, 6.25rem);
  letter-spacing: clamp(-0.06em, -0.5vw, 0);
  overflow-wrap: anywhere;
  text-shadow: 2px 2px 0 rgb(255 255 255 / 20%);
}

h2.toel {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
}

h3 {
  margin: 1em 0 0;
}


h1.titel {
    position: relative;
    z-index: 1;
    margin: 10px;
    padding: 0 0 30px;
    background-color: var(--color-accent);
    color: white;
    color: black;
    text-align: center;
    font-family: "Barriecito", system-ui;
    font-size: 10vw;
    letter-spacing: -0.05em;
    xtext-shadow: 2px 2px 2px #000;
}

h3.subtitel {
    position: relative;
    z-index: 2;
    margin: -2em 10px 0;
    padding: 0 1rem 1rem;
    color: var(--color-ink);
    font-size: clamp(1rem, 2.5vw, 1.875rem);
    text-align: center;
}


p {
  margin: 0 0 1em;
}

div.xsquiggle {
  margin: 30px 10px;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  filter: url("#squiggle");
}

div.watikdoe {
  margin: 10px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 4px solid var(--color-ink);
  border-radius: var(--radius);
  background-size: contain;
  color: var(--color-ink);
  text-shadow: none;
}

#beeldtheorie {
  background-color: var(--color-accent-3);
  background-image: url("fig_kijken-min.png");
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: 30% auto;
}

#ehbmk {
  background-color: var(--color-accent);
  background-image: url("fig_ehbmk-min.png");
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: 30% auto;
}

#tzbhk {
  background-color: var(--color-accent-2);
  background-image: url("fig_2zbhk-min.png");
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: 30% auto;
}

div.toelichting {
  width: min(70%, 60rem);
  margin: 0 0 0 auto;
  font-size: 1.125rem;
}

span.prijs {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: right;
}

p.error,
p.succes {
  text-align: center;
  font-weight: 600;
}

p.error {
  color: #a51d24;
}

p.succes {
  color: #176b3a;
  font-size: 1.25rem;
}

p.quotes {
  font-family: "Shadows Into Light", cursive;
  font-size: 1.25rem;
}

a.nav,
a.link,
a.knop,
button {
  display: inline-block;
  border: 0;
  border-radius: 4px;
  padding: 0.65em 0.9em;
  background: var(--color-ink);
  color: #fff;
  font: inherit;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

a.nav {
  margin: 0.15rem;
  padding: 0.35em 0.55em;
  font-family: var(--font-display);
}

a.nav:hover,
a.nav:active,
a.link:hover,
a.knop:hover,
button:hover {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

a.knop,
button {
  float: none;
}

a.blauw,
a.geel {
  display: inline-block;
  padding: 0.15em 0.4em;
  color: var(--color-ink);
  text-decoration: none;
  cursor: pointer;
  border-radius: 3px;
}

a.blauw {
  background: var(--color-sky);
}

a.geel {
  background: var(--color-yellow);
}

.toggle {
  margin-block-start: 0;
  text-decoration: none;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table,
th,
td {
  border: 0;
  padding: 0.65rem;
  text-align: left;
  vertical-align: top;
}

table,
div.inhoud {
  max-width: var(--content-width);
}

table.aanmelden {
  margin: 0 auto;
}

table.aanmelden td {
  border: 0;
}

div.nav {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.75rem;
  background: var(--color-ink);
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.875rem);
}

div.item {
  width: 100%;
  padding: 15px;
  background: #e4e4e1;
  transition: background-color 160ms ease, color 160ms ease;
}

div.item:hover,
div.item:focus-within {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

div.item_content {
  display: none;
  width: 100%;
  padding: 15px;
  background: #fff;
}

.aanmelden {
  margin: 0 auto;
}

.stukje {
  width: 100%;
  margin: 0 auto;
}

.inhoud {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
  padding: 1.25rem;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0.35rem 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #767676;
  border-radius: 4px;
  background: #fff;
  color: var(--color-ink);
  font: inherit;
}

textarea {
  resize: vertical;
  white-space: pre-wrap;
}

textarea.stukje {
  min-height: 300px;
}

button {
  margin: 0.25rem 0;
}

img.avatar {
  display: block;
  width: min(50%, 300px);
  margin: 2rem auto 0;
  border: 8px solid var(--color-accent);
  border-radius: 50%;
}

img.cartoon {
  display: block;
  width: min(50%, 300px);
  margin: 10px auto;
  border: 4px solid var(--color-ink);
}

td span {
  display: inline-block;
  float: right;
  margin: 10px;
  padding: 0.6em;
  background: var(--color-sky);
  color: var(--color-ink);
  font-family: monospace;
  font-size: 1.5rem;
}

/* Behoud de layout op kleine schermen, zonder onnodige horizontale overflow. */
@media (max-width: 600px) {
  h1.titel {
    margin: 0.4rem;
    letter-spacing: 0;
  }

  h3.subtitel {
    margin-top: 0;
    font-size: 1rem;
  }

  div.toelichting {
    width: 100%;
  }

  td,
  tr {
    display: block;
    width: 100%;
  }

  a.nav {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  #beeldtheorie,
  #ehbmk,
  #tzbhk {
    background-size: 24% auto;
  }

  img.avatar,
  img.cartoon {
    width: min(75%, 300px);
  }
}

@media (min-width: 1000px) {
  .inhoud {
    padding: 1.5rem;
  }
}

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