.event-hero {
  width: 100%;
  background: #1d2124;
  /* globalen 120px-Innenabstand der section-Regel in master.css aufheben */
  padding: 0;
}

.event-hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.event-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.10);
}

.event-hero-content {
  position: relative;
  z-index: 2;
}

.event-info-bar {
  background: #e9e9e9;
  padding: 5px 0 0px;
}

.event-info-bar .event-meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

.event-info-bar h1 {
  margin: 5px 0 10px;
}

.event-info-bar .event-subtitle {
  max-width: 700px;
  color: #666;
}


.event-meta {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.event-subtitle {
  max-width: 650px;
  margin: 20px auto 30px;
}

.event-actions a {
  margin: 5px;
}

/* .event-nav steht jetzt zentral in theme.css */

.table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

/* ============================================================
   Teilnehmer-Sektion: Toolbar (Suche + Filter) und Tabelle
   ============================================================ */

.participants-count {
  color: #666;
  font-size: 14px;
  margin: -10px 0 22px;
}

.participants-toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.participants-toolbar input,
.participants-toolbar select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #111;
  min-height: 44px;
}

.participants-toolbar input:focus,
.participants-toolbar select:focus {
  outline: none;
  border-color: var(--fm-primary);
  box-shadow: 0 0 0 3px rgba(var(--fm-primary-rgb), 0.15);
}

.participants-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.participants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

.participants-table thead {
  background: #f4f4f4;
}

.participants-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  color: #111;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
}

.participants-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.participants-table th.sortable::after {
  content: '\2195'; /* neutrales Doppel-Pfeil-Symbol */
  color: #aaa;
  font-size: 11px;
  margin-left: 6px;
  display: inline-block;
}

.participants-table th.sorted-asc::after {
  content: '\25B4'; /* aufwaerts */
  color: var(--fm-primary-dark);
}

.participants-table th.sorted-desc::after {
  content: '\25BE'; /* abwaerts */
  color: var(--fm-primary-dark);
}

.participants-table th.sortable:hover {
  background: #ececec;
}

.participants-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  color: #222;
}

.participants-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.participants-table tbody tr:hover {
  background: #f0f7e6;
}

.participants-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 767px) {
  .participants-toolbar {
    grid-template-columns: 1fr;
  }
}

/* Aktive Tab-Sektion fuellt mindestens den Restbereich unter
   Navbar, Hero-Bild, Info-Bar und Tab-Leiste -- so scheint nie der
   dunkle Body-Hintergrund unten durch, auch wenn der Inhalt kurz ist. */
.event-content.active {
  min-height: calc(100vh - 200px);
}

/* ============================================================
   Mobile-Anpassungen fuer event.php (Hero, Info-Bar, Sektionen)
   ============================================================ */

@media (max-width: 767px) {
  /* Auf Mobile ist die Bootsnav-Navbar opak weiss (anders als der
     transparente Desktop-Zustand). Daher Body weiss halten, damit
     der 60px-Bereich zwischen Navbar und Hero-Bild nicht als dunkler
     Balken durchscheint. */
  body {
    background-color: #fff !important;
  }

  /* Hero bekommt auf Mobile keine Overrides mehr -- das Bild wird
     unbeschnitten in voller Breite mit natuerlicher Hoehe gezeigt.
     Wenn ein dediziertes Mobile-Bild (16:9) hochgeladen ist, ergibt
     sich daraus eine ansprechende Hoehe; ohne Mobile-Bild bleibt der
     flache Desktop-Banner sichtbar -- klein, aber vollstaendig. */

  .event-info-bar {
    padding: 8px 0 4px;
  }

  .event-info-bar .event-meta {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .event-info-bar b {
    font-size: 18px !important;
    line-height: 1.25;
    display: inline-block;
  }

  .event-content {
    padding-top: 24px !important;
    padding-bottom: 24px;
  }

  .event-content h2 {
    font-size: 22px;
    margin-bottom: 14px;
  }

  /* Teilnehmer-Tabelle: ausreichend kompakt, ggf. horizontal scrollen */
  #participants .table {
    font-size: 14px;
  }

  #participants .table td,
  #participants .table th {
    padding: 8px 6px;
  }
}