/* app.css part 6/8: weekly review, SSR article and info pages, search chips, synopsis history. Split from app.css 10.11.2026; the parts load in this order [see css_parts.py], one cascade. */
/* ─────────────────────── Weekly review (/woche) ─────────────────────── */
/* Inherits front-page tokens + .topbar/.hero/.brand. Only additions here. */

.week-wrap { max-width: 820px; margin: 0 auto; padding: 0 1.5rem 6rem; }
.week-hero { padding: 2.25rem 1.5rem 1rem; }
.week-daterange {
  font-family: var(--sans); font-size: 1.4rem; color: var(--fg-mid);
  margin: 0; line-height: 1.2;
}
.week-note {
  font-family: var(--sans); font-size: .92rem; line-height: 1.7;
  color: var(--fg-mid); margin: 0 0 2.5rem; max-width: 60ch;
  padding-bottom: 2rem; border-bottom: var(--rule-w) solid var(--rule);
}

.week-section { margin: 0 0 2.75rem; }
.week-section-head {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--fg-dim);
  margin: 0 0 1.25rem; padding-bottom: .5rem;
  border-bottom: var(--rule-w) solid var(--rule-soft);
}
.week-top .week-section-head { color: var(--accent-strong); }

.week-item { display: flex; gap: .85rem; padding: 0 0 1.5rem; }
.week-item + .week-item {
  border-top: var(--rule-w) solid var(--rule-soft); padding-top: 1.5rem;
}
.week-dot {
  flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%;
  margin-top: .55rem;
}
.week-item-body { flex: 1 1 auto; min-width: 0; }
.week-title {
  font-family: var(--display); font-weight: 600; font-size: 1.25rem;
  line-height: 1.25; letter-spacing: -.01em; color: var(--fg);
  text-decoration: none; display: inline-block;
}
.week-title:hover { color: var(--accent-strong); }
.week-item.lead .week-title { font-size: 1.6rem; line-height: 1.15; }
.week-meta {
  font-family: var(--sans); font-size: .78rem; color: var(--fg-dim);
  margin: .35rem 0 .6rem;
}
.week-teaser {
  font-family: var(--sans); font-size: 1.12rem; line-height: 1.5;
  color: var(--fg-mid); margin: 0;
}
.week-item.lead .week-teaser { font-size: 1.25rem; color: var(--fg); }

.week-more { margin-top: .6rem; }
.week-more > summary {
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  color: var(--accent-strong); cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: .35rem; user-select: none;
}
.week-more > summary::-webkit-details-marker { display: none; }
.week-more > summary::before {
  content: "▸"; font-size: .72rem; transition: transform .15s ease;
}
.week-more[open] > summary::before { transform: rotate(90deg); }
.week-more[open] > summary { color: var(--fg-dim); }
/* "mehr anzeigen" [show more; UI text]: the rest continues the paragraph inline [checkbox + label, no JS], no second box */
.week-more-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.week-rest { display: none; }
.week-more-input:checked ~ .week-teaser .week-rest { display: inline; }
.week-toggle { color: var(--accent-strong); font-weight: 600; cursor: pointer; white-space: nowrap; }
.week-toggle::after { content: "mehr anzeigen"; }
.week-more-input:checked ~ .week-teaser .week-toggle::after { content: "weniger"; }
.week-more-input:focus-visible ~ .week-teaser .week-toggle { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.week-consensus {
  font-family: var(--sans); font-size: .92rem; line-height: 1.75;
  color: var(--fg-mid); margin: .7rem 0 0; padding: .85rem 1rem;
  background: var(--bg-soft); border: var(--rule-w) solid var(--rule-soft);
  border-radius: var(--radius-sm); max-width: 68ch;
}

.week-empty {
  font-family: var(--sans); font-size: 1.2rem; color: var(--fg-mid);
  padding: 2rem 0;
}
.week-footer {
  padding: 2.5rem 0 0; border-top: var(--rule-w) solid var(--rule);
  margin-top: 1rem;
}
.week-footer p {
  font-family: var(--sans); font-size: .8rem; color: var(--fg-dim); margin: 0;
}
.week-footer a { color: var(--accent); text-decoration: none; }

/* prev/next navigation between weeks — 1:1 in day-nav style */
/* .week-nav reuses .day-nav + .day-current from the day pager. */
.week-nav { margin: .5rem 0 2rem; }
.day-nav-link {
  appearance: none; background: var(--bg-soft); border: var(--rule-w) solid var(--rule);
  border-radius: 999px; padding: .55rem 1.1rem;
  font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--fg-mid);
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: color .15s ease, border-color .15s ease, transform .12s ease;
}
.day-nav-link:hover:not(.is-disabled) { color: var(--fg); border-color: var(--accent); transform: translateY(-1px); }
.day-nav-link.is-disabled { opacity: .35; cursor: default; pointer-events: none; }
.week-nav-archive { text-align: center; margin: 0 0 .5rem; }
.week-nav-archive a {
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  color: var(--accent); text-decoration: none;
}
.week-nav-archive a:hover { color: var(--accent-strong); }

