/* v5, Teil «news»: Übersicht news/ und Beitragsseiten news/<slug>/. Nur v4-Tokens (Farben, Radien, Schrift), Präfix .v5-nw- */

/* Kopf: bündig mit der Spalte darunter statt mittig (wie v4-Kopf mit Bild, z. B. Referenzen) */
html .v5-nw-kopf .s-kopfseite-innen.z-allein:not(#v4-nie) > div { max-width: none }
.v5-nw-kopf .s-zweiton { max-width: 22ch }
.v5-nw-kopf .s-einstieg-lead { max-width: 44rem }
.v5-nw-kopf .v5-nw-dach { margin: 0 0 1.1rem }
.v5-nw-kopf .v5-nw-meta { margin-top: 1.6rem }

/* Zwei Spalten: Inhalt links, Seitenspalte rechts (bleibt beim Lesen stehen) */
.v5-nw-raster { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: start }
.v5-nw-seite { position: sticky; top: calc(var(--kopf-h) + 1.5rem); display: grid; gap: 1rem; max-height: calc(100vh - var(--kopf-h) - 3rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; border-radius: .9rem }
@media (max-width: 960px) {
  .v5-nw-raster { grid-template-columns: minmax(0, 1fr) }
  .v5-nw-seite { position: static; max-height: none; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start }
}
@media (max-width: 640px) { .v5-nw-seite { grid-template-columns: minmax(0, 1fr) } }
/* Fenster niedriger als die Seitenspalte (ca. 820px + Kopf): nicht mitlaufen statt unten abschneiden (Designprüfung 20.11.) */
@media (min-width: 961px) and (max-height: 960px) { .v5-nw-seite { position: static; max-height: none; overflow: visible } }

/* Pillen: Art und Kategorie (wie die Kategorie-Pillen von v4-Insights) */
.v5-nw-dach { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 }
.v5-nw-dach .s-ins-thema { grid-area: auto; font-size: .8125rem; line-height: 1.3 }
.v5-nw-ins-tuerkis { background: var(--g-tuerkis-wolke); color: var(--g-tuerkis-tief) }
.v5-nw-ins-himmel { background: var(--g-himmel-wolke); color: var(--g-himmel-tief) }
html[data-thema="dunkel"] .v5-nw-ins-tuerkis { background: rgb(69 190 203 / .18); color: #9fe6ee }
html[data-thema="dunkel"] .v5-nw-ins-himmel { background: rgb(96 182 228 / .18); color: #b5e6ff }

/* Autor-Zeile: Foto, Name, Lesezeit */
.v5-nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 0; color: var(--grau); font-size: .875rem }
html[data-seite="unter"] main p.v5-nw-meta { font-size: .875rem; line-height: 1.4 }
.v5-nw-meta b { font-weight: 500; color: var(--tinte) }
.v5-nw-meta b + span::before { content: "·"; margin-right: .6rem; color: var(--grau) }
.v5-nw-meta-bild, .v5-nw-foto { flex: none; display: block; overflow: hidden; border-radius: 50%; background: var(--flaeche) }
.v5-nw-meta-bild { width: 2rem; height: 2rem }
.v5-nw-meta-bild img, .v5-nw-foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22% }
.v5-nw-zeichen { display: grid; place-items: center; background: var(--g-himmel-wolke); box-shadow: inset 0 0 0 1px var(--linie) }
.v5-nw-zeichen img { width: 62% !important; height: auto !important; object-fit: contain }
html[data-thema="dunkel"] .v5-nw-meta b { color: var(--text-hell) }
html[data-thema="dunkel"] .v5-nw-zeichen { background: rgb(255 255 255 / .06) }

/* Hauptbeitrag: grosse v4-Kachel */
.v5-nw-hauptbeitrag { gap: 1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) !important }
.v5-nw-hauptbeitrag::before { opacity: .55 }
.v5-nw-hauptbeitrag > h2 { font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--font); letter-spacing: -.02em; max-width: 26ch; text-wrap: balance }
.v5-nw-hauptbeitrag > h2 a { background: linear-gradient(currentColor 0 0) no-repeat 0 100% / 0 1px; transition: background-size 320ms cubic-bezier(.2, .8, .2, 1) }
.v5-nw-hauptbeitrag > h2 a:is(:hover, :focus-visible) { background-size: 100% 1px }
.s-kachel p.v5-nw-abstract { max-width: 40rem; color: var(--tinte); font-size: 1.0625rem; line-height: 1.6 }
html[data-thema="dunkel"] .s-kachel p.v5-nw-abstract { color: var(--text-hell) }
.v5-nw-inhalt { margin-top: .25rem; padding: 1.1rem 1.25rem 1.2rem; border-radius: .7rem; corner-shape: superellipse(1.1); background: rgb(255 255 255 / .7) }
.v5-nw-inhalt h3 { font: 500 .8125rem/1.3 var(--font) !important; letter-spacing: .01em !important; color: var(--g-mint-tief) }
.v5-nw-inhalt .s-haken-liste { margin-top: .7rem; gap: .45rem }
html[data-thema="dunkel"] .v5-nw-inhalt { background: rgb(255 255 255 / .04) }
html[data-thema="dunkel"] .v5-nw-inhalt h3 { color: var(--mint) }
.v5-nw-hauptbeitrag .v5-nw-meta { margin-top: .25rem }
.v5-nw-hauptbeitrag .s-knoepfe { margin-top: .5rem }

