/* Elevation 3.1 — gedeelde verfijning voor alle pagina's
   Laadt als laatste stylesheet. Overschrijft tokens en gedeelde onderdelen. */

:root {
  /* Eén vlakke diepblauwe tint en één licht vlak in plaats van verlopen */
  --diep-verloop: #23397f;
  --paneel-licht: #f4f6fa;
  --rule: #dfe4eb;
  --verf-diep: #23397f;
  --verf-lijn: #e3e7ee;
  --verf-lijn-diep: rgb(255 255 255 / 14%);
  --verf-tekst-zacht: #5b6577;
  --vlak-radius: 14px;
  /* Elevation diep: het ene materiaal voor alle donkerblauwe vlakken. Een diepblauwe basis met zachte
     lichtere plekken (het stilstaande beeld van de aurora in het doelenpaneel) en een fijne korrel.
     De korrel komt alleen op vlakken zonder eigen puntjesveld. netwerkveld.js tekent in het doelenpaneel
     exact dezelfde lagen, dus houd de waarden daar gelijk. */
  --elevation-diep:
    radial-gradient(circle farthest-corner at 92% 10%, rgb(120 150 240 / 38%), rgb(120 150 240 / 0) 48%),
    radial-gradient(circle farthest-corner at 18% 32%, rgb(74 108 232 / 55%), rgb(74 108 232 / 0) 66%),
    radial-gradient(circle farthest-corner at 82% 85%, rgb(44 77 202 / 75%), rgb(44 77 202 / 0) 71%),
    radial-gradient(circle farthest-corner at 45% 65%, rgb(24 40 100 / 45%), rgb(24 40 100 / 0) 88%),
    #1f3373;
  --elevation-korrel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='white'%3E%3Ccircle cx='0.0' cy='0.0' r='1' fill-opacity='0.170'/%3E%3Ccircle cx='238.0' cy='200.7' r='1' fill-opacity='0.246'/%3E%3Ccircle cx='74.8' cy='75.9' r='1' fill-opacity='0.252'/%3E%3Ccircle cx='70.4' cy='131.5' r='1' fill-opacity='0.183'/%3E%3Ccircle cx='160.1' cy='149.2' r='1' fill-opacity='0.102'/%3E%3Ccircle cx='34.6' cy='4.6' r='1' fill-opacity='0.084'/%3E%3Ccircle cx='81.3' cy='21.8' r='1' fill-opacity='0.145'/%3E%3Ccircle cx='65.4' cy='97.9' r='1' fill-opacity='0.229'/%3E%3Ccircle cx='172.3' cy='179.6' r='1' fill-opacity='0.259'/%3E%3Ccircle cx='69.8' cy='172.9' r='1' fill-opacity='0.207'/%3E%3Ccircle cx='57.1' cy='136.5' r='1' fill-opacity='0.121'/%3E%3Ccircle cx='88.2' cy='32.1' r='1' fill-opacity='0.080'/%3E%3Ccircle cx='109.7' cy='175.7' r='1' fill-opacity='0.122'/%3E%3Ccircle cx='194.7' cy='227.3' r='1' fill-opacity='0.208'/%3E%3Ccircle cx='130.2' cy='76.0' r='1' fill-opacity='0.259'/%3E%3Ccircle cx='205.0' cy='71.8' r='1' fill-opacity='0.229'/%3E%3Ccircle cx='123.5' cy='73.0' r='1' fill-opacity='0.144'/%3E%3Ccircle cx='220.4' cy='108.0' r='1' fill-opacity='0.083'/%3E%3C/svg%3E") 0 0 / 240px 240px;
}

/* ---------- Typografie ---------- */
main :is(h1, h2) { font-weight: 500; }
main h3 { font-weight: 500; }

.loan-range { color: var(--verf-tekst-zacht) !important; font-size: 14px !important; font-weight: 500 !important; }
.loan-range::before { width: 20px !important; height: 1px !important; background: var(--action-blue) !important; }

