/* =====================================================================
   News — Einzelbeitrag (redaktionelles Artikel-Layout) + Listing (Feed).
   Basis = subpages.css (Tokens + entry-content). Farben brauchen den
   Prefix `body:not(.home) .entry-content`, um Theme-Regeln zu schlagen.
   ===================================================================== */

/* ---------------------------------------------------------------------
   A) EINZELBEITRAG — schmale Lesespalte, Stand der Technik
   --------------------------------------------------------------------- */
/* Tag 9: Lesespalte aus dem Token statt eigener 720px-Sonderbreite -
   Artikel und Fliesstext der Unterseiten haben jetzt dieselbe Zeilenlaenge. */
body.single-post .pb-article {
  max-width: calc(var(--pb-measure-read) + 2 * var(--pb-gutter));
  margin: 0 auto;
  padding: 2rem var(--pb-gutter) clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 960px) {
  body.single-post .pb-article { padding-top: 7rem; }  /* fixen Navy-Header freihalten */
}

/* entry-content-Breitenzwang der Unterseiten hier aufheben */
body.single-post .entry-content { max-width: none; margin: 0; padding: 0; font-size: 1.19rem; line-height: 1.75; }
body.single-post .entry-content > h2 { margin-top: 2em; }
body.single-post .entry-content p { margin: 0 0 1.3em; }

/* Kopf */
.pb-article__head { margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.pb-article__kicker { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1rem; flex-wrap: wrap; }
.pb-article__cat {
  display: inline-block; padding: 0.28rem 0.8rem;
  background: var(--pb-cyan); color: #04223b;
  border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
}
.pb-article__read { color: var(--pb-text-muted); font-size: var(--pb-fs-sm); }

.pb-article__title {
  margin: 0 0 0.8rem; color: var(--pb-navy);
  /* Tag 9: eine H1-Groesse site-weit (Startseite, Unterseiten, Artikel). */
  font-size: var(--pb-fs-display);
  line-height: 1.12; font-weight: 700; letter-spacing: -0.02em;
}
.pb-article__dek {
  margin: 0 0 1.5rem; color: var(--pb-text-muted);
  font-size: var(--pb-fs-md); line-height: var(--pb-lh-snug);
}
.pb-article__byline {
  display: flex; align-items: center; gap: 0.6rem; margin: 0; padding-top: 1.2rem;
  border-top: 1px solid var(--pb-line); color: var(--pb-text-muted); font-size: var(--pb-fs-sm);
}
.pb-article__mark { width: 12px; height: 12px; background: var(--pb-cyan); transform: rotate(-15deg); flex: none; }
.pb-article__by { color: var(--pb-navy); font-weight: 600; }
.pb-article__sep { opacity: 0.5; }

/* Beitragsbild */
.pb-article__hero {
  margin: 0 0 clamp(1.8rem, 4vw, 2.6rem);
  border-radius: var(--pb-radius-lg); overflow: hidden;
  box-shadow: var(--pb-shadow-md); line-height: 0;
}
.pb-article__hero img { width: 100%; height: auto; display: block; border-radius: 0 !important; box-shadow: none !important; }

/* Fuss + Tags/Navigation (liegen innerhalb .pb-article = 720px) */
.pb-article__foot { margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.6rem; border-top: 1px solid var(--pb-line); }
.pb-article__back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--pb-navy); font-weight: 600; font-size: var(--pb-fs-sm); text-decoration: none; }
.pb-article__back:hover { color: var(--pb-cyan-ink); }
body.single-post .post-navigation a { color: var(--pb-cyan-ink); }
body.single-post .entry-tags a, body.single-post .tags-links a {
  display: inline-block; margin: 0 0.3rem 0.4rem 0; padding: 0.25rem 0.75rem;
  background: var(--pb-surface-alt); border: 1px solid var(--pb-card-border);
  border-radius: 999px; font-size: var(--pb-fs-sm); color: var(--pb-navy); text-decoration: none;
}
body.single-post .entry-tags a:hover, body.single-post .tags-links a:hover { background: #fff; border-color: var(--pb-cyan); }

/* ISO-9001-Callout im Beitrag */
.pb-iso-callout {
  display: flex; align-items: center; gap: 1.5rem; margin: 2.2rem 0; padding: 1.5rem 1.8rem;
  background: var(--pb-surface-alt); border: 1px solid var(--pb-card-border);
  border-left: 4px solid var(--pb-cyan); border-radius: var(--pb-radius-md);
}
.pb-iso-callout__badge { flex: none; width: 118px; height: 118px; border-radius: 0 !important; box-shadow: none !important; }
body:not(.home) .entry-content .pb-iso-callout__eyebrow { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pb-cyan-ink); }
body:not(.home) .entry-content .pb-iso-callout__title { margin: 0.25rem 0; font-size: var(--pb-fs-xl); font-weight: 700; color: var(--pb-navy); }
body:not(.home) .entry-content .pb-iso-callout__meta { margin: 0; color: var(--pb-text-muted); font-size: var(--pb-fs-sm); }
@media (max-width: 520px) { .pb-iso-callout { flex-direction: column; text-align: center; } .pb-article__hero { border-radius: var(--pb-radius-md); } }

