/* =========================================================
   BALLPINNETJE — TERUGBLIK ONDERWEG | v3 — VERHAALPAGINA
   Samengevoegd stijlblad: gedeelde basis + wereldspecifieke stijl
   ========================================================= */

/* =========================================================
   BALLPINNETJE — BASISSTIJL
   Versie 1

   Bedoeld als startpunt voor nieuwe pagina's en werelden.
   Bevat alleen de gedeelde sitebasis:
   - kleuren en variabelen
   - basisopmaak
   - header + navigatie
   - vast schrijverspad
   - footer
   - mobiele navigatie
   - toegankelijkheid / reduced motion

   Paginaspecifieke secties, kaarten en illustraties horen in
   een apart stijlblad per wereld of pagina.
   ========================================================= */


/* =========================================================
   1. BASISVARIABELEN
   ========================================================= */

:root {
  --blue: #0a3fa8;
  --blue-dark: #062b74;
  --blue-soft: #eaf1ff;

  --yellow: #f2c400;
  --yellow-dark: #c89f00;
  --yellow-soft: #fff8cf;

  --silver-soft: #dfe3e8;
  --silver-deep: #9fa9b7;

  --ink: #171717;
  --muted: #626262;
  --line: #cfd5dd;

  --paper: #ffffff;

  --header: rgba(203, 210, 220, 0.96);
  --footer: #cbd2dc;

  --max-width: 1180px;

  --header-height: 95px;
  --breadcrumb-height: 42px;

  --radius: 24px;

  --shadow:
    0 12px 38px
    rgba(0, 0, 0, 0.07);

  --transition:
    180ms ease;
}


/* =========================================================
   2. BASIS
   ========================================================= */

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


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  color: var(--ink);
  background: var(--silver-soft);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;
  text-rendering: optimizeLegibility;
}


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


a {
  color: inherit;
}


button,
a {
  -webkit-tap-highlight-color: transparent;
}


button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}


/* =========================================================
   3. SKIPLINK
   ========================================================= */

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;

  padding:
    0.8rem
    1rem;

  color: white;
  background: var(--blue-dark);

  border-radius: 10px;
}


.skip-link:focus {
  top: 1rem;
}


/* =========================================================
   4. HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: var(--header);

  border-bottom:
    1px solid
    rgba(6, 43, 116, 0.16);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}


.header-inner {
  width:
    min(
      calc(100% - 2rem),
      var(--max-width)
    );

  min-height: var(--header-height);

  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 2rem;
}


.brand {
  display: inline-flex;
  align-items: center;

  text-decoration: none;
}


.brand-name {
  color: var(--blue);

  font-size:
    clamp(
      1.4rem,
      1.8vw,
      1.7rem
    );

  font-weight: 850;
  letter-spacing: -0.035em;
}


.main-nav {
  display: flex;
  align-items: center;

  gap: 0.25rem;
}


.main-nav a {
  padding:
    0.7rem
    0.9rem;

  color: var(--muted);

  font-size: 1.05rem;

  text-decoration: none;

  border-radius: 999px;

  transition:
    background var(--transition),
    color var(--transition);
}


.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-dark);
  background: var(--blue-soft);
}


.menu-toggle {
  display: none;

  width: 46px;
  height: 46px;

  border:
    1px solid
    var(--line);

  border-radius: 14px;

  background: var(--paper);

  cursor: pointer;
}


.menu-toggle span {
  display: block;

  width: 22px;
  height: 2px;

  margin: 5px auto;

  background: var(--ink);
}


/* =========================================================
   5. VAST SCHRIJVERSPAD
   ========================================================= */

.site-breadcrumb {
  position: sticky;
  top: var(--header-height);
  z-index: 990;

  min-height: var(--breadcrumb-height);

  display: flex;
  align-items: center;

  background:
    rgba(223, 227, 232, 0.96);

  border-bottom:
    1px solid
    rgba(6, 43, 116, 0.12);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}


.site-breadcrumb ol {
  width:
    min(
      calc(100% - 2rem),
      var(--max-width)
    );

  margin: 0 auto;
  padding: 0;

  display: flex;
  align-items: center;
  flex-wrap: nowrap;

  gap: 0.45rem;

  overflow-x: auto;
  overflow-y: hidden;

  color: var(--muted);

  font-size: 0.9rem;

  list-style: none;
  white-space: nowrap;

  scrollbar-width: none;
}


