/* =====================================================================
 * FAQ – Suche + Kategorien (Figma 1310:4229 "Häufig gestellte Fragen").
 * Toolbar (search + count + "Alle öffnen") over category accordions. The
 * category/question accordions reuse .oda-acc / .oda-faq (acf/css/section.css).
 * ===================================================================== */

.oda-faqs {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 878px;
  margin: 0 auto;
}

/* ---- Toolbar ---- */
.oda-faqs__bar {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.oda-faqs__search {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 22px;
  background: #fff;
  border: 1px solid #e6e4e0;
  border-radius: 999px;
}
.oda-faqs__search:focus-within {
  border-color: #cfcdc8;
}
.oda-faqs__search svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: #87878d;
}
/* Scoped to .oda-faqs__search so these outrank the _s starter form-field rules
   (input[type="search"] { border:1px solid #ccc; border-radius:3px; padding:3px;
   color:#666 } + :focus outline), which are more specific than a bare class. */
.oda-faqs__search .oda-faqs__input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  outline: none;
  box-shadow: none;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: normal;
  color: #0f0f10;
  -webkit-appearance: none;
  appearance: none;
}
.oda-faqs__search .oda-faqs__input:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}
.oda-faqs__search .oda-faqs__input::placeholder {
  color: #87878d;
  opacity: 1;
}
/* Hide the native search "clear" control for a clean pill. */
.oda-faqs__search .oda-faqs__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.oda-faqs__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.oda-faqs__count {
  font-size: 14px;
  font-weight: 400;
  line-height: 18.75px;
  letter-spacing: -0.08px;
  color: #87878d;
}
.oda-faqs__count strong {
  font-weight: 600;
  color: #0f0f10;
}
.oda-faqs__toggle-all {
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.08px;
  color: #c00;
}
.oda-faqs__toggle-all:hover {
  text-decoration: underline;
  text-underline-position: from-font;
}

/* ---- Category stack ---- */
.oda-faqs__cats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.oda-faqs__cat {
  width: 100%;
}

/* Hidden by the live search when a category has no matching question. */
.oda-faqs__cat[hidden] {
  display: none;
}

/* ---- KI-Assistent (OdADocAI) CTA ---- */
.oda-faqs__ai {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.oda-faqs__ai-title {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 24.32px;
  letter-spacing: -0.418px;
  color: #0f0f10;
}
.oda-faqs__ai-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e6e4e0;
  border-radius: 10px;
  overflow: hidden;
}
.oda-faqs__ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.oda-faqs__ai-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #0f0f10;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0.4px;
}
.oda-faqs__ai-sub {
  font-size: 12px;
  font-weight: 400;
  line-height: 16.5px;
  color: #87878d;
}
.oda-faqs__ai-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  background: #f4f4f3;
  border: 1px solid transparent;
  border-radius: 999px;
}
.oda-faqs__ai-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.oda-faqs__ai-field svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: #0f0f10;
}
/* Scoped so it beats the _s starter input[type="search"] rules. */
.oda-faqs__ai-form .oda-faqs__ai-input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  outline: none;
  box-shadow: none;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  letter-spacing: -0.15px;
  color: #0f0f10;
  -webkit-appearance: none;
  appearance: none;
}
.oda-faqs__ai-form .oda-faqs__ai-input:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}
.oda-faqs__ai-form .oda-faqs__ai-input::placeholder {
  color: #87878d;
  opacity: 1;
}
.oda-faqs__ai-form .oda-faqs__ai-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.oda-faqs__ai-submit {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 16px;
  background: #c00;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  color: #fff;
  -webkit-appearance: none;
  appearance: none;
}
.oda-faqs__ai-submit svg {
  flex: none;
  width: 14px;
  height: 14px;
}
.oda-faqs__ai-submit:hover {
  background: #a30000;
}

@media (max-width: 560px) {
  .oda-faqs__ai-form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-radius: 16px;
    padding: 16px;
  }
  .oda-faqs__ai-submit {
    justify-content: center;
  }
}
