/* Artikel: Einstieg in Rubrikfarbe, ruhiger Text, Lesefortschritt mit Abschnittsmarken, Merkbox. */

/* ---- Lesefortschritt: sitzt am Kopf, trägt für jeden Abschnitt eine Marke ---- */
.reader { position: sticky; top: var(--head); z-index: 30; height: 8px; background: var(--surface); }
.reader__bar { position: absolute; inset: 0; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; }
.reader__tick { position: absolute; top: 0; bottom: 0; width: 18px; margin-left: -9px; padding: 0; background: none; border: 0; cursor: pointer; }
.reader__tick::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: .55; transition: opacity 140ms ease, transform 140ms var(--ease); transform-origin: 50% 0; }
.reader__tick:hover::before, .reader__tick:focus-visible::before { opacity: 1; transform: scaleY(1.6); }
.reader__now { position: absolute; right: var(--gut); top: 100%; max-width: min(70vw, 420px); padding: 5px 9px; background: var(--ink); color: #f3ecdf; font: 400 12px/1.3 var(--mono); letter-spacing: -.03em; border-radius: 0 0 var(--r) var(--r); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.reader.is-on .reader__now { opacity: 1; }
@media (max-width: 1100px) { .reader__now { display: none; } }

/* ---- Einstieg ---- */
.intro { background: var(--c); color: var(--on); --focus: var(--on); padding: clamp(28px, 4vw, 56px) 0 0; }
.intro__crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.intro__crumb .tag { background: var(--on); color: var(--c); text-decoration: none; }
.intro__crumb .meta { color: var(--on); }
.intro h1 { margin-top: 18px; font: 600 clamp(38px, 7vw, 108px)/.95 var(--font); font-stretch: 104%; letter-spacing: -.045em; hyphens: auto; text-wrap: balance; max-width: 15.5em; }
.intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: clamp(24px, 3.4vw, 48px); align-items: start; }
.intro__lead { grid-column: span 4; font: 500 clamp(20px, 1.8vw, 26px)/1.22 var(--font); letter-spacing: -.015em; padding-bottom: 32px; }
.intro__fig { grid-column: 5 / -1; margin-bottom: -88px; position: relative; z-index: 1; }
.intro__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.intro__fig figcaption { padding-top: 16px; color: var(--ink); }
.intro + .body { padding-top: 144px; }
@media (max-width: 900px) {
  .intro__lead, .intro__fig { grid-column: 1 / -1; }
  .intro__lead { padding-bottom: 0; }
  .intro__fig { margin-bottom: -120px; }
  .intro + .body { padding-top: 168px; }
}

/* ---- Aufbau: Inhalt links, Text in der Mitte ---- */
.body { display: grid; grid-template-columns: minmax(180px, 3fr) minmax(0, 9fr); column-gap: 24px; padding-bottom: clamp(48px, 7vw, 96px); }
.toc { position: sticky; top: calc(var(--head) + 40px); align-self: start; font-size: 15px; line-height: 1.25; max-height: calc(100svh - var(--head) - 60px); overflow: auto; }
.toc__label { font: 400 13px/1.4 var(--mono); letter-spacing: -.03em; margin-bottom: 10px; }
.toc a { position: relative; display: block; padding: 7px 0 7px 12px; text-decoration: none; color: var(--muted); border-left: 2px solid var(--line); transition: color 140ms ease, border-color 140ms ease; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); font-weight: 500; border-left: 4px solid var(--c); padding-left: 10px; }
.toc-m { display: none; }
@media (max-width: 1100px) {
  .body { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-m { display: block; margin-bottom: 28px; border: 1px solid var(--ink); border-radius: var(--r); }
  .toc-m summary { padding: 12px 14px; font-weight: 500; cursor: pointer; }
  .toc-m ol { padding: 0 14px 12px; }
  .toc-m a { display: block; padding: 7px 0; text-decoration: none; border-top: 1px solid var(--line); }
}

/* ---- Fließtext: ruhig, 60 bis 75 Zeichen je Zeile, nichts bewegt sich ---- */
.prose { --measure: 36.5rem; font-size: 19px; line-height: 1.62; hyphens: auto; min-width: 0; }
.prose > * { max-width: var(--measure); }
.prose > p + p { margin-top: 1.05em; }
.prose h2:not(.merk__title) { margin-top: 2.5em; margin-bottom: .55em; font: 600 clamp(28px, 2.9vw, 40px)/1.06 var(--font); letter-spacing: -.03em; hyphens: manual; text-wrap: balance; scroll-margin-top: calc(var(--head) + 28px); }
.prose h2:not(.merk__title)::before { content: ""; display: block; width: 44px; height: 6px; margin-bottom: 16px; background: var(--c); }
.prose h3 { margin-top: 1.9em; margin-bottom: .4em; font: 600 clamp(21px, 1.8vw, 24px)/1.15 var(--font); letter-spacing: -.018em; hyphens: manual; }
.prose ul:not(.merk__list) { margin-top: 1em; }
.prose ul:not(.merk__list) li { position: relative; padding-left: 22px; }
.prose ul:not(.merk__list) li + li { margin-top: .6em; }
.prose ul:not(.merk__list) li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--c); }
.prose strong { font-weight: 600; }

