/* Klatsch-Zeile – läuft als Einzeiler im Fundgrube-iframe */
:root {
  --green-dark: #1b5e20;
  --green: #2e7d32;
  --green-mid: #43a047;
  --green-light: #e8f5e9;
  --green-pale: #f1f8e9;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  overflow: hidden;
}

/* Außenabstand oben/unten (Standard 5px, per data-abstand einstellbar) */
.bw {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.bw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 10px;
  background: #fff;
  color: var(--green-dark);
  border: 1px solid var(--green-mid);
  border-radius: 5px;
  font: inherit;
  font-size: 16px; /* iOS-Zoom-Schutz */
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, border-color .15s;
}

.bw-btn:hover { background: var(--green-pale); }
.bw-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.bw-btn:active { background: var(--green-light); }

.bw-icon {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.bw-count {
  display: inline-block;
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}

/* Nach dem Klatschen: sanft grün hinterlegt, nicht mehr klickbar */
.bw-btn.bw-done {
  background: var(--green-light);
  border-color: var(--green);
  cursor: default;
}

.bw-msg {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  opacity: 0;
  transition: opacity .25s;
  white-space: nowrap;
}
.bw-msg.show { opacity: 1; }

/* --- Animation beim Klick --- */
.bw-btn.bw-pop .bw-icon { animation: bw-clap .55s ease-out; }
.bw-count.bw-bump       { animation: bw-bump .4s ease-out; }

@keyframes bw-clap {
  0%   { transform: scale(1) rotate(0); }
  20%  { transform: scale(1.35) rotate(-14deg); }
  40%  { transform: scale(1.2) rotate(12deg); }
  60%  { transform: scale(1.3) rotate(-8deg); }
  80%  { transform: scale(1.1) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes bw-bump {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bw-btn.bw-pop .bw-icon,
  .bw-count.bw-bump { animation: none; }
  .bw-msg { transition: none; }
}
