/* MODULE: events – Alle Events Detailseite */

.events-body {
  background: var(--bg-2);
  min-height: 100vh;
  font-family: var(--font-body);
}

/* Sub-Header unterhalb der globalen Top-Nav (event-detail.html):
   Kompakter Zurueck-Link + Event-Titel, nicht sticky */
.events-subheader {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.events-subheader-title {
  flex: 1;
  text-align: center;
  margin: 0;
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 22px;
  letter-spacing: 0.03em;
  color: var(--text);
  font-weight: 400;
}
@media (max-width: 600px) {
  .events-subheader { padding: 10px 16px; gap: 10px; }
  .events-subheader-title { font-size: 18px; }
}

.events-header {
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.events-back {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.events-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.events-page-header {
  margin-bottom: 48px;
}

/* ── Event Detail Card ─────────────────────────────────── */
.edc {
  display: grid;
  grid-template-columns: 38% 62%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.edc:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.edc-image {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.edc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.edc:hover .edc-image img { transform: scale(1.04); }

.edc-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.edc-title {
  font-family: var(--font-display);
  font-size: clamp(26px,4vw,42px);
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 10px;
}

.edc-meta {
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}

.edc-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.edc-detail {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.edc-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

/* ── GPX Section ───────────────────────────────────────── */
.edc-gpx {
  margin-top: 20px;
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--border);
}

.edc-chart-canvas {
  width: 100%;
  height: 130px;
  display: block;
  border-radius: 8px;
}

.edc-gpx-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
}

.edc-gpx-stat {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.edc-gpx-stat strong { color: var(--text); font-weight: 600; }

/* ── GPX Download ──────────────────────────────────────── */
.edc-gpx-downloads {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.edc-gpx-dl-btn {
  font-size: 13px;
  padding: 8px 16px;
  color: var(--accent);
  border-color: rgba(255,107,0,0.35);
  text-decoration: none;
}
.edc-gpx-dl-btn:hover { background: rgba(255,107,0,0.08); }
.edc-gpx-no-dl {
  font-size: 13px;
  padding: 8px 16px;
  color: var(--text-muted);
  opacity: 0.5;
  cursor: default;
}

/* ── Mehrere GPX-Profile ───────────────────────────────── */
.edc-gpx-file-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.edc-gpx-divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0 6px;
}

/* ── Strava Section ────────────────────────────────────── */
.edc-strava {
  margin-top: 16px;
  background: rgba(255,107,0,0.04);
  border: 1px solid rgba(255,107,0,0.14);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.edc-strava-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 8px;
}

.edc-strava-stat {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.edc-strava-stat strong { color: var(--text); font-weight: 600; }

/* ── Actions ───────────────────────────────────────────── */
.edc-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Empty ─────────────────────────────────────────────── */
.events-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .edc {
    grid-template-columns: 1fr;
  }
  .edc-image {
    min-height: 200px;
    aspect-ratio: 16/9;
  }
  .edc-body {
    padding: 24px 24px;
  }
}

@media (max-width: 480px) {
  .edc-body { padding: 20px 16px; }
}
