.event-table-wrapper {
  width: 100%;
  overflow-x: auto;
  font-family: system-ui, sans-serif;
  box-sizing: border-box;
  margin-bottom: 2rem;
  border: 2px solid #ddd;
   background: rgba(0, 0, 0, 0.03);
}

.event-table-header,
.event-table-row {
  display: flex;
  min-width: 600px;
  padding: 0.75rem 1rem;
  align-items: center;
  transition: background 0.2s ease-in-out;
  border-bottom: 1px solid #ddd;
}

.event-table-header {
  font-weight: bold;
  color: #333;
  background: #f5f5f5;
}

.event-table-row:hover {
  background-color: #ffe5e5;
}

.event-cell {
  flex: 1;
  padding: 0.3rem 0.5rem;
  word-break: break-word;
  box-sizing: border-box;
}

.event-date { flex: 1.5; }
.event-time { flex: 1; }
.event-title { flex: 2; }
.event-location { flex: 2; }
.event-action {
  flex: 1;
  text-align: right;
}

.event-location a {
  color: #333;
  text-decoration: underline;
}

.event-button {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #a6111d;
  background: none;
  color: #a6111d;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.event-button:hover {
  background: #a6111d;
  color: #fff;
}

@media (max-width: 768px) {
  .event-table-header {
    display: none;
  }

  .event-table-row {
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #eee;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
  }

  .event-cell {
    width: 100%;
    padding: 0.2rem 0;
  }

  .event-action {
    text-align: left;
    margin-top: 0.5rem;
  }
}

/* Darkmode   */

/* ----------------------------
   DARKMODE (überarbeitet)
---------------------------- */

.event-table-wrapper.darkmode {
   background: rgba(0, 0, 0, 0);  /*  transparenter Hintergrund */
   border: 1px solid #ddd;
  color: #ffffff;
}

.darkmode .event-table-header {
  background: rgba(0, 0, 0, 0);
  color: #ffffff;
}

.darkmode .event-table-row {
  background: rgba(0, 0, 0, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.darkmode .event-table-row:hover {
  background-color: rgba(255, 0, 0, 0.08); /* leicht rötlich bei Hover */
}

.darkmode .event-cell a {
  color: #ffffff;
  text-decoration: underline;
}

.darkmode .event-button {
  border-color: #a6111d;
  color: #a6111d;
}

.darkmode .event-button:hover {
  background: #a6111d;
  color: #fff;
}

@media (max-width: 768px) {
  .darkmode .event-table-row {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
  }
}

.event-pdf {
  flex: 1;
  text-align: right;

.event-cell.event-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;  /* Buttons vertikal zentrieren */
  gap: 0.5rem;          /* gleichmäßigen Abstand zwischen den Buttons */
  text-align: right;
}
.event-table-row.month-separator {
  border-top: 3px solid #a6111d;
  margin-top: 1rem;
}

.darkmode .event-table-row.month-separator {
  border-top: 3px solid rgba(255, 255, 255, 0.4);
}

.event-month-heading {
  font-size: 1.3rem;
  margin-left: 10px;
  margin-top: 0px;
  margin-bottom: 0px;
  padding-bottom: 5px;
  padding-left: 0.3rem;
  border-bottom: 2px solid #a6111d;
  font-weight: bold;
  color: #a6111d;
}

.darkmode .event-month-heading {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.event-month-row {
  display: flex;
  padding: 0.75rem 1rem;
  background: #f1f1f1;
  font-weight: bold;
  border-top: 3px solid #a6111d;
}

.event-month-label {
  flex: 1;
  font-size: 1.1rem;
  color: #a6111d;
}

.darkmode .event-month-row {
  background: rgba(255, 255, 255, 0.05);
  border-top: 2px solid rgba(255, 255, 255, 0.4);
}

.darkmode .event-month-label {
  color: #ffffff;
}