/* Testimonials */

.testimonials {
  overflow: hidden;
}

.testimonials > div {
  display: grid;
  gap: var(--gap-block);
  grid-template-columns: 1fr;
}

@media (min-width: 45rem) {
  /* Flex statt Grid: letzte Reihe zentriert (Cap), volle Reihen füllen. */
  .testimonials > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .testimonials > div > blockquote {
    flex: 1 1 18rem;
    max-width: var(--section-card-max);
  }
}

.testimonials blockquote {
  padding: var(--padding-card);
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonials blockquote:hover {
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-lg);
}

.testimonials blockquote p {
  font-style: italic;
  color: var(--color-text);
  margin-block-end: var(--gap-inline);
}

/* Typografische Anführungszeichen umschließen den Quote-Text — „ vorne, " hinten.
   Unicode U+201E (low double quote, deutsch unten) und U+201C (left double quote, oben). */
.testimonials blockquote p::before { content: '\201E'; }
.testimonials blockquote p::after  { content: '\201C'; }

.testimonials cite {
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  align-self: flex-end;
  text-align: right;
}

/* Sterne-Bewertung (nur bei gepflegtem Rating) + Meta-Zeile (Rolle · Ort · Datum) unter dem Autor. */
.testimonials .ts-rating { margin-block-end: var(--gap-inline); }   /* Sterne: Ui::stars (components/ui.css) */
.testimonials .ts-meta { display: block; font-weight: 400; color: var(--color-text-muted); margin-block-start: 0.15rem; }

/* Übersichtsseite (/kundenstimmen): Seitentitel, Paginierung, Leerzustand. */
.testimonials-page > header { text-align: center; margin-block-end: var(--gap-block); }
.testimonials-page .ts-empty { text-align: center; color: var(--color-text-muted); }
.ts-pager { display: flex; align-items: center; justify-content: center; gap: var(--gap-block); margin-block-start: var(--gap-block); }
.ts-pager .ts-page { color: var(--color-text-muted); font-size: var(--text-sm); }
.ts-pager .is-off { color: var(--color-border); }

/* Einreichseite (/kundenstimme-abgeben): seit 12.11.2026 Standard-Formular (FormElements::form), keine eigenen Regeln mehr — die
   .ts-submit/.ts-form/.ts-note-Regeln entfielen am 13.11.2026, nachdem auch Besichtigung-Absage und e-Signatur umgestellt waren. */

/* Filterleiste (P6c) auf der Übersichtsseite: Jahr / Ort / Rolle als GET-Form, no-JS. */
.ts-filter { display: flex; flex-wrap: wrap; gap: var(--gap-inline); align-items: center; justify-content: center; margin-block-end: var(--gap-block); }
.ts-filter-field select { padding: 0.45rem 0.7rem; border: 1px solid var(--color-border); border-radius: var(--radius); font: inherit; background: var(--color-surface); }
.ts-filter-btn { padding: 0.45rem 1.1rem; border: 0; border-radius: var(--radius); background: var(--color-primary); color: #fff; font-weight: 600; cursor: pointer; }
.ts-filter-btn:hover { filter: brightness(1.05); }
.ts-filter-reset { color: var(--color-text-muted); font-size: var(--text-sm); text-decoration: underline; }
.testimonials-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