/* Weitere Beiträge */
.v5-nw-feed-titel { margin: clamp(3rem, 2rem + 3vw, 4.5rem) 0 1.5rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem) }
.v5-nw-feed { --spalten: 2 }
.v5-nw-teaser { gap: .7rem }
.v5-nw-teaser > h3 { text-wrap: balance }
.v5-nw-teaser .v5-nw-meta { margin-top: auto; padding-top: .4rem }
.v5-nw-teaser .s-mehr { margin-top: 0; padding-top: .2rem }
@media (max-width: 760px) { .v5-nw-feed { grid-template-columns: minmax(0, 1fr) } }

/* Seitenspalte */
.v5-nw-box { position: relative; isolation: isolate; overflow: hidden; padding: 1.25rem 1.3rem 1.3rem; border-radius: .9rem; corner-shape: superellipse(1.1); background: var(--flaeche) }
.v5-nw-autor::before { content: ""; position: absolute; z-index: -1; right: -35%; top: -60%; width: 85%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--ton) 70%, transparent), transparent); opacity: .5 }
html[data-thema="dunkel"] .v5-nw-box { background: rgb(152 234 215 / .05) }
html[data-thema="dunkel"] .v5-nw-autor::before { opacity: .15 }
.v5-nw-box-titel { margin: 0 0 .85rem; font: 500 .8125rem/1.3 var(--font); letter-spacing: .01em; color: var(--g-mint-tief) }
html[data-thema="dunkel"] .v5-nw-box-titel { color: var(--mint) }
.v5-nw-person { display: flex; align-items: center; gap: .9rem }
.v5-nw-foto { width: 4.25rem; height: 4.25rem; box-shadow: 0 0 0 3px #fff }
html[data-thema="dunkel"] .v5-nw-foto { box-shadow: 0 0 0 3px var(--linie) }
html[data-seite="unter"] main .v5-nw-box p { font-size: .9375rem; line-height: 1.55 }
html[data-seite="unter"] main .v5-nw-box p.v5-nw-name { font: 500 1.0625rem/1.3 var(--font); color: var(--tinte) }
html[data-seite="unter"] main .v5-nw-box p.v5-nw-funktion { margin-top: .15rem; font-size: .875rem; color: var(--grau) }
html[data-thema="dunkel"] main .v5-nw-box p.v5-nw-name { color: var(--text-hell) }
.v5-nw-bio { margin-top: .85rem; color: var(--grau) }
.v5-nw-autor .s-mehr { padding-top: .8rem }
.v5-nw-weitere ul { display: grid; gap: .1rem; margin: 0 -.6rem; padding: 0; list-style: none }
.v5-nw-weitere a { display: grid; gap: .15rem; padding: .55rem .6rem; border-radius: .6rem; corner-shape: superellipse(1.1); transition: background-color 200ms ease }
.v5-nw-weitere a:is(:hover, :focus-visible) { background: rgb(255 255 255 / .85) }
html[data-thema="dunkel"] .v5-nw-weitere a:is(:hover, :focus-visible) { background: rgb(255 255 255 / .06) }
.v5-nw-art { font-size: .75rem; font-weight: 500; letter-spacing: .01em; color: var(--ton, var(--g-mint-tief)) }
.v5-nw-titel { font: 500 .9375rem/1.4 var(--font); color: var(--tinte); text-wrap: pretty }
.v5-nw-dauer { font-size: .8125rem; color: var(--grau) }
html[data-thema="dunkel"] .v5-nw-art { color: var(--mint) }
html[data-thema="dunkel"] .v5-nw-titel { color: var(--text-hell) }

/* Beitragstext (v4-Rechtstext als Lesespalte) */
.v5-nw-text { max-width: 44rem }
.v5-nw-text h2 { margin-top: 2.75rem; font: 500 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.3 var(--font); letter-spacing: -.015em; color: var(--tinte) }
html[data-thema="dunkel"] .v5-nw-text h2 { color: var(--text-hell) }
.v5-nw-text :is(p, li) { color: var(--grau) }
.v5-nw-text ul.s-haken-liste { margin-top: 1.1rem; padding-left: 0; list-style: none }
.v5-nw-text .s-haken-liste li { margin-top: 0; color: var(--tinte) }
html[data-thema="dunkel"] .v5-nw-text .s-haken-liste li { color: var(--text-hell) }
.v5-nw-text p.v5-nw-alle { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--linie) }
.v5-nw-text p.v5-nw-alle a.s-mehr { padding-top: 0; color: var(--g-mint-tief); text-decoration: none }
html[data-thema="dunkel"] .v5-nw-text p.v5-nw-alle a.s-mehr { color: var(--mint) }

