:root {
  --dp-ai-primary: #ec5ac8;
}

#dp-ai-chatbot-root {
  position: fixed;
  right: 22px;
  bottom: 90px !important;
  z-index: 999999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


#dp-ai-chatbot-root.dp-ai-travel {
  animation: dp-ai-travel-across 7.5s ease-in-out 1;
}

.dp-ai-launcher {
  position: relative;
  width: 92px;
  height: 92px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .22));
  animation: dp-ai-idle 3.8s ease-in-out infinite;
  transform-origin: center bottom;
}

.dp-ai-launcher img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: 50% 78%;
  animation: dp-ai-img-life 5.2s ease-in-out infinite;
}



/* Dezente Augen-Glanzpunkte: exakt auf den Original-Augen, ohne künstliche neue Augen. */
.dp-ai-eye-glint {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 0 4px rgba(255, 145, 225, .28);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: scale(.65);
  animation: dp-ai-eye-glint 8.5s ease-in-out infinite;
}

.dp-ai-eye-glint.left {
  left: 25.2%;
  top: 33.6%;
}

.dp-ai-eye-glint.right {
  left: 50.2%;
  top: 33.2%;
  animation-delay: .18s;
}

.dp-ai-launcher::after {
  content: "";
  position: absolute;
  inset: auto 14px -4px 14px;
  height: 12px;
  background: rgba(0,0,0,.16);
  filter: blur(8px);
  border-radius: 999px;
}

.dp-ai-panel {
  position: absolute;
  right: 0;
  bottom: 108px;
  width: min(380px, calc(100vw - 34px));
  height: min(600px, calc(100vh - 150px));
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  overflow: hidden;
  display: none;
  border: 1px solid rgba(0,0,0,.08);
}

.dp-ai-panel.is-open {
  display: flex;
  flex-direction: column;
}

.dp-ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #111827, #24243e);
  color: #fff;
}

.dp-ai-header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.dp-ai-title {
  font-weight: 750;
  line-height: 1.15;
}

.dp-ai-subtitle {
  font-size: 12px;
  opacity: .78;
  margin-top: 2px;
}

.dp-ai-close {
  margin-left: auto;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
}

.dp-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f7f7fb;
}

.dp-ai-msg {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 16px;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.42;
  white-space: pre-wrap;
}

.dp-ai-msg.assistant {
  background: #fff;
  color: #1f2937;
  border-top-left-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.dp-ai-msg.user {
  margin-left: auto;
  background: var(--dp-ai-primary);
  color: #fff;
  border-top-right-radius: 6px;
}

.dp-ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 16px 12px;
  background: #f7f7fb;
}

.dp-ai-chip {
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.dp-ai-form {
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 12px;
  background: #fff;
}

.dp-ai-inputrow {
  display: flex;
  gap: 8px;
}

.dp-ai-inputrow textarea {
  flex: 1;
  resize: none;
  min-height: 42px;
  max-height: 92px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 14px;
  padding: 10px 11px;
  font: inherit;
  outline: none;
}

.dp-ai-send {
  width: 46px;
  min-width: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--dp-ai-primary);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}


.dp-ai-privacy-note {
  margin-top: 7px;
  font-size: 10.5px;
  line-height: 1.35;
  color: #6b7280;
}

.dp-ai-privacy-note a {
  color: #4b5563;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dp-ai-lead {
  display: none;
  gap: 8px;
  flex-direction: column;
  margin-top: 10px;
}

.dp-ai-lead.is-visible {
  display: flex;
}

.dp-ai-lead input,
.dp-ai-lead textarea {
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 12px;
  padding: 9px 10px;
  font: inherit;
}

.dp-ai-lead textarea {
  min-height: 76px;
  resize: vertical;
}

.dp-ai-lead button {
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  padding: 10px;
  cursor: pointer;
}

.dp-ai-note {
  font-size: 11px;
  color: #6b7280;
  margin-top: 7px;
}

@keyframes dp-ai-idle {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  20% { transform: translateY(-3px) rotate(-1deg) scale(1.004); }
  42% { transform: translateY(0) rotate(.8deg) scale(1); }
  64% { transform: translateY(-2px) rotate(.5deg) scale(1.003); }
  82% { transform: translateY(0) rotate(-.45deg) scale(1); }
}

@keyframes dp-ai-img-life {
  0%, 100% { transform: rotate(0deg) scale(1); filter: saturate(1); }
  35% { transform: rotate(-.8deg) scale(1.006); filter: saturate(1.02); }
  62% { transform: rotate(.7deg) scale(1.004); filter: saturate(1.035); }
}

@keyframes dp-ai-eye-glint {
  0%, 68%, 100% { opacity: 0; transform: translate(0,0) scale(.65); }
  72% { opacity: .38; transform: translate(.5px,-.5px) scale(.85); }
  74% { opacity: .7; transform: translate(.5px,-.5px) scale(1.08); }
  77% { opacity: .12; transform: translate(1px,-1px) scale(.78); }
  80% { opacity: 0; transform: translate(1px,-1px) scale(.65); }
}


@keyframes dp-ai-travel-across {
  0% { transform: translateX(calc(-100vw + 140px)) translateY(0); }
  10% { transform: translateX(calc(-90vw + 140px)) translateY(-24px); }
  20% { transform: translateX(calc(-78vw + 140px)) translateY(0); }
  32% { transform: translateX(calc(-64vw + 140px)) translateY(-22px); }
  44% { transform: translateX(calc(-50vw + 140px)) translateY(0); }
  56% { transform: translateX(calc(-36vw + 140px)) translateY(-20px); }
  68% { transform: translateX(calc(-24vw + 140px)) translateY(0); }
  82% { transform: translateX(calc(-10vw + 140px)) translateY(-16px); }
  100% { transform: translateX(0) translateY(0); }
}

@media (max-width: 520px) {
  #dp-ai-chatbot-root {
    right: 14px;
    bottom: 90px !important;
  }
  .dp-ai-launcher {
    width: 78px;
    height: 78px;
  }
  .dp-ai-panel.is-open + .dp-ai-launcher {
    display: none;
  }
  .dp-ai-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    height: auto;
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
  }
  .dp-ai-panel.is-open {
    display: flex;
    top: 12px;
  }
}

@supports not (height: 100dvh) {
  @media (max-width: 520px) {
    .dp-ai-panel {
      max-height: calc(100vh - 24px - env(safe-area-inset-bottom));
    }
  }
}

.dp-ai-start {
  padding: 0 16px 12px;
  background: #f7f7fb;
}

.dp-ai-start.is-hidden {
  display: none;
}

.dp-ai-start-title {
  font-size: 13px;
  font-weight: 750;
  color: #111827;
  margin: 0 0 8px;
}

.dp-ai-start-grid {
  display: grid;
  gap: 8px;
}

.dp-ai-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(17,24,39,.10);
  background: #fff;
  border-radius: 16px;
  padding: 11px 12px;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(0,0,0,.045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dp-ai-card:hover {
  transform: translateY(-1px);
  border-color: rgba(236,90,200,.35);
  box-shadow: 0 12px 26px rgba(0,0,0,.07);
}

.dp-ai-card strong {
  display: block;
  font-size: 13px;
  color: #111827;
  line-height: 1.25;
}

.dp-ai-card span {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.dp-ai-trustbox {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dp-ai-trustbox span {
  font-size: 11px;
  color: #4b5563;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 999px;
  padding: 5px 8px;
}

.dp-ai-quick[hidden] {
  display: none !important;
}
