/*
Theme Name: LURIC Heritage
Theme URI: https://www.luric.online/
Author: LURIC Studienzentrale
Description: Classic PHP theme for the LURIC study site, drafted after the visual language of the previous Contao site (2016–2024): full-bleed stock photography, the brand green #99cc33 with the light blue of the logo, uppercase extrabold display type against extra-light sublines, tinted section bands and the green footer bar. Structure, templates and content helpers are those of LURIC Classic. Light mode only, by design.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luric-heritage
Tags: classic, light, german, custom-menu, translation-ready, full-width-template
*/

/* =========================================================================
   1. Webfont — Source Sans 3 (SIL OFL 1.1), self-hosted.

   Stand-in for the original TheSans B2 (LucasFonts, commercial): a humanist
   sans with the same wide weight range, so the old contrast of ExtraLight
   (200) sublines against Extrabold (800) display type survives the swap.
   Variable file, one per subset — the weights below are axis positions.
   Nothing is loaded from a third-party host (see Datenschutzerklärung §5).
   ========================================================================= */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-var-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================================================
   2. Design tokens

   Colours are the palette variables of the old Contao theme (tl_theme.vars):
   $luric #99cc33, $dblue #004e98, $lblue #5793c9, $pur #89687c, $vio #9fa0cc,
   $bgrey #5e6266, $dgrey #808589, $lgrey #b7bbbe — plus the two greys the old
   stylesheet hardcoded for display type (#50565c) and sublines (#9c9c9c).

   The brand green is a fill colour, never a text colour on white: #99cc33 on
   white is 1.9:1. --green-ink is the contrast-checked text version.

   Three greys of the original palette were too light for body text and have
   been darkened to clear WCAG AA (4.5:1) — measured, not estimated:
   $dgrey #808589 3.7:1, the subline grey #9c9c9c 2.8:1, white on the footer
   grey #7a8288 3.9:1. Hue and role are unchanged.
   ========================================================================= */

:root {
  color-scheme: light;

  --green: #99cc33;        /* $luric — rules, fills, dots, footer bar */
  --green-ink: #527d17;    /* links and accent text — 4.9:1 on white, 4.6:1 on the green tint */
  --green-tint: rgba(153, 204, 51, 0.10);   /* old .bg-green-10 */
  --green-tint-strong: rgba(153, 204, 51, 0.22);

  --blue: #9ec8ed;         /* logo blue — Publikationen rules */
  --blue-mid: #5793c9;     /* $lblue */
  --blue-deep: #004e98;    /* $dblue — hero scrim */
  --blue-ink: #2f6f9e;
  --blue-tint: rgba(0, 78, 152, 0.08);      /* old .bg-blue-10 */

  --purple: #89687c;       /* $pur */
  --violet: #9fa0cc;       /* $vio */

  --ink: #50565c;          /* display type and body copy */
  --ink-soft: #62676c;     /* secondary prose — $dgrey #808589 darkened to 5.6:1 */
  --ink-faint: #71767b;    /* dates and meta — the old #9c9c9c is only 2.8:1 */
  --line: #d8dcd6;
  --line-soft: #e8eae5;
  --bar: #5e6266;          /* $bgrey — footer block; white on #7a8288 was only 3.9:1 */
  --bar-soft: #afb3b8;

  --paper: #ffffff;

  /* Per-Rubrik accent. Overridden per body class below — as on the old site,
     Aktuelles and Veranstaltungen were green, Publikationen light blue. */
  --rubrik: var(--green);
  --rubrik-ink: var(--green-ink);

  --font-sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --inside: 1100px;        /* the old content column width */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

body.post-type-archive-publikation,
body.single-publikation {
  --rubrik: var(--blue);
  --rubrik-ink: var(--blue-ink);
}

/* =========================================================================
   3. Base
   ========================================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;      /* 17px — the old body copy sat at 18px/20px */
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

img, svg, figure, iframe { max-width: 100%; }
img { height: auto; }

a { color: var(--green-ink); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green-ink); outline-offset: 2px;
}

/* Sticky footer without a wrapping max-width: bands are full-bleed, the
   column lives inside them. */
.wrap { display: flex; flex-direction: column; min-height: 100vh; }
.wrap > * { min-width: 0; }
.wrap > main { flex: 1 0 auto; }

/* The old theme's content column, reused verbatim as the inner container. */
.inside {
  max-width: var(--inside);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* WordPress boilerplate classes */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto; clip-path: none; color: var(--ink);
  display: block; height: auto; width: auto; left: 1rem; top: 1rem;
  padding: 0.75rem 1rem; z-index: 100000; border: 1px solid var(--line);
  font-size: 0.9rem; text-decoration: none;
}
.alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption {
  font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; margin-top: 0.5rem;
  font-weight: 200;
}
.sticky, .gallery-caption, .bypostauthor { /* required by the theme check */ }

/* Display type: uppercase, extrabold, tight — the single loudest property of
   the old design (h1 was 60px/62px TheSans Extrabold, uppercase). An <em>
   inside a heading is not italic but the extra-light counterpart, exactly as
   "LURIC AtheroRemo" was set. */
.display, .section-title, .page-hero h1, .entry-header h1 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.05;
  margin: 0;
  hyphens: auto;
  overflow-wrap: break-word;
}
.display em, .section-title em, .page-hero h1 em, .entry-header h1 em {
  font-style: normal; font-weight: 200; text-transform: none; color: var(--ink-faint);
}
.subline {
  font-weight: 200;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0.6rem 0 0;
  color: var(--ink-faint);
}
.num { font-variant-numeric: tabular-nums; }

