/* =========================================================
   Ausklappbarer Zusatztext ("… ")
   Reines CSS (Checkbox + Label), kein JavaScript nötig.
   Der Inhalt steht vollständig im Quelltext und wird beim
   Klick auf die dezenten Punkte eingeblendet.

   Wichtig: .tf-expand-text trägt bewusst KEINE eigene
   Typografie. Im Markup erhält es dieselbe Klasse wie der
   sichtbare Absatz davor (z. B. "lede" oder "hero-sub"),
   damit Schriftgröße, Zeilenhöhe und Farbe exakt identisch
   sind. Diese Datei regelt ausschließlich das Ein-/Ausblenden.
   ========================================================= */

.tf-expand-cb {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.tf-dots {
  cursor: pointer;
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.tf-dots:hover,
.tf-dots:focus-visible {
  opacity: 0.8;
  text-decoration: underline dotted;
}

.tf-expand-cb:focus-visible ~ .tf-dots {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tf-expand-text {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  text-wrap: pretty;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease;
}

.tf-expand-text p {
  margin: 0 0 10px 0;
}

.tf-expand-text p:last-child {
  margin-bottom: 0;
}

.tf-expand-cb:checked ~ .tf-expand-text {
  max-height: 600px;
  opacity: 1;
  margin-top: 10px !important;
}

/* Testimonials-Lede sitzt in einer Flex-Kopfzeile und braucht
   eine verlässliche Spaltenbreite, damit weder der sichtbare
   Satz noch der Ausklapptext in eine kurze Waisenzeile umbrechen. */
.tmc-head > div {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 680px;
}

.tmc-lede {
  margin-top: 12px;
  text-wrap: pretty;
}
