/* FAQ als Vorgespräch (Variante 1f). Gepinnt: Frage erscheint rechts,
   Patryk tippt kurz, Antwort kommt als Glasblase, der Verlauf schiebt sich nach oben. */
.fqc { --fqc-glass: rgba(255, 255, 255, 0.4); --fqc-glass-b: rgba(255, 255, 255, 0.78); --fqc-rim: rgba(255, 255, 255, 0.9);
  --fqc-sh: 0 24px 60px -36px rgba(26, 23, 20, 0.4); --fqc-halo: rgba(191, 174, 134, 0.2);
  --fqc-q: color-mix(in srgb, #BFAE86 18%, rgba(255, 255, 255, 0.46));
  position: relative; padding: 0 !important; max-width: none !important; background: transparent; }
[data-theme='dark'] .fqc { --fqc-glass: rgba(52, 44, 34, 0.42); --fqc-glass-b: rgba(243, 238, 228, 0.16); --fqc-rim: rgba(243, 238, 228, 0.24);
  --fqc-sh: 0 24px 70px -36px rgba(0, 0, 0, 0.8); --fqc-halo: rgba(191, 174, 134, 0.12);
  --fqc-q: color-mix(in srgb, #BFAE86 16%, rgba(52, 44, 34, 0.5)); }
.fqc-track { position: relative; height: 520vh; }
.fqc-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 2vh, 18px); padding: calc(var(--topnav-scroll-offset, 84px) + clamp(14px, 3vh, 34px)) clamp(24px, 4vw, 40px) clamp(18px, 3.4vh, 34px); }
.fqc-halo { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 72%, var(--fqc-halo), transparent 70%); }
.fqc-head, .fqc-window, .fqc-rail { position: relative; width: 100%; max-width: 980px; margin: 0 auto; }
.fqc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.fqc-eye { margin: 0 0 12px; display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-text); }
[data-theme='dark'] .fqc-eye { color: var(--ws-gold); }
.fqc-eye::before { content: ''; width: 28px; height: 1px; background: var(--ws-gold); }
.fqc-h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -0.015em; color: var(--fg); text-wrap: balance; }
.fqc-h2 em, .fqc-qt em { font-style: italic; color: var(--accent-text); }
[data-theme='dark'] .fqc-h2 em, [data-theme='dark'] .fqc-qt em { color: var(--ws-gold); }
.fqc-status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-mute); }
.fqc-status i { width: 7px; height: 7px; border-radius: 99px; background: var(--ws-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ws-gold) 22%, transparent); }
.fqc-window { overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 100%); mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 100%); }
.fqc-list { position: absolute; left: 0; right: 0; top: 0; display: grid; gap: 14px; padding: 36px 0 24vh;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
.fqc-grp { display: grid; gap: 14px; }
.fqc-msg { display: flex; opacity: 0; transform: translate3d(0, 18px, 0) scale(0.985);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1); }
.fqc-msg.is-on { opacity: 1; transform: none; }
.fqc-q { justify-content: flex-end; }
.fqc-a { justify-content: flex-start; }
.fqc-bub { position: relative; max-width: min(640px, 86%); padding: 16px 20px; border: 1px solid var(--fqc-glass-b);
  -webkit-backdrop-filter: blur(22px) saturate(1.45); backdrop-filter: blur(22px) saturate(1.45);
  box-shadow: inset 0 1.5px 1px var(--fqc-rim), inset 0 -1px 2px rgba(26, 23, 20, 0.05), var(--fqc-sh); }