.site-breadcrumb ol::-webkit-scrollbar {
  display: none;
}


.site-breadcrumb a {
  color: var(--blue);

  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}


.site-breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}


/* =========================================================
   6. HERBRUIKBARE EYEBROW
   ========================================================= */

.eyebrow {
  margin:
    0
    0
    0.5rem;

  color: var(--blue);

  font-size: 0.86rem;
  font-weight: 800;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* =========================================================
   7. FOOTER
   ========================================================= */

.site-footer {
  margin-top: 0.8rem;

  padding:
    3rem
    0
    1.5rem;

  color: var(--ink);
  background: var(--footer);
}


.footer-inner {
  width:
    min(
      calc(100% - 2rem),
      var(--max-width)
    );

  margin-inline: auto;

  display: grid;

  grid-template-columns:
    1.2fr
    auto;

  gap: 2rem;

  align-items: start;
}


.footer-brand-name {
  display: inline-block;

  font-size: 1.2rem;
  line-height: 1.2;
}


.brand-blue {
  color: var(--blue);
}


.brand-yellow {
  color: var(--yellow-dark);
}


.footer-inner p {
  margin:
    0.3rem
    0
    0;

  color: #4f5966;
}


.footer-world-active {
  color: var(--blue-dark);
  font-weight: 850;
}


.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;

  gap:
    0.55rem
    1.5rem;
}


.footer-nav a {
  color: var(--blue);
  text-underline-offset: 4px;
}


.copyright {
  width:
    min(
      calc(100% - 2rem),
      var(--max-width)
    );

  margin:
    2rem
    auto
    0;

  padding-top: 1.2rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1.5rem;

  color: #4f5966;

  border-top:
    1px solid
    rgba(6, 43, 116, 0.14);

  font-size: 0.9rem;
}


.footer-signatuur {
  width: 150px;
  max-width: 70%;
  height: auto;

  display: block;
  flex: 0 0 auto;
}


/* =========================================================
   8. MOBIELE NAVIGATIE
   ========================================================= */

@media (max-width: 820px) {

  :root {
    --header-height: 62px;
    --breadcrumb-height: 34px;
  }


  .menu-toggle {
    display: block;
    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    border-radius: 12px;
  }


  .menu-toggle span {
    width: 20px;

    margin: 4px auto;
  }


  .header-inner {
    min-height: var(--header-height);

    gap: 0.75rem;
  }


  .brand-name {
    font-size: 1.12rem;
  }


  .site-breadcrumb ol {
    width:
      min(
        calc(100% - 1.4rem),
        var(--max-width)
      );

    gap: 0.35rem;

    font-size: 0.82rem;
  }


  .main-nav {
    position: absolute;

    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);

    padding: 0.7rem;

    display: none;
    flex-direction: column;
    align-items: stretch;

    border:
      1px solid
      var(--line);

    border-radius: 18px;

    background: var(--paper);

    box-shadow: var(--shadow);
  }


  .main-nav.is-open {
    display: flex;
  }


  .main-nav a {
    padding:
      0.9rem
      1rem;
  }


  .footer-inner {
    grid-template-columns: 1fr;

    gap: 1rem;
  }


  .footer-brand-name {
    font-style: italic;
  }


  .footer-brand-name .brand-blue,
  .footer-brand-name .brand-yellow {
    color: var(--ink);
  }


  .footer-nav {
    justify-content: flex-start;

    gap:
      0.35rem
      1rem;
  }


  .copyright {
    margin-top: 1.25rem;

    padding-top: 1rem;

    gap: 0.9rem;
  }

}


/* =========================================================
   9. KLEIN MOBIEL
   ========================================================= */

@media (max-width: 480px) {

  .brand-name {
    font-size: 1.08rem;
  }


  .site-breadcrumb ol {
    width:
      min(
        calc(100% - 1rem),
        var(--max-width)
      );

    font-size: 0.8rem;
  }


  .site-footer {
    padding:
      2rem
      0
      1rem;
  }


  .copyright {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    gap: 0.75rem;

    font-size: 0.82rem;
  }


  .copyright span {
    max-width: 215px;
  }


  .footer-signatuur {
    width: 110px;
    max-width: 34%;
  }

}


