/* =========================================================
   Teloro — eigenständige Testimonials-Seite
   ========================================================= */

/* ---------- Hero ---------- */

.tsm-hero {
  padding: calc(var(--header-h) + 56px) 0 40px;
  background: #fff;
  text-align: center;
}

.tsm-intro {
  max-width: 640px;
  margin-inline: auto;
}

.tsm-intro h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.09;
  margin-bottom: 22px;
  text-wrap: balance;
}

.tsm-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.tsm-rating-score {
  color: var(--ink);
  font-weight: 650;
}

.tsm-rating-stars {
  color: #3f4250;
  font-size: 0.86rem;
  letter-spacing: 1px;
}

/* ---------- Masonry grid ---------- */

.tsm-section {
  padding: 16px 0 96px;
  background: #fff;
}

.tsm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.tsm-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* ---------- Card ---------- */

.tsm-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(11, 13, 26, 0.08);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
}

.tsm-card-media {
  aspect-ratio: 3 / 2;
  background: var(--surface);
}

.tsm-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.tsm-card-body {
  position: relative;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tsm-quote {
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.62;
}

.tsm-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tsm-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tsm-logo img {
  max-width: 30px;
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.tsm-who {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.tsm-name {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 620;
}

.tsm-company {
  color: var(--faint);
  font-size: 0.78rem;
}

/* ---------- CTA banner ---------- */

.tsm-cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.tsm-cta-copy h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.tsm-cta-copy p {
  max-width: 590px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .tsm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .tsm-hero {
    padding-top: calc(var(--header-h) + 36px);
  }

  .tsm-grid {
    grid-template-columns: 1fr;
  }

  .tsm-cta-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tsm-cta-copy p {
    max-width: none;
  }
}
