/* HELPI – KI-Chat mit schwebendem Orb */
.zl-layer { position: fixed; inset: 0; pointer-events: none; z-index: 900; }
.zl-orb { position: fixed; right: 28px; bottom: 28px; width: 72px; height: 72px; border: 0; padding: 0; background: transparent; cursor: pointer; pointer-events: auto; z-index: 902;
  transition: transform .5s var(--ease-out, cubic-bezier(.2,.8,.2,1)); -webkit-tap-highlight-color: transparent; }
.zl-orb:focus-visible { outline: 3px solid var(--color-petrol, #173f49); outline-offset: 6px; border-radius: 50%; }
.zl-orb__float { position: absolute; inset: 0; animation: zl-float 5.5s ease-in-out infinite; }
.zl-orb__ring, .zl-orb__ring2 { position: absolute; inset: -6px; border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 60%, #000 69%, transparent 72%); mask: radial-gradient(circle, transparent 56%, #000 60%, #000 69%, transparent 72%); }
.zl-orb__ring { background: conic-gradient(from 0deg, #eafb58, #c9f27a 14%, #93c3ca 32%, #2f8f9d 50%, #173f49 62%, #ff7a59 80%, #eafb58); filter: blur(1.4px) saturate(1.2); animation: zl-spin 6s linear infinite; }
.zl-orb__ring2 { inset: -10px; background: conic-gradient(from 90deg, transparent 0 15%, rgba(255,122,89,.9) 25%, rgba(234,251,88,.95) 38%, transparent 50% 62%, rgba(147,195,202,.95) 75%, rgba(47,143,157,.9) 88%, transparent);
  filter: blur(3px); transform: rotate(20deg) scale(1, .86); animation: zl-wobble 4.2s linear infinite; opacity: .95; }
.zl-orb__glow { position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(147,195,202,.55), rgba(234,251,88,.25) 45%, transparent 70%); filter: blur(8px); animation: zl-pulse 3.6s ease-in-out infinite; }
.zl-orb__core { position: absolute; inset: 5px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #93c3ca 0%, #2f8f9d 30%, #173f49 66%, #0f2a31 100%);
  box-shadow: inset 0 -8px 16px rgba(0,0,0,.4), inset 0 5px 12px rgba(255,255,255,.22), 0 12px 30px rgba(23,63,73,.38); }
.zl-orb__core::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 8%; height: 38%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(234,251,88,.4), transparent 70%); filter: blur(5px); animation: zl-swirl 6s ease-in-out infinite; }
.zl-eyes { position: absolute; left: 50%; top: 46%; display: flex; gap: 11px; transform: translate(calc(-50% + var(--lx, 0px)), calc(-50% + var(--ly, 0px))); transition: transform .35s ease; z-index: 2; }
.zl-eyes i { display: block; width: 7px; height: 16px; border-radius: 6px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.7); animation: zl-blink 4.8s infinite; transform-origin: center; }
.zl-orb:hover { transform: scale(1.08); }
.zl-orb.is-thinking .zl-orb__ring { animation-duration: 1.6s; }
.zl-orb.is-thinking .zl-eyes i { animation: zl-think 1.2s ease-in-out infinite; }
.zl-orb.is-happy .zl-eyes i { height: 8px; border-radius: 8px 8px 3px 3px; }
.zl-hello { position: fixed; right: 108px; bottom: 44px; max-width: 220px; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: #fff; color: var(--color-ink, #111315);
  font-size: 14px; line-height: 20px; font-weight: 600; box-shadow: 0 12px 32px rgba(15,38,44,.16); pointer-events: auto; cursor: pointer; z-index: 901;
  opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .4s ease, transform .4s ease; }
.zl-hello.is-in { opacity: 1; transform: none; }

/* Panel */
.zl-panel { position: fixed; right: 28px; bottom: 28px; width: min(420px, calc(100vw - 32px)); height: min(660px, calc(100vh - 120px)); display: grid; grid-template-rows: auto 1fr auto; pointer-events: auto; z-index: 901;
  background: rgba(250,250,247,.84); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(17,19,21,.08); border-radius: 30px; box-shadow: 0 30px 80px rgba(15,38,44,.22), 0 2px 0 rgba(255,255,255,.7) inset;
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.97); transform-origin: bottom right; transition: opacity .35s ease, transform .45s var(--ease-out, cubic-bezier(.2,.8,.2,1)), visibility 0s linear .45s; }
.zl-open .zl-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.zl-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 22px 22px 14px 24px; border-bottom: 1px solid rgba(17,19,21,.06); }
.zl-head strong { font-size: 18px; letter-spacing: -.02em; display: block; }
.zl-head span { display: block; font-size: 13px; line-height: 18px; color: var(--color-muted, #5d6466); margin-top: 2px; }
.zl-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(17,19,21,.06); cursor: pointer; display: grid; place-items: center; }
.zl-x:hover { background: var(--color-lime, #eafb58); }
.zl-x svg { width: 16px; height: 16px; }
.zl-body { overflow-y: auto; padding: 18px 22px 8px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; overscroll-behavior: contain; }
.zl-msg { max-width: 88%; font-size: 15px; line-height: 23px; animation: zl-in .35s ease both; }
.zl-msg--user { align-self: flex-end; padding: 10px 16px; border-radius: 20px 20px 6px 20px; background: var(--color-petrol, #173f49); color: #fff; }
.zl-msg--bot { align-self: flex-start; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: #fff; box-shadow: 0 1px 0 rgba(17,19,21,.05); }
.zl-msg--bot p + p, .zl-msg--bot ul { margin-top: 8px; }
.zl-msg--bot ul { padding-left: 18px; }
.zl-msg--bot li { margin: 2px 0; }
.zl-msg--bot a { color: var(--color-petrol, #173f49); font-weight: 700; text-underline-offset: 3px; }
.zl-msg--note { align-self: stretch; max-width: none; font-size: 12px; line-height: 17px; color: var(--color-muted, #5d6466); text-align: center; }
.zl-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.zl-src a { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--color-ice, #e1f2f4); color: var(--color-ink, #111315); text-decoration: none; }
.zl-src a:hover { background: var(--color-lime, #eafb58); }
.zl-dots { display: inline-flex; gap: 4px; padding: 4px 0; } .zl-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-aqua, #93c3ca); animation: zl-dot 1s infinite ease-in-out; } .zl-dots i:nth-child(2) { animation-delay: .15s; } .zl-dots i:nth-child(3) { animation-delay: .3s; }
.zl-sugg { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 6px; }
.zl-sugg button { font: inherit; font-size: 13px; line-height: 18px; font-weight: 600; text-align: left; padding: 9px 14px; border-radius: 16px; border: 1px solid rgba(17,19,21,.14); background: rgba(255,255,255,.7); cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.zl-sugg button:hover { background: var(--color-lime, #eafb58); border-color: var(--color-ink, #111315); transform: translateY(-1px); }
.zl-foot { padding: 10px 14px 14px; border-top: 1px solid rgba(17,19,21,.06); display: grid; gap: 8px; }
.zl-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; padding: 6px 6px 6px 16px; border-radius: 24px; background: #fff; border: 1px solid rgba(17,19,21,.1); }
.zl-form:focus-within { border-color: var(--color-petrol, #173f49); box-shadow: 0 0 0 3px rgba(147,195,202,.35); }
.zl-form textarea { border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: 15px; line-height: 22px; max-height: 120px; padding: 8px 0; }
.zl-send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--color-lime, #eafb58); cursor: pointer; display: grid; place-items: center; transition: transform .18s ease; }
.zl-send:hover { transform: scale(1.06); } .zl-send:disabled { opacity: .45; cursor: default; transform: none; }
.zl-send svg { width: 18px; height: 18px; }
.zl-privacy { font-size: 11px; line-height: 15px; color: var(--color-muted, #5d6466); text-align: center; }
.zl-privacy a { color: inherit; }

@keyframes zl-spin { to { transform: rotate(360deg); } }
@keyframes zl-wobble { from { transform: rotate(20deg) scale(1, .86) rotate(0); } to { transform: rotate(20deg) scale(1, .86) rotate(-360deg); } }
@keyframes zl-pulse { 0%,100% { opacity: .55; transform: scale(.94); } 50% { opacity: .9; transform: scale(1.04); } }
@keyframes zl-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes zl-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes zl-think { 0%,100% { transform: translateX(-2px) scaleY(.8); } 50% { transform: translateX(2px) scaleY(.8); } }
@keyframes zl-swirl { 0%,100% { transform: translateX(-12%) rotate(-6deg); } 50% { transform: translateX(12%) rotate(6deg); } }
@keyframes zl-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
@keyframes zl-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 599px) {
  .zl-orb { right: 16px; bottom: 16px; width: 60px; height: 60px; }
  .zl-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100dvh - 90px); border-radius: 26px; }
  .zl-hello { right: 88px; bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .zl-orb__float, .zl-orb__ring, .zl-orb__ring2, .zl-orb__glow, .zl-orb__core::after, .zl-eyes i { animation: none !important; }
}
@media print { .zl-layer, .zl-orb, .zl-panel, .zl-hello { display: none !important; } }
.zl-form textarea, .zl-form textarea:focus, .zl-form textarea:focus-visible { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; min-height: 0 !important; border-radius: 0 !important; padding: 8px 0 !important; width: 100%; color: var(--color-ink, #111315); }
