/* =========================================================
   SECTION MONSTERS – FAQ-Seite (/faq)
   css/faq.css
   Baut auf style.css auf (Variablen + .faq-item/.faq-q/.faq-a).
   Ergänzt: Hero, Live-Suche, Kategorie-Sprungmarken, Bereiche.
   ========================================================= */

/* ---- Hero ---- */
.fq-hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) max(32px, calc((100vw - 1220px) / 2)) 56px;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(124, 92, 255, .18), transparent 60%),
    radial-gradient(700px 380px at 92% 30%, rgba(139, 214, 38, .10), transparent 55%),
    var(--bg);
  overflow: hidden;
}

.fq-hero-inner { max-width: 860px; margin: 0 auto; }

.fq-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.03;
  margin: 16px 0 18px;
}

.fq-hero h1 .grad {
  background: var(--purple-grad-135);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fq-hero-lead {
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  max-width: 62ch;
}

/* ---- Suche ---- */
.fq-searchwrap { position: relative; margin-top: 30px; max-width: 560px; }

.fq-search {
  width: 100%;
  height: 56px;
  padding: 0 46px 0 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.fq-search::placeholder { color: rgba(242, 244, 239, .38); }
.fq-search:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(255, 255, 255, .06);
}

.fq-search-icon {
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  width: 19px; height: 19px;
  fill: none; stroke: rgba(242, 244, 239, .5);
  stroke-width: 2; stroke-linecap: round;
  pointer-events: none;
}

.fq-search-clear {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: none; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  font-size: 15px; line-height: 1;
  cursor: pointer;
}
.fq-search-clear:hover { background: rgba(255, 255, 255, .16); }
.fq-search-clear.is-on { display: grid; }

.fq-hint {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(242, 244, 239, .45);
}

/* ---- Kategorie-Sprungmarken (sticky) ---- */
.fq-jump {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  z-index: 40;
  padding: 14px max(32px, calc((100vw - 1220px) / 2));
  background: rgba(5, 5, 7, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.fq-jump-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px;
}

.fq-jump a {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
  color: rgba(242, 244, 239, .72);
  font-size: 13px; font-weight: 700;
  white-space: nowrap;
  transition: all .18s var(--ease);
}

.fq-jump a:hover {
  color: var(--white);
  border-color: rgba(124, 92, 255, .55);
  background: rgba(124, 92, 255, .12);
}

/* ---- Bereiche ---- */
.fq-body {
  padding: 60px max(32px, calc((100vw - 1220px) / 2)) 40px;
  background: #06070a;
}

.fq-inner { max-width: 860px; margin: 0 auto; }

.fq-block { margin-bottom: 66px; scroll-margin-top: calc(var(--header-h) + 96px); }
.fq-block:last-child { margin-bottom: 20px; }

.fq-block-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.fq-block-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: -.03em;
}

.fq-block-count {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(242, 244, 239, .42);
  white-space: nowrap;
}

/* Treffer-Hervorhebung in der Suche */
.fq-mark {
  background: rgba(139, 214, 38, .22);
  color: var(--white);
  border-radius: 3px;
  padding: 0 2px;
}

/* Von der Suche ausgeblendet */
.fq-hidden { display: none !important; }

/* Leerzustand */
.fq-empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.fq-empty.is-on { display: block; }
.fq-empty strong {
  display: block;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

/* Antworten dürfen Listen/Links enthalten */
.faq-a ul { margin: 10px 0 0 18px; }
.faq-a li { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 6px; }
.faq-a a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.faq-a a:hover { color: var(--green-bright); }
.faq-a p + p { margin-top: 12px; }

/* ---- Abschluss-CTA ---- */
.fq-cta {
  padding: 0 max(32px, calc((100vw - 1220px) / 2)) 110px;
  background: #06070a;
}

.fq-cta-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 38px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 12% 0%, rgba(124, 92, 255, .20), transparent 58%),
    radial-gradient(circle at 92% 110%, rgba(139, 214, 38, .14), transparent 52%),
    var(--panel);
  text-align: center;
}

.fq-cta-card h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}

.fq-cta-card p {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.fq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---- Mobil ---- */
@media (max-width: 680px) {
  .fq-hero { padding: calc(var(--header-h) + 64px) 20px 40px; }
  .fq-body { padding: 44px 20px 30px; }
  .fq-cta  { padding: 0 20px 80px; }
  .fq-cta-card { padding: 30px 22px; }
  .fq-jump { padding: 12px 20px; top: calc(var(--header-h) + 14px); }
  .fq-jump-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fq-jump-inner::-webkit-scrollbar { display: none; }
  .fq-block { margin-bottom: 48px; }
  .fq-search { height: 52px; font-size: 16px; }
}
