/* =====================================================================
   NICHT IRGENDWANN – Fotoreportage V2.2 / Hero-Overlay + Edge-to-edge-Fotostrecken
   Isolierte Klassen; keine Aenderung an normalen Blogbeitraegen.
   Punk-Editorial: Schwarz #020202, Dunkelrot #89252d, Gelb #ffbf08.
   ===================================================================== */
#top .nir {
  --nir-black: #020202;
  --nir-red: #89252d;
  --nir-yellow: #ffbf08;
  --nir-white: #fff;
  --nir-paper: #f5f5f5;
  --nir-muted: #646464;
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  background: var(--nir-paper);
  color: var(--nir-black);
  font-family: var(--font-body, 'Roboto Slab', Georgia, serif);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: clip;
  isolation: isolate;
}
#top .nir *, #top .nir *::before, #top .nir *::after { box-sizing: border-box; }
#top .nir a { text-decoration: none; }
#top .nir h1, #top .nir h2, #top .nir h3, #top .nir h4 {
  margin: 0;
  color: inherit;
  font-family: var(--font-headline, 'Nachmittage Display', Impact, sans-serif);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: .01em;
  hyphens: none;
}
#top .nir p { margin: 0; }
#top .nir a:focus-visible, #top .nir button:focus-visible { outline: 3px solid var(--nir-yellow); outline-offset: 5px; }
#top .nir .nir__skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 20px; background: var(--nir-yellow); color: var(--nir-black); font-weight: 700;
}
#top .nir .nir__skip:focus { left: 16px; top: 16px; }

/* 01 / Fullbleed-Hero: Bild, Titel, Einstieg, Stempel. */
#top .nir__opening { background: var(--nir-white); }
#top .nir__cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: clamp(510px, 61vw, 840px);
  height: auto;
  padding: clamp(40px, 6vw, 95px) max(26px, calc((100vw - 1280px) / 2));
  overflow: hidden;
  background: #141414;
  isolation: isolate;
}
#top .nir__cover-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
}
/* Zweiachsiger, weicher Verlauf: Text lesbar; Foto rechts sichtbar. */
#top .nir__cover::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.52) 35%, rgba(0,0,0,.18) 66%, transparent 100%),
    linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.19) 54%, transparent 88%);
}
#top .nir__cover--empty {
  background: linear-gradient(125deg, #131313, #37302f 60%, #111);
}
#top .nir__hero-copy {
  position: relative;
  z-index: 2;
  width: min(1000px, 100%);
  color: #fff;
}
#top .nir h1.nir__title {
  color: #fff;
  max-width: 930px;
  font-size: clamp(4.4rem, 9.2vw, 10.6rem);
  line-height: .91;
  letter-spacing: .007em;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 25px rgba(0,0,0,.23);
}
#top .nir__title-period { color: var(--nir-yellow); }
#top .nir__deck {
  max-width: 740px;
  margin: clamp(18px, 3vw, 34px) 0 0 !important;
  border-left: 5px solid var(--nir-yellow);
  padding-left: clamp(13px, 2.5vw, 22px);
  color: #fff;
  font-size: clamp(1.08rem, 1.6vw, 1.46rem);
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
#top .nir__cover-badge {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-top: clamp(24px, 3vw, 39px);
  padding: 11px 16px;
  color: var(--nir-black);
  background: var(--nir-yellow);
  font: 800 .70rem/1.35 var(--font-body, Georgia, serif);
  letter-spacing: .10em;
  text-transform: uppercase;
  transform: rotate(-1.3deg);
  box-shadow: 5px 5px 0 var(--nir-black);
}
#top .nir__cover-badge span { margin: 0 6px; }
/* Nur die Metadaten verbleiben unter dem Hero, keine zweite Ueberschrift. */
#top .nir__info-line { background: #fff; border-bottom: 2px solid #020202; }
#top .nir__details {
  display: flex;
  flex-wrap: wrap;
  gap: 17px clamp(25px, 5vw, 80px);
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(20px, 2.5vw, 31px) 0;
  color: var(--nir-black);
  font-size: .88rem;
  line-height: 1.4;
}
#top .nir__details > span { display: flex; flex-direction: column; gap: 6px; }
#top .nir__details strong {
  color: var(--nir-red);
  font: 800 .65rem/1.3 var(--font-body, Georgia, serif);
  letter-spacing: .13em;
}
#top .nir__details a { color: var(--nir-black); border-bottom: 1px solid var(--nir-red); }
#top .nir__details a:hover { color: var(--nir-red); }

