.button:hover {
  background-color: rgba(255,255,255,0.85);
}

.button {
  position: relative;       /* Container für absolute Inhalte */
  display: block;           /* sorgt dafür, dass sie untereinander stehen */
  width: 900px;             /* feste Breite */
  height: 120px;            /* feste Höhe */
  line-height: 120px;       /* Text vertikal mittig */
  margin: 20px auto;        /* Abstand + zentriert horizontal */
  background-color: rgba(255,255,255,0.4);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 30px;
  transition: background-color 0.3s ease;
  overflow: hidden;         /* verhindert, dass Text über den Button hinausragt */
  color: rgba(4,4,160,1);
}


.button span {
  position: absolute;   /* frei im Button beweglich */
  top: 50%;             /* vertikal mittig */
  left: 100%;           /* Start rechts außerhalb */
  transform: translateY(-50%);
  white-space: nowrap;
  opacity: 0;
  animation: scrollText 16s linear infinite;
}

.button .text1 {
  animation-delay: 0s;   /* startet sofort */
}

.button .text2 {
  animation-delay: 8s;   /* startet erst, wenn Text1 fertig ist */
}

@keyframes scrollText {
  0%   { left: 100%; opacity: 0; }
  10%  { left: 50%; transform: translate(-50%, -50%); opacity: 1; }
  40%  { left: 50%; transform: translate(-50%, -50%); opacity: 1; }
  50% { left: -100%; opacity: 0; }
  100% { left: -100%; opacity: 0; }
}

/* Container: steuert die Gruppe */
.kontakt-anmeldung-buttons {
  display: flex;
  justify-content: space-between;
  margin: 20px auto;
  width: 900px;   /* Gesamtbreite für beide Buttons */
  gap: 20px; /* Abstand zwischen Buttons */
}

/* Buttons: steuern sich selbst */
.kontakt-anmeldung-buttons .button {
  width: 300px;
  height: 120px;
  line-height: 120px;
}