/* Elle van den Bogaart - stijlblad */

:root {
  --blauw: #0a1fa0;
  --turkoois: #7fd6e8;
  --roze: #ffa9c8;
  --oranje: #ffa41b;
  --groen: #c6f0a4;
  --inkt: #1b0a24;
  --wit: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--inkt);
  background: var(--turkoois);
}

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

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }

/* Duidelijke focus voor toetsenbordgebruikers */
:focus-visible {
  outline: 3px solid var(--inkt);
  outline-offset: 3px;
}
.blauw :focus-visible { outline-color: var(--wit); }

h1, h2, h3 {
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2rem, 6vw, 3rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

.wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1rem;
}

section { padding: 3.5rem 0; }

.blauw { background: var(--blauw); color: var(--wit); }
.turkoois { background: var(--turkoois); }
.oranje { background: var(--oranje); }
.groen { background: var(--groen); }

/* Alleen voor schermlezers */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Link om direct naar de inhoud te springen */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--wit);
  color: var(--inkt);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Kopbalk, blijft bovenin staan */
.balk {
  background: var(--blauw);
  color: var(--wit);
  border-bottom: 4px solid var(--roze);
  position: sticky;
  top: 0;
  z-index: 5;
}
/* Bij weinig schermhoogte (liggende telefoon, ingezoomd) scrolt de balk gewoon mee weg */
@media (max-height: 30rem) {
  .balk { position: static; }
}
/* Zorg dat koppen bij menulinks niet onder de balk verdwijnen */
[id] { scroll-margin-top: 8rem; }

.balk .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.naam {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
}
.naam, .naam a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.naam img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
  border: 2px solid var(--wit);
  border-radius: 50%;
}
.balk ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.balk nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-weight: 600;
}

/* Hamburgermenu: alleen als het menu niet meer op één regel past (zie menu.js) */
.menuknop { display: none; }
.compact .menuknop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-right: -0.5rem;
  padding: 0;
  color: var(--wit);
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
}
.compact .menuknop:focus-visible { outline-color: var(--wit); outline-offset: 0; }
.compact .wrap { flex-wrap: nowrap; }
/* Smalle telefoon: iets kleinere naam, zodat naam en icoon op één regel passen */
@media (max-width: 26rem) {
  .naam { font-size: clamp(1.05rem, 5vw, 1.4rem); }
}
.streepjes,
.streepjes::before,
.streepjes::after {
  display: block;
  width: 1.75rem;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
}
.streepjes { position: relative; }
.streepjes::before,
.streepjes::after { content: ""; position: absolute; left: 0; }
.streepjes::before { top: -8px; }
.streepjes::after { top: 8px; }
.menu-open .streepjes { background: transparent; }
.menu-open .streepjes::before { top: 0; transform: rotate(45deg); }
.menu-open .streepjes::after { top: 0; transform: rotate(-45deg); }

.compact #hoofdmenu { display: none; }
.compact.menu-open #hoofdmenu {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  background: var(--blauw);
  border-bottom: 4px solid var(--roze);
  padding: 0.5rem 1rem 1rem;
}
.compact.menu-open #hoofdmenu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.25);
}

/* Knoppen: één kleur, afgerond */
.knoppen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.knop {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--blauw);
  color: var(--wit);
}
.blauw .knop { background: var(--roze); color: var(--inkt); }
.knop:hover { text-decoration: underline; }

/* Creepshot bovenaan */
.nieuw { padding: 2.5rem 0 3.5rem; }
.nieuw .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.nieuw img {
  width: min(62%, 22rem);
  border-radius: 0.75rem;
}
.nieuw h2 {
  font-size: clamp(3rem, 13vw, 6rem);
  margin-bottom: 0.25em;
}
.vraag {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--roze);
  max-width: 30ch;
}
.nieuw .tekst p { max-width: 38rem; }
.nieuw .datum {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--groen);
}
audio { width: 100%; max-width: 26rem; }
.audio-label { font-weight: 700; margin-bottom: 0.4rem; }

@media (min-width: 48rem) {
  .nieuw .wrap { grid-template-columns: 2fr 3fr; gap: 3.5rem; }
  .nieuw img { width: 100%; }
}

/* Boekenoverzicht */
/* Blokken: elk boek een eigen kleur (style="--kleur: ..." in index.html), alle blokken even groot */
.boeken {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.75rem;
}
.boeken li { display: flex; }
.boeken a {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1rem 1rem 1.5rem;
  background: var(--kleur, var(--wit));
  color: var(--inkt);
  border-radius: 2rem;
  text-decoration: none;
}
.boeken img {
  width: 100%;
  aspect-ratio: 480 / 760; /* alle omslagen even hoog, zodat titels op één lijn staan */
  object-fit: cover;
  border-radius: 1.25rem;
  margin-bottom: 1.25rem;
}
.boeken h3, .boeken p { padding: 0 0.5rem; }
.boeken h3 { margin-bottom: 0.4em; }
.boeken p { font-size: 1rem; line-height: 1.45; }
.boeken .meer {
  margin: auto 0.5rem 0;
  align-self: flex-start;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--blauw);
  color: var(--wit);
}
.boeken a:hover .meer { text-decoration: underline; }

/* Over mij */
.over .wrap { display: grid; gap: 2rem; }
.over img { width: min(100%, 24rem); border-radius: 1.25rem; }
.over .tekst { max-width: 40rem; }
.feiten {
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1rem;
}
.feiten dt { font-weight: 700; }
.feiten dd { margin: 0; }

@media (min-width: 48rem) {
  .over .wrap { grid-template-columns: 2fr 3fr; gap: 3.5rem; align-items: start; }
  .over img { width: 100%; position: sticky; top: 6.5rem; }
}
@media (max-width: 30rem) {
  .feiten { grid-template-columns: 1fr; }
  .feiten dd { margin-bottom: 0.5rem; }
}

/* Leerkrachten en contact */
.smal > *, .kopen > * { max-width: 42rem; }
.contact ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact li { margin-bottom: 0.5rem; }
.contact h3 { margin-top: 2rem; }

footer {
  background: var(--inkt);
  color: var(--wit);
  padding: 1.5rem 0;
  font-size: 1rem;
}
footer p { margin: 0; }

/* Boekpagina */
.boekkop { padding: 3rem 0; }
.boekkop .wrap {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.boekkop img {
  width: min(62%, 20rem);
  border-radius: 0.75rem;
}
.boekkop h1 { font-size: clamp(2.5rem, 10vw, 4.5rem); }
.boekkop .tekst { max-width: 42rem; }
.boekkop .datum { font-weight: 800; color: var(--groen); }
.boekkop .prijs { font-size: 1.25rem; color: var(--groen); }
.boekkop blockquote {
  margin: 0 0 1.5em;
  padding-left: 1rem;
  border-left: 6px solid var(--roze);
  font-style: italic;
}

@media (min-width: 48rem) {
  .boekkop .wrap { grid-template-columns: 1fr 2fr; gap: 3.5rem; }
  .boekkop img { width: 100%; position: sticky; top: 7rem; }
}

.kopen a { font-weight: 600; }

.bladeren { padding: 1.5rem 0 0.5rem; }
.bladeren .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.bladeren a { font-weight: 700; }

/* Creepshot: omslag op de homepage is een link */
.omslag { display: block; }

/* Creepshot-pagina: verwijzing naar meer informatie */
.boekkop .meer-info {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--groen);
}