/* archive index list */
.week-archive-list { list-style: none; margin: 0; padding: 0; }
.week-archive-list li { margin: 0; }
.week-archive-list li + li { border-top: var(--rule-w) solid var(--rule-soft); }
.week-archive-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1rem .25rem; text-decoration: none; color: var(--fg);
  transition: padding-left .15s ease, color .15s ease;
}
.week-archive-list a:hover { padding-left: .6rem; color: var(--accent-strong); }
.week-archive-list .wa-kw {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
}
.week-archive-list .wa-range {
  font-family: var(--sans); font-size: .85rem; color: var(--fg-dim);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .week-archive-list a { flex-direction: column; gap: .15rem; }
}

/* ── SSR article page (/artikel/<slug>-<id>) ── */
.art-wrap { max-width: 820px; margin: 0 auto; padding: 0 1.5rem 6rem; }
.art-hero { padding: 2.25rem 1.5rem 1rem; }
.art-hero h1 { font-size: 1.9rem; line-height: 1.18; margin: .35rem 0 .5rem; }
.art-meta { font-family: var(--sans); font-size: .85rem; color: var(--fg-dim); margin: 0; }
.art-ainote {
  font-family: var(--sans); font-size: .82rem; color: var(--fg-dim);
  background: var(--tint); border-left: 3px solid var(--accent);
  padding: .7rem .9rem; border-radius: 4px; margin: 0 1.5rem 2rem;
}
.art-body { margin: 0 1.5rem; }
.art-empty { font-family: var(--sans); color: var(--fg-dim); }
.art-sources { margin: 2.5rem 1.5rem 0; }
.art-sources-h {
  font-family: var(--sans); font-size: 1rem; font-weight: 650;
  margin: 0 0 .8rem; padding-bottom: .4rem; border-bottom: var(--rule-w) solid var(--rule);
}
.art-source-list { list-style: none; padding: 0; margin: 0; }
.art-source-item { font-family: var(--sans); font-size: .9rem; margin: 0 0 .65rem; line-height: 1.4; }
.art-source-item a { color: var(--accent); text-decoration: none; }
.art-source-item a:hover { text-decoration: underline; }
.art-source-name { color: var(--fg-dim); }
.art-fullview { margin: 2.25rem 1.5rem 0; font-family: var(--sans); font-size: .92rem; }
.art-fullview a { color: var(--accent); text-decoration: none; font-weight: 550; }
.art-fullview a:hover { text-decoration: underline; }

/* Crawlable card permalink to the SSR article page -- visually taken
   out of the flow (not display:none, so crawlers follow the href). */
.card-permalink {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 640px) {
  .art-wrap { padding: 0 1.1rem 4rem; }
  .art-hero { padding: 2rem 0 .5rem; }
  .art-hero h1 { font-size: 1.5rem; }
  .art-ainote, .art-body, .art-sources, .art-fullview { margin-left: 0; margin-right: 0; }
}

@media (max-width: 640px) {
  .week-wrap { padding: 0 1.1rem 4rem; }
  .week-hero { padding: 2rem 0 .5rem; }
  .week-daterange { font-size: 1.15rem; }
  .week-note { margin-bottom: 2rem; }
  .week-item.lead .week-title { font-size: 1.35rem; }
  .week-title { font-size: 1.12rem; }
}

/* ── SSR info pages (/ueber, /impressum, /datenschutz) ── */
.info-wrap { max-width: 720px; margin: 0 auto; padding: 0 1.5rem 6rem; }
.info-hero { padding: 2.25rem 1.5rem 1rem; }
.info-hero h1 { font-size: 1.9rem; }
.info-page-text { padding: 0 0 1rem; }
.info-page-text a { color: var(--accent); text-decoration: none; }
@media (max-width: 640px) {
  .info-wrap { padding: 0 1.1rem 4rem; }
  .info-hero { padding: 2rem 0 .5rem; }
  .info-hero h1 { font-size: 1.55rem; }
}