/* =========================================================================
   4. Masthead / navigation

   The old site put the primary navigation in the green footer bar and only a
   logo in the header. Here it stays in the header where visitors expect it,
   but keeps the bar's typography: extra-light, wide, "|"-separated. Over the
   front-page hero the masthead is transparent and white.
   ========================================================================= */

/* width:100% is load-bearing: .masthead is a flex item of .wrap, and auto
   margins in the cross axis would otherwise shrink it to fit-content. */
.masthead {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem 2rem; flex-wrap: wrap;
  width: 100%; max-width: var(--inside); margin: 0 auto; padding: 1.1rem var(--gutter);
}
.masthead::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0;
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.brand img { height: 40px; width: auto; max-width: 15rem; flex: none; display: block; }
.brand .name {
  display: block; font-weight: 800; text-transform: uppercase;
  font-size: 1.4rem; line-height: 1; letter-spacing: 0.02em; color: var(--green-ink);
}
.brand .tagline {
  display: block; font-weight: 200; font-size: 0.72rem; line-height: 1.3;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
  max-width: 24ch; margin-top: 0.25rem;
}
.brand .custom-logo-link { display: inline-flex; }

nav.primary ul {
  display: flex; flex-wrap: wrap; align-items: center;
  list-style: none; margin: 0; padding: 0;
  font-weight: 200; font-size: 1.02rem; letter-spacing: 0.01em;
}
/* The pipe separator of the old footer navigation. */
nav.primary li + li::before {
  content: "|"; color: var(--line); padding: 0 0.85rem; font-weight: 200;
}
nav.primary a { color: var(--ink-soft); text-decoration: none; }
nav.primary a:hover, nav.primary a:focus-visible { color: var(--green-ink); }
nav.primary .current-menu-item > a,
nav.primary .current_page_item > a,
nav.primary .current-menu-parent > a,
nav.primary .current-luric-item > a {
  color: var(--ink); font-weight: 600; box-shadow: inset 0 -5px 0 var(--green);
}
nav.primary ul ul { display: none; }   /* the IA is one level deep by design */

