/* ============================================================
   Eventbox Event Grid — event-grid.css
   Beinhaltet:
     1. Bestehendes Grid-Design (unverändert)
     2. Filter-Sidebar
   ============================================================ */

/* ── 1. BESTEHENDES GRID-DESIGN ──────────────────────────── */

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.event-card {
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}

/* Bild */
.event-card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
}

/* Badges */
.badge {
  position: absolute;
  top: 12px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 700;
}
.badge-category {
  left: 12px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
}
.badge-featured {
  right: 12px;
  background: #ff007a;
  color: #fff;
}

/* Body */
.event-card-body {
  padding: 18px;
  flex-grow: 1;
}
.event-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  padding-bottom: 10px;
}
.event-date {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

/* Footer */
.event-card-footer {
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.event-price {
  color: #ff007a;
  font-weight: 800;
  font-size: 16px;
}

/* Location Cards */
.eventcat-item--fixed {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.eventcat-image {
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.eventcat-content {
  min-height: 80px;
  display: flex;
  align-items: center;
}
.eventcat-content h3 {
  position: relative;
  padding-bottom: 0;
}
.eventcat-content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #ff007a;
}

/* Pagination */
.event-pagination {
  margin-top: 40px;
  text-align: center;
}
.event-pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #111;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.event-pagination .page-numbers:hover {
  background: #222;
}
.event-pagination .current {
  background: #ff007a;
}

/* Location */
.event-location {
  margin: 1.5rem 0;
}
.event-location-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.event-location-image img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.event-location-label {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}
.event-location-title {
  font-weight: 600;
  font-size: 16px;
}
@media (max-width: 600px) {
  .event-location-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .event-location-image img {
    width: 48px;
    height: 48px;
  }
}


/* ── 2. FILTER-LAYOUT ─────────────────────────────────────── */

.eeg-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.eeg-content {
  flex: 1;
  min-width: 0;
}

/* ── Sidebar ────────────────────────────────────────────────── */

.eeg-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
}

/* Mobile Toggle (versteckt auf Desktop) */
.eeg-mobile-toggle {
  display: none;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  position: relative;
  transition: background .15s;
}
.eeg-mobile-toggle:hover {
  background: #222;
}

/* Roter Dot wenn Filter aktiv */
.eeg-filter-dot {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: #ff007a;
  border-radius: 50%;
}

.eeg-sidebar-inner {
  background: #111;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  overflow: hidden;
}

.eeg-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

.eeg-reset {
  font-size: 12px;
  font-weight: 600;
  color: #ff007a;
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
  transition: opacity .15s;
}
.eeg-reset:hover {
  opacity: 0.7;
}

/* ── Sections ──────────────────────────────────────────────── */

.eeg-section {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.eeg-section:last-of-type {
  border-bottom: none;
}

.eeg-section-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Kategorie-Chips ───────────────────────────────────────── */

.eeg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.eeg-chip {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.eeg-chip:hover {
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}
.eeg-chip.is-active {
  background: #ff007a;
  border-color: #ff007a;
  color: #fff;
}

/* ── Datum ─────────────────────────────────────────────────── */

.eeg-date-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eeg-date-field label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, .35);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eeg-date-field input[type="date"] {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color .15s;
  /* Kalender-Icon auf dunklem Hintergrund */
  color-scheme: dark;
}
.eeg-date-field input[type="date"]:focus {
  outline: none;
  border-color: #ff007a;
}

/* ── Preis-Slider ──────────────────────────────────────────── */

.eeg-price-label {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  gap: 4px;
}
.eeg-price-sep {
  color: rgba(255, 255, 255, .3);
}

.eeg-slider-wrap {
  position: relative;
  padding: 8px 0 4px;
}

.eeg-slider-track {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, .12);
  border-radius: 99px;
  margin: 10px 0 20px;
}

.eeg-slider-range {
  position: absolute;
  height: 100%;
  background: #ff007a;
  border-radius: 99px;
}

/* Beide range-Inputs übereinanderlegen */
.eeg-range {
  position: absolute;
  width: 100%;
  /* an der Track-Position ausrichten */
  top: -9px; /* Mitte des Tracks: margin-top(10px) - half-thumb */
  left: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  height: 20px;
  margin: 0;
}

.eeg-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ff007a;
  cursor: pointer;
  pointer-events: all;
  transition: transform .1s, box-shadow .1s;
  box-shadow: 0 0 0 0 rgba(255, 0, 122, 0);
}
.eeg-range::-webkit-slider-thumb:hover,
.eeg-range:active::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(255, 0, 122, .25);
}
.eeg-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ff007a;
  cursor: pointer;
  pointer-events: all;
}

/* ── Apply Button ──────────────────────────────────────────── */

.eeg-apply-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px;
  background: #ff007a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.eeg-apply-btn:hover {
  background: #e6006e;
}
.eeg-apply-btn:active {
  transform: scale(0.98);
}

/* ── No results ────────────────────────────────────────────── */

.eeg-no-results {
  color: rgba(255, 255, 255, .5);
  padding: 40px 0;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .eeg-sidebar {
    width: 200px;
  }
}

@media (max-width: 720px) {
  .eeg-layout {
    flex-direction: column;
    gap: 0;
  }
  .eeg-sidebar {
    width: 100%;
    position: static;
    margin-bottom: 24px;
  }
  .eeg-mobile-toggle {
    display: flex;
  }
  .eeg-sidebar-inner {
    display: none;
  }
  .eeg-sidebar-inner.is-open {
    display: block;
  }
}
