/* =========================
   FAQ SECTION
   ========================= */

.faq-section {
  position: relative;
  width: 100vw;
  margin-top: clamp(2.75rem, 4.5vw, 4rem);
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  background: var(--color-green);

  /* SPIEGELVERKEHRTE FORM */
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);

  overflow: hidden;
}

.faq-section__inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--site-max-width));
  margin: 0 auto;
  padding:
    clamp(5.4rem, 8.5vw, 6.8rem)
    var(--content-padding-side)
    clamp(7rem, 11vw, 9rem);
}

.faq-accordion {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.faq-item + .faq-item {
  margin-top: 0.85rem;
}

.faq-item__heading {
  margin: 0;
}

.faq-item__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: 100%;
  min-height: 4.35rem;
  padding: 1.1rem 1.35rem 0.9rem;
  border: 0;
  border-radius: 1rem;
  background: #fafafa;
  color: #111111;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(17, 17, 17, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.faq-item__trigger:hover,
.faq-item__trigger:focus-visible {
  background: #f8f8f8;
  transform: translateY(-1px);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(17, 17, 17, 0.08);
  outline: none;
}

.faq-item__question {
  display: block;
  flex: 1 1 auto;
  color: #111111;
  font-family: "Montserrat-Bold", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  line-height: 1.3;
}

.faq-item__icon {
  position: relative;
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.9rem;
  height: 2px;
  border-radius: 999px;
  background: #111111;
  transform: translate(-50%, -50%);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-item__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.6);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s ease;
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
}

.faq-item__answer {
  margin-top: 0.35rem;
  padding: 0.25rem 0.25rem 0.85rem;
  background: transparent;
  color: rgba(250, 250, 250, 0.96);
  font-family: "Montserrat-Regular", Arial, sans-serif;
  font-size: clamp(0.95rem, 0.95vw, 1rem);
  line-height: 1.65;
  box-shadow: none;
}

.faq-item__answer > *:first-child {
  margin-top: 0;
}

.faq-item__answer > *:last-child {
  margin-bottom: 0;
}

.faq-item__answer p {
  margin: 0 0 0.8rem;
}

.faq-item__answer strong {
  color: #ffffff;
  font-family: "Montserrat-Bold", Arial, sans-serif;
  font-weight: 700;
}

@media (max-width: 991px) {
  .faq-section {
    /* SPIEGELVERKEHRTE FORM TABLET */
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  }

  .faq-section__inner {
    padding-top: clamp(4.8rem, 8vw, 5.8rem);
    padding-bottom: clamp(6.2rem, 10vw, 7.4rem);
  }

  .faq-item__trigger {
    min-height: 4rem;
    padding: 1rem 1.1rem 0.85rem;
  }

  .faq-item__question {
    font-size: clamp(1rem, 2.1vw, 1.28rem);
  }

  .faq-item__answer {
    padding: 0.2rem 0.1rem 0.8rem;
    font-size: 0.96rem;
  }
}

@media (max-width: 767px) {
  .faq-section {
    /* SPIEGELVERKEHRTE FORM HANDY */
    clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
  }

  .faq-section__inner {
    padding-top: 4.2rem;
    padding-bottom: 6.2rem;
  }

  .faq-item + .faq-item {
    margin-top: 0.7rem;
  }

  .faq-item__trigger {
    min-height: 3.7rem;
    padding: 0.95rem 0.95rem 0.8rem;
    border-radius: 0.95rem;
  }

  .faq-item__question {
    font-size: clamp(0.98rem, 4.5vw, 1.15rem);
    line-height: 1.32;
  }

  .faq-item__icon {
    width: 1rem;
    height: 1rem;
  }

  .faq-item__icon::before,
  .faq-item__icon::after {
    width: 0.82rem;
  }

  .faq-item__answer {
    margin-top: 0.3rem;
    padding: 0.2rem 0.05rem 0.75rem;
    font-size: 0.94rem;
    line-height: 1.62;
  }
}