/* uitleg-steps.css — scroll-stappen voor /uitleg-pagina's (cowork-stijl).
   Progressive enhancement:
   - zonder JS of op mobiel: nette gestapelde blokken (beeld boven de tekst);
   - met JS op desktop (>=992px): de beeldkolom rechts is een sticky laag over de
     volle schermhoogte met het scherm verticaal gecentreerd; terwijl de stappen
     links langsscrollen wisselt het scherm mee. JS zet de class .usteps--enhanced.
   Herbruikbaar: koppel deze CSS + js/uitleg-scroll.js en gebruik de .usteps-markup. */

.usteps-section { overflow: visible; }
.usteps-shell { max-width: 1280px; margin: 0 auto; }
.usteps-head { text-align: center; max-width: 720px; margin: 0 auto 8px; }

.usteps { position: relative; }

/* ---- stappen-kolom ---- */
.usteps__steps { list-style: none; margin: 0; padding: 0; }
.ustep { padding: 0 0 44px; }
.ustep:last-child { padding-bottom: 0; }

.ustep__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: #FF6B35; color: #fff; font-weight: 700; font-size: 15px;
  margin-bottom: 14px; flex: 0 0 auto;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.ustep h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.25; color: #231F20; }
.ustep p  { margin: 0; font-size: 17px; line-height: 1.62; color: #5b5b57; max-width: 44ch; }

/* inline beeld (mobiel + no-JS fallback) */
.ustep__inline {
  display: block; width: 100%; margin-top: 20px;
  border: 1px solid #ECECE8; border-radius: 14px;
  box-shadow: 0 8px 28px rgba(11,31,58,.10);
}

/* ---- beeld-paneel (app-venster) ---- */
.usteps__media { display: none; }

.usteps__frame { position: relative; width: 100%; }
.usteps__frame::before {
  content: ""; position: absolute; inset: 26px -26px -26px 26px;
  background: linear-gradient(135deg, #FFE8DA 0%, #ECEAE2 100%);
  border-radius: 22px; z-index: 0;
}
.usteps__panel {
  position: relative; z-index: 1;
  border: 1px solid #E7E6E1; border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: 0 22px 60px rgba(11,31,58,.16);
}
.usteps__bar {
  display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px;
  background: #F4F3EF; border-bottom: 1px solid #ECEBE6;
}
.usteps__bar span { width: 10px; height: 10px; border-radius: 50%; background: #D7D5CD; }
.usteps__screen { position: relative; aspect-ratio: 16 / 9; background: #fff; }
.usteps__shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transition: opacity .5s ease;
}
.usteps__shot.is-active { opacity: 1; }

/* ---- desktop, met JS ---- */
@media (min-width: 992px) {
  .usteps--enhanced {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 56px;
  }

  /* stappen scrollen, elk ongeveer een schermhoogte zodat ze netjes wisselen */
  .usteps--enhanced .ustep {
    min-height: 64vh; display: flex; flex-direction: column; justify-content: center;
    opacity: .38; transition: opacity .35s ease;
  }
  .usteps--enhanced .ustep:first-child { padding-top: 4vh; }
  .usteps--enhanced .ustep:last-child  { min-height: 78vh; }
  .usteps--enhanced .ustep.is-active { opacity: 1; }
  .usteps--enhanced .ustep__inline { display: none; }

  /* inactieve nummers worden rustig; actief nummer kleurt oranje */
  .usteps--enhanced .ustep__num {
    background: #fff; color: #A7A59E; border: 2px solid #E3E2DD;
  }
  .usteps--enhanced .ustep.is-active .ustep__num {
    background: #FF6B35; color: #fff; border-color: #FF6B35;
  }

  /* beeldkolom = sticky laag over de volle hoogte, scherm verticaal gecentreerd */
  .usteps--enhanced .usteps__media {
    display: flex; align-items: center; justify-content: center;
    position: sticky; top: 0; height: 100vh;
  }
}

/* ---- klein scherm: koppen iets compacter ---- */
@media (max-width: 600px) {
  .ustep h3 { font-size: 21px; }
  .ustep p  { font-size: 16px; }
}

/* ---- toegankelijkheid: geen beweging als de gebruiker dat niet wil ---- */
@media (prefers-reduced-motion: reduce) {
  .usteps__shot { transition: none; }
  .usteps--enhanced .ustep, .ustep__num { transition: none; }
}