/* 03 / Lesefluss: Text schmal, ALLE Fotos vom linken bis rechten Bildschirmrand.
   WICHTIG: Die gesamte Story selbst ist 100% breit. Text wird pro Absatz eingegrenzt.
   So sind Bild, Bildpaar und Galerie ohne negative 100vw-Margins tatsaechlich randlos. */
#top .nir__story {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(74px, 9vw, 135px) 0 clamp(96px, 10vw, 150px);
  font-size: clamp(1.01rem, 1.08vw, 1.14rem);
  line-height: 1.87;
}
/* Nur TEXT wird auf eine lesbare Breite begrenzt. */
#top .nir__story > :is(p, h2, h3, h4, ul, ol, blockquote, hr, .wp-block-quote, .wp-block-pullquote) {
  width: min(750px, calc(100% - 48px));
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}
#top .nir__story > p, #top .nir__story > ul, #top .nir__story > ol { margin-top: 0; margin-bottom: 1.55em; }
#top .nir__story > p:first-child { font-size: clamp(1.16rem, 1.4vw, 1.35rem); line-height: 1.8; }
#top .nir__story h2 {
  max-width: 750px;
  font-size: clamp(3.2rem, 5vw, 6rem);
  line-height: 1.02;
  margin-top: clamp(84px, 9vw, 140px);
  margin-bottom: 30px;
  padding-top: 18px;
  border-top: 7px solid var(--nir-red);
}
#top .nir__story h3 {
  max-width: 750px;
  font-size: clamp(2.3rem, 3.4vw, 4rem);
  margin-top: 68px;
  margin-bottom: 25px;
}
#top .nir__story a { color: var(--nir-red); text-decoration: underline; text-underline-offset: 3px; }
#top .nir__story a:hover { color: var(--nir-black); }
#top .nir__story strong { font-weight: 800; }
#top .nir__story ul, #top .nir__story ol { padding-left: 30px; }
#top .nir__story li { margin: .3em 0; }
#top .nir__story > hr { border: none; border-top: 2px solid var(--nir-red); margin-block: 66px; }

/* Einzelfotos, Paare, Gutenberg-Galerien und klassische [gallery] - immer 100%. */
#top .nir__story > :is(figure, .wp-block-gallery, .wp-block-columns, .gallery, .wp-caption, .ni-photo-wide, .ni-photo-full) {
  width: 100% !important;
  max-width: none !important;
  margin: clamp(52px, 7vw, 112px) 0 !important;
  padding: 0 !important;
}
#top .nir__story > :is(figure, .wp-block-gallery, .wp-block-columns, .gallery, .wp-caption, .ni-photo-wide, .ni-photo-full).alignfull,
#top .nir__story > :is(figure, .wp-block-gallery, .wp-block-columns, .gallery, .wp-caption, .ni-photo-wide, .ni-photo-full).alignwide {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}
/* Einzelbild: kein Zuschnitt, keine versteckte Maximalbreite. */
#top .nir__story img { display: block; height: auto; max-width: 100%; }
#top .nir__story > :is(figure.wp-block-image, figure.wp-caption, .wp-caption) img,
#top .nir__story > .ni-photo-full img,
#top .nir__story > .ni-photo-wide img {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
}
/* Klassischer Editor: auch alleinstehende, im Absatz eingefuegte Bilder. */
#top .nir__story > p:has(> img),
#top .nir__story > p:has(> a > img) {
  width: 100%;
  max-width: none;
  margin: clamp(52px, 7vw, 112px) 0;
}
#top .nir__story > p:has(> img) img,
#top .nir__story > p:has(> a > img) img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}
/* Beschriftung bekommt Innenabstand, das Foto selbst nicht. */
#top .nir__story figcaption,
#top .nir__story .wp-caption-text {
  position: static;
  margin: 0 !important;
  padding: 12px clamp(18px, 2.5vw, 34px) 0;
  color: var(--nir-muted);
  background: transparent;
  font: 600 .78rem/1.6 var(--font-body, Georgia, serif);
  letter-spacing: .015em;
  text-align: left;
}

