/* Seite selbst - ganz oben aligniert */
.page[data-name="events"] .page-content {
    margin: 0 !important;
    padding: 0 0 140px 0 !important; /* mehr Platz unten */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #000000; /* Schwarzer Hintergrund wie Classes */
  }
  
  /* Container für die Karten */
  .events-list {
    padding: 20px;
    background-color: #000000;
  }
  
  /* Jede Event-Karte */
  .event-card {
    position: relative;
    width: 80%;
    margin: 10px auto;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.3s;
    background-color: #111111; /* Dunkler Hintergrund wie Classes */
  }
  .event-card:hover {
    transform: scale(1.02);
  }
  
  /* Oberer Titelbereich (ohne Bild) */
  .event-content {
    height: auto;
    min-height: 80px;
    position: relative;
    border-radius: 7px;
    overflow: hidden;
    background-color: #111111;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Event Info Bereich */
  .card-overlay {
    position: relative;
    background: transparent;
    color: #ffffff;
    padding: 0;
    border-radius: 4px;
    width: 100%;
    text-align: center;
  }
  .card-overlay .card-title {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #c8a165;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .card-overlay .card-date,
  .card-overlay .card-time {
    margin: 5px 0;
    font-size: 1em;
    color: #cccccc;
  }
  
  /* Ausklappbarer Detailbereich */
  .event-details {
    display: none;
    padding: 20px;
    background-color: #000000;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    border-top: 1px solid #333;
    position: relative;
  }
  .event-details::before {
    content: "";
    display: block;
    width: 50%;
    border-top: 1px solid #333;
    margin: 0 auto 10px;
  }
  
  /* Beispiel-Inhalt */
  .event-dates {
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #cccccc;
  }
  .event-description {
    font-size: 0.9em;
    color: #999999;
  }
  
  /* Geöffnete Karte etwas größer */
  .event-card.expanded {
    transform: scale(1.05);
  }
  
  /* Kleinere Hilfsstyles */
  strong {
    font-weight: bold;
    color: #c8a165;
  }
  
  /* Popup so anpassen, dass es ganz oben ist */
.popup.modal-in {
    top: 0;          /* Ganz oben */
    bottom: 0;       /* Ganz unten */
    border-radius: 0;
    overflow: auto;
}
  
/* Blurry Hintergrund (Backdrop) für das Popup */
.popup-backdrop {
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.3);
}

/* Schwarzer Header mit goldenem Titel */
.events-header {
  background-color: #000000;
  margin: 0;
  padding: 30px 20px;
  width: 100%;
  text-align: center;
  border-bottom: 2px solid #c8a165;
  flex-shrink: 0;
  }
  
.events-header h1 {
  color: #c8a165;
  font-size: 2.5em;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  }
  