/* =========================================================
   10. GEREDUCEERDE BEWEGING
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {
    transition-duration:
      0.01ms !important;

    animation-duration:
      0.01ms !important;
  }

}


/* =========================================================
   BALLPINNETJE — Wereld van Leven | v1
   Paginaspecifieke stijl bovenop styles-basis.css.
   ========================================================= */

:root {
  /* Leven houdt de gedeelde Ballpinnetje-kleuren aan.
     Een eigen wereldtint kan later hier worden toegevoegd. */
  --life-card-top: #d7dbe0;
  --life-card-mid: #e2e5e9;
  --life-card-bottom: #cdd2d8;
}


/* HERO ===================================================== */

.hero {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: clamp(0.5rem, 0.9vw, 0.8rem) 0 clamp(1.2rem, 2.3vw, 2.1rem);

  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.hero h1 {
  margin: 0;
  color: var(--blue);

  font-size: clamp(3.8rem, 11vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.hero-line {
  max-width: 760px;
  margin: 1.5rem 0 0;

  color: var(--yellow-dark);

  font-size: clamp(1.22rem, 2.35vw, 1.65rem);
  font-weight: 750;
}

.hero-separator {
  color: var(--blue);
  font-weight: 850;
}

.hero-text {
  max-width: 680px;
  margin: 1.25rem 0 2rem;

  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.primary-button {
  min-height: 48px;
  padding: 0.85rem 1.3rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: white;
  background: var(--blue);

  border-radius: 999px;

  text-decoration: none;
  font-weight: 750;

  box-shadow: 0 8px 22px rgba(10, 63, 168, 0.18);

  transition:
    transform var(--transition),
    background var(--transition);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--blue-dark);
}

.hero-visual {
  width: clamp(230px, 24vw, 300px);
  aspect-ratio: 1 / 1;
  min-height: 0;

  display: grid;
  place-items: center;

  justify-self: center;
  align-self: center;

  padding: clamp(1.35rem, 2.4vw, 1.9rem);

  overflow: hidden;

  border: 1px solid rgba(10, 63, 168, 0.78);
  border-radius: 34px;

  background:
    radial-gradient(
      circle at 28% 20%,
      rgba(255, 255, 255, 0.34),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.12),
      rgba(6, 43, 116, 0.055)
    );

  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.62),
    inset 0 -14px 28px rgba(6, 43, 116, 0.055),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.42),
    10px 18px 34px rgba(24, 35, 55, 0.18),
    0 0 24px rgba(10, 63, 168, 0.08);
}

.hero-visual img {
  width: clamp(150px, 15.5vw, 190px);
  max-width: 74%;
  max-height: 74%;
  height: auto;

  display: block;
  object-fit: contain;

  transform: translateY(-2px) scale(1.015);

  filter:
    drop-shadow(0 3px 2px rgba(255, 255, 255, 0.12))
    drop-shadow(0 7px 7px rgba(6, 43, 116, 0.14))
    drop-shadow(0 14px 18px rgba(24, 35, 55, 0.20));
}


/* THEMA'S ================================================== */

.life-themes {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(0.75rem, 1.5vw, 1.25rem);

  border-top: 1px solid rgba(10, 63, 168, 0.09);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(1rem, 2.5vw, 2rem);
}

