/* News pages (overview and detail). Builds on lux.css and premium.css tokens; own rules start with .nw. */
.nw-page { background: var(--white); }
.nw-banner { position: sticky; top: 0; z-index: 60; margin: 0; padding: 10px var(--gut); background: var(--lime); color: var(--ink); text-align: center; font-weight: 500; font-size: 15px; }

/* Page head: large title, one lead, quiet meta line */
.nw-head { padding: clamp(150px, 15vw, 250px) 0 clamp(48px, 6vw, 104px); }
.nw-head .wrap { display: grid; gap: clamp(18px, 1.8vw, 30px); justify-items: start; }
.nw-head .h-xl { max-width: 20ch; }
.nw-head .lead { max-width: 56ch; color: var(--mute); }
.nw-crumb { font-size: 15px; color: var(--mute); display: flex; gap: 10px; }
.nw-crumb a { text-decoration: none; transition: color .3s var(--ease); }
.nw-crumb a:hover { color: var(--ink); }
.nw-meta { display: block; font-size: 15px; font-weight: 500; color: var(--mute); letter-spacing: 0; }

/* Filter: text tabs on one rule, the active one underlined */
.nw-filter { display: flex; flex-wrap: wrap; gap: clamp(22px, 2.4vw, 40px); width: 100%; margin-top: clamp(16px, 2vw, 32px); border-bottom: 1px solid var(--line); }
.nw-filter a { position: relative; padding: 0 0 16px; text-decoration: none; font-weight: 500; color: var(--mute); transition: color .3s var(--ease); }
.nw-filter a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.nw-filter a:hover, .nw-filter a[aria-current] { color: var(--ink); }
.nw-filter a[aria-current]::after { transform: none; }

/* Poster: every flyer sits on the same grey wall, centred, never wider than its 900px file */
.nw-poster { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--soft); border-radius: var(--r-xl); overflow: hidden; }
.nw-poster img { width: 72%; height: auto; border-radius: 4px; box-shadow: var(--shadow); transition: transform 1s var(--ease), box-shadow 1s var(--ease); }
a:hover .nw-poster img { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(33, 33, 33, .06), 0 44px 70px -30px rgba(33, 33, 33, .42); }
.nw-poster-lg { aspect-ratio: 1 / 1; }
.nw-poster-lg img { width: 60%; } /* sized by width: A4 flyers fill the wall with an even margin */

