/* ── LiveAvatar-Widget (Ronny Wagner) ─────────────────────────────────
   Kompaktes Badge (analog a11y-widget.css), lädt die eigentliche Box erst
   bei Klick nach — die 300px-Box lief auf Laptop/Tablet/Handy vorher immer
   sichtbar mit und überdeckte Inhalte.

   Stapelt sich per --a11y-badge-height (a11y-widget.js) über dem
   Barrierefreiheit-Badge, und die Box wiederum per --liveavatar-badge-height
   (liveavatar-widget.js) über diesem Badge — beide gemessen, nicht geraten,
   damit sich Zustands-/Breakpoint-Änderungen nicht wieder überlappen. */

.liveavatar-badge {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  bottom: calc(clamp(12px, 2vw, 24px) + var(--a11y-badge-height, 54px) + 12px);
  z-index: 850;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-dark, #2D2D2B);
  color: var(--c-white, #fff);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 12px 18px 12px 14px;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: var(--fs-sm, 14px);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .liveavatar-badge:hover { transform: translateY(-2px); }
}
.liveavatar-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-gold, linear-gradient(158.2deg, #FDE298 14.29%, #D29F13 97.14%));
  color: var(--c-ink, #1a1914);
  flex-shrink: 0;
}
.liveavatar-badge__icon svg {
  width: 13px;
  height: 13px;
}

.liveavatar-box {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  bottom: calc(clamp(12px, 2vw, 24px) + var(--a11y-badge-height, 54px) + 12px + var(--liveavatar-badge-height, 46px) + 12px);
  z-index: 850;
  width: 300px;
  height: 166px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.liveavatar-box[hidden] { display: none; }
.liveavatar-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.liveavatar-box__close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .liveavatar-box__close:hover { background: rgba(0, 0, 0, 0.75); }
}

@media (max-width: 768px) {
  .liveavatar-box {
    width: 300px;
    height: 235px;
    left: 16px;
    border-radius: 14px;
  }
}

/* Mobil: nur Icon, kein Schriftzug (wie beim Barrierefreiheit-Badge) */
@media (max-width: 480px) {
  .liveavatar-badge__label { display: none; }
  .liveavatar-badge {
    padding: 12px;
    border-radius: 50%;
  }
}
