.sbo-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 268px);
    background-image: url('/images/static/Orchester.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: sboHeroBg 1.2s ease 0.6s forwards;
}

.sbo-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    animation: sboHeroOverlay 2.0s ease forwards; /* sofort, aber langsamer */
}

.sbo-hero-text {
    position: relative;
    color: #fff;
    font-size: 3rem;
    text-align: center;
    z-index: 2;
    margin: 0;
    opacity: 0;
    line-height: 1.2;
    animation: sboHeroText 1.2s ease 1.2s forwards;
}

.sbo-hero-beim {
    font-size: 1.8rem;
}

/* Animationen */
@keyframes sboHeroOverlay {
    from { background: rgba(0,0,0,0); }
    to   { background: rgba(0,0,0,0.35); }
}

@keyframes sboHeroText {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes sboHeroBg {
    from { filter: brightness(1); }
    to   { filter: brightness(0.9); }
}


@media (min-width: 992px) {
    .logo-image {
        margin-top: 1em;
        margin-bottom: 1em;
    }
}

.form-group.row {
    margin-bottom: 0.5em;
}

.vorstand * td {
    padding-right: 1em;
    padding-bottom: 1em;
}

/* Grosses Menu ab 1200px ausblenden */
@media (max-width: 1200px) {
    .sp-megamenu-parent {
        display: none !important;
    }
}

/* Burger Menu ab 1200px ausblenden */
@media (min-width: 1200px) {
    .ms-3 {
        display: none !important;
    }
}





/* Timeline */
/* ---------------------------------------------------------
   1) Resizable Columns deaktivieren (zerstört sonst das Layout)
--------------------------------------------------------- */
#eventlist .rc-handle-container,
#eventlist .rc-handle {
  display: none !important;
}

/* ---------------------------------------------------------
   2) Inline-Widths der Tabelle neutralisieren
--------------------------------------------------------- */
#eventlist table th,
#eventlist table td {
  width: auto !important;
}

/* ---------------------------------------------------------
   3) Tabelle in Block-Layout umwandeln (Basis für Timeline)
--------------------------------------------------------- */
#eventlist table.eventlist {
  display: block !important;
  width: 100% !important;
  max-width: 900px;
  margin: 0 auto;
  border: none;
  border-collapse: collapse;
}

#eventlist table.eventlist thead {
  display: none;
}

#eventlist table.eventlist tbody {
  display: block !important;
  position: relative;
  margin: 0 auto;
  padding: 0;
}

/* ---------------------------------------------------------
   4) Mittellinie der Timeline
--------------------------------------------------------- */
#eventlist table.eventlist tbody::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: #252525;
  transform: translateX(-50%);
  z-index: 1;
}

/* ---------------------------------------------------------
   5) Timeline Cards (aus <tr>)
--------------------------------------------------------- */
#eventlist table.eventlist tbody tr {
  display: flex;
  flex-direction: column;
  width: 45%;
  padding: 15px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  position: relative;
  margin: 30px 0;
  z-index: 2;
  border-style: none;
}

/* Punkt auf der Mittellinie */
#eventlist table.eventlist tbody tr::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 4px solid #252525;
  border-radius: 50%;
  z-index: 3;
}

@media (min-width: 1200px) {
  /* Linie von Punkt zur Karte – linke Karten */
  #eventlist table.eventlist tbody tr:nth-child(odd)::after {
    content: "";
    position: absolute;
    top: 28px; /* exakt mittig zum Punkt */
    right: -54px; /* gleiche Position wie der Punkt */
    width: 54px; /* Länge bis zur Mittellinie */
    height: 4px;
    background: #252525;
    z-index: 2;
  }

  /* Linie von Punkt zur Karte – rechte Karten */
  #eventlist table.eventlist tbody tr:nth-child(even)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: -54px;
    width: 54px;
    height: 4px;
    background: #252525;
    z-index: 2;
  }
}

@media (max-width: 1200px) {
  /* Linie von Punkt zur Karte – rechte Karten */
  #eventlist table.eventlist tbody tr::after {
    content: "";
    position: absolute;
    top: 28px;
    left: -20px;
    width: 20px;
    height: 4px;
    background: #252525;
    z-index: 2;
  }
}


/* ---------------------------------------------------------
   6) Links/Rechts alternieren
--------------------------------------------------------- */
#eventlist table.eventlist tbody tr:nth-child(odd) {
  margin-right: auto;
}

#eventlist table.eventlist tbody tr:nth-child(odd)::before {
  right: -54px;
}

#eventlist table.eventlist tbody tr:nth-child(even) {
  margin-left: auto;
}

#eventlist table.eventlist tbody tr:nth-child(even)::before {
  left: -54px;
}

/* ---------------------------------------------------------
   7) Inhalt der Cards
--------------------------------------------------------- */
#eventlist table.eventlist td {
  border: none;
  padding: 4px 0;
}

#eventlist table.eventlist td[data-label="Veranstaltung"] {
  font-size: 1.2em;
  font-weight: bold;
}

#eventlist table.eventlist td[data-label="Datum"] {
  color: #444;
}

#eventlist table.eventlist td[data-label="Uhrzeit"] {
  color: #666;
  font-style: italic;
}

#eventlist table.eventlist td[data-label="Ort"] {
  font-weight: 500;
}

/* ---------------------------------------------------------
   8) Mobile Ansicht
--------------------------------------------------------- */
@media (max-width: 1200px) {
  #eventlist table.eventlist tbody::before {
    left: 20px;
  }

  #eventlist table.eventlist tbody tr {
    width: calc(100% - 40px);
    margin-left: 40px !important;
    margin-right: 0 !important;
  }

  #eventlist table.eventlist tbody tr::before {
    left: -30px !important;
    right: auto !important;
  }
}

/* ---------------------------------------------------------
   9) Timeline-Einträge nacheinander erscheinen lassen
--------------------------------------------------------- */

#eventlist table.eventlist tbody tr {
  opacity: 0;
  transform: translateY(20px);
  animation: timelineFadeIn 0.6s ease-out forwards;
}

/* Verzögerung pro Eintrag */
#eventlist table.eventlist tbody tr:nth-child(1) { animation-delay: 0.25s; }
#eventlist table.eventlist tbody tr:nth-child(2) { animation-delay: 0.4s; }
#eventlist table.eventlist tbody tr:nth-child(3) { animation-delay: 0.55s; }
#eventlist table.eventlist tbody tr:nth-child(4) { animation-delay: 0.7s; }
#eventlist table.eventlist tbody tr:nth-child(5) { animation-delay: 0.85s; }
#eventlist table.eventlist tbody tr:nth-child(6) { animation-delay: 1.0s; }
#eventlist table.eventlist tbody tr:nth-child(7) { animation-delay: 1.15s; }
#eventlist table.eventlist tbody tr:nth-child(8) { animation-delay: 1.3s; }
#eventlist table.eventlist tbody tr:nth-child(9) { animation-delay: 1.45s; }
#eventlist table.eventlist tbody tr:nth-child(10) { animation-delay: 1.6s; }
/* beliebig erweiterbar */

@keyframes timelineFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
