/* Ko-fi chip - Breite wird per Web Animations API animiert (JS) */
.kofi-support {
  --kofi-accent: #b8897e;
  --kofi-accent-soft: rgba(184, 137, 126, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  min-height: 1.9375rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(184, 137, 126, 0.38);
  border-radius: 999px;
  background: var(--kofi-accent-soft);
  color: #d4b5ad;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: middle;
  transform-origin: left center;
}

.kofi-support--motion-squeeze {
  animation: kofi-squeeze-pulse 1.15s cubic-bezier(0.55, 0.03, 0.85, 0.22);
}

.kofi-support--motion-stretch {
  animation: kofi-stretch-pulse 1.25s cubic-bezier(0.22, 1.28, 0.36, 1);
}

@keyframes kofi-squeeze-pulse {
  0% {
    transform: scale(1, 1);
  }
  35% {
    transform: scale(0.96, 1.07);
  }
  100% {
    transform: scale(1, 1);
  }
}

@keyframes kofi-stretch-pulse {
  0% {
    transform: scale(0.9, 1.1);
  }
  60% {
    transform: scale(1.04, 0.97);
  }
  100% {
    transform: scale(1, 1);
  }
}

.kofi-support:hover,
.kofi-support:focus-visible {
  color: #e8cfc8;
  background: rgba(184, 137, 126, 0.22);
  border-color: rgba(184, 137, 126, 0.55);
  text-decoration: none;
}

.kofi-support:focus-visible {
  outline: 2px solid rgba(184, 137, 126, 0.45);
  outline-offset: 2px;
}

.kofi-support__track {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.kofi-support--compact {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.kofi-support--compact .kofi-support__track {
  gap: 0;
}

.kofi-support__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  font-size: 1rem;
  line-height: 1;
  color: var(--kofi-accent);
}

.kofi-support:hover .kofi-support__icon,
.kofi-support:focus-visible .kofi-support__icon {
  color: #d4a99f;
}

.kofi-support__cup {
  display: block;
  font-size: inherit;
  line-height: 1;
}

.kofi-support__label {
  display: inline-block;
  opacity: 1;
}

.kofi-support--compact .kofi-support__label {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .kofi-support--motion-squeeze,
  .kofi-support--motion-stretch {
    animation: none;
  }
}