@media (max-width: 560px) { .prose { font-size: 18px; } }

/* Merkbox: kompakt und laut. */
.merk { position: relative; max-width: var(--measure); margin: 0 0 2.2em; padding: 22px 24px 24px; background: var(--ink); color: #f3ecdf; border-radius: var(--r-lg); font-size: 17.5px; line-height: 1.42; hyphens: auto; border-left: 14px solid var(--c); --focus: #ffd60a; }
.merk__title { margin: 0 0 12px; font: 600 clamp(24px, 2.3vw, 30px)/1.05 var(--font); letter-spacing: -.025em; color: var(--c); hyphens: manual; }
.merk__list { counter-reset: m; }
.merk__list li { counter-increment: m; display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 10px 0; border-top: 1px solid color-mix(in oklab, #f3ecdf 24%, transparent); }
.merk__list li::before { content: counter(m); font: 500 14px/1.7 var(--mono); color: var(--c); }

/* Bilder dürfen breiter sein als der Text. */
.prose figure { max-width: none; margin-block: 2.2em; }
.prose figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); background: var(--surface); }
figcaption { margin-top: 10px; font: 400 14.5px/1.42 var(--font); color: var(--muted); max-width: 62ch; hyphens: auto; }
.intro__fig figcaption { color: var(--ink); }

/* Zitat in Rubrikfarbe: keine Bewegung, nur Fläche. */
.prose blockquote { max-width: none; margin-block: 1.8em; padding: clamp(22px, 3vw, 40px); background: var(--c); color: var(--on); border-radius: var(--r-lg); font: 600 clamp(26px, 3.2vw, 46px)/1.04 var(--font); letter-spacing: -.03em; hyphens: manual; text-wrap: balance; }

/* Tabelle: auf dem Telefon werden die Zeilen zu Blöcken. */
.tablewrap { max-width: none !important; margin-top: 1.2em; }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.36; hyphens: auto; }
thead th { padding: 10px 12px; text-align: left; font: 500 13px/1.3 var(--mono); letter-spacing: -.03em; background: var(--ink); color: #f3ecdf; }
tbody th, tbody td { padding: 14px 12px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
tbody th { font-weight: 600; }
tbody tr td:nth-child(2) { font-weight: 500; }
tbody tr:hover > * { background: color-mix(in oklab, var(--c) 14%, transparent); }
.prose > .tablenote { max-width: 33rem; margin-top: 12px !important; font-size: 15.5px; line-height: 1.42; color: var(--muted); }
@media (max-width: 720px) {
  table { table-layout: fixed; overflow-wrap: anywhere; }
  table[data-signal-labels] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table[data-signal-labels], table[data-signal-labels] tbody, table[data-signal-labels] tr, table[data-signal-labels] tbody th, table[data-signal-labels] tbody td { display: block; width: 100%; }
  table[data-signal-labels] tr { padding: 12px 0; border-bottom: 2px solid var(--ink); }
  table[data-signal-labels] tbody th, table[data-signal-labels] tbody td { padding: 3px 0; border: 0; }
  table[data-signal-labels] tbody th { font-size: 19px; }
  table[data-signal-labels] tbody td[data-label]::before { content: attr(data-label) ": "; font: 500 12.5px/1.5 var(--mono); letter-spacing: -.03em; color: var(--muted); }
}
/* Quellen. */
.sources { margin-top: 1em; counter-reset: q; font-size: 16px; line-height: 1.4; hyphens: manual; }
.sources li { counter-increment: q; display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 10px 0; border-top: 1px solid var(--line); }
.sources li::before { content: counter(q); font: 400 13px/1.8 var(--mono); color: var(--muted); }
.sources a { overflow-wrap: anywhere; color: var(--cobalt); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.sources a:hover { text-decoration-thickness: 2px; }

/* ---- Weiterlesen ---- */
.more { padding: clamp(36px, 5vw, 64px) 0; background: var(--surface); }
.more h2 { font: 600 clamp(30px, 4vw, 56px)/1 var(--font); letter-spacing: -.035em; margin-bottom: 20px; }
.more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.more__grid .card { --t-card: clamp(21px, 2vw, 28px); }
.more__grid .card[data-size] { grid-column: auto; }
@media (max-width: 640px) { .more__grid { grid-template-columns: 1fr; } }

/* CMS integration: preserve full image subjects, credits, editorial lists and source dates. */
.signal-article .intro__home { font: 500 13px/1.4 var(--font); text-underline-offset: .2em; }
.signal-article .intro__byline { margin-top: 24px; font: 400 14px/1.5 var(--font); letter-spacing: 0; }
.signal-article .intro__fig figcaption { max-width: none; overflow-wrap: anywhere; }
.signal-article .intro__fig figcaption { margin-top: 0; padding: 16px 18px; background: var(--bg); color: var(--ink); }
.signal-article .photo-credit { display: block; margin-top: 5px; }
.signal-article .article-hero.portrait-photo { object-fit: contain; background: var(--surface); }
.signal-article .prose > ol { list-style: decimal; padding-left: 1.5em; margin-block: 1em; }
.signal-article .prose > ol li + li { margin-top: .55em; }
.signal-article .prose > table { margin-block: 1.5em; }
.signal-article .prose > table + p { margin-top: 1.05em; }
.signal-article .prose a { overflow-wrap: anywhere; text-underline-offset: .18em; }
.signal-article .prose pre { max-width: 100%; overflow-x: auto; padding: 18px; background: var(--surface); font: 400 14px/1.6 var(--mono); }
.signal-article .sources { padding: 0; background: transparent; border: 0; }
.signal-article .sources small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.signal-article .sources li > div { min-width: 0; }
.signal-article .article-share { margin-top: 32px; font-size: 16px; }
.signal-article .article-about { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 16px; }
.signal-article .article-about h2 { margin-top: 20px; font-size: 24px; }
.signal-article .article-about h2::before { display: none; }
.signal-article .article-about p { margin-bottom: 12px; }
.more__grid .story-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; padding-block: 20px; border-top: 1px solid var(--ink); min-width: 0; }
.more__grid .story-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.more__grid .story-card img.portrait-photo { object-fit: contain; }
.more__grid .story-card h3 { font: 600 clamp(21px, 2vw, 28px)/1.12 var(--font); letter-spacing: -.025em; }
.more__grid .story-card h3 a { text-decoration: none; }
.more__grid .story-card h3 a:hover { text-decoration: underline; text-underline-offset: .12em; }
.more__grid .story-card p { display: none; }
.more__grid .story-card .eyebrow { font: 500 12px/1.4 var(--mono); margin-bottom: 10px; }
.more__grid .story-meta { font: 400 12px/1.5 var(--mono); color: var(--muted); margin-top: 12px; }
@media (max-width: 560px) {
  .intro__crumb .tag { white-space: normal; line-height: 1.3; }
  .intro__byline { margin-top: 16px; }
  .more__grid .story-card { gap: 14px; }
}
@media print {
  .reader, .toc, .toc-m, .more, .article-share { display: none; }
  .signal-article .body { display: block; }
  .signal-article .intro, .signal-article .prose { color: #000; background: #fff; }
  .signal-article .intro__fig { margin-bottom: 0; }
  .signal-article .intro + .body { padding-top: 32px; }
  .signal-article .prose > * { max-width: none; }
}
