/* =========================================================
   2LRN4 site.css (clean + Safari-proof)
   - Eén consistente header + mobile drawer
   - Duplicaten verwijderd (rich/quill img blocks etc.)
   ========================================================= */

/* -----------------------------
   DESIGN TOKENS
------------------------------ */
:root{
  --bg:#0b1220;
  --ink:#0f172a;
  --text:#1f2937;
  --muted:#64748b;
  --line:rgba(15,23,42,.12);
  --accent:#f8c346;
  --accent2:#495762;

  --radius:18px;
  --shadow: 0 14px 40px rgba(2,6,23,.12);
  --wrap: 1100px;
}

/* -----------------------------
   BASE
------------------------------ */
*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:#fff;
}
a{color:inherit;text-decoration:none}
img{
  display:block;
  max-width:100%;
  height:auto;
}
.wrap,.container{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 24px;
}
.page-pad{
  padding-top:28px;
  padding-bottom:28px;
}
.main{min-height:70vh}
code{background:rgba(15,23,42,.06); padding:2px 6px; border-radius:8px}

/* -----------------------------
   HEADER (desktop + mobile drawer)
------------------------------ */
.site-header{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(160%) blur(10px);
  -webkit-backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid var(--line);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:64px;
  gap:16px;
}

/* Safari iOS flex shrink fix */
.header-row > *{ min-width:0; }
.nav{ min-width:0; }

.brand{font-weight:800; letter-spacing:.2px}
.brand{
  display:inline-flex;
  align-items:center;
  min-height:48px;
}

.nav{
  display:flex;
  gap:14px;
  align-items:center;
}

.nav a{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:10px 10px;
  border-radius:12px;
  color:rgba(15,23,42,.88);
}

.nav a:hover{background:rgba(15,23,42,.05)}

.lang{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:14px;
}

.lang a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  min-width:48px;
  padding:6px 10px;
  border-radius:10px;
}

.lang a.active{
  background:rgba(15,23,42,.06);
  color:rgba(15,23,42,.9);
}

/* Hamburger button (hidden on desktop) */
.nav-toggle{
  display:none;
  width:48px;
  height:48px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.14);
  background:#fff;

  flex-direction:column; /* 👈 FIX: streepjes onder elkaar */

  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0;
  cursor:pointer;
}
.nav-toggle{ gap:4px; }
.nav-toggle span{ width:20px; }
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:rgba(15,23,42,.85);
  border-radius:2px;
}

/* Backdrop for drawer */
.nav-backdrop{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.45);
  z-index:50;
}

/* Language variants */
.lang-desktop{ display:flex; }
.lang-in-nav{ display:none; }

/* -----------------------------
   HERO
------------------------------ */
.hero{
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(248,195,70,.22), transparent 60%),
    radial-gradient(1200px 600px at 90% 10%, rgba(73,87,98,.18), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 60%, #ffffff 100%);
  padding:56px 0 26px;
  border-bottom:1px solid var(--line);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr .9fr;
  gap:26px;
  align-items:start;
}

.hero-side{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.hero-visual.card{ padding:16px; }

h1{font-size:44px; line-height:1.04; margin:0 0 14px}
.lead{font-size:18px; line-height:1.55; color:rgba(15,23,42,.78); margin:0 0 18px}

.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 14px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  min-width:48px;
  padding:12px 16px;
  border-radius:14px;
  background:var(--accent);
  color:#111827;
  font-weight:700;
  border:1px solid rgba(17,24,39,.12);
  box-shadow: 0 10px 22px rgba(248,195,70,.18);
}
.btn:hover{transform: translateY(-1px)}
.btn.ghost{
  background:#fff;
  color:#111827;
  border:1px solid rgba(15,23,42,.16);
  box-shadow:none;
}
.btn.small{
  min-height:48px;
  min-width:48px;
  padding:12px 14px;
  border-radius:12px;
}

.trust-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.pill{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  font-size:13px;
  color:rgba(15,23,42,.78);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.8);
}

.hero-card{
  background:linear-gradient(180deg, rgba(11,18,32,.96), rgba(15,27,51,.98));
  color:#e5e7eb;
  border-radius:var(--radius);
  padding:18px 18px 16px;
  box-shadow:var(--shadow);
  border:1px solid rgba(248,195,70,.16);
}
.card-title{font-weight:800; margin-bottom:10px}
.checklist{margin:0; padding-left:18px}
.checklist li{margin:8px 0; color:rgba(229,231,235,.92)}
.muted{color:var(--muted)}
.small{font-size:13px}

/* -----------------------------
   SECTIONS + CARDS
------------------------------ */
.section{padding:44px 0}
.section.alt{background: #0b1220; color:#e5e7eb}
.section.alt .muted{color: rgba(229,231,235,.72)}
.section h2{margin:0 0 16px; font-size:28px}

.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.grid2{display:grid; grid-template-columns: repeat(2, 1fr); gap:14px}

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
}

