/* ==========================================================================
   Farb-Assistent (Chat-Bot für Sofort-Richtpreis & Anfrage)
   ========================================================================== */
.fa-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px;
  border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  box-shadow: 0 14px 36px -10px rgba(17,26,43,.55);
  transition: transform .25s var(--ease), opacity .25s, box-shadow .25s;
}
.fa-launch:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(17,26,43,.6); }
.fa-launch__ava { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.fa-launch__ava svg { width: 26px; height: 26px; }
.fa-launch__ava::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #2fd27a; border: 2.5px solid var(--ink); }
.fa-launch b { display: block; font-size: 1rem; text-align: left; line-height: 1.2; }
.fa-launch small { display: block; font-size: .78rem; color: #aab5c8; text-align: left; }
.fa-open .fa-launch { opacity: 0; pointer-events: none; transform: scale(.9); }
@media (max-width: 760px) { .fa-launch { display: none; } }

.fa-teaser {
  position: fixed; right: 22px; bottom: 96px; z-index: 80; width: 300px;
  background: #fff; border-radius: 20px 20px 6px 20px; padding: 16px 18px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); font-size: .95rem;
  opacity: 0; transform: translateY(12px) scale(.96); transform-origin: bottom right; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.fa-teaser.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.fa-teaser p { margin: 0 0 12px; padding-right: 22px; }
.fa-teaser__go { border: 0; background: var(--red); color: #fff; font-weight: 650; padding: 10px 16px; border-radius: 999px; font-size: .9rem; }
.fa-teaser__x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--paper); display: grid; place-items: center; }
.fa-teaser__x svg { width: 14px; height: 14px; }
.fa-open .fa-teaser { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .fa-teaser { display: none; } }

.fa-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  width: 420px; height: min(720px, calc(100vh - 44px)); height: min(720px, calc(100dvh - 44px));
  display: flex; flex-direction: column; background: #f4f1eb; border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(10,15,26,.55), 0 0 0 1px rgba(17,26,43,.06);
  opacity: 0; transform: translateY(24px) scale(.97); transform-origin: bottom right; pointer-events: none; visibility: hidden;
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.fa-open .fa-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s; }
.fa-scrim { position: fixed; inset: 0; z-index: 94; background: rgba(10,15,26,.28); opacity: 0; pointer-events: none; transition: opacity .3s; }
.fa-open .fa-scrim { opacity: 1; pointer-events: auto; }
@media (max-width: 760px) {
  .fa-panel { inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; transform: translateY(40px); }
  .fa-scrim { display: none; }
  .fa-open body, body.fa-lock { overflow: hidden; }
}

.fa-hdr { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--ink); color: #fff; flex: none; padding-top: max(14px, env(safe-area-inset-top)); }
.fa-ava { width: 42px; height: 42px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; position: relative; }
.fa-ava svg { width: 22px; height: 22px; color: #fff; }
.fa-ava::after { content: ""; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #2fd27a; border: 2px solid var(--ink); }
.fa-hdr__t { flex: 1; min-width: 0; }
.fa-hdr__t b { display: block; font-size: 1rem; }
.fa-hdr__t small { display: block; font-size: .78rem; color: #aab5c8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa-ibtn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; flex: none; }
.fa-ibtn:hover { background: rgba(255,255,255,.2); }
.fa-ibtn svg { width: 18px; height: 18px; }
.fa-progress { height: 4px; background: rgba(17,26,43,.08); flex: none; }
.fa-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), #ff6a3d); transition: width .5s var(--ease); border-radius: 0 4px 4px 0; }

.fa-body { flex: 1; overflow-y: auto; padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.fa-body > * { flex-shrink: 0; }
.fa-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; animation: faIn .35s var(--ease) both; }
@keyframes faIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .fa-msg { animation: none; } }
.fa-msg__ava { width: 28px; height: 28px; border-radius: 50%; background: var(--red); flex: none; display: grid; place-items: center; }
.fa-msg__ava svg { width: 15px; height: 15px; color: #fff; }
.fa-msg--cont .fa-msg__ava { visibility: hidden; }
.fa-bubble { background: #fff; padding: 11px 14px; border-radius: 18px 18px 18px 6px; box-shadow: 0 1px 2px rgba(17,26,43,.06); font-size: .95rem; line-height: 1.45; max-width: 86%; }
.fa-bubble small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.fa-msg--me { justify-content: flex-end; }
.fa-msg--me .fa-bubble { background: var(--red); color: #fff; border-radius: 18px 18px 6px 18px; font-weight: 550; }
.fa-msg--me .fa-edit { border: 0; background: none; color: var(--muted); font-size: .75rem; padding: 0 4px; text-decoration: underline; text-underline-offset: 2px; align-self: center; }
.fa-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.fa-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b5bcc8; animation: faDot 1s infinite; }
.fa-typing i:nth-child(2) { animation-delay: .15s; } .fa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes faDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Price card */
.fa-price { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); width: calc(100% - 36px); margin-left: 36px; animation: faIn .45s var(--ease) both; border: 1px solid var(--line); }
.fa-price__top { background: linear-gradient(135deg, var(--ink) 0%, #26375a 100%); color: #fff; padding: 18px 18px 16px; position: relative; overflow: hidden; }
.fa-price__top::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; border: 22px solid rgba(255,255,255,.06); }
.fa-price__k { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffb4bb; }
.fa-price__v { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 4px; white-space: nowrap; }
.fa-price__v span { color: #8f9bb0; font-weight: 500; margin: 0 4px; }
.fa-price__note { font-size: .78rem; color: #aab5c8; }
.fa-price__lines { padding: 12px 18px 4px; margin: 0; list-style: none; }
.fa-price__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.fa-price__lines li:last-child { border-bottom: 0; }
.fa-price__lines em { font-style: normal; color: var(--muted); display: block; font-size: .78rem; }
.fa-price__lines b { white-space: nowrap; font-weight: 650; }
.fa-bonus { margin: 6px 14px 14px; background: #e9f6ee; color: #145c33; border-radius: 14px; padding: 11px 13px; font-size: .84rem; display: flex; gap: 10px; align-items: flex-start; }
.fa-bonus svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.fa-bonus b { display: block; font-size: .92rem; }
.fa-fine { font-size: .74rem; color: var(--muted); padding: 0 18px 14px; margin: 0; line-height: 1.4; }

/* Dock (answers) */
.fa-dock { flex: none; background: #fff; border-top: 1px solid var(--line); padding: 12px 12px max(12px, env(safe-area-inset-bottom)); max-height: 52%; overflow-y: auto; }
.fa-dock:empty { display: none; }
.fa-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fa-choices--1 { grid-template-columns: 1fr; }
.fa-choice {
  display: flex; align-items: center; gap: 10px; text-align: left; min-height: 52px;
  padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: .9rem; line-height: 1.25; transition: border-color .15s, background .15s, transform .15s;
}
.fa-choice:hover { border-color: var(--red); background: #fff; }
.fa-choice:active { transform: scale(.98); }
.fa-choice svg { width: 24px; height: 24px; color: var(--red); flex: none; }
.fa-choice--wide { grid-column: 1 / -1; }
.fa-choice--primary { background: var(--red); border-color: var(--red); color: #fff; justify-content: center; }
.fa-choice--primary svg { color: #fff; }
.fa-choice--primary:hover { background: var(--red-600); }
.fa-choice--wa { background: var(--wa); border-color: var(--wa); color: #fff; justify-content: center; }
.fa-choice--wa svg { color: #fff; }
.fa-choice--wa:hover { background: #178a49; border-color: #178a49; }
.fa-choice--ghost { background: #fff; justify-content: center; }
.fa-dock__hint { font-size: .8rem; color: var(--muted); margin: 0 2px 10px; display: flex; justify-content: space-between; gap: 8px; }
.fa-back { border: 0; background: none; color: var(--muted); font-size: .8rem; padding: 0; text-decoration: underline; text-underline-offset: 2px; }

.fa-num { display: grid; gap: 12px; }
.fa-num__row { display: flex; align-items: center; gap: 10px; }
.fa-num__val { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 6px; background: var(--paper); border-radius: 14px; padding: 6px 10px; }
.fa-num__val input { width: 4.5ch; border: 0; background: transparent; font-family: var(--font-display); font-size: 2rem; font-weight: 750; text-align: center; color: var(--ink); padding: 0; -moz-appearance: textfield; }
.fa-num__val input::-webkit-outer-spin-button, .fa-num__val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fa-num__val input:focus { outline: none; }
.fa-num__val span { color: var(--muted); font-weight: 600; }
.fa-step { width: 52px; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 500; flex: none; }
.fa-step:hover { border-color: var(--ink); }
.fa-range { width: 100%; accent-color: var(--red); height: 28px; }
.fa-counter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.fa-counter:last-of-type { border-bottom: 0; }
.fa-counter b { font-size: .95rem; }
.fa-counter small { display: block; color: var(--muted); font-size: .78rem; }
.fa-counter__ctl { display: flex; align-items: center; gap: 8px; }
.fa-counter__ctl .fa-step { width: 40px; height: 40px; font-size: 1.2rem; border-radius: 12px; }
.fa-counter__ctl output { min-width: 2ch; text-align: center; font-weight: 750; font-size: 1.1rem; }

/* Contact form card */
.fa-form { background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); width: calc(100% - 36px); margin-left: 36px; display: grid; gap: 14px; align-content: start; animation: faIn .4s var(--ease) both; }
.fa-form h4 { margin: 0; font-size: 1.1rem; }
.fa-form p.sub { margin: -6px 0 0; color: var(--muted); font-size: .84rem; }
.fa-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.fa-field > label, .fa-field > span.l { font-size: .8rem; font-weight: 650; color: var(--ink-soft); }
.fa-field input[type=text], .fa-field input[type=email], .fa-field input[type=tel], .fa-field textarea {
  width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 13px; font: inherit; font-size: 16px; line-height: 1.2; background: var(--paper); color: var(--ink); transition: border-color .15s, background .15s;
}
.fa-field textarea { height: auto; min-height: 76px; padding: 11px 13px; resize: vertical; }
.fa-field input:focus, .fa-field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.fa-field.is-bad input { border-color: var(--red); background: #fff6f6; }
.fa-field .err { color: var(--red); font-size: .78rem; font-weight: 600; display: none; }
.fa-field.is-bad .err { display: block; }
.fa-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.fa-plzhint { font-size: .76rem; font-weight: 600; line-height: 1.25; }
.fa-plzhint:empty { display: none; }
.fa-plzhint.ok { color: var(--ok); }
.fa-plzhint.maybe { color: #9a6a00; }
.fa-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fa-pill { border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; min-height: 42px; padding: 6px 8px; font-size: .8rem; font-weight: 600; line-height: 1.2; text-align: center; transition: background .15s, border-color .15s; }
.fa-pill:hover { border-color: var(--ink); }
.fa-pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.fa-photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fa-photo-add { display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed #c8bfb0; background: var(--paper); border-radius: 12px; padding: 10px 12px; font-size: .86rem; font-weight: 600; cursor: pointer; }
.fa-photo-add svg { width: 20px; height: 20px; color: var(--red); }
.fa-photo-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fa-thumb { position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.fa-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fa-thumb button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(17,26,43,.8); color: #fff; font-size: 12px; line-height: 1; display: grid; place-items: center; }
.fa-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--ink-soft); line-height: 1.4; }
.fa-consent input { width: 20px; height: 20px; accent-color: var(--red); flex: none; margin-top: 1px; }
.fa-consent.is-bad { color: var(--red); }
.fa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fa-submit { width: 100%; }
.fa-submit[disabled] { opacity: .7; cursor: progress; }
.fa-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: faSpin .8s linear infinite; }
@keyframes faSpin { to { transform: rotate(360deg); } }

/* Success */
.fa-success { background: #fff; border-radius: 20px; padding: 22px 18px 18px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); width: calc(100% - 36px); margin-left: 36px; position: relative; overflow: hidden; animation: faIn .4s var(--ease) both; }
.fa-success__icon { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; animation: faPop .6s var(--ease) both; }
.fa-success__icon svg { width: 38px; height: 38px; }
@keyframes faPop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: none; } }
.fa-success h4 { margin: 0 0 6px; font-size: 1.25rem; }
.fa-success p { margin: 0 0 12px; font-size: .9rem; color: var(--ink-soft); }
.fa-success .btn { width: 100%; margin-top: 6px; }
.fa-splat { position: absolute; border-radius: 50%; opacity: .9; animation: faSplat 1.1s var(--ease) both; pointer-events: none; }
@keyframes faSplat { 0% { transform: translate(0,0) scale(0); } 100% { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; } }
.fa-preview { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 650; color: var(--ink); background: #fff6d6; border: 1px dashed #d2a400; padding: 8px 12px; border-radius: 10px; text-decoration: none; margin: 4px 4px 0; }

/* KI-Fragezeile */
.fa-ask { flex: none; display: grid; grid-template-columns: 1fr 46px; gap: 8px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.fa-ask[hidden] { display: none; }
.fa-ask input { min-width: 0; height: 46px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); }
.fa-ask input:focus { outline: none; border-color: var(--ink); background: #fff; }
.fa-ask button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; }
.fa-ask button svg { width: 20px; height: 20px; }
.fa-ask small { grid-column: 1 / -1; font-size: .7rem; color: var(--muted); text-align: center; margin-top: -2px; }
.fa-dock + .fa-ask { border-top: 0; padding-top: 0; }
.fa-dock:has(+ .fa-ask:not([hidden])) { padding-bottom: 10px; }
.fa-ai-tag { display: block; width: fit-content; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6b4ce6; background: #efeafe; padding: 2px 7px; border-radius: 6px; margin-bottom: 6px; }
.fa-ai-act { display: flex; align-items: center; gap: 8px; margin-top: 10px; width: 100%; border: 0; background: var(--red); color: #fff; font-weight: 650; font-size: .88rem; padding: 10px 12px; border-radius: 12px; }
.fa-ai-act svg { width: 18px; height: 18px; }
