/* =========================================
   OLDTIMER-RESCUE – BLOG.CSS
   Werkstatt-Blog: Beiträge, Übersicht, Kategorien
   ergänzt style.css
   ========================================= */

.blog-crumbs { padding-top: 96px; }
.blog-crumbs .breadcrumb { font-size: 0.82rem; color: var(--color-text-subtle); padding: 12px 0; }
.blog-crumbs .breadcrumb a { color: var(--color-text-subtle); }
.blog-crumbs .breadcrumb a:hover { color: var(--color-accent); }
.blog-crumbs .sep { margin: 0 4px; }
.blog-crumbs [aria-current] { color: var(--color-text-muted); }

/* ---- Beitrag ---- */
.post-head, .post-body, .post-foot { max-width: 780px; }
.post-head { padding-top: 24px; padding-bottom: 8px; }
.post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.post-cat {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-accent); background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25); border-radius: 100px; padding: 4px 12px;
}
.post-cat:hover { background: rgba(245, 158, 11, 0.18); }
.post-title {
  font-family: var(--font-display); font-weight: 700; color: var(--color-text);
  font-size: clamp(1.8rem, 4.2vw, 2.7rem); line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 14px; text-wrap: balance;
}
.post-meta { color: var(--color-text-subtle); font-size: 0.9rem; }

.post-body { padding-top: 28px; padding-bottom: 12px; font-size: 1.06rem; color: var(--color-text-muted); }
.post-body p { margin-bottom: 1.25em; line-height: 1.8; }
.post-body h2, .post-body h3, .post-body h4 {
  font-family: var(--font-display); color: var(--color-text); line-height: 1.25; margin: 1.6em 0 0.6em;
}
.post-body h2 { font-size: 1.5rem; }
.post-body h3 { font-size: 1.25rem; }
.post-body ul, .post-body ol { margin: 0 0 1.25em 1.3em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 0.4em; }
.post-body a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { color: #fbbf24; }
.post-body strong { color: var(--color-text); }
.post-body blockquote { border-left: 3px solid var(--color-accent); padding: 4px 0 4px 18px; margin: 0 0 1.25em; font-style: italic; }

/* ---- Video: 2-Klick-Player (lokales Vorschaubild, YouTube erst nach Klick) ---- */
.post-video {
  margin: 1.6em 0; border-radius: var(--radius-md); overflow: hidden;
  background: var(--color-bg-card); border: 1px solid var(--color-border-2);
}
.post-video-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  background: #000; overflow: hidden; cursor: pointer; font: inherit; color: inherit;
}
.post-video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.post-video-thumb:hover img, .post-video-thumb:focus-visible img { transform: scale(1.03); opacity: 0.85; }
.post-video-thumb:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.post-video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 50px; border-radius: 12px; background: #ff0000; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5); transition: transform 0.2s var(--ease);
}
.post-video-thumb:hover .post-video-play { transform: translate(-50%, -50%) scale(1.08); }
.post-video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.post-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-video-info { display: block; padding: 14px 18px 16px; }
.post-video-title { display: block; color: var(--color-text); font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.post-video-note { display: block; font-size: 0.78rem; color: var(--color-text-subtle); line-height: 1.5; }
.post-body .post-video-note a { color: var(--color-text-muted); }
.post-video.is-playing .post-video-note { display: none; }

/* ---- CTA & Vor/Zurück ---- */
.post-foot { padding-bottom: 40px; }
.post-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 32px 0; padding: 26px 28px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(59,130,246,0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.post-cta strong { display: block; color: var(--color-text); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 6px; }
.post-cta p { color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.6; }
.post-cta .btn { flex-shrink: 0; }

.post-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-prevnext a {
  display: block; padding: 16px 18px; border: 1px solid var(--color-border-2); border-radius: var(--radius-sm);
  color: var(--color-text); font-weight: 600; font-size: 0.92rem; line-height: 1.4; background: var(--color-bg-card);
}
.post-prevnext a:hover { border-color: rgba(245, 158, 11, 0.5); }
.post-prevnext a span { display: block; font-size: 0.75rem; font-weight: 500; color: var(--color-text-subtle); margin-bottom: 4px; }
.post-prevnext .pn-next { text-align: right; }

/* ---- Übersicht ---- */
.blog-hero { padding: 24px 0 8px; }
.blog-intro { color: var(--color-text-muted); max-width: 720px; font-size: 1.05rem; margin-bottom: 26px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
  font-size: 0.85rem; padding: 7px 14px; border-radius: 100px; color: var(--color-text-muted);
  border: 1px solid var(--color-border-2); background: rgba(255,255,255,0.03);
}
.cat-chip span { color: var(--color-text-subtle); margin-left: 4px; font-size: 0.78rem; }
.cat-chip:hover { color: var(--color-text); border-color: rgba(245,158,11,0.5); }
.cat-chip.active { color: #0a0c10; background: var(--color-accent); border-color: var(--color-accent); font-weight: 600; }
.cat-chip.active span { color: rgba(10,12,16,0.7); }

.blog-list.section, .blog-related.section { padding-top: 40px; padding-bottom: 80px; }
.blog-h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-text); margin-bottom: 22px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.post-card {
  display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden;
  background: var(--color-bg-card); border: 1px solid var(--color-border-2);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(245, 158, 11, 0.5); }
.post-card-img { display: block; aspect-ratio: 16 / 9; background: var(--color-surface); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-noimg { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 2.4rem; }
.post-card-body { display: flex; flex-direction: column; padding: 16px 18px 20px; gap: 6px; }
.post-card-meta { font-size: 0.75rem; color: var(--color-text-subtle); }
.post-card-title { font-family: var(--font-display); font-weight: 600; color: var(--color-text); font-size: 1.05rem; line-height: 1.35; }
.post-card-excerpt { font-size: 0.86rem; color: var(--color-text-muted); line-height: 1.55; }

@media (max-width: 640px) {
  .blog-crumbs { padding-top: 80px; }
  .post-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
  .post-prevnext { grid-template-columns: 1fr; }
  .post-prevnext .pn-next { text-align: left; }
  .post-body { font-size: 1rem; }
}
