/* Container (optional, fürs Styling) */
.acc-item {
  background: #f8f8f8;
  border-radius: 24px;
  padding: 16px 20px;
  margin: 16px 0;
}

/* Trigger-Button mit Icon links */
.acc-trigger {
  all: unset;                 /* macht's leichter, wenn du den Button-Block nutzt */
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  line-height: 1.3;
  font-weight: 600;
  color: #2e2e2e;
}

/* Kreis-Icon */
.acc-icon {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: #ECEA76;        /* dein Gelb */
  flex: 0 0 50px;
  display: inline-block;
  position: relative;
}

/* Pfeil als CSS-Maske (chevron-right) */
.acc-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 50%;
  height: 50%;
  background: #2e2e2e;        /* Pfeilfarbe */
  /* SVG als Maske, damit Farbe via background steuerbar ist */
  -webkit-mask: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,\
   <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>") no-repeat center / contain;
  transition: transform 240ms ease;
  transform-origin: 50% 50%;
}

/* Panel – animiertes Auf/Zu */
.acc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 280ms ease;
}

/* Geöffnet-Zustand über aria-expanded */
.acc-trigger[aria-expanded="true"] .acc-icon::before {
  transform: rotate(90deg);     /* dreht › zu ⌄ */
}

/* Optional: Kreisfarbe im offenen Zustand anpassen */
.acc-trigger[aria-expanded="true"] .acc-icon {
  background: #ecea76;
}

/* Barrierefreiheit / reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  .acc-panel, .acc-icon::before { transition: none !important; }
}

