/* ==========================================
   BASIS – STRUKTUR
   ========================================== */
.faqs-accordion { 
  border: none;
  margin: 0;
  padding: 0;
}

.faq-item + .faq-item { 
  border-top: 1px solid #fff; 
}

/* ==========================================
   FRAGE (Button im H2)
   ========================================== */
.faq-question {
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
  display: block !important;
}

.faq-question .faq-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: #f7f7f7;
  color: inherit;
  font: inherit;
  text-align: left;

  display: flex !important;
  align-items: center !important;     /* vertikal perfekt zentriert */
  justify-content: space-between !important;

  width: 100%;
  box-sizing: border-box;
  cursor: pointer;

  padding: 14px 16px; /* wird von euren Plugin-Einstellungen überschrieben */
  min-height: 48px;   /* sorgt für gute vertikale Mitte */
  line-height: 1.4;
}

/* Fokus (Barrierefreiheit) */
.faq-question .faq-toggle:focus {
  outline: 0 solid transparent;
  outline-offset: 2px;
}

/* ==========================================
   ICON (Plus/Minus)
   ========================================== */
.faq-question .faq-toggle .faq-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;      /* absolut mittig */
  justify-content: center;  /* absolut mittig */

  width: 1.2em;
  height: 1.2em;

  font-weight: bold;
  font-size: 1.6em;   /* gewünschte Größe */
  line-height: 1;
  margin-left: 12px;
  user-select: none;
}

/* ==========================================
   ANTWORT
   ========================================== */
.faq-answer-wrap[hidden] { 
  display: none; 
}

.faq-answer {
  margin: 0;
  padding: 14px 16px; /* wird dynamisch überschrieben */
  background: #fff;
  line-height: 1.5;  /* bessere Lesbarkeit */
}

/* Geöffnetes Item: Frage fett */
.faq-item.open .faq-toggle { 
  font-weight: 600; 
}

/* ==========================================
   SMOOTH ACCORDION (CSS-only Transition)
   ========================================== */
.faq-answer-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 800ms ease, opacity 800ms ease;
}

.faq-item.open .faq-answer-wrap {
  max-height: 1000px; /* ausreichend groß */
  opacity: 1;
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
  .faq-answer-wrap {
    transition: none;
  }
}
