/* =========================================================================
   Werfling — Familien-Website
   Editorial-Redesign · Marke abgeleitet aus assets/werfling-wappen.svg
   Richtung: zurückhaltender Editorial-Minimalismus, Wappen als feines Signet.
   Farben treu zur Heraldik (Schild-Blau, Gold, Banner-Creme).
   ========================================================================= */

:root {
  /* Schild-Blau */
  --wf-blue-900: #0e2647;
  --wf-blue-700: #1a2a4a;
  --wf-blue-500: #2a4d80;

  /* Gold — Auszeichnung, Linien, Signet (sparsam) */
  --wf-gold-300: #f3d27a;
  --wf-gold-500: #d6a93a;
  --wf-gold-700: #8a6414; /* für Text auf hell: WCAG-AA-sicher (>=4.5:1), war #9b7320 */

  /* Banner-Creme */
  --wf-cream-100: #f7ecc8;
  --wf-cream-300: #d9bd72;

  /* Gravur / Kontur */
  --wf-brown-800: #6b4a10;

  /* Signal-Rot — seltener Akzent */
  --wf-red-500: #b53a3a;

  /* Papierflächen — warmes Off-White statt reinem Weiß */
  --paper:      #f7f3ea;
  --paper-warm: #f3ecdc; /* leicht wärmere Bandfläche */
  --raise:      #fdfbf6; /* leicht erhöhte Fläche (Karten, Formular) */

  /* Rollen */
  --ink:        var(--wf-blue-900);
  --ink-soft:   #4a5670;
  --ink-mute:   #5f6982; /* WCAG-AA-sicher auf hell (>=4.5:1), war #6b7690 */
  --line:       rgba(14, 38, 71, 0.14);
  --line-strong:rgba(14, 38, 71, 0.24);
  --line-gold:  rgba(214, 169, 58, 0.55);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "EB Garamond", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --measure: 62ch;
  --gap: clamp(1.5rem, 4vw, 3.5rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);

  --accent: var(--wf-gold-700); /* Standard-Akzent, je Theme überschrieben */
}

*, *::before, *::after { box-sizing: border-box; }

/* Anker-Sprünge: Ziel unter dem klebenden Header freistellen (Header ~73px) */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.06rem, 0.5vw + 0.95rem, 1.22rem);
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* dekorative Bleed-Elemente erzeugen keinen H-Scroll */
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  margin: 0 0 0.4em;
  letter-spacing: 0.004em;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; max-width: var(--measure); }

a { color: inherit; }

img, svg { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(214, 169, 58, 0.28); }

:focus-visible {
  outline: 2px solid var(--wf-gold-700);
  outline-offset: 3px;
}

/* Sprunglink für Tastatur/Screenreader – nur bei Fokus sichtbar */
.skip-link {
  position: fixed; left: 0.9rem; top: 0.7rem; z-index: 100;
  background: var(--wf-blue-900); color: var(--wf-cream-100);
  padding: 0.65rem 1.1rem; text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.06em;
  border: 1px solid var(--wf-gold-500);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }
main[tabindex="-1"]:focus { outline: none; }

.container {
  width: min(100% - 2.6rem, var(--container));
  margin-inline: auto;
}

/* --- Editorial-Bausteine -------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 1.3rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; flex: none;
  background: currentColor; opacity: 0.6;
}
.eyebrow--center { justify-content: center; }
/* Mehrteilige Label (z. B. „Privatier · Investor · Förderer") auf einer Zeile
   halten – es ist reichlich Spaltenbreite da; nur auf schmalen Screens umbrechen */
.eyebrow { white-space: nowrap; }
@media (max-width: 600px) { .eyebrow { white-space: normal; } }

.gold-rule {
  width: 58px; height: 1px; border: 0;
  background: linear-gradient(90deg, var(--wf-gold-500), transparent);
  margin: 1.5rem 0;
}

/* Wappen-Trenner: Hairline mit gekreuzten Wurfspeeren im Zentrum */
.rule-crest {
  display: flex; align-items: center; gap: 1.1rem;
  margin: 2.4rem 0; color: var(--wf-gold-500);
}
.rule-crest::before,
.rule-crest::after {
  content: ""; height: 1px; flex: 1 1 auto;
  background: linear-gradient(90deg, transparent, var(--line-gold));
}
.rule-crest::after { background: linear-gradient(90deg, var(--line-gold), transparent); }
.rule-crest svg { width: 26px; height: 26px; flex: none; opacity: 0.9; }
.rule-crest--center { max-width: 320px; margin-inline: auto; }

