/**
 * Investoor.ch — responsive overrides
 * Loaded AFTER theme.css so these rules win over default theme styles.
 * Uses !important where Blade templates set inline grid-template-columns
 * (those otherwise beat media queries).
 */

/* ------------------------------------------------------------------
   1) Force single-column stacks on small screens
   Fixes: /marketing twin cards + Leistungen/KI ticks,
          /partner-verdienst Direkte/Teamprovision cards
   ------------------------------------------------------------------ */
@media (max-width: 720px) {
  .cards,
  .cards.rv,
  section .cards,
  .sec .cards {
    grid-template-columns: 1fr !important;
  }

  .ticks,
  ul.ticks,
  .card .ticks,
  .card ul.ticks {
    grid-template-columns: 1fr !important;
  }

  /* Pricing packages on Angebot — avoid cramped 2+1 wrap */
  .panel.on {
    grid-template-columns: 1fr !important;
  }
}

/* Tablet: keep pricing as single column until there's room for 3 */
@media (max-width: 980px) {
  .panel.on {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 981px) and (max-width: 1240px) {
  .panel.on {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ------------------------------------------------------------------
   2) Angebot category tab bar — less cramped on phones
   ------------------------------------------------------------------ */
@media (max-width: 720px) {
  .navigation {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 28px 8px 14px;
    gap: 4px;
    justify-content: space-between;
  }

  .navigation li {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    height: 70px;
  }

  .navigation .icon {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .navigation li.active .icon {
    transform: translateY(-28px);
  }

  .navigation .text {
    white-space: normal;
    text-align: center;
    font-size: 11px;
    line-height: 1.15;
    max-width: 100%;
    padding: 0 2px;
    overflow-wrap: anywhere;
  }
}

/* ------------------------------------------------------------------
   3) Register — stop double-logo overlap with site header
   Header already shows the brand; hide the in-card logo on narrow screens.
   ------------------------------------------------------------------ */
@media (max-width: 720px) {
  /* Sticky header (~84px) + gap. Do NOT vertical-center the card —
     align-items:center pulls the form under the fixed nav on short screens. */
  .investoor-ch-register {
    padding-top: 108px !important;
    padding-bottom: 40px !important;
    align-items: flex-start !important;
  }

  .investoor-ch-register__logo {
    display: none !important;
  }

  .investoor-ch-register__brand {
    margin-bottom: 18px;
  }

  .investoor-ch-register__card {
    padding: 24px 18px 22px;
  }

  .investoor-ch-register__title {
    font-size: 22px;
  }

  .investoor-ch-register__eyebrow {
    position: relative;
    z-index: 0;
  }
}

/* Safety: auth field grids stay readable on narrow phones */
@media (max-width: 560px) {
  .investoor-ch-register__grid {
    grid-template-columns: 1fr !important;
  }
}