/* Dachzeile neutral «Blog · Governance» statt farbiger Pillen (Pascal 21.11.) */
.v5-nw-dach { align-items: baseline; gap: 0; font-size: .875rem; line-height: 1.4; letter-spacing: .01em }
.v5-nw-art { font-weight: 500; color: var(--tinte) }
.v5-nw-thema { color: var(--grau) }
.v5-nw-thema::before { content: "·"; margin: 0 .45em; color: var(--grau) }
html[data-thema="dunkel"] .v5-nw-art { color: var(--text-hell) }
/* einheitlicher, ruhiger Kartenton statt einer Farbe pro Beitrag */
.v5-nw-teaser, .v5-nw-hauptbeitrag { --ton: var(--g-mint-pastell) }

/* Filter nach Art (wie .v5-kd-filter auf kunden/) */
.v5-nw-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem }
.v5-nw-filter button { padding: .55rem .95rem; border: 0; border-radius: 99px; background: var(--mint-hell); color: var(--tinte);
  font: 500 .875rem/1.2 var(--font); cursor: pointer; corner-shape: superellipse(1.1); transition: background-color 200ms ease, color 200ms ease }
@media (hover: hover) { .v5-nw-filter button:hover { background: color-mix(in oklch, var(--g-mint-pastell) 60%, #fff) } }
.v5-nw-filter button[aria-pressed="true"] { background: var(--g-mint-tief); color: #fff }
.v5-nw-filter button:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px }
html[data-thema="dunkel"] .v5-nw-filter button { background: rgb(255 255 255 / .06); color: var(--text-hell) }
html[data-thema="dunkel"] .v5-nw-filter button[aria-pressed="true"] { background: var(--mint); color: #0b1d2b }
.v5-nw-haupt [hidden] { display: none !important }
html .v5-nw-dach :is(.v5-nw-art, .v5-nw-thema):not(#v5-nie) { font-size: .875rem; line-height: 1.4 }

/* Beitragsseiten: «Weitere Artikel» als Karussell unter dem Beitrag (Pascal 21.11.) */
.v5-nw-karussell-kopf { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem }
.v5-nw-karussell-kopf h2 { margin: 0 }
.v5-nw-pfeile { display: flex; gap: .5rem; flex: none }
/* Pfeile: Aussehen und Hover der Lebenszyklus-Pfeile von v4 (.v4-kr-pfeil, Pascal 21.11.: «hier stimmt sie») */
.v5-nw-pfeil:disabled { opacity: .35; cursor: default }
.v5-nw-spur { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2rem) / 3); column-gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: .25rem; margin-block: -.25rem }
.v5-nw-spur::-webkit-scrollbar { display: none }
.v5-nw-spur > .v5-nw-teaser { scroll-snap-align: start }
.v5-nw-spur:focus-visible { outline: 2px solid var(--fokus); outline-offset: 4px; border-radius: .9rem }
.v5-nw-karussell .v5-nw-alle { margin: 1.75rem 0 0 }
@media (max-width: 960px) { .v5-nw-spur { grid-auto-columns: calc((100% - 1rem) / 2) } }
@media (max-width: 640px) { .v5-nw-spur { grid-auto-columns: 85% } }

/* «Weitere Artikel» übersichtlicher (Pascal 28.11.): Dachzeile «Blog · Thema» wie auf der Startseite, Trennlinien,
   Lesezeit klein; Hover als weisse Pille aus der Mitte (wie News-Liste Startseite) */
main .v5-nw-weitere ul:not(#v5-nie) { gap: 0; margin: .25rem 0 0 }
main .v5-nw-weitere li + li:not(#v5-nie) { border-top: 1px solid var(--linie) }
main .v5-nw-weitere a:not(#v5-nie) { position: relative; isolation: isolate; gap: .3rem; padding: .9rem 0; border-radius: 0; background: none; text-decoration: none }
main .v5-nw-weitere li:first-child a:not(#v5-nie) { padding-top: .35rem }
main .v5-nw-weitere li:last-child a:not(#v5-nie) { padding-bottom: .1rem }
main .v5-nw-weitere a:not(#v5-nie)::before { content: ""; position: absolute; inset: 0 -.75rem; z-index: -1; border-radius: .7rem; background: #fff; pointer-events: none;
  clip-path: inset(50% 50% 50% 50% round 999px); transition: clip-path 560ms cubic-bezier(.2,.9,.3,1) }
main .v5-nw-weitere a:not(#v5-nie):is(:hover, :focus-visible)::before { clip-path: inset(0 0 0 0 round .7rem) }
main .v5-nw-weitere li:has(a:is(:hover, :focus-visible)):not(#v5-nie), main .v5-nw-weitere li:has(a:is(:hover, :focus-visible)) + li:not(#v5-nie) { border-top-color: transparent }
html[data-thema="dunkel"] main .v5-nw-weitere a:not(#v5-nie)::before { background: rgb(255 255 255 / .07) }
.v5-nw-w-dach { font-size: .8125rem; line-height: 1.4; color: var(--grau); hyphens: manual }
.v5-nw-w-art { font-weight: 500; color: var(--tinte) }
.v5-nw-w-thema::before { content: "·"; margin: 0 .4em }
html[data-thema="dunkel"] .v5-nw-w-art { color: var(--text-hell) }
main .v5-nw-weitere .v5-nw-titel:not(#v5-nie) { font: 500 1rem/1.35 var(--font) }
main .v5-nw-weitere .v5-nw-dauer:not(#v5-nie) { font-size: .8125rem; color: var(--grau) }
