@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;700&display=swap');

#baumpaten-widget {
  width: 100%;
  max-width: 390px;
  margin: 44px auto;
  background: linear-gradient(115deg, #ecf5f6 0 40%, #fafdfe 100%), url('backgroundwald.svg') center center no-repeat;
  background-size: cover;
  border-radius: 24px;
  box-shadow: 0 6px 24px #a0b5ca17, 0 1px 0 #d1e7e633;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.bp-emoji-rain {
  pointer-events: none;
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  z-index: 11;
  overflow: visible;
}

.bp-card {
  background: rgba(255,255,255,0.58);
  backdrop-filter: blur(20px) saturate(160%);
  border-radius: 15px;
  box-shadow: 0 3px 22px 0 #b4d2e355, 0 0.5px 0 #a5b4fc33;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 97%;
  margin: 27px 0;
  padding: 26px 2vw 22px 2vw;
  position: relative;
  transition: box-shadow .18s, transform .14s;
  cursor: pointer;
  z-index: 2;
}

.bp-superheadline {
  font-family: 'Assistant', system-ui, Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #164424;
  text-align: center;
  margin-bottom: 11px;
  letter-spacing: 0.01em;
  background: none;
  line-height: 1.1;
}

.bp-subheadline {
  font-family: 'Assistant', system-ui, Arial, sans-serif;
  font-size: 1.01rem;
  color: #232e25;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.22;
  font-weight: 500;
}

.bp-subbottom {
  font-family: 'Assistant', system-ui, Arial, sans-serif;
  font-size: 1.01rem;
  color: #232e25;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 9px;
  line-height: 1.22;
  font-weight: 500;
}

.bp-logo-bottom {
  width: 135px;
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.bp-logo-main {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.bp-card:hover, .bp-card.pulse {
  box-shadow: 0 18px 52px #b4d2e375, 0 0 0 7px #a5b4fc18;
  transform: scale(1.016) perspective(570px) rotateX(1.7deg);
  animation: bp-pulse 0.36s cubic-bezier(.77,0,.18,1.15);
}
@keyframes bp-pulse {
  0%   { filter: brightness(1);}
  38%  { filter: brightness(1.06) drop-shadow(0 0 7px #a5b4fc77);}
  65%  { filter: brightness(1.02);}
  100% { filter: brightness(1);}
}

.bp-counter-row {
  display: flex;
  gap: 11px;
  margin-bottom: 0;
  justify-content: center;
  align-items: end;
  margin-top: 4px;
  width: 100%;
}

.bp-flip-digit {
  background: #ecf9f3 !important;
  border-radius: 10px;
  width: 54px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 37px;
  color: #164424;
  box-shadow: 0 1px 0 #a5b4fc40, 0 4px 11px #90b4e008;
  font-weight: 700;
  font-family: 'Assistant', system-ui, Arial, sans-serif;
  position: relative;
  text-align: center;
  user-select: none;
  border: 1.2px solid #b2e9d8;
  transition: box-shadow 0.12s, filter 0.12s;
  z-index: 1;
  overflow: hidden;
}
.bp-card:hover .bp-flip-digit {
  filter: brightness(1.06) drop-shadow(0 1px 5px #89f0e626);
  box-shadow: 0 5px 0 #a5b4fc40, 0 8px 18px #a5b4fc14;
}
.bp-flip-digit:after {
  content: "";
  display: block;
  position: absolute;
  left: 31%;
  right: 31%;
  bottom: 4px;
  height: 2px;
  border-radius: 1.5px;
  background: #a5b4fc;
  opacity: 0.18;
}
.bp-digit-inner {
  font-size: inherit;
  font-weight: inherit;
  color: #164424;
  z-index: 2;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px #b6f1ff12;
}
.bp-flip {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  animation: bp-flipUp 0.18s cubic-bezier(.7,1.3,.5,1.2);
  background: #ecf9f3 !important;
  color: #164424;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 37px;
  z-index: 10;
  font-weight: 700;
  font-family: 'Assistant', system-ui, Arial, sans-serif;
}
@keyframes bp-flipUp {
  0%   { transform: rotateX(0deg) scaleY(1.04); opacity: 1;}
  48%  { transform: rotateX(-54deg) scaleY(0.99); opacity: 1;}
  100% { transform: rotateX(-90deg) scaleY(0.93); opacity: 0;}
}

.bp-logo-rain {
  width: 32px !important;
  height: 32px !important;
  filter: drop-shadow(0 0 2px #1114) blur(.5px);
  opacity: 0.8;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 12;
}