/* Let op: voor Quill dropdowns later zetten we overflow:visible, dus hier niet blokkeren */
.section.alt .card{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.12);
  box-shadow:none;
}

.card h1, .card h2, .card h3 { color: rgba(15,23,42,.92); }
.card p { color: rgba(15,23,42,.82); line-height: 1.65; }
.card ul { padding-left: 18px; }
.card li { margin: 8px 0; color: rgba(15,23,42,.82); }

.section.alt .card h1,
.section.alt .card h2,
.section.alt .card h3,
.section.alt .card p,
.section.alt .card li { color: rgba(229,231,235,.92); }

.demo-grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:14px; align-items:start}

a.card-link{
  display:block;
  min-height:48px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.55);
  margin-top:10px;
}
a.card-link:hover{
  background: rgba(255,255,255,.95);
  transform: translateY(-1px);
}
.card-link-title{
  font-weight:700;
  margin-bottom:4px;
}
.section.alt a.card-link{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

/* -----------------------------
   FOOTER
------------------------------ */
.site-footer{
  border-top:1px solid var(--line);
  padding:18px 0;
  background:#fff;
}
.footer-row{display:flex; align-items:center; justify-content:space-between; gap:12px}
.footer-links{display:flex; gap:12px}
.footer-links a{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  color:var(--muted);
}
.footer-links a:hover{color:rgba(15,23,42,.8)}

/* -----------------------------
   RICH CONTENT (PUBLIC)
   - codeblocks binnen kaart
   - floats / image helpers
------------------------------ */
.rich{
  overflow-wrap:anywhere;
  word-break:break-word;
}

.rich p{ margin:0 0 12px; }
.rich h1, .rich h2, .rich h3{ margin:18px 0 10px; line-height:1.2; }
.rich ul, .rich ol{ margin:0 0 12px; padding-left:18px; }
.rich li{ margin:8px 0; }

.rich blockquote{
  margin:14px 0;
  padding:10px 14px;
  border-left:4px solid rgba(248,195,70,.65);
  background:rgba(15,23,42,.04);
  border-radius:12px;
}

.rich :not(pre) > code{
  background:rgba(15,23,42,.06);
  padding:2px 6px;
  border-radius:8px;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.rich pre{
  margin:14px 0;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(15,23,42,.04);
  max-width:100%;
  overflow-x:auto;
  white-space:pre-wrap;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.rich pre code{
  background:transparent;
  padding:0;
  border-radius:0;
}

.rich img,
.rich iframe,
.rich video,
.rich table{
  max-width:100%;
}

.rich img{
  height:auto;
  border-radius:12px;
}

.rich img.img-sm{ max-width:320px; }
.rich img.img-md{ max-width:560px; }
.rich img.img-lg{ max-width:820px; }

.rich img.img-left{ float:left; margin:6px 14px 10px 0; }
.rich img.img-right{ float:right; margin:6px 0 10px 14px; }
.rich::after{ content:""; display:block; clear:both; }

/* Links in prose/rich */
.prose a{
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--accent);
}
.prose a.btn,
.prose a.btn:visited,
.rich a.btn,
.rich a.btn:visited{
  color:#111827;
  text-decoration:none;
}
.prose a.btn.ghost,
.prose a.btn.ghost:visited,
.rich a.btn.ghost,
.rich a.btn.ghost:visited{
  color:#111827;
}
.prose a:hover{ text-decoration-thickness: 2px; }

/* Tables */
.rich table{
  width:100%;
  border-collapse:collapse;
  margin:12px 0;
  overflow:auto;
  display:block;
}
.rich th, .rich td{
  border:1px solid rgba(15,23,42,.16);
  padding:10px;
  vertical-align:top;
}
.rich th{ font-weight:700; }

/* Divider line */
.divider-line{
  display:block;
  width:100%;
  height:1px;
  background: rgba(15,23,42,.18);
  margin: 14px 0;
}
.card.rich .divider-line{
  display:block;
  width:100%;
  height:1px;
  background: rgba(15,23,42,.18);
  margin: 14px 0;
}

/* Video */
video{ object-fit:cover; background:#000; }

/* -----------------------------
   QUILL (ADMIN EDITOR)
   - dropdowns boven alles
   - zelfde pre/img gedrag als public
------------------------------ */
.ql-container.ql-snow{ border-radius:12px; }
.ql-toolbar.ql-snow{
  border-radius:12px 12px 0 0;
  overflow:visible !important;
}
.ql-editor{ font-size:16px; line-height:1.6; }

.ql-editor img{
  max-width:100%;
  height:auto;
  border-radius:12px;
  outline: 2px dashed rgba(248,195,70,.35);
  cursor:pointer;
}

.ql-editor img.img-sm{ max-width:320px; }
.ql-editor img.img-md{ max-width:560px; }
.ql-editor img.img-lg{ max-width:820px; }
.ql-editor img.img-left{ float:left; margin:6px 14px 10px 0; }
.ql-editor img.img-right{ float:right; margin:6px 0 10px 14px; }
.ql-editor::after{ content:""; display:block; clear:both; }

.ql-editor pre{
  margin:14px 0;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(15,23,42,.04);
  max-width:100%;
  overflow-x:auto;
  white-space:pre-wrap;
  word-break:break-word;
  overflow-wrap:anywhere;
}

/* Toolbar dropdowns boven alles */
.ql-toolbar select,
.ql-toolbar .ql-picker{
  position:relative;
  z-index:2000;
}

/* Voorkom clipping van dropdowns door parents */
.card, .wrap, form{ overflow:visible; }

/* HTML table-code preview helper */
.ql-editor pre.tbl-code{
  background:transparent;
  padding:0;
  border:0;
  margin:12px 0;
}
.ql-editor pre.tbl-code code{
  display:block;
  white-space:normal;
}

/* -----------------------------
   BADGES (resources)
------------------------------ */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.2px;
  border:1px solid transparent;
}
.badge-article{
  background:rgba(15,23,42,.06);
  color:rgba(15,23,42,.85);
  border-color:rgba(15,23,42,.12);
}
.badge-guide{
  background:rgba(248,195,70,.18);
  color:#7a5a00;
  border-color:rgba(248,195,70,.45);
}
.badge-template{
  background:rgba(73,87,98,.16);
  color:#24303a;
  border-color:rgba(73,87,98,.35);
}

/* -----------------------------
   PLATFORM HERO (desktop 2 kolommen)
------------------------------ */
.platform-hero-grid{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap:16px;
  align-items:stretch;
  margin-top:14px;
}
.platform-hero-grid > .card{
  height:100%;
  display:flex;
  flex-direction:column;
}

.platform-benefit-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:2px;
}

.platform-benefit-block{
  border:1px solid rgba(15,23,42,.10);
  border-radius:14px;
  padding:12px;
  background:#fff;
}

.platform-benefit-title{
  font-weight:800;
  display:flex;
  gap:8px;
  align-items:flex-start;
  margin-bottom:4px;
}
.platform-benefit-title .check{
  color:var(--accent);
  font-weight:900;
}

.platform-micro-proof{
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid rgba(15,23,42,.08);
  font-size:13px;
  color:var(--muted);
}

.platform-usecase{
  border:1px solid rgba(15,23,42,.10);
  border-radius:14px;
  padding:12px;
  background:#fff;
}
.platform-usecase-title{
  font-weight:900;
  margin-bottom:3px;
}

/* Diagram helpers */
.section-full{
  width:100%;
  padding-left:0;
  padding-right:0;
}
.diagram-full{
  width:100%;
  padding:0 24px;
}
.diagram-inner{
  max-width:1400px;
  margin:0 auto;
}
svg text{
  text-shadow:none !important;
  filter:none !important;
  stroke:none !important;
  -webkit-text-stroke:0 !important;
}

/* -----------------------------
   PARTNERS PAGE LAYOUT
------------------------------ */
.partner-top{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-bottom:16px;
}
.partner-steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.partner-step{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:#fff;
}
.partner-step strong{
  display:block;
  font-weight:800;
  margin-bottom:4px;
}

/* -----------------------------
   RESPONSIVE (general)
------------------------------ */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  h1{ font-size:36px; }
  .grid3{ grid-template-columns:1fr; }
  .grid3{grid-template-columns: 1fr}
  .grid2{grid-template-columns: 1fr}
  .demo-grid{ grid-template-columns:1fr; }
  .cta-row{ gap:16px; }
  .trust-row{ gap:12px; }

  .platform-hero-grid{ grid-template-columns:1fr; }
  .platform-benefit-grid{ grid-template-columns:1fr; }

  .partner-top{ grid-template-columns:1fr; }
  .partner-steps{ grid-template-columns:1fr; }
}


