/* FAQ — Section „FAQ“ und die Fragen auf der Objektseite (.property-faq, ObjektFaq::render; Dirk 18.11.2026: „dafür haben wir
   schon fertiges CSS“). Die Aufklapper-Regeln gelten für beide; die Section-Fläche (00-base.css .faq) bleibt der Section. */

:is(.faq, .property-faq) > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

:is(.faq, .property-faq) details {
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color var(--transition-slow);
}

:is(.faq, .property-faq) details[open] {
  border-color: var(--color-primary);
}

:is(.faq, .property-faq) summary {
  padding: var(--space-4);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

:is(.faq, .property-faq) summary::-webkit-details-marker {
  display: none;
}

/* Indicator: + (two CSS lines) rotates to × on open */
:is(.faq, .property-faq) summary::after {
  content: '';
  flex-shrink: 0;
  width: .75rem;
  height: .75rem;
  background:
    linear-gradient(var(--color-text-muted), var(--color-text-muted)) center / 0.125rem 100% no-repeat,
    linear-gradient(var(--color-text-muted), var(--color-text-muted)) center / 100% 0.125rem no-repeat;
  transition: transform var(--transition-slow), background var(--transition-slow);
}

:is(.faq, .property-faq) details[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(var(--color-primary), var(--color-primary)) center / 0.125rem 100% no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) center / 100% 0.125rem no-repeat;
}

/* Content: padding always present so scrollHeight is correct for animation */
:is(.faq, .property-faq) details > div {
  padding: 0 var(--space-4) var(--space-8) var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading);
}
