:root{
  --ente-offset: 0px;
}

/* 🦆 fix in der Ecke */
#ente-bubble {
  position: fixed;
  right: 0;
  bottom: var(--ente-offset);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 0;
  margin: 0;
  pointer-events: none; /* nur Kinder klickbar */
}

/* Close-Button absolut über der Ente */
#ente-close {
  position: fixed;
  right: 10px;
  bottom: calc(250px + var(--ente-offset));          /* über dem Kopf der Ente */
  width: 30px;
  height: 30px;
  border: 1px solid #3a3d45;
  background: #14161c;
  color: #ddd;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  z-index: 100000;         /* <- ganz oben! */
  transition: background 0.2s ease;
}
#ente-close:hover {
  background: #1d2230;
}


/* 🦆 Ente */
#ente-avatar {
  width: 240px;
  height: auto;
  display: block;          /* verhindert Baseline-Lücke */
  vertical-align: bottom;
  transform: translateY(2px);
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.6));
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
}

/* 💬 Sprechblase links & höher */
.bubble {
  background: #1b1d22;
  border: 2px solid #2f323a;
  color: #f3f3f3;
  font-family: 'News Cycle', sans-serif;
  padding: 16px 20px;
  border-radius: 18px;
  font-size: 1.1rem;
  max-width: 320px;
  position: relative;
  opacity: 0.95;
  order: -1;
  margin-bottom: 140px; /* über der Ente */
  margin-right: 8px;
  pointer-events: auto;
}


/* Fade-out Zustände */
#ente-bubble.fade-out {
  transition: opacity 1.2s ease, transform 1.2s ease;
  opacity: 0;
  transform: translateY(20px);
}

/* 📱 Responsive Stufen */
@media (max-width: 900px) {
  #ente-avatar { width: 180px; }
  #ente-close { bottom: calc(180px + var(--ente-offset)); }
  .bubble     { font-size: 1rem; max-width: 250px; margin-bottom: 120px; }
  .bubble::after { bottom: 60px; }
}
@media (max-width: 600px) {
  #ente-avatar { width: 140px; }
  #ente-close { bottom: calc(145px + var(--ente-offset)); }
  .bubble     { font-size: 0.9rem; max-width: 200px; padding: 12px 14px; margin-bottom: 100px; }
  .bubble::after { bottom: 50px; right: -12px; }
}
/* ganz klein: automatisch ausblenden */
@media (max-width: 360px) {
  #ente-bubble { display: none !important; }
}

/* Buchung: Ente ?ber der Bottom-Bar anheben */
