/* ============ Lumi — KI-Maskottchen ============ */
.lumi-wrap {
  display: inline-block;
  position: relative;
  line-height: 0;
}
.lumi-svg { display: block; overflow: visible; }

/* --- IDLE: sanftes Schweben --- */
.lumi-body, .lumi-face, .lumi-l {
  transform-box: fill-box;
  transform-origin: center;
}
.lumi-idle .lumi-svg { animation: lumiFloat 3.5s ease-in-out infinite; }
@keyframes lumiFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.lumi-idle .lumi-shadow { animation: lumiShadow 3.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lumiShadow {
  0%, 100% { transform: scaleX(1); opacity: 0.18; }
  50% { transform: scaleX(0.86); opacity: 0.10; }
}

/* Blinzeln (idle + talking) */
.lumi-idle .lumi-eyes, .lumi-talking .lumi-eyes, .lumi-thinking .lumi-eyes {
  animation: lumiBlink 4.2s infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes lumiBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

/* Lichtpunkt pulsiert immer leicht */
.lumi-toplight-glow { animation: lumiPulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lumiPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* Sleeping/Zzz standardmäßig aus */
.lumi-eyes-closed, .lumi-zzz { opacity: 0; }

/* --- TALKING: Kopf-Nicken + Mund bewegt sich --- */
.lumi-talking .lumi-svg { animation: lumiTalkBob 0.9s ease-in-out infinite; }
@keyframes lumiTalkBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-1.5deg); }
  75% { transform: translateY(-3px) rotate(1.5deg); }
}
.lumi-talking .lumi-smile { animation: lumiTalkMouth 0.45s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lumiTalkMouth {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.8) translateY(1px); }
}

/* --- THINKING: leichtes Wippen, Augen wandern --- */
.lumi-thinking .lumi-svg { animation: lumiThink 2s ease-in-out infinite; }
@keyframes lumiThink {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}
.lumi-thinking .lumi-eye { animation: lumiEyeShift 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lumiEyeShift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* --- SLEEPING: offene Augen aus, geschlossene an, Zzz aufsteigend --- */
.lumi-sleeping .lumi-eyes { opacity: 0; }
.lumi-sleeping .lumi-eyes-closed { opacity: 1; }
.lumi-sleeping .lumi-smile { d: path("M90 142 Q100 146 110 142"); }
.lumi-sleeping .lumi-svg { animation: lumiSleep 4s ease-in-out infinite; }
@keyframes lumiSleep {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(3px) rotate(-4deg); }
}
.lumi-sleeping .lumi-toplight-glow { animation: none; opacity: 0.15; }
.lumi-sleeping .lumi-zzz { opacity: 1; }
.lumi-sleeping .lumi-zzz text { animation: lumiZzz 3s ease-in-out infinite; }
.lumi-sleeping .lumi-zzz text:nth-child(1) { animation-delay: 0s; }
.lumi-sleeping .lumi-zzz text:nth-child(2) { animation-delay: 0.6s; }
.lumi-sleeping .lumi-zzz text:nth-child(3) { animation-delay: 1.2s; }
@keyframes lumiZzz {
  0% { opacity: 0; transform: translateY(6px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* Chat-Bubble Tippanimation von Lumi */
.lumi-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 2px;
}
.lumi-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-3);
  animation: lumiDot 1.2s infinite ease-in-out;
}
.lumi-typing span:nth-child(2) { animation-delay: 0.2s; }
.lumi-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lumiDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ============ Lumi Buchungs-Helfer (Home) ============ */
.lumi-helper {
  position: fixed;
  bottom: 90px;
  left: 16px;
  right: 16px;
  z-index: 900;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.2,.9,.3,1);
  pointer-events: none;
}
.lumi-helper.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lumi-helper-avatar { flex-shrink: 0; filter: drop-shadow(0 8px 20px rgba(124,58,255,0.35)); }
.lumi-helper-bubble {
  flex: 1;
  background: var(--card-solid);
  border: 1px solid rgba(124,58,255,0.25);
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  position: relative;
}
.lumi-helper-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-1);
  color: var(--text-3);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
.lumi-helper-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  padding-right: 20px;
}
.lumi-helper-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.lumi-helper-yes {
  flex: 1;
  background: var(--grad);
  color: #fff;
  border: 0;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.lumi-helper-yes:active { transform: scale(0.97); }
.lumi-helper-no {
  flex: 1;
  background: var(--surface-1);
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
