/* WGE FAQ-Assistent – übernimmt die Farben des Themes */
.faqa-launch, .faqa { --fa-ink: var(--ink, #0f2a44); --fa-green: var(--green, #157a4e); --fa-mint: var(--mint, #e3f4ea); --fa-sand: var(--sand, #f6f3ec); --fa-line: var(--line, #dfe3e8); --fa-muted: var(--muted, #556372); }
.faqa-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faqa[hidden], .faqa-launch[hidden], .faqa [hidden] { display: none !important; }

.faqa-launch { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border: 0; border-radius: 999px; background: var(--fa-ink); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
	box-shadow: 0 14px 34px -10px rgba(15, 42, 68, .55); transition: transform .25s cubic-bezier(.2,.7,.2,1), background .2s; }
.faqa-launch svg { color: #7fd6a6; }
.faqa-launch:hover { transform: translateY(-3px); background: #16385a; }
.faqa-launch:focus-visible { outline: 3px solid var(--focus, #ffbf47); outline-offset: 3px; }
.faqa-launch::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--fa-green); opacity: 0; animation: faqa-ring 3.2s 2s 2 ease-out; pointer-events: none; }
@keyframes faqa-ring { 0% { opacity: .9; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.25); } }
body.faqa-open .faqa-launch { background: var(--fa-green); }
@media (max-width: 700px) {
	.faqa-launch { right: 14px; bottom: 14px; padding: 14px; }
	.faqa-launch__t { display: none; }
	body.faqa-has-cta .faqa-launch { bottom: 96px; }
	body.faqa-open .faqa-launch { display: none; }
}

.faqa { position: fixed; right: 20px; bottom: 88px; z-index: 990; width: min(410px, calc(100vw - 40px)); height: min(640px, calc(100vh - 120px)); display: flex; flex-direction: column;
	background: #fff; border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(15, 42, 68, .45), 0 0 0 1px rgba(15, 42, 68, .08); overflow: hidden;
	opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right; transition: opacity .2s, transform .25s cubic-bezier(.2,.7,.2,1); font-size: 16px; line-height: 1.5; color: #1d2a37; }
.faqa.is-in { opacity: 1; transform: none; }
@media (max-width: 700px) {
	.faqa { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
	html.faqa-lock, html.faqa-lock body { overflow: hidden; }
}
.faqa__head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: var(--fa-ink); color: #fff; }
.faqa__ava { width: 40px; height: 40px; border-radius: 12px; background: var(--fa-green); display: grid; place-items: center; flex: none; }
.faqa__ht { flex: 1; min-width: 0; }
.faqa__ht h2 { margin: 0; font-size: 1.02rem; line-height: 1.2; color: #fff; }
.faqa__ht p { margin: 2px 0 0; font-size: .78rem; color: #b9c9da; }
.faqa__hb { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.faqa__hb:hover { background: rgba(255,255,255,.22); }
.faqa button:focus-visible, .faqa a:focus-visible, .faqa input:focus-visible { outline: 3px solid var(--focus, #ffbf47); outline-offset: 2px; }
.faqa-i { display: inline-grid; place-items: center; flex: none; }

.faqa__log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--fa-sand); overscroll-behavior: contain; }
.faqa__log:focus { outline: none; }
.faqa-m { max-width: 92%; border-radius: 18px; padding: 10px 14px; animation: faqa-in .25s ease-out; }
@keyframes faqa-in { from { opacity: 0; transform: translateY(6px); } }
.faqa-m p { margin: 0 0 8px; } .faqa-m p:last-child { margin-bottom: 0; }
.faqa-m--u { align-self: flex-end; background: var(--fa-ink); color: #fff; border-bottom-right-radius: 6px; }
.faqa-m--b { align-self: flex-start; background: #fff; border: 1px solid var(--fa-line); border-bottom-left-radius: 6px; }
.faqa-qt { font-weight: 800; color: var(--fa-ink); }
.faqa-ans ul { margin: 0 0 8px; padding-left: 20px; } .faqa-ans li { margin-bottom: 3px; }
.faqa-ans a { color: var(--fa-green); font-weight: 700; }
.faqa-small { font-size: .84rem; color: var(--fa-muted); }
.faqa-pad { padding: 10px; }
.faqa-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.faqa-act { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: var(--fa-green); color: #fff !important; font-weight: 800; font-size: .9rem; text-decoration: none; }
.faqa-act:hover { background: #0f5f3c; }
.faqa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.faqa-chip { border: 1.5px solid var(--fa-line); background: #fff; color: var(--fa-ink); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; text-align: left; min-height: 38px; }
.faqa-chip:hover { border-color: var(--fa-green); background: var(--fa-mint); }
.faqa-qs { display: grid; gap: 6px; margin-top: 6px; }
.faqa-q { text-align: left; border: 1.5px solid var(--fa-line); background: var(--fa-sand); color: var(--fa-ink); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: .92rem; font-weight: 650; cursor: pointer; }
.faqa-q:hover { border-color: var(--fa-green); background: var(--fa-mint); }
.faqa-link { border: 0; background: none; padding: 6px 0 0; color: var(--fa-green); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.faqa-more { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--fa-line); }
.faqa-more .faqa-small { margin: 0; }
.faqa-fb { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.faqa-fbb { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--fa-line); background: #fff; color: var(--fa-muted); display: grid; place-items: center; cursor: pointer; }
.faqa-fbb:hover { color: var(--fa-green); border-color: var(--fa-green); }
.faqa-nf { background: #fdecea; border-color: #f2b8b1; }
.faqa-nf__h { display: flex; align-items: center; gap: 6px; font-weight: 800; color: #b42318; }
.faqa-nf .faqa-act:first-child { background: #b42318; }
.faqa-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.faqa-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9aa7b4; animation: faqa-dot 1s infinite; }
.faqa-dots i:nth-child(2) { animation-delay: .15s; } .faqa-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes faqa-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.faqa__sugg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px 0; background: #fff; border-top: 1px solid var(--fa-line); }
.faqa__form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--fa-line); }
.faqa__sugg:not([hidden]) + .faqa__form { border-top: 0; }
.faqa__in { flex: 1; min-width: 0; min-height: 48px; border: 1.5px solid #b8c1cb; border-radius: 14px; padding: 10px 14px; font: inherit; font-size: 1rem; background: #fff; color: inherit; }
.faqa__send { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--fa-green); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.faqa__note { margin: 0; padding: 0 14px 10px; background: #fff; font-size: .74rem; color: var(--fa-muted); }
.faqa__note a { color: inherit; }
@media (max-width: 700px) { .faqa__note { padding-bottom: calc(10px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) {
	.faqa, .faqa-launch, .faqa-m { transition: none !important; animation: none !important; }
	.faqa-launch::after { display: none; }
}
html[data-motion="reduce"] .faqa-launch::after, html[data-motion="reduce"] .faqa-m, html[data-motion="reduce"] .faqa { animation: none !important; transition: none !important; }
@media print { .faqa-launch, .faqa { display: none !important; } }
