/* ============================================================
   SkyHills Nederland — Informatiegids
   Responsieve aanpassingen
   ============================================================ */

/* ---------- Tablets (<= 980px) ---------- */
@media (max-width: 980px) {
  .hero { padding-block: 64px 56px; }
  .hero h1 { font-size: 2.15rem; }

  /* Inhoudsopgave: van zijbalk naar horizontaal schuifbare chips */
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .toc {
    position: static;
    padding-top: 32px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .toc-nav {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px 16px;
  }
  .toc-title { margin-bottom: 10px; }
  .toc-nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .toc-nav li { flex: 0 0 auto; }
  .toc-nav a {
    margin-inline: 0;
    padding: 8px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
  }
  .toc-nav a.is-active {
    border-color: rgba(56, 208, 180, 0.45);
  }
  .page-body .section:first-child { padding-top: 36px; }
  .page-body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .card-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* ---------- Kleine tablets & grote telefoons (<= 760px) ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; }

  .section { padding-block: 48px; }
  .section h2 { font-size: 1.45rem; }
  .section h3 { font-size: 1.1rem; }
  .section-label { font-size: 0.72rem; margin-bottom: 10px; }

  /* Header compacter */
  .site-header .container { gap: 12px; }

  /* Mobiele navigatie */
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open { max-height: 420px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 18px;
  }
  .main-nav a {
    padding: 12px 14px;
    font-size: 1rem;
  }

  /* Hero */
  .hero { padding-block: 52px 44px; }
  .hero h1 { font-size: 1.85rem; }
  .hero .lead { font-size: 1.05rem; }
  .hero-eyebrow {
    font-size: 0.72rem;
    padding: 5px 12px;
    margin-bottom: 18px;
  }
  .hero-meta { margin-top: 26px; }

  /* Kaarten en callouts */
  .card-grid,
  .card-grid--2 { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 20px; }

  .callout {
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
  }

  /* Checklist */
  .check-list li { padding-left: 30px; margin-bottom: 10px; }

  /* Status-tabel: gestapeld */
  .status-table,
  .status-table thead,
  .status-table tbody,
  .status-table tr,
  .status-table th,
  .status-table td { display: block; }
  .status-table thead { display: none; }
  .status-table { font-size: 0.9rem; }
  .status-table,
  .status-table tbody,
  .status-table tr,
  .status-table th,
  .status-table td {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .status-table tr {
    margin-bottom: 16px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  .status-table th,
  .status-table td {
    padding: 11px 14px;
    border: none;
    border-bottom: 1px solid var(--border-soft);
  }
  .status-table th { width: 100%; }
  .status-table td { background: var(--bg); }

  /* FAQ: comfortabele tikdoelen */
  .faq-question {
    padding: 16px 2px;
    font-size: 0.97rem;
    gap: 12px;
  }
  .faq-answer-inner { padding-bottom: 18px; }

  .divider { margin: 36px 0; }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 40px 30px;
  }
  .footer-brand p { max-width: none; }
  .age-restriction {
    align-items: flex-start;
    font-size: 0.84rem;
    line-height: 1.5;
  }
  .age-badge { flex: 0 0 auto; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Kleine telefoons (<= 420px) ---------- */
@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .brand img { width: 120px; }

  .hero { padding-block: 44px 38px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .faq-question { font-size: 0.95rem; }
  .age-badge { width: 34px; height: 34px; }
}

/* ---------- Voorkeur voor minder beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
