/* Landing-page sections beneath the approved Hero (#117). */
.stb-product-section {
  padding: clamp(4.5rem, 7vw, 7.5rem) 0;
}

.stb-product-section--soft {
  background: #fbfbfd;
}

.stb-product-container {
  width: min(1320px, calc(100% - 3rem));
  margin-inline: auto;
}

.stb-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6.5rem);
}

.stb-product-grid--copy-first {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.stb-product-grid--cta {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.stb-product-copy,
.stb-product-media {
  min-width: 0;
}

.stb-product-copy {
  max-width: 650px;
}

.stb-product-copy h2 {
  text-wrap: balance;
}

/* Match the approved Hero mark: one rounded yellow rectangle whose width is
 * defined by the longest intended headline line. */
#stb-together-title,
#stb-system-title,
#stb-minutes-title,
#stb-testimonials-title,
#stb-ready-title {
  background: transparent;
  color: #17162b;
  padding: 0;
}

.stb-heading-highlight {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  background: #fff45c;
  border-radius: 0.75rem;
  color: #17162b;
  padding: 0.08em 0.14em 0.13em;
}

.stb-product-copy h2 + p,
#stb-testimonials-title + p,
#stb-ready-title + p {
  margin-top: 1rem;
}

.stb-product-copy p {
  color: #4b5064;
  line-height: 1.7;
}

.stb-product-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stb-product-list li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  line-height: 1.55;
}

.stb-product-check {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.08rem;
  border-radius: 999px;
  background: #6254e8;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.stb-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stb-product-illustration {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.stb-product-media--01 .stb-product-illustration {
  max-width: 630px;
}

.stb-product-media--02 .stb-product-illustration {
  max-width: 820px;
}

.stb-product-media--03 .stb-product-illustration {
  max-width: 720px;
}

.stb-product-media--04 .stb-product-illustration {
  max-width: 630px;
}

.stb-product-frame,
.stb-cta-frame {
  border: 1px solid #ececf2;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(29, 23, 61, 0.045);
}

.stb-product-frame {
  padding: clamp(2.25rem, 4.5vw, 5rem);
}

.stb-cta-frame {
  padding: clamp(2.5rem, 5vw, 5.5rem);
  background:
    radial-gradient(circle at 78% 25%, rgba(98, 84, 232, 0.055), transparent 33%),
    #fbfbfd;
}

/* Same compact yellow CTA treatment as the approved button in the Hero. */
#funktionen .btn-primary,
.stb-cta-section .btn-primary {
  background: #fff45c;
  border: 1px solid #fff45c;
  border-radius: 0.25rem;
  color: #17162b;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  padding: 0.375rem 1rem;
}

#funktionen .btn-primary:hover,
.stb-cta-section .btn-primary:hover {
  background: #fff;
  border-color: #17162b;
  color: #17162b;
}

.stb-cta-section {
  padding-top: clamp(4rem, 6vw, 6rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
}

@media (max-width: 900px) {
  .stb-product-section {
    padding: 4.25rem 0;
  }

  .stb-product-container {
    width: min(100% - 2rem, 720px);
  }

  .stb-product-grid,
  .stb-product-grid--copy-first,
  .stb-product-grid--cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .stb-product-grid--media-first .stb-product-copy {
    grid-row: 1;
  }

  .stb-product-grid--media-first .stb-product-media {
    grid-row: 2;
  }

  .stb-product-copy {
    max-width: none;
  }

  .stb-product-media--01 .stb-product-illustration,
  .stb-product-media--04 .stb-product-illustration {
    max-width: 590px;
  }

  .stb-product-media--02 .stb-product-illustration,
  .stb-product-media--03 .stb-product-illustration {
    max-width: 680px;
  }

  .stb-product-frame,
  .stb-cta-frame {
    border-radius: 1.5rem;
    padding: 2rem;
  }
}

@media (max-width: 520px) {
  .stb-product-container {
    width: min(100% - 1.5rem, 680px);
  }

  .stb-product-section {
    padding: 3.5rem 0;
  }

  .stb-product-grid,
  .stb-product-grid--copy-first,
  .stb-product-grid--cta {
    gap: 2rem;
  }

  .stb-product-frame,
  .stb-cta-frame {
    border-radius: 1.25rem;
    padding: 1.35rem;
  }

  .stb-product-list {
    gap: 0.9rem;
  }

  .stb-product-list li {
    grid-template-columns: 1.3rem minmax(0, 1fr);
    gap: 0.7rem;
  }

  .stb-heading-highlight {
    width: auto;
    max-width: 100%;
  }
}
