/* ==========================================================================
   /<sprache>/news — Neuigkeiten und Jahresrückblick (Designvorschlag 30.11.2026)
   Eigene nw-*-Klassen auf den gemeinsamen --bt-*-Tokens; wird nach site.css und
   seiten.css geladen (lib/news.js). Inhalte: content/news/ · Skript: assets/js/news.js
   Aufbau: Jahreswahl im Hero · je Jahr „Das Jahr in Kürze“ (Momente, Kacheln),
   „Monat für Monat“ (Monatsband, klebende Filterleiste, Zeitstrahl), Sprachzweige ·
   Leseansicht (Aufmacherbild oder Video, Fotorückschau mit Großansicht) · Hinweis für Spender.
   Richtungen nur über logische Eigenschaften
   (inline-start/-end), damit Farsi und Arabisch ohne eigene Regeln spiegeln.
   ========================================================================== */

/* ---------- Zustand ---------- */

/* Alle Jahre stehen im HTML. Mit Skript ist nur das gewählte zu sehen, ohne Skript alle untereinander. */
html.js .nw-jahr:not(.ist-aktiv) { display: none; }
.nw-jahr__titel {
  max-width: 1200px; margin: 0 auto; padding: 72px 40px 0;
  font: 900 108px/0.9 var(--bt-font-body); letter-spacing: -0.04em; color: var(--bt-accent);
}
html.js .nw-jahr__titel { display: none; }
html:not(.js) .nw-jahr + .nw-jahr { border-top: 1px solid var(--bt-grey-200); }
/* Adresse mit Zustand (?jahr=…): unsichtbar, bis news.js ihn hergestellt hat; spätestens nach 2 s sichtbar */
html.nw-laedt .nw { visibility: hidden; animation: nw-da 0s 2s forwards; }
@keyframes nw-da { to { visibility: visible; } }
@keyframes nw-ein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.nw-jahr.nw-wechsel { animation: nw-ein 420ms var(--bt-ease) backwards; }

/* ---------- Hero: Jahreswahl ---------- */

/* Die Jahre füllen die Breite des Hero: je Jahr eine Fläche, das gewählte weiß. Kommt ein Jahr dazu, werden sie schmaler. */
.nw-jahre { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.nw-jahre__knopf {
  box-sizing: border-box; display: flex; flex-direction: column; min-width: 0; padding: 20px 26px 22px;
  border-radius: 28px; color: #fff; text-decoration: none;
  background: color-mix(in srgb, #fff 13%, transparent);
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
  transition: background-color 160ms ease, color 160ms ease, transform 220ms var(--bt-ease);
}
.nw-jahre__knopf:hover { background: color-mix(in srgb, #fff 23%, transparent); transform: translateY(-3px); }
.nw-jahre__knopf:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 28px; }
.nw-jahre__zahl { font: 900 68px/0.9 var(--bt-font-body); letter-spacing: -0.05em; }
.nw-jahre__info { margin-top: 12px; font-size: 14.5px; font-weight: 600; line-height: 1.3; opacity: 0.92; }
.nw-jahre__motto { margin-top: 2px; font-size: 14px; line-height: 1.35; opacity: 0.74; }
.nw-jahre__knopf.ist-aktiv { background: var(--bt-bg); border-color: var(--bt-bg); color: var(--bt-fg); }
.nw-jahre__knopf.ist-aktiv .nw-jahre__zahl { color: var(--bt-accent); }
.nw-jahre__knopf.ist-aktiv .nw-jahre__motto { opacity: 1; color: var(--bt-grey-600); }
.nw-jahre__knopf--fern { border-style: dashed; }
.nw-jahre__knopf--fern .nw-jahre__zahl { opacity: 0.8; }

/* ---------- Gemeinsame Kleinteile ---------- */

/* Kennzeichnung der automatischen Zusammenfassungen */
.nw-ki {
  display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 7px 14px; padding-inline-start: 11px;
  border-radius: 9999px; background: var(--bt-grey-50); border: 1px solid var(--bt-grey-200);
  font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--bt-grey-600);
}
.nw-ki__punkt { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bt-color-secondary); }
/* Platzhalter-Marke: gestrichelt, damit sie nach „vorläufig“ aussieht */
.nw-platz {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 9999px; border: 1px dashed var(--bt-grey-400);
  font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bt-grey-600); white-space: nowrap;
}
.nw-platz--hell { border-color: rgba(255, 255, 255, 0.65); color: rgba(255, 255, 255, 0.9); }
.nw-zwischen { margin: 60px 0 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bt-grey-600); }
/* Bereichs-Marke und Herkunft eines Beitrags */
.nw-marke {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 9999px; border: 1px solid var(--bt-grey-200);
  background: var(--bt-bg); color: var(--bt-fg); font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap;
}
.nw-herkunft {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; line-height: 1.25;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--bt-grey-600); white-space: nowrap;
}
.nw-herkunft::before { content: ""; box-sizing: border-box; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--bt-grey-400); }
.nw-herkunft--app::before { border-color: var(--bt-color-secondary); background: var(--bt-color-secondary); }
.nw-herkunft--jahresbericht::before { border-color: var(--bt-color-primary); background: var(--bt-color-primary); border-radius: 2px; }
.nw-tag--jahr .nw-tag__m { font-variant-numeric: tabular-nums; }