/* Over the hero photo. */
body.home .masthead { position: absolute; left: 0; right: 0; top: 0; }
body.home .masthead::after { border-bottom-color: rgba(255, 255, 255, 0.28); }
body.home .brand .name { color: #fff; }
body.home .brand .tagline { color: rgba(255, 255, 255, 0.75); }
body.home nav.primary a { color: rgba(255, 255, 255, 0.88); }
body.home nav.primary a:hover, body.home nav.primary a:focus-visible { color: #fff; }
body.home nav.primary li + li::before { color: rgba(255, 255, 255, 0.4); }
body.home nav.primary .current-luric-item > a,
body.home nav.primary .current-menu-item > a { color: #fff; box-shadow: inset 0 -5px 0 var(--green); }

@media (max-width: 780px) {
  .masthead { padding-top: 0.9rem; padding-bottom: 0.9rem; }
  nav.primary ul { font-size: 0.95rem; }
  nav.primary li + li::before { padding: 0 0.6rem; }
}

/* =========================================================================
   5. Hero (front page) — the old "masterscreen": one photograph, the wordmark
   over it, a scroll cue at the bottom.
   ========================================================================= */

.hero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: clamp(30rem, 82vh, 46rem);
  padding: 9rem 0 4.5rem;
  background: var(--blue-deep) center / cover no-repeat;
  color: #fff;
  isolation: isolate;
}
/* Scrim: dark at the left where the type sits, transparent over the artwork. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(0, 26, 54, 0.93) 0%, rgba(0, 30, 62, 0.84) 50%, rgba(0, 42, 84, 0.35) 78%, rgba(0, 46, 92, 0.1) 100%),
    linear-gradient(to top, rgba(0, 26, 54, 0.55), rgba(0, 26, 54, 0) 45%);
}
/* The hero is a flex container so the content sits at the bottom; without an
   explicit width the auto margins would centre the column instead of keeping
   it flush left. */
.hero .inside { width: 100%; }
.hero .lede { max-width: 46ch; }
.hero .display {
  font-size: clamp(3rem, 9vw, 5.5rem);
  letter-spacing: 0.01em;
  color: #fff;
}
.hero .subline {
  color: var(--blue);
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}
.hero .lede {
  font-weight: 200; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5;
  color: rgba(255, 255, 255, 0.92); margin: 1.6rem 0 0;
}
.hero .overline {
  font-weight: 400; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green); margin: 0 0 1.25rem;
}
/* The green keyline under the wordmark — the logo's own accent, reused. */
.hero .rule {
  width: 5.5rem; height: 5px; background: var(--green); margin: 1.75rem 0 0;
}
.hero .scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 42px; height: 42px; display: block; opacity: 0.85;
  background: url("assets/img/arrow-down.svg") center / contain no-repeat;
  filter: brightness(0) invert(1);
}
.hero .scroll-cue:hover { opacity: 1; }
@media (max-width: 700px) {
  .hero { min-height: 32rem; padding-top: 11rem; }
  .hero .scroll-cue { display: none; }
  /* The tracked-out subline is 49 characters — give it room to wrap. */
  .hero .subline { letter-spacing: 0.07em; }
}

/* Stat band — the four key figures, on the old 10 % green tint. */
.stat-band { background: var(--green-tint); border-bottom: 1px solid var(--line-soft); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft);
  border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft);
}
.stat { background: var(--paper); padding: 1.5rem 1.4rem; }
.stat .n {
  display: block; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1; color: var(--green-ink); font-variant-numeric: tabular-nums;
}
.stat .l {
  display: block; margin-top: 0.6rem; font-weight: 200; font-size: 0.85rem;
  line-height: 1.4; color: var(--ink-soft);
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* =========================================================================
   6. Bands — the section rhythm of the old one-pager: white, tinted, photo.
   ========================================================================= */

.band { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.band--tint-green { background: var(--green-tint); }
.band--tint-blue { background: var(--blue-tint); }
.band + .band--plain { border-top: 1px solid var(--line-soft); }

/* Full-bleed photo divider with a headline over it. background-attachment
   imitates the parallax of the old stellar.js sections; it is switched off on
   touch devices, where fixed backgrounds are janky or unsupported. */
.band--photo {
  position: relative; color: #fff;
  background: var(--bar) center / cover no-repeat;
  padding: clamp(4rem, 11vw, 8rem) 0;
  isolation: isolate;
}
.band--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18, 25, 32, 0.88) 0%, rgba(18, 25, 32, 0.62) 55%, rgba(18, 25, 32, 0.2) 100%);
}
.band--photo .section-title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
.band--photo .section-title em { color: rgba(255, 255, 255, 0.75); }
.band--photo p {
  font-weight: 200; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.55;
  max-width: 52ch; margin: 1.1rem 0 0; color: rgba(255, 255, 255, 0.9);
}
.band--photo .rule { width: 4.5rem; height: 5px; background: var(--green); margin-top: 1.5rem; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .band--photo { background-attachment: fixed; }
}