/* Abschnitts-Kopf (editorial): kleine Kapitälchen-Zeile + Display-Titel */
.section-head { max-width: 46ch; }
.section-head .idx {
  font-variant-numeric: tabular-nums;
  color: var(--wf-gold-700);
}

/* --- Kopfzeile — hell, editorial, ruhig ----------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
          backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
}
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .wordmark {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.9rem; font-weight: 500;
  color: var(--ink);
}

.site-nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0;
  transition: color 0.25s ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0.1rem;
  height: 1px; background: var(--wf-gold-500);
  transition: right 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { right: 0; }

/* Burger — nur mobil */
.nav-toggle {
  display: none;
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; display: block; width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle__bars::after  { position: absolute; top: 7px;  left: 0; }
.site-header[data-nav-open] .nav-toggle__bars { background: transparent; }
.site-header[data-nav-open] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.site-header[data-nav-open] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */
.hero { background: var(--paper); position: relative; }
.hero .container { padding-block: clamp(3.5rem, 10vw, 8rem); }

/* Startseite: zentrierte editoriale Aussage */
.hero--home .hero__inner {
  max-width: 54rem; margin-inline: auto; text-align: center;
}
.hero--home .eyebrow { justify-content: center; }
.hero__signet {
  width: clamp(64px, 9vw, 88px); height: auto; margin: 0 auto 1.8rem;
  filter: drop-shadow(0 10px 26px rgba(14, 38, 71, 0.18));
}
.hero h1 {
  font-size: clamp(2.9rem, 7.5vw, 6rem);
  font-weight: 500; color: var(--ink);
  margin-bottom: 0.5rem;
}
.hero .lede {
  color: var(--ink-soft);
  font-size: clamp(1.18rem, 1.5vw, 1.5rem);
  line-height: 1.55;
  max-width: 42ch;
  text-wrap: balance;
}
.hero--home .lede { margin-inline: auto; }
.hero--home .actions { justify-content: center; }

/* Startseite mit bewegtem Domplatz-Hintergrund (Erfurt) */
.hero--media {
  position: relative; overflow: hidden;
  min-height: min(84vh, 760px);
  display: grid; align-items: center;
  background: var(--wf-blue-900); /* Fallback, bevor das Video lädt */
}
.hero--media .hero__inner { position: relative; z-index: 1; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
}
/* Blaue Gravur-Lasur: hält die Typografie lesbar, ohne Glow.
   Etwas dichter in der Textzone, damit auch helle Wolken im Loop
   den Kontrast nicht unter AA (4.5:1) drücken. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(14, 38, 71, 0.42) 0%,
      rgba(14, 38, 71, 0.40) 40%,
      rgba(14, 38, 71, 0.78) 100%),
    radial-gradient(130% 100% at 50% 52%,
      rgba(14, 38, 71, 0.14) 0%,
      rgba(14, 38, 71, 0.52) 100%);
}
/* Textstimmen auf hell -> creme */
.hero--media .hero__signet {
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
}
/* Textschatten sichert den Kontrast auf hellen Loop-Frames (Wolken) */
.hero--media .eyebrow {
  color: var(--wf-gold-300);
  text-shadow: 0 1px 10px rgba(14, 38, 71, 0.6);
}
.hero--media h1 {
  color: var(--wf-cream-100);
  text-shadow: 0 1px 2px rgba(14, 38, 71, 0.4), 0 6px 26px rgba(14, 38, 71, 0.5);
}
.hero--media .lede {
  color: rgba(247, 236, 200, 0.94);
  text-shadow: 0 1px 12px rgba(14, 38, 71, 0.55);
}
.hero--media .btn--ghost {
  color: var(--wf-cream-100);
  border-color: rgba(247, 236, 200, 0.55);
}
.hero--media .btn--ghost:hover {
  color: var(--wf-gold-300);
  border-color: var(--wf-gold-300);
}
/* Pause/Play für das Hintergrundvideo (WCAG 2.2.2), heraldisch gehalten */
.hero__toggle {
  position: absolute; z-index: 2;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--wf-cream-100);
  background: rgba(14, 38, 71, 0.45);
  border: 1px solid rgba(214, 169, 58, 0.60);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.hero__toggle:hover {
  color: var(--wf-gold-300);
  border-color: var(--wf-gold-300);
  background: rgba(14, 38, 71, 0.62);
}
.hero__toggle:focus-visible {
  outline: 2px solid var(--wf-gold-300); outline-offset: 2px;
}
.hero__toggle svg { width: 18px; height: 18px; fill: currentColor; }

/* Profilseiten: großes Porträt trägt den Hero */
.hero--profile .hero__inner--split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}
.hero--profile .hero__text { max-width: 34rem; }
.hero--profile h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.hero__meta {
  margin: 1.6rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  font-size: 0.95rem; color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before {
  content: ""; width: 6px; height: 6px; flex: none;
  background: var(--wf-gold-500); transform: rotate(45deg);
}

/* Editorial-Porträtrahmen */
.hero__figure, .portal__figure { margin: 0; }
.hero__figure picture, .portal__figure picture { display: block; }
.hero__figure { position: relative; }
.hero__figure::before {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 62%; height: 62%; z-index: 0;
  background: var(--wf-blue-900);
}
.portrait-lg {
  position: relative; z-index: 1; width: 100%;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(14, 38, 71, 0.18);
}
.hero__figure figcaption {
  position: relative; z-index: 1;
  margin-top: 0.8rem; font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--ink-mute); text-align: right;
}

