/* ======================
   faq.css – FAQ-Seite Styles
   Geladen auf: FAQ-Seite (is_page('faq'))
====================== */

/* ======================
   FAQ / Accordion
====================== */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(59,130,246,.3);
  box-shadow: none;
}

.faq-item[open] {
  border-color: rgba(59,130,246,.4);
  box-shadow: none;
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  user-select: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.faq-item summary:hover {
  background: rgba(59,130,246,.06);
}

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

.faq-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  box-shadow: none;
  line-height: 0;
}

.faq-question {
  flex: 1;
  font-size: 17px;
  line-height: 1.4;
}

.faq-chevron {
  font-size: 28px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(90deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 24px 24px 72px;
  color: var(--muted);
  line-height: 1.7;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer p {
  margin: 0 0 14px 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  margin: 12px 0;
  padding-left: 24px;
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-answer strong {
  color: var(--text);
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.faq-answer a:hover {
  opacity: 0.8;
}
.faq-answer .btn {
  color: var(--btn-text);
  text-decoration: none;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.faq-answer .btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: #2563eb;
  box-shadow: 0 6px 20px rgba(59,130,246,.4);
}

/* Mobile */
@media (max-width: 768px) {
  .faq-item summary {
    padding: 16px 18px;
  }

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

  .faq-question {
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 18px 18px 62px;
    font-size: 14px;
  }
}
