/* OV Buddy — kleuren uit het donkere smartphonethema (Haags nachtblauw, seinlicht). */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070d18;
  --surface: #121a2b;
  --surface-muted: #1a2438;
  --line: #2a3548;
  --accent: #ff6a00;
  --on-accent: #070d18;
  --cream: #f2f5fa;
  --muted: #9aa3b5;
  /* Uitlegtekst onder kopjes: lichter dan muted in donker, donker genoeg in licht. */
  --caption: #d4d4d8;
  --link: #8bb4f0;
  --delay: #e5383b;
  --navy: #1a4b8c;
  --header: 4.25rem;
  --measure: 40rem;
  --wide: 72rem;
  --pad: 1.25rem;
  /* Bovenrand van kaarten: een fractie lichter dan --line, alsof er licht van boven valt. */
  --hairline: #3e4e68;
  /* Zelfde lettertypes als de app: Inter voor tekst, Plus Jakarta Sans voor koppen. */
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--cream);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 30;
  padding: 0.45rem 0.75rem;
  background: var(--cream);
  color: var(--bg);
  font-weight: 650;
  text-decoration: none;
  border-radius: 0.4rem;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  backdrop-filter: blur(8px) saturate(1.1);
}

.site-header.is-compact {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
}

.site-header.is-compact .header-inner {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

/* Taalkeuze. Op een breed scherm de code, de volledige namen in het menu. */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.lang a {
  min-width: 2rem;
  padding: 0.38rem 0.45rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.lang a:hover {
  color: var(--cream);
}

.lang a[aria-current="true"] {
  background: color-mix(in srgb, var(--muted) 24%, transparent);
  color: var(--cream);
}

/* De merknaam blijft één regel. */
.brand-name { white-space: nowrap; }

.brand-dot {
  color: var(--accent);
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 22%;
}

/* Land, taal en thema staan rechts bij elkaar. Op een smal scherm blijven alleen de vlaggen in de balk. */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.05rem;
}

.header-split {
  display: none;
}

.landpick {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.05rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.landpick a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.4rem;
  border-radius: 0.6rem;
  line-height: 0;
  opacity: 0.72;
}

.landpick a:hover,
.landpick a:focus-visible {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  opacity: 1;
}

.landpick a[aria-pressed="true"] {
  background: color-mix(in srgb, var(--muted) 28%, transparent);
  opacity: 1;
}

.landpick a:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.landpick .flag {
  display: block;
  width: 1.35rem;
  height: 0.9rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.site-header.is-compact .brand img {
  width: 2.15rem;
  height: 2.15rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--cream);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.menu-ico {
  position: relative;
  width: 1.05rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  flex: none;
}

.menu-ico::before,
.menu-ico::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, top 0.22s ease;
}

.menu-ico::before { top: -6px; }
.menu-ico::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-ico { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-ico::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-ico::after { top: 0; transform: rotate(-45deg); }

.nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  position: relative;
  z-index: 1;
  color: var(--cream);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  min-height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.nav a[aria-current="page"] {
  color: var(--link);
}

.nav-mark {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  border-radius: 999px;
  background: rgba(139, 180, 240, 0.18);
  background: color-mix(in srgb, var(--link) 18%, transparent);
  pointer-events: none;
  opacity: 0;
}

.nav-mark.is-set {
  opacity: 1;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), width 0.34s cubic-bezier(0.22, 1, 0.36, 1), height 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.25rem var(--pad) 3.5rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.15rem);
}

h2 {
  margin: 0;
  font-size: 1.25rem;
}

.lead {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.4;
}

