/* =========================================================
   MOBIEL EN TABLET
   Wordt na style.css geladen. Desktop blijft daardoor gelijk.
   Breekpunten: 1100px (menuknop) en 760px (mobiel).
   Veel opmaak staat inline in de HTML; daarom staat hier soms !important.
   ========================================================= */

/* ---------- tot 1100px: menuknop in plaats van het volledige menu ---------- */
@media (max-width: 1100px) {
  .navlinks { display: none; }
  .hide-sm { display: none !important; }
  .site-header__binnen { flex-wrap: nowrap; }

  .menu-knop {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 12px; box-sizing: border-box;
    border: 1px solid #1E1B26; border-radius: 50%; background: #fff; cursor: pointer;
  }
  .menu-knop span { display: block; height: 2px; background: #1E1B26; border-radius: 2px; }

  .mobiel-menu {
    display: flex; flex-direction: column; gap: 28px;
    position: fixed; inset: 0; z-index: 50; overflow-y: auto;
    background: #F1EFF3; padding: 14px var(--zijmarge) 40px;
    font-family: 'Lexend', system-ui, sans-serif; color: #1E1B26;
  }
  .mobiel-menu__top { display: flex; align-items: center; justify-content: space-between; }
  .mobiel-menu__sluit {
    width: 46px; height: 46px; border-radius: 50%; border: 0; background: #1E1B26; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .mobiel-menu__links { display: flex; flex-direction: column; }
  .mobiel-menu__links a {
    font-size: 26px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none;
    padding: 12px 0; border-bottom: 1px solid #DCD8E2;
  }
  .mobiel-menu__producten { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
  .mobiel-menu__producten a { text-decoration: none; }
  .mobiel-menu__producten a[aria-current="page"] { color: #D0103F; font-weight: 600; }
  .mobiel-menu__kop { font-family: 'Quicksand', sans-serif; font-weight: 700; color: #B00C35; }
  .mobiel-menu__acties { display: flex; flex-wrap: wrap; gap: 12px; }
  .menu-open, .menu-open body { overflow: hidden; }
}

/* ---------- tot 900px: logo-raster in twee kolommen (zoals in het ontwerp) ---------- */
@media (max-width: 900px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- tot 760px: mobiel ---------- */
@media (max-width: 760px) {
  /* Lange woorden, links en e-mailadressen mogen afbreken */
  h1, h2, h3, p, a, li, td, th, summary { overflow-wrap: break-word; }

  img { max-width: 100%; }

  :root {
    --zijmarge: 18px;
    --ruimte-sectie: 56px;
  }
  .site-demo { padding: 10px 16px; font-size: 14px; }
  .site-logo svg { width: 110px; height: auto; }

  /* Vaste breedtes en grote vlakken laten meeschalen */
  section [style*="flex: 1 1 480px"],
  section [style*="flex: 1 1 400px"],
  section [style*="flex: 1 1 440px"],
  section [style*="flex: 1 1 420px"],
  section [style*="flex: 1 1 520px"],
  section [style*="flex: 1 1 460px"],
  section [style*="flex: 1 1 340px"] { flex-basis: 100% !important; min-width: 0 !important; }
  .grid { grid-template-columns: 1fr; }
  form[style*="minmax(200px"] { grid-template-columns: 1fr !important; }

  /* Decoratieve vlakken kleiner maken */
  section > div[aria-hidden="true"][style*="width: 520px"],
  section > div[aria-hidden="true"][style*="width: 560px"] { width: 260px !important; height: 260px !important; }

  section > div[aria-hidden="true"][style*="width: 44px"] { display: none; }

  /* Vergelijkingstabel past op het scherm in plaats van zijwaarts scrollen */
  table[style*="min-width: 640px"] { min-width: 0 !important; font-size: 13px !important; }
  table[style*="min-width: 640px"] th,
  table[style*="min-width: 640px"] td { padding: 12px 8px !important; }
  table svg { flex-shrink: 0; }
}