.fqc-bub-q { background: var(--fqc-q); border-radius: 22px 22px 4px 22px; }
.fqc-bub-a { background: var(--fqc-glass); border-radius: 22px 22px 22px 4px; }
.fqc-who { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); }
[data-theme='dark'] .fqc-who { color: var(--ws-gold); }
.fqc-qt { margin: 0; font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.22; color: var(--fg); text-wrap: balance; }
.fqc-ans p { margin: 0 0 10px; font-size: clamp(14.5px, 1.2vw, 16.5px); line-height: 1.72; color: var(--fg-mute); text-wrap: pretty; }
.fqc-ans p:last-child { margin-bottom: 0; }
/* Tippen klappt weich ein und aus, damit der Verlauf nicht zuckt */
.fqc-typing-row { display: grid; grid-template-rows: 0fr; opacity: 0; margin: -7px 0;
  transition: grid-template-rows 500ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms, margin 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.fqc-typing-row > div { min-height: 0; overflow: hidden; }
.fqc-typing-row.is-on { grid-template-rows: 1fr; opacity: 1; margin: 0; }
.fqc-typing { display: inline-flex; gap: 5px; padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: var(--fqc-glass); box-shadow: inset 0 0 0 1px var(--fqc-glass-b); }
.fqc-typing i { width: 6px; height: 6px; border-radius: 99px; background: var(--ws-gold); animation: fqcDot 1.2s infinite ease-in-out; }
.fqc-typing i:nth-child(2) { animation-delay: 0.15s; }
.fqc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes fqcDot { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.fqc-rail { display: block; height: 1px; background: var(--line); overflow: hidden; }
.fqc-rail i { position: absolute; inset: 0; background: var(--ws-gold); transform: scaleX(0); transform-origin: left center; }
@media (max-width: 1024px) {
  .fqc-track { height: 620vh; }
  .fqc-bub { max-width: min(600px, 88%); }
}
@media (max-width: 640px) {
  /* Mehr Scrollweg je Nachricht: ein kräftiger Wisch überspringt keine Antwort */
  .fqc-track { height: 760vh; }
  .fqc-stage { padding: calc(var(--topnav-scroll-offset, 76px) + 14px) 18px 16px; gap: 10px; }
  .fqc-head { gap: 10px; }
  .fqc-eye { margin-bottom: 8px; }
  .fqc-h2 { font-size: clamp(25px, 7.4vw, 32px); }
  .fqc-status { font-size: 9px; }
  .fqc-list, .fqc-grp { gap: 10px; }
  .fqc-list { padding-top: 26px; }
  .fqc-bub { max-width: 90%; padding: 13px 15px; }
  .fqc-bub-q { border-radius: 18px 18px 4px 18px; }
  .fqc-bub-a { border-radius: 18px 18px 18px 4px; }
  .fqc-who { font-size: 9px; margin-bottom: 6px; }
  .fqc-qt { font-size: 17px; }
  .fqc-ans p { font-size: 14px; line-height: 1.64; margin-bottom: 8px; }
}
/* Querformat-Handys und reduzierte Bewegung: kein Pin, der ganze Verlauf steht */
@media (max-height: 520px), (prefers-reduced-motion: reduce) {
  .fqc-track { height: auto; }
  .fqc-stage { position: relative; height: auto; overflow: visible; }
  .fqc-window { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .fqc-list { position: relative; padding: 18px 0 8px; transform: none !important; transition: none; }
  .fqc-msg { opacity: 1; transform: none; transition: none; }
  .fqc-typing-row, .fqc-rail { display: none; }
}

/* Scroll-Hinweis: mittig im freien Streifen unter der neuesten Nachricht, über der Fortschrittslinie */
.fqc-cue { position: absolute; left: 50%; bottom: calc(clamp(18px, 3.4vh, 34px) + 12px); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 9px;
  transform: translateX(-50%); pointer-events: none; transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.fqc-cue.is-off { opacity: 0; transform: translate(-50%, 8px); }
.fqc-cue span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.34em; padding-left: 0.34em; text-transform: uppercase; color: var(--fg-mute); opacity: 0.85; }
.fqc-cue i { position: relative; display: block; width: 1px; height: clamp(26px, 4.4vh, 40px); overflow: hidden; background: color-mix(in srgb, var(--fg) 14%, transparent); }
.fqc-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ws-gold); animation: fqcCue 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes fqcCue { 0% { top: -40%; } 70%, 100% { top: 100%; } }
@media (max-width: 640px) { .fqc-cue { bottom: 26px; gap: 7px; } .fqc-cue i { height: 24px; } }
@media (max-height: 520px), (prefers-reduced-motion: reduce) { .fqc-cue { display: none; } }

/* Statuspunkt atmet: Kern schwillt sanft, ein Hof weitet sich und verblasst */
.fqc-status i { position: relative; box-shadow: none; animation: fqcBreath 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.fqc-status i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--ws-gold); animation: fqcHalo 3.2s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
@keyframes fqcBreath { 0%, 100% { transform: scale(0.86); opacity: 0.75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes fqcHalo { 0% { transform: scale(1); opacity: 0.45; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fqc-status i, .fqc-status i::after { animation: none; } }

/* Handy: mehr Höhe für den Verlauf, Kopf und Scroll-Hinweis kompakter */
@media (max-width: 640px) {
  .fqc-stage { padding-top: calc(var(--topnav-scroll-offset, 76px) + 6px); padding-bottom: 12px; gap: 8px; }
  .fqc-eye { margin-bottom: 8px; }
  .fqc-h2 { font-size: clamp(23px, 6.8vw, 29px); }
  /* Scroll-Hinweis bleibt vollständig: Wort und Linie, nur etwas kompakter */
  .fqc-cue { bottom: 18px; gap: 6px; z-index: 5; }
  .fqc-cue span { display: block; font-size: 9px; letter-spacing: 0.24em; }
  .fqc-cue i { height: 20px; }
}