/* Section heads: the 5px accent rule under the title is the old news border. */
.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}
h2.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--ink);
  padding-bottom: 0.5rem;
  box-shadow: inset 0 -5px 0 var(--rubrik);
}
.block-head .count {
  font-weight: 200; font-size: 0.9rem; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   7. Front page: Studienverlauf, Teilprojekte, Daten & Fakten
   ========================================================================= */

/* Intro copy, set in two columns like the old "Vorschautext" article. */
.intro-cols {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem;
}
@media (max-width: 760px) { .intro-cols { grid-template-columns: 1fr; gap: 0; } }
.intro-cols p {
  margin: 0 0 1.15rem; font-weight: 200; font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.6; color: var(--ink);
}
.intro-cols p:last-child { margin-bottom: 0; }

.timeline { margin: 0; }
.timeline-row {
  display: grid; grid-template-columns: 8.5rem 1.5rem 1fr; gap: 0 1.25rem;
  padding-bottom: 2rem;
}
@media (max-width: 640px) {
  .timeline-row { grid-template-columns: 1.5rem 1fr; }
  .timeline-row .timeline-year { grid-column: 2; margin-bottom: 0.25rem; }
  .timeline-row .timeline-rail { grid-row: 1 / span 2; grid-column: 1; }
  .timeline-row .timeline-content { grid-column: 2; }
}
.timeline-year {
  font-weight: 800; font-size: 1.05rem; color: var(--green-ink);
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em; text-align: right;
  padding-top: 0.05rem;
}
@media (max-width: 640px) { .timeline-year { text-align: left; } }
.timeline-rail { position: relative; }
.timeline-rail::before {
  content: ""; position: absolute; left: 50%; top: 1.25rem; bottom: -2rem;
  width: 1px; background: var(--line); transform: translateX(-50%);
}
.timeline-row:last-child { padding-bottom: 0; }
.timeline-row:last-child .timeline-rail::before { display: none; }
.timeline-dot {
  width: 13px; height: 13px; border-radius: 50%; background: var(--green);
  margin: 0.4rem auto 0; position: relative; z-index: 1;
}
.timeline-content h3 {
  margin: 0 0 0.35rem; font-weight: 600; font-size: 1.15rem; color: var(--ink);
  letter-spacing: 0.005em;
}
.timeline-content p {
  margin: 0; font-weight: 200; font-size: 1rem; line-height: 1.6; color: var(--ink-soft);
  max-width: 62ch;
}

/* Teilprojekte — "LURIC AtheroRemo" set as extrabold + extra-light, with the
   old palette used as a per-project keyline. */
.projects { display: grid; gap: 1px; background: var(--line-soft); }
.project {
  background: var(--paper); padding: 1.35rem 1.5rem;
  border-left: 5px solid var(--project, var(--green));
}
.project:nth-child(1) { --project: var(--green); }
.project:nth-child(2) { --project: var(--blue-mid); }
.project:nth-child(3) { --project: var(--purple); }
.project:nth-child(4) { --project: var(--violet); }
.project .name {
  font-weight: 800; text-transform: uppercase; font-size: 1.15rem;
  letter-spacing: 0.01em; color: var(--ink);
}
.project .name em {
  font-style: normal; font-weight: 200; text-transform: none; color: var(--ink);
}
.project .meta {
  font-weight: 200; text-transform: none; font-size: 0.85rem; color: var(--ink-faint);
  letter-spacing: 0; margin-left: 0.4rem;
}
.project .desc {
  margin: 0.45rem 0 0; font-weight: 200; font-size: 1rem; line-height: 1.55;
  color: var(--ink-soft); max-width: 68ch;
}

/* Daten & Fakten */
.cohort-visual { max-width: 40rem; margin: 0 0 2.5rem; }
.cohort-visual-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.85rem;
}
.cohort-visual-head h3 {
  margin: 0; font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.cohort-visual-sub {
  font-weight: 200; font-size: 0.85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.split-bar { display: flex; gap: 2px; height: 16px; }
.split-seg { height: 100%; }
.split-men { background: var(--green); }
.split-women { background: var(--blue-mid); }
.split-legend {
  display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.8rem;
  font-weight: 200; font-size: 0.88rem; color: var(--ink-soft);
}
.legend-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.swatch { width: 10px; height: 10px; display: inline-block; flex: none; }
.swatch-men { background: var(--green); }
.swatch-women { background: var(--blue-mid); }
.cohort-visual-note {
  margin: 1rem 0 0; font-weight: 200; font-size: 0.9rem; line-height: 1.55;
  color: var(--ink-soft); max-width: 60ch;
}

/* Three tables follow one another in Daten & Fakten — give them air and let
   each scroll inside its own container. */
.table-scroll { overflow-x: auto; }
.table-scroll + .table-scroll { margin-top: clamp(2rem, 4vw, 3rem); }
.facts-pairs th[scope="row"] { width: 40%; }
.facts-pairs td { font-variant-numeric: tabular-nums; }
.facts sup {
  font-size: 0.7em; font-weight: 600; color: var(--ink-faint); margin-left: 0.15em;
  vertical-align: super; line-height: 0;
}
.facts-legend {
  display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.35rem 0.75rem;
  margin: 1.25rem 0 0; max-width: 60rem;
  font-weight: 200; font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft);
}
.facts-legend dt { font-weight: 600; color: var(--ink); text-align: right; }
.facts-legend dd { margin: 0; }
.facts { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--paper); }
.facts caption {
  text-align: left; font-weight: 200; font-size: 0.88rem; color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.facts th, .facts td {
  text-align: left; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--line-soft);
  font-weight: 200;
}
.facts thead th {
  font-weight: 600; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--ink); border-bottom: 5px solid var(--green); padding-bottom: 0.5rem;
}
.facts td.num, .facts th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.facts tbody th { font-weight: 600; color: var(--ink); }