/* Newest item: poster and copy side by side */
.nw-feature { padding-bottom: clamp(56px, 6vw, 96px); }
.nw-feat { display: grid; gap: clamp(28px, 4vw, 80px); align-items: center; text-decoration: none; }
.nw-feat-copy { display: grid; gap: clamp(16px, 1.6vw, 26px); justify-items: start; }
.nw-feat-copy .h-lg { max-width: 16ch; }
.nw-feat-copy .lead { color: var(--mute); max-width: 44ch; }
.nw-feat-copy .btn { margin-top: 8px; }
.nw-feat:hover .btn { transform: translateY(-1px); box-shadow: 0 16px 30px -16px rgba(33, 33, 33, .5); }
@media (min-width: 900px) { .nw-feat { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

/* News block of the landing pages (Max 02.11.2026): same feature and cards as the overview */
.nw-landing { display: grid; gap: clamp(48px, 5vw, 80px); }
@media (min-width: 900px) { .nw-landing .nw-feat:nth-child(even) > :first-child { order: 1; } .nw-landing .nw-feat:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }

/* Grid of the others: three columns, a rule above each title */
.nw-list { padding-bottom: clamp(96px, 11vw, 190px); }
.nw-cards { display: grid; gap: clamp(48px, 5vw, 80px) clamp(20px, 2.4vw, 40px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.nw-cards a { display: grid; gap: 14px; text-decoration: none; }
.nw-cards .nw-meta { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.nw-cards h3 { font-size: clamp(20px, 1.3vw, 24px); font-weight: 500; letter-spacing: -0.018em; line-height: 1.25; text-wrap: balance; }
.nw-cards p { color: var(--mute); font-size: 16px; line-height: 1.55; }
.nw-cards a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* Detail: poster stays in view while the text scrolls */
.nw-flyer { display: grid; gap: clamp(36px, 5vw, 96px); align-items: start; padding-bottom: clamp(96px, 11vw, 190px); }
@media (min-width: 900px) {
  .nw-flyer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .nw-flyer .nw-poster { position: sticky; top: 100px; }
}
.nw-text { display: grid; gap: 1.1em; font-size: clamp(17px, 0.35vw + 16px, 20px); line-height: 1.7; max-width: 60ch; }
.nw-text ul { display: grid; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.nw-text li { padding: 14px 0; border-top: 1px solid var(--line); }
.nw-lead, .nw-flyer .nw-text > p:first-child { font-size: clamp(21px, 0.8vw + 16px, 28px); line-height: 1.35; font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
.nw-text a { text-underline-offset: 3px; }
.nw-cta { margin-top: 12px; }
.nw-back { padding-bottom: clamp(70px, 8vw, 130px); }

/* Detail of a block post */
.nw-hero img { width: 100%; max-height: 76svh; object-fit: cover; border-radius: var(--r-xl); background: var(--soft); }
.nw-body { display: grid; gap: clamp(28px, 3.4vw, 48px); padding: clamp(48px, 6vw, 96px) 0 clamp(96px, 11vw, 190px); }
.nw-body > * { width: min(100%, 720px); margin-inline: auto; }
.nw-body > .nw-fig-wide, .nw-body > .nw-split { width: min(100%, 1080px); }
.nw-h { font-size: clamp(26px, 2.6vw, 40px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.12; margin-top: clamp(8px, 1.5vw, 24px); text-wrap: balance; }
.nw-fig img { width: 100%; border-radius: var(--r-lg); background: var(--soft); }
.nw-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--mute); }
.nw-split { display: grid; gap: clamp(20px, 3vw, 48px); align-items: center; }
@media (min-width: 900px) {
  .nw-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .nw-split-rechts .nw-fig { order: 2; }
}
.nw-quote { padding: clamp(24px, 3vw, 40px) 0 clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 36px); border-left: 2px solid var(--lime); }
.nw-quote blockquote { margin: 0; font-size: clamp(22px, 1.8vw, 32px); line-height: 1.3; font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.nw-quote figcaption { margin-top: 14px; font-size: 15px; color: var(--mute); }

/* More news under a post */
.nw-more { background: var(--soft); padding: clamp(96px, 11vw, 190px) 0; }
.nw-more .nw-poster { background: var(--white); }
.nw-more-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(40px, 5vw, 80px); }

/* ===== Posts vs. flyers (Max 28.10.2026): a post is a news photo, not a poster on the grey wall ===== */
.nw-poster.nw-photo { aspect-ratio: 3 / 2; background: var(--soft); }
.nw-poster.nw-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
a:hover .nw-poster.nw-photo img { transform: scale(1.03); box-shadow: none; }
.nw-poster-lg.nw-photo { aspect-ratio: 4 / 3; }

/* ===== Post detail as a magazine article: quiet head on one reading column, wide 16:9 photo, narrow text ===== */
.nw-art-beitrag .nw-head { padding: clamp(120px, 12vw, 190px) 0 clamp(32px, 3.6vw, 56px); }
.nw-art-beitrag .nw-head .wrap { width: min(100% - 2 * var(--gut), 680px); gap: 18px; }
.nw-art-beitrag .nw-meta { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .02em; }
.nw-art-beitrag .nw-meta::before { content: ""; width: 22px; height: 2px; background: var(--lime); }
.nw-art-beitrag .nw-head .h-xl { font-size: clamp(32px, 2.4vw + 18px, 54px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 400; max-width: 22ch; text-wrap: balance; }
.nw-art-beitrag .nw-head .lead { font-size: clamp(18px, 0.5vw + 15px, 22px); line-height: 1.5; max-width: 60ch; }
.nw-art-beitrag .nw-hero { width: min(100%, 1080px); margin: 0 auto; }
.nw-art-beitrag .nw-hero img { aspect-ratio: 16 / 9; max-height: none; height: auto; }
.nw-art-beitrag .nw-body { gap: clamp(22px, 2.4vw, 34px); padding-top: clamp(40px, 5vw, 80px); }
.nw-art-beitrag .nw-body > * { width: min(100%, 680px); }
.nw-art-beitrag .nw-body > .nw-fig-wide, .nw-art-beitrag .nw-body > .nw-split { width: min(100%, 1080px); }
.nw-art-beitrag .nw-body :is(p, li) { font-size: clamp(17px, 0.3vw + 16px, 19px); line-height: 1.75; }
.nw-art-beitrag .nw-h { font-size: clamp(24px, 1.4vw + 16px, 34px); margin-top: clamp(12px, 2vw, 28px); }
.nw-art-beitrag .nw-split .nw-fig img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ===== Post with a title photo: full-bleed hero like Praxis/Verein, date and reading time above the title (Max 28.10.2026) ===== */
.nw-meta span::before { content: "·"; margin-right: 14px; }
.nw-art-beitrag .nw-body > .nw-text:first-child p:first-child { font-size: clamp(19px, 0.6vw + 16px, 23px); line-height: 1.6; color: var(--ink); }

/* Wider reading column, every block (text, photos, photo+text) on the same 880 px edge (Max 28.10.2026) */
.nw-art-beitrag .nw-body > *, .nw-art-beitrag .nw-body > .nw-fig-wide, .nw-art-beitrag .nw-body > .nw-split { width: min(100%, 880px); }
.nw-art-beitrag .nw-body :is(p, li) { font-size: clamp(17px, 0.3vw + 16px, 20px); }
.nw-art-beitrag .nw-text { max-width: none; }
.nw-art-beitrag .nw-split { grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 759px) { .nw-art-beitrag .nw-split { grid-template-columns: 1fr; } }
@media (min-width: 760px) { /* photo next to text grows with the text instead of floating small at the top */
  .nw-art-beitrag .nw-split { align-items: stretch; }
  .nw-art-beitrag .nw-split .nw-fig { display: flex; flex-direction: column; gap: 10px; }
  .nw-art-beitrag .nw-split .nw-fig img { flex: 1; min-height: 320px; height: 100%; aspect-ratio: auto; object-fit: cover; }
}

/* ===== Block builder (Max 28.10.2026): widths per block and the new blocks (lib/news_view.php news_block) ===== */
.nw-art-beitrag .nw-body > .nw-w-breit { width: min(100%, 1240px); }
.nw-art-beitrag .nw-body > .nw-w-voll { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.nw-w-voll img { border-radius: 0; }
.nw-w-voll figcaption { padding-inline: var(--gut); }
.nw-art-beitrag .nw-fig-wide img { aspect-ratio: auto; }
.nw-art-beitrag .nw-fig-wide.nw-w-voll img { max-height: 86svh; object-fit: cover; }
/* two text columns */
.nw-cols { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 760px) { .nw-cols { grid-template-columns: 1fr 1fr; } }
/* gallery: 2 or 3 across, same crop for every picture */
.nw-gal-grid { display: grid; gap: clamp(8px, 1vw, 14px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .nw-gal-3 .nw-gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nw-gal-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); background: var(--soft); }
.nw-gal.nw-w-voll .nw-gal-grid { padding-inline: var(--gut); }
.nw-gal figcaption { margin-top: 10px; font-size: 14px; color: var(--mute); }
/* info box */
.nw-box { display: grid; gap: 14px; padding: clamp(24px, 3vw, 44px); border-radius: var(--r-lg); background: var(--soft); }
.nw-box h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 0.8vw + 14px, 26px); font-weight: 500; letter-spacing: -0.015em; }
.nw-box h3::before { content: ""; width: 22px; height: 2px; flex: none; background: var(--lime); }
/* button */
.nw-knopf { margin-block: 0; }
.nw-btn { background: var(--ink); color: var(--white); }
.verein .nw-btn { background: var(--lime); color: var(--ink); }
/* divider */
.nw-hr { height: 1px; border: 0; margin: clamp(8px, 2vw, 24px) auto; background: var(--line); }
.nw-gal-grid img:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; } /* a single picture left over fills its row */
@media (min-width: 760px) { .nw-gal-3 .nw-gal-grid img:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 4 / 3; } }

/* ===== Post layout v3 (Max 28.10.2026): framed banner on the page width, centered title + button below, no dark overlay ===== */
.nw-top { padding-top: clamp(92px, 7.4vw, 124px); }
.nw-cover { margin: 0; }
.nw-cover img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; object-position: 50% 45%; border-radius: var(--r-lg); background: var(--soft); }
@media (max-width: 759px) { .nw-cover img { aspect-ratio: 4 / 3; } }
.nw-intro { display: grid; justify-items: center; gap: clamp(14px, 1.4vw, 22px); max-width: 860px; margin: 0 auto; padding: clamp(36px, 4.4vw, 72px) 0 clamp(8px, 1vw, 16px); text-align: center; }
.nw-intro .nw-meta { display: inline-flex; align-items: center; gap: 10px 14px; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--mute); }
.nw-intro .nw-meta::before { content: ""; width: 22px; height: 2px; background: var(--lime); }
.nw-intro .h-xl { font-size: clamp(34px, 2.6vw + 16px, 60px); font-weight: 400; line-height: 1.08; letter-spacing: -0.03em; max-width: 22ch; text-wrap: balance; }
.nw-intro .lead { max-width: 60ch; color: var(--mute); text-wrap: pretty; }
.nw-intro .btn { margin-top: 6px; }
/* body: text column 1000 px centered, pictures and boxes on it; "breit" = full page width like the banner */
.nw-art-beitrag .nw-body > *, .nw-art-beitrag .nw-body > .nw-fig-wide, .nw-art-beitrag .nw-body > .nw-split { width: min(100%, 1000px); }
.nw-art-beitrag .nw-body > .nw-w-breit { width: 100%; }
.nw-art-beitrag .nw-body > .nw-w-voll { width: 100vw; }
.nw-art-beitrag .nw-body { padding-top: clamp(32px, 4vw, 64px); }
/* closing box: question + the head button + phone */
.nw-art-beitrag .nw-body > .nw-end { width: 100%; margin-top: clamp(24px, 4vw, 56px); }
.nw-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(24px, 3.4vw, 52px); border-radius: var(--r-lg); background: var(--soft); }
.nw-end h2 { font-size: clamp(24px, 1.2vw + 16px, 34px); font-weight: 400; letter-spacing: -0.02em; }
.nw-end p { margin-top: 6px; color: var(--mute); }
.nw-end-act { display: flex; flex-wrap: wrap; gap: 12px; }