/* Gutenberg-Galerie: 2 Bilder füllen zusammen 100vw, ohne Aussenrand.
   3er-/4er-Galerien ebenfalls bis zum Rand; Luecke nur zwischen Fotos. */
#top .nir__story > .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  overflow: visible;
}
#top .nir__story > .wp-block-gallery.columns-1 { grid-template-columns: 1fr; }
#top .nir__story > .wp-block-gallery.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#top .nir__story > .wp-block-gallery.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#top .nir__story .wp-block-gallery figure.wp-block-image {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-basis: auto !important;
  flex-grow: 0 !important;
}
#top .nir__story .wp-block-gallery figure.wp-block-image img,
#top .nir__story .wp-block-gallery.is-cropped figure.wp-block-image img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
}
#top .nir__story .wp-block-gallery figure.wp-block-image figcaption {
  position: static !important;
  width: auto !important;
  max-height: none !important;
  padding: 11px clamp(10px, 1.5vw, 22px) 0 !important;
  color: var(--nir-muted) !important;
  background: none !important;
  text-align: left !important;
  text-shadow: none !important;
  font: 600 .76rem/1.55 var(--font-body, Georgia, serif) !important;
}
#top .nir__story .wp-block-gallery > figcaption { grid-column: 1 / -1; }

/* Klassische WordPress-Mediengalerie ([gallery]) genauso randlos. */
#top .nir__story > .gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100% !important;
  max-width: none !important;
  gap: 10px;
  margin: clamp(52px, 7vw, 112px) 0 !important;
}
#top .nir__story > .gallery.gallery-columns-1 { grid-template-columns: 1fr; }
#top .nir__story > .gallery.gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#top .nir__story > .gallery.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#top .nir__story .gallery-item {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0;
  text-align: left;
}
#top .nir__story .gallery-icon img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  border: none !important;
}
#top .nir__story .gallery-caption {
  display: block;
  padding: 11px clamp(10px, 1.5vw, 22px) 0;
  color: var(--nir-muted);
  font: 600 .76rem/1.55 var(--font-body, Georgia, serif);
}

/* Bildpaar auch ueber die Gutenberg-Spalten. */
#top .nir__story > .wp-block-columns {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
#top .nir__story .wp-block-column { min-width: 0; }
#top .nir__story .wp-block-column figure {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
#top .nir__story .wp-block-column img { width: 100% !important; height: auto !important; object-fit: contain !important; }

/* Gruppen nur bei Text schmal halten; Gruppen MIT Medien koennen die ganze
   Breite nutzen, wenn die Zusatzklasse 'ni-photo-stretch' gesetzt wird. */
#top .nir__story > .wp-block-group:not(.ni-photo-stretch) { width: min(750px, calc(100% - 48px)); max-width: 750px; margin-inline: auto; }
#top .nir__story > .wp-block-group.ni-photo-stretch { width: 100%; max-width: none; margin-inline: 0; }
/* Ruhige Zwischennotizen ohne Motivationsplakat-Look */
#top .nir__story blockquote,
#top .nir__story .wp-block-quote {
  margin-block: clamp(60px, 7vw, 100px);
  padding: 12px 0 12px 26px;
  border-left: 6px solid var(--nir-yellow);
  color: var(--nir-black);
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  line-height: 1.55;
  font-weight: 700;
}
#top .nir__story blockquote p { margin-bottom: 0; }
#top .nir__story blockquote cite { display: block; font-size: .7rem; margin-top: 17px; color: var(--nir-muted); }
#top .nir__story .ni-photo-note {
  width: min(750px, calc(100% - 48px));
  margin: clamp(60px, 7vw, 90px) auto;
  padding: clamp(24px, 4vw, 45px);
  background: var(--nir-white);
  border-left: 8px solid var(--nir-red);
  box-shadow: 8px 8px 0 var(--nir-black);
}
#top .nir__story .ni-photo-note > *:last-child { margin-bottom: 0; }
#top .nir__page-links { display: flex; justify-content: center; gap: 10px; margin-top: 55px; }

