/* Beeldwoordenboek – statische site */
:root {
  --oranje: #e8641b;
  --oranje-donker: #b84a0e;
  --leisteen: #2e3a45;
  --leisteen-licht: #43525f;
  --achtergrond: #f4f1ec;
  --papier: #ffffff;
  --tekst: #24292e;
  --tekst-zacht: #5b6670;
  --rand: #e3ddd3;
  --radius: 14px;
  --breedte: 1100px;
  font-size: 100%;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--achtergrond);
  color: var(--tekst);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--oranje-donker); }
a:hover { color: var(--oranje); }

:focus-visible { outline: 3px solid var(--oranje); outline-offset: 3px; border-radius: 4px; }

.naar-inhoud {
  position: absolute; left: -999px; top: 0;
  background: var(--papier); padding: .5rem 1rem; z-index: 10;
}
.naar-inhoud:focus { left: .5rem; top: .5rem; }

/* ---------- kop en menu ---------- */
.kop {
  background: var(--leisteen);
  border-bottom: 4px solid var(--oranje);
}
.kop-binnen {
  max-width: var(--breedte);
  margin: 0 auto;
  padding: .6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}
.merk {
  display: flex; align-items: center; gap: .6rem;
  color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.25rem; letter-spacing: .01em;
}
.merk:hover { color: #fff; }
.merk img { border-radius: 8px; display: block; }

.menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem;
}
.menu a {
  display: block;
  padding: .55rem .9rem;
  border-radius: 8px;
  color: #e9edf0;
  text-decoration: none;
  font-weight: 600;
}
.menu a:hover { background: var(--leisteen-licht); color: #fff; }
.menu a[aria-current="page"] { background: var(--oranje); color: #fff; }

/* ---------- inhoud ---------- */
.inhoud {
  flex: 1;
  width: 100%;
  max-width: var(--breedte);
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

h1 { line-height: 1.2; margin: .2em 0 .4em; color: var(--leisteen); }
.titel-home { font-size: clamp(1.8rem, 5vw, 2.6rem); text-align: center; margin-bottom: .2em; }
.intro { text-align: center; color: var(--tekst-zacht); margin: 0 0 1.75rem; font-size: 1.1rem; }

/* ---------- tegels startpagina ---------- */
.tegels {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.tegel {
  display: flex; flex-direction: column; align-items: center;
  height: 100%;
  padding: 1rem .75rem .85rem;
  background: var(--papier);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  color: var(--tekst);
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  line-height: 1.25;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tegel img {
  width: 100%; max-width: 140px; aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: .65rem;
}
.tegel:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(46,58,69,.14);
  border-color: var(--oranje);
  color: var(--oranje-donker);
}

@media (max-width: 480px) {
  .tegels { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .tegel { padding: .75rem .5rem .7rem; font-size: .95rem; }
}

/* ---------- tekstpagina's ---------- */
.tekst {
  max-width: 46rem;
  margin: 0 auto;
  background: var(--papier);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}
.tekst h2 { font-size: 1.15rem; color: var(--leisteen); margin: 1.6em 0 .3em; }
.tekst p { margin: 0 0 1em; }
.doel-beeld { margin: 0 0 1.5rem; text-align: center; }
.doel-beeld img { border-radius: 10px; }
.korte-url { text-align: center; font-size: 2rem; font-weight: 800; margin: .5rem 0 1.25rem; }
.korte-url a { text-decoration: none; }
address { font-style: normal; margin-bottom: 1em; }
.bijgewerkt { color: var(--tekst-zacht); font-size: .9rem; margin-top: 1.5rem; }

/* ---------- themapagina ---------- */
body.thema .inhoud { max-width: 1280px; padding-top: 1rem; }
.thema-kop {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem 1rem;
  margin-bottom: .75rem;
}
.thema-kop h1 { margin: 0; flex: 1; font-size: clamp(1.4rem, 4vw, 2rem); }
.terug {
  font-weight: 600; text-decoration: none;
  padding: .4rem .2rem;
  flex-basis: 100%;
}
.knop {
  font: inherit; font-weight: 600;
  background: var(--leisteen); color: #fff;
  border: 0; border-radius: 8px;
  padding: .5rem .9rem;
  cursor: pointer;
}
.knop:hover { background: var(--oranje); }

.speler {
  background: var(--papier);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  overflow: hidden;
  /* hoog genoeg om te oefenen, maar altijd binnen het scherm */
  height: clamp(420px, calc(100vh - 210px), 820px);
  height: clamp(420px, calc(100dvh - 210px), 820px);
}
.speler iframe { display: block; width: 100%; height: 100%; border: 0; }
.speler:fullscreen { border-radius: 0; border: 0; height: 100%; }

@media (orientation: landscape) and (max-height: 520px) {
  /* telefoon liggend: oefening vult zo veel mogelijk het scherm */
  .speler { height: calc(100vh - 1rem); height: calc(100dvh - 1rem); }
}

.speler-hulp { color: var(--tekst-zacht); font-size: .9rem; margin: .6rem 0 0; }

.buren {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 1.25rem;
}
.buren a {
  background: var(--papier);
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: .6rem 1rem;
  text-decoration: none; font-weight: 600;
}
.buren a:hover { border-color: var(--oranje); }

/* ---------- voet ---------- */
.voet {
  background: var(--leisteen);
  color: #c9d1d8;
  text-align: center;
  font-size: .9rem;
  padding: 1rem;
}
.voet p { margin: 0; }
.voet a { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .tegel { transition: none; }
  .tegel:hover { transform: none; }
}

/* ---------- advertentie (Google AdSense) ---------- */
.reclame {
  margin: 0 auto 1.5rem;
  max-width: 970px;
  min-height: 50px;
  text-align: center;
  overflow: hidden;
}
.reclame .adsbygoogle:not([data-ad-status="filled"]) { min-height: 0; }
body.thema .reclame { margin: 1.25rem auto 0; }
