.footer {
  position: fixed;
  bottom: 0;
  width: 100vw;
  height: 12vh;
  padding: 1vh 2vw;
  background-color: #d4af37 !important; /* Edles Gold */
  color: #121212;
  font-size: 0.9rem;
  box-sizing: border-box;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top-left-radius: 1em;         /* Runde Ecken oben */
  border-top-right-radius: 1em;
  box-shadow: 0 -0.5vh 1vh rgba(0, 0, 0, 0.4); /* Sanfter Schlagschatten nach oben */
}

.footer-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0.4vh;
  color: #121212;
  line-height: 1.3;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.85rem;
  font-weight: bold;
  color: #121212;
  margin: 0 0 0.3vh 0;
}

.amount-left {
  margin-left: 1vw;
}

.amount-right {
  margin-right: 1vw;
}

.progress-bar-container {
  width: 100%;
  height: 2.2vh;
  background-color: #292929;       /* Etwas heller für Kontrast */
  border-radius: 1.5vh;
  overflow: hidden;
  box-shadow: inset 0 0.3vh 0.6vh rgba(0, 0, 0, 0.5); /* Innerer Schatten */
}

.progress-bar {
  height: 100%;
  width: 30%;
  background-color: #00c853;       /* Klarer Grünton für Fortschritt */
  transition: width 0.5s ease-in-out;
  border-radius: 1.5vh 0 0 1.5vh;   /* Abgerundeter Anfang */
}

/* Neue Struktur für aktuellen Betrag & Ziel */
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0.4vh;
  padding: 0 1vw;
  color: #121212;
}

/* Fortschritts-Prozentzahl zentriert über dem Balken */
#progress-percent {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-weight: bold;
  font-size: 0.85rem;
  pointer-events: none;
}

/* Neue Containerklasse, ersetzt .footer-text */
.progress-info {
  margin-top: 0.5vh;
  text-align: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: #121212;
}


/* Fortschritts-Balkenposition mit Prozentanzeige */
.progress-bar-container {
  width: 100%;
  height: 2.2vh;
  background-color: #292929;
  border-radius: 1.5vh;
  overflow: hidden;
  box-shadow: inset 0 0.3vh 0.6vh rgba(0, 0, 0, 0.5);
  position: relative; /* für #progress-percent */
}

/* Fortschrittsanzeige farbig */
#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #00c853, #64dd17); /* grüner Verlauf */
  transition: width 0.5s ease-in-out;
  border-radius: 1.5vh 0 0 1.5vh;
}

@media (max-width: 768px) {
  .footer {
    height: 7vh; /* oder z. B. 7vh für noch weniger Höhe */
    padding: 0.5vh 2vw;
    gap: 0.3vh;
  }

  .footer-text,
  .progress-header,
  .progress-labels,
  .progress-info {
    font-size: 0.6rem;
    gap: 0.1em;
  }

  .progress-bar-container {
    height: 0.6vh;
  }

  #progress-percent {
    font-size: 0.6rem;
  }
}