/* ---------------------------------------------------------------------
   B) LISTING — Feature (Bild-Overlay) + Karten-Grid
   --------------------------------------------------------------------- */
.pb-newsfeed { margin: 0.5rem 0 1rem; }

/* Feature = neuester Beitrag: großes Bild, Text im Overlay unten */
.pb-newsfeed__feature {
  position: relative; display: flex; overflow: hidden;
  min-height: 400px; margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: var(--pb-radius-lg); text-decoration: none;
  box-shadow: var(--pb-shadow-md);
  transition: transform var(--pb-transition), box-shadow var(--pb-transition);
}
.pb-newsfeed__feature:hover { transform: translateY(-3px); box-shadow: var(--pb-shadow-lg); }
.pb-newsfeed__feature-media { position: absolute; inset: 0; background: var(--pb-navy); }
.pb-newsfeed__feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,26,46,0.05) 0%, rgba(9,26,46,0.35) 45%, rgba(9,26,46,0.92) 100%);
}
.pb-newsfeed__feature-body { position: relative; z-index: 1; margin-top: auto; width: 100%; padding: clamp(1.6rem, 4vw, 2.6rem); }
@media (min-width: 720px) { .pb-newsfeed__feature-body { max-width: 68%; } }

/* Grid = restliche Beiträge */
.pb-newsfeed__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1.2rem, 3vw, 1.8rem); }
.pb-newscard {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--pb-surface); border-radius: var(--pb-radius-md);
  box-shadow: var(--pb-shadow-sm); text-decoration: none;
  transition: transform var(--pb-transition), box-shadow var(--pb-transition);
}
.pb-newscard:hover { transform: translateY(-4px); box-shadow: var(--pb-shadow-md); }
.pb-newscard__media { position: relative; height: 184px; background: var(--pb-navy); overflow: hidden; }
.pb-newscard__bit { position: absolute; top: 12px; left: 12px; z-index: 2; width: 12px; height: 12px; background: var(--pb-cyan); transform: rotate(-15deg); }
.pb-newscard__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }

/* Medien (Bild/Platzhalter) füllen die Fläche */
.pb-newsfeed__feature-media picture, .pb-newscard__media picture { position: absolute; inset: 0; display: block; }
.pb-newsfeed__feature-media img, .pb-newscard__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; border-radius: 0 !important; box-shadow: none !important;
}

/* Eyebrow / Bit */
.pb-news-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.pb-news-bit { width: 9px; height: 9px; background: var(--pb-cyan); transform: rotate(-15deg); }

/* Titel / Datum / Excerpt — Feature (hell auf Overlay) vs. Karte (dunkel) */
body:not(.home) .entry-content .pb-newsfeed__feature .pb-news-eyebrow { color: var(--pb-cyan-bright); }
body:not(.home) .entry-content .pb-newsfeed__feature-title { margin: 0.5rem 0 0.3rem; color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; line-height: 1.15; }
body:not(.home) .entry-content .pb-newsfeed__feature .pb-news-date { margin: 0 0 0.6rem; color: rgba(224,236,247,0.85); font-size: var(--pb-fs-sm); }
body:not(.home) .entry-content .pb-newsfeed__feature .pb-news-excerpt { margin: 0 0 1rem; color: rgba(233,241,248,0.92); font-size: var(--pb-fs-base); line-height: var(--pb-lh-snug); }

body:not(.home) .entry-content .pb-newscard__title { margin: 0.15rem 0 0.5rem; color: var(--pb-navy); font-size: var(--pb-fs-lg); font-weight: 600; line-height: var(--pb-lh-snug); }
body:not(.home) .entry-content .pb-newscard .pb-news-date { margin: 0 0 0.5rem; color: var(--pb-cyan-ink); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
body:not(.home) .entry-content .pb-newscard .pb-news-excerpt { margin: 0 0 1rem; color: var(--pb-text-muted); font-size: var(--pb-fs-sm); line-height: var(--pb-lh-snug); }

/* Weiterlesen */
.pb-news-more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: var(--pb-fs-sm); }
.pb-newsfeed__feature .pb-news-more { color: var(--pb-cyan-bright); }
.pb-newscard .pb-news-more { color: var(--pb-navy); }
.pb-newscard:hover .pb-news-more { color: var(--pb-cyan-ink); }