.section-heading h2 {
  margin: 0;
  color: var(--blue-dark);

  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child {
  max-width: 680px;
  margin: 1rem 0 0;

  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.theme-card {
  position: relative;
  min-height: 300px;

  padding: clamp(1.5rem, 3vw, 2.4rem);
  padding-right: clamp(11rem, 20vw, 13.5rem);

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  overflow: hidden;

  border: 2px solid rgba(200, 159, 0, 0.72);
  border-radius: var(--radius);

  background:
    radial-gradient(
      circle at 82% 22%,
      rgba(255, 255, 255, 0.72),
      transparent 36%
    ),
    linear-gradient(
      145deg,
      var(--life-card-top) 0%,
      var(--life-card-mid) 52%,
      var(--life-card-bottom) 100%
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.70),
    inset 0 -12px 28px rgba(54, 65, 82, 0.05),
    0 10px 24px rgba(24, 35, 55, 0.09);

  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.theme-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow-dark);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -12px 28px rgba(54, 65, 82, 0.06),
    0 16px 34px rgba(24, 35, 55, 0.14);
}

.theme-card h3 {
  margin: 0 0 0.4rem;
  color: var(--blue);

  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.theme-card p {
  max-width: 520px;
  margin: 0 0 1.4rem;

  color: var(--muted);
  font-size: 1.05rem;
}

.theme-card > a:not(.theme-icon-link) {
  margin-top: auto;

  color: var(--blue-dark);

  font-weight: 800;
  text-decoration: none;
}

.theme-card > a:not(.theme-icon-link):hover {
  color: var(--blue);
}

.theme-icon-link {
  position: absolute;
  top: 50%;
  right: clamp(1.15rem, 2.6vw, 2rem);

  width: clamp(96px, 12vw, 140px);
  max-width: 300px;

  display: block;
  line-height: 0;

  border: 1px solid transparent;
  border-radius: 12px;

  background: transparent;
  text-decoration: none;

  transform: translateY(-50%);

  transition:
    transform var(--transition),
    filter var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.theme-icon-link:hover {
  border-color: rgba(10, 63, 168, 0.35);
  background: rgba(10, 63, 168, 0.04);

  transform: translateY(-50%) scale(1.035);

  filter: drop-shadow(0 9px 16px rgba(24, 35, 55, 0.16));
}

.theme-icon {
  width: 100%;
  height: auto;
  display: block;
}

.theme-card--wide {
  grid-column: 1 / -1;
}

.theme-card--wide p {
  max-width: 680px;
}


/* AANSLUITING NAAR FOOTER ================================== */

.site-footer {
  margin-top: 0.4rem;
}


/* DESKTOP ================================================== */

@media (min-width: 821px) {
  .section-heading h2 {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    white-space: nowrap;
  }
}


/* TABLET =================================================== */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: clamp(220px, 62vw, 270px);
  }

  .hero-visual img {
    width: clamp(125px, 32vw, 160px);
  }
}


/* MOBIEL =================================================== */

@media (max-width: 820px) {
  .theme-grid {
    grid-template-columns: 1fr;
  }
  .theme-card--wide {
    grid-column: auto;
  }


  .theme-card {
    min-height: 250px;
    padding-right: clamp(9.4rem, 27vw, 11.2rem);
  }

  .theme-icon-link {
    right: clamp(1rem, 3.5vw, 1.4rem);
    width: clamp(88px, 18vw, 120px);
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 0.7rem;
    padding-bottom: 1.35rem;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 19vw, 5.7rem);
  }

  .hero-visual {
    width: min(76vw, 248px);
    padding: 1.25rem;
    border-radius: 28px;
  }

  .hero-visual img {
    width: min(44vw, 145px);
  }
}

@media (max-width: 560px) {
  .theme-card {
    min-height: 0;
    padding-right: clamp(8.2rem, 34vw, 9.8rem);
  }

  .theme-card p {
    max-width: 100%;
  }

  .theme-icon-link {
    right: 0.95rem;
    width: clamp(80px, 22vw, 102px);
  }
}

@media (max-width: 431px) {
  .section-heading h2 {
    white-space: normal;
  }
}



/* =========================================================
   TERUGBLIK ONDERWEG — EIGEN PAGINA-ONDERDELEN
   Gebaseerd op de kaarten binnen Leven; geen extra scrollvak.
   ========================================================= */

.retro-intro,
.retro-stories,
.retro-back,
.story-page {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.retro-intro {
  padding: clamp(1.55rem, 3vw, 2.6rem) 0 clamp(1.4rem, 2.8vw, 2.4rem);
}

.retro-intro h1 {
  max-width: 100%;
  margin: 0;
  color: var(--blue);
  font-size: clamp(2.65rem, 6.4vw, 5.65rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
  overflow-wrap: break-word;
}

.retro-intro > p:last-child {
  max-width: 780px;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.retro-stories {
  padding: 0 0 clamp(2.2rem, 4vw, 4rem);
}

.retro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

/* De drie kaarten vormen een familie met de wereldkaarten van Leven. */
.retro-card {
  min-width: 0;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.3rem, 2.5vw, 2rem);
  border: 1px solid rgba(10, 63, 168, 0.26);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.75), transparent 40%),
    linear-gradient(145deg, #cfd8e4 0%, #dce3eb 52%, #e8ebef 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 24px rgba(24,35,55,.09);
  transition: transform var(--transition), box-shadow var(--transition);
}

.retro-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 15px 30px rgba(24,35,55,.13);
}

