/* Traxio Magazine – vormgeving */
:root {
  --blauw: #1e62a8;
  --groen: #00a764;
  --tekstkleur: #111111;
  --breedte: 1140px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tekstkleur);
  background: #fff;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 400; font-family: Roboto, sans-serif; }
h1, h2 { font-family: Baskervville, Georgia, serif; }
h1 { font-size: clamp(26px, 2.6vw, 36px); }
h2 { font-size: clamp(26px, 2.6vw, 36px); }
h3 { font-size: 24px; }
h4 { font-size: 24px; font-weight: 700; }
h5, h6 { font-size: 18px; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
.wrap { width: 100%; max-width: calc(var(--breedte) + 40px); margin: 0 auto; padding: 0 20px; }

/* kop en voet */
.kop { padding: 40px 0 27px; text-align: center; }
.kop img { width: 170px; height: auto; margin: 0 auto; }
.voet { background: var(--groen); color: #fff; text-align: center; padding: 50px 20px; font-size: 14px; }
.voet a { color: #fff; font-weight: 700; text-decoration: none; }
.voet a:hover { text-decoration: underline; }

/* knoppen */
.knop {
  display: inline-block; padding: 10px 30px; border-radius: 50px;
  background: var(--knop, var(--blauw)); color: var(--knoptekst, #fff);
  border: 2px solid var(--knoprand, transparent);
  font: 700 14px/1.4 'Open Sans', sans-serif; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; transition: filter .2s, transform .2s;
}
.knop:hover { filter: brightness(1.12); }
.knoppen { display: flex; flex-wrap: wrap; gap: 20px; }
.terug { padding: 40px 0 50px; }

/* startpagina */
.start {
  min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(to bottom, var(--blauw), var(--groen)); color: #fff;
}
.start main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; }
.start .logo { width: min(576px, 90vw); height: auto; animation: verschijn 1s ease .1s both; }
.start .talen { display: flex; gap: 20px; margin-top: 50px; flex-wrap: wrap; justify-content: center; }
.start .talen a {
  color: #fff; border: 2px solid #fff; border-radius: 50px; padding: 10px 30px;
  font: 700 14px/1.4 'Open Sans', sans-serif; letter-spacing: 1px; text-decoration: none;
  animation: verschijn .8s ease .6s both;
}
.start .talen a:hover { background: var(--blauw); border-color: var(--blauw); }
.start .voet { background: transparent; }
@keyframes verschijn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }

/* overzicht magazines */
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 60px 0 100px; max-width: 1068px; margin: 0 auto; }
.covers a { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 595 / 842; background: #f2f2f2; transition: transform .25s, box-shadow .25s; }
.covers a:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.covers img { width: 100%; height: 100%; object-fit: cover; }

/* inhoud van één magazine */
.kaarten { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 22px; padding: 64px 0 20px; align-items: stretch; }
.kaart { display: block; border: 1px solid #404040; text-decoration: none; color: var(--tekstkleur); background: #fff; transition: box-shadow .25s; }
.kaart:hover { box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.kaart .beeld { position: relative; }
.kaart img { width: 100%; aspect-ratio: 363 / 243; object-fit: cover; }
.kaart .label { position: absolute; left: 0; right: 0; bottom: 0; background: var(--label, var(--groen)); color: #fff; height: 39px; padding: 10px 10px 0; font: 700 16px/1.2 Roboto, sans-serif; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kaart h4 { font-weight: 400; color: var(--tekstkleur); margin: 27px 20px 27px 10px; min-height: 58px; }
.inhoud .terug { text-align: center; padding: 60px 0 74px; }

/* artikel */
.artikel h4 { color: var(--accent); }
.blok[style*="--tekst"] h4 { color: inherit; }
.hero {
  position: relative; color: #fff; min-height: 800px;
  background-color: #333; background-position: var(--fotopos, 50% 50%); background-size: cover; background-repeat: no-repeat;
  display: flex; align-items: flex-start;
}
.hero > .wrap { padding-top: 159px; padding-bottom: 60px; }
.hero > .wrap > * { max-width: 826px; }
.hero > .wrap > h1 { max-width: 960px; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.1; margin: 30px 0 0; }
.hero > .wrap > p { font-size: clamp(19px, 1.75vw, 24px); margin: 30px 0 0; }
.hero > .wrap > h6 { margin: 30px 0 0; }
.hero > .wrap > :first-child { margin-top: 0; }
.blok { background: var(--achtergrond, transparent); color: var(--tekst, inherit); padding: 30px 0; }
.blok:first-of-type { padding-top: 60px; }
.blok[style*="--achtergrond"] { padding: 70px 0; }
.blok[style*="--achtergrond"] + .blok[style*="--achtergrond"] { padding-top: 0; }
.blok.fotoblok { background-position: center; background-size: cover; background-repeat: no-repeat; }
.blok p, .blok ul, .blok ol { font-size: 18px; }
.blok > .wrap > :last-child, .kolom > :last-child, .vak > :last-child { margin-bottom: 0; }
.blok h4 { margin-bottom: 20px; }
.blok img { margin: 0 0 20px; height: auto; }
.blok img[style*="aspect-ratio"] { width: 100%; }
.kolommen { display: grid; grid-template-columns: var(--kol); gap: 30px; align-items: start; margin-bottom: 20px; }
.kolom { min-width: 0; }
.kolommen.lijn { border-bottom: 1px solid #808080; padding: 0 30px 40px; margin-bottom: 30px; }
.vak { background: var(--vak); padding: 30px; margin-bottom: 20px; }
.kolom.vak { margin-bottom: 0; }
.video { position: relative; width: 100%; margin-bottom: 20px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.artikel .terug { padding: 20px 0 50px; }
.alleen-mobiel { display: none; }

@media (max-width: 991px) {
  .covers { grid-template-columns: repeat(3, 1fr); }
  .kaarten { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 620px; }
  .hero > .wrap { padding-top: 90px; }
}
@media (max-width: 767px) {
  .covers { grid-template-columns: repeat(2, 1fr); padding: 30px 0 60px; }
  .kaarten { grid-template-columns: 1fr; padding-top: 30px; }
  .kolommen { grid-template-columns: 1fr; }
  .kolom img[style*="width:"] { margin-left: 0; }
  .hero { min-height: 0; }
  .hero > .wrap { padding-top: 70px; padding-bottom: 50px; }
  .blok { padding: 20px 0; }
  .blok p, .blok ul, .blok ol { font-size: 16px; }
  .blok h4 { font-size: 20px; }
  .vak { padding: 20px; }
  .alleen-mobiel { display: block; }
  .alleen-desktop { display: none; }
  .kop { padding: 25px 0 20px; }
}
@media (max-width: 575px) {
  .covers { gap: 14px; }
  .covers a { border-radius: 14px; }
}
span.knop { cursor: default; }
span.knop:hover { filter: none; }

/* hero met foto ernaast (portretten: hoofd altijd volledig in beeld) */
.hero.naast { background: var(--paneel, var(--blauw)); min-height: 720px; }
.hero.naast .hero-foto { position: absolute; top: 0; right: 0; bottom: 0; width: 45%; height: 100%; max-width: none; object-fit: cover; margin: 0; }
.hero.naast > .wrap > :not(.hero-foto) { max-width: min(826px, calc(55vw - 40px - max(20px, (100vw - 1140px) / 2))); }
.hero > .wrap > h2 { font-size: clamp(26px, 3vw, 42px); line-height: 1.2; margin: 24px 0 0; }
/* foto's met onderschrift */
.foto { margin: 0 auto 10px; }
.foto img { width: 100%; height: auto; margin: 0; }
.foto figcaption { font-size: 14px; font-style: italic; color: #555; margin-top: 8px; }
.kolommen.fotos { align-items: start; margin-bottom: 0; }
/* tabel */
.tabel-wrap { overflow-x: auto; }
.tabel { width: 100%; border-collapse: collapse; font-size: 17px; }
.tabel th, .tabel td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #ccd; }
.tabel thead th { background: var(--accent); color: #fff; font-family: Roboto, sans-serif; }
.tabel tbody tr:nth-child(even) { background: #f3f6fa; }
@media (max-width: 767px) {
  .hero.naast > .wrap { padding-top: 0; }
  .hero.naast .hero-foto { position: static; width: calc(100% + 40px); height: auto; aspect-ratio: 1 / 1; margin: 0 -20px 30px; }
  .hero.naast > .wrap > :not(.hero-foto) { max-width: none; }
  .kolommen.fotos { gap: 20px; }
  .tabel { font-size: 15px; }
}

/* knop 'volledig magazine' naast 'terug' */
.inhoud .terug { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.knop-magazine { background: var(--groen); }
@media (max-width: 767px) {
  .inhoud .terug { flex-direction: column; align-items: center; }
  .inhoud .terug .knop { min-width: 240px; text-align: center; }
}

/* doorbladerpagina (flipbook) */
.blader { background: #fff; padding: 10px 20px 0; }
.kop:has(+ .blader) { padding: 24px 0 16px; }
.blader-venster { overflow: hidden; }
.blader-venster.gezoomd { overflow: auto; max-height: calc(100vh - 255px); border: 1px solid #e3e3e3; -webkit-overflow-scrolling: touch; }
.blader-boek { --zoom: 1; width: calc(100% * var(--zoom)); max-width: calc(min(1240px, (100vh - 285px) * 1.414) * var(--zoom)); margin: 0 auto; }
@media (max-width: 767px) { .blader-boek { max-width: none; } }
.blader-zoom { display: inline-flex; gap: 12px; margin-left: 12px; }
.blader-pijl.grijs { background: #ececec; border-color: #ececec; color: #555; display: inline-flex; align-items: center; justify-content: center; }
.blader-pijl.grijs:hover { background: #dcdcdc; border-color: #dcdcdc; color: #333; }
.blader-pijl:disabled { opacity: .4; cursor: default; }
.blader-pijl.grijs:disabled:hover { background: #ececec; border-color: #ececec; color: #555; }
.blader-balk { display: flex; justify-content: center; align-items: center; gap: 24px; margin: 4px 0 0; font: 600 15px/1 'Open Sans', sans-serif; color: #555; }
.blader-pijl { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--blauw); background: #fff; color: var(--blauw); font-size: 30px; line-height: 38px; cursor: pointer; padding: 0; }
.blader-pijl:hover { background: var(--blauw); color: #fff; }
.blader-pdf { text-align: center; font-size: 14px; margin: 8px 0 0; }
.blader-pdf a { color: #555; }
.blader .terug { text-align: center; padding: 14px 0 18px; }

.blader-boek { position: relative; }
.zoomlaag { display: none; position: absolute; inset: 0; z-index: 5; cursor: grab; touch-action: pan-x pan-y; }
.zoomlaag.sleept { cursor: grabbing; }
.gezoomd .zoomlaag { display: block; }
/* lichte schaduw onder het magazine, alsof het op tafel ligt */
.blader-schaduw { position: absolute; pointer-events: none; z-index: 0; background: #fff; transition: left .3s, width .3s;
  box-shadow: 0 14px 22px -4px rgba(0,0,0,.22), 10px 4px 16px -6px rgba(0,0,0,.16), -10px 4px 16px -6px rgba(0,0,0,.16); }
.blader-boek #boek { position: relative; z-index: 1; }
.blader-venster { padding: 0 24px 24px; }

.blader-boek .blz { background: #fff; overflow: hidden; }
.blader-boek .blz img { display: block; width: 100%; height: 100%; object-fit: fill; user-select: none; -webkit-user-drag: none; pointer-events: none; }