/* --- Buttons & Links ------------------------------------------------------ */
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; margin-top: 2rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  color: var(--wf-cream-100);
  background: var(--wf-blue-900);
  border: 1px solid var(--wf-blue-900);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--wf-blue-700); transform: translateY(-2px); }
.btn__mark { width: 13px; height: 13px; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: transparent; color: var(--wf-gold-700);
  border-color: var(--wf-gold-500); transform: translateY(-2px);
}

/* Textlink mit Pfeil, editorialer Hover */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--ink);
  font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.25rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.28s cubic-bezier(0.22,0.61,0.36,1); }
.link-arrow:hover { color: var(--wf-gold-700); border-color: var(--wf-gold-500); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --- Startseite: die zwei Profile ---------------------------------------- */
.portals { padding-block: var(--section-y); }
.portals__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.portals__grid {
  display: grid; gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: repeat(2, 1fr);
}
.portal {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--raise);
  border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: transform 0.3s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.portal:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(14,38,71,0.13); border-color: var(--line-gold); }

/* Porträt-Karte (Startseite) */
.portal__figure { margin: 0; overflow: hidden; background: var(--wf-blue-900); }
.portal__figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 20%;
  transition: transform 0.6s cubic-bezier(0.22,0.61,0.36,1);
}
.portal:hover .portal__figure img { transform: scale(1.035); }
.portal__body { padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; flex: 1; }
.portal .role {
  color: var(--wf-gold-700); letter-spacing: 0.2em; text-transform: uppercase;
  font-size: 0.7rem; margin-bottom: 0.7rem;
}
.portal h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 0.5rem; }
.portal p { color: var(--ink-soft); }
.portal .more, .news-card .more {
  margin-top: auto; padding-top: 1.4rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); letter-spacing: 0.06em; font-size: 0.86rem;
  text-transform: uppercase;
}
.portal .more svg, .news-card .more svg { width: 15px; height: 15px; transition: transform 0.28s cubic-bezier(0.22,0.61,0.36,1); }
.portal:hover .more, .news-card:hover .more { color: var(--wf-gold-700); }
.portal:hover .more svg, .news-card:hover .more svg { transform: translateX(5px); }
.portal--static { cursor: default; }
.portal--static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.more--muted { color: var(--ink-mute) !important; letter-spacing: 0.02em; text-transform: none; }

/* Projekt-Logo im Karten-Kopf (Stefan) */
.portal__logo {
  width: 52px; height: 52px; object-fit: contain;
  background: var(--paper); border: 1px solid var(--line);
  padding: 6px; margin-bottom: 1.1rem;
}
.portal__logo--mono {
  display: grid; place-items: center; padding: 0;
  background: var(--wf-blue-900);
  font-family: var(--font-mono, var(--font-display));
  font-size: 1.6rem; font-weight: 700;
  color: var(--accent, var(--wf-gold-300));
}
.portals__grid--three { grid-template-columns: repeat(3, 1fr); }
.portals__grid--three .portal__body { padding: clamp(1.4rem, 2.4vw, 1.9rem); }
.portals__grid--three h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }

/* --- Aktuelles / Blog ----------------------------------------------------- */
.news__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.news__head .section-head { max-width: 46ch; }
.news__grid {
  display: grid; gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: repeat(3, 1fr);
}
.news-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--raise); border: 1px solid var(--line);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  text-decoration: none; color: inherit;
  transition: transform 0.3s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,38,71,0.12); border-color: var(--line-gold); }
.news-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin: 0 0 0.5rem; }
.news-card p { color: var(--ink-soft); font-size: 1rem; }

/* Meta-Zeile: Kategorie-Badge + Datum */
.post-meta { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.post-meta time {
  font-size: 0.8rem; color: var(--ink-mute);
  letter-spacing: 0.05em; font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-body);
  font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 1; padding: 0.32rem 0.62rem;
  border: 1px solid currentColor; color: var(--wf-gold-700);
}
.badge--event { color: var(--wf-blue-500); }