/* 04 / Dunkler Schluss als bewusster redaktioneller Abschluss */
#top .nir__closing { background: var(--nir-black); border-top: 7px solid var(--nir-red); color: var(--nir-white); }
#top .nir__closing-inner {
  max-width: 1280px; margin: auto;
  padding: clamp(70px, 8vw, 130px) 32px;
  display: flex; align-items: end; justify-content: space-between; gap: 40px;
}
#top .nir__closing-eyebrow {
  display: block; color: var(--nir-yellow);
  font: 700 .73rem/1.3 var(--font-body, Georgia, serif);
  letter-spacing: .13em; margin-bottom: 20px;
}
#top .nir__closing p {
  font: 400 clamp(3.5rem, 8vw, 8rem)/.93 var(--font-headline, Impact, sans-serif);
  letter-spacing: .02em; color: var(--nir-white);
}
#top .nir__closing em { color: var(--nir-yellow); font-style: normal; }
#top .nir__back-link {
  display: inline-flex; flex: 0 0 auto; gap: 25px; align-items: center;
  padding: 17px 21px;
  background: var(--nir-red); color: var(--nir-white);
  border: 2px solid var(--nir-white);
  box-shadow: 6px 6px 0 var(--nir-yellow);
  font: 800 .77rem/1.2 var(--font-body, Georgia, serif);
  letter-spacing: .06em;
  transition: transform .2s ease, box-shadow .2s ease;
}
#top .nir__back-link:hover { color: var(--nir-white); transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--nir-yellow); }
#top .nir__back-link span { font-size: 1.25rem; }

@media (max-width: 900px) {
  #top .nir__story .wp-block-gallery.columns-3,
  #top .nir__story .wp-block-gallery.columns-4,
  #top .nir__story .gallery.gallery-columns-3,
  #top .nir__story .gallery.gallery-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  #top .nir__story { width: 100%; padding-block: 61px 100px; font-size: 1.02rem; line-height: 1.85; }
  #top .nir__story h2 { font-size: clamp(2.8rem, 10vw, 4.8rem); margin-top: 75px; border-top-width: 5px; }
  #top .nir__story h3 { font-size: clamp(2.2rem, 8vw, 3.5rem); margin-top: 56px; }
  #top .nir__story .wp-block-gallery,
  #top .nir__story .wp-block-gallery.columns-3,
  #top .nir__story .wp-block-gallery.columns-4,
  #top .nir__story .gallery { grid-template-columns: 1fr; gap: 10px; }
  #top .nir__story .wp-block-columns { display: block; }
  #top .nir__story .wp-block-column + .wp-block-column { margin-top: 10px; }
  #top .nir__closing-inner { display: block; padding: 70px 22px 85px; }
  #top .nir__closing p { font-size: clamp(2.55rem, 10vw, 4.4rem); }
  #top .nir__back-link { margin-top: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  #top .nir *, #top .nir *::before, #top .nir *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   V2.1 – CLASSIC-EDITOR-FIX
   Die klassische Medienfunktion gibt Bilder haeufig als <p><a><span><img>
   oder mit wp-caption/Alignment aus. Der V2-Selektor :has(> a > img)
   erfasste nicht alle Verschachtelungen. Das hier korrigiert NUR die
   Fotoreportage und laesst normale Artikel voellig unberuehrt.
   ===================================================================== */

/* Jeden direkten Absatz mit Bild ueber die gesamte Reportagebreite.
   Kein direkter-Kind-Selektor: auch Bilder in Link/Span werden erkannt. */
#top .nir__story > p:has(img),
#top .nir__story > p:has(picture),
#top .nir__story > .wp-caption,
#top .nir__story > .wp-block-image,
#top .nir__story > figure.wp-caption,
#top .nir__story > figure.wp-block-image {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: clamp(52px, 7vw, 112px) 0 !important;
  padding: 0 !important;
  float: none !important;
  text-align: left !important;
  overflow: visible !important;
}

/* WP fuegt je nach Link- und Bildoption feste Pixelbreiten, Alignment
   und Enfold-Wrapper ein. Auch diese duerfen nicht begrenzen. */
#top .nir__story > p:has(img) :is(a, span, picture),
#top .nir__story > .wp-caption :is(a, span, picture),
#top .nir__story > .wp-block-image :is(a, span, picture),
#top .nir__story > figure.wp-block-image :is(a, span, picture) {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}
#top .nir__story > p:has(img) a:has(img),
#top .nir__story > .wp-caption a:has(img),
#top .nir__story > figure a:has(img) { display: block !important; }

