/* ==========================================================================
   Tablet en mobiel. Dit bestand wordt na style.css geladen, zodat de desktop-opmaak gelijk blijft.
   Breekpunten:
   - tot 1360px: hint rechtsboven en bronvermelding onder het logo, anders vallen ze over de stappenbalk
   - tot 760px, en tablets staand tot 1100px: compact (tekstkaart onderin, stappen als cijfers)
   - lage schermen liggend (telefoon dwars): tekstkaart alleen met titel
   ========================================================================== */

/* ---------- tot 1360px ---------- */
@media (max-width: 1360px) {
  .hint { top: var(--marge-boven); bottom: auto; }
  .credits { top: calc(var(--marge-boven) + var(--logo-hoogte) + 10px); bottom: auto;
    color: rgba(29, 29, 27, .78); text-shadow: 0 1px 8px rgba(255, 255, 255, .8); }   /* donker, want hier staat hij voor de lucht */
}

/* ---------- compact: tot 760px, en tablets staand ---------- */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  :root { --marge: 16px; --marge-boven: 14px; --logo-breedte: 130px; }
  .card { left: 12px; right: 12px; width: auto; max-width: 560px; margin: 0 auto; top: auto; bottom: 74px; transform: none;
    padding: 16px 18px 14px; }
  .card.out { transform: translateY(12px); }
  .card h1 { font-size: 20px; margin-bottom: 6px; }
  .card p { font-size: 13.5px; line-height: 1.45; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden; }
  .facts { display: none; }
  .lbl .t { font-size: 9.5px; padding: 5px 6px 4px; }
  .lbl .stem { height: 16px; }
  .lbl:nth-child(3n+2) .stem { height: 46px; }   /* drie hoogtes, zodat buren niet overlappen */
  .lbl:nth-child(3n) .stem { height: 76px; }
  .lbl.minor { display: none; }
  .steps { bottom: 12px; width: calc(100% - 24px); max-width: 560px; }
  .steps ol { flex: 1; overflow-x: auto; scrollbar-width: none; }
  .steps li { flex: 1; }
  .steps li button { padding: 13px 10px 12px; justify-content: center; width: 100%; }
  .steps li button .lab { display: none; }
  .steps li button[aria-current="step"] .lab { display: inline; }
  .arrow { width: 44px; }
  .hint { display: none; }
  .credits { left: var(--marge); right: var(--marge); max-width: 320px; font-size: 9px; }
}

/* ---------- lage schermen liggend (telefoon dwars) ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --marge-boven: 10px; --logo-breedte: 100px; }
  .kop { left: 12px; }
  .card { top: calc(var(--marge-boven) + var(--logo-hoogte) + 10px); left: 12px; right: auto; bottom: auto; margin: 0;
    transform: none; width: 280px; padding: 12px 14px 10px; }
  .card.out { transform: translateY(8px); }
  .card h1 { font-size: 18px; margin-bottom: 0; }
  .card p, .facts, .hint { display: none; }
  .kicker { margin-bottom: 6px; }
  .steps { bottom: 10px; }
  .steps li button { padding: 10px 14px; }
  .credits { top: var(--marge-boven); right: 12px; bottom: auto; left: auto; max-width: 260px; text-align: right;
    color: rgba(29, 29, 27, .78); text-shadow: 0 1px 8px rgba(255, 255, 255, .8); }
}