/* Catastrum-Wortmarke: eigenes Element direkt über der Beschreibung */
.brand-logo { display: block; width: auto; height: 30px; max-width: 100%; margin: 0.3rem 0 0.9rem; }
.post .brand-logo { height: 44px; }

/* Blog-Seite: Beitragsliste */
.post-list { max-width: 760px; margin-inline: auto; }
.post {
  padding-block: clamp(2.4rem, 6vw, 3.6rem);
  border-top: 1px solid var(--line);
}
.post:first-child { border-top: 0; padding-top: 0; }
.post h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 1rem; }
.post__body { color: var(--ink); }
.post__body p { color: var(--ink-soft); }
.post__body p:first-child { color: var(--ink); }

/* --- Abschnitte ----------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--band {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }

/* Teaser-Sektionsköpfe der Startseite einheitlich halten
   (Portals ist kein .section, News schon – hier gleich groß) */
.portals__head h2, .news__head h2 { font-size: clamp(1.65rem, 2vw, 1.9rem); }

.split {
  display: grid; gap: var(--gap);
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
}
.split .sticky { position: sticky; top: 104px; }
.split .sticky p { color: var(--ink-soft); }

/* Heraldik-Band auf der Startseite (dunkler Anker mit Wappen) */
.band-crest {
  background: var(--wf-blue-900);
  color: var(--wf-cream-100);
  border-top: 1px solid var(--wf-gold-700);
  border-bottom: 1px solid var(--wf-gold-700);
}
.band-crest .container {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 0.4fr 0.6fr; align-items: center;
}
.band-crest .eyebrow { color: var(--wf-gold-300); }
.band-crest h2 { color: #fff; }
.band-crest h2 em { color: var(--wf-gold-300); font-style: italic; }
.band-crest p { color: #d7deea; }
.band-crest .gold-rule { background: linear-gradient(90deg, var(--wf-gold-500), transparent); }
.crest-figure { margin: 0; justify-self: center; }
.crest-figure img {
  width: clamp(150px, 22vw, 220px);
  filter: drop-shadow(0 20px 44px rgba(0,0,0,0.5));
}

/* --- Kennzahlen (Ulrich) -------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.4rem, 3.5vw, 3rem);
  margin-top: 1.6rem;
}
.stat__icon { color: var(--accent, var(--wf-gold-700)); margin: 0 0 1.1rem; }
.stat__icon svg { width: 30px; height: 30px; }
.stat__num {
  border-top: 1px solid var(--line-gold); padding-top: 1.3rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin: 0.7rem 0 0; color: var(--ink-soft);
  font-size: 0.98rem; letter-spacing: 0.01em; max-width: 26ch;
}

/* --- Lebenslauf-Zeitachse ------------------------------------------------- */
.cv { list-style: none; margin: 0; padding: 0; }
.cv__item {
  position: relative;
  padding: 0 0 2.4rem 2.2rem;
  border-left: 1px solid var(--line);
}
.cv__item:last-child { padding-bottom: 0; }
.cv__item::before {
  content: ""; position: absolute; left: -5px; top: 0.4rem;
  width: 9px; height: 9px; background: var(--wf-gold-500);
  border: 1px solid var(--wf-brown-800); transform: rotate(45deg);
}
.cv__when {
  display: inline-block;
  color: var(--wf-gold-700); font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em; font-size: 0.82rem; text-transform: uppercase;
}
.cv__parallel {
  display: inline-block; margin-left: 0.5rem; vertical-align: middle;
  font-family: var(--font-body); font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--wf-gold-700);
  border: 1px solid var(--line-gold); border-radius: 999px;
  padding: 0.12rem 0.55rem;
}
.cv__what { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin: 0.35rem 0 0.35rem; line-height: 1.15; }
.cv__where { color: var(--ink-soft); }
.cv__where strong { color: var(--ink); font-weight: 600; }

/* Zeitachse mit Symbol-Medaillons (Stefan) */
.cv--icons .cv__item { padding-left: 3.2rem; }
.cv--icons .cv__item::before { display: none; }
.cv__icon {
  position: absolute; left: -18px; top: -2px;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--accent, var(--wf-gold-500));
  border-radius: 50%;
  color: var(--accent, var(--wf-gold-700));
}
.cv__icon svg { width: 18px; height: 18px; }
.section--band .cv__icon { background: var(--paper-warm); }

