.foerdergelder-bar {
  position: relative;
  width: 100%;
  height: 20px;
  background: var(--bar-color, #47a3a1);
  margin: 70px 0;
}

.foerdergelder-bar .bp {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
}

/* Marker */
.bp-marker {
  display: block;
  width: 4px;
  height: 45px;
  background: #47a3a1;
  margin: -12px auto 0;
}

/* Betrag oben */
.bp-amount {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #00000066;
}

/* Jahr unten */
.bp-year {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Gesamtsumme rechts */
.bp-total {
  transform: translateX(-100%);
}

.bp-total .bp-amount {
  font-weight: 600;
  color: #000;
}

/*-------------------------------------------------*/
.foerdergelder-bar {
  position: relative;
  width: 100%;
  height: 20px;
  background: var(--bar-color, #47a3a1);
  margin: 70px 0;

  /* Animation */
  transform: scaleX(0);
  transform-origin: left;
  animation: fundingGrow 1.2s ease-out forwards;
}

@keyframes fundingGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.foerdergelder-bar .bp {
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
  animation-delay: 1.1s; /* kurz nach Balken */
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
/*-------------------------------------------------*/

@media (max-width: 768px) {
  .foerdergelder-bar {
    width: 6px;
    height: 100%;
    min-height: 300px;
    margin: 40px 0;
    transform: scaleY(0);
    transform-origin: top;
    animation: fundingGrowVertical 1s ease-out forwards;
  }

  @keyframes fundingGrowVertical {
    to {
      transform: scaleY(1);
    }
  }

  .foerdergelder-bar .bp {
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
  }

  .bp-marker {
    width: 18px;
    height: 3px;
    margin: 0;
  }

  .bp-amount {
    position: absolute;
    left: 30px;
    top: -10px;
    transform: none;
    font-size: 15px;
    color: #000;
  }

  .bp-year {
    position: absolute;
    left: 30px;
    top: 12px;
    transform: none;
    font-size: 13px;
    opacity: 0.7;
  }

  .bp-total {
    transform: translateX(-50%);
  }

  .bp-total .bp-amount {
    font-weight: 700;
  }
}