/* =========================================================================
   8. Archives — a photo header per Rubrik, then the entry list.
   ========================================================================= */

.page-hero {
  position: relative; color: #fff; isolation: isolate;
  background: var(--bar) center / cover no-repeat;
  padding: clamp(4.5rem, 10vw, 7rem) 0 clamp(2rem, 5vw, 3rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18, 26, 34, 0.82) 0%, rgba(18, 26, 34, 0.5) 65%, rgba(18, 26, 34, 0.2) 100%);
}
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); color: #fff; }
.page-hero .page-intro {
  margin: 1rem 0 0; font-weight: 200; font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55; color: rgba(255, 255, 255, 0.9); max-width: 58ch;
}
.page-hero .count {
  display: inline-block; margin-top: 1.25rem; padding-bottom: 0.3rem;
  font-weight: 200; font-size: 0.9rem; color: #fff;
  box-shadow: inset 0 -5px 0 var(--rubrik); font-variant-numeric: tabular-nums;
}
.page-hero .search-form { margin-top: 1.5rem; }
.page-hero .search-form input[type="search"] {
  background: rgba(255, 255, 255, 0.95); border-color: transparent;
}

/* Plain (photo-less) page head, used by 404 and the fallback index. */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.page-head h1 {
  font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.05; margin: 0; color: var(--ink);
}
.page-head .page-intro {
  margin: 1rem 0 0; font-weight: 200; font-size: 1.05rem; line-height: 1.6;
  color: var(--ink-soft); max-width: 60ch;
}
.page-head .count { display: block; margin-top: 1rem; font-weight: 200; color: var(--ink-soft); }

.entry-list { padding: clamp(2rem, 5vw, 3.25rem) 0 0; }
/* Last block before the footer needs its own bottom air — the bands supply it
   on the front page, list pages have none. */
