/* =============================================
   Shared FAQ accordion
   Loaded by both the cleaning robotics hub and
   single-product pages. Variables fall back so
   it also renders outside cleaning-hub.css.
   ============================================= */

.cr-faq {
  position: relative;
  z-index: 3;
  background: var(--cr-dark, #0d131a);
  border-radius: var(--cr-radius, 1.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(3rem, 8vw, 6rem);
  margin-bottom: clamp(3rem, 8vw, 6rem);
  will-change: transform;
}

.cr-faq .cr-section-header {
  text-align: center;
  max-width: none;
}

.cr-faq.js-reveal .cr-section-header {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cr-faq.js-reveal .cr-section-header.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.cr-faq .cr-section-title {
  color: #f5f7fa;
}

.cr-faq .cr-section-header::before {
  display: none;
}

.cr-faq__list {
  max-width: 85%;
  margin: 0 auto;
}

.cr-faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cr-faq.js-reveal .cr-faq__item {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cr-faq.js-reveal .cr-faq__item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.cr-faq__item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cr-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .cr-faq__question:hover {
    color: var(--cr-primary, #F7931A);
  }
}

.cr-faq__icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(22, 32, 43, 0.04);
  color: var(--cr-muted, #5f6c7b);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.cr-faq__item.is-open .cr-faq__icon {
  transform: rotate(45deg);
  background: rgba(var(--cr-primary-rgb, 247, 147, 26), 0.1);
  color: var(--cr-primary, #F7931A);
}

.cr-faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.cr-faq__item.is-open .cr-faq__answer {
  max-height: 20rem;
}

.cr-faq__answer-inner {
  padding: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.93rem;
  line-height: 1.65;
  max-width: 40rem;
}

@media (max-width: 900px) {
  .cr-faq {
    /* Smartphone / Tablet: grosszuegige Luft oben und unten, damit
       der dunkle FAQ-Block nicht an die Nachbarsektionen stoesst. */
    margin-top: clamp(8rem, 18vw, 10rem);
    margin-bottom: clamp(6rem, 14vw, 8rem);
  }
}

@media (max-width: 767px) {
  .cr-faq {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .cr-faq__list {
    max-width: 100%;
  }
  .cr-faq .cr-section-header {
    text-align: left;
    padding-left: 0;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .cr-faq__question {
    font-size: 0.94rem;
    padding: 1rem 0;
  }
}