/* --- Schwerpunkte / Tags -------------------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0.6rem 0 0; list-style: none; }
.tags li {
  font-size: 0.9rem; letter-spacing: 0.02em;
  padding: 0.34rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--raise);
  color: var(--ink-soft);
}

/* --- Netzwerk (Ulrich) — heraldische, dunkelblaue Bahn ------------------- */
.section--deep {
  background: var(--wf-blue-900);
  color: var(--wf-cream-100);
  border-top: 1px solid var(--wf-gold-700);
  border-bottom: 1px solid var(--wf-gold-700);
  position: relative; overflow: hidden;
}
.section--deep .eyebrow { color: var(--wf-gold-300); }
.section--deep h2 { color: #fff; }
.section--deep .gold-rule { background: linear-gradient(90deg, var(--wf-gold-500), transparent); }

.netzwerk { max-width: 720px; margin-inline: auto; text-align: center; }
.netzwerk .gold-rule { margin-inline: auto; }
.netzwerk p { margin-inline: auto; color: #d7deea; }
.netzwerk__motto {
  margin: 1.8rem auto 0;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.02em; color: var(--wf-gold-300);
}

/* --- Partner-Leiste (Netzwerk) ----------------------------------------- */
.partners {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
}
.partners__label {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--wf-gold-300);
}
/* Feine Goldlinie über der Leiste als heraldischer Abschluss */
.partners__label::after {
  content: ""; display: block;
  width: 42px; height: 1px; margin: 0.9rem auto 0;
  background: linear-gradient(90deg, transparent, var(--wf-gold-500), transparent);
}

.partners__viewport {
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;                 /* Firefox: dezent, Motiv trägt */
  -ms-overflow-style: none;
  /* Weiche Ränder, damit Logos in die Fläche laufen statt hart zu schneiden */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners__viewport::-webkit-scrollbar { display: none; }
.partners__viewport:focus-visible {
  outline: 2px solid var(--wf-gold-300);
  outline-offset: 4px; border-radius: 4px;
}

.partners__track {
  display: flex; align-items: stretch;
  gap: clamp(1rem, 2.4vw, 1.8rem);
  margin: 0; padding: 0.4rem; list-style: none;
  width: max-content;                    /* Inhalt bestimmt Breite → Marquee */
  min-width: 100%;
  justify-content: center;               /* wenige Partner: mittig ruhen */
}
/* Sobald die Auto-Rotation läuft, kein Zentrieren mehr (fortlaufender Lauf) */
.partners.is-rolling .partners__track { justify-content: flex-start; }

/* Eine gemeinsame Box: Logo + Rolle. Creme „Papier" — das Logo ist
   freigestellt, sitzt also ohne weißen Kasten auf der Fläche. */
.partner {
  flex: 0 0 auto; margin: 0;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.7rem; width: 260px;
  padding: 1.1rem 1.4rem 1.25rem;
  background: var(--wf-cream-100);
  border: 1px solid var(--wf-gold-700);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.partner:hover,
.partner:focus-visible {
  transform: translateY(-3px);
  border-color: var(--wf-gold-500);
  box-shadow: 0 12px 26px -12px rgba(0,0,0,0.55),
              inset 0 0 0 1px rgba(255,255,255,0.45);
}
.partner__logo-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: clamp(56px, 7vw, 68px);
}
.partner__logo {
  display: block;
  height: clamp(30px, 4vw, 40px); width: auto;
  max-width: 100%; object-fit: contain;
}
/* dünne Goldlinie trennt Logo und Rolle innerhalb der Box */
.partner__role {
  margin: 0; max-width: 24ch;
  padding-top: 0.7rem; width: 100%;
  border-top: 1px solid rgba(155,115,32,0.25);
  font-size: 0.82rem; line-height: 1.35;
  letter-spacing: 0.01em; text-align: center;
  color: var(--wf-blue-700);              /* dunkle Schrift auf heller Box */
}

@media (max-width: 600px) {
  .partner { width: 220px; }
  .partner__logo { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .partner { transition: none; }
}

/* --- Auszeichnungen (Ulrich) — Urkunden-Galerie + Lightbox --------------- */
.awards__intro { color: var(--ink-soft); max-width: 60ch; }
.awards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin: 2.4rem 0 0; padding: 0; list-style: none;
}
.awards > li { margin: 0; min-width: 0; }

.award {
  display: flex; flex-direction: column; gap: 0.9rem;
  width: 100%; min-width: 0; text-align: left;
  padding: 0; margin: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: pointer;
}

.award__frame {
  position: relative; display: block; overflow: hidden;
  background: var(--raise);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent, var(--wf-gold-500));
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.award__frame img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 640 / 917; object-fit: cover; object-position: top center;
  transition: transform 0.5s ease;
}
/* Sanfter Verlauf am unteren Rand beim Hover */
.award__frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(14, 38, 71, 0.12), transparent 42%);
  opacity: 0; transition: opacity 0.3s ease;
}
/* Lupen-Badge signalisiert „vergrößern" */
.award__frame::after {
  content: ""; position: absolute; z-index: 2; right: 0.7rem; bottom: 0.7rem;
  width: 40px; height: 40px;
  background-color: rgba(14, 38, 71, 0.82);
  background-repeat: no-repeat; background-position: center; background-size: 21px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7ecc8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M11 8v6M8 11h6M20.5 20.5l-4.2-4.2'/%3E%3C/svg%3E");
  border: 1px solid var(--wf-gold-500);
  opacity: 0; transform: translateY(6px) scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.award:hover .award__frame,
.award:focus-visible .award__frame {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(14, 38, 71, 0.16);
  border-color: var(--line-strong);
}
.award:hover .award__frame img,
.award:focus-visible .award__frame img { transform: scale(1.03); }
.award:hover .award__frame::before,
.award:focus-visible .award__frame::before { opacity: 1; }
.award:hover .award__frame::after,
.award:focus-visible .award__frame::after { opacity: 1; transform: none; }
.award:focus-visible { outline: none; }
.award:focus-visible .award__frame { outline: 2px solid var(--wf-gold-700); outline-offset: 3px; }

.award__cap { display: block; }
.award__year {
  display: block;
  color: var(--wf-gold-700); font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em; font-size: 0.8rem; text-transform: uppercase;
}
.award__title {
  display: block; margin: 0.25rem 0 0.2rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.18rem; line-height: 1.2; color: var(--ink);
  overflow-wrap: break-word; hyphens: auto;
}
.award__issuer {
  display: block; color: var(--ink-mute); font-size: 0.86rem; line-height: 1.4;
  overflow-wrap: break-word; hyphens: auto;
}

/* Lightbox (natives <dialog>) */
.lightbox {
  width: fit-content; max-width: min(92vw, 880px);
  max-height: 94vh; padding: 0; border: 0; margin: auto;
  background: transparent; color: var(--wf-cream-100); overflow: visible;
}
.lightbox::backdrop { background: rgba(9, 20, 38, 0.86); }
.lightbox__card {
  margin: 0; display: flex; flex-direction: column;
  max-height: 94vh;
  background: var(--paper);
  border: 1px solid var(--wf-gold-700);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.lightbox__stage {
  display: flex; min-height: 0;
  background: #fff; padding: clamp(0.6rem, 2vw, 1.2rem);
}
.lightbox__img {
  margin: auto; width: auto; max-width: 100%; max-height: min(66vh, 720px);
  height: auto; object-fit: contain;
  border: 1px solid var(--line);
}
.lightbox__meta {
  padding: 0.95rem clamp(1rem, 3vw, 1.5rem) 0.4rem;
  color: var(--ink); border-top: 1px solid var(--line-gold);
}
.lightbox__year {
  display: block; color: var(--wf-gold-700);
  font-variant-numeric: tabular-nums; letter-spacing: 0.08em;
  font-size: 0.78rem; text-transform: uppercase;
}
.lightbox__title {
  display: block; margin: 0.15rem 0 0.15rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.15; color: var(--ink);
  overflow-wrap: break-word; hyphens: auto;
}
.lightbox__issuer {
  display: block; color: var(--ink-soft); font-size: 0.9rem;
  overflow-wrap: break-word; hyphens: auto;
}
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.7rem clamp(1rem, 3vw, 1.5rem) 1rem;
}
.lightbox__count {
  color: var(--ink-mute); font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em; font-size: 0.82rem;
}
.lightbox__nav {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.9rem; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9rem; letter-spacing: 0.02em;
  color: var(--ink); background: var(--raise);
  border: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.lightbox__nav svg { width: 16px; height: 16px; }
.lightbox__nav:hover {
  color: var(--wf-gold-700); border-color: var(--wf-gold-500); background: var(--paper-warm);
}
.lightbox__close {
  position: absolute; z-index: 3; top: -14px; right: -14px;
  width: 42px; height: 42px; display: grid; place-items: center;
  cursor: pointer; color: var(--wf-cream-100);
  background: var(--wf-blue-900);
  border: 1px solid var(--wf-gold-500); border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: color 0.2s ease, transform 0.2s ease;
}
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__close:hover { color: var(--wf-gold-300); transform: rotate(90deg); }

@media (max-width: 520px) {
  .awards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .lightbox__close { top: -10px; right: -6px; }
  .lightbox__nav span { display: none; }
  .lightbox__nav { padding: 0.5rem 0.7rem; }
}

/* --- Kontakt -------------------------------------------------------------- */
.contact-split {
  display: grid; gap: var(--gap);
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}
.contact-grid { display: grid; gap: 1.6rem 2.4rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0; }
.contact-grid dt { color: var(--wf-gold-700); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; }
.contact-grid dd { margin: 0.35rem 0 0; font-size: 1.18rem; }
.contact-grid a { color: var(--wf-blue-500); text-underline-offset: 3px; }

.contact-form {
  display: grid; gap: 1.1rem;
  background: var(--raise);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--wf-gold-700);
}
.field input,
.field textarea {
  font-family: var(--font-body); font-size: 1.05rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 0.75rem 0.9rem; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--wf-gold-500);
  box-shadow: 0 0 0 3px rgba(214, 169, 58, 0.22);
}
.contact-form button { justify-self: start; margin-top: 0.3rem; }
.form__status { min-height: 1.3em; color: var(--wf-gold-700); font-size: 0.96rem; margin: 0; }
.form__note { font-size: 0.9rem; color: var(--ink-mute); margin: 0; }

