/* ==========================================================
   MEINbusiness Add-on-Boxen
   H3/H4: zentrale Theme-Einstellungen
   Buttons: zentrale Atlas-Variablen
   Boxen: ohne Rundungen
   ========================================================== */

.mba {
  --mba-pad-x: 1.5rem;
  --mba-gap: 32px;
  --mba-shadow-x: 8px;
  --mba-shadow-y: 10px;
  --mba-shadow-color: #bdb3a7;

  display: grid;
  grid-template-columns: repeat(var(--mba-cols, 3), minmax(0, 1fr));
  column-gap: var(--mba-gap);
  row-gap: 0;
  align-items: stretch;

  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 var(--mba-shadow-x) var(--mba-shadow-y) 0;

  color: var(--mba-text, inherit);
  box-sizing: border-box;
}

.mba *,
.mba *::before,
.mba *::after {
  box-sizing: border-box;
}

/* ---------- Boxen ---------- */

.mba .mba-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;

  padding: 2rem var(--mba-pad-x) 2.25rem;
  background: var(--mba-card-bg, #e8e4dc);
  border-radius: 0;
}

.mba .mba-card > * {
  min-width: 0;
  max-width: 100%;
}

.mba .mba-card,
.mba .mba-card:hover,
.mba .mba-card:focus-within {
  transform: none !important;
  transition: none !important;
  box-shadow:
    var(--mba-shadow-x)
    var(--mba-shadow-y)
    0 0
    var(--mba-shadow-color) !important;
}

/* ---------- Inhalte zwischen Boxen ausrichten ---------- */

@supports (grid-template-rows: subgrid) {
  .mba .mba-card {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .mba .mba-card__icon {
    grid-row: 1;
  }

  .mba .mba-card__title {
    grid-row: 2;
  }

  .mba .mba-card__desc {
    grid-row: 3;
  }

  .mba .mba-card__price {
    grid-row: 4;
  }

  .mba .mba-card__benefits {
    grid-row: 5;
  }

  .mba .mba-card__cta {
    grid-row: 6;
    align-self: end;
  }
}

/* ---------- Kennzeichnung ---------- */

.mba .mba-card__pill {
  position: absolute;
  top: 1.5rem;
  right: var(--mba-pad-x);

  max-width: calc(100% - var(--mba-pad-x) * 2);
  padding: .4em 1em;
  border-radius: 999px;

  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;

  white-space: normal;
  overflow-wrap: anywhere;
}

/* ---------- Lottie-Icon ---------- */

.mba .mba-card__icon {
  margin: 0 0 2rem;
}

.mba .mba-card__lottie {
  position: relative;
  width: 100%;
  height: var(--mba-icon-h, 52px);
}

.mba .mba-card__lottie-stage {
  position: absolute;
  inset: 0;
}

.mba .mba-card__lottie-stage svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ---------- H3 aus dem Theme ---------- */

.mba .mba-card__title {
  margin: 0 0 1.1rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* ---------- Beschreibung ---------- */

.mba .mba-card__desc {
  margin: 0 0 1.1rem;
  overflow-wrap: anywhere;
}

.mba .mba-card__desc,
.mba .mba-card__desc * {
  font-family: inherit !important;
}

.mba .mba-card__desc > :first-child {
  margin-top: 0;
}

.mba .mba-card__desc > :last-child {
  margin-bottom: 0;
}

/* ---------- Preis ----------
   Schriftart aus dem Theme, bisherige Größe.
*/

.mba .mba-card__price {
  margin: 0 0 1.5rem;
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
  overflow-wrap: anywhere;
}

.mba .mba-card__price-main,
.mba .mba-card__price-suffix {
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
}

.mba .mba-card__price-suffix {
  font-size: .75em;
}

/* ---------- Vorteile ---------- */

.mba .mba-card__benefits {
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

/* H4 aus dem Theme, ausdrücklich schwarze Farbe. */

.mba .mba-card__benefits-title {
  margin: 0 0 14px;
  color: #000;
}

.mba .mba-card__benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mba .mba-card__benefits li {
  position: relative;
  list-style: none;
  margin: 0 0 10px;
  padding: 0 0 0 1.6em;

  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.4;
  color: inherit;
}

.mba .mba-card__benefits li:last-child {
  margin-bottom: 0;
}

.mba .mba-card__benefits li,
.mba .mba-card__benefits li * {
  font-family: inherit !important;
}

.mba .mba-card__benefits li p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.mba .mba-card__benefits li strong,
.mba .mba-card__benefits li b {
  font-weight: 700;
}

/* Kompakte Häkchen */

.mba .mba-card__benefits li::before {
  content: "";
  position: absolute;
  left: .15em;
  top: .25em;

  width: .3em;
  height: .6em;
  box-sizing: content-box;

  border-style: solid;
  border-color: currentColor;
  border-width: 0 .15em .15em 0;

  background: none;
  transform: rotate(45deg);
}

.mba .mba-card__benefits li::after {
  content: none;
}

.mba .mba-card__benefits li > ul {
  margin-top: 10px;
}

/* ---------- Atlas-Buttons ---------- */

.mba .mba-card__cta {
  margin-top: 1.5rem;
}

.mba .mba-card__theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  max-width: 100%;
  min-width: 0;
  min-height: 44px;

  padding: var(--theme-button-padding);
  font-family: var(--theme-button-font-family);
  font-size: var(--theme-button-font-size);
  font-weight: var(--theme-button-font-weight);
  text-transform: var(--theme-button-text-transform);

  border-style: solid;
  border-width: var(--theme-button-border-width);
  border-radius: var(--theme-button-border-radius);
  border-color: var(--theme-button-border-color);

  color: var(--theme-button-color);
  background-color: var(--theme-button-background);

  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mba .mba-card__theme-button:hover,
.mba .mba-card__theme-button:focus {
  color: var(--theme-button-hover-color);
  background-color: var(--theme-button-hover-background);
  border-color: var(--theme-button-hover-border-color);
}

.mba .mba-card__theme-button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* ---------- Tablet ---------- */

@media (max-width: 960px) {
  .mba {
    grid-template-columns:
      repeat(var(--mba-tablet-cols, 1), minmax(0, 1fr));
    row-gap: var(--mba-gap);
  }
}

/* ---------- Mobil ---------- */

@media (max-width: 640px) {
  .mba {
    grid-template-columns: minmax(0, 1fr);

    --mba-pad-x: 1.25rem;
    --mba-shadow-x: 5px;
    --mba-shadow-y: 7px;
  }

  .mba .mba-card {
    padding: 1.5rem var(--mba-pad-x);
  }

  .mba .mba-card__icon {
    margin-bottom: 1.5rem;
  }

  .mba .mba-card__benefits li {
    margin-bottom: 8px;
    line-height: 1.35;
  }

  .mba .mba-card__benefits li:last-child {
    margin-bottom: 0;
  }

  .mba .mba-card__theme-button {
    width: 100%;
  }
}