/* ============================================================
   Confitax — Blog Styles
   ============================================================
   Gilt für blog.html (Übersicht) und blog/<slug>.html (Artikel).
   Baut auf den globalen Komponenten aus style.css auf
   (.svc-card, .prose, .page-hero, .breadcrumb).
   ============================================================ */

/* ---- Übersicht: Datum/Kategorie-Zeile auf den Karten ---- */
.blog-card-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.blog-card-meta time { color: var(--accent); }

/* ---- Übersicht: leerer Zustand, solange kein Beitrag existiert ---- */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-secondary);
}
.blog-empty h3 { margin-bottom: 0.6rem; }
.blog-empty p  { color: var(--text-sub); max-width: 460px; margin: 0 auto; }

/* ---- Artikel: Meta-Zeile unter der Überschrift ---- */
.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.blog-article-meta time { color: var(--accent); font-weight: 600; }
.blog-article-meta .meta-sep { opacity: 0.5; }

/* ---- Artikel: Lesespalte ---- */
.blog-article {
  max-width: 780px;
  margin: 0 auto;
}

/* Ergänzungen zur globalen .prose-Typografie (dort: h3, p, ul) */
.blog-article h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin: var(--sp-5) 0 var(--sp-2);
  letter-spacing: -0.01em;
}
.blog-article h2:first-child { margin-top: 0; }

.blog-article ol {
  /* Der globale Reset (style.css) setzt list-style: none — hier gewollt */
  list-style: decimal;
  margin: 0 0 var(--sp-3) 1.25rem;
}
.blog-article ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.35rem;
  color: var(--text-sub);
}

.blog-article a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.blog-article a:hover { color: var(--accent); }

.blog-article blockquote {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--bg-secondary);
  color: var(--text-sub);
  font-style: italic;
}
.blog-article blockquote p:last-child { margin-bottom: 0; }

.blog-article figure { margin: var(--sp-4) 0; }
.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
}
.blog-article figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  font-size: 0.95rem;
}
.blog-article th,
.blog-article td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.blog-article th { font-weight: 700; }

.blog-article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--sp-5) 0;
}

/* ---- Artikel: Zurück-Link unter dem Beitrag ---- */
.blog-back {
  max-width: 780px;
  margin: var(--sp-5) auto 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.blog-back a {
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  transition: color var(--tr);
}
.blog-back a:hover { color: var(--accent); }
