/* FennecHosting Live-Chat-Widget (Website + Kundenpanel) – alles unter .fhc, damit nichts mit der Seite kollidiert */
.fhc { --c-bg: #0d111b; --c-s1: #141a27; --c-s2: #1b2333; --c-b: rgba(255, 255, 255, .09); --c-t: #f2f5fa; --c-m: #9aa6bb; --c-d: #667389;
  --c-a: #ff8a3d; --c-a2: #ffb070; --c-a3: #ff5e2b; --c-g: #2fd082;
  position: fixed; right: 22px; bottom: 22px; z-index: 2147483000; font: 15px/1.45 "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--c-t); }
.fhc *, .fhc *::before, .fhc *::after { box-sizing: border-box; }
.fhc button, .fhc input, .fhc textarea { font: inherit; color: inherit; }
.fhc [hidden] { display: none !important; }
.fhc-launch { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #1a0d04;
  background: linear-gradient(135deg, var(--c-a2), var(--c-a3)); box-shadow: 0 14px 34px -10px rgba(255, 110, 40, .75), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  transition: transform .18s ease, box-shadow .18s ease; }
.fhc-launch:hover { transform: translateY(-2px) scale(1.04); }
.fhc-launch:focus-visible { outline: 3px solid rgba(255, 176, 112, .6); outline-offset: 3px; }
.fhc.is-open .fhc-launch { transform: scale(.92); }
.fhc-dot { position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-g); border: 2.5px solid #1a0d04; }
.fhc-badge { position: absolute; left: -4px; top: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center;
  background: #ff3b5c; color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 3px var(--c-bg); animation: fhc-pop .3s ease-out; }
.fhc-teaser { position: absolute; right: 0; bottom: 74px; max-width: 250px; white-space: nowrap; padding: 11px 16px; border-radius: 16px 16px 4px 16px; cursor: pointer;
  background: var(--c-s1); border: 1px solid var(--c-b); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); font-weight: 600; font-size: 14px; animation: fhc-up .35s ease-out; }
.fhc-teaser:hover { border-color: rgba(255, 138, 61, .5); }
.fhc-win { position: absolute; right: 0; bottom: 76px; width: 380px; height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: var(--c-bg); border: 1px solid var(--c-b); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 138, 61, .08);
  animation: fhc-up .25s cubic-bezier(.2, .9, .3, 1.2); }
