/* ═══════════════════════════════════════════════════════════
   Invictus Magazin — Blog-Styles (ergänzt shared.css)
   Nutzt die globalen Tokens aus shared.css (--bg, --text, --gold …)
   ═══════════════════════════════════════════════════════════ */

/* ─── Listing: Hero ─────────────────────────────────────────── */
.blog-hero {
  padding: clamp(140px, 18vh, 220px) 0 clamp(40px, 6vh, 80px);
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px auto 22px;
  max-width: 16ch;
}
.blog-hero p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Listing: Grid + Cards ─────────────────────────────────── */
.blog-list { padding: 20px 0 clamp(80px, 14vh, 160px); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(var(--glass-blur));
  transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .5s, background .5s;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
}
.blog-card__img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.card-ai-badge {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-secondary);
  font-size: .62rem; font-weight: 700; letter-spacing: .06em;
  color: var(--text-secondary);
  background: rgba(12,12,14,.7); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 7px;
}
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__img--placeholder {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(245,197,24,.10), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.blog-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__cat {
  font-family: var(--font-secondary);
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold);
}
.blog-card__body h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }
.blog-card__body p { color: var(--text-secondary); font-size: .95rem; line-height: 1.55; flex: 1; }
.blog-card__meta {
  display: flex; gap: 10px; align-items: center;
  color: var(--text-tertiary); font-size: .82rem; margin-top: 6px;
}

/* ─── Artikel: Layout ───────────────────────────────────────── */
.blog-article { padding: clamp(120px, 15vh, 180px) 0 0; }
.article-container { max-width: 760px; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--text-tertiary); margin-bottom: 28px;
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color .3s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .current { color: var(--text-tertiary); }

.article-tags-row { margin-bottom: 18px; }
.blog-article h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1; letter-spacing: -.02em; margin-bottom: 20px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  color: var(--text-tertiary); font-size: .88rem; margin-bottom: 36px;
}
.article-meta .dot { opacity: .5; }
.ai-badge {
  font-family: var(--font-secondary);
  font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 12px;
  cursor: help;
}

.article-hero { margin: 0 0 40px; border-radius: var(--radius-md); overflow: hidden; }
.article-hero img { width: 100%; height: auto; display: block; }
.ai-caption {
  font-family: var(--font-secondary);
  font-size: .75rem; color: var(--text-tertiary);
  padding: 8px 4px 0; text-align: right;
}

/* ─── Artikel: Prose / Fließtext ────────────────────────────── */
.article-body { font-size: 1.075rem; line-height: 1.75; color: rgba(245,245,247,.85); }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  line-height: 1.2; letter-spacing: -.01em; color: var(--text);
  margin: 52px 0 18px;
}
.article-body h3 {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  color: var(--text); margin: 36px 0 14px;
}
.article-body p { margin: 0 0 22px; }
.article-body a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(245,197,24,.35); transition: border-color .3s; }
.article-body a:hover { border-color: var(--gold); }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 1.4em; }
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--gold); }
.article-body blockquote {
  margin: 32px 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--gold);
  font-size: 1.2rem; line-height: 1.5; color: var(--text);
  font-family: var(--font-secondary);
}
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 28px 0; }
.article-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .9em; background: rgba(255,255,255,.06);
  padding: .15em .4em; border-radius: 6px;
}
.article-body pre {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 20px; overflow-x: auto; margin: 28px 0;
}
.article-body pre code { background: none; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .95rem; }
.article-body th, .article-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.article-body th { color: var(--text); font-weight: 600; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }

/* ─── Artikel: CTA ──────────────────────────────────────────── */
.article-cta {
  margin: 64px 0 0;
  padding: clamp(40px, 6vw, 60px) clamp(24px, 5vw, 56px);
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(245,197,24,.08), transparent 60%),
    var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
}
.article-cta h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 14px 0 12px; letter-spacing: -.01em; }
.article-cta p { color: var(--text-secondary); max-width: 48ch; margin: 0 auto 28px; line-height: 1.6; }
.article-cta .hero-ctas { justify-content: center; }

.blog-article + footer, .blog-list + footer { margin-top: clamp(80px, 14vh, 160px); }

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 22px; }
  .article-body { font-size: 1.02rem; }
}
