/* ==================================================
   Custom FAQ Block
   Gilt für alle FAQ-Blöcke mit .wj-faq-section
================================================== */

/* FAQ-Frame-Abstand unten entfernen */
.frame-type-html:has(.wj-faq-section) {
  margin-bottom: 0 !important;
}

/* Falls :has() in einem Browser nicht greift: konkrete TYPO3-ID zusätzlich */
#c520.frame-space-after-medium {
  margin-bottom: 0 !important;
}

/* FAQ-Bereich auf volle Inhaltsbreite ziehen */
.wj-faq-section {
  margin-left: -40px;
  margin-right: -40px;
  background: #fafafa;
  padding: 52px 40px 64px;
  border-top: 1px solid #e1e1e1;
  border-bottom: 1px solid #d8d8d8;
  box-shadow: inset 0 -1px 0 #ffffff;
}

/* Inhalt bleibt angenehm lesbar */
.wj-faq-inner {
  max-width: 980px;
  margin: 0 auto;
}

/* Dachzeile */
.wj-faq-kicker {
  margin: 0 0 10px;
  color: #005e97;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Überschrift */
.wj-faq-section h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.25;
  color: #000;
  font-weight: normal;
}

/* Intro */
.wj-faq-intro {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
  color: #000;
}

/* Accordion-Liste */
.wj-faq-list {
  border-top: 1px solid #d6d6d6;
}

/* Einzelnes FAQ */
.wj-faq-item {
  border-bottom: 1px solid #d6d6d6;
  background: #fff;
}

/* Frage */
.wj-faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

/* Browser-Standard-Marker entfernen */
.wj-faq-item summary::-webkit-details-marker {
  display: none;
}

/* Plus-Zeichen */
.wj-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #005e97;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

/* Minus bei geöffnetem Element */
.wj-faq-item[open] summary::after {
  content: "–";
}

/* Antwortbereich */
.wj-faq-content {
  padding: 0 20px 22px;
}

/* Antworttext */
.wj-faq-content p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: #000;
}

.wj-faq-content p:last-child {
  margin-bottom: 0;
}

/* Links im FAQ */
.wj-faq-content a {
  color: #005e97;
  text-decoration: underline;
}

.wj-faq-content a:hover {
  color: #079ee3;
}

/* Mobile */
@media (max-width: 767px) {
  .wj-faq-section {
    margin-left: -15px;
    margin-right: -15px;
    padding: 36px 18px 46px;
  }

  .wj-faq-section h2 {
    font-size: 22px;
  }

  .wj-faq-intro {
    font-size: 14px;
  }

  .wj-faq-item summary {
    padding: 16px 46px 16px 16px;
    font-size: 15px;
  }

  .wj-faq-content {
    padding: 0 16px 18px;
  }

  .wj-faq-content p {
    font-size: 14px;
  }
}