/* ── Visible search bar + topic chips below the hero (feed) ── */
/* Sticky toolbar: sits below the teaser cards, sticks while scrolling
   under the fixed topbar; the day nav (.dayhead) docks below it
   (top: calc(--topstack-h + --feedtools-h)). Height is measured via JS. */
.feedtools {
  position: sticky; top: var(--topstack-h, 0px); z-index: 16;
  background: var(--bg); padding-top: .3rem; padding-bottom: .3rem;
  margin-bottom: 0;
}
.topic-chips {
  display: flex; flex-wrap: nowrap; gap: .5rem; align-items: center;
  max-width: 820px; margin: 0 auto; padding: 0 1.5rem;
}
.topic-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  padding: .4rem .85rem .4rem .7rem; border-radius: 999px;
  border: var(--rule-w) solid var(--rule); background: var(--bg-soft);
  color: var(--fg); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: border-color .15s ease;
}
@media (hover: hover) { .topic-chip:hover { border-color: var(--accent); } }  /* Touch: otherwise the border stays stuck on the chip below after tapping the bar */
.topic-chip .d { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.topic-chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.topic-chip.chip-all { padding: .4rem .85rem; }
.nav-chip { color: var(--fg-mid); background: transparent; }
.nav-chip:hover { color: var(--accent-strong); }
.nav-chip svg { width: 14px; height: 14px; display: block; }
@media (max-width: 640px) {
  .topic-chips { padding: 0 1rem; margin-top: 0; }
}

/* ── Synopsis history (reader changelog, ADR 0040) ─────────────────── */
.syn-history-btn {
  appearance: none; border: var(--rule-w) solid var(--rule); background: var(--bg-soft);
  color: var(--fg-mid); font-family: var(--sans); font-size: .75rem; font-weight: 600;
  padding: .08rem .5rem; margin-left: .45rem; border-radius: 999px; cursor: pointer;
  vertical-align: baseline; transition: border-color .15s ease, color .15s ease;
}
.syn-history-btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.synhist-overlay {
  position: fixed; inset: 0; background: var(--scrim);
  display: none; align-items: flex-start; justify-content: center; z-index: 1500;
  padding: 1.5rem 1rem; overflow-y: auto; backdrop-filter: blur(3px);
}
.synhist-overlay.open { display: flex; }
.synhist-panel {
  background: var(--bg-soft); border: var(--rule-w) solid var(--rule); border-radius: 22px;
  width: 100%; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.5rem 1.6rem;
}
.synhist-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.synhist-head h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--fg); }
.synhist-close {
  appearance: none; border: none; background: none; font-size: 1.7rem; line-height: 1;
  color: var(--fg-dim); cursor: pointer; padding: 0 .2rem;
}
.synhist-close:hover { color: var(--fg); }
.synhist-intro { margin: .5rem 0 1.1rem; font-size: .875rem; line-height: 1.5; color: var(--fg-mid); }
.shi-loading, .shi-empty { font-size: .875rem; color: var(--fg-dim); margin: .5rem 0; }
.shi-list { list-style: none; margin: 0; padding: 0; }
.shi-version { padding: 0 0 .9rem; margin: 0 0 .9rem; border-bottom: var(--rule-w) solid var(--rule-soft); }
.shi-version:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.shi-date { font-size: .75rem; font-weight: 700; color: var(--fg-dim); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .5rem; }
.shi-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.shi-ev { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .55rem; font-size: .875rem; line-height: 1.4; }
.shi-tag {
  flex: none; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: .1rem .45rem; border-radius: 999px; white-space: nowrap;
}
.shi-neu .shi-tag { background: var(--accent-soft); color: var(--accent-strong); }
.shi-upd .shi-tag { background: color-mix(in oklab, var(--accent) 16%, transparent); color: var(--accent-strong); }
.shi-zur .shi-tag { background: var(--bg-tint); color: var(--fg-dim); }
.shi-punkt { color: var(--fg); }
.shi-zur .shi-punkt { color: var(--fg-mid); text-decoration: line-through; text-decoration-color: var(--fg-dim); }
.shi-src { flex-basis: 100%; font-size: .75rem; color: var(--fg-dim); font-style: italic; }
@media (max-width: 640px) {
  .synhist-panel { padding: 1.2rem 1.1rem 1.4rem; border-radius: 18px; }
}