/* Vorschaubild eines Beitrags (Zeitstrahl, kleine Moment-Kacheln): Fläche mit runden Ecken, das Bild füllt sie */
.nw-daumen { position: relative; display: block; flex: none; overflow: hidden; background: var(--bt-grey-100); }
.nw-daumen img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--bt-ease); }
/* Hochformate (App-Bildschirmfotos) zeigen ihren oberen Teil */
.nw-daumen--hoch img { object-position: center top; }
/* Abspielmarke auf dem Vorschaubild eines Beitrags mit Video */
.nw-spiel {
  position: absolute; inset-inline-start: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.62); color: #fff;
}
.nw-spiel svg { width: 9px; height: 11px; margin-inline-start: 2px; }
.nw-spiel--gross { inset: 50% auto auto 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; background: #fff; color: var(--bt-color-primary); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5); }
.nw-spiel--gross svg { width: 20px; height: 24px; margin-inline-start: 5px; }
/* Marken „Video“ und „8 Fotos“: gefüllt, damit sie sich von der Bereichs-Marke abheben */
.nw-anhang {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 9999px; background: var(--bt-fg); color: var(--bt-bg);
  font-size: 11px; font-weight: 600; line-height: 1.25; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.nw-anhang svg { width: 8px; height: 9px; }

/* ---------- 01 Das Jahr in Kürze ---------- */

.nw-kuerze__ki { margin-top: 20px; }
@media (min-width: 901px) { .nw-kuerze__ki, .nw-band, .nw-entwurf, .nw-zusammen { margin-inline-start: 260px; } }

.nw-momente { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.nw-moment {
  display: flex; flex-direction: column; padding: 28px; border-radius: 32px;
  background: var(--bt-grey-50); border: 1px solid var(--bt-grey-200); color: var(--bt-fg); text-decoration: none;
}
.nw-moment > * { position: relative; }
.nw-moment:focus-visible { outline: 2px solid var(--bt-focus-ring); outline-offset: 3px; border-radius: 32px; }
.nw-moment__grad, .nw-moment > .bt-grain { position: absolute; inset: 0; }
.nw-moment__grad { background: linear-gradient(160deg, var(--bt-color-secondary) 0%, var(--bt-color-primary) 100%); }
.nw-moment__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bt-grey-600);
}
.nw-moment__nr {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bt-fg); color: var(--bt-bg); font: 800 12.5px/1 var(--bt-font-body); letter-spacing: 0;
}
.nw-moment__datum { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 13px; }
.nw-moment__titel { margin: 16px 0 0; font-size: 23px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.nw-moment__text { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--bt-grey-600); }
.nw-moment__mehr { margin-top: auto; padding-top: 18px; font-size: 14.5px; font-weight: 600; }
.nw-moment__inhalt { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
/* kleine Kachel mit Bild: Text links, Vorschaubild rechts */
.nw-moment.hat-bild:not(.nw-moment--gross) { flex-direction: row; align-items: stretch; gap: 20px; }
/* Querformate ganz zeigen (flaches Vorschaubild), Cover quadratisch */
.nw-moment__daumen { align-self: center; width: 148px; height: clamp(84px, calc(148px / var(--r, 1)), 148px); border-radius: 20px; }
.nw-moment:hover .nw-daumen img, .nw-moment:hover .nw-moment__buehne:not(.nw-moment__buehne--hoch) img { transform: scale(1.03); }
/* große Kachel: oben das Bild, darunter der Text auf dem Verlauf. Querformate füllen die Fläche; Cover und
   Hochformate stehen unbeschnitten darin (auf den Bildern steht oft Schrift, die nicht angeschnitten werden soll) */
.nw-moment--gross { grid-row: span 2; min-height: 440px; padding: 0; border: 0; color: #fff; }
.nw-moment--gross .nw-moment__inhalt { padding: 40px; }
.nw-moment--gross .nw-moment__meta { color: rgba(255, 255, 255, 0.88); margin-bottom: auto; padding-bottom: 40px; }
.nw-moment--gross .nw-moment__nr, .nw-moment--gross .nw-anhang { background: #fff; color: #000; }
.nw-moment--gross .nw-moment__titel { margin-top: 0; font-size: 60px; letter-spacing: -0.04em; line-height: 0.96; }
.nw-moment--gross .nw-moment__text { margin-top: 16px; font-size: 17px; color: rgba(255, 255, 255, 0.92); max-width: 46ch; }
.nw-moment--gross .nw-moment__mehr { margin-top: 0; padding-top: 24px; font-size: 16px; }
.nw-moment--gross.hat-bild { min-height: 560px; }
.nw-moment--gross.hat-bild .nw-moment__inhalt { flex: 0 0 auto; padding: 26px 36px 32px; }
.nw-moment--gross.hat-bild .nw-moment__meta { margin-bottom: 14px; padding-bottom: 0; }
.nw-moment--gross.hat-bild .nw-moment__titel { font-size: 44px; letter-spacing: -0.035em; line-height: 1; }
.nw-moment--gross.hat-bild .nw-moment__text { margin-top: 12px; font-size: 16px; }
.nw-moment--gross.hat-bild .nw-moment__mehr { padding-top: 18px; }
.nw-moment__buehne { position: relative; flex: 1 1 280px; min-height: 260px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nw-moment__buehne img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--bt-ease); }
.nw-moment__buehne--hoch { padding: 30px 30px 4px; }
.nw-moment__buehne--hoch img { position: static; width: auto; max-width: 100%; height: 100%; max-height: 300px; object-fit: contain; border-radius: 18px; box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.6); }
.nw-momente--1 { grid-template-columns: 1fr; }
.nw-momente--2 .nw-moment--gross { grid-row: auto; }

/* Kachelfeld der Bereiche: vier Spalten, die Bereiche mit den meisten Beiträgen doppelt breit */
.nw-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.nw-kachel {
  box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; min-height: 248px; padding: 24px; border-radius: 28px;
  background: var(--bt-grey-50); border: 1px solid var(--bt-grey-200); color: var(--bt-fg); text-decoration: none;
  transition: transform 220ms var(--bt-ease), border-color 160ms ease, box-shadow 220ms ease;
}
a.nw-kachel:hover { transform: translateY(-4px); border-color: var(--bt-fg); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.3); }
a.nw-kachel:focus-visible { outline: 2px solid var(--bt-focus-ring); outline-offset: 3px; border-radius: 28px; }
.nw-kachel--breit { grid-column: span 2; }
.nw-kachel__kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.nw-kachel__name { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.nw-kachel__zahl { flex: none; font: 900 46px/0.82 var(--bt-font-body); letter-spacing: -0.045em; color: var(--bt-color-secondary); }
.nw-kachel__text { font-size: 14.5px; line-height: 1.5; color: var(--bt-grey-600); }
.nw-kachel__fuss {
  margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px;
  font-size: 13px; font-weight: 600; color: var(--bt-grey-600);
}
.nw-kachel__los { color: var(--bt-fg); }
.nw-kachel--breit .nw-kachel__name { font-size: 26px; letter-spacing: -0.022em; }
.nw-kachel--breit .nw-kachel__zahl { font-size: 72px; }
.nw-kachel--breit .nw-kachel__text { font-size: 16px; line-height: 1.55; max-width: 44ch; }
.nw-kachel.ist-aktiv { border-color: var(--bt-fg); box-shadow: inset 0 0 0 1px var(--bt-fg); }
/* Bereich ohne Beitrag: eigener Rückblick */
.nw-kachel--eigen { background: transparent; border-style: dashed; border-color: var(--bt-grey-400); }
.nw-kachel__art { padding-top: 3px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bt-grey-600); white-space: nowrap; }
/* Verweis auf die Sprachzweige: dunkle Kachel mit den Farben der Sprachen */
.nw-kachel--zweige { background: var(--bt-fg); border-color: var(--bt-fg); color: var(--bt-bg); }
.nw-kachel--zweige .nw-kachel__text { color: color-mix(in srgb, var(--bt-bg) 76%, transparent); }
.nw-kachel--zweige .nw-kachel__los { color: var(--bt-bg); }
.nw-kachel__punkte { display: flex; flex: none; padding-inline-start: 10px; }
.nw-kachel__punkte span { width: 34px; height: 34px; border-radius: 50%; margin-inline-start: -10px; box-shadow: 0 0 0 3px var(--bt-fg); }

