/* Basis: reset, typografie, kop, voet, knoppen en badges.
   Alleen semantische tokens (tokens.css). Maten en vormen uit het ontwerp. */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-tekst);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--action); text-decoration: none; }
a:hover { color: var(--action-hover); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-kop); letter-spacing: -.03em; text-wrap: balance; }

.container { max-width: var(--breedte); margin: 0 auto; padding: 0 var(--rand); }

.naar-inhoud {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--donker); color: #fff; padding: 12px 18px; border-radius: var(--radius-pil);
}
.naar-inhoud:focus { left: 16px; }

@keyframes livepulse {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(3.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- logo
   Een raam op het eiland: drie gevels boven een witte horizonlijn, daaronder de zee. */
.logo { display: flex; align-items: center; gap: 10px; color: inherit; flex-shrink: 0; }
.logo:hover { text-decoration: none; color: inherit; }
.logo__merk {
  width: 30px; height: 30px; border-radius: 9px; overflow: hidden; flex-shrink: 0;
  display: grid; grid-template-rows: 1fr 1fr;
}
.logo__gevels { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.logo__gevels span:nth-child(1) { background: var(--eiland-accent-1); }
.logo__gevels span:nth-child(2) { background: var(--eiland-accent-2); }
.logo__gevels span:nth-child(3) { background: var(--eiland-accent-3); }
.logo__zee { background: var(--eiland-lagune); border-top: 3px solid var(--bg); }
.logo__naam { font-family: var(--font-kop); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo__tld { font-weight: 400; color: var(--action); }

/* ---------------------------------------------------------------- kop */
.kop { border-bottom: 1px solid var(--line); }
.kop__rij { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.hoofdmenu {
  display: flex; gap: 2px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.hoofdmenu::-webkit-scrollbar { display: none; }
.hoofdmenu a {
  flex-shrink: 0; color: var(--text); font-weight: 700; font-size: 15px;
  padding: 8px 12px; border-radius: var(--radius-pil);
}
.hoofdmenu a:hover { background: var(--surface-zacht); color: var(--text); text-decoration: none; }
.hoofdmenu a[aria-current="page"] { background: var(--surface-zacht); }

/* Kop over de hero (homepage): wit op foto */
.kop--hero { position: relative; z-index: 3; border-bottom: 0; color: #fff; }
.kop--hero .kop__rij { padding-top: 22px; padding-bottom: 22px; gap: 28px; }
.kop--hero .logo__merk { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); }
.kop--hero .logo__zee { border-top-color: #fff; }
.kop--hero .logo__naam { font-size: 22px; }
.kop--hero .logo__tld { color: inherit; opacity: .85; }
.kop--hero .hoofdmenu { justify-content: center; gap: 4px; }
.kop--hero .hoofdmenu a { color: #fff; padding: 10px 12px; }
.kop--hero .hoofdmenu a:hover { background: rgba(255,255,255,.16); color: #fff; }

/* Net boven de grens van het mobiele menu passen tien items alleen met iets minder lucht. */
@media (min-width: 1180px) and (max-width: 1359px) {
  .hoofdmenu a, .kop--hero .hoofdmenu a { padding-left: 8px; padding-right: 8px; }
  .kop--hero .hoofdmenu { gap: 2px; }
  .kop--hero .kop__rij { gap: 20px; }
}

/* Op een smal scherm schuift het menu onder het logo, en blijft het compleet:
   mobiel toont dezelfde links als desktop. */
@media (max-width: 1179px) {
  .kop__rij { flex-wrap: wrap; row-gap: 10px; }
  .hoofdmenu { order: 3; flex-basis: 100%; margin: 0 calc(var(--rand) * -1); padding: 0 var(--rand); }
  .kop--hero .hoofdmenu { justify-content: flex-start; }
}

.kop__acties { display: flex; gap: 10px; align-items: center; margin-left: auto; flex-shrink: 0; }

/* ---------------------------------------------------------------- mobiel menu
   Onder 1180px vervangt een menuknop de scrollbare rij, maar alleen met
   JavaScript: zonder JS blijft de rij staan. Het paneel is een <dialog>, dus
   focus, Esc en de achtergrond regelt de browser. */
.menuknop {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 16px; border-radius: var(--radius-pil);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  background: transparent; color: inherit; border: 1.5px solid currentColor;
}
.menuknop:hover { background: var(--surface-zacht); }
.kop--hero .menuknop:hover { background: rgba(255,255,255,.16); }
.menuknop__streepjes { display: grid; gap: 4px; width: 18px; }
.menuknop__streepjes span { height: 2px; border-radius: 2px; background: currentColor; }

@media (max-width: 1179px) {
  .js .hoofdmenu { display: none; }
  .js .menuknop { display: inline-flex; }
}
/* Op een telefoon past naast logo en menuknop geen tweede knop; "Plan je reis" staat in het paneel. */
@media (max-width: 520px) {
  .js .kop__plan { display: none; }
}

.menupaneel {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; max-width: none; height: 100%; max-height: none;
  height: 100dvh; max-height: 100dvh;
  background: var(--surface); color: var(--text);
  overscroll-behavior: contain;
}
.menupaneel[open] { display: flex; flex-direction: column; animation: menuIn var(--motion-base) ease-out; }
.menupaneel::backdrop { background: var(--donker); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.menupaneel__kop {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px var(--rand); border-bottom: 1px solid var(--line);
}
.menupaneel__sluit {
  width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 12px; border: 0; background: var(--bg); color: var(--text); cursor: pointer;
}
.menupaneel__sluit:hover { background: var(--surface-zacht); }

.menupaneel__inhoud { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.menupaneel ul { list-style: none; margin: 0; padding: 0; }

/* Eén regel per menu-item: titel met feit, een tik klapt hem open op dezelfde plek. */
.mm { border-bottom: 1px solid var(--line); }
.mm__regel {
  min-height: 60px; display: flex; align-items: center; gap: 12px;
  padding: 8px var(--rand); cursor: pointer; list-style: none;
}
.mm__regel::-webkit-details-marker { display: none; }
.mm[open] .mm__regel, .mm__inhoud { background: var(--bg); }
.mm__tekst { flex: 1; display: flex; flex-direction: column; }
.mm__titel { font-family: var(--font-kop); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.mm__feit { font-size: 13px; color: var(--text-muted); }
.mm__pijl {
  width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform var(--motion-base);
}
.mm[open] .mm__pijl { transform: rotate(-135deg); }
.mm__inhoud { padding: 2px var(--rand) 18px; }
.mm__alles {
  min-height: 48px; display: flex; align-items: center; justify-content: space-between;
  margin: 6px 0 4px; padding: 0 14px; border-radius: 12px;
  background: var(--donker); color: #fff; font-weight: 700;
}
.mm__alles:hover { color: #fff; text-decoration: none; opacity: .92; }
.mm__links a { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 700; }
.mm__lijst .mega__rij { min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mm__inhoud .mega__label { margin-top: 16px; }
.mm__inhoud .mega__kaart { margin-top: 16px; min-height: 0; }

.menupaneel__extra { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 16px var(--rand) 24px; }
.menupaneel__extra a { min-height: 32px; display: flex; align-items: center; color: var(--text-muted); font-size: 14px; }
.menupaneel__voet { flex: none; padding: 12px var(--rand) 14px; border-top: 1px solid var(--line); background: var(--surface); }
.menupaneel__plan { width: 100%; min-height: 50px; }

/* Geen scrollende pagina achter het open menu */
html:has(.menupaneel[open]) { overflow: hidden; }

/* ---------------------------------------------------------------- mega menu
   Vanaf 1180px: hover of klik op een menu-item opent één paneel onder de kop,
   voor elk item met dezelfde opbouw: links · uitgelicht · één kaart. */
.kop { position: relative; z-index: 20; }
.mega {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(16, 35, 58, .45);
  max-height: calc(100vh - 100%); overflow-y: auto;
}
.mega__paneel:not([hidden]) { animation: megaIn var(--motion-fast) ease-out; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega__waas { position: fixed; inset: 0; z-index: 19; background: rgba(16, 35, 58, .45); }
@media (max-width: 1179px) { .mega, .mega__waas { display: none; } }

.mega__raster {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 40px;
  padding-top: 28px; padding-bottom: 30px;
}
.mega__kolom { display: flex; flex-direction: column; min-width: 0; }
.mega a { color: var(--text); }
.mega a:hover { color: var(--action); text-decoration: none; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega__titel {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-kop); font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -.03em;
}
.mega__titel span { font-size: 18px; color: var(--action); }
.mega__feit { margin: 4px 0 12px; font-size: 14px; color: var(--text-muted); }
.mega__links a { display: block; padding: 7px 0; border-top: 1px solid var(--line); font-weight: 700; }
.mega__alles {
  display: flex; justify-content: space-between; margin-top: 10px; padding: 10px 14px;
  border-radius: 10px; background: var(--donker); font-weight: 700;
}
.mega .mega__alles, .mega .mega__alles:hover { color: #fff; }
.mega__alles:hover { opacity: .92; }

.mega__label {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
}
.mega__rij {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px;
  color: var(--text);
}
.mega__lijst .mega__rij { padding: 11px 0; border-bottom: 1px solid var(--line); }
.mega__rijtitel { font-weight: 700; font-size: 16px; }
.mm .mega__rijtitel { font-size: 15px; }
.mega__waarde { font-size: 14px; font-weight: 700; color: var(--action); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mega__meta { grid-column: 1; font-size: 13.5px; color: var(--text-muted); }

.mega__kaart {
  display: flex; flex-direction: column; min-height: 300px; overflow: hidden;
  border-radius: var(--radius-card); background: var(--donker);
}
.mega .mega__kaart, .mega__kaart, .mega__kaart:hover { color: #fff; text-decoration: none; }
.mega__beeld { display: block; width: 100%; height: 140px; object-fit: cover; flex: none; }
.mega__kaartinhoud { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.mega__kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--live); }
.mega__kaarttitel {
  margin: 10px 0 8px; font-family: var(--font-kop); font-weight: 700; font-size: 24px; line-height: 1.15;
  letter-spacing: -.02em; text-wrap: pretty;
}
.mega__kaarttekst {
  font-size: 14px; color: var(--donker-tekst); text-wrap: pretty;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.mega__cta { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--live); }
.mega__kaart:hover .mega__cta { text-decoration: underline; }

/* Het menu-item van het open paneel */
.hoofdmenu a[aria-expanded="true"] { color: var(--action); background: var(--surface-zacht); }
.kop--hero .hoofdmenu a[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.22); }

/* ---------------------------------------------------------------- knoppen */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-pil);
  font: inherit; font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.knop:hover { text-decoration: none; }
.knop--primair { background: var(--action); color: #fff; border-color: var(--action); }
.knop--primair:hover { background: var(--action-hover); border-color: var(--action-hover); color: #fff; }
.knop--donker { background: var(--donker); color: #fff; }
.knop--donker:hover { background: var(--action); color: #fff; }
.knop--boek { background: var(--book); color: var(--eiland-inkt); border-color: var(--book); }
.knop--boek:hover { background: var(--book-hover); color: var(--eiland-inkt); }
.knop--secundair { background: transparent; color: var(--text); border-color: var(--text); }
.knop--secundair:hover { background: var(--surface-zacht); color: var(--text); }
.knop--zand { background: var(--eiland-zand); color: var(--eiland-inkt); }
.knop--zand:hover { background: #fff; color: var(--eiland-inkt); }
.knop--rond {
  width: 46px; height: 46px; padding: 0; min-height: 0;
  border: 1.5px solid rgba(255,255,255,.7); background: rgba(16,35,58,.15); color: #fff;
}

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--radius-pil);
  font-size: 13px; font-weight: 700; border: 1.5px solid transparent; color: var(--eiland-inkt);
}
.badge--live { background: var(--live); }
.badge--nieuw { background: var(--tip); }
.badge--partner { background: transparent; color: var(--text); border-color: var(--text); }
.badge--netwerk { background: var(--live); }
.badge--geverifieerd { background: var(--quiet); }
.badge--neutraal { background: var(--surface-zacht); color: var(--text); }
.badge--verouderd { background: var(--verouderd); color: var(--text); }
.livestip {
  width: 7px; height: 7px; border-radius: var(--radius-pil); display: inline-block;
  background: currentColor; position: relative;
}
.livestip::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: rgb(46,196,198); animation: livepulse 2s infinite;
}

/* ---------------------------------------------------------------- pagina */
.pagina { padding-top: 48px; padding-bottom: 128px; }
.kruimels { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.kruimels ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kruimels li + li::before { content: "/"; margin-right: 6px; }
.paginatitel {
  font-size: clamp(48px, 6.4vw, 96px); line-height: .92; letter-spacing: -.04em;
  margin: 0; max-width: 14ch;
}
.intro { margin: 18px 0 28px; font-size: 19px; color: var(--text-muted); max-width: 52ch; }

.in-aanbouw {
  margin-top: 40px; padding: 28px; border-radius: var(--radius-blok);
  background: var(--surface); border: 1px solid var(--line); max-width: 640px;
}
.in-aanbouw p { margin: 8px 0 0; color: var(--text-muted); }

/* ---------------------------------------------------------------- voet */
.voet { background: var(--donker); color: var(--donker-tekst); padding: 80px 0 32px; }
.voet a { color: var(--donker-tekst); }
.voet a:hover { color: #fff; }
.voet__raster {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 32px; padding-bottom: 56px; border-bottom: 1px solid var(--donker-lijn);
}
.voet__merk { grid-column: span 2; min-width: 0; }
@media (max-width: 420px) { .voet__merk { grid-column: auto; } }
.voet__logo { font-family: var(--font-kop); font-weight: 700; font-size: 28px; color: #fff; letter-spacing: -.02em; }
.voet__logo span { font-weight: 400; opacity: .8; }
.voet__belofte { margin: 14px 0 0; max-width: 40ch; }
.voet__belofte-link { display: inline-block; margin-top: 14px; color: var(--live) !important; font-weight: 700; }
.voet .kolomkop {
  color: #fff; font-family: var(--font-tekst); font-weight: 700; font-size: 15px; margin: 0 0 14px;
  letter-spacing: .04em; text-transform: uppercase;
}
.voet ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.voet__onder {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 24px; font-size: 14px;
}
.voet__onder-links { display: flex; gap: 20px; flex-wrap: wrap; }
.voet__binnenkort { opacity: .6; }

/* Lange Nederlandse samenstellingen ("Fotoverantwoording") passen in groot
   kopformaat niet op een telefoon: laat ze afbreken met een koppelteken. */
h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; }
