.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: "Inter", sans-serif;
}

.faq__item {
  border-radius: 16px;
  padding: 20px 24px;
  transition: background 0.2s ease;
}

.faq__item.open {
  background: #fdf3f1;
}

/* Hello Elementor styles every [type=button] (pink border, inline-block,
   pink hover fill); the extra .faq scope outranks it. */
.faq .faq__trigger,
.faq .faq__trigger:hover,
.faq .faq__trigger:focus {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  white-space: normal;
}

.faq__question-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #4472ca;
}

.faq__icon--plus {
  display: block;
}

.faq__icon--minus {
  display: none;
}

.faq__item.open .faq__icon--plus {
  display: none;
}

.faq__item.open .faq__icon--minus {
  display: block;
}

.faq .faq__question {
  margin: 0;
  padding: 0;
  font-family: inherit;
  color: #1f2430;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq__item.open .faq__body {
  grid-template-rows: 1fr;
}

.faq__body-inner {
  overflow: hidden;
  padding-left: 40px;
  color: #6b7280;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  padding-top: 0;
  transition: padding-top 0.35s ease;
}

.faq__item.open .faq__body-inner {
  padding-top: 12px;
}

.faq__body-inner p {
  margin: 0 0 0.75em;
}

.faq__body-inner p:last-child {
  margin-bottom: 0;
}

/* Links inside an answer (e.g. M7000 / M9000 to their spare-parts lists):
   underlined, a shade darker than the grey answer text, red on hover. */
.faq__body-inner a {
  color: var(--dark-grey, #181d27);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq__body-inner a:hover,
.faq__body-inner a:focus-visible {
  color: var(--red, #ba0000);
}

/* Filter pills — same look as kennisbank's .kb-pro-pill. Two classes so
   Hello Elementor's [type=button] reset (pink border/hover) can't win. */
.faq__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.faq .faq__pill,
.faq .faq__pill:hover,
.faq .faq__pill:focus {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(117, 147, 230, 0.5);
  background: #fff;
  color: var(--blue, #719bf2);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq .faq__pill:hover {
  background: #f3fbff;
}

.faq .faq__pill.is-active {
  background: var(--blue, #719bf2);
  border-color: var(--blue, #719bf2);
  color: #fff;
}

/* Series heading above questions pulled in from a product page (service
   page: M&S Serie / MK Serie / Stratos MB, flandriAir):
   small blue capitals, aligned with the question text, links to the page. */
.faq__group {
  margin: 20px 0 0;
  padding: 0 24px 0 64px;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.faq__filters + .faq__group,
.faq__group:first-child {
  margin-top: 0;
}

.faq .faq__group a {
  color: var(--blue, #719bf2);
  text-decoration: none;
}

.faq .faq__group a:hover,
.faq .faq__group a:focus-visible {
  color: var(--blue, #719bf2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq__group[hidden],
.faq__item[hidden] {
  display: none;
}

.faq__empty {
  margin: 0;
  padding: 20px 24px;
  text-align: center;
  color: #6b7280;
  font-size: 16px;
}

.faq__empty[hidden] {
  display: none;
}

/* Links inside an answer (e.g. M7000 / M9000 to their spare-parts lists):
   underlined, a shade darker than the grey answer text, red on hover. */
.faq__body-inner a {
  color: var(--dark-grey, #181d27);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq__body-inner a:hover,
.faq__body-inner a:focus-visible {
  color: var(--red, #ba0000);
}

/* Narrow FAQ column (service page): shortcode widget gets the class
   "faq-narrow" in Elementor. */
.faq-narrow .faq {
  max-width: 720px;
  margin: 0 auto;
}

/* "Slim elektrisch" / "Électrique intelligent" filter pill hidden on
   Service & support (15-10-26): category stays in the page's FAQ
   categories field (so its questions keep showing under "Alles"), only
   the pill is hidden. Values are sanitize_title() of the category text. */
.faq__pill[data-filter="slim-elektrisch"],
.faq__pill[data-filter="electrique-intelligent"] {
  display: none;
}