.retro-icon {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  padding: 0.8rem;
  border-radius: 50%;
  background: rgba(234, 241, 255, .72);
}

.retro-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Voor de volgende twee verhalen is er bewust nog géén verzonnen pictogram. */
.retro-icon--pending {
  border: 1px dashed rgba(10,63,168,.18);
  background: rgba(234,241,255,.45);
}

.retro-card h2 {
  margin: 0 0 .8rem;
  color: var(--blue-dark);
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  line-height: 1.19;
  letter-spacing: -.025em;
}

.retro-card p {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.retro-card__action,
.retro-card__pending {
  margin-top: auto;
  align-self: flex-start;
  padding: .65rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
}

.retro-card__action {
  color: #fff;
  background: var(--blue);
  text-decoration: none;
}

.retro-card__action:hover,
.retro-card__action:focus-visible { background: var(--blue-dark); }

.retro-card__pending {
  color: #4c5b72;
  background: rgba(10,63,168,.09);
}

.retro-back {
  padding: 0 0 2rem;
}
.retro-back a {
  color: var(--blue-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

/* Eerste verhaal: de introductie met gele streep staat direct onder de titel.
   De originele tekening verschijnt pas verderop in het verhaal. */
.story-page {
  max-width: 900px;
  padding: clamp(2rem, 4vw, 3.5rem) 0 3rem;
}

.story-page h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}

/* Gele lijn: ook bruikbaar voor een latere korte kanttekening. */
.story-note {
  margin-top: 2rem;
  padding: 1.15rem 1.4rem;
  border-left: 3px solid var(--yellow-dark);
  background: rgba(255,255,255,.34);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}
.story-note--opening {
  max-width: 760px;
  margin-top: clamp(1.3rem, 2.5vw, 2rem);
  margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
}

/* Leesruimte voor meerdere alinea's en foto's tussen de tekst. */
.story-content {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(1.04rem, 1.3vw, 1.14rem);
  line-height: 1.8;
}
.story-content > p {
  margin: 0 0 1.4rem;
}
.story-content > p + p { margin-top: .8rem; }

/* De afbeelding is op pc ongeveer een derde van de oude 650px breed. */
.story-figure {
  width: fit-content;
  max-width: 100%;
  margin: clamp(1.8rem, 3vw, 2.5rem) 0;
}
.story-image-button {
  display: block;
  width: min(100%, 230px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}
.story-image-button img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(24,35,55,.13);
}
.story-image-button:hover img { filter: brightness(.97); }
.story-image-button:focus-visible {
  outline: 3px solid var(--yellow-dark);
  outline-offset: 4px;
}
.story-figure figcaption {
  max-width: 230px;
  margin-top: .7rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

/* Vergroting: dezelfde afbeelding, zonder extra foto-bestand. */
.story-lightbox {
  max-width: min(92vw, 900px);
  max-height: 92vh;
  padding: .8rem;
  border: 1px solid rgba(10,63,168,.3);
  border-radius: 16px;
  background: var(--silver-soft);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  overflow: auto;
}
.story-lightbox::backdrop { background: rgba(14,22,38,.78); }
.story-lightbox__close-form {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .6rem;
}
.story-lightbox__close {
  padding: .45rem .85rem;
  border: 1px solid rgba(10,63,168,.28);
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--paper);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.story-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(92vh - 5rem);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .retro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .retro-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .retro-intro, .retro-stories, .retro-back, .story-page {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }
  .retro-intro h1 { font-size: clamp(2.2rem, 10vw, 3.45rem); }
  .retro-grid { grid-template-columns: 1fr; }
  .retro-card:first-child { grid-column: auto; }
  .retro-card { min-height: 0; }
  .retro-icon { width: 88px; height: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .retro-card { transition: none; }
  .retro-card:hover { transform: none; }
}

/* =========================================================
   VERHAALPAGINA — TEKENING ALS UITGANGSPUNT | v4
   Eigen bestand in de map verhalen/. De overzichts-CSS blijft intact.
   ========================================================= */
.story-page {
  max-width: 900px;
  padding: clamp(1.8rem, 3.5vw, 3rem) 0 clamp(2rem, 4vw, 3.5rem);
}
.story-page h1 {
  margin: 0 0 clamp(1.2rem, 2.4vw, 1.9rem);
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
/* Het hele verhaal, inclusief foto's en teruglink, staat in ÉÉN blok. */
.story-panel {
  max-width: 840px;
  padding: clamp(1.3rem, 3.2vw, 2.5rem);
  border: 1px solid rgba(10, 63, 168, .22);
  border-left: 4px solid var(--yellow-dark);
  border-radius: 20px;
  background: linear-gradient(145deg, #d3dce7 0%, #dce3eb 65%, #e8ebef 100%);
  box-shadow: 0 10px 30px rgba(24, 35, 55, .10);
}
.story-panel__opening {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.3vw, 1.14rem);
  line-height: 1.75;
}
.story-content {
  max-width: 100%;
}
.story-content > p { margin: 0 0 1.4rem; }
.story-figure {
  width: 100%;
  margin: clamp(1.6rem, 3vw, 2.3rem) 0;
  text-align: center;
}
/* Werkelijke fotobreedte: op pc maximaal 230px, responsief op mobiel. */
.story-image-button {
  width: min(100%, 230px);
  margin-inline: auto;
}
.story-figure figcaption {
  max-width: 340px;
  margin: .7rem auto 0;
}
.story-wave {
  width: min(100%, 330px);
  height: 17px;
  margin: 1.8rem auto;
  border-top: 1px solid rgba(10, 63, 168, .28);
  border-radius: 50% 50% 0 0;
}
.story-panel__back {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(10, 63, 168, .15);
}
.story-panel__back a {
  color: var(--blue-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}
@media (max-width: 620px) {
  .story-panel { padding: 1.25rem 1.05rem; border-radius: 16px; }
  .story-page h1 { font-size: clamp(1.7rem, 7vw, 2.35rem); }
}


/* =========================================================
   IN-OPBOUW-PAGINA'S BINNEN TERUGBLIK ONDERWEG | v4
   Voor verhalen die al zichtbaar mogen zijn voordat ze af zijn.
   ========================================================= */
.build-page {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
  padding: clamp(1.8rem, 3.5vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.build-page > .eyebrow {
  margin-bottom: .55rem;
}

.build-page h1 {
  max-width: 980px;
  margin: 0 auto;
  color: var(--blue-dark);
  font-size: clamp(2.6rem, 6.4vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.build-status {
  width: min(100%, 410px);
  margin: 1.15rem auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--blue);
  font-size: .84rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.build-status span {
  height: 1px;
  background: var(--yellow-dark);
}

.build-intro {
  max-width: 760px;
  margin: 1.4rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  text-wrap: balance;
}

.build-preview {
  width: min(100%, 860px);
  margin: clamp(2rem, 4vw, 3.2rem) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  padding: clamp(1.2rem, 2.6vw, 2rem);
  text-align: left;
  border: 1px solid rgba(10,63,168,.24);
  border-radius: 24px;
  background: linear-gradient(145deg, #d2dce7 0%, #dfe5ec 60%, #e9edf1 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 12px 30px rgba(24,35,55,.10);
}

.build-preview__image {
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.42);
}

.build-preview__image img {
  width: 100%;
  max-height: 360px;
  display: block;
  object-fit: contain;
}

.build-preview__copy h2 {
  margin: 0 0 .75rem;
  color: var(--blue-dark);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.build-preview__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.build-back {
  width: min(100%, 860px);
  margin: 1.5rem auto 0;
  text-align: left;
}

.build-back a {
  color: var(--blue-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .build-preview {
    grid-template-columns: 1fr;
  }
  .build-preview__image {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .build-page {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }
  .build-page h1 {
    font-size: clamp(2rem, 10vw, 3.3rem);
  }
  .build-status {
    gap: .7rem;
    letter-spacing: .14em;
  }
  .build-preview {
    padding: 1rem;
    border-radius: 18px;
  }
}