/* Platzhalter ohne Beitragsbild — Navy-Panel mit Bit-Cluster */
.pb-news-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(120% 140% at 80% -20%, rgba(41,163,224,0.28), rgba(41,163,224,0) 55%), linear-gradient(135deg, #0e2c4d, var(--pb-navy)); }
.pb-news-ph i { display: block; background: var(--pb-cyan); transform: rotate(-15deg); }
.pb-news-ph i:nth-child(1) { width: 22px; height: 22px; }
.pb-news-ph i:nth-child(2) { width: 30px; height: 30px; background: var(--pb-cyan-bright); }
.pb-news-ph i:nth-child(3) { width: 14px; height: 14px; border: 2px solid var(--pb-cyan-bright); background: transparent; }

/* ---------------------------------------------------------------------
   C) LISTING — Zeilen-/Akkordeon-Ansicht (native <details>)
   --------------------------------------------------------------------- */
/* Tag 9: linksbuendig statt zentriert - die Liste startet damit auf
   derselben Kante wie H1 und alle Sektionen (vorher 148px versetzt). */
.pb-newsfeed--list { max-width: 840px; margin-inline: 0; }

.pb-newsrow { border-bottom: 1px solid var(--pb-line); }
.pb-newsrow:first-child { border-top: 1px solid var(--pb-line); }

.pb-newsrow__summary {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.15rem 0.5rem; cursor: pointer; list-style: none;
  transition: background var(--pb-transition);
}
.pb-newsrow__summary::-webkit-details-marker { display: none; }
.pb-newsrow__summary::marker { content: ""; }
.pb-newsrow__summary:hover { background: var(--pb-surface-alt); }
.pb-newsrow[open] > .pb-newsrow__summary { background: var(--pb-surface-alt); }

.pb-newsrow__bit { flex: none; width: 11px; height: 11px; background: var(--pb-cyan); transform: rotate(-15deg); }
.pb-newsrow__main { flex: 1; min-width: 0; }
body:not(.home) .entry-content .pb-newsrow__title { display: block; margin: 0; color: var(--pb-navy); font-size: var(--pb-fs-lg); font-weight: 600; line-height: 1.3; }
.pb-newsrow__meta { display: block; margin-top: 0.22rem; color: var(--pb-text-muted); font-size: var(--pb-fs-sm); }
.pb-newsrow__chev { flex: none; display: inline-flex; color: var(--pb-cyan-ink); transition: transform var(--pb-transition); }
.pb-newsrow[open] .pb-newsrow__chev { transform: rotate(180deg); }

/* Panel-Inhalt symmetrisch eingerückt: linker Einzug = Überschrift, rechts gleich */
.pb-newsrow__panel { padding: 0.4rem 2.1rem 1.9rem 2.1rem; }
.pb-newsrow__content { max-width: none; }
.pb-newsrow__content > :first-child { margin-top: 0; }
body:not(.home) .entry-content .pb-newsrow__content h2 { font-size: var(--pb-fs-lg); margin: 1.5em 0 0.5em; padding: 0; }
body:not(.home) .entry-content .pb-newsrow__content h2::after { display: none; }
/* Bilder im Beitrag: gerahmt + sanfte Reveal-Animation beim Aufklappen */
.pb-newsrow__content figure,
.pb-newsrow__content .wp-block-image {
  margin: 1.7rem 0; border-radius: var(--pb-radius-md);
  overflow: hidden; box-shadow: var(--pb-shadow-md); line-height: 0;
}
.pb-newsrow__content figure picture,
.pb-newsrow__content .wp-block-image picture { display: block; }
.pb-newsrow__content figure img,
.pb-newsrow__content .wp-block-image img {
  display: block; width: 100%; height: auto;
  border-radius: 0 !important; box-shadow: none !important;
  transition: transform 0.5s ease;
}
.pb-newsrow[open] .pb-newsrow__content figure img,
.pb-newsrow[open] .pb-newsrow__content .wp-block-image img { animation: pbImgReveal 0.75s cubic-bezier(0.2,0.7,0.2,1) both; }
@keyframes pbImgReveal { from { transform: scale(1.08); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pb-newsrow__content figure:hover img { transform: scale(1.03); }
.pb-newsrow__content figcaption {
  line-height: 1.4; padding: 0.7rem 0.9rem;
  background: var(--pb-surface-alt); color: var(--pb-text-muted);
  font-size: var(--pb-fs-sm); text-align: center;
}

@media (max-width: 520px) { .pb-newsrow__panel { padding-left: 0.5rem; } }
