/* Innerhaus Kurspass-Shop. Nur im eigenen Pop-up anwenden.
   Bsport nutzt einen CSS-Reset mit !important; gezielte Overrides sind deshalb nötig.
   Angebote, Gültigkeiten, Details und Kaufabläufe bleiben bei Bsport. */
.bs-inline .bs-pass-page,
.bs-inline .bs-pass-page * { font-family: var(--font-sans) !important; }
.bs-inline .bs-pass-card {
  background: var(--cream) !important;
  border: 1px solid var(--beige3) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--black) !important;
}
.bs-inline .bs-pass-card-content {
  background: var(--cream) !important;
  background-image: none !important;
  padding: 20px !important;
}
.bs-inline .bs-paymentpack-card__title {
  color: var(--black) !important;
  font-size: 21px !important; font-weight: 500 !important;
  letter-spacing: -0.025em !important; line-height: 1.3 !important;
  margin: 0 !important;
}
.bs-inline .bs-paymentpack-card__subtitle {
  color: var(--mid) !important; font-size: 12px !important;
  letter-spacing: 0.12em !important; text-transform: uppercase !important;
  margin: 0 !important;
}
.bs-inline .bs-paymentpack-card__validity {
  background: transparent !important; text-align: right !important;
  max-width: 110px !important; padding: 0 !important;
}
.bs-inline .bs-paymentpack-card__validity__content {
  color: var(--muted) !important; font-size: 12px !important;
  line-height: 1.6 !important;
}
.bs-inline .bs-paymentpack-card__description {
  color: var(--muted) !important; font-size: 14px !important;
  line-height: 1.7 !important; margin: 4px 0 0 !important;
  -webkit-line-clamp: 2 !important;
}
.bs-inline .bs-price__container {
  justify-content: space-between !important;
  color: var(--black) !important; margin: 8px 0 0 !important;
}
.bs-inline .bs-price__container > span {
  font-size: 36px !important; font-weight: 400 !important;
  line-height: 1.2 !important; letter-spacing: -0.035em !important;
  color: var(--black) !important;
}
.bs-inline .bs-paymentpack-card__footer {
  border-top: 1px solid var(--beige3) !important;
  margin-top: 0 !important; padding-top: 12px !important;
  gap: 12px !important;
}
.bs-inline .bs-paymentpack-card__left-button {
  background: transparent !important; border: 0 !important;
  color: var(--red) !important; border-radius: 0 !important;
  min-height: 46px !important; padding: 0 8px !important;
}
.bs-inline .bs-paymentpack-card__left-button__content,
.bs-inline .bs-paymentpack-card__left-button__icon { color: var(--red) !important; }
.bs-inline .bs-paymentpack-card__right-button {
  background: var(--red) !important; color: var(--white) !important;
  border: 1px solid var(--red) !important; border-radius: 0 !important;
  min-height: 46px !important; padding: 12px 18px !important;
}
.bs-inline .bs-paymentpack-card__right-button .bs-button__text {
  color: var(--white) !important; font-size: 11px !important;
  font-weight: 500 !important; letter-spacing: 0.07em !important;
}
.bs-inline .bs-paymentpack-card__right-button:hover { background: var(--black) !important; border-color: var(--black) !important; }
.bs-inline .bs-paymentpack-card__left-button:focus-visible,
.bs-inline .bs-paymentpack-card__right-button:focus-visible,
.bs-inline .bs-paymentpack-card__price-icon:focus-visible { outline: 2px solid var(--red) !important; outline-offset: 3px !important; }
@container bsPassPage (width < 750px) {
  .bs-inline .bs-pass-card-content { padding: 22px !important; }
  .bs-inline .bs-paymentpack-card__title { font-size: 21px !important; }
  .bs-inline .bs-paymentpack-card__description { font-size: 13px !important; }
  .bs-inline .bs-price__container > span { font-size: 34px !important; }
}

/* Zwei gleich breite Spalten über die volle Breite.
   Bsport setzt feste Spalten mit hoher Spezifität; deshalb dieselbe Selektorkette plus .bs-inline. */