/* ---------- 02 Monat für Monat ---------- */

.nw-liste .nw-liste__kopf { padding-bottom: 28px; }
.nw-liste .nw-liste__inhalt { padding-top: 36px; }
.nw-entwurf {
  max-width: 720px; margin-top: 24px; margin-bottom: 0; padding: 12px 16px; border-radius: 16px; border: 1px dashed var(--bt-grey-400);
  font-size: 14px; line-height: 1.5; color: var(--bt-grey-600);
}
.nw-entwurf a { color: var(--bt-fg); font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

/* Monatsband: Säulen je Monat, ein Farbton; bei aktivem Filter der Anteil des Bereichs farbig, der Rest grau */
.nw-band { display: flex; align-items: flex-end; max-width: 720px; margin-top: 30px; }
.nw-band__monat {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 2px;
  color: var(--bt-grey-600); text-decoration: none; border-radius: 10px;
}
.nw-band__monat:focus-visible { outline: 2px solid var(--bt-focus-ring); outline-offset: 2px; }
.nw-band__plot {
  position: relative; height: 104px; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px;
  border-bottom: 1px solid var(--bt-grey-200);
}
.nw-band__teil, .nw-band__rest { flex: none; width: 18px; height: calc(var(--n) / var(--max) * (100% - 26px)); border-radius: 4px 4px 0 0; }
.nw-band__teil { background: var(--bt-accent); transition: height 320ms var(--bt-ease); }
/* Rest in zurückgenommenem Grau: zu sehen, aber nicht in Konkurrenz zum gewählten Bereich */
.nw-band__rest { background: color-mix(in srgb, var(--bt-grey-400) 45%, var(--bt-grey-200)); transition: height 320ms var(--bt-ease); }
.nw-band__monat.hat-rest .nw-band__teil { border-radius: 0; }
a.nw-band__monat:hover .nw-band__teil { filter: brightness(1.18); }
a.nw-band__monat:hover .nw-band__rest { background: var(--bt-grey-400); }
.nw-band__monat.ist-leer { pointer-events: none; }
/* Zahl auf der Kappe nur am höchsten Monat; alle anderen Werte nennt der Hinweis beim Überfahren und die Liste */
.nw-band__wert { margin-bottom: 4px; font: 600 12px/1 var(--bt-font-body); color: var(--bt-fg); visibility: hidden; }
.nw-band__monat.ist-spitze .nw-band__wert { visibility: visible; }
/* Mit Filter stünde die Zahl auf dem grauen Rest und läse sich wie die Summe: dann nennt nur der Hinweis die Werte */
.nw-band.ist-gefiltert .nw-band__wert { visibility: hidden; }
.nw-band__x { text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1; }
.nw-band__monat--leer .nw-band__x { color: var(--bt-grey-400); }
.nw-band__tipp {
  position: absolute; z-index: 3; bottom: calc(100% + 4px); left: 50%; transform: translate(-50%, 4px); pointer-events: none;
  display: flex; flex-direction: column; gap: 2px; padding: 7px 11px; border-radius: 12px; white-space: nowrap;
  background: var(--bt-fg); color: var(--bt-bg); font-size: 12px; line-height: 1.25; opacity: 0;
  transition: opacity 140ms ease, transform 160ms var(--bt-ease);
}
.nw-band__tipp strong { font-size: 13px; font-weight: 700; }
.nw-band__tipp span { opacity: 0.75; }
a.nw-band__monat:hover .nw-band__tipp, a.nw-band__monat:focus-visible .nw-band__tipp { opacity: 1; transform: translate(-50%, 0); }

/* Filterleiste: klebt unter der Kopfzeile, solange die Liste im Blick ist */
.nw-filter {
  position: sticky; top: var(--nav-h); z-index: 5;
  background: color-mix(in srgb, var(--bt-bg) 90%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--bt-grey-200);
}
html:not(.js) .nw-filter { display: none; }
.nw-liste .nw-filter__innen { padding-top: 14px; padding-bottom: 10px; }
.nw-filter__chips { position: relative; display: flex; gap: 8px; margin-inline: -4px; padding: 3px 4px; overflow-x: auto; scrollbar-width: none; }
.nw-filter__chips::-webkit-scrollbar { display: none; }
.nw-chip {
  appearance: none; flex: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border-radius: 9999px; border: 1.5px solid var(--bt-grey-200); background: var(--bt-bg); color: var(--bt-fg);
  font: 600 14px/1.2 var(--bt-font-body); white-space: nowrap;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}
.nw-chip span { font-size: 12px; font-weight: 600; color: var(--bt-grey-600); }
.nw-chip:hover { border-color: var(--bt-fg); }
.nw-chip:focus-visible { outline: 2px solid var(--bt-focus-ring); outline-offset: 2px; border-radius: 9999px; }
.nw-chip.ist-aktiv { background: var(--bt-color-primary); border-color: var(--bt-color-primary); color: #fff; }
.nw-chip.ist-aktiv span { color: rgba(255, 255, 255, 0.8); }
.nw-filter__stand { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 26px; margin-top: 6px; font-size: 13px; color: var(--bt-grey-600); }
.nw-filter__treffer { font-weight: 600; }
.nw-filter__reset {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 4px 0; white-space: nowrap;
  font: 600 13px/1.2 var(--bt-font-body); color: var(--bt-fg); text-decoration: underline; text-underline-offset: 3px;
}
.nw-filter__reset span { display: inline-block; margin-inline-start: 2px; text-decoration: none; }
.nw-filter__rechts { display: inline-flex; align-items: center; gap: 18px; }
/* kleine Jahreswahl am Ende der Leiste (ab Tablet) */
.nw-filter__jahre { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9999px; background: var(--bt-grey-100); }
.nw-filter__jahre a { padding: 4px 11px; border-radius: 9999px; font: 600 12.5px/1.3 var(--bt-font-body); color: var(--bt-grey-600); text-decoration: none; }
.nw-filter__jahre a:hover { color: var(--bt-fg); }
.nw-filter__jahre a.ist-aktiv { background: var(--bt-bg); color: var(--bt-fg); box-shadow: 0 0 0 1px var(--bt-grey-200); }
.nw-filter__jahre a:focus-visible { outline: 2px solid var(--bt-focus-ring); outline-offset: 1px; }

/* Zusammenfassung des gewählten Bereichs */
.nw-zusammen {
  margin-bottom: 36px; padding: 28px 32px 26px; border-radius: 28px;
  background: var(--bt-grey-50); border: 1px solid var(--bt-grey-200); border-inline-start: 5px solid var(--bt-accent);
}
.nw-zusammen__marke { color: var(--bt-grey-600); }
.nw-zusammen__titel { margin: 8px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.nw-zusammen__text { margin: 12px 0 0; font-size: 18px; line-height: 1.6; color: var(--bt-grey-800); max-width: 66ch; }
.nw-zusammen .nw-ki { margin-top: 20px; background: var(--bt-bg); }

/* Zeitstrahl: links der Monat (klebt mit), rechts die Beiträge an einer Linie */
.nw-monat {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-bottom: 36px;
  scroll-margin-top: calc(var(--nav-h) + var(--nw-filter-h, 96px) + 20px);
}
.nw-monat + .nw-monat, .nw-zusammen:not([hidden]) ~ .nw-monat { border-top: 1px solid var(--bt-grey-200); padding-top: 32px; }
.nw-monat__kopf { position: sticky; top: calc(var(--nav-h) + var(--nw-filter-h, 96px) + 24px); align-self: start; padding-top: 16px; }
.nw-monat__name { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.028em; line-height: 1.05; }
.nw-monat__zahl { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--bt-grey-600); }
.nw-eintraege { position: relative; list-style: none; margin: 0 -16px; padding: 0; }
.nw-eintraege::before { content: ""; position: absolute; top: 36px; bottom: 36px; inset-inline-start: 43px; width: 2px; background: var(--bt-grey-200); }
.nw-eintrag { position: relative; }
.nw-eintrag__link {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 22px; align-items: start; padding: 16px;
  border-radius: 26px; color: var(--bt-fg); text-decoration: none; transition: background-color 160ms ease;
}
.nw-eintrag__link:hover { background: var(--bt-grey-50); }
/* Beitrag mit Bild: Vorschaubild vor dem Pfeil. Es zeigt das Bild in seinem Seitenverhältnis, höchstens 176 px breit. */
.nw-eintrag__link.hat-bild { grid-template-columns: 56px minmax(0, 1fr) auto auto; }
.nw-eintrag__bild { align-self: center; height: 104px; width: clamp(104px, calc(104px * var(--r, 1.5)), 176px); border-radius: 18px; }
.nw-eintrag__bild.nw-daumen--hoch { width: 104px; }
.nw-eintrag__link:hover .nw-daumen img { transform: scale(1.04); }
.nw-eintrag__link:focus-visible { outline: 2px solid var(--bt-focus-ring); outline-offset: -2px; border-radius: 26px; }
.nw-tag {
  box-sizing: border-box; width: 56px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 18px; background: var(--bt-bg); border: 1.5px solid var(--bt-grey-200); transition: border-color 160ms ease;
}
.nw-tag__d { font: 900 21px/1 var(--bt-font-body); letter-spacing: -0.03em; }
.nw-tag__m { font-size: 10.5px; font-weight: 600; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bt-grey-600); }
.nw-tag--ca { border-style: dashed; border-color: var(--bt-grey-400); }
.nw-tag__ca { font-size: 10.5px; font-weight: 600; line-height: 1.1; color: var(--bt-grey-600); }
.nw-tag--ca .nw-tag__m { font-size: 13px; font-weight: 800; text-transform: none; letter-spacing: -0.01em; color: var(--bt-fg); }
.nw-eintrag__link:hover .nw-tag { border-color: var(--bt-fg); border-style: solid; }
.nw-eintrag__inhalt { display: block; padding-top: 2px; }
.nw-eintrag__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.nw-eintrag__titel { display: block; margin-top: 9px; font-size: 21px; font-weight: 800; letter-spacing: -0.018em; line-height: 1.2; }
.nw-eintrag__teaser { display: block; margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--bt-grey-600); max-width: 66ch; }
.nw-eintrag__pfeil { align-self: center; font-size: 20px; color: var(--bt-grey-400); transition: transform 160ms var(--bt-ease), color 160ms ease; }
.nw-eintrag__link:hover .nw-eintrag__pfeil { color: var(--bt-fg); transform: translateX(4px); }
[dir="rtl"] .nw-eintrag__link:hover .nw-eintrag__pfeil { transform: translateX(-4px); }
.nw-liste__inhalt.nw-wechsel .nw-eintrag:not([hidden]), .nw-liste__inhalt.nw-wechsel .nw-zusammen:not([hidden]) { animation: nw-ein 360ms var(--bt-ease) backwards; }
/* Lesefassung ohne Skript: aufklappbar unter dem Beitrag. Mit Skript übernimmt die Leseansicht. */
html.js .nw-eintrag__mehr { display: none; }
.nw-eintrag__mehr { margin: 0 16px 12px; margin-inline-start: 94px; font-size: 15.5px; line-height: 1.65; color: var(--bt-grey-800); }
.nw-eintrag__mehr summary { cursor: pointer; font-weight: 600; color: var(--bt-fg); }
.nw-eintrag__mehr p { margin: 10px 0 0; max-width: 66ch; }
/* Lesefassung: Zwischenüberschriften, Listen, Name und Links aus dem Original (Zeitstrahl und Leseansicht) */
:is(.nw-eintrag__mehr, .nw-leser__text) h5 { margin: 22px 0 6px; font-size: 1.06em; line-height: 1.3; font-weight: 700; color: var(--bt-fg); max-width: 66ch; }
:is(.nw-eintrag__mehr, .nw-leser__text) ul { margin: 0 0 14px; padding-inline-start: 1.2em; max-width: 64ch; }
:is(.nw-eintrag__mehr, .nw-leser__text) li { margin: 0 0 6px; }
.nw-leser__text li { font-size: 17px; line-height: 1.65; color: var(--bt-grey-800); }
:is(.nw-eintrag__mehr, .nw-leser__text) .nw-eintrag__autor { font-weight: 600; color: var(--bt-fg); }
.nw-eintrag__links { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--bt-grey-200, #E9EAEC); max-width: 66ch; }
.nw-eintrag__links > span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--bt-grey-600, #6b6b6b); margin-bottom: 6px; }
.nw-eintrag__links ul { list-style: none; padding: 0; margin: 0; }
.nw-eintrag__links li { font-size: 15.5px; line-height: 1.5; margin: 0 0 4px; }
.nw-eintrag__links a { color: var(--bt-color-primary); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.nw-leer { margin: 12px 0 0; font-size: 17px; color: var(--bt-grey-600); }

/* ---------- 03 Aus den Sprachzweigen ---------- */

.nw-zw-leit {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 56px; padding: 28px 32px;
  border-radius: 32px; background: var(--bt-grey-50); border: 1px solid var(--bt-grey-200);
}
.nw-zw-leit__bild { display: block; width: 108px; height: 108px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--bt-grey-200); }
.nw-zw-leit__marke { color: var(--bt-color-secondary); }
.nw-zw-leit__text { margin: 8px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.4; max-width: 52ch; }
.nw-zw-leit__wer { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 12px 0 0; font-size: 14px; color: var(--bt-grey-600); }
.nw-zw-leit__wer strong { color: var(--bt-fg); }
.nw-zw-leit__hoeren, .nw-zw__hoeren { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nw-zw-leit__hoeren { flex-direction: column; align-items: flex-start; }
.nw-zw-karten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.nw-zw-karten--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nw-zw { box-sizing: border-box; display: flex; flex-direction: column; min-height: 400px; padding: 26px 24px 24px; border-radius: 32px; color: #fff; }
.nw-zw > * { position: relative; }
.nw-zw > .bt-grain { position: absolute; }
.nw-zw__kopf, .nw-zw-leit__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.nw-zw__seit { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.88; }
.nw-zw__name { margin: 10px 0 0; font-size: 30px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.nw-zw__text { margin: 14px 0 0; font-size: 15px; line-height: 1.55; opacity: 0.95; }
.nw-zw__wer { display: flex; align-items: center; gap: 12px; margin: auto 0 0; padding-top: 24px; }
.nw-zw__wer img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.25); }
.nw-zw__wer strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.nw-zw__wer small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; opacity: 0.88; }
.nw-zw__hoeren { margin-top: 18px; min-height: 52px; }
/* „Rückblick anhören“: öffnet den Player der Website (data-ep); ohne Aufnahme spielt er eine stumme Probe */
.nw-hoeren {
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px; padding-inline-end: 20px; border-radius: 9999px; background: var(--bt-fg); color: var(--bt-bg);
  font: 600 14px/1.2 var(--bt-font-body); text-align: start; transition: transform 140ms var(--bt-ease);
}
.nw-hoeren:hover { transform: translateY(-2px); }
.nw-hoeren:focus-visible { outline: 2px solid var(--bt-focus-ring); outline-offset: 3px; border-radius: 9999px; }
.nw-hoeren__play { flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bt-bg); color: var(--bt-fg); }
.nw-hoeren__play svg { margin-inline-start: 2px; }
.nw-hoeren__text { display: flex; flex-direction: column; gap: 2px; }
.nw-hoeren__text strong { font-weight: 600; }
.nw-hoeren__text small { font-size: 11.5px; font-weight: 500; opacity: 0.7; }
.nw-hoeren--hell { background: #fff; color: #000; }
.nw-hoeren--hell .nw-hoeren__play { background: #000; color: #fff; }
.nw-hoeren--hell:focus-visible { outline-color: #fff; }
.nw-hoeren--folgt, .nw-hoeren--folgt:hover { cursor: default; transform: none; padding: 12px 16px; background: transparent; border: 1px dashed var(--bt-grey-400); color: var(--bt-grey-600); }
.nw-hoeren--folgt.nw-hoeren--hell { border-color: rgba(255, 255, 255, 0.65); color: #fff; }

/* ---------- Nachbarjahre, Hinweis für Spender ---------- */

.nw-weiter { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 8px; padding-bottom: 72px; }
.nw-weiter__knopf {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 30px 28px; border-radius: 28px;
  border: 1px solid var(--bt-grey-200); color: var(--bt-fg); text-decoration: none;
  transition: border-color 160ms ease, transform 220ms var(--bt-ease);
}
.nw-weiter__knopf:hover { border-color: var(--bt-fg); transform: translateY(-3px); }
.nw-weiter__knopf .v4-eyebrow { color: var(--bt-grey-600); }
.nw-weiter__knopf--aelter { grid-column: 2; align-items: flex-end; text-align: end; }
/* Am neuesten und am ältesten Jahr gibt es nur einen Nachbarn: über die ganze Breite */
.nw-weiter__knopf:only-child { grid-column: 1 / -1; }
.nw-weiter__titel { font-size: 32px; font-weight: 800; letter-spacing: -0.028em; line-height: 1.05; }
.nw-weiter__motto { font-size: 14.5px; color: var(--bt-grey-600); }
.nw-weiter__knopf--neuer .nw-weiter__titel::before { content: "← "; font-weight: 400; }
.nw-weiter__knopf--aelter .nw-weiter__titel::after { content: " →"; font-weight: 400; }
[dir="rtl"] .nw-weiter__knopf--neuer .nw-weiter__titel::before { content: "→ "; }
[dir="rtl"] .nw-weiter__knopf--aelter .nw-weiter__titel::after { content: " ←"; }

.nw-spender { padding-top: 8px; }
.nw-spender__karte {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; padding: 28px 32px;
  border-radius: 28px; background: var(--bt-grey-50); border: 1px solid var(--bt-grey-200);
}
.nw-spender__marke { color: var(--bt-color-secondary); }
.nw-spender__text { margin: 8px 0 0; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }

/* ---------- Leseansicht ---------- */

html.nw-leser-offen { overflow: hidden; }
.nw-leser {
  position: fixed; inset: 0; z-index: 50; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 40px 24px;
  background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: v5p-fade 220ms ease both;
}
.nw-leser__karte {
  box-sizing: border-box; width: 760px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; outline: none;
  background: var(--bt-bg); color: var(--bt-fg); border-radius: 36px; font-family: var(--bt-font-body);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.5); animation: v5p-in 320ms var(--bt-ease) both;
}
html[data-mode="dark"] .nw-leser__karte { box-shadow: 0 0 0 1px var(--bt-grey-200), 0 32px 80px -24px rgba(0, 0, 0, 0.7); }
.nw-leser__leiste {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px 14px; padding-inline: 36px 18px;
  border-bottom: 1px solid var(--bt-grey-100);
}
.nw-leser__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.nw-leser__datum { font-size: 13px; font-weight: 500; color: var(--bt-grey-600); }
.nw-leser__knoepfe { display: flex; flex: none; gap: 8px; }
.nw-rund {
  appearance: none; width: 38px; height: 38px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 0; border-radius: 50%; background: var(--bt-grey-50); color: var(--bt-fg); font: 400 17px/1 var(--bt-font-sans);
  transition: background-color 140ms ease;
}
.nw-rund:hover { background: var(--bt-grey-200); }
.nw-rund:disabled { opacity: 0.35; cursor: default; background: var(--bt-grey-50); }
.nw-rund:focus-visible, .nw-leser__kopieren:focus-visible { outline: 2px solid var(--bt-focus-ring); outline-offset: 2px; }
.nw-rund--zu { margin-inline-start: 8px; font-size: 15px; }
.nw-leser__inhalt { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 32px 36px 28px; }
.nw-leser__titel { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -0.032em; line-height: 1.04; }
.nw-leser__teaser { margin: 18px 0 0; font-size: 20px; font-weight: 500; line-height: 1.5; letter-spacing: -0.005em; }
.nw-leser__text { margin-top: 20px; }
/* Aufmacher: das Bild des Beitrags über die ganze Breite der Karte. Cover und Hochformate stehen unbeschnitten auf Grau. */
.nw-leser__auftakt { margin: -32px -36px 28px; }
.nw-leser__foto { margin: 0; display: flex; justify-content: center; background: var(--bt-grey-100); }
.nw-leser__foto img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; }
.nw-leser__foto--hoch { padding: 28px; }
.nw-leser__foto--hoch img { width: auto; max-width: 100%; max-height: 340px; object-fit: contain; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45); }
/* Video: Vorschaubild und Abspielknopf wie .bt-yt der Website; YouTube lädt erst beim Klick */
.nw-leser__auftakt--video { margin: 0 0 26px; }
.nw-video .bt-yt { border-radius: 24px; }
.nw-video__text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 10px 2px 0; font-size: 13.5px; line-height: 1.45; color: var(--bt-grey-600); }
.nw-video__text strong { color: var(--bt-fg); font-weight: 600; }
/* Fotorückschau: Raster gleich großer Flächen; Klick vergrößert. „Foto folgt“ ist gestrichelt. */
.nw-leser__rueckschau { margin-top: 30px; }
.nw-leser__zwischen { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 21px; font-weight: 800; letter-spacing: -0.018em; }
.nw-galerie { display: grid; grid-template-columns: repeat(var(--sp, 4), minmax(0, 1fr)); gap: 10px; }
.nw-galerie__kachel {
  appearance: none; position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 16px; background: var(--bt-grey-100); color: var(--bt-grey-600);
}
.nw-galerie__kachel img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--bt-ease); }
.nw-galerie__kachel:hover img { transform: scale(1.05); }
.nw-galerie__kachel:focus-visible { outline: 2px solid var(--bt-focus-ring); outline-offset: 2px; }
.nw-galerie__kachel--folgt {
  display: flex; align-items: center; justify-content: center; background: transparent; border: 1.5px dashed var(--bt-grey-400);
  font: 600 11.5px/1.3 var(--bt-font-body); letter-spacing: 0.04em; text-transform: uppercase;
}

