/* shortcut Customer Service & Animated Cute Robot Chatbot */
.shortcut-service {
  --service-accent: var(--accent, var(--green, #009b36));
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 100;
  font-family: Manrope, Arial, sans-serif;
}

.service-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.service-launcher {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--service-accent);
  box-shadow: 0 14px 34px rgba(25, 32, 27, .24), 0 2px 6px rgba(0,0,0,.08);
  color: #fff;
  cursor: pointer;
  font: 800 13px/1 Manrope, Arial, sans-serif;
  transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease;
  position: relative;
}

.service-launcher:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 40px rgba(25, 32, 27, .32), 0 4px 10px rgba(0,0,0,.12);
}

.service-launcher:focus-visible, .service-whatsapp:focus-visible, .service-close:focus-visible, .service-choice:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* CUTE ANIMATED ROBOT */
.service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  position: relative;
}

.cute-robot {
  width: 46px;
  height: 46px;
  display: block;
  /* kein schweben */ transform: none;
  transform-origin: center bottom;
}

.service-launcher:hover .cute-robot {
  animation: robot-happy 0.8s ease-in-out infinite alternate;
}

.robot-antenna {
  transform-origin: 18px 9px;
  animation: antenna-wiggle 3s ease-in-out infinite;
}

.antenna-ball {
  animation: antenna-pulse 2s ease-in-out infinite;
}

.robot-eyes {
  transform-origin: center 16.5px;
  animation: robot-blink 4.2s infinite;
}

/* KEYFRAME ANIMATIONS */
@keyframes robot-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-2.5px) rotate(1.2deg);
  }
}

@keyframes robot-happy {
  0% {
    transform: translateY(-2px) rotate(-3deg) scale(1.04);
  }
  100% {
    transform: translateY(-4px) rotate(3deg) scale(1.04);
  }
}

@keyframes robot-blink {
  0%, 94%, 98%, 100% {
    transform: scaleY(1);
  }
  96% {
    transform: scaleY(0.1);
  }
}

@keyframes antenna-wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-6deg);
  }
  75% {
    transform: rotate(6deg);
  }
}

@keyframes antenna-pulse {
  0%, 100% {
    opacity: 0.9;
    filter: drop-shadow(0 0 1px rgba(255,255,255,0.8));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(255,255,255,1));
  }
}

.service-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 13px;
  border: 0;
  border-radius: 999px;
  background: #25d366;
  box-shadow: 0 12px 28px rgba(25, 32, 27, .2);
  color: #062c14;
  cursor: pointer;
  font: 800 13px/1 Manrope, Arial, sans-serif;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-whatsapp > span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  font-size: 16px;
}

.service-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(25, 32, 27, .26);
}

.service-panel {
  position: absolute;
  right: 0;
  bottom: 130px;
  display: none;
  width: min(370px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(25, 32, 27, .12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(18, 28, 21, .26);
}

.shortcut-service.is-open .service-panel {
  display: block;
  animation: service-in .22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes service-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--service-accent);
  color: #fff;
}

.service-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

.service-avatar .cute-robot {
  width: 28px;
  height: 28px;
}

.service-top small {
  display: block;
  margin-bottom: 2px;
  opacity: .82;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.service-top strong {
  font: 700 19px/1.1 "Space Grotesk", sans-serif;
  letter-spacing: -.04em;
}

.service-close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background .18s;
}

.service-close:hover {
  background: rgba(255,255,255,.3);
}

.service-body {
  padding: 18px;
  background: #f6f7f4;
}

.service-message {
  max-width: 295px;
  margin: 0 0 12px;
  padding: 13px 15px;
  border-radius: 4px 14px 14px 14px;
  background: #fff;
  color: #282b28;
  box-shadow: 0 2px 10px rgba(24, 32, 26, .05);
  font-size: 13.5px;
  line-height: 1.55;
}

.service-message--user {
  margin-left: auto;
  border-radius: 14px 4px 14px 14px;
  background: color-mix(in srgb, var(--service-accent) 15%, white);
}

.service-choices {
  display: grid;
  gap: 9px;
}

.service-choice {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #dfdeda;
  border-radius: 8px;
  background: #fff;
  color: #282b28;
  cursor: pointer;
  font: 700 13.5px/1.3 "Space Grotesk", sans-serif;
  letter-spacing: -.02em;
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-choice:hover {
  border-color: var(--service-accent);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.service-choice span {
  color: var(--service-accent);
  font-size: 18px;
  line-height: 1;
}

.service-note {
  margin: 14px 2px 0;
  color: #737771;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 540px) {
  .shortcut-service { right: 15px; bottom: 15px; }
  .service-launcher { width: 52px; height: 52px; }
  .service-whatsapp { width: 52px; height: 52px; min-height: 52px; justify-content: center; padding: 0; }
  .service-whatsapp > span:last-child { display: none; }
  .service-panel { bottom: 122px; }
}


/* ROBOT ANIMATIONS: AUGEN & MUND OHNE SCHWEBEN */
.cute-robot {
  animation: none !important;
  transform: none !important;
}

.robot-eyes {
  transform-origin: center 16.5px;
  animation: robot-blink-look 3.8s ease-in-out infinite !important;
}

@keyframes robot-blink-look {
  0%, 88%, 94%, 100% {
    transform: scaleY(1) translateX(0);
  }
  90% {
    transform: scaleY(0.1) translateX(0);
  }
  30% {
    transform: scaleY(1) translateX(-1.2px);
  }
  60% {
    transform: scaleY(1) translateX(1.2px);
  }
}

.robot-mouth {
  transform-origin: center 20.5px;
  animation: robot-talk 2.4s ease-in-out infinite !important;
}

@keyframes robot-talk {
  0%, 100% {
    transform: scaleY(1);
    stroke-width: 1.3;
  }
  40% {
    transform: scaleY(1.4) scaleX(1.1);
    stroke-width: 1.6;
  }
  60% {
    transform: scaleY(0.8) scaleX(0.9);
    stroke-width: 1.2;
  }
  80% {
    transform: scaleY(1.3) scaleX(1.15);
    stroke-width: 1.5;
  }
}

/* SPEECH BUBBLE TOOLTIP: KANN ICH DIR HELFEN? */
.service-speech-bubble {
  position: absolute;
  right: 84px;
  top: 10px;
  bottom: auto !important;
  background: #ffffff;
  color: #173821;
  padding: 10px 16px 10px 14px;
  border-radius: 18px 18px 4px 18px;
  font: 700 13.5px/1.3 Manrope, sans-serif;
  box-shadow: 0 10px 30px rgba(15, 35, 20, 0.2), 0 2px 6px rgba(0,0,0,0.06);
  border: 1.5px solid #c2dec7;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 105;
  opacity: 0;
  transform: translateX(10px) scale(0.95);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-speech-bubble.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.service-speech-bubble:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #3b8852;
  box-shadow: 0 14px 35px rgba(15, 35, 20, 0.26);
}

.bubble-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bubble-close {
  background: none;
  border: 0;
  color: #94a397;
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color .2s;
}
.bubble-close:hover {
  color: #1a4224;
}


.service-speech-bubble::after {
  content: "" !important;
  position: absolute !important;
  right: -7px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border-width: 7px 0 7px 7px !important;
  border-style: solid !important;
  border-color: transparent transparent transparent #ffffff !important;
  display: block !important;
}
