/* Wubbeloqtje – monsterdiertjes.be
   Links uitgelijnd, één tekstkolom, secties wisselen tussen achtergrond en achtergrond-tint. */
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/Fredoka-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/Fredoka-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --achtergrond: #FDFBF7;
  --achtergrond-tint: #edeee8;
  --tekst: #1E2F23;
  --secundair: #4A6B53;
  --accent: #ae57fa;
  --accent-tint: #f2e4f7;
  --lijn: rgba(30, 47, 35, .18);
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --sectie: clamp(3rem, 2rem + 4vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--achtergrond); color: var(--tekst); font: 400 1.125rem/1.65 var(--body); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.45rem + 3vw, 3.25rem); line-height: 1.1; }
h2 { font-size: clamp(1.6875rem, 1.35rem + 1.5vw, 2.25rem); line-height: 1.2; }
h3 { font-size: 1.5rem; line-height: 1.25; }
p, ul, ol { margin: 0; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .5rem; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 3px solid var(--tekst); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.kolom { max-width: 42rem; }
.stroom > * + * { margin-top: 1rem; }
.stroom > h2 + *, .stroom > h3 + * { margin-top: .75rem; }

.overslaan { position: absolute; left: 1rem; top: -4rem; background: var(--tekst); color: var(--achtergrond); padding: .75rem 1rem; border-radius: var(--radius-sm); z-index: 10; }
.overslaan:focus { top: 1rem; }

/* ---------- kop ---------- */
.kop { border-bottom: 1px solid var(--lijn); }
.kop .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.merk { display: block; flex: none; text-decoration: none; }
.merk img { width: 10rem; }
.menu ul { display: flex; align-items: center; gap: 1rem; list-style: none; padding: 0; font: 500 1rem/1.2 var(--display); white-space: nowrap; }
.menu li + li { margin-top: 0; }
.menu a { display: inline-block; padding-block: .75rem; text-decoration-color: transparent; }
.menu a:hover, .menu a[aria-current] { text-decoration-color: var(--accent); }
.menu a.knop { padding: .7rem 1.25rem; font-size: 1.0625rem; }
.menu-m { display: none; position: relative; }
.menu-m summary { cursor: pointer; list-style: none; font: 600 1.1875rem/1.2 var(--display); padding: .7rem 1.25rem; border: 2px solid var(--tekst); border-radius: 999px; }
.menu-m summary::-webkit-details-marker { display: none; }
.menu-m ul { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 5; width: min(20rem, calc(100vw - 2rem)); list-style: none; padding: 1rem 1.25rem; background: var(--achtergrond); border: 2px solid var(--tekst); border-radius: var(--radius-md); font: 500 1.125rem/1.2 var(--display); }
.menu-m a { display: block; padding-block: .6rem; text-decoration-color: transparent; }
.menu-m a[aria-current] { text-decoration-color: var(--accent); }
@media (max-width: 73rem) {
  .menu { display: none; }
  .menu-m { display: block; }
  .merk img { width: 9.5rem; }
}

/* ---------- knoppen ---------- */
.knop { display: inline-block; background: var(--tekst); color: var(--achtergrond); font: 600 1.1875rem/1.2 var(--display); padding: .9rem 1.6rem; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer; }
.knop:hover { background: var(--secundair); }
.knop.licht { background: var(--achtergrond); color: var(--tekst); }
.knop.licht:hover { background: var(--accent-tint); }
.knop.licht:focus-visible, .band :focus-visible, .voet :focus-visible { outline-color: var(--achtergrond); }

/* ---------- secties ---------- */
.sectie { padding-block: var(--sectie); }
.sectie.tint { background: var(--achtergrond-tint); }
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4rem) var(--sectie); }
.hero-rooster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-tekst > * + * { margin-top: 1.25rem; }
.hero-tekst .ondertitel { margin-top: .75rem; }
.ondertitel { font: 500 clamp(1.1875rem, 1.05rem + .6vw, 1.375rem)/1.35 var(--display); color: var(--secundair); }
.hero-beeld img { width: 100%; border-radius: var(--radius-lg); }
.hero-beeld.figuur img { width: min(100%, 22rem); margin-inline: auto; border-radius: 0; }
.hero.breed .hero-rooster { grid-template-columns: 1fr; }
.hero.breed .hero-tekst { max-width: 46rem; }
.hero.breed .hero-rooster { gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (max-width: 52rem) {
  .hero-rooster { grid-template-columns: 1fr; }
  .hero-beeld.panorama img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 86% 100%; }
  .hero-beeld.figuur img { width: min(70%, 16rem); margin-inline: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-beeld.figuur img { animation: wubbel .9s ease-out .2s 1 both; transform-origin: 50% 90%; }
  @keyframes wubbel { 0% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 55% { transform: rotate(4deg); } 80% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
}

.kruimel { font-size: .9375rem; line-height: 1.5; }
.datum { font-size: .9375rem; font-weight: 700; color: var(--secundair); }
.kruimel ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; padding: 0; }
.kruimel li + li { margin-top: 0; }
.kruimel li + li::before { content: "/"; margin-right: .5rem; color: var(--secundair); }

.twee { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.twee.omgekeerd { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.twee.omgekeerd .beeld { order: -1; }
.twee .beeld img { width: min(100%, 18rem); margin-inline: auto; }
.breedbeeld { margin-top: 2rem; }
.breedbeeld img { width: 100%; border-radius: var(--radius-lg); }
@media (max-width: 52rem) {
  .twee, .twee.omgekeerd { grid-template-columns: 1fr; }
  .twee.omgekeerd .beeld { order: 0; }
  .twee .beeld img { width: min(60%, 13rem); margin-inline: 0; }
}

.rooster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem; margin-top: 2rem; list-style: none; padding: 0; }
.rooster > li + li { margin-top: 0; }
.rooster.drie { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.kaart { background: var(--achtergrond-tint); border-radius: var(--radius-md); padding: 1.5rem; }
.sectie.tint .kaart { background: var(--achtergrond); }
.kaart > * + * { margin-top: .75rem; }
.kaart img { width: 9rem; margin-bottom: .5rem; }

.stappen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem 2rem; margin-top: 2rem; list-style: none; padding: 0; }
.stappen > li { border-top: 4px solid var(--accent); padding-top: 1rem; }
.stappen > li + li { margin-top: 0; }
.stappen > li > * + * { margin-top: .5rem; }
.staplabel { font-size: .9375rem; font-weight: 700; color: var(--secundair); }

/* kaart naast de haltes of zones */
.route { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 2rem; }
.route .stapel { grid-template-columns: 1fr; margin-top: 0; gap: 1.25rem; }
.route .stappen.stapel > li { padding-top: .75rem; }
.kaartbeeld { margin: 0; }
.kaartbeeld img { width: 100%; border-radius: 24px; }
.kaartbeeld figcaption { margin-top: .75rem; font-size: 1rem; line-height: 1.5; }
@media (max-width: 52rem) {
  .route { grid-template-columns: 1fr; }
}

.definitie { background: var(--accent-tint); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 46rem; }

.feiten { list-style: none; padding: 0; }
.feiten li { padding-block: .75rem; border-top: 1px solid var(--lijn); }
.feiten li + li { margin-top: 0; }
.feiten li:last-child { border-bottom: 1px solid var(--lijn); }

.vragen { margin-top: 1.5rem; max-width: 46rem; }
.vragen details { border-top: 1px solid var(--lijn); }
.vragen details:last-child { border-bottom: 1px solid var(--lijn); }
.vragen summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 1rem; cursor: pointer; list-style: none; }
.vragen summary::-webkit-details-marker { display: none; }
.vragen summary h3 { font-size: 1.25rem; }
.vragen summary::after { content: "+"; flex: none; font: 600 1.5rem/1 var(--display); color: var(--secundair); }
.vragen details[open] summary::after { content: "\2212"; }
.vragen .antwoord { padding-bottom: 1.25rem; }

/* ---------- band en voet ---------- */
.band { background: var(--secundair); color: var(--achtergrond); padding-block: var(--sectie); }
.band a:not(.knop), .voet a { text-decoration-color: currentColor; }
.band .knop { margin-top: .5rem; }
.voet { background: var(--tekst); color: var(--achtergrond); padding-block: 3rem 2rem; font-size: 1rem; line-height: 1.5; }
.voet-rooster { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; margin-top: 2rem; }
.voet h2 { font-size: 1.1875rem; }
.voet ul { list-style: none; padding: 0; margin-top: .75rem; }
.voet a { text-decoration-thickness: 1px; }
.voet .merk img { width: 12rem; }
.voet .thuis { margin-top: .75rem; max-width: 40rem; }
.voet .onder { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(253, 251, 247, .3); font-size: .9375rem; }

/* ---------- formulieren ---------- */
.formulier { display: grid; gap: 1.25rem; max-width: 34rem; margin-top: 1.5rem; }
.formulier label { display: block; font-weight: 700; margin-bottom: .35rem; }
.formulier input, .formulier select, .formulier textarea { width: 100%; font: inherit; color: inherit; background: var(--achtergrond); border: 2px solid var(--tekst); border-radius: var(--radius-sm); padding: .7rem .85rem; min-height: 3rem; }
.formulier .hulp { font-size: .9375rem; color: var(--secundair); margin-top: .35rem; }
.formulier .knop { justify-self: start; }
.melding { background: var(--accent-tint); border-radius: var(--radius-sm); padding: 1rem 1.25rem; font-weight: 700; }