.entry-list:last-child { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.entry-row {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 0 1.5rem;
  padding: 1.35rem 0 1.5rem;
  border-bottom: 5px solid var(--rubrik);   /* the old news item rule */
}
.entry-row + .entry-row { padding-top: 1.5rem; }
@media (max-width: 640px) {
  .entry-row { grid-template-columns: 1fr; gap: 0.35rem; }
}
.entry-row .entry-date {
  font-weight: 200; font-size: 0.95rem; color: var(--ink-faint);
  font-variant-numeric: tabular-nums; padding-top: 0.2rem;
}
.entry-row .entry-title {
  margin: 0; font-weight: 600; font-size: 1.2rem; line-height: 1.35; color: var(--ink);
}
.entry-row .entry-title a { color: var(--ink); text-decoration: none; }
.entry-row .entry-title a:hover, .entry-row .entry-title a:focus-visible {
  color: var(--rubrik-ink); text-decoration: underline;
}
.entry-row .entry-summary {
  margin: 0.5rem 0 0; font-weight: 200; font-size: 1rem; line-height: 1.6;
  color: var(--ink-soft); max-width: 72ch;
}
.entry-row .entry-meta {
  margin: 0.5rem 0 0; font-weight: 200; font-size: 0.88rem; color: var(--ink-faint);
}
.entry-row .entry-meta a { color: var(--rubrik-ink); text-decoration: none; }
.entry-row .entry-meta a:hover { text-decoration: underline; }
.entry-row .entry-attachment {
  margin: 0.5rem 0 0; font-weight: 200; font-size: 0.95rem; color: var(--ink-soft);
}
.entry-row .entry-attachment::before,
.downloads a::before,
.entry-content h3 + p a::before {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 0.45rem;
  vertical-align: -0.15em; opacity: 0.85;
  background: url("assets/img/arrow-right.svg") center / contain no-repeat;
}

.empty-note {
  padding: 2.5rem 0; font-weight: 200; font-size: 1.05rem; color: var(--ink-soft);
}

.pagination { padding: 2rem 0 clamp(2.5rem, 5vw, 4rem); font-weight: 200; font-size: 0.95rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.pagination .page-numbers {
  display: inline-block; padding: 0.35rem 0.75rem; text-decoration: none;
  color: var(--ink-soft); border: 1px solid var(--line);
}
.pagination .page-numbers:hover { color: var(--green-ink); border-color: var(--green); }
.pagination .page-numbers.current {
  color: var(--ink); border-color: var(--green); box-shadow: inset 0 -5px 0 var(--green);
}

/* =========================================================================
   9. Single entries and pages
   ========================================================================= */

.entry { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem); }
.entry-header { margin-bottom: 2rem; }
.entry-header .kicker {
  margin: 0 0 0.9rem; font-weight: 400; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--rubrik-ink);
}
.entry-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--ink);
  padding-bottom: 0.75rem; box-shadow: inset 0 -5px 0 var(--rubrik);
}
.entry-header .entry-date {
  display: block; margin-top: 1rem; font-weight: 200; font-size: 0.95rem;
  color: var(--ink-faint); font-variant-numeric: tabular-nums;
}