#top .nir__story > p:has(img) img,
#top .nir__story > .wp-caption img,
#top .nir__story > figure.wp-block-image img,
#top .nir__story > .wp-block-image img,
#top .nir__story > img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  float: none !important;
  object-fit: contain !important;
  margin: 0 !important;
}

/* Direkt eingefuegte Bilder ohne Absatz (Textmodus). */
#top .nir__story > img { margin: clamp(52px, 7vw, 112px) 0 !important; }

/* Einzelne, klassische Bildunterschriften nicht auf Vollbreite ziehen. */
#top .nir__story > .wp-caption .wp-caption-text,
#top .nir__story > figure.wp-caption figcaption { width: auto !important; }

/* =====================================================================
   V2.2 – STABILE CLASSIC-GALERIEN + NACHFOLGETEXT
   WordPress nutzt fuer [gallery] je nach Installation figure/dl/div,
   Floats, Clearfix-BRs und Inline-CSS. Grid + flow-root containen alles.
   ===================================================================== */
#top .nir__story {
  display: flow-root !important; /* keine Float-Bilder ueber dem Footer */
  min-height: 0;
  height: auto !important;
  overflow: visible !important;
}
#top .nir__story > .gallery,
#top .nir__story > [id^="gallery-"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  clear: both !important;
  float: none !important;
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  isolation: isolate;
}
#top .nir__story > .gallery.gallery-columns-1 { grid-template-columns: 1fr; }
#top .nir__story > .gallery.gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#top .nir__story > .gallery.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#top .nir__story > .gallery :is(.gallery-item, figure.gallery-item, dl.gallery-item) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
}
#top .nir__story > .gallery :is(.gallery-icon, .gallery-icon a, .gallery-item > a) {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#top .nir__story > .gallery img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  float: none !important;
  object-fit: contain !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
}
#top .nir__story > .gallery :is(br[style*="clear"], br.clear, .clear) { display: none !important; }
#top .nir__story > .gallery .gallery-caption {
  display: block !important;
  position: static !important;
  width: auto !important;
  max-height: none !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 12px clamp(14px, 1.8vw, 25px) 0 !important;
  color: var(--nir-muted) !important;
  background: none !important;
  text-align: left !important;
  line-height: 1.6 !important;
}
/* Nachlaufender Absatz soll auf die GALERIE folgen, nicht an ihr floaten. */
#top .nir__story > .gallery + *,
#top .nir__story > [id^="gallery-"] + * { clear: both !important; }
#top .nir__story > .gallery + p,
#top .nir__story > [id^="gallery-"] + p {
  padding-top: clamp(12px, 2vw, 26px);
}
#top .nir__story > :last-child { clear: both; }
#top .nir__closing { clear: both !important; position: relative; z-index: 1; }

@media (max-width: 900px) {
  #top .nir__story > .gallery.gallery-columns-3,
  #top .nir__story > .gallery.gallery-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  #top .nir__cover {
    height: auto;
    min-height: clamp(480px, 115vw, 690px);
    padding: 180px 18px 33px;
  }
  #top .nir__cover-image { width: 100% !important; height: 100% !important; object-fit: cover; object-position: 75% center; }
  #top .nir__cover::after {
    background: linear-gradient(0deg, rgba(0,0,0,.87) 0%, rgba(0,0,0,.56) 44%, rgba(0,0,0,.10) 89%);
  }
  #top .nir__hero-copy { width: 100%; }
  #top .nir h1.nir__title { font-size: clamp(3.0rem, 13vw, 5.4rem); line-height: .93; }
  #top .nir__deck { margin-top: 16px !important; padding-left: 14px; border-left-width: 4px; font-size: clamp(.98rem, 3.9vw, 1.15rem); line-height: 1.43; }
  #top .nir__cover-badge { margin-top: 24px; padding: 9px 11px; font-size: .57rem; letter-spacing: .07em; }
  #top .nir__details { width: calc(100% - 36px); gap: 16px 23px; font-size: .8rem; }
  #top .nir__story > .gallery,
  #top .nir__story > .gallery.gallery-columns-3,
  #top .nir__story > .gallery.gallery-columns-4 { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 370px) {
  #top .nir__cover { height: auto; min-height: 540px; padding-top: 185px; }
  #top .nir h1.nir__title { font-size: clamp(2.65rem, 11vw, 3.35rem); }
  #top .nir__deck { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  #top .nir__cover * { transition: none !important; }
}