.bs-inline [id*="bsport-widget"] .cleanslate .bs-pass-page__payment__pack__list__container {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}
.bs-inline [id*="bsport-widget"] .cleanslate .bs-pass-page__payment__pack__list__card__button,
.bs-inline [id*="bsport-widget"] .cleanslate .bs-pass-card { width: 100% !important; max-width: none !important; }
@media (max-width: 700px) {
  .bs-inline [id*="bsport-widget"] .cleanslate .bs-pass-page__payment__pack__list__container { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ---- Abos (Widget "subscription") im Look der Kurspässe ---- */
.bs-inline [id*="bsport-widget"] .cleanslate .bs-contract-page__pass__filters__search__container,
.bs-inline [id*="bsport-widget"] .cleanslate .bs-search__container { display: none !important; }
.bs-inline [id*="bsport-widget"] .cleanslate .bs-contract-page__contract__list__container {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}
.bs-inline [id*="bsport-widget"] .cleanslate .bs-contract-page__contract__button__container,
.bs-inline [id*="bsport-widget"] .cleanslate .bs-contract-card { width: 100% !important; max-width: none !important; }
.bs-inline .bs-contract-page, .bs-inline .bs-contract-page * { font-family: var(--font-sans) !important; }
.bs-inline .bs-contract-card {
  background: var(--cream) !important; background-image: none !important;
  border: 1px solid var(--beige3) !important; border-radius: 0 !important;
  box-shadow: none !important; color: var(--black) !important;
  height: auto !important; min-height: 0 !important;
}
.bs-inline .bs-contract-card__title { color: var(--black) !important; font-size: 21px !important; font-weight: 500 !important; letter-spacing: -0.025em !important; }
.bs-inline .bs-contract-card__description,
.bs-inline .bs-contract-card__planned-invoices__content { color: var(--muted) !important; font-size: 14px !important; line-height: 1.7 !important; }
.bs-inline .bs-contract-card__price-container,
.bs-inline .bs-contract-card__price-container * { color: var(--black) !important; }
.bs-inline .bs-contract-card__left-button,
.bs-inline .bs-contract-card__left-button * { background: transparent !important; color: var(--red) !important; border-radius: 0 !important; }
.bs-inline .bs-button-primary__container {
  background: var(--red) !important; border: 1px solid var(--red) !important; border-radius: 0 !important; color: var(--white) !important;
}
.bs-inline .bs-button-primary__container:hover { background: var(--black) !important; border-color: var(--black) !important; }
.bs-inline .bs-button-primary__text { color: var(--white) !important; font-size: 11px !important; font-weight: 500 !important; letter-spacing: 0.07em !important; }
@media (max-width: 700px) {
  .bs-inline [id*="bsport-widget"] .cleanslate .bs-contract-page__contract__list__container { grid-template-columns: minmax(0, 1fr) !important; }
}
.bs-inline .bs-contract-card .bs-generic-card__content,
.bs-inline .bs-contract-card .bs-generic-card__content__grid { background: transparent !important; background-image: none !important; }
.bs-inline [id*="bsport-widget"] .cleanslate .bs-contract-card {
  background-color: var(--cream) !important; background-image: none !important;
  border: 1px solid var(--beige3) !important; border-radius: 0 !important; box-shadow: none !important;
}

/* Schmale Textseiten (Ausbildung): eine Spalte, damit Preis und Beschreibung nicht überlappen. */
#bsAusb.bs-inline [id*="bsport-widget"] .cleanslate .bs-pass-page__payment__pack__list__container { grid-template-columns: minmax(0, 1fr) !important; }

/* ---- Mobil: Preis darf nie in die Credits/Beschreibung laufen ----
   Bsport teilt die Karte fest 60/40; der große Preis ragt dann in die linke Spalte.
   Deshalb auf Mobil einspaltig: Titel/Credits oben, darunter Gültigkeit und Preis. */
@media (max-width: 640px) {
  .bs-inline [id*="bsport-widget"] .cleanslate .bs-pass-card .bs-generic-card__content__grid { grid-template-columns: minmax(0, 1fr) !important; row-gap: 12px !important; }
  .bs-inline [id*="bsport-widget"] .cleanslate .bs-pass-card .bs-generic-card__content__grid > .bs-generic-card__content__grid__item {
    grid-column: 1 / -1 !important; grid-row: auto !important; align-items: stretch !important; }
  .bs-inline [id*="bsport-widget"] .cleanslate .bs-contract-card .bs-generic-card__content__grid { grid-template-columns: minmax(0, 1fr) !important; row-gap: 12px !important; }
  .bs-inline [id*="bsport-widget"] .cleanslate .bs-contract-card .bs-generic-card__content__grid > .bs-generic-card__content__grid__item {
    grid-column: 1 / -1 !important; grid-row: auto !important; align-items: stretch !important; }
  .bs-inline .bs-pass-card-content,
  .bs-inline .bs-contract-card .bs-generic-card__content { padding: 16px !important; }
  .bs-inline .bs-paymentpack-card__title,
  .bs-inline .bs-contract-card__title { font-size: 19px !important; }
  .bs-inline .bs-paymentpack-card__validity { max-width: none !important; text-align: left !important; }
  .bs-inline .bs-price__container { gap: 10px !important; }
  .bs-inline .bs-price__container > span { font-size: 28px !important; white-space: nowrap !important; }
  .bs-inline .bs-contract-card__price-container,
  .bs-inline .bs-contract-card__price-container * { font-size: 26px !important; }
  .bs-inline .bs-paymentpack-card__right-button { padding: 12px 12px !important; }
}