.entry-content { max-width: 70ch; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.entry-content p { margin: 0 0 1.2rem; font-weight: 200; }
.entry-content strong { font-weight: 600; color: var(--ink); }
.entry-content a { color: var(--green-ink); }
.entry-content h1, .entry-content h2 {
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; line-height: 1.15;
  margin: 2.25rem 0 0.9rem; font-size: 1.5rem; color: var(--ink);
  hyphens: auto; overflow-wrap: break-word;
}
.entry-content h1:first-child, .entry-content h2:first-child { margin-top: 0; }
/* The migrated Impressum/Datenschutz pages open with "<h2>LURIC</h2><p>LUDWIGS…" —
   that pair is the old page eyebrow, not a section heading. */
.entry-content h2:first-child + p {
  margin-top: -0.6rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
}
.entry-content h3 {
  margin: 2rem 0 0.75rem; font-weight: 600; font-size: 1.15rem; color: var(--ink);
}
/* Publikationen bodies use <h5> for abstract and citation text, not as a
   heading level — single-publikation.php rewrites them to <p class="prose">;
   the h5 rule stays as a fallback for anything re-saved in wp-admin. */
.entry-content h5, .entry-content .prose {
  margin: 0 0 1.2rem; font-weight: 200; font-size: 1rem; line-height: 1.7; color: var(--ink);
}
.entry-content ul { margin: 0 0 1.2rem; padding-left: 1.1rem; list-style: square; }
.entry-content li { margin-bottom: 0.45rem; font-weight: 200; line-height: 1.65; }
.entry-content li::marker { color: var(--green); }
.entry-content figure { margin: 2rem 0; }
.entry-content img { display: block; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.entry-content th, .entry-content td {
  text-align: left; padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1px solid var(--line-soft);
  font-weight: 200;
}
.entry-content blockquote {
  margin: 1.75rem 0; padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 5px solid var(--green); font-weight: 200; color: var(--ink-soft);
}

.downloads {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  max-width: 70ch;
}
.downloads h2 {
  margin: 0 0 0.9rem; font-weight: 800; text-transform: uppercase; font-size: 0.85rem;
  letter-spacing: 0.14em; color: var(--ink-soft);
}
.downloads ul { list-style: none; margin: 0; padding: 0; }
.downloads li { margin-bottom: 0.6rem; font-weight: 200; font-size: 1rem; }
.downloads a, .entry-content h3 + p a { text-decoration: none; }
.downloads a:hover, .entry-content h3 + p a:hover { text-decoration: underline; }

.entry-source {
  margin-top: 2.5rem; padding: 1.5rem; background: var(--blue-tint); max-width: 70ch;
}
.entry-source dl {
  display: grid; grid-template-columns: 7rem 1fr; gap: 0.5rem 1.25rem; margin: 0;
}
@media (max-width: 560px) { .entry-source dl { grid-template-columns: 1fr; gap: 0.15rem; } }
.entry-source dt {
  font-weight: 600; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.entry-source dd { margin: 0; font-weight: 200; color: var(--ink); word-break: break-word; }
.entry-source dd a { color: var(--blue-ink); }

.entry-nav {
  display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-weight: 200; font-size: 0.95rem;
}
.entry-nav a { color: var(--ink-soft); text-decoration: none; max-width: 30ch; }
.entry-nav a:hover { color: var(--rubrik-ink); }
.entry-nav .label {
  display: block; font-weight: 400; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.3rem;
}
.entry-nav .next { text-align: right; margin-left: auto; }

/* =========================================================================
   10. Search form
   ========================================================================= */

.search-form { display: flex; gap: 0.5rem; max-width: 32rem; }
.search-form input[type="search"] {
  flex: 1; padding: 0.6rem 0.8rem; border: 1px solid var(--line); background: #fff;
  font: inherit; font-weight: 200; color: var(--ink); border-radius: 0;
}
.search-form button {
  padding: 0.6rem 1.25rem; border: 1px solid var(--green); background: var(--green);
  color: #22350a; font: inherit; font-weight: 600; cursor: pointer; border-radius: 0;
  text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.08em;
}
.search-form button:hover {
  background: var(--green-ink); border-color: var(--green-ink); color: #fff;
}

/* =========================================================================
   11. Footer — the dark grey block of the old subpages, closed by the green
   60px bar with the "|"-separated navigation.
   ========================================================================= */

footer.site-footer { margin-top: auto; background: var(--bar); color: #fff; }
.site-footer .inside {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 3rem;
  padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (max-width: 760px) { .site-footer .inside { grid-template-columns: 1fr; } }
/* White, not brand green: #99cc33 on the grey block is 2.2:1. The green stays
   as the keyline underneath, where contrast does not apply. */
.site-footer h2 {
  display: inline-block; margin: 0 0 0.9rem; padding-bottom: 0.35rem;
  font-weight: 800; text-transform: uppercase; font-size: 0.8rem;
  letter-spacing: 0.16em; color: #fff; box-shadow: inset 0 -3px 0 var(--green);
}
.site-footer address, .site-footer p {
  margin: 0; font-style: normal; font-weight: 200; font-size: 0.98rem; line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 1.9; font-weight: 200; }
.site-footer a { color: rgba(255, 255, 255, 0.88); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.site-footer .legal { display: flex; flex-direction: column; font-weight: 200; }

/* The old bar was white on #99cc33 (1.9:1). Same bar, dark ink — the only
   deliberate departure from the original colours, for legibility. */
.footer-bar { background: var(--green); color: var(--bar-ink); --bar-ink: #22350a; }
.footer-bar .inside {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; flex-wrap: wrap; min-height: 60px;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.footer-bar .wordmark {
  margin: 0; font-weight: 800; text-transform: uppercase; font-size: 1.05rem;
  letter-spacing: 0.02em; color: var(--bar-ink);
}
.footer-bar ul {
  display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0;
  font-weight: 200; font-size: 1rem;
}
.footer-bar li + li::before {
  content: "|"; padding: 0 0.85rem; color: rgba(34, 53, 10, 0.45);
}
.footer-bar a { color: var(--bar-ink); text-decoration: none; }
.footer-bar a:hover, .footer-bar a:focus-visible { text-decoration: underline; }
.footer-bar a:focus-visible { outline-color: var(--bar-ink); }

/* =========================================================================
   12. Motion, print
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .band--photo { background-attachment: scroll; }
}

@media print {
  .masthead, .footer-bar, .entry-nav, .pagination, .search-form, .hero .scroll-cue { display: none; }
  body { font-size: 11pt; color: #000; }
  .hero, .page-hero, .band--photo { background: none; color: #000; padding: 0 0 1rem; min-height: 0; }
  .hero::before, .page-hero::before, .band--photo::before { display: none; }
  .hero .display, .page-hero h1, .band--photo .section-title { color: #000; }
  .hero .lede, .page-hero .page-intro, .band--photo p { color: #000; }
  footer.site-footer { background: none; color: #000; }
  .site-footer a, .site-footer address, .site-footer p { color: #000; }
  a { text-decoration: underline; }
}
