/* Akquisehaus – Handy-Feinschliff (zuletzt geladen, überschreibt nur auf kleinen Bildschirmen) */

/* Kein seitliches Wackeln auf iOS/Android */
html, body { overflow-x: clip; }
img, video { max-width: 100%; height: auto; }

@media (max-width: 640px) {

  /* ---------- Lesbarkeit: nichts unter 12,5 px ---------- */
  .tj-stopnum,
  .tj-badge,
  .tj-cand__preis small,
  .tj-cand__alt,
  .tj-cand__label,
  .tj-note,
  .tj-form__hinweis { font-size: 12.5px; }
  .tj-foot__copy { font-size: 12.5px; line-height: 1.55; }

  /* ---------- Tippflächen mind. 44 px ---------- */
  .tj-logo { min-height: 44px; display: inline-flex; align-items: center; }
  .tj-foot__nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .tj-foot__nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .tj-slider__dots { gap: 0; }
  .tj-slider__dots button {
    width: 28px; height: 44px; padding: 0; background: transparent;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .tj-slider__dots button { transition: none; }
  .tj-slider__dots button::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(16,24,32,.18);
    transition: width .3s ease, background .3s ease;
  }
  .tj-slider__dots button.is-an { background: transparent; width: 40px; }
  .tj-slider__dots button.is-an::before { width: 26px; border-radius: 6px; background: var(--tj-orange); }
  .tj-faq__eintrag summary { min-height: 52px; }
  .tj-btn { min-height: 48px; }

  /* ---------- Abstände & Überschriften ---------- */
  .tj-sec { padding-top: 44px; padding-bottom: 44px; }
  .tj-shell { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: clamp(31px, 9.2vw, 38px); }
  h2 { font-size: clamp(25px, 7.4vw, 30px); }

  /* ---------- Buttons in Reihen untereinander, volle Breite ---------- */
  .tj-hero__actions { flex-direction: column; align-items: stretch; }
  .tj-hero__actions .tj-btn,
  .tj-center .tj-btn,
  .tj-cta .tj-btn { width: 100%; justify-content: center; text-align: center; }

  /* ---------- Formular ---------- */
  .tj-modal {
    width: calc(100% - 20px); max-height: 94dvh; padding: 24px 18px 22px;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  .tj-modal__close { width: 44px; height: 44px; }
  .tj-form__row { grid-template-columns: 1fr; }
  .tj-field input, .tj-field select, .tj-field textarea { font-size: 16px; min-height: 48px; }
  .tj-check2 { align-items: flex-start; }
  .tj-check2 input { width: 22px; height: 22px; flex: none; }

  /* ---------- Kandidatenkarten: nächste Karte angeschnitten sichtbar ---------- */
  .tj-cand { scroll-snap-align: center; }
}

/* Kleine Telefone */
@media (max-width: 380px) {
  .tj-shell { padding-left: 14px; padding-right: 14px; }
  .tj-head__cta .tj-btn { padding-left: 14px; padding-right: 14px; font-size: 14px; }
}

/* Safe-Area (iPhone mit Notch/Home-Balken) */
.tj-foot { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
