/* ============================================================
   ARTIQ Blog — eigenes Stylesheet, nutzt die Design-Tokens
   aus ../styles.css (--bg, --ink, --red, --serif, ...).
   Wird NACH styles.css geladen.
   ============================================================ */

/* ---- Layout-Grundgerüst ---- */
.blog-main {
  padding-top: clamp(96px, 14vh, 160px);
  padding-bottom: clamp(64px, 10vh, 120px);
}

.blog-wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* schmalere Spalte für Lesetext */
.blog-narrow { max-width: 760px; }

/* ---- Blog-Kopf (Übersicht) ---- */
.blog-head {
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.blog-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 18px;
}
/* nutzt .display + <em> aus styles.css (gleicher Look wie die Section-Headlines),
   hier nur die Größe wie .section-head h2 setzen */
.blog-head h1.display {
  font-size: clamp(34px, 5vw, 62px);
  margin: 0 0 20px;
  color: var(--ink);
}
.blog-head p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--ink-dim);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* ---- Beitrags-Liste (untereinander, editorial) ---- */
.blog-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.post-row {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: clamp(30px, 4.5vw, 52px) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.3s var(--ease);
}
.post-row:hover { opacity: 1; }
/* leichtes Abdunkeln der Nachbarn beim Hover wäre möglich – bewusst dezent gehalten */

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.post-tag {
  color: var(--red);
  font-weight: 600;
}
.post-row h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.post-row:hover h2 { color: var(--red); }
.post-row p {
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 62ch;
}
.post-readmore {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.post-readmore svg { transition: transform 0.3s var(--ease); }
.post-row:hover .post-readmore svg { transform: translateX(5px); }
.post-row:hover .post-readmore { color: var(--red); }

/* ---- Artikel-Seite ---- */
.article-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.article-header .post-meta { justify-content: center; }
/* nutzt .display + <em> aus styles.css (fett, Schlüsselwort in Rot-Serif) */
.article-header h1.display {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  margin: 14px auto 22px;
  max-width: 18ch;
  color: var(--ink);
}
.article-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 620px;
  margin: 0 auto;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: clamp(40px, 6vw, 64px);
  background: var(--card-2) linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

/* Lesetext */
.article-body {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-body > * + * { margin-top: 1.4em; }
.article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin-top: 1.8em;
  color: var(--ink);
}
/* Akzentwort in Unterüberschriften: kursiv + Rot, gleiche Sprache wie
   das <em> in den .display-Headlines (z.B. "Zwischen den Noten") */
.article-body h2 em,
.post-row h2 em {
  font-style: italic;
  color: var(--red);
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.6em;
}
.article-body a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: 0.5em; }
.article-body blockquote {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 24px;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--ink);
}
.article-body strong { font-weight: 600; }
.article-body sup { font-size: 0.68em; line-height: 0; }
.article-body sup a { color: var(--red); text-decoration: none; font-weight: 600; }
.article-body sup a:hover { text-decoration: underline; }

/* Quellenliste am Artikelende */
.article-sources {
  margin-top: 2.2em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}
.article-sources h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
.article-sources ol {
  padding-left: 1.2em;
  margin: 0;
}
.article-sources li {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-dim);
}
.article-sources li + li { margin-top: 10px; }
.article-sources a {
  color: var(--ink-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-sources a:hover { color: var(--red); }

/* Autoren-Box */
.author-box {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: clamp(48px, 7vw, 72px);
  margin-bottom: 14px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.author-box img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--card-2);
}
.author-box h4 { margin: 0 0 4px; font-size: 1rem; }
.author-box p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.5; }

/* CTA am Artikelende */
.article-cta {
  margin-top: 0;
  text-align: center;
  padding: clamp(36px, 5vw, 56px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
/* nutzt .display + <em> aus styles.css (fett, Schlüsselwort in Rot-Serif) */
.article-cta h3.display {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}
.article-cta p { color: var(--ink-dim); margin: 0 0 24px; }

/* Zurück-Link */
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-dim);
  text-decoration: none;
  margin-bottom: 28px;
}
.blog-back:hover { color: var(--red); }

@media (max-width: 560px) {
  .author-box { flex-direction: column; text-align: center; }
}
