/* ===================================================================
   QORA · Blog (/blog/, /en/blog/, /fr/blog/), seit 06.11.2026
   Baut auf ratgeber.css (rg-*) auf, Artikel im Layout der breiten Ratgeber-Seiten:
   Ueberschrift links, Text rechts (68ch), Sprungmarken als Karte im Kopf.
   Nur Tokens aus qora.css. Bewegung nur Farbe und Rahmen, 150 ms, bei reduzierter Bewegung aus.
   ========================================================================== */

/* Lesetext: Abschnittsueberschriften setzt rg-fragen, im Text nur h3. */
.blog-text { min-width: 0; }
.blog-text h3 { scroll-margin-top: 100px; }
.ratgeber > .blog-text, .blog-text--breit { max-width: 68ch; }
.blog-text--breit:has(.tabelle-rahmen) { max-width: none; }

.blog-datum { margin: 6px 0 0; color: var(--text-dim); font-size: 14px; }
.blog-datum time { color: var(--text-muted); }

/* Bilder: nur Demo-Inhalte, volle Breite der Textspalte. */
.blog-bild { margin: 2em 0; }
.blog-bild img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); }
.blog-bild figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-dim); }

/* Sprungmarken im Kopf rechts: Panel im Stil der Empfehlungskarte, nummerierte Liste. */
.blog-sprung {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 3vw, 30px); background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
  box-shadow: inset 0 3px 0 var(--akzent), var(--schatten);
}
.blog-sprung ol { list-style: none; margin: 0; padding: 0; counter-reset: sprung; display: flex; flex-direction: column; }
.blog-sprung li { counter-increment: sprung; border-top: 1px solid var(--border); }
.blog-sprung li:first-child { border-top: 0; }
.blog-sprung a {
  display: grid; grid-template-columns: 2.2em minmax(0, 1fr); align-items: baseline;
  min-height: 44px; padding: 10px 0; color: var(--text-muted); font-size: 15.5px; line-height: 1.4;
  text-decoration: none; transition: color 150ms ease-out;
}
.blog-sprung a::before { content: counter(sprung, decimal-leading-zero); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-dim); transition: color 150ms ease-out; }
.blog-sprung a:hover, .blog-sprung a:hover::before { color: var(--akzent); }
.blog-sprung a:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }

/* Ende: QORA zweispaltig wie ein Abschnitt, rechts Text, Stores, Rechtshinweis. */
.blog-qora { display: flex; flex-direction: column; gap: 18px; max-width: 68ch; min-width: 0; }
.blog-qora > p:first-child { margin: 0; font-size: 17px; color: var(--text-muted); line-height: 1.6; text-wrap: pretty; }
.blog-hinweis { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-dim); text-wrap: pretty; }
.blog-hinweis a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.blog-hinweis a:hover { color: var(--text); }
/* KI-Hinweis im Kopf, vor dem ersten Absatz: statisch, nicht klappbar, Kontrast text-dim auf bg 5,3:1. */
.blog-hinweis--ki { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); max-width: 68ch; }
.blog-hinweis--recht { padding-top: 16px; border-top: 1px solid var(--border); }

/* Karten: Datum als Kicker, Lesezeit rechts. */
.blog-karte .rg-karte__oben { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.blog-karte__lesezeit { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.blog-rss { margin: 14px 0 0; font-size: 14px; }
.blog-rss a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; transition: color 150ms ease-out; }
.blog-rss a:hover { color: var(--akzent); }

/* Raster: Karten behalten ihre Breite, auch wenn nur ein oder zwei Artikel da sind. */
.rg-raster.blog-raster { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.blog-bald { margin: 18px 0 0; color: var(--text-muted); }

/* Tabellen im Artikel: auf dem Handy waagerecht scrollen statt die Seite zu sprengen. */
.blog-text .tabelle-rahmen { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 640px) {
  .blog-store.rg-knoepfe--gleich { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-rss a, .blog-sprung a, .blog-sprung a::before { transition: none; }
}
