/* Journal (Blog) – baut auf den Tokens aus styles.css auf */

.wrap-narrow { max-width: 760px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.post-head { padding-top: 32px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
.post-head h1 { font-size: clamp(38px, 6.4vw, 68px); letter-spacing: -0.055em; line-height: 0.95; text-wrap: balance; }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); }
.kicker.marker { text-transform: none; font-size: 22px; letter-spacing: 0; }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.dek { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.4; color: var(--text-2); text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--text-3); }
.meta a { font-weight: 600; color: var(--ink); }
.draft-flag { align-self: flex-start; background: var(--accent); color: var(--ink); font-weight: 800; padding: 4px 10px; border: var(--border); }

/* Fließtext */
.post-body { padding-bottom: 48px; font-size: 18px; line-height: 1.68; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.05; margin-top: 1.9em; scroll-margin-top: 16px; }
.post-body h3 { font-size: 23px; line-height: 1.15; letter-spacing: -0.03em; margin-top: 1.6em; scroll-margin-top: 16px; }
.post-body h2 + *, .post-body h3 + * { margin-top: 0.6em; }
.post-body a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.post-body a:hover { text-decoration-thickness: 3px; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: 0.35em; }
.post-body strong { font-weight: 700; }
.post-body blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-size: 21px; line-height: 1.45; font-family: var(--display); letter-spacing: -0.02em; }
.post-body hr { border: 0; border-top: var(--border); margin: 2.4em 0; }
.post-body code { font-size: 0.9em; background: var(--white); padding: 1px 5px; border-radius: 4px; }
.anchor { margin-left: 0.3em; font-weight: 400; color: var(--text-3); text-decoration: none; opacity: 0; }
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus { opacity: 1; }

/* Abbildungen + Tabellen */
.post-body figure { margin-left: 0; margin-right: 0; margin-top: 1.8em; margin-bottom: 1.8em; }
.post-body figure img, .post-body figure svg { display: block; width: 100%; height: auto; background: var(--white); border: var(--border); border-radius: 14px; }
.post-body figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--text-3); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: var(--border); border-radius: 14px; background: var(--white); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.post-body th, .post-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.post-body th { font-weight: 700; background: var(--bone); }
.post-body tr:last-child td { border-bottom: 0; }

/* Kasten „The short version“ (Kernaussagen zuerst – wichtig für Leser und KI-Zitate) */
.keyfacts { background: var(--lilac); border: var(--border); border-radius: 18px; padding: 20px 24px 22px; box-shadow: 5px 5px 0 var(--ink); }
.keyfacts-title { font-size: 22px; margin-bottom: 8px; }
.keyfacts ul { margin: 0; padding-left: 1.2em; font-size: 17px; line-height: 1.5; }

.toc { border-top: var(--border); border-bottom: var(--border); padding: 14px 0 16px; font-size: 16px; }
.toc-title { font-weight: 800; font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.data-box { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 24px; background: var(--white); border: var(--border); border-radius: 18px; margin-top: 2.2em; }
.data-box small { color: var(--text-3); font-size: 13px; }
.disclosure { margin-top: 2.4em; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }

/* Quellen (Fußnoten) */
.sources { margin-top: 2.6em; padding-top: 8px; border-top: var(--border); font-size: 15px; line-height: 1.5; color: var(--text-2); }
.sources-title { font-size: 26px !important; margin-top: 0.6em !important; }
.sources ol { padding-left: 1.4em; }
.sources li { overflow-wrap: anywhere; }
.post-body sup a, .post-body a[data-footnote-ref] { text-decoration: none; font-weight: 700; color: var(--accent-text); padding: 0 1px; }
.post-body a[data-footnote-backref] { text-decoration: none; }

/* Übersicht */
.post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.post-card a { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: var(--white); border: var(--border); border-radius: 18px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.post-card a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.post-card-title { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.045em; line-height: 1.02; }
.post-card-dek { color: var(--text-2); line-height: 1.45; }
.blog-index { padding-bottom: 56px; }
.related { padding-bottom: 56px; }
.related h2 { font-size: 30px; margin-bottom: 16px; }

@media (max-width: 600px) {
  .post-body { font-size: 17px; }
  /* Diagramme bleiben lesbar: Mindestbreite, seitlich wischen */
  .post-body figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .post-body figure svg { min-width: 600px; }
  .keyfacts, .data-box { padding: 16px 18px; }
  .post-card a { padding: 18px; }
  .post-card-title { font-size: 24px; }
}

/* Titelbilder */
.post-hero { margin-top: 0; margin-bottom: 8px; }
.post-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: var(--border); border-radius: 18px; background: var(--ink); }
.post-hero.banner img { aspect-ratio: 12 / 5; object-position: 70% 40%; box-shadow: 5px 5px 0 var(--accent); }
.post-hero figcaption { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.post-hero figcaption a { color: inherit; }
.post-card-img { display: block; margin: -22px -24px 6px; border-bottom: var(--border); overflow: hidden; border-radius: 16px 16px 0 0; }
.post-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .3s ease; }
.post-card a:hover .post-card-img img { transform: scale(1.03); }
@media (max-width: 600px) { .post-card-img { margin: -18px -18px 6px; } }