/* -----------------------------
   RESPONSIVE (header drawer)
------------------------------ */
@media (max-width: 920px){
  .nav-toggle{ display:inline-flex; }

  /* taal: desktop weg, taal in menu */
  .lang-desktop{ display:none; }
  .lang-in-nav{
    display:flex;
    justify-content:center;
    margin-top:8px;
    padding-top:10px;
    border-top:1px solid rgba(15,23,42,.10);
  }

  /* nav als drawer onder de header */
  .nav{
    position:fixed;
    top:68px;
    left:12px;
    right:12px;
    z-index:60;

    display:none;
    flex-direction:column;
    gap:6px;

    background:#fff;
    border:1px solid rgba(15,23,42,.12);
    border-radius:16px;
    padding:10px;

    box-shadow: 0 18px 50px rgba(2,6,23,.18);
  }
  .nav.is-open{ display:flex; }

  .nav a{
    padding:12px 12px;
    border-radius:12px;
    background: rgba(15,23,42,.03);
  }

  .nav a.btn.small{
    justify-content:center;
    margin-top:6px;
  }
  .nav-toggle{
    display:none;
    width:48px;
    height:48px;
    border-radius:12px;
    border:1px solid rgba(15,23,42,.14);
    background:#fff;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:4px;
    padding:0;
    cursor:pointer;
  }
  .nav-toggle span{
    display:block;
    width:18px;
    height:2px;
    background:rgba(15,23,42,.85);
    border-radius:2px;
  }
  @media (max-width: 920px){
    .nav-toggle{ display:inline-flex; }
    .lang-desktop{ display:none; }
    .lang-in-nav{ display:flex; }
  }

  /* pagina niet scrollen als drawer open is */
  html.nav-open, html.nav-open body{ overflow:hidden; }
}
/* =============================
   FOOTER — mobile polish
============================= */