/* --- Web & Social --------------------------------------------------------- */
.socials-wrap { margin-top: clamp(2.2rem, 5vw, 3.5rem); }
.socials {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem;
  padding: 0; margin: 0.7rem 0 0;
}
.socials a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-mono, var(--font-body));
  font-size: 0.86rem; letter-spacing: 0.03em; color: var(--ink-soft);
  border: 1px solid var(--line); padding: 0.45rem 0.95rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.socials svg {
  width: 16px; height: 16px; flex: none; fill: currentColor;
  opacity: 0.85;
}
.socials a:hover svg { opacity: 1; }
.socials a:hover {
  border-color: var(--accent, var(--wf-gold-500));
  color: var(--accent, var(--wf-gold-700));
  background: var(--raise);
}

/* --- Porträt (klein, Fallback) ------------------------------------------- */
.portrait {
  width: 100%; max-width: 260px; height: auto;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent, var(--wf-gold-500));
}

/* --- Impressum ------------------------------------------------------------ */
.legal { max-width: var(--measure); }
.legal h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.legal h3 { font-size: 1.45rem; margin-top: 2.2rem; }
.legal address { font-style: normal; margin: 0 0 1em; }
.legal__list {
  margin: 0.6rem 0 1em; padding-left: 1.3em;
  list-style: disc;
}
.legal__list li { margin: 0.25em 0; }
.legal__list li::marker { color: var(--wf-gold-500); }