/* Großansicht eines Fotos: liegt über der Leseansicht, Pfeiltasten und Wischen blättern */
html.nw-licht-offen { overflow: hidden; }
.nw-licht {
  position: fixed; inset: 0; z-index: 70; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 24px; background: rgba(8, 6, 10, 0.93); font-family: var(--bt-font-body); outline: none; touch-action: pan-y;
  animation: v5p-fade 200ms ease both;
}
.nw-licht .nw-rund { background: rgba(255, 255, 255, 0.14); color: #fff; }
.nw-licht .nw-rund:hover { background: rgba(255, 255, 255, 0.28); }
.nw-licht .nw-rund:disabled { opacity: 0.3; background: rgba(255, 255, 255, 0.14); }
.nw-licht .nw-rund:focus-visible { outline-color: #fff; }
.nw-licht__zu { position: absolute; top: 20px; inset-inline-end: 20px; margin: 0; }
.nw-licht__nav { width: 46px; height: 46px; }
/* Die Bühne ist so breit wie das Foto, damit die Bildzeile mit seinen Kanten abschließt */
.nw-licht__buehne { margin: 0 auto; min-width: 0; width: fit-content; max-width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.nw-licht__buehne img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 150px); border-radius: 16px; background: #1a171e; }
.nw-licht__folgt {
  box-sizing: border-box; width: min(100%, 880px); aspect-ratio: 16 / 10; max-height: calc(100svh - 150px); display: flex; align-items: center; justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.5); border-radius: 16px; color: rgba(255, 255, 255, 0.82);
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.nw-licht figcaption { box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; gap: 16px; padding: 0 4px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.nw-licht__zahl { flex: none; font-weight: 600; color: rgba(255, 255, 255, 0.62); }
.nw-leser__text p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: var(--bt-grey-800); max-width: 66ch; }
.nw-leser__hinweis {
  display: flex; align-items: baseline; gap: 6px 12px; margin: 22px 0 0; padding: 11px 14px; border-radius: 16px;
  border: 1px dashed var(--bt-grey-400); font-size: 13.5px; line-height: 1.5; color: var(--bt-grey-600);
}
.nw-leser__fuss {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 16px 36px 22px;
  border-top: 1px solid var(--bt-grey-100);
}
.nw-leser__kopieren {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 6px 0;
  font: 600 14px/1.2 var(--bt-font-body); color: var(--bt-fg); text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Dark Mode: eigene Stufen statt bloßem Umkehren ---------- */

html[data-mode="dark"] .nw-chip.ist-aktiv { background: var(--bt-accent); border-color: var(--bt-accent); color: #121015; }
html[data-mode="dark"] .nw-chip.ist-aktiv span { color: rgba(18, 16, 21, 0.72); }
html[data-mode="dark"] .nw-filter { background: color-mix(in srgb, var(--bt-bg) 86%, transparent); }
/* Verlaufs-Kacheln bleiben, wie sie sind (helle Inseln wie .bt-subcta__card) */
html[data-mode="dark"] :is(.nw-moment--gross, .nw-zw) { --bt-bg: #fff; --bt-fg: #000; --bt-grey-400: #A29CA8; --bt-grey-600: #5E5862; }

/* ---------- Von rechts nach links (Farsi, Arabisch) ---------- */

[dir="rtl"] :is(.nw, .nw-leser, .nw-licht) :is(.v4-eyebrow, .nw-zwischen, .nw-herkunft, .nw-platz, .nw-moment__meta, .nw-tag__m, .nw-kachel__art, .nw-zw__seit, .nw-anhang, .nw-galerie__kachel--folgt, .nw-licht__folgt),
[dir="rtl"] .nw-jahre :is(.nw-jahre__zahl, .nw-jahre__info) { letter-spacing: 0; text-transform: none; }
[dir="rtl"] :is(.nw-moment__titel, .nw-kachel__name, .nw-monat__name, .nw-eintrag__titel, .nw-leser__titel, .nw-zw__name, .nw-weiter__titel, .nw-zusammen__titel, .nw-spender__text, .nw-zw-leit__text) { letter-spacing: 0; line-height: 1.4; }
[dir="rtl"] .nw-moment--gross .nw-moment__titel { line-height: 1.25; }
[dir="rtl"] .nw-leser__zwischen { letter-spacing: 0; }
[dir="rtl"] :is(.nw-kachel__zahl, .nw-tag__d, .nw-jahr__titel) { letter-spacing: 0; }
[dir="rtl"] .nw-jahre__zahl { line-height: 1.15; }
[dir="rtl"] .nw-kachel__zahl { line-height: 1; }

/* ---------- Schmalere Fenster ---------- */

@media (max-width: 1180px) {
  /* Die Chips laufen aus der Zeile: am Rand ausblenden, als Zeichen, dass es weitergeht */
  .nw-filter__chips { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); padding-inline-end: 32px; }
  [dir="rtl"] .nw-filter__chips { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
}
@media (max-width: 1100px) {
  .nw-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-kachel { min-height: 0; }
  .nw-zw-karten, .nw-zw-karten--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-zw { min-height: 340px; }
  .nw-zw-leit { grid-template-columns: auto minmax(0, 1fr); }
  .nw-zw-leit__hoeren { grid-column: 2; flex-direction: row; align-items: center; }
}
@media (max-width: 900px) {
  .nw-momente { grid-template-columns: 1fr; }
  .nw-moment--gross { grid-row: auto; min-height: 360px; }
  .nw-moment--gross.hat-bild { min-height: 0; }
  .nw-moment__buehne { flex-basis: 300px; }
  .nw-monat { grid-template-columns: 1fr; gap: 12px; }
  .nw-monat__kopf { position: static; display: flex; align-items: baseline; gap: 12px; padding-top: 0; }
  .nw-monat__zahl { margin-top: 0; }
  .nw-band { max-width: none; }
}
@media (max-width: 820px) {
  .nw-jahr__titel { padding: 48px 20px 0; font-size: 64px; }
  .nw-jahre { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .nw-jahre__knopf { padding: 12px 12px 13px; border-radius: 20px; }
  .nw-jahre__zahl { font-size: 32px; letter-spacing: -0.04em; }
  .nw-jahre__info { margin-top: 7px; font-size: 11.5px; }
  .nw-jahre__motto { display: none; }

  .nw-zwischen { margin-top: 40px; }
  .nw-moment { padding: 22px; border-radius: 26px; }
  .nw-moment--gross { min-height: 320px; padding: 0; }
  .nw-moment--gross .nw-moment__inhalt { padding: 26px 24px; }
  .nw-moment--gross.hat-bild .nw-moment__inhalt { padding: 20px 22px 24px; }
  .nw-moment--gross .nw-moment__titel, .nw-moment--gross.hat-bild .nw-moment__titel { font-size: 34px; }
  .nw-moment__buehne { flex-basis: 210px; min-height: 210px; }
  .nw-moment__buehne--hoch { padding: 22px 22px 0; }
  .nw-moment__buehne--hoch img { max-height: 230px; }
  .nw-moment.hat-bild:not(.nw-moment--gross) { gap: 14px; }
  .nw-moment__daumen { align-self: flex-start; width: 88px; height: clamp(56px, calc(88px / var(--r, 1)), 88px); border-radius: 16px; }
  .nw-moment--gross .nw-moment__text { font-size: 15.5px; }
  .nw-moment__titel { font-size: 21px; }
  .nw-kacheln { gap: 12px; }
  .nw-kachel { padding: 20px; border-radius: 24px; gap: 12px; }
  .nw-kachel--breit .nw-kachel__name { font-size: 22px; }
  .nw-kachel--breit .nw-kachel__zahl { font-size: 56px; }
  .nw-kachel--breit .nw-kachel__text { font-size: 15px; }

  .nw-liste .nw-liste__kopf { padding-bottom: 20px; }
  .nw-liste .nw-liste__inhalt { padding-top: 24px; }
  .nw-band { margin-top: 24px; }
  .nw-band__plot { height: 86px; }
  .nw-band__teil, .nw-band__rest { width: 12px; }
  .nw-band__tipp { display: none; }
  .nw-liste .nw-filter__innen { padding-top: 10px; padding-bottom: 8px; }
  .nw-chip { padding: 8px 13px; font-size: 13.5px; }
  .nw-filter__stand { margin-top: 4px; font-size: 12.5px; }
  .nw-filter__jahre { display: none; }
  .nw-zusammen { padding: 22px 20px 20px; border-radius: 24px; margin-bottom: 28px; }
  .nw-zusammen__titel { font-size: 24px; }
  .nw-zusammen__text { font-size: 16px; }
  .nw-monat { padding-bottom: 24px; }
  .nw-monat + .nw-monat, .nw-zusammen:not([hidden]) ~ .nw-monat { padding-top: 24px; }
  .nw-monat__name { font-size: 26px; }
  .nw-eintraege { margin: 0 -10px; }
  .nw-eintraege::before { inset-inline-start: 33px; }
  .nw-eintrag__link { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 12px 10px; border-radius: 22px; }
  .nw-eintrag__pfeil { display: none; }
  /* Am Telefon steht das Vorschaubild nur neben Marke und Titel; der Teaser läuft darunter über die ganze Breite.
     Dafür lösen sich Marke, Titel und Teaser aus ihrem Behälter und werden selbst Rasterzellen. */
  .nw-eintrag__link.hat-bild {
    grid-template-columns: 48px minmax(0, 1fr) 76px; row-gap: 0;
    grid-template-areas: "tag meta bild" "tag titel bild" "tag teaser teaser";
  }
  .nw-eintrag__link.hat-bild .nw-tag { grid-area: tag; }
  .nw-eintrag__link.hat-bild .nw-eintrag__inhalt { display: contents; }
  .nw-eintrag__link.hat-bild .nw-eintrag__meta { grid-area: meta; align-self: start; padding-top: 2px; }
  .nw-eintrag__link.hat-bild .nw-eintrag__titel { grid-area: titel; align-self: start; }
  .nw-eintrag__link.hat-bild .nw-eintrag__teaser { grid-area: teaser; }
  .nw-eintrag__bild, .nw-eintrag__bild.nw-daumen--hoch { grid-area: bild; align-self: start; width: 76px; height: 76px; margin-top: 2px; border-radius: 16px; }
  .nw-spiel { inset-inline-start: 6px; bottom: 6px; width: 24px; height: 24px; }
  .nw-tag { width: 48px; height: 48px; border-radius: 16px; }
  .nw-tag__d { font-size: 18px; }
  .nw-tag__m { font-size: 9.5px; }
  .nw-tag--ca .nw-tag__m { font-size: 11.5px; }
  .nw-eintrag__titel { font-size: 18px; }
  .nw-eintrag__teaser { font-size: 14.5px; }
  .nw-eintrag__mehr { margin-inline-start: 72px; }

  .nw-zw-leit { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; padding: 22px 20px; border-radius: 26px; }
  .nw-zw-leit__bild { width: 76px; height: 76px; }
  .nw-zw-leit__text { font-size: 18px; }
  .nw-zw-leit__hoeren { grid-column: auto; }
  .nw-zw-karten { gap: 12px; margin-top: 12px; }
  .nw-zw { min-height: 0; padding: 22px 20px 20px; border-radius: 26px; }
  .nw-zw__name { font-size: 26px; }

  .nw-weiter { padding-bottom: 40px; gap: 10px; }
  .nw-weiter__knopf { padding: 18px 18px 20px; border-radius: 22px; }
  .nw-weiter__titel { font-size: 21px; }
  .nw-weiter__motto { font-size: 13px; }
  .nw-spender__karte { padding: 22px 20px; border-radius: 24px; }
  .nw-spender__text { font-size: 18px; }

  .nw-leser { padding: 0; align-items: flex-end; }
  .nw-leser__karte { width: 100%; max-height: calc(100svh - 28px); border-radius: 30px 30px 0 0; }
  .nw-leser__leiste { padding-inline: 20px 12px; align-items: flex-start; }
  .nw-leser__hinweis { flex-direction: column; align-items: flex-start; }
  .nw-leser__inhalt { padding: 24px 20px 24px; }
  .nw-leser__auftakt { margin: -24px -20px 22px; }
  .nw-leser__auftakt--video { margin: 0 0 20px; }
  .nw-leser__foto img { max-height: 300px; }
  .nw-leser__foto--hoch { padding: 20px; }
  .nw-leser__foto--hoch img { max-height: 260px; }
  .nw-video .bt-yt { border-radius: 20px; }
  .nw-galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nw-galerie__kachel { border-radius: 14px; }
  .nw-licht { grid-template-columns: minmax(0, 1fr); padding: 64px 12px 84px; }
  .nw-licht__nav { position: absolute; bottom: 22px; }
  .nw-licht__nav--zurueck { inset-inline-start: 20px; }
  .nw-licht__nav--vor { inset-inline-end: 20px; }
  .nw-licht__buehne img, .nw-licht__folgt { max-height: calc(100svh - 230px); }
  .nw-licht figcaption { font-size: 13px; }
  .nw-leser__titel { font-size: 29px; }
  .nw-leser__teaser { font-size: 17.5px; }
  .nw-leser__text p { font-size: 16px; }
  .nw-leser__fuss { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  /* Am Telefon liegen Kacheln und Sprachkarten nebeneinander und werden seitlich gewischt: Untereinander wäre
     die Seite mehrere Bildschirme länger. Die nächste Karte schaut am Rand hervor. */
  .nw-kacheln, .nw-zw-karten, .nw-zw-karten--3 {
    display: flex; grid-template-columns: none; gap: 12px; margin-inline: -20px; padding: 4px 20px 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nw-kacheln::-webkit-scrollbar, .nw-zw-karten::-webkit-scrollbar { display: none; }
  .nw-kachel, .nw-kachel--breit { flex: 0 0 78%; grid-column: auto; min-height: 268px; scroll-snap-align: start; }
  .nw-zw { flex: 0 0 82%; min-height: 380px; scroll-snap-align: start; }
  html.js .nw-kacheln .v4-reveal, html.js .nw-zw-karten .v4-reveal { opacity: 1; animation: none; }
  .nw-weiter { grid-template-columns: 1fr; }
  .nw-weiter__knopf--aelter { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .nw-jahr.nw-wechsel, .nw-liste__inhalt.nw-wechsel .nw-eintrag, .nw-liste__inhalt.nw-wechsel .nw-zusammen, .nw-leser, .nw-leser__karte, .nw-licht { animation: none !important; }
  .nw-daumen img, .nw-moment__buehne img, .nw-galerie__kachel img { transition: none; }
  .nw-band__teil, .nw-band__rest, .nw-kachel, .nw-jahre__knopf, .nw-weiter__knopf, .nw-hoeren { transition: none; }
}
