/* Grundlayout */
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: 'Rubik', sans-serif;
  color: #7f1933;
}

/* Headline größer */
.display-5 {
  font-family: 'Rubik', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #7f1933;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Popup Box */
.popup-box {
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 380px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(-10px);
  animation: popupIn 0.4s ease forwards;

  /* NEU: sorgt für perfekte Zentrierung aller Elemente */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fließtext */
.popup-box p {
  color: #333333;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Button: Zu den Terminen */
.popup-btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.7rem 1.4rem;
  background: #7f1933;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

/* NEU: grauer Hover statt rot */
.popup-btn:hover {
  background: #e0e0e0;
  color: #7f1933;
}

/* Schließen-Button */
.popup-close {
  margin-top: 1rem;
  background: transparent;
  border: 1px solid #7f1933;
  color: #7f1933;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.popup-close:hover {
  background: #7f1933;
  color: #ffffff;
}

/* Animationen */
@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
