/* ==========================================================================
   News – /news/ (luca /blog, LAYOUT_SPEC ch. 7 / MOTION_SPEC ch. 8)
   and the post template /news/<slug>/ (unlinked example: /news/beispiel/) (luca /blog/:slug, LAYOUT_SPEC ch. 8 / MOTION_SPEC ch. 9)
   Shared cards (.article-card), lines, roll links, appears: base.css
   ========================================================================== */

/* ---------- /news/ ---------- */
.jr-main { padding: 150px 0 0; }

/* 7.2 Section Blog Intro */
.jr-intro { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 30px; width: 100%; padding: 0 20px; }
.jr-intro__container { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 120px; width: 100%; overflow: hidden; }
.jr-intro h1 { color: #000; }

/* 7.3 Section Articles */
.jr-articles { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px; width: 100%; padding: 40px 20px 100px; }
.jr-line { width: 100%; height: 1px; }
.jr-row { display: flex; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 20px; width: 100%; }
.jr-col { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; flex: 1 0 0px; width: 1px; }
.jr-link { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; width: 100%; }
.jr-appear { flex: 1 0 0px; width: 1px; }
.jr-spacer { flex: 1 0 0px; align-self: stretch; width: 1px; overflow: hidden; background: #fff; }
.article-card__img picture { display: contents; }
/* empty state (no posts yet): one plain line under the drawn line, room above the footer */
.jr-empty { width: 100%; min-height: 40vh; }
.jr-empty p { opacity: .5; }

@media (min-width: 810px) and (max-width: 1199.98px) {
  .jr-articles { padding: 40px 20px; }
  /* tablet copy of the template: row 2 is 1x1 left / Wide right (desktop: Wide / 1x1) */
  .jr-t-sq .article-card__img { aspect-ratio: 1 / 1; }
  .jr-t-wide .article-card__img { aspect-ratio: 1.5 / 1; }
}
@media (max-width: 809.98px) {
  .jr-intro { padding: 0 15px; }
  .jr-articles { padding: 40px 20px; justify-content: flex-start; align-items: flex-start; }
  .jr-row { flex-direction: column; gap: 40px; }
  .jr-col { flex: none; width: 100%; }
}

/* ---------- /news/<slug>/ ---------- */
.post-main { padding: 150px 0 0; }

/* 8.2 Section Article Intro */
.post-intro { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; padding: 0 20px 40px; }
.post-top { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; padding: 20px 0 200px; }
.post-title-wrap { position: relative; z-index: 1; display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 20px; width: 100%; }
.post-title-l { display: flex; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 10px; flex: 1 0 0px; width: 1px; }
.post-title { width: 500px; max-width: 500px; white-space: pre-wrap; word-break: break-word; }
.post-title h1 { color: #000; }
.post-title-r { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 10px; flex: 1 0 0px; width: 1px; }
.post-lead { width: 100%; max-width: 600px; opacity: .5; white-space: pre-wrap; word-break: break-word; }
.post-bottom { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 20px; width: 100%; }
.post-share { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px; flex: 1 0 0px; align-self: stretch; width: 1px; }
.post-share__wrap { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; }
/* Share Article button (dSpog): #f6f6f6 -> hover #e3e3e3, spring {bounce .2, duration .4} */
.share-btn {
  display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 2px; padding: 8px 16px;
  background-color: rgb(246, 246, 246); border-radius: 0; color: #000; cursor: pointer;
  transition: background-color var(--sp-a-d) var(--sp-a);
}
@media (hover: hover) { .share-btn:hover { background-color: rgb(227, 227, 227); } }
.share-btn__label { white-space: pre; font-family: var(--f-sans); font-weight: 500; font-size: 13px; line-height: 117%; letter-spacing: 0; }
.share-btn__icon { width: 16px; height: 16px; fill: #000; }
.post-meta { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px; flex: 1 0 0px; width: 1px; overflow: hidden; }
.post-meta__row { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; width: 100%; overflow: hidden; }
.post-meta__row > p { flex: 1 0 0px; width: 1px; white-space: pre-wrap; word-break: break-word; }
.post-meta__val { text-align: right; }

/* 8.3 Article Image – full bleed 2:1, thumbnail scale 1.3 -> 1 with the page scroll (journal.js) */
.post-image { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; }
.post-thumb { position: relative; width: 100%; height: 100%; transform: perspective(1200px) scale(1.3); will-change: transform; }
.post-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* 8.4 Section Article + rich text (8.4.1) */
.post-article { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 40px; width: 100%; padding: 60px 0 150px; }
.post-article__col { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 40px; width: 50%; }
.post-body { width: 100%; white-space: normal; word-break: break-word; overflow-wrap: break-word; }
.post-body > * + * { margin-top: 20px; }      /* o4enoe paragraph spacing */
.post-body > * + h2 { margin-top: 40px; }     /* 1ihhwxf paragraph spacing */
.post-body strong { font-weight: 700; }   /* template: Inter 700 (rich-text bold) -> DM Sans 700 */
.post-body em { font-style: italic; font-weight: 400; }
/* lists: template ol padding-left 3ch of Inter 16px = 30.28px (measured live), marker at the ol's left edge */
.post-body ol, .post-body ul { position: relative; padding-left: 30.28px; counter-reset: mk-li; }
.post-body li { position: relative; list-style: none; counter-increment: mk-li; }
.post-body ol > li::before { content: counter(mk-li, decimal) "."; position: absolute; left: -30.28px; font-variant-numeric: tabular-nums; }
.post-body ul > li::before { content: "\2022"; position: absolute; left: -30.28px; }
.post-body li > p { margin: 0; }

/* 8.5 Section Journal (related posts) */
.post-more { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 40px; width: 100%; padding: 0 20px 60px; overflow: hidden; }
.post-more__head { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; width: 100%; overflow: hidden; }
.post-more__title { flex: 1 0 0px; width: 1px; white-space: pre-wrap; word-break: break-word; }
/* section heading -> Darker Grotesque (user feedback 18), same stroke tuning as the other headings in base.css */
.post-more__title { font-family: var(--f-accent); font-weight: 650; }
.post-more__grid { display: flex; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 20px; width: 100%; overflow: hidden; }
.post-more__col { display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 20px; flex: 1 0 0px; width: 1px; }
.post-more__link { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; flex: 1 0 0px; width: 1px; }
.post-more__link > div { flex: 1 0 0px; width: 1px; }

@media (min-width: 810px) and (max-width: 1199.98px) {
  .post-intro { padding: 0 20px 120px; }
  .post-title { flex: 1 0 0px; width: 1px; }
  .post-article__col { width: 60%; }
  .post-more { padding: 0 20px 40px; }
}
@media (max-width: 809.98px) {
  .post-intro { padding: 0 20px 100px; }
  .post-top { padding: 20px 0 100px; }
  .post-title-wrap { flex-direction: column; }
  .post-title-l, .post-title-r { flex: none; width: 100%; }
  .post-title { flex: 1 0 0px; width: 1px; }
  .post-bottom { flex-direction: column; }
  .post-share { flex: none; align-self: auto; width: 100%; height: 92px; }
  .post-meta { flex: none; width: 100%; }
  .post-image { height: 365px; aspect-ratio: auto; }
  .post-article { padding: 60px 20px 150px; }
  .post-article__col { width: 100%; }
  .post-more { padding: 0 20px 40px; }
  .post-more__grid { flex-direction: column; }
  .post-more__col { flex: none; width: 100%; }
}

/* MOKKA_MAPPING 94: News-Übersicht füllt mindestens den ganzen Bildschirm – beim Aufrufen ist alles weiß,
   der Footer (samt Wortmarke) kommt erst beim Scrollen, statt angeschnitten im ersten Bild zu stehen */
.jr-main { min-height: calc(100vh + 2px); }