/* =========================================================================
   Profil-Themes — gemeinsame Marke, eigene Handschrift
   ========================================================================= */

/* Ulrich: Privatier & Investor (prestige, editorial) */
.theme-invest { --accent: var(--wf-gold-700); }

/* Stefan: Software (modern, technisch) */
.theme-tech {
  --accent: #2f6f95;
  --accent-soft: rgba(47, 111, 149, 0.4);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.theme-tech .eyebrow,
.theme-tech .portal .role,
.theme-tech .cv__when,
.theme-tech .field label {
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
}
.theme-tech .eyebrow::before { background: var(--accent); }
.theme-tech .gold-rule { background: linear-gradient(90deg, var(--accent), transparent); }
.theme-tech .stat { border-top-color: var(--accent-soft); }
.theme-tech .cv__item::before { background: var(--accent); border-color: #1f4a63; }
.theme-tech .hero__meta span::before { background: var(--accent); }
.theme-tech .tags li {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.01em;
  color: #24506b; border-color: var(--accent-soft);
}
.theme-tech .tags li::before { content: "\203A\00a0"; color: var(--accent); }
.theme-tech .field input:focus,
.theme-tech .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 149, 0.2);
}

/* --- Fußzeile — dunkler Anker --------------------------------------------- */
.site-footer {
  background: var(--wf-blue-900); color: var(--wf-cream-100);
  border-top: 1px solid var(--wf-gold-700);
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem;
  justify-content: space-between; align-items: center;
}
.site-footer .wordmark { text-transform: uppercase; letter-spacing: 0.32em; color: var(--wf-gold-300); font-size: 0.9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.site-footer a { color: var(--wf-cream-100); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.03em; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--wf-gold-300); }
.site-footer small { color: #9fb0c8; letter-spacing: 0.02em; }

/* --- Verein: M.E.E.R. e.V. (Stefan) — dunkler Meeres-Anker ---------------- */
.verein {
  background:
    radial-gradient(120% 90% at 50% -10%, #163a63 0%, transparent 62%),
    var(--wf-blue-900);
  color: var(--wf-cream-100);
  border-top: 1px solid var(--wf-gold-700);
  border-bottom: 1px solid var(--wf-gold-700);
}
.verein .eyebrow { color: #7cc0e4; }
.verein .eyebrow::before { background: #7cc0e4; }
.verein h2 { color: #fff; }
.verein h2 em { color: var(--wf-gold-300); font-style: italic; }
.verein__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.verein__lede { color: #cdd9e8; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.verein__lede strong,
.verein__text strong { color: #fff; font-weight: 600; }

.verein__feature {
  display: grid; gap: clamp(1.8rem, 4vw, 3.5rem);
  grid-template-columns: 0.95fr 1.05fr; align-items: start;
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}
.verein__media { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
.verein__shot {
  margin: 0; overflow: hidden;
  border: 1px solid var(--wf-gold-700);
  box-shadow: 0 20px 44px rgba(0,0,0,0.4);
}
.verein__shot img { display: block; width: 100%; height: auto; }
.verein__text { color: #cdd9e8; }
.verein__text p { color: #cdd9e8; }
.verein__facts {
  list-style: none; margin: 1.3rem 0; padding: 0;
  display: grid; gap: 0.6rem;
}
.verein__facts li { position: relative; padding-left: 1.5rem; color: #dbe5f0; }
.verein__facts li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 8px; height: 8px; background: var(--wf-gold-500);
  transform: rotate(45deg);
}
.verein__text .link-arrow {
  margin-top: 0.4rem; color: #7cc0e4;
  border-color: rgba(124, 192, 228, 0.45);
}
.verein__text .link-arrow:hover { color: var(--wf-gold-300); border-color: var(--wf-gold-500); }

.verein__projects {
  border-top: 1px solid rgba(214, 169, 58, 0.28);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.verein__projects .portal h3 { color: var(--ink); }
.verein__projects .eyebrow { margin-bottom: 1.4rem; }
.verein__more { margin-top: 1.6rem; color: #b9c6d8; }
.verein__more a { color: #7cc0e4; }
.verein__more a:hover { color: var(--wf-gold-300); }

@media (max-width: 860px) {
  .verein__feature { grid-template-columns: 1fr; }
}

/* --- Responsiv ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero--profile .hero__inner--split { grid-template-columns: 1fr; gap: clamp(1.8rem, 6vw, 3rem); }
  .hero--profile .hero__figure { max-width: 420px; }
  .hero__figure::before { inset: auto -10px -10px auto; }
  .band-crest .container { grid-template-columns: 1fr; text-align: left; }
  .crest-figure { justify-self: start; }
  .split { grid-template-columns: 1fr; }
  .split .sticky { position: static; }
  .contact-split { grid-template-columns: 1fr; }
  .portals__grid--three { grid-template-columns: repeat(2, 1fr); }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .portals__grid { grid-template-columns: 1fr; }
  .portals__grid--three { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }

  /* Fußzeile mobil mittig */
  .site-footer .container {
    flex-direction: column; justify-content: center;
    text-align: center; gap: 1.4rem;
  }
  .site-footer nav { justify-content: center; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(14, 38, 71, 0.1);
    max-height: 0; overflow: hidden;
    transition: max-height 0.32s ease;
  }
  .site-header[data-nav-open] .site-nav { max-height: 340px; }
  .site-nav a { padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
}

/* --- Scroll-Reveal -------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__text > *,
  .js .hero__signet,
  .js .hero__figure,
  .js .portals__head > *,
  .js .portals__grid > *,
  .js .news__head > *,
  .js .news__grid > *,
  .js .post-list > *,
  .js .band-crest .container > *,
  .js .section > .container > .eyebrow,
  .js .section > .container > .section-head,
  .js .section > .container > h2,
  .js .section > .container > .gold-rule,
  .js .section > .container > p,
  .js .stats > *,
  .js .split > *,
  .js .cv__item,
  .js .awards > li,
  .js .contact-split > *,
  .js .socials-wrap,
  .js .legal > * {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
  }
  .js .is-visible { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Bewegtbild wird zum ruhigen Standbild (Poster) */
  .hero__video { display: none; }
  .hero__media {
    background-image: url("../erfurt-domplatz.jpg");
    background-image: -webkit-image-set(
      url("../erfurt-domplatz.webp") 1x, url("../erfurt-domplatz.jpg") 1x);
    background-image: image-set(
      url("../erfurt-domplatz.webp") type("image/webp"),
      url("../erfurt-domplatz.jpg") type("image/jpeg"));
    background-size: cover;
    background-position: 50% 42%;
    background-repeat: no-repeat;
  }
}

/* Mobil (Hochformat): Bildausschnitt nach rechts, damit der Dom sichtbar bleibt.
   Steht am Dateiende, überschreibt daher auch die Poster-Position oben. */
@media (max-width: 640px) {
  .hero__video { object-position: 62% 42%; }
  .hero--media { background-position: 62% 42%; }
}
