/* MODULE: blog – Blog-Vorschau (index.html) + Blog-Seite (blog.html) + Blog-Detail (blog-detail.html)
   Karten-Design der Übersicht kommt aus events.css (.edc / .edc-image / .edc-body etc.)
══════════════════════════════════════════════════════════════════════ */

/* ── Blog-Vorschau auf Hauptseite (index.html) ────────────────────── */
.blog-preview { padding: 80px 0; background: var(--bg-2); }

.bp-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}
.bp-header-text .section-label { margin-bottom: 4px; }
.bp-header-text .section-title { margin: 0; }
.bp-all-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.bp-all-link:hover { opacity: 0.75; }

.bp-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.bp-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.bp-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
}
.bp-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.bp-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  width: 100%;
  height: 100%;
}
.bp-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.bp-body { padding: 36px 48px 36px 40px; }
.bp-date  { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.bp-title {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 14px;
}
.bp-teaser {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 28px;
}

/* ── Blog-Übersicht (blog.html) ──────────────────────────────────── */
/* Seiten-Layout nutzt events.css-Klassen: .events-body, .events-header,
   .events-main, .events-page-header — kein eigenes CSS nötig.
   Karten-Styling kommt ebenfalls aus events.css (.edc / .edc-image / .edc-body) */

/* ── Leer-Zustand ───────────────────────────────────────────────── */
.blog-preview-cta {
  text-align: center;
  margin-top: 40px;
}

/* ── Blog-Detail-Seite (blog-detail.html) ────────────────────────── */
.blog-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.bpc-header-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}
.bpc-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-post-card:hover .bpc-header-img img { transform: scale(1.04); }
.bpc-header-img .event-card-cat {
  position: absolute;
  top: 14px;
  right: 14px;
}

.bpc-body {
  padding: 32px 36px;
}

.bpc-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.bpc-cat {
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.bpc-date { font-size: 13px; color: var(--text-muted); }

.bpc-title {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--text);
}

/* ── Gerenderter Inhalt ──────────────────────────────────────────── */
.bpc-content { color: var(--text); font-size: 16px; line-height: 1.9; }
.bpc-content p { margin-bottom: 18px; }
.bpc-content ul { list-style: none; margin: 0 0 18px; padding-left: 4px; }
.bpc-content ul li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.bpc-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.bpc-content strong { font-weight: 700; }
.bpc-content em { font-style: italic; color: var(--text-muted); }

/* ── Bildergalerie im Post ───────────────────────────────────────── */
.bpc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.bpc-gallery-img {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bpc-gallery-img:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.bpc-gallery-img img { width: 100%; height: 100%; object-fit: cover; }
.bpc-gallery-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 5px;
}

/* ── Blog Abschnitte ─────────────────────────────────────── */
.bps-section { margin-bottom: 40px; }
.bps-section:last-child { margin-bottom: 0; }

.bps-text .bps-img-full {
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.bps-text .bps-img-full img { width: 100%; height: 100%; object-fit: cover; }

.bps-image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.bps-image-text.bps-align-right { direction: rtl; }
.bps-image-text.bps-align-right > * { direction: ltr; }
.bps-img-col { border-radius: var(--radius); overflow: hidden; }
.bps-img-col img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bps-text-col { display: flex; flex-direction: column; justify-content: center; }

.bps-image-text > .bps-gpx-block { grid-column: 1 / -1; direction: ltr; }

.bps-img-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

.bps-gallery-intro { margin-bottom: 20px; }

.bps-gpx-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 12px;
}
.bps-gpx-canvas {
  display: block;
  width: 100%;
  height: 140px;
  border-radius: var(--radius);
  background: var(--bg-3);
  margin-bottom: 12px;
}
.bps-gpx-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.bps-gpx-stat {
  flex: 1 1 120px;
  background: var(--bg-3);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bps-gpx-stat span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bps-gpx-stat strong { font-size: 15px; font-weight: 700; color: var(--text); }
.bps-gpx-download { margin-bottom: 4px; }

/* ── Daumen-Hoch ─────────────────────────────────────────── */
.bpc-likes {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}
.bpc-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 8px 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.bpc-like-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,107,0,0.06);
}
.bpc-like-btn.liked,
.bpc-like-btn:disabled {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,107,0,0.08);
  cursor: default;
}
.bpc-like-icon { font-size: 16px; line-height: 1; }
.bpc-like-count { min-width: 16px; text-align: center; }

/* ── Blog-Detail Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .bpc-body { padding: 24px 20px; }
  .bpc-title { font-size: 32px; }
  .bps-image-text { grid-template-columns: 1fr; gap: 20px; }
  .bps-image-text.bps-align-right { direction: ltr; }
}

