/* feed.nau — Timeline im Layout von X.
 *
 * Übernommen: 600px-Spalte, Trennlinien statt Kästen, Text vor Medien,
 * Hover auf der ganzen Zeile, 16px Radius auf Bildern, monochrome Grundfarben.
 * Abweichung: deutlich grössere Schrift als X (17px statt 15px Fliesstext),
 * weil hier Nachrichtentexte stehen und keine Kurznachrichten.
 *
 * Der Akzent bleibt warm statt X-blau — die Dachzeile ist das einzige
 * Element, das ihn trägt, und sie muss das Thema sofort erkennbar machen.
 */

:root {
  --bg:        #ffffff;
  --fg:        #0f1419;
  --muted:     #536471;
  --line:      #eff3f4;
  --hover:     rgba(0, 0, 0, .028);
  --accent:    #b8341f;
  --radius:    16px;
  --col:       600px;
  --pad:       16px;
  --tap:       44px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #000000;
    --fg:     #e7e9ea;
    --muted:  #71767b;
    --line:   #2f3336;
    --hover:  rgba(255, 255, 255, .03);
    --accent: #ff8a6a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

/* ── Kopf ─────────────────────────────────────────────
   Sticky wie bei X, mit leichtem Blur darunter. */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: block;
  max-width: var(--col); margin: 0 auto;
  padding: .8rem var(--pad) .5rem;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em;
  text-decoration: none;
}
.brand span { color: var(--accent); }

.cats {
  display: flex;
  max-width: var(--col); margin: 0 auto;
  overflow-x: auto;
  padding: 0 calc(var(--pad) - 4px);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cats::-webkit-scrollbar { display: none; }

.cats a {
  flex: 0 0 auto;
  min-height: var(--tap);
  display: flex; align-items: center;
  padding: 0 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .97rem; font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.cats a:hover { background: var(--hover); }
.cats a.on { color: var(--fg); font-weight: 800; border-bottom-color: var(--accent); }

/* ── Spalte ───────────────────────────────────────── */
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 0 4rem; }

.sec-h {
  padding: 1.2rem var(--pad) .5rem;
  font-size: .85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}

/* ── Zeile statt Karte ────────────────────────────────
   Kein Rahmen, kein Radius, keine Lücke — nur eine Trennlinie
   und ein Hover über die volle Breite. */
.card {
  position: relative;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  transition: background-color .12s ease;
}
.card:hover { background: var(--hover); }

/* Der Titel-Link deckt die ganze Zeile ab — wie ein X-Post anklickbar,
   ohne den Text in einen Block-Link zu sperren. */
.card__h a::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
}
.card__img, .meta a { position: relative; z-index: 2; }

.kicker {
  margin: 0 0 .2rem;
  color: var(--accent);
  font-size: .82rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
}

.card__h {
  margin: 0 0 .3rem;
  font-size: 1.24rem; line-height: 1.3; font-weight: 700;
  letter-spacing: -.011em;
}
.card__h a { text-decoration: none; }
.card:hover .card__h a { text-decoration: underline; text-underline-offset: 2px; }

.card__t {
  margin: 0;
  font-size: 1.06rem; line-height: 1.5;
  color: var(--fg);
}

/* Medien NACH dem Text, wie bei X. */
.card__img {
  display: block;
  margin: 12px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.card__img img { width: 100%; }

.meta {
  margin: .7rem 0 0;
  display: flex; flex-wrap: wrap; gap: 1rem;
  font-size: .9rem; color: var(--muted);
}
.meta .med  { color: var(--accent); font-weight: 700; }
.meta .orig { opacity: .7; }

/* Hero: gleiche Zeile, nur grösserer Satz. */
.card--hero .card__h { font-size: 1.6rem; line-height: 1.22; }
.card--hero .card__t { font-size: 1.14rem; }

/* Textzeile ohne Bild — die Dachzeile trägt sie. */
.card--text { border-left: 3px solid var(--accent); padding-left: calc(var(--pad) - 3px); }

/* ── Werbung ──────────────────────────────────────── */
.ad-mobile {
  display: block; text-align: center;
  min-height: 1px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.ad-mobile iframe[height="0"] { display: none; }

.ad-desktop {
  position: fixed; top: 100px; left: calc(50% + 330px);
  width: 300px; z-index: 10;
  visibility: hidden; pointer-events: none;
}

/* ── Themenseite ──────────────────────────────────── */
.article { padding: 1rem var(--pad) 0; }

.lead-img {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.2rem;
}

.article h1 {
  margin: .2rem 0 .7rem;
  font-size: 1.85rem; line-height: 1.22; font-weight: 800;
  letter-spacing: -.018em;
}

.article .abriss {
  font-size: 1.2rem; line-height: 1.45; font-weight: 500;
  margin: 0 0 1.3rem;
}

.article .text p {
  margin: 0 0 1.15rem;
  font-size: 1.12rem; line-height: 1.62;
}

.facts {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.facts h2 {
  margin: 0 0 .6rem; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
}
.facts ul { margin: 0; padding-left: 1.15rem; }
.facts li { margin-bottom: .5rem; font-size: 1.03rem; line-height: 1.5; }

.sources { margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.sources h2 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin: 0 0 .8rem;
}
.sources ul { margin: 0; padding: 0; list-style: none; }
.sources li {
  padding: .7rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.03rem; line-height: 1.45;
}
.sources li:last-child { border-bottom: 0; }
.sources a { text-decoration: none; }
.sources a:hover { text-decoration: underline; }
.sources .meta { margin-top: .25rem; font-size: .88rem; }

.note {
  margin: 1.6rem 0;
  padding: .85rem 1rem;
  border-left: 3px solid var(--line);
  font-size: .97rem; line-height: 1.5; color: var(--muted);
}

.foot {
  max-width: var(--col); margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.6rem var(--pad) 3rem;
  font-size: .95rem; line-height: 1.5; color: var(--muted);
}

/* ── Tablet und aufwärts ──────────────────────────── */
@media (min-width: 768px) {
  .ad-mobile  { display: none; }
  .ad-desktop { visibility: visible; pointer-events: auto; }

  .card--hero .card__h { font-size: 1.75rem; }
  .article h1 { font-size: 2.1rem; }
}

@media (min-width: 1100px) {
  .ad-desktop { left: calc(50% + 340px); }
}

/* Sichtbarer Fokus — der ganzflächige Link darf Tastaturnutzung nicht verstecken. */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.card:focus-within { background: var(--hover); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