.site-footer{
  background:#fff;
}

.footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
/* Footer: behoud dezelfde horizontale gutters als de site */
.footer-wrap{
  padding-top:34px;
  padding-bottom:34px;
}

.footer-wrap-bottom{
  padding-top:14px;
  padding-bottom:26px;
}

/* Zorg dat footer op mobiel 1 kolom wordt */
@media (max-width: 920px){
  .site-footer{
    padding:18px 0 26px;
  }

  .footer-row{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  /* Logo bovenaan kleiner en minder dominant */
  .site-footer .brand img{
    width:92px;
    height:auto;
    display:block;
  }

  /* Copyright rustiger */
  .site-footer .muted,
  .site-footer small{
    color: rgba(15,23,42,.55);
    font-size:13px;
  }

  /* Linkrij strak: 3 kolommen, mooi uitgelijnd */
  .footer-links{
    width:100%;
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap:10px;
    margin-top:6px;
  }

  .footer-links a{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px 12px;
    border-radius:12px;
    border:1px solid rgba(15,23,42,.12);
    background: rgba(15,23,42,.02);
    color: rgba(15,23,42,.78);
  }

  .footer-links a:hover{
    background: rgba(15,23,42,.05);
    color: rgba(15,23,42,.9);
  }
}


/* Super smalle schermen: 2 kolommen */
@media (max-width: 380px){
  .footer-links{
    grid-template-columns: 1fr 1fr;
  }
}
/* ============ NAV VISIBILITY FIX (desktop vs mobile) ============ */

/* Default: desktop aan, mobile uit */
.nav-desktop{ display:flex !important; }
.nav-mobile{ display:none !important; }
.nav-backdrop{ display:none !important; }
.nav-toggle{ display:none !important; }

/* Mobile: desktop uit, hamburger + drawer aan */
@media (max-width: 920px){
  .nav-desktop{ display:none !important; }
  .nav-toggle{ display:inline-flex !important; }

  /* mobile nav is een drawer (niet horizontaal) */
  .nav-mobile{
    position:fixed !important;
    left:12px;
    right:12px;
    top:68px;
    z-index:120;
    display:none !important;          /* pas open met .is-open */
    flex-direction:column !important;
    gap:8px;
    background:#fff;
    border:1px solid rgba(15,23,42,.12);
    border-radius:16px;
    padding:12px;
    box-shadow:0 18px 50px rgba(2,6,23,.18);
  }
  .nav-mobile.is-open{ display:flex !important; }

  .nav-backdrop{
    display:block !important;
    position:fixed;
    inset:0;
    background:rgba(2,6,23,.45);
    z-index:110;
  }
}
/* Respecteer het hidden-attribuut (belangrijk voor iOS/Safari) */
.nav-backdrop[hidden]{ display:none !important; }

/* Toon backdrop alleen als hij NIET hidden is */
@media (max-width: 920px){
  .nav-backdrop{ display:none !important; }
  .nav-backdrop:not([hidden]){ display:block !important; }
}
.cookie-banner{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#495762; /* past bij jullie donkergrijs */
  color:#fff;
  padding:18px;
  z-index:9999;
  box-shadow:0 -5px 20px rgba(0,0,0,.2);
}

.cookie-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.cookie-text{
  flex:1;
  font-size:14px;
  line-height:1.5;
}

.cookie-actions{
  display:flex;
  gap:10px;
}

.cookie-link{
  margin-left:10px;
  text-decoration:underline;
  color:inherit;
  opacity:.9;
}

.cookie-link:hover{
  opacity:1;
}