/* =====================================================================
   V2.3 – KNAPPER BILDRHYTHMUS
   Fotostrecken wirken als zusammenhaengende Sequenz statt als einzelne
   Blaecke mit sehr grossen Aussenabstaenden. Gilt nur fuer .nir__story.
   Das Flow-root/Gallery-Clear aus V2.2 bleibt unveraendert.
   ===================================================================== */
#top .nir__story > :is(
  p:has(img), p:has(picture),
  figure, .wp-caption, .wp-block-image,
  img, .gallery, [id^="gallery-"],
  .wp-block-gallery, .wp-block-columns,
  .ni-photo-wide, .ni-photo-full
) {
  margin-top: clamp(60px, 6.5vw, 94px) !important;
  margin-bottom: clamp(60px, 6.5vw, 94px) !important;
}
/* Direkt aufeinanderfolgende Fotos und Galerien: nur eine schmale Fuge. */
#top .nir__story > :is(
  p:has(img), p:has(picture), figure, .wp-caption, .wp-block-image,
  img, .gallery, [id^="gallery-"], .wp-block-gallery, .wp-block-columns,
  .ni-photo-wide, .ni-photo-full
):has(+ :is(
  p:has(img), p:has(picture), figure, .wp-caption, .wp-block-image,
  img, .gallery, [id^="gallery-"], .wp-block-gallery, .wp-block-columns,
  .ni-photo-wide, .ni-photo-full
)) {
  margin-bottom: 0 !important;
}
#top .nir__story > :is(
  p:has(img), p:has(picture), figure, .wp-caption, .wp-block-image,
  img, .gallery, [id^="gallery-"], .wp-block-gallery, .wp-block-columns,
  .ni-photo-wide, .ni-photo-full
) + :is(
  p:has(img), p:has(picture), figure, .wp-caption, .wp-block-image,
  img, .gallery, [id^="gallery-"], .wp-block-gallery, .wp-block-columns,
  .ni-photo-wide, .ni-photo-full
) {
  margin-top: 10px !important;
}

/* Leere Absatz-Tags aus dem Classic Editor duerfen zwischen zwei Fotos
   keine zusaetzliche Leerflaeche erzeugen. Textabsatz mit Inhalt bleibt. */
#top .nir__story > p:empty,
#top .nir__story > p:has(> br:only-child) {
  display: none !important;
}

/* Eine einzelne leere Zeile zwischen zwei Medienbloecken (Classic Editor)
   soll ebenfalls nur die schmale Bildfuge ergeben. */
#top .nir__story > :is(
  p:has(img), figure, .wp-caption, .wp-block-image,
  img, .gallery, [id^="gallery-"], .wp-block-gallery,
  .wp-block-columns, .ni-photo-wide, .ni-photo-full
):has(+ :is(p:empty, p:has(> br:only-child)) + :is(
  p:has(img), figure, .wp-caption, .wp-block-image,
  img, .gallery, [id^="gallery-"], .wp-block-gallery,
  .wp-block-columns, .ni-photo-wide, .ni-photo-full
)) { margin-bottom: 0 !important; }
#top .nir__story > :is(
  p:has(img), figure, .wp-caption, .wp-block-image,
  img, .gallery, [id^="gallery-"], .wp-block-gallery,
  .wp-block-columns, .ni-photo-wide, .ni-photo-full
) + :is(p:empty, p:has(> br:only-child)) + :is(
  p:has(img), figure, .wp-caption, .wp-block-image,
  img, .gallery, [id^="gallery-"], .wp-block-gallery,
  .wp-block-columns, .ni-photo-wide, .ni-photo-full
) { margin-top: 10px !important; }

/* =====================================================================
   V2.5 – CLASSIC-EDITOR-BILDFOLGEN OHNE UNSICHTBARE ZWISCHENRAEUME
   JS setzt Klassen nur bei aufeinanderfolgenden Bildbloecken und ignoriert
   blosses Leer-HTML, das WordPress zwischen Foto und Galerie einschiebt.
   Textgroessen, Schriften und Textabstaende bleiben unveraendert.
   ===================================================================== */
#top .nir__story > .nir__media-join-before {
  margin-bottom: 0 !important;
}
#top .nir__story > .nir__media-join-after {
  margin-top: 10px !important;
}
#top .nir__story > .nir__media-spacer {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
}
