/* =========================================================
   BALLPINNETJE — LEVEN | v5
   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(1.25rem, 2.6vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.75rem);

  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 {
  min-height: clamp(330px, 30vw, 410px);

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

  padding: clamp(1rem, 2vw, 1.5rem);
}

.hero-visual img {
  width: min(100%, 390px);
  display: block;

  filter: drop-shadow(10px 18px 25px rgba(24, 35, 55, 0.14));
}


/* 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 {
    min-height: 0;
    padding-top: 0;
  }

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


/* 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: 1.1rem;
    padding-bottom: 1.35rem;
  }

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

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

@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;
  }
}


/* =========================================================
   WIE BEN IK — VERDIEPING BINNEN LEVEN
   ========================================================= */

.about-hero {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: clamp(0.55rem, 1.2vw, 1rem) 0 clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.about-hero h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.about-intro {
  max-width: 700px;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.24rem);
}

.about-hero-icon {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-icon img {
  width: min(100%, 250px);
  display: block;
  filter: drop-shadow(10px 18px 25px rgba(24, 35, 55, 0.14));
}

.about-section,
.about-note {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.about-section {
  padding: clamp(1.4rem, 2.8vw, 2.2rem) 0 clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid rgba(10, 63, 168, 0.09);
}

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

.about-card {
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid rgba(10, 63, 168, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.72), transparent 36%),
    linear-gradient(145deg, #cbd0d6 0%, #d7dbe0 52%, #c2c8d0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(24, 35, 55, 0.08);
}

.about-card h3 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.08;
}

.about-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.35vw, 1.16rem);
  line-height: 1.72;
}

.about-note {
  margin-top: clamp(0.6rem, 1.5vw, 1rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid rgba(200, 159, 0, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 248, 207, 0.45), rgba(255, 255, 255, 0.50));
}

.about-note h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.about-note > p:not(.eyebrow):not(.about-quote) {
  max-width: 820px;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.about-quote {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  color: var(--blue-dark);
  border-top: 1px solid rgba(10, 63, 168, 0.14);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-style: italic;
  font-weight: 750;
}

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

  .about-hero-icon {
    min-height: 0;
  }

  .about-hero-icon img {
    width: min(48vw, 225px);
  }
}

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

@media (max-width: 620px) {
  .about-hero {
    padding-top: 0.5rem;
  }

  .about-hero h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .about-hero-icon img {
    width: min(54vw, 205px);
  }
}


/* TERUG NAAR LEVEN ========================================= */

.page-back {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 0.2rem 0 clamp(1rem, 2vw, 1.4rem);
}

.page-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;

  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;

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

.page-back a:hover {
  color: var(--blue);
  transform: translateX(-3px);
}
