/* ============================================================
   GE — FAQ / Q&A
   Baut auf styles.css (Brand) + homepage.css (.home Nav, .reveal)
   ============================================================ */

/* Hero trägt die Markenfläche (.brand-fill-hero aus styles.css) statt eines Fotos.
   Keine background-Kurzschreibweise hier — sie würde das Muster überschreiben. */
.fq-hero {
  position: relative; color: #fff; overflow: hidden;
  padding: clamp(150px, 22vh, 240px) 0 clamp(48px, 7vh, 88px);
}
.fq-hero .inner { position: relative; z-index: 2; }
.fq-hero .crumb { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 22px; display: flex; gap: 12px; }
.fq-hero .crumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.fq-hero .crumb a:hover { color: var(--c-primary); }
.fq-hero h1 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 11vw, 184px); line-height: .84; letter-spacing: -.02em; margin: 0; }
.fq-hero h1 .y { color: var(--c-primary); }
.fq-hero p { margin: 26px 0 0; max-width: 54ch; font-size: clamp(17px,1.5vw,21px); color: rgba(255,255,255,.78); }

/* search */
.fq-search { margin-top: 32px; display: flex; align-items: center; gap: 12px; max-width: 520px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); border-radius: 4px; padding: 4px 4px 4px 18px; }
.fq-search svg { width: 20px; height: 20px; color: rgba(255,255,255,.55); flex: none; }
.fq-search input { flex: 1; background: none; border: none; outline: none; color: #fff; font-family: var(--font-body); font-size: 16px; padding: 14px 0; }
/* Der Ring gehoert an das Suchfeld als Ganzes, nicht an das nackte
   input — sonst saesse er innerhalb des Rahmens und waere kaum zu sehen. */
.fq-search:focus-within { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.fq-search input::placeholder { color: rgba(255,255,255,.5); }

/* ============ FILTER ============ */
.fq-filter { position: sticky; top: 70px; z-index: 30; background: rgba(10,10,11,.92); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.fq-filter .row { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.fq-filter .row::-webkit-scrollbar { display: none; }
.fq-chip { flex: none; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); background: none; cursor: pointer; padding: 9px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; white-space: nowrap; transition: all .2s; }
.fq-chip:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.fq-chip.active { background: var(--c-primary); color: #000; border-color: var(--c-primary); }

/* ============ ACCORDION ============ */
.fq-sec { background: #0A0A0B; padding: clamp(56px,7vw,96px) 0 clamp(72px,9vw,120px); }
.fq-cat { margin-bottom: 48px; }
.fq-cat.hidden { display: none; }
.fq-cat-head { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--c-primary); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.fq-cat-head::before { content: ""; width: 30px; height: 4px; background: var(--c-primary); }

.fq-item { border-top: 1px solid rgba(255,255,255,.12); }
.fq-item:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.fq-item.hidden { display: none; }
.fq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 24px; padding: 26px 8px;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(18px,2vw,26px); line-height: 1.04; letter-spacing: -.005em; color: #fff;
  transition: color .2s, padding .25s;
}
.fq-q:hover { color: var(--c-primary); padding-left: 16px; }
.fq-q .ic { margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 999px; border: 2px solid rgba(255,255,255,.3); position: relative; transition: border-color .25s, background .25s; }
.fq-q .ic::before, .fq-q .ic::after { content: ""; position: absolute; background: currentColor; left: 50%; top: 50%; transition: transform .3s var(--ease-out); }
.fq-q .ic::before { width: 12px; height: 2px; transform: translate(-50%,-50%); }
.fq-q .ic::after { width: 2px; height: 12px; transform: translate(-50%,-50%); }
.fq-item.open .fq-q { color: var(--c-primary); }
.fq-item.open .fq-q .ic { background: var(--c-primary); border-color: var(--c-primary); color: #000; }
.fq-item.open .fq-q .ic::after { transform: translate(-50%,-50%) scaleY(0); }

/* Zugeklappt muss auch fuer Tastatur und Vorleseprogramm zugeklappt sein.
   `max-height: 0` versteckt nur optisch: gemessen am 01.10.2026 blieb der
   `.fq-mehr`-Verweis jeder der 42 Antworten anspringbar — der Fokusring sass
   dann in einer 0 Pixel hohen Box, und der Knopf behauptete daneben
   `aria-expanded="false"`. `visibility: hidden` nimmt den Inhalt aus Tabfolge
   und Barrierebaum und kostet die Animation nichts: wie bei .nav-mobile
   (site.css) schaltet der verzoegerte Uebergang erst nach dem Zuklappen um,
   waehrend das Aufklappen ohne diesen Eintrag sofort sichtbar wird. */
.fq-a {
  overflow: hidden; max-height: 0; visibility: hidden;
  transition: max-height .4s var(--ease-out), visibility 0s linear .4s;
}
.fq-item.open .fq-a { visibility: visible; transition: max-height .4s var(--ease-out); }
.fq-a .inner { padding: 0 56px 28px 8px; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; max-width: 72ch; }
.fq-a .inner a { color: var(--c-primary); text-decoration: none; border-bottom: 1px solid rgba(250,223,0,.4); }
.fq-a .inner p { margin: 0; }

/* Verweis von der Antwort auf die Leistungsseite. Bewusst zurueckhaltend:
   Er soll den Weg zeigen, nicht die Antwort ueberstrahlen. Die Unterlinie
   der Regel darueber wird hier abgeschaltet — beim Pfeil saehe sie aus wie
   ein Fehler. */
.fq-mehr {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase;
}
.fq-a .inner a.fq-mehr { border-bottom: 0; }
.fq-mehr svg { width: 18px; height: 12px; flex: none; stroke: currentColor; transition: transform .25s ease; }
.fq-mehr:hover svg, .fq-mehr:focus-visible svg { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .fq-mehr svg { transition: none; } }

/* ============ LEERZUSTAND (noch keine Fragen im CMS) ============ */
/* Graphit statt Graphitschwarz: ohne Fragenliste stieße der Hero sonst
   auf eine gleichfarbige Fläche und der Abschnitt verlöre seine Kante. */
.fq-sec-blank { background: #151719; }
.fq-blank { max-width: 64ch; }
.fq-blank .eyebrow { color: var(--c-primary); }
.fq-blank h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(32px,5.4vw,76px); line-height: .88; letter-spacing: -.02em; margin: 16px 0 0; color: #fff; }
.fq-blank h2 .y { color: var(--c-primary); }
.fq-blank p { margin: 24px 0 0; color: rgba(255,255,255,.72); font-size: clamp(16px,1.4vw,19px); line-height: 1.65; }
.fq-blank .btn { margin-top: 34px; }

.fq-empty { display: none; text-align: center; color: rgba(255,255,255,.5); font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 50px 0; }
.fq-empty.show { display: block; }

/* ============ CTA ============ */
.fq-cta { background: var(--c-primary); color: #000; padding: clamp(56px,8vw,104px) 0; }
.fq-cta .row { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.fq-cta h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px,4.6vw,68px); line-height: .88; letter-spacing: -.02em; margin: 0; }
.fq-cta p { margin: 12px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: rgba(0,0,0,.7); }
@media (max-width: 760px) { .fq-cta .row { grid-template-columns: 1fr; gap: 22px; } }
