/* ===================================
   SECTION 3 — PARTNER TARIFF TILES + TARIFF CALCULATOR PANEL
   Three equal-height tiles (logo row, name, coverage bar, facts stretch, price and button pinned to
   the bottom) and the dark panel into the comparison (index-section-1b-anbieter.ejs).
   =================================== */

.home-providers__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 28px 0 14px;
}
.home-page .home-providers__title {
  margin: 0;
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--tp-ink);
}
.home-providers__sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--tp-ink-2);
}
.home-providers__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tp-ink-2);
}
.home-providers__hint i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--tp-accent);
}
.home-providers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-ptile {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  min-width: 0;
  padding: 20px 20px 18px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-r-lg);
  background: var(--tp-paper);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--tp-shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.home-ptile > * {
  min-width: 0;
}
.home-ptile:hover {
  border-color: var(--tp-line-accent);
  transform: translateY(-3px);
  box-shadow: var(--tp-shadow-hover);
}
/* Logo left, tag right, one fixed-height row in every tile: the logo shrinks before the tag wraps. */
.home-ptile__top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  height: 34px;
}
.home-ptile__top img {
  flex: 0 1 auto;
  height: 28px;
  width: auto;
  max-width: 55%;
  object-fit: contain;
  object-position: left center;
}
.home-ptile__tag {
  flex: 0 1 auto;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--tp-mint);
  color: var(--tp-accent-hover);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.home-ptile__name {
  display: grid;
  gap: 2px;
}
/* Two lines reserved for the name, so the coverage bars of the row share one baseline. */
.home-ptile__name b {
  min-height: calc(2 * 1.25em);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.home-ptile__name span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tp-ink-2);
}
.home-ptile__cover {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--tp-r-sm);
  background: var(--tp-cream);
}
.home-ptile__cover-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tp-ink-2);
}
.home-ptile__cover-row b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1;
  color: var(--tp-accent-hover);
}
.home-ptile__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--tp-grey-tile);
  overflow: hidden;
}
.home-ptile__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tp-accent-bright), var(--tp-accent));
}
.home-ptile__facts {
  display: grid;
  gap: 7px;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--tp-ink-2);
}
.home-ptile__facts li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.home-ptile__facts .home-chk {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.home-ptile__facts .home-chk svg {
  width: 10px;
  height: 10px;
}
.home-ptile__foot {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--tp-line);
}
/* "mit 35 Jahren" above, the premium and the period on one baseline below. */
.home-ptile__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tp-ink-2);
}
.home-ptile__price-age {
  flex: 1 0 100%;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-accent-hover);
}
.home-ptile__price b {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1;
  color: var(--tp-ink);
}
.home-ptile .home-btn {
  width: 100%;
  padding: 11px 16px;
  font-size: 14.5px;
}
.home-ptile:hover .home-btn--ghost {
  background: var(--tp-accent);
  color: #fff;
  border-color: var(--tp-accent);
}

/* The tariff calculator panel. */
.home-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
  gap: 18px 40px;
  align-items: center;
  margin-top: 28px;
  padding: 28px 32px;
  border-radius: var(--tp-r-lg);
  background: linear-gradient(160deg, var(--tp-stage) 0%, var(--tp-stage-deep) 100%);
  color: #fff;
}
.home-calc > * {
  min-width: 0;
}
.home-calc__eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-accent-bright);
}
.home-page .home-calc__title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: #fff;
}
.home-calc__text {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}
.home-calc__cta {
  display: grid;
  justify-items: end;
  align-self: center;
}
.home-calc__cta .home-btn {
  white-space: nowrap;
}
.home-providers__all {
  margin: 22px 0 0;
  text-align: center;
}

/* Three tiles need about 900 px for logo row and tags; below that two per row, one on phones. */
@media (max-width: 900px) {
  .home-providers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .home-calc {
    grid-template-columns: 1fr;
  }
  .home-calc__cta {
    justify-items: start;
    text-align: left;
  }
}
@media (max-width: 820px) {
  .home-calc {
    padding: 22px 20px;
  }
  .home-calc .home-btn {
    width: 100%;
  }
  .home-calc__cta {
    justify-items: stretch;
  }
}
@media (max-width: 560px) {
  .home-providers {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-ptile {
    transition: none;
  }
}
