/* ========================================
   FAQ.CSS - FAQ Akkordeon
   Reduzierte Farbgebung, dezente Trennlinien, Fokus auf Lesbarkeit
   ======================================== */

/* FAQ-Bereich Container */
#faq {
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  margin: 0;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
}

/* FAQ h2 in legal-section */
.legal-section#faq h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  color: var(--legal-text);
  margin: 0 0 2rem 0;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-shadow: 
    0 0 20px var(--legal-accent-glow),
    0 2px 8px rgba(0, 0, 0, 0.5);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 207, 255, 0.15);
  text-align: left;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
}

/* FAQ Container */
.faq-container {
  max-width: 100%;
  margin: 0;
}

/* FAQ Item */
.faq-item {
  border: none;
  border-bottom: 1px solid rgba(0, 207, 255, 0.1);
  margin-bottom: 0;
  transition: all 0.3s ease;
  background: transparent;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item:hover {
  background-color: rgba(0, 207, 255, 0.03);
}

/* FAQ Question Button */
.faq-question {
  width: 100%;
  padding: 1.25rem 1rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  color: var(--legal-text);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  font-weight: 600;
}

.faq-question:hover {
  color: var(--legal-accent);
  background-color: rgba(0, 207, 255, 0.05);
}

.faq-question:focus {
  outline: 2px solid var(--color-primary-40);
  outline-offset: -2px;
  border-radius: 4px;
}

.faq-question span:first-child {
  flex: 1;
  line-height: 1.5;
}

/* FAQ Icon (+ / -) */
.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--legal-accent);
  transition: transform 0.3s ease, color 0.3s ease;
  min-width: 1.5rem;
  text-align: center;
  line-height: 1;
  text-shadow: 0 0 10px var(--legal-accent-glow);
}

.faq-question:hover .faq-icon {
  color: var(--legal-accent);
  text-shadow: 0 0 15px var(--legal-accent-glow-strong);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--legal-accent);
  text-shadow: 0 0 20px var(--legal-accent-glow-strong);
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1), padding 0.4s ease;
  padding: 0 1rem;
  background-color: transparent;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 2000px;
  padding: 1rem 1rem 1.5rem 1rem;
}

.faq-answer p {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.75;
  color: var(--legal-text-secondary);
  margin: 0;
}

.faq-answer a {
  color: var(--legal-accent);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  font-weight: 500;
}

.faq-answer a:hover {
  color: var(--legal-accent);
  border-bottom-color: var(--legal-accent);
  text-shadow: 0 0 8px var(--legal-accent-glow);
}

/* Dezente Trennlinie zwischen Items */
.faq-item:not(:last-child)::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 207, 255, 0.1) 20%,
    rgba(0, 207, 255, 0.15) 50%,
    rgba(0, 207, 255, 0.1) 80%,
    transparent 100%
  );
  margin-top: 0;
}

/* Reduzierte Farbgebung - Fokus auf Lesbarkeit */
.faq-item {
  color: var(--legal-text);
}

.faq-item.active {
  background-color: rgba(0, 207, 255, 0.05);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  #faq {
    padding: 2rem 1.5rem;
  }

  .faq-question {
    padding: 1rem 0.75rem;
    font-size: 15px;
  }

  .faq-icon {
    font-size: 20px;
    min-width: 20px;
  }

  .faq-answer p {
    font-size: 14px;
  }
}

