/* =============== */
/*  FAQ Accordion  */
/* =============== */

/* Rahmen/Struktur */
.faqs-accordion {
  border: none;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--faqs-border, #ddd);
}

/* ========================= */
/* Frage-Zeile (Button)      */
/* ========================= */

.faq-question {
  margin: 0;
}

/* Button im H2 */
.faq-question .faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between; /* Frage links, Icon rechts */
  align-items: center;            /* vertikal perfekt mittig */
  gap: 1rem;

  background: var(--faqs-header-bg, #f7f7f7);
  color: var(--faqs-header-txt, inherit);
  padding: 14px 16px;

  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;

  transition: background 0.2s ease, color 0.2s ease;
}

.faq-question .faq-toggle:hover {
  background: var(--faqs-header-bg-hover, #eee);
  color: var(--faqs-header-txt-hover, inherit);
}

/* Frage-Text */
.faq-text {
  flex: 1;
  display: block;
  line-height: 1.4;
}

/* Icon (+ / –) */
.faq-icon {
  font-size: 1.6em;
  line-height: 1;
  display: inline-block;
  width: 1em;
  text-align: center;
  transition: transform 0.25s ease;
  user-select: none;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* ========================= */
/* Antwort-Bereich           */
/* ========================= */

.faq-answer-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 800ms ease,
    opacity 800ms ease;
}

.faq-item.open .faq-answer-wrap {
  max-height: 1000px;
  opacity: 1;
}

.faq-answer {
  background: var(--faqs-answer-bg, #fff);
  color: var(--faqs-answer-txt, inherit);
  padding: 14px 16px;
  margin: 0;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .faq-answer-wrap {
    transition: none;
  }
}

/* ========================= */
/* Suchfunktion              */
/* ========================= */

/* Wrapper um Suchfeld + Akkordeon */
.faqs-block {
  margin-bottom: 1.5rem;
}

/* Suchbereich */
.faqs-search {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Input mit Icon (SVG als Background) */
.faqs-search-input {
  min-width: 260px;
  max-width: 320px;

  padding: 8px 36px 8px 14px; /* rechts Platz fürs Icon */
  border: 1px solid #333;
 /* border-radius: 999px; */
  font-size: 14px;
  line-height: 1.4;

  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);

  /* 🔍-Icon in #333 als SVG-Background */
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='11'%20cy='11'%20r='7'%20stroke='%23333'%20stroke-width='2'%20fill='none'/%3E%3Cline%20x1='16'%20y1='16'%20x2='21'%20y2='21'%20stroke='%23333'%20stroke-width='2'%20stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.faqs-search-input::placeholder {
  color: #333;
}

.faqs-search-input:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34,113,177,0.15);
}

/* Hinweistext */
.faqs-search-hint {
  font-size: 0.9rem;
  color: #333;
  width: 100%;
  text-align: right;
  margin-top: -0.25rem;
}

/* Mobil */
@media (max-width: 600px) {
  .faqs-search {
    justify-content: flex-start;
  }

  .faqs-search-input {
    width: 100%;
    max-width: 100%;
  }

  .faqs-search-hint {
    text-align: left;
  }
}
.faqs-search-status {
  font-size: 0.85rem;
  color: #333;
  width: 100%;
  text-align: right;
  margin-top: 4px;
}

.faqs-search-no-results {
  color: #c00;
}
