/* Jaz – Chat im Jazari-Design (bewusst immer dunkel, auch beim hellen Website-Design) */
.jzc { color-scheme: dark; --jzc-bg: #07070b; --jzc-surface: #0d0d14; --jzc-text: #ececf3; --jzc-muted: #9b9bb0;
  --jzc-border: rgba(255,255,255,.1); --jzc-violet: #7c5cff; --jzc-teal: #2ee6cf;
  position: fixed; right: 20px; bottom: 20px; z-index: 9999; font-family: var(--font-body, Inter, system-ui, sans-serif); color: var(--jzc-text); }
.jzc-launcher { display: flex; align-items: center; gap: 10px; padding: 0 18px 0 0; border: 1px solid var(--jzc-border); border-radius: 999px; background: var(--jzc-surface);
  color: var(--jzc-text); cursor: pointer; box-shadow: 0 18px 40px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(124,92,255,.15); transition: transform .2s, box-shadow .2s; }
.jzc-launcher:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -12px rgba(124,92,255,.45); }
.jzc-launcher img { width: 56px; height: 56px; border-radius: 50%; position: relative; }
.jzc-launcher-label { font: 600 .92rem/1 var(--font-head, Sora, sans-serif); text-align: left; }
.jzc-launcher-label small { display: block; margin-top: 4px; font: 500 .72rem/1 var(--font-body, Inter, sans-serif); color: var(--jzc-teal); }
.jzc-launcher-label small::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--jzc-teal); vertical-align: 1px; box-shadow: 0 0 6px var(--jzc-teal); }
/* Sensor "sendet": zwei Ringe laufen nach aussen, wenige Male nach dem Laden */
.jzc-launcher { position: relative; }
.jzc-launcher::before { content: ""; position: absolute; left: 0; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; border: 1.5px solid var(--jzc-teal);
  opacity: 0; pointer-events: none; animation: jzc-ping 2.4s ease-out 1.2s 4; }
@keyframes jzc-ping { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.jzc-open .jzc-launcher { display: none; }

/* Begruessung: Jaz (Visier) stellt sich vor */
.jzc-teaser { position: absolute; right: 0; bottom: 74px; width: 300px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 10px;
  background: var(--jzc-surface); border: 1px solid rgba(124,92,255,.35); border-radius: 16px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.85), 0 0 40px -18px rgba(46,230,207,.35);
  animation: jzc-in .5s cubic-bezier(.2,.8,.2,1); }
.jzc-teaser[hidden] { display: none; }
.jzc-teaser::after { content: ""; position: absolute; right: 26px; bottom: -7px; width: 12px; height: 12px; background: var(--jzc-surface); border-right: 1px solid rgba(124,92,255,.35); border-bottom: 1px solid rgba(124,92,255,.35); transform: rotate(45deg); }
.jzc-teaser img { flex: none; width: 112px; height: 112px; margin: -14px -14px -14px -14px; }
.jzc-teaser b { display: block; font: 600 .98rem/1.25 var(--font-head, Sora, sans-serif); margin: 2px 18px 4px 0; }
.jzc-teaser p { font-size: .8rem; line-height: 1.45; color: var(--jzc-muted); margin: 0 0 10px; }
.jzc-teaser-go { border: 0; border-radius: 8px; padding: 8px 12px; background: var(--jzc-violet); color: #fff; font: 600 .8rem/1 var(--font-body, Inter, sans-serif); cursor: pointer; }
.jzc-teaser-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--jzc-muted); font-size: 1.05rem; line-height: 1; cursor: pointer; }
.jzc-teaser-x:hover { color: var(--jzc-text); background: rgba(255,255,255,.06); }
@keyframes jzc-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

.jzc-panel { position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column;
  background: var(--jzc-bg); border: 1px solid var(--jzc-border); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.85); }
