/* News-Modul — Editorial-Typografie (Orientierung: Monocle, NZZ Feuilleton, Wallpaper).
   S/W; Masthead in Printvetica, Artikeltypografie in Fournier Pro.
   Tokens und Fonts stammen aus ../styles.css. */

/* ── Maße ─────────────────────────────────────────────────────────────── */
:root {
  --news-measure: 38rem; /* ~65 Zeichen Satzspiegel */
}

.news-main {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(7rem, 12vh, 10rem) clamp(1.5rem, 6vw, 4rem) clamp(2rem, 6vw, 5rem);
}

/* ── Seitentitel (Masthead) — Stufe 1, größtes Element ────────────────── */
.news-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.news-head h1 {
  font-family: 'Printvetica', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}
.news-head p {
  font-family: 'Fournier Pro', serif;
  font-style: italic;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  margin: 0;
}

/* ── Rubrik-Filter (Tabs) ─────────────────────────────────────────────── */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}
.news-filter button {
  appearance: none;
  background: var(--page-bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: 'Printvetica', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.news-filter button:hover,
.news-filter button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* ── Klartext der Woche (kuratiert, oberhalb des Feeds) ───────────────── */
.news-featured {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.news-featured[hidden] { display: none; }
.news-featured-head {
  font-family: 'Printvetica', sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}
.news-featured-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
/* Etwas groessere Kartendarstellung als der Feed. */
.news-featured .news-card { border-bottom: none; padding: 0; }
.news-featured .news-card-title { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.news-featured .news-lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); }

/* Sortierumschalter (Neueste / Meistgelesen) — dezente Textlinks. */
.news-sort {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: -2rem 0 2.75rem;
  font-family: 'Printvetica', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
}
.news-sort a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 0.15rem 0;
}
.news-sort a:hover { color: var(--ink); }
.news-sort a[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ── Übersichtsliste ──────────────────────────────────────────────────── */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.news-card {
  border-bottom: 1px solid var(--line);
  padding: 0 0 2.25rem;
}
.news-list li.news-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.news-card a.news-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.news-card a.news-card-link:hover .news-card-title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

/* Labels (Eyebrow + Tags): kleine Versalien, kein Rahmen */
.news-eyebrow {
  font-family: 'Printvetica', sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

/* Artikelüberschrift auf der Karte — Stufe 2, Mixed Case, Serif */
.news-card-title {
  font-family: 'Fournier Pro', serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
/* Lead auf der Karte — Stufe 3, kursiv */
.news-card p.news-lead {
  font-family: 'Fournier Pro', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: var(--news-measure);
}

/* Label-Stil (PRESSESPIEGEL/PREPRINT): rahmenlos, kleine Versalien */
.news-tag {
  font-family: 'Printvetica', sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.55rem;
  color: var(--muted);
  margin-left: 0.6rem;
  vertical-align: middle;
}

.news-empty {
  text-align: center;
  font-family: 'Fournier Pro', serif;
  font-style: italic;
  color: var(--muted);
  padding: 3rem 0;
}

/* ── Detailseite ──────────────────────────────────────────────────────── */
.news-detail {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(7rem, 12vh, 10rem) clamp(1.5rem, 6vw, 4rem) clamp(2rem, 6vw, 5rem);
}
.news-detail .news-eyebrow {
  margin-bottom: 1.25rem;
}
/* Artikelüberschrift — Stufe 2, Mixed Case, Serif, leichter */
.news-detail h1 {
  font-family: 'Fournier Pro', serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.18;
  margin: 0 0 1.5rem;
  max-width: var(--news-measure);
}
/* Lead — Stufe 3, kursiv, zwischen Überschrift und Body; eine Stufe kleiner, damit er die H1 nicht bedrängt */
.news-detail .news-lead {
  font-family: 'Fournier Pro', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 2.25rem;
  max-width: var(--news-measure);
}
/* Body — Stufe 4, Basisgröße, großzügiger Zeilenabstand, 65-Zeichen-Spiegel */
.news-detail .news-body p {
  font-family: 'Fournier Pro', serif;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
  margin: 0 0 1.4rem;
  max-width: var(--news-measure);
}
.news-detail .news-body p:last-child {
  margin-bottom: 0;
}
.news-detail .news-source {
  font-family: 'Printvetica', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 3rem;
  max-width: var(--news-measure);
}
.news-detail .news-source a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.news-detail .news-back {
  margin-top: 2.5rem;
}
.news-detail .news-back a {
  font-family: 'Fournier Pro', serif;
  font-style: italic;
  color: var(--muted);
  text-decoration: none;
}
.news-detail .news-back a:hover {
  color: var(--ink);
}

/* Prev/Next-Navigation, unter der Quellenangabe */
.news-detail .news-prevnext {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: var(--news-measure);
}
.news-detail .news-pn {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--ink);
  max-width: 47%;
}
.news-detail .news-pn-next { text-align: right; margin-left: auto; }
.news-detail .news-pn-empty { visibility: hidden; }
.news-detail .news-pn-dir {
  font-family: 'Printvetica', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  color: var(--muted);
}
.news-detail .news-pn-title {
  font-family: 'Fournier Pro', serif;
  font-size: 0.98rem;
  line-height: 1.25;
}
.news-detail .news-pn:hover .news-pn-title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

/* Actions-Bar auf der Detailseite: Like, Teilen, Aufrufe. Dezent, links
   ausgerichtet auf den Satzspiegel. Inline-SVGs erben currentColor. */
.news-detail .news-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: var(--news-measure);
  font-family: 'Printvetica', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  color: var(--muted);
}
.news-detail .news-act {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.news-detail .news-act svg { width: 0.95rem; height: 0.95rem; }
.news-detail .news-like { cursor: pointer; }
.news-detail .news-like:hover, .news-detail .news-share:hover { color: var(--ink); }
.news-detail .news-like.is-liked { color: var(--ink); }
.news-detail .news-like.is-liked .news-like-icon { color: var(--ink); }
.news-detail .news-share.is-copied { color: var(--ink); }
.news-detail .news-views { cursor: default; }
.news-detail .news-views[hidden] { display: none; }

/* Pagination unter dem Feed: Seitenzahlen + Vor/Zurueck, dezent. */
.news-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3rem;
  font-family: 'Printvetica', sans-serif;
}
.news-pagination:empty { display: none; }
.news-page {
  appearance: none;
  background: var(--page-bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: inherit;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  min-width: 2.2rem;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.news-page:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.news-page.is-current { background: var(--ink); color: var(--paper); cursor: default; }
.news-page:disabled { opacity: 0.35; cursor: default; }
.news-page-gap {
  color: var(--muted);
  padding: 0 0.2rem;
  font-size: 0.72rem;
}