.fhc-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 12px 16px 16px; flex: none;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 138, 61, .35), transparent 55%), linear-gradient(135deg, #22160f, #121827); border-bottom: 1px solid var(--c-b); }
.fhc-logo { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 138, 61, .35); }
.fhc-head__t { flex: 1; min-width: 0; } .fhc-head__t b { display: block; font-size: 15.5px; }
.fhc-head__t small { display: flex; align-items: center; gap: 6px; color: var(--c-m); font-size: 12.5px; line-height: 1.3; }
.fhc-sdot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-d); } .fhc-sdot.on { background: var(--c-g); box-shadow: 0 0 0 3px rgba(47, 208, 130, .2); }
.fhc-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--c-m); cursor: pointer; display: grid; place-items: center; }
.fhc-icon:hover { background: rgba(255, 255, 255, .07); color: var(--c-t); }
.fhc-pop { position: absolute; right: 12px; top: 64px; z-index: 3; display: grid; padding: 6px; min-width: 190px; border-radius: 14px; background: var(--c-s2); border: 1px solid var(--c-b); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); }
.fhc-pop button { text-align: left; padding: 10px 12px; border: 0; border-radius: 9px; background: none; cursor: pointer; font-size: 14px; }
.fhc-pop button:hover { background: rgba(255, 255, 255, .06); }
.fhc-body { flex: 1; overflow-y: auto; padding: 16px; scroll-behavior: smooth; overscroll-behavior: contain; }
.fhc-foot { flex: none; }
.fhc-hello b { display: block; font-size: 20px; letter-spacing: -.01em; margin-bottom: 4px; } .fhc-hello p { margin: 0 0 16px; color: var(--c-m); font-size: 14px; }
.fhc-form { display: grid; gap: 10px; }
.fhc-form input, .fhc-form textarea, .fhc-ask input { width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--c-s1); border: 1px solid var(--c-b); outline: none; transition: border-color .15s, box-shadow .15s; }
.fhc-form textarea { resize: none; min-height: 96px; }
.fhc-form input:focus, .fhc-form textarea:focus, .fhc-ask input:focus { border-color: rgba(255, 138, 61, .6); box-shadow: 0 0 0 3px rgba(255, 138, 61, .15); }
.fhc-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.fhc-err { margin: 0; color: #ff8a8a; font-size: 13px; }
.fhc-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
  color: #1a0d04; font-weight: 700; background: linear-gradient(135deg, var(--c-a2), var(--c-a3)); box-shadow: 0 10px 26px -12px rgba(255, 110, 40, .8); }
.fhc-primary:disabled { opacity: .6; cursor: wait; } .fhc-primary:hover { filter: brightness(1.06); }
.fhc-sm { padding: 9px 14px; font-size: 14px; }
.fhc-ghost { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--c-b); background: var(--c-s1); cursor: pointer; font-size: 14px; }
.fhc-ghost:hover { border-color: rgba(255, 255, 255, .2); }
.fhc-links { display: flex; gap: 8px; margin-top: 16px; } .fhc-links a { flex: 1; text-align: center; padding: 10px; border-radius: 12px; background: var(--c-s1); border: 1px solid var(--c-b); color: var(--c-m); font-size: 13px; text-decoration: none; }
.fhc-links a:hover { color: var(--c-t); border-color: rgba(255, 138, 61, .4); }
.fhc-list { display: grid; gap: 10px; }
.fhc-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; animation: fhc-in .25s ease-out; }
.fhc-msg--me { margin-left: auto; flex-direction: row-reverse; }
.fhc-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c-s2); border: 1px solid rgba(255, 138, 61, .3); }
.fhc-av svg, .fhc-av img { width: 22px !important; height: 22px !important; }
.fhc-bubble { min-width: 0; padding: 10px 13px 8px; border-radius: 18px; background: var(--c-s1); border: 1px solid var(--c-b); }
.fhc-msg--team .fhc-bubble { border-bottom-left-radius: 6px; }
.fhc-msg--me .fhc-bubble { border-bottom-right-radius: 6px; color: #1a0d04; background: linear-gradient(135deg, var(--c-a2), var(--c-a)); border-color: transparent; }
.fhc-who { display: block; font-size: 12px; color: var(--c-a2); margin-bottom: 2px; }
.fhc-text { white-space: pre-wrap; overflow-wrap: anywhere; } .fhc-text a { color: inherit; text-decoration: underline; }
.fhc-bubble time { display: block; text-align: right; margin-top: 2px; font-size: 11px; opacity: .6; }
.fhc-msg.is-pending { opacity: .55; }
.fhc-sys { justify-self: center; max-width: 92%; text-align: center; padding: 6px 12px; border-radius: 12px; font-size: 12.5px; color: var(--c-m); background: rgba(255, 255, 255, .04); }
.fhc-wait { color: #f5c25a; background: rgba(245, 185, 66, .09); }
.fhc-typing { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--c-m); font-size: 12.5px; }
.fhc-typing span { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 16px; background: var(--c-s1); border: 1px solid var(--c-b); }
.fhc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-a2); animation: fhc-dot 1.2s infinite ease-in-out; }
.fhc-typing i:nth-child(2) { animation-delay: .15s; } .fhc-typing i:nth-child(3) { animation-delay: .3s; }
.fhc-typing em { font-style: normal; }
.fhc-ask { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--c-s1); border: 1px solid rgba(255, 138, 61, .3); }
.fhc-ask b { font-size: 13.5px; } .fhc-ask .fhc-primary { justify-self: start; }
.fhc-endbox { display: grid; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--c-s1); border: 1px solid var(--c-b); text-align: center; }
.fhc-endbox__t { margin: 0; color: var(--c-m); font-size: 14px; }
.fhc-rate { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.fhc-rate button { width: 46px; height: 42px; border-radius: 12px; border: 1px solid var(--c-b); background: var(--c-s2); cursor: pointer; font-size: 20px; transition: transform .15s; }
.fhc-rate button:hover { transform: translateY(-2px); border-color: rgba(255, 138, 61, .5); }
.fhc-endbox__row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.fhc-done { display: grid; justify-items: center; gap: 12px; padding: 40px 10px; text-align: center; }
.fhc-done__i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #06281a; background: var(--c-g); }
.fhc-done p { margin: 0; color: var(--c-m); }
.fhc-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--c-b); background: var(--c-bg); }
.fhc-compose textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 14px; border-radius: 14px; resize: none; background: var(--c-s1); border: 1px solid var(--c-b); outline: none; line-height: 1.4; }
.fhc-compose textarea:focus { border-color: rgba(255, 138, 61, .55); }
.fhc-send { flex: none; width: 44px; height: 44px; border-radius: 14px; border: 0; cursor: pointer; display: grid; place-items: center; color: #1a0d04; background: linear-gradient(135deg, var(--c-a2), var(--c-a3)); }
.fhc-send:hover { filter: brightness(1.06); }
@keyframes fhc-up { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fhc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fhc-pop { from { transform: scale(.4); } to { transform: scale(1); } }
@keyframes fhc-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .fhc * { animation: none !important; transition: none !important; } }
@media (max-width: 520px) {
  .fhc { right: 14px; bottom: 14px; }
  .fhc-win { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; border: 0; }
  .fhc.is-open .fhc-launch { display: none; }
  .fhc-teaser { bottom: 70px; }
}

/* gegen fremde Seiten-Styles absichern */
.fhc .fhc-primary, .fhc .fhc-send, .fhc .fhc-launch { color: #1a0d04 !important; }
.fhc .fhc-primary { font-weight: 700 !important; text-shadow: none !important; }
.fhc input, .fhc textarea { color: var(--c-t) !important; margin: 0; }
.fhc input::placeholder, .fhc textarea::placeholder { color: var(--c-d); opacity: 1; }