.jzc-panel[hidden] { display: none; }
.jzc-head { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-bottom: 1px solid var(--jzc-border);
  background: radial-gradient(160px 90px at 44px 50%, rgba(46,230,207,.10), transparent 70%), linear-gradient(180deg, rgba(124,92,255,.12), transparent); }
/* Das Visier-SVG hat viel Luft im Raster: groesser zeichnen, Raender per negativem Margin einziehen */
.jzc-head .jzc-face { width: 112px; height: 112px; flex: none; margin: -14px -16px -14px -12px; }
.jzc-head div { flex: 1; line-height: 1.2; }
.jzc-head b { display: block; font: 600 1.05rem/1.2 var(--font-head, Sora, sans-serif); }
.jzc-head small { color: var(--jzc-teal); font-size: .76rem; }
.jzc-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--jzc-teal); vertical-align: 1px; transition: background .2s; }
.jzc[data-mood="denkt"] .jzc-status::before, .jzc[data-mood="erklaert"] .jzc-status::before { background: var(--jzc-violet); animation: jzc-blink 1s ease-in-out infinite; }
@keyframes jzc-blink { 50% { opacity: .3; } }
.jzc-head button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--jzc-muted); font-size: 1.25rem; cursor: pointer; }
.jzc-head button:hover { background: rgba(255,255,255,.06); color: var(--jzc-text); }

.jzc-body { flex: 1; overflow-y: auto; padding: 16px; scroll-behavior: smooth; }
.jzc-intro { text-align: center; padding: 6px 4px 10px; }
.jzc-intro img { margin: 0 auto 8px; display: block; }
.jzc-hello { font-size: .95rem; margin-bottom: 10px; }
.jzc-note { font-size: .74rem; color: var(--jzc-muted); line-height: 1.45; margin-bottom: 14px; }
.jzc-note a, .jzc-consent a { color: var(--jzc-teal); }
.jzc-suggest { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.jzc-suggest button { border: 1px solid var(--jzc-border); background: var(--jzc-surface); color: var(--jzc-text); border-radius: 999px; padding: 7px 12px; font-size: .8rem; cursor: pointer; }
.jzc-suggest button:hover { border-color: var(--jzc-teal); }
.jzc-intro.jzc-compact img, .jzc-intro.jzc-compact .jzc-hello, .jzc-intro.jzc-compact .jzc-suggest { display: none; }
.jzc-intro.jzc-compact .jzc-note { margin-bottom: 4px; }

.jzc-msg { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.jzc-msg img { border-radius: 50%; flex: none; }
.jzc-bubble { max-width: 85%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: #15151f; border: 1px solid var(--jzc-border); font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.jzc-bubble p + p, .jzc-bubble ul { margin-top: 6px; }
.jzc-bubble ul { padding-left: 18px; }
.jzc-bubble a { color: var(--jzc-teal); text-decoration: underline; text-underline-offset: 2px; }
.jzc-user { justify-content: flex-end; }
.jzc-user .jzc-bubble { background: rgba(124,92,255,.2); border-color: rgba(124,92,255,.4); border-radius: 14px 14px 4px 14px; white-space: pre-wrap; }
.jzc-system .jzc-bubble { border-color: rgba(46,230,207,.3); }
.jzc-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.jzc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--jzc-muted); animation: jzc-dot 1.2s infinite ease-in-out; }
.jzc-dots i:nth-child(2) { animation-delay: .15s; } .jzc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes jzc-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

.jzc-btn { display: inline-block; margin-top: 8px; padding: 9px 14px; border: 0; border-radius: 9px; background: var(--jzc-violet); color: #fff !important; text-decoration: none !important; font: 600 .85rem/1 var(--font-body, Inter, sans-serif); cursor: pointer; }
.jzc-lead { display: grid; gap: 7px; margin-top: 10px; }
.jzc-lead input:not([type=checkbox]) { width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--jzc-border); background: var(--jzc-bg); color: var(--jzc-text); font: inherit; font-size: .86rem; }
.jzc-consent { display: flex; gap: 7px; align-items: flex-start; font-size: .72rem; color: var(--jzc-muted); line-height: 1.4; }
.jzc-consent input { margin-top: 2px; accent-color: var(--jzc-violet); }
.jzc-ok { margin-top: 8px; color: var(--jzc-teal); font-size: .86rem; }

.jzc-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--jzc-border); background: var(--jzc-surface); }
.jzc-form textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--jzc-border);
  background: var(--jzc-bg); color: var(--jzc-text); font: inherit; font-size: .9rem; line-height: 1.4; }
