/* Feature-Chips: Klapp-Effekt bei Klick/Tap */

.tu-chip {
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
}

.tu-chip .tu-chip-header {
  text-align: center;
  transition: all 0.4s ease;
}

.tu-chip .tu-chip-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease 0.1s;
}

/* Expanded State */
.tu-chip.expanded .card-body {
  display: flex;
  align-items: center;
  gap: 0;
}

.tu-chip.expanded .tu-chip-header {
  flex: 0 0 33%;
  text-align: center;
}

.tu-chip.expanded .tu-chip-detail {
  flex: 1;
  max-height: 300px;
  opacity: 1;
  background: rgba(137, 186, 21, 0.12);
  border-radius: 0.75rem;
  padding: 0.5rem 0.6rem;
}

[data-bs-theme="dark"] .tu-chip.expanded .tu-chip-detail {
  background: rgba(137, 186, 21, 0.15);
}

.tu-chip.expanded .tu-chip-detail p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
}

/* Mobile: Stapel statt nebeneinander */
@media (max-width: 576px) {
  .tu-chip.expanded .card-body {
    flex-direction: column;
  }
  .tu-chip.expanded .tu-chip-header {
    flex: none;
  }
  .tu-chip.expanded .tu-chip-detail {
    padding: 0.4rem 0.5rem;
  }
  .tu-chip.expanded .tu-chip-detail p {
    text-align: center;
    font-size: 0.85rem;
  }
}
