.kfm-faq-wrap {
  --kfm-accent: #e64613;
  --kfm-surface: #ffffff;
  --kfm-soft: #fafafa;
  --kfm-border: #e2e2e2;
  --kfm-text: #000000;
  --kfm-muted: #111111;
  --kfm-radius: 0;
  --kfm-max-width: 100%;
  width: min(100%, var(--kfm-max-width));
  margin-inline: auto;
  color: var(--kfm-text);
  font-family: inherit;
}

.kfm-faq-wrap * {
  box-sizing: border-box;
}

/* Bereichs-Navigation */
.kfm-faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 42px;
}

.kfm-faq-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid var(--kfm-border);
  border-radius: 999px;
  background: var(--kfm-surface);
  color: var(--kfm-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.kfm-faq-nav a:hover,
.kfm-faq-nav a:focus-visible {
  color: var(--kfm-accent);
  border-color: var(--kfm-accent);
  background: var(--kfm-surface);
  outline: none;
}

/* Kategorien / Bereiche */
.kfm-faq-section {
  scroll-margin-top: 120px;
  margin: 0 0 58px;
}

.kfm-faq-section-title {
  margin: 0 0 24px !important;
  color: var(--kfm-text);
  font-size: clamp(28px, 3vw, 42px) !important;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.kfm-faq-section-intro {
  max-width: 900px;
  margin: -8px 0 26px;
  color: var(--kfm-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* Accordion-Liste */
.kfm-faq-list {
  display: block;
  border-top: 1px solid var(--kfm-border);
}

/* Einzelne FAQ */
.kfm-faq-item {
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--kfm-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.kfm-faq-question-heading {
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Frage-Zeile */
.kfm-faq-question {
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 22px;
  align-items: center;
  width: 100%;
  min-height: 45px;
  padding: 14px 32px 14px 0;
  border: 0;
  background: transparent;
  color: var(--kfm-text);
  text-align: left;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: none !important;
  transition: color .2s ease, background-color .2s ease;
}

.kfm-faq-question:hover,
.kfm-faq-question:focus-visible {
  color: var(--kfm-accent);
  background: transparent;
  outline: none;
}

.kfm-faq-item.is-open .kfm-faq-question {
  color: var(--kfm-accent);
}

/* Plus / Minus Icon */
.kfm-faq-icon {
  position: relative;
  display: block;
  justify-self: end;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: transform .2s ease;
}

.kfm-faq-icon::before,
.kfm-faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 3px;
  background: var(--kfm-accent);
  border-radius: 20px;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, transform .2s ease;
}

.kfm-faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.kfm-faq-item.is-open .kfm-faq-icon {
  transform: none;
}

.kfm-faq-item.is-open .kfm-faq-icon::after {
  opacity: 0;
}

/* Antwort */
.kfm-faq-answer {
  max-width: none;
  padding: 7px 72px 32px 0;
  color: var(--kfm-muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
}

.kfm-faq-answer > :first-child {
  margin-top: 0;
}

.kfm-faq-answer > :last-child {
  margin-bottom: 0;
}

.kfm-faq-answer p {
  margin: 0 0 18px;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.kfm-faq-answer ul,
.kfm-faq-answer ol {
  margin: 0 0 18px 1.2em;
  padding: 0;
}

.kfm-faq-answer li {
  margin: 0 0 8px;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}

.kfm-faq-answer a {
  color: var(--kfm-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none !important;
}

.kfm-faq-answer a:hover,
.kfm-faq-answer a:focus-visible {
  color: var(--kfm-text);
}

/* Falls Theme H3 überschreibt */
h3.kfm-faq-question-heading {
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .kfm-faq-wrap {
    width: 100%;
  }

  .kfm-faq-nav {
    gap: 8px;
    margin-bottom: 32px;
  }

  .kfm-faq-nav a {
    min-height: 34px;
    padding: 8px 13px;
    font-size: 14px;
  }

  .kfm-faq-section {
    margin-bottom: 44px;
    scroll-margin-top: 90px;
  }

  .kfm-faq-section-title {
    margin-bottom: 18px !important;
    font-size: 28px !important;
  }

  .kfm-faq-section-intro {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.65;
  }

  .kfm-faq-question {
    grid-template-columns: 1fr 24px;
    gap: 16px;
    min-height: 48px;
    padding: 14px 10px 14px 0;
    font-size: 15.5px;
    line-height: 1.4;
  }

  .kfm-faq-icon {
    width: 22px;
    height: 22px;
  }

  .kfm-faq-icon::before,
  .kfm-faq-icon::after {
    width: 13px;
    height: 3px;
  }

  .kfm-faq-answer {
    padding: 4px 10px 26px 0;
    font-size: 16px;
    line-height: 1.7;
  }

  .kfm-faq-answer p {
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .kfm-faq-question {
    font-size: 15px;
  }

  .kfm-faq-answer {
    font-size: 15.5px;
  }
}

/* Korrektur: Orange Hover/Active + Antworttext */
.kfm-faq-wrap {
  --kfm-accent: #e04f16;
  --kfm-muted: rgb(20, 22, 23);
}

/* Accordion-Frage Hover */
.kfm-faq-question:hover,
.kfm-faq-question:focus-visible {
  color: #e04f16;
  background: transparent;
  outline: none;
}

/* Accordion-Frage aktiv/offen */
.kfm-faq-item.is-open .kfm-faq-question {
  color: #e04f16;
}

/* Plus-/Minus-Icon Orange */
.kfm-faq-icon::before,
.kfm-faq-icon::after {
  background: #e04f16;
}

/* Antworttext kleiner und dunkler */
.kfm-faq-answer {
  color: rgb(20, 22, 23);
  font-size: 16px;
  line-height: 1.75;
}

.kfm-faq-answer p,
.kfm-faq-answer li {
  color: rgb(20, 22, 23);
  font-size: 16px;
  line-height: 1.75;
}

/* Mobile ebenfalls sauber halten */
@media (max-width: 768px) {
  .kfm-faq-answer {
    font-size: 16px;
    color: rgb(20, 22, 23);
  }

  .kfm-faq-answer p,
  .kfm-faq-answer li {
    font-size: 16px;
    color: rgb(20, 22, 23);
  }
}