/* ---------- Hero-achtergronden ---------- */
.hero-doorlopend:not(.hero-lijnwerk) { background: linear-gradient(180deg, #fbfcfd 0%, #f2f4f8 100%) !important; }

/* ---------- Knoppen ---------- */
main .action {
  border-radius: 999px;
  padding: 15px 22px 15px 24px;
  min-height: 52px;
  font-weight: 550;
  background: var(--action-blue);
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 18%) inset, 0 6px 16px -8px rgb(35 57 127 / 55%);
}
main .action:hover { background: var(--action-hover); }

/* ---------- Links: pijl blijft, maar rustiger ---------- */
:is(.inline-link, .alle-cases, .case-link, .audience-links a, .tekstactie) > span[aria-hidden] {
  font-size: .9em; opacity: .6; transition: transform .16s ease, opacity .16s;
}
:is(.inline-link, .alle-cases, .case-link, .audience-links a, .tekstactie):hover > span[aria-hidden] { opacity: 1; transform: translateX(3px); }
:is(.inline-link, .alle-cases, .audience-links a):hover .linktekst { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Logostroken ---------- */
.media-binnen { border-bottom-color: var(--verf-lijn); }
.media-binnen h2 { font-size: 14px !important; color: #7a8394; letter-spacing: 0 !important; font-weight: 500; }
.media-reeks img { mix-blend-mode: multiply; filter: grayscale(1) brightness(1.12) contrast(1.5); opacity: .5; transition: opacity .2s, filter .2s; }
.media-reeks li:hover img { filter: none; opacity: 1; }

/* ---------- Kopregel ---------- */
.mast.menu-gereed:not(.open) { border-bottom-color: rgb(32 39 53 / 7%); }

/* ---------- Footer ---------- */
.slotvoet { background: #fbfcfd; border-top-color: var(--verf-lijn); }
.slotvoet-kader { border-inline: 0; }
.slotvoet-basis { border-top-color: var(--verf-lijn); }
.slotvoet h2 { font-weight: 550; }
.media-reeks img[alt="Vlex Vending"] { filter: grayscale(1) brightness(.7) contrast(2) brightness(1.12); }

/* ---------- Privacyverklaring en algemene voorwaarden ---------- */
/* Hetzelfde rustige beeldmerk als op de homepage en Over ons */
.privacy-beeld { filter: none; }
@media (min-width: 601px) { .privacy-beeld { width: min(100%, 250px); } }
.privacy-beeld::before { content: none; }
.privacy-beeld::after {
  background:
    repeating-linear-gradient(23deg, transparent 0 3.4px, rgb(255 255 255 / 22%) 3.4px 4.2px, transparent 4.2px 6px),
    linear-gradient(160deg, #8aa3e6 0%, #4d6dd6 45%, #2c4dca 100%);
}
.privacy-inleiding { color: var(--verf-tekst-zacht); }
.privacy-alineas address { border-left: 0; padding-left: 0; }

/* Ronde 2 — zijkolom naast een grote titel: uitgelijnd op de onderkant van de titel,
   met dezelfde dunne lijn erboven als in de werkwijze. */
.netwerk-inleiding, .bondskop-zij, .route-kosten, .routes-heading > p, .partner-verhaaltekst {
  align-self: end; padding-top: 18px; border-top: 1px solid var(--verf-lijn);
}

/* Ronde 2 — lichte kaarten: in rust een zacht paneelvlak, bij hover wit met een rand */
html body [data-kaartlicht=""] {
  background: var(--paneel-licht, #f4f6fa); border-color: transparent;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
html body [data-kaartlicht=""]:is(:hover, :focus-visible) {
  background: #fff; border-color: var(--verf-lijn); box-shadow: 0 12px 30px -20px rgb(32 39 53 / 40%);
}

/* Ronde 2 — blauwe blokken met een levend puntjesraster op de achtergrond */
[data-netwerkveld="raster"] { position: relative; isolation: isolate; }
[data-netwerkveld="raster"] > .netwerkveld-doek {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none;
}
[data-netwerkveld="raster"] > :not(.netwerkveld-doek) { position: relative; z-index: 1; }

/* Ronde 2 — werkwijze: één doorlopende lijn met een trage, subtiele golf (desktop); op mobiel per fase */
:root { --golflijn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14'%3E%3Cpath d='M0 7Q60 2.5 120 7T240 7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E"); }
@keyframes golflijn { to { -webkit-mask-position: 240px 50%; mask-position: 240px 50%; } }
@media (min-width: 851px) {
  .route-fasen, .trajectvlak .fasen { position: relative; }
  .route-fasen::before, .trajectvlak .fasen::before {
    content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: -7px; height: 14px; pointer-events: none;
    background: linear-gradient(90deg, #2c4dca 0%, #5d78d8 50%, #a3b4ea 100%);
    -webkit-mask: var(--golflijn) 0 50% / 240px 14px repeat-x; mask: var(--golflijn) 0 50% / 240px 14px repeat-x;
    animation: golflijn 9s linear infinite;
  }
  html body :is(.route-fase, .trajectvlak .fase) { border-top-color: transparent; }
  html body :is(.route-fase, .trajectvlak .fase)::before { display: none; }
}
@media (max-width: 850px) {
  html body :is(.route-fase, .trajectvlak .fase) { border-top-color: transparent; }
  html body :is(.route-fase, .trajectvlak .fase)::before {
    top: -7px; height: 14px; width: 100%; outline: 0;
    -webkit-mask: var(--golflijn) 0 50% / 240px 14px repeat-x; mask: var(--golflijn) 0 50% / 240px 14px repeat-x;
    animation: golflijn 9s linear infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .route-fasen::before, .trajectvlak .fasen::before, html body :is(.route-fase, .trajectvlak .fase)::before { animation: none; }
}

/* ---------- Pijlen: overal hetzelfde getekende haakje als in de blauwe knoppen ----------
   De tekstpijlen (→ ↓ ←) blijven in de HTML staan, maar worden onzichtbaar; een dun haakje van 1,5 px neemt
   hun plaats in. Bij hover of focus schuift het 2 px in de looprichting, zoals in de knoppen. */
:is(.linktekst + :is(span, i)[aria-hidden="true"], .cover-foot > [aria-hidden="true"], .contactkaarten a:not([target="_blank"]) .kaartpijl,
    .netwerk-routekeuzes i, .review-grid h2 > [aria-hidden="true"], .herorientatie-terug > [aria-hidden="true"]:first-child) {
  --pijl-draai: 45deg; --pijl-schuif: 2px 0; --pijl-plek: 0 -50%;
  position: relative; display: inline-block; flex: none;
  width: .62em; height: 1em; overflow: hidden; vertical-align: -.12em;
  font-size: inherit !important; line-height: 1; opacity: .75;
  -webkit-text-fill-color: transparent; transform: none !important;
}
:is(.linktekst + :is(span, i)[aria-hidden="true"], .cover-foot > [aria-hidden="true"], .contactkaarten a:not([target="_blank"]) .kaartpijl,
    .netwerk-routekeuzes i, .review-grid h2 > [aria-hidden="true"], .herorientatie-terug > [aria-hidden="true"]:first-child)::after,
:is(#vorige-case, #volgende-case)::after {
  content: ""; position: absolute; top: 50%; left: .06em;
  width: .4em; height: .4em; border: solid currentColor; border-width: 1.5px 1.5px 0 0;
  translate: var(--pijl-plek); rotate: var(--pijl-draai);
}
/* Omlaag: links die naar een plek verderop in de pagina gaan (!important, omdat de basisregel hierboven zwaarder weegt) */
:is(.hero-method, .ondernemers-tekstlink, .portret-link, .partner-verder, .uitgifte-storylink) > .linktekst + [aria-hidden="true"],
.cover-foot > [aria-hidden="true"] { --pijl-draai: 135deg !important; --pijl-schuif: 0 2px !important; --pijl-plek: .04em -75% !important; }
/* Terug */
.herorientatie-terug > [aria-hidden="true"]:first-child { --pijl-draai: -135deg !important; --pijl-schuif: -2px 0 !important; --pijl-plek: .14em -50% !important; }
/* De ronde knoppen van de campagnes op de homepage */
:is(#vorige-case, #volgende-case) { position: relative; -webkit-text-fill-color: transparent; }
:is(#vorige-case, #volgende-case)::after { left: 50%; width: 7px; height: 7px; --pijl-draai: 45deg; --pijl-plek: -70% -50%; }
#vorige-case::after { --pijl-draai: -135deg; --pijl-plek: -30% -50%; }
@media (prefers-reduced-motion: no-preference) {
  :is(.linktekst + :is(span, i)[aria-hidden="true"], .cover-foot > [aria-hidden="true"], .contactkaarten a:not([target="_blank"]) .kaartpijl,
      .netwerk-routekeuzes i, .review-grid h2 > [aria-hidden="true"], .herorientatie-terug > [aria-hidden="true"]:first-child) {
    transition: translate .18s ease-out, opacity .18s ease-out;
  }
}
@media (any-hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(a, button):is(:hover, :focus-visible) :is(.linktekst + :is(span, i)[aria-hidden="true"], .cover-foot > [aria-hidden="true"],
      .kaartpijl, .netwerk-routekeuzes i, .review-grid h2 > [aria-hidden="true"], .herorientatie-terug > [aria-hidden="true"]:first-child) {
    translate: var(--pijl-schuif); opacity: 1;
  }
}
/* Inzichten: de getekende pijl met steel wordt hetzelfde haakje (de steel valt weg) */
.pijl { width: .62em; height: 1em; background: none; vertical-align: -.12em; }
.pijl::after { right: auto; left: .06em; }

/* Contactkaarten in Elevation diep. Het materiaal ligt vast in de kaart, dus bij hover schuift de achtergrond niet mee. */
.contactkaarten a { background: var(--elevation-korrel), var(--elevation-diep); }
.contactkaarten a:is(:hover, :focus-visible) { background-position: 0 0; }