.quiet {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.hero {
  display: grid;
  gap: 2rem;
}

.hero-badge {
  margin: 1.35rem 0 0;
}

.route {
  margin: 0;
}

.route svg {
  display: block;
  width: 100%;
  height: auto;
}

.route .line {
  fill: none;
  stroke: url(#lijnkleuren);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.route .halt {
  stroke: var(--bg);
  stroke-width: 3;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: var(--on-accent);
  filter: brightness(1.06);
}

.actions {
  margin: 2.25rem 0 0;
  text-align: center;
}

.badge {
  display: inline-block;
  line-height: 0;
}

.badge img {
  display: block;
  height: 4.75rem;
  width: auto;
}

.panel .badge {
  margin-top: 1.15rem;
}

.quiet.strip {
  margin-top: 1.1rem;
  text-align: center;
}

@media (max-width: 767px) {
  .actions .button,
  .contact .button {
    width: 100%;
  }
}

.shots {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.75rem;
  align-items: start;
}

.unit {
  margin: 0;
  min-width: 0;
}

.unit figcaption {
  display: grid;
  gap: 0.3rem;
  max-width: 22rem;
  margin: 0.95rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  text-align: center;
}

.unit figcaption strong {
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 700;
}

.unit figcaption span {
  color: var(--caption);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.stage {
  display: flex;
  justify-content: center;
}

.device {
  position: relative;
  line-height: 0;
  transform-origin: center;
}

.bezel,
.screen {
  display: block;
}

.phone {
  width: min(100%, 16.5rem);
}

.phone .bezel {
  padding: 0.55rem 0.42rem 0.65rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, #3c4658 0%, #1a2030 18%, #10151f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 18px 32px rgba(0, 0, 0, 0.38);
}

.phone .screen {
  overflow: hidden;
  aspect-ratio: 1080 / 2375;
  border-radius: 1.45rem;
  background: #000;
}

.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 0.18rem;
  background: #465066;
}

.phone::before {
  left: 0;
  top: 18%;
  height: 18%;
  border-radius: 0.12rem 0 0 0.12rem;
}

.phone::after {
  right: 0;
  top: 24%;
  height: 11%;
  border-radius: 0 0.12rem 0.12rem 0;
}

.watch {
  width: min(100%, 13.5rem);
}

.watch .bezel {
  padding: 0.42rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #9aa3b5 0%, #4a5568 16%, #1c2433 52%, #0c1018 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    inset 0 -8px 14px rgba(0, 0, 0, 0.45),
    0 18px 32px rgba(0, 0, 0, 0.4);
}

.watch .screen {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #000;
  box-shadow: inset 0 0 0 2px #05070c;
}

.watch .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch::after {
  content: "";
  position: absolute;
  right: -0.28rem;
  top: 38%;
  width: 0.42rem;
  height: 16%;
  border-radius: 0 0.16rem 0.16rem 0;
  background: linear-gradient(90deg, #2a3142, #d5dde8 42%, #8b95a8);
}

.wear {
  margin-top: 4.5rem;
  padding: 2.4rem 1.25rem 2.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
}

.wear h2 {
  text-align: center;
}

.wear .shots {
  margin-top: 1.75rem;
}

.kicker {
  margin: 0.35rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prose h1 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.split {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.panel {
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  min-width: 0;
  max-width: 36rem;
}

.panel h2 {
  margin-bottom: 0.65rem;
}

.panel p,
.prose p {
  margin: 0.7rem 0 0;
}

.panel p:first-of-type,
.summary p {
  margin-top: 0.45rem;
}

.steps {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.panel > .steps:first-child {
  margin-top: 0;
}

.steps li + li {
  margin-top: 0.45rem;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
}

.summary {
  margin: 0 0 2rem;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.summary h2 {
  font-size: 1rem;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.prose h3 {
  margin: 1.4rem 0 0;
  font-size: 1.05rem;
}

.prose ul,
.prose ol {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.sheet-wrap {
  margin-top: 0.8rem;
  overflow-x: auto;
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sheet th,
.sheet td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.sheet th {
  color: var(--muted);
  font-weight: 650;
}

.contact {
  display: grid;
  gap: 0.7rem;
  max-width: 32rem;
  color: var(--cream);
}

.contact h2 {
  font-size: 1.15rem;
}

.contact p {
  margin: 0;
  color: var(--muted);
}

.contact label {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.contact input,
.contact textarea {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--cream);
  font: inherit;
  line-height: 1.45;
}

.contact textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact .button {
  justify-self: start;
  margin-top: 0.35rem;
}

main .contact {
  margin-top: 1.25rem;
}

.contact .sr input {
  width: 1px;
  min-width: 0;
  height: 1px;
  padding: 0;
  border: 0;
}

.form-error {
  margin: 1rem 0 0;
  color: var(--delay);
  font-weight: 650;
}

/* Op een smal scherm is dit één balk; daarbuiten tellen de kinderen gewoon mee in de kop. */
.header-bar { display: contents; }

@media (max-width: 1099px) {
  html.js .header-inner {
    row-gap: 0;
  }

  html.js .header-tools {
    display: none;
  }

  html.js .header-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 0.4rem;
  }

  /* Logo links, land en menu rechts, alles op één regel. */
  html.js .header-bar .brand {
    flex: 0 1 auto;
    min-width: 0;
    gap: 0.45rem;
    margin-right: auto;
    font-size: 1.02rem;
  }

  html.js .brand img,
  html.js .site-header.is-compact .brand img {
    width: 2.05rem;
    height: 2.05rem;
  }

  html.js .landpick {
    margin-right: 0;
    padding: 0;
    gap: 0;
  }

  html.js .landpick a {
    min-width: 2.15rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.2rem;
  }

  html.js .landpick .flag { width: 1.15rem; height: 0.78rem; }

  html.js .menu-toggle {
    display: inline-flex;
    flex: none;
    justify-content: center;
    width: 2.75rem;
    min-width: 2.75rem;
    margin-left: 0.15rem;
    padding: 0;
    gap: 0;
  }

  html.js .menu-toggle .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  html.js .nav {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, visibility 0s linear 0.32s;
  }

  html.js .nav.is-open {
    max-height: 40rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-bottom: 0.35rem;
    transition: max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, visibility 0s;
  }

  html.js .nav a {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.75rem 0.95rem;
    font-size: 1.05rem;
    opacity: 0;
    transform: translateY(-6px);
  }

  html.js .nav.is-open a {
    opacity: 1;
    transform: none;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.js .nav.is-open a:nth-of-type(1) { transition-delay: 0.03s; }
  html.js .nav.is-open a:nth-of-type(2) { transition-delay: 0.06s; }
  html.js .nav.is-open a:nth-of-type(3) { transition-delay: 0.09s; }
  html.js .nav.is-open a:nth-of-type(4) { transition-delay: 0.12s; }
}

@media (max-width: 767px) {
  .sheet thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .sheet,
  .sheet tbody,
  .sheet tr,
  .sheet td {
    display: block;
    width: 100%;
  }

  .sheet tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .sheet td {
    padding: 0.2rem 0;
    border: 0;
  }

  .sheet td::before {
    content: attr(data-h);
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 650;
  }
}

@media (min-width: 768px) {
  :root {
    --pad: 1.75rem;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2.5rem;
  }

  .shots {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .shots .unit:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 22rem);
  }

  .phone {
    width: min(100%, 16.5rem);
  }

  .watch {
    width: min(100%, 14rem);
  }

  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  html.js .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
  }

  html.js .header-bar {
    display: contents;
  }

  html.js .header-inner .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-right: 0;
  }

  html.js .header-inner > .nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    order: 0;
    margin: 0;
    flex-wrap: nowrap;
  }

  html.js .header-tools {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
  }

  html.js .header-split {
    display: block;
    width: 1px;
    height: 1.15rem;
    margin: 0 0.45rem 0 0.2rem;
    background: color-mix(in srgb, var(--muted) 45%, transparent);
    flex: none;
  }
}

@media (min-width: 1280px) {
  :root {
    --pad: 2rem;
  }

  .wrap {
    padding-top: 3.25rem;
  }

  .hero {
    gap: 4rem;
  }

  .shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
  }

  .shots .unit:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .phone {
    width: min(100%, 18rem);
  }

  .watch {
    width: 15rem;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .device {
    transition: transform 0.35s ease, filter 0.35s ease;
  }

  .device:hover {
    transform: translateY(-8px);
    filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.28));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header,
  .brand img,
  .header-inner {
    transition: padding 0.18s ease, width 0.18s ease, height 0.18s ease, background-color 0.18s ease, backdrop-filter 0.18s ease;
  }

  html.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  html.js .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  html.js .route:not(.is-in) .line {
    stroke-dashoffset: 1;
  }

  html.js .route.is-in .line {
    animation: draw 1.15s ease forwards;
  }

  html.js .route:not(.is-in) .halt {
    opacity: 0;
  }

  html.js .route.is-in .halt {
    animation: pop 0.35s ease forwards;
  }

  html.js .route.is-in .halt:nth-of-type(1) { animation-delay: 0.12s; }
  html.js .route.is-in .halt:nth-of-type(2) { animation-delay: 0.32s; }
  html.js .route.is-in .halt:nth-of-type(3) { animation-delay: 0.52s; }
  html.js .route.is-in .halt:nth-of-type(4) { animation-delay: 0.72s; }
  html.js .route.is-in .halt:nth-of-type(5) { animation-delay: 0.9s; }
}

@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes pop {
  from { opacity: 0; }
  to { opacity: 1; }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 160ms ease both;
}

::view-transition-new(root) {
  animation: fade-in 180ms ease both;
}

@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

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

  @view-transition {
    navigation: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .device:hover {
    transform: none;
    filter: none;
  }
}

/* Taalkeuze als tekst. Op een breed scherm de huidige taal, de andere eronder. */
.lang a { display: inline-flex; align-items: center; justify-content: flex-start; opacity: 1; white-space: nowrap; }
.lang a:hover { color: var(--cream); }
.lang svg, .lang .flag { display: none; }
.lang { position: relative; padding: 0; border: 0; background: transparent; }
.lang details { margin: 0; }
.lang summary { display: flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 2.5rem; padding: 0.4rem 0.55rem; cursor: pointer; list-style: none; border-radius: 0.6rem; color: var(--cream); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; background: transparent; }
.lang summary::after { content: ""; width: 0.38rem; height: 0.38rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.12rem) rotate(45deg); opacity: 0.75; flex: none; }
.lang summary:hover { background: color-mix(in srgb, var(--muted) 18%, transparent); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:focus-visible, .lang-menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang details:not([open]) .lang-menu { display: none; }
.lang-menu { position: absolute; top: calc(100% + 6px); left: auto; right: 0; z-index: 60; display: flex; flex-direction: column; align-items: stretch; gap: 0.1rem; min-width: 9.5rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.lang-menu a { display: flex; align-items: center; min-width: 0; padding: 0.45rem 0.7rem; border-radius: 999px; color: var(--cream); font-size: 0.85rem; font-weight: 650; }
.lang-menu a:hover { background: rgba(127,127,127,0.18); }
@media (min-width: 1100px) {
  .lang-menu a[aria-current="true"] { display: none; }
}

/* Smalle schermen: taal en thema bovenaan in het menu, als tekst en hetzelfde maantje. */
@media (max-width: 1099px) {
  html.js .nav-tools {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin: 0 0 0.35rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--line);
  }

  html.js .nav-tools .lang,
  html.js .nav-tools .theme-toggle { order: 0; }

  html.js .nav-tools .lang { border: 0; background: transparent; border-radius: 0; }

  html.js .nav-tools .lang summary { display: none; }

  html.js .nav-tools .lang-menu {
    position: static;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  html.js .nav-tools .lang-menu a {
    min-height: 2.75rem;
    opacity: 1;
    transform: none;
  }

  html.js .nav-tools .lang-menu a[aria-current="true"] {
    background: color-mix(in srgb, var(--muted) 24%, transparent);
    color: var(--cream);
  }

  html.js .nav-tools .theme-toggle { align-self: flex-start; margin: 0.2rem 0.8rem 0.15rem; }
}

/* Tijdelijke melding onder de kop (staking); zelfde uitstraling als een melding in het reisadvies. */
.site-notice {
  max-width: var(--wide);
  margin: 0.75rem auto 0;
  padding: 0 var(--pad);
}

.site-notice details {
  border-radius: 0.6rem;
  background: rgba(255, 138, 0, 0.12);
  font-size: 0.92rem;
}

.site-notice summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.8rem;
  color: var(--warn, #ff8a00);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.site-notice summary::-webkit-details-marker {
  display: none;
}

.site-notice summary svg {
  flex: none;
}

.site-notice .site-notice-chev {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.site-notice details[open] .site-notice-chev {
  transform: rotate(180deg);
}

.site-notice p {
  margin: 0;
  padding: 0 0.8rem 0.6rem;
  color: var(--cream);
  line-height: 1.5;
}

.site-notice p:last-child {
  padding-bottom: 0.8rem;
}

/* Direct onder de melding: minder ruimte boven de pagina, de melding geeft al afstand tot de kop. */
.site-notice + .wrap {
  padding-top: 1.25rem;
}

@media print {
  .site-notice {
    display: none;
  }
}

/* Kaarten: alleen de bovenrand lichter. Hover die border-color zet, wint daar overheen. */
.panel,
.summary,
.wear {
  border-top-color: var(--hairline);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header,
  .site-header.is-compact {
    background: var(--bg);
  }
}

/* ---------- Footer: merk, vier kolommen links, onderaan © en sociale media ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 2rem;
}

.footer-brand {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0.75rem;
}

.footer-brand p {
  margin: 0;
  max-width: 22rem;
  line-height: 1.5;
}

.footer-brand .badge img {
  height: 3.1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.footer-logo:hover {
  color: var(--cream);
}

.footer-logo img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 22%;
}

.footer-h {
  margin: 0 0 0.7rem;
  color: var(--cream);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-col ul {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--muted);
  text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--cream);
  text-decoration: underline;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem var(--pad) 2.25rem;
  border-top: 1px solid var(--line);
}

.footer-social {
  display: inline-flex;
  gap: 0.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.footer-social img {
  display: block;
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
    padding-top: 3rem;
  }

  .footer-brand {
    grid-column: auto;
  }
}

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

@media print {
  .footer-top,
  .footer-social {
    display: none;
  }
}
