/* ---------------------------------------------------------
   RESET & BASIS
--------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 20px; /* grote letters voor ouderen */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Helvetica Neue", Arial, sans-serif;
  background-color: #eef2f6;
  color: #1e293b;
  line-height: 1.7;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* ---------------------------------------------------------
   MARKETING LANDING
--------------------------------------------------------- */

body.marketing {
  background: #eef2f6;
}

/* ---------------------------------------------------------
   MEMBERSTACK GATING (looks good even before setup)
--------------------------------------------------------- */

/* Hide gated content by default (Memberstack will override with inline styles when allowed). */
[data-ms-content] {
  display: none;
}

/* Preview: bekijk cursus zonder inloggen (gebruik ?preview=1 in de URL). */
body.preview-mode [data-ms-content] {
  display: block !important;
}
body.preview-mode [data-ms-content!members] {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 242, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.topbar-inner {
  width: 1080px;
  max-width: 94%;
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  font-weight: 700;
  color: #0b304a;
  text-decoration: none;
  letter-spacing: 0.2px;
  font-size: 20px;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.topbar-link {
  color: #0b304a;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 18px;
  border: 1px solid transparent;
}

.topbar-link:hover {
  background: rgba(11, 48, 74, 0.06);
}

.topbar-lang {
  font-weight: 600;
  margin-right: 4px;
}

.topbar-link-cta {
  background: #0b304a;
  color: white;
  border-color: rgba(0,0,0,0.10);
}

.topbar-link-cta:hover {
  background: #08263a;
}

.access-gate-hint {
  margin: 0.75rem auto 0.5rem;
  max-width: 32rem;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.55;
  text-align: left;
}

.marketing-main {
  padding: 18px 0 50px;
}

.landing-container {
  width: 1080px;
  max-width: 94%;
  margin: 0 auto;
}

.landing-hero {
  padding: 26px 0 10px;
}

.landing-hero-inner {
  width: 1080px;
  max-width: 94%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: center;
}

.landing-hero-text h1 {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}

.landing-lead {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 18px;
  color: #334155;
}

.landing-points {
  margin: 10px 0 18px 20px;
}

.landing-points li {
  margin-bottom: 10px;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.landing-cta .btn-primary {
  margin-top: 0;
}

.landing-note {
  margin-top: 14px;
  margin-bottom: 0;
  color: #334155;
  font-size: 18px;
}

.landing-hero-image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.landing-section {
  padding: 32px 0;
}

.access-gate {
  padding: 46px 0;
}

.access-gate .landing-container {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.access-gate-card {
  background: #e8eef7;
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 8px 24px rgba(11, 48, 74, 0.12);
  border: 1px solid rgba(31, 120, 193, 0.25);
  text-align: center;
}

.access-gate-card h2 {
  margin: 0 0 12px 0;
  text-align: center;
}

.access-gate-card p {
  margin: 0 auto 20px auto;
  max-width: 42ch;
  text-align: center;
}

.access-gate-card .landing-cta {
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 0;
}

.landing-section h2 {
  font-size: 34px;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

/* Gate titel: strak en gecentreerd */
.access-gate .access-gate-card h2 {
  margin: 0 0 12px 0;
  text-align: center;
}

.landing-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.landing-card {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.landing-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.form-field {
  display: block;
  margin-top: 14px;
}

.form-field span {
  display: block;
  font-size: 16px;
  color: #334155;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  font-size: 18px;
  background: white;
  outline: none;
}

.form-input:focus {
  border-color: rgba(31, 120, 193, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 120, 193, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.price-card {
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border: 1px solid rgba(31, 120, 193, 0.18);
  margin-bottom: 20px;
}

.price-card:last-of-type {
  margin-bottom: 0;
}

.price-intro {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(to bottom, rgba(34, 197, 94, 0.06), white);
}

.price-badge {
  display: inline-block;
  background: #16a34a;
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.price-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.price-sub {
  margin: 0;
  color: #475569;
}

.price-amount {
  font-size: 40px;
  font-weight: 800;
  color: #0b304a;
  letter-spacing: -0.4px;
}

.price-list {
  margin: 14px 0 18px 18px;
}

.price-list li {
  margin-bottom: 10px;
}

.price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.price-actions .btn-primary,
.price-actions .btn-secondary {
  flex: 1 1 260px;
  margin-top: 0;
  text-align: center;
}

.price-note {
  margin: 14px 0 0;
  color: #475569;
  font-size: 18px;
}

/* Reviews sectie (index) */
.reviews-intro {
  margin-bottom: 24px;
  color: #475569;
  max-width: 52ch;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(31, 120, 193, 0.12);
}

.review-stars {
  color: #f59e0b;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-quote {
  font-size: 18px;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 14px 0;
  font-style: italic;
}

.review-quote::before {
  content: "“";
}

.review-quote::after {
  content: """;
}

.review-meta {
  margin: 0;
  font-size: 15px;
  color: #64748b;
}

.faq {
  background: white;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.site-footer {
  padding: 26px 0 40px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(238, 242, 246, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #0b304a;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  color: #475569;
  font-size: 16px;
}

p {
  margin-bottom: 22px; /* of 30px als je extra ruimte wilt */
  line-height: 1.6;
}

/* ---------------------------------------------------------
   SIDEBAR
--------------------------------------------------------- */

.sidebar {
  width: 260px;
  background: #0b304a;
  color: white;
  padding: 32px 22px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}

.site-title {
  text-align: center;
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 32px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.memberbar {
  margin: 10px 0 18px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.memberbar-line {
  font-size: 14px;
  color: rgba(220, 232, 247, 0.95);
  margin-bottom: 10px;
  line-height: 1.35;
}

.memberbar-email {
  font-weight: 650;
  word-break: break-word;
}

.memberbar-link {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 8px;
  font-size: 15px;
  color: #dce8f7;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
}

.memberbar-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-link {
  font-size: 20px;
  color: #dce8f7;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
}

.nav-link-active {
  background: #1f78c1;
  color: white;
  font-weight: bold;
}

/* ---------------------------------------------------------
   MAIN CONTENT (CENTRAAL)
--------------------------------------------------------- */

.main-content {
  margin-left: 260px;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  min-width: 0; /* voorkomt dat flex-kinderen breder worden dan het scherm */
  box-sizing: border-box;
}

.content-wrap {
  width: 880px;
  max-width: 94%;
  min-width: 0;
  box-sizing: border-box;
}

/* Brede module-inhoud (afbeeldingen, tabellen) op smal scherm horizontaal scrollbaar i.p.v. afsnijden */
#content-root {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------------------------------------------------------
   HERO BLOCK
--------------------------------------------------------- */

.hero {
  background: white;
  padding: 28px;
  border-radius: 18px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin-bottom: 36px;
}

.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-size: 32px;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 21px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.hero-list {
  margin: 10px 0 18px 20px;
}

.hero-list li {
  margin-bottom: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.hero-actions .btn-primary {
  margin-top: 0;
}

.hero-note {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 18px;
  color: #334155;
}

.hero-image {
  width: 220px;
  max-height: 170px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-image-wrapper {
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   INTRO BLOCK
--------------------------------------------------------- */

.intro-block {
  background: white;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.intro-list {
  margin: 16px 0 20px 18px;
}

.intro-list li {
  margin-bottom: 10px;
}

/* Optioneel tussenstuk in modules (bijv. copy-paste), visueel los van gewone lesblokken */
.copy-paste-intermezzo {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-left: 4px solid #ea580c;
  border-radius: 14px;
  padding: 20px 22px 22px;
  margin: 22px 0;
  color: #431407;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.08);
}

.copy-paste-intermezzo h4 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #9a3412;
}

.copy-paste-intermezzo .copy-paste-intermezzo-skip {
  margin: 0 0 14px;
  font-size: 17px;
  color: #7c2d12;
  line-height: 1.5;
}

.copy-paste-intermezzo .intro-list {
  margin-bottom: 12px;
}

.copy-paste-intermezzo p:last-child {
  margin-bottom: 0;
}

/* Grote lesafbeeldingen (intro-image) */

/*
  Bijsnijden werkt via aspect-ratio op de wrapper + object-fit:cover op img.
  De wrapper bepaalt hoeveel er ZICHTBAAR is.
  object-fit:cover vult de wrapper altijd volledig.

  Landscape (bijv. 3:2 origineel):
    - Origineel aspect ratio ~1.50 (breedte/hoogte)
    - Wrapper aspect-ratio: 1.67  → iets breder dan origineel → boven/onder wegsnijden
    - 5% boven + 5% onder weg

  Portrait (bijv. 2:3 origineel):
    - Origineel aspect ratio ~0.67 (breedte/hoogte)
    - Wrapper aspect-ratio: 0.80  → breder dan origineel → boven/onder wegsnijden
    - 15% boven + 15% onder weg
*/

.intro-image-wrap {
  overflow: hidden;
  border-radius: 14px;
  margin-top: 18px;
  width: 100%;
}

/* Landscape: toon middelste 90% (5% boven + 5% onder weg)
   Typische landscape ratio ~3:2 = 1.50 → wrapper 1.67 snijdt ~5% boven+onder */
.intro-image-wrap.landscape {
  aspect-ratio: 1.67;
}

/* Portrait: toon middelste 70% (15% boven + 15% onder weg)
   Typische portrait ratio ~2:3 = 0.67 → wrapper 0.80 snijdt ~15% boven+onder */
.intro-image-wrap.portrait {
  aspect-ratio: 0.80;
}

.intro-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
}

/* Fallback voor img zonder wrapper */
.intro-image {
  width: 100%;
  display: block;
  border-radius: 14px;
  margin-top: 18px;
}

/* Module kaart miniaturen */
.module-card img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  object-position: center 50%;
  border-radius: 12px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   MODULE OVERVIEW
--------------------------------------------------------- */

.modules-overview h3 {
  font-size: 28px;
  margin-bottom: 22px;
}

.module-card {
  background: white;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  gap: 20px;
  margin-bottom: 26px;
}




.module-card h4 {
  font-size: 22px;
  margin-bottom: 8px;
}

.module-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f78c1;
  color: white;
  padding: 10px 20px;
  font-size: 19px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent; /* houdt hoogte gelijk met btn-secondary */
  margin-top: 12px;
}

.btn-primary:hover {
  background: #16649d;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6f0fa;
  color: #0b304a;
  padding: 10px 18px;
  font-size: 19px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #b9d3ee;
}

.btn-secondary:hover {
  background: #d8e9f8;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 20px;
  border-radius: 12px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-link:focus-visible,
.topbar-link:focus-visible,
.brand:focus-visible,
.footer-links a:focus-visible,
.faq summary:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.page-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 16px;
  color: #475569;
  border-top: 1px solid #cbd5e1;
}
/* ---------------------------------------------------------
   QUIZ BLOKKEN
--------------------------------------------------------- */

.quiz-block {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.quiz-block h4 {
  margin-bottom: 10px;
  font-size: 22px;
}

.quiz-question {
  margin-bottom: 20px;
}

.quiz-question-text {
  margin-bottom: 10px;
  font-weight: 500;
}

.quiz-options {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 10px;
}

.quiz-options li {
  margin-bottom: 6px;
}

.quiz-button {
  margin-top: 4px;
}

.quiz-feedback {
  margin-top: 8px;
  font-size: 18px;
}

.quiz-feedback-correct {
  color: #15803d; /* groen */
}

.quiz-feedback-wrong {
  color: #b91c1c; /* rood */
}

.quiz-feedback-warning {
  color: #92400e; /* oranje/bruin */
}

/* Volgende module-knop onderaan */
.module-next {
  margin-top: 30px;
  text-align: right;
}

/* ---------------------------------------------------------
   RESPONSIVE (TABLET / MOBIEL)
--------------------------------------------------------- */

/*
  Cursus-layout (sidebar + main): eerder stapelen dan overige pagina’s.
  Voorkomt op iPhone (o.a. “desktopwebsite” met brede layout-viewport) dat fixed sidebar + margin-left
  het linkerdeel van de tekst buiten het zichtbare venster duwt.
*/
@media (max-width: 1150px) {
  .sidebar {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 18px 16px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    left: auto;
    top: auto;
  }

  .site-title {
    margin-bottom: 14px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav-link {
    padding: 10px 12px;
  }

  .main-content {
    margin-left: 0;
    padding: 18px max(12px, env(safe-area-inset-left, 0px)) 34px max(12px, env(safe-area-inset-right, 0px));
    width: 100%;
    max-width: 100%;
  }

  .content-wrap {
    width: 100%;
    max-width: 100%;
    padding-left: 4px;
    padding-right: 4px;
  }
}

@media (max-width: 980px) {
  html {
    font-size: 18px;
  }

  .landing-hero-inner {
    grid-template-columns: 1fr;
  }

  .landing-hero-text h1 {
    font-size: 38px;
  }

  .landing-grid-2 {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-image {
    width: 100%;
    max-height: 220px;
  }

  .module-card {
    flex-direction: column;
  }

  .module-card img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 17px;
  }

  .landing-hero-text h1 {
    font-size: 32px;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .modules-overview h3 {
    font-size: 26px;
  }
}
