/* ========================================
   FAQ PAGE
   ======================================== */

/* ========================================
   HERO
   ======================================== */

.faq-hero {
  padding: 90px 20px;

  background:
    linear-gradient(
      135deg,
      var(--color-background),
      var(--color-primary-soft)
    );

  text-align: center;
}

.faq-hero-content {
  max-width: 850px;
  margin: 0 auto;

  opacity: 0;
  transform: translateY(20px);

  animation: fadeUp 0.8s ease forwards;
}

.faq-hero h1 {
  margin: 0 auto 22px;

  color: var(--color-dark);

  font-size: 2.4rem;
  line-height: 1.2;
  font-weight: 700;
}

.faq-hero p {
  max-width: 700px;
  margin: 0 auto;

  color: var(--color-text-muted);

  font-size: 1.05rem;
  line-height: 1.75;
}


/* ========================================
   FAQ BEREICH
   ======================================== */

.faq-section {
  padding: 56px 20px 72px;

  background: var(--color-surface);
}

.faq-container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

.faq-container > h2 {
  margin: 0 auto 28px;

  color: var(--color-dark);

  font-size: 2rem;
  line-height: 1.25;

  text-align: center;
}

.faq-category {
  margin-top: 42px;
}

.faq-category:first-of-type {
  margin-top: 0;
}

.faq-category > h3 {
  margin: 0 0 16px;
  color: var(--color-dark);
  font-size: 1.25rem;
  line-height: 1.3;
}


/* ========================================
   FAQ LISTE
   ======================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding: 1.2rem 1.5rem;

  background: #fcfbf9;
  border: 1px solid #e2ded9;
  border-radius: 10px;

  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.faq-item[open] {
  background: var(--color-surface);
  border-color: rgba(212, 178, 149, 0.7);
  box-shadow: 0 5px 16px rgba(42, 36, 33, 0.06);
}


/* ========================================
   FRAGE
   ======================================== */

.faq-item summary {
  width: 100%;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  border: 0;

  background: transparent;

  color: var(--color-dark);

  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;

  text-align: left;
  list-style: none;

  cursor: pointer;

  transition:
    background var(--transition),
    color var(--transition);
}

.faq-item summary:hover {
  color: var(--color-primary);
}

.faq-item summary::after {
  content: "+";

  flex-shrink: 0;

  color: var(--color-primary);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}


/* ========================================
   ANTWORT
   ======================================== */

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;

  padding: 0;

  opacity: 0;

  transition:
    grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    padding 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer p {
  overflow: hidden;

  margin: 0;

  color: var(--color-text-muted);

  line-height: 1.75;
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
  padding-top: 18px;

  opacity: 1;
}


/* ========================================
   CTA
   ======================================== */

.faq-cta {
  padding: 0 20px 80px;

  background: var(--color-surface);

  text-align: center;
}

.faq-cta-box {
  padding: 42px 32px;

  background: var(--color-primary-soft);
  border: 1px solid rgba(212, 178, 149, 0.42);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(42, 36, 33, 0.05);
}

.faq-cta h2 {
  max-width: 750px;
  margin: 0 auto 25px;

  color: var(--color-dark);

  font-size: 2rem;
  line-height: 1.3;
}

.faq-cta p {
  max-width: 700px;
  margin: 0 auto 35px;

  color: var(--color-text-muted);

  line-height: 1.75;
}


/* ========================================
   ANIMATION
   ======================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================
   TABLET
   ======================================== */

@media (min-width: 700px) {
}


/* ========================================
   DESKTOP
   ======================================== */

@media (min-width: 1024px) {
  .faq-hero {
    padding: 120px 20px;
  }

  .faq-hero h1 {
    font-size: 3.5rem;
  }

  .faq-hero p {
    font-size: 1.15rem;
  }

  .faq-section {
    padding: 64px 20px 84px;
  }

  .faq-container > h2 {
    font-size: 2.8rem;
  }

  .faq-cta {
    padding: 0 20px 100px;
  }

  .faq-cta h2 {
    font-size: 2.5rem;
  }
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 699px) {
  .faq-hero h1 {
    font-size: 2.2rem;
  }

  .faq-container > h2 {
    font-size: 2rem;
  }

  .faq-item summary {
    font-size: 1.1rem;
  }

  .faq-answer {
    padding-left: 0;
    padding-right: 0;
  }

  .faq-cta h2 {
    font-size: 2rem;
  }
}