.jzc-form textarea:focus { outline: none; border-color: var(--jzc-violet); }
.jzc-form button { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--jzc-violet); color: #fff; cursor: pointer; }
.jzc-busy button { opacity: .5; pointer-events: none; }
.jzc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 560px) {
  .jzc { right: 12px; bottom: 12px; }
  .jzc-launcher-label { display: none; }
  .jzc-launcher { padding: 0; }
  .jzc-teaser { width: min(300px, calc(100vw - 24px)); bottom: 70px; }
  .jzc-open { left: 0; right: 0; bottom: 0; top: 0; }
  .jzc-open .jzc-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .jzc-dots i, .jzc-launcher::before, .jzc-teaser, .jzc-status::before { animation: none !important; } .jzc-launcher { transition: none; } }

/* Theme-Stile (form, label, input, textarea) im Chat neutralisieren */
.jzc form, .jzc .jzc-form, .jzc .jzc-lead { padding: 0; margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.jzc .jzc-form { display: flex; padding: 10px; border-top: 1px solid var(--jzc-border); background: var(--jzc-surface); }
.jzc .jzc-lead { display: grid; gap: 7px; margin-top: 10px; }
.jzc label { display: block; color: inherit; font-size: inherit; }
.jzc .jzc-consent { display: flex; }
.jzc textarea { min-height: 42px; overflow-y: hidden; }
.jzc-panel { padding: 0; }.jzc .jzc-consent input { width: auto; flex: none; min-height: 0; padding: 0; }

/* Jaz kommt im Chatfenster an (nachdem er hinter der Fusszeile abgetaucht ist) */
.jzc-open .jzc-head .jzc-face { animation: jzc-arrive .6s cubic-bezier(.2, .9, .3, 1.25) .3s both; }
@keyframes jzc-arrive { from { opacity: 0; transform: translateY(26px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jzc-open .jzc-head .jzc-face { animation: none; } }
/* Chat-Kopf: alle Visier-Zustaende liegen uebereinander und blenden weich ineinander (data-mood am .jzc) */
.jzc-head .jzc-face { display: block; }
.jzc-head .jzc-face svg, .jzc-head .jzc-face img { display: block; width: 100%; height: 100%; }
.jzc-face .jf-st, .jzc-face .jf-ear-on { opacity: 0; transition: opacity .4s ease; }
.jzc[data-mood="bereit"] .jf-bereit, .jzc[data-mood="denkt"] .jf-denkt, .jzc[data-mood="erklaert"] .jf-erklaert,
.jzc[data-mood="antwort"] .jf-antwort, .jzc[data-mood="antwort"] .jzc-face .jf-ear-on { opacity: 1; }
.jzc-face .a-idle { animation: jzc-f-idle 4s ease-in-out infinite; }
.jzc-face .a-glow { animation: jzc-f-glow 1.6s ease-in-out infinite; }
.jzc-face .a-sweep { animation: jzc-f-sweep 1.9s ease-in-out infinite; }
.jzc-face .a-bars { animation: jzc-f-bars 1.8s ease-in-out infinite; }
@keyframes jzc-f-idle { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes jzc-f-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes jzc-f-sweep { 0%, 100% { transform: translateX(-24px); } 50% { transform: translateX(24px); } }
@keyframes jzc-f-bars { 0%, 100% { opacity: .45; } 50% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .jzc-face * { animation: none !important; } }