/* MR-GUFi – content elements (ContentBlocks/ContentElements). Values from design/mockup/start.html and netzwerk.html. */

/* ---------- Shared ---------- */

.on-dark {
  background: var(--c-ink);
  color: var(--c-on-dark);
}

.section {
  padding-block: var(--section-y);
}

.section--surface {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.section--no-bottom-border {
  border-bottom: 0;
}

.section--tight {
  padding-block: var(--space-6);
}

.stack {
  display: flex;
  flex-direction: column;
}

.stack--32 {
  gap: var(--space-6);
}

.stack--40 {
  gap: var(--space-7);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-teal);
}

.on-dark .eyebrow {
  letter-spacing: 0.12em;
  color: var(--c-accent);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.section-head__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 720px;
}

.section-head--with-link .section-head__text {
  gap: var(--space-3);
}

.section-head__title {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-head__intro {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--c-muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: var(--tap);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-teal);
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

.button--lg {
  min-height: 48px;
  padding: 0 var(--space-5);
  font-size: 16px;
}

.button--xl {
  min-height: 52px;
  padding: 0 var(--space-5);
  font-size: 16px;
}

.button--accent {
  gap: 10px;
  background: var(--c-accent);
  color: var(--c-ink);
}

.button--outline-dark {
  border-color: var(--c-line-dark-2);
  color: var(--c-on-dark);
  font-weight: 500;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__inner {
  /* One column below 1200 px: text (full width), then the graphic. Side by side only from 1200 px (grid below) –
     in between the text column would be too narrow for the quick search (owner 03.12.2026) */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-7);
  padding-top: clamp(48px, 7vw, var(--space-9));
  padding-bottom: clamp(48px, 6vw, var(--space-9));
}

.hero__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero__title {
  max-width: 15ch;
  margin: 0;
  /* Scales down on narrow screens so the longest hyphenated word ("Ultrahochfeld-MRT") fits the width */
  font-size: min(var(--fs-display), 9vw);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Optional background photo (owner 03.12.2026: the group photo "as a faint gradient overlaid background"): greyscale,
   faint, covered by the dark hero colour towards the text (top left) and the top edge; the content sits above it */
/* One column (below 1200 px): the whole photo, full screen width, centred behind the network graphic – never
   enlarged behind the text or the figures */
.hero--backdrop .hero__motif {
  position: relative;
}

.hero__backdrop {
  position: absolute;
  top: 50%;
  left: calc(50% - 50vw);
  width: 100vw;
  aspect-ratio: 1475 / 861;
  translate: 0 -50%;
  z-index: 0;
  pointer-events: none;
}

.hero--backdrop .hero__text,
.hero--backdrop .hero__motif > svg,
.hero--backdrop .hero__motion {
  position: relative;
  z-index: 1;
}

.hero__backdrop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.22;
}

/* rgb(15 27 42) = --c-ink */
.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--c-ink) 0%, rgb(15 27 42 / 0) 35%, rgb(15 27 42 / 0) 70%, var(--c-ink) 100%);
}

/* Two columns: the photo fills the hero's upper part (text and graphic), dark towards the text on the left */
@media (min-width: 1200px) {
  .hero--backdrop .hero__motif {
    position: static;
  }

  .hero__backdrop {
    top: 0;
    bottom: 0;
    aspect-ratio: auto;
    translate: none;
  }

  .hero__backdrop::after {
    background:
      linear-gradient(90deg, var(--c-ink) 0%, rgb(15 27 42 / 0.75) 35%, rgb(15 27 42 / 0.15) 75%, rgb(15 27 42 / 0.35) 100%),
      linear-gradient(180deg, var(--c-ink) 0%, rgb(15 27 42 / 0) 30%, rgb(15 27 42 / 0) 75%, var(--c-ink) 100%);
  }
}

.hero--backdrop .hero__inner {
  position: relative;
}

/* No word is split in the hero (owner 03.12.2026): no automatic hyphenation, hyphenated words kept whole */
.hero__title,
.hero__lead {
  hyphens: manual;
}

.hero__nobreak {
  white-space: nowrap;
}

/* The lead's long compounds (Ultrahochfeld-Magnetresonanztomographie) only fit from 600 px; below, they may break at
   their own hyphen – the page must never scroll sideways */
@media (max-width: 599px) {
  .hero__nobreak--wide {
    white-space: normal;
  }
}


.hero__lead {
  max-width: 58ch;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-on-dark-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.hero__motif {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__motif > svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  overflow: visible;
}

/* Wide screens: the network graphic gets the room the text does not need (owner 03.12.2026: "the hero graph can be
   larger") – on flex the text took almost all of it. The text column keeps 650 px, so the quick search (field
   strength, focus, button: 637 px in German) stays on one row; from 1200 px the graphic is larger than before. */
@media (min-width: 1200px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(650px, 1.2fr) minmax(0, 1fr);
    align-items: center;
    column-gap: var(--space-7);
  }

  .hero__motif > svg {
    max-width: 720px;
  }
}

/* Network graphic of the hero: sites as nodes, links as in the start page map, field rings around the hubs */
.hero-network__magnet ellipse,
.hero-network__magnet-axis,
.hero-network__magnet-coil {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.hero-network__magnet-axis {
  stroke: var(--c-line-dark-2);
  stroke-opacity: 0.6;
}

.hero-network__magnet-coil {
  fill: var(--c-ink-2);
  fill-opacity: 0.5;
  stroke-opacity: 0.22;
}

.hero-network__rings circle {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 0.25;
}

.hero-network__rings circle:nth-child(3n + 1) { stroke-opacity: 0.45; }
.hero-network__rings circle:nth-child(3n + 2) { stroke-opacity: 0.22; }
.hero-network__rings circle:nth-child(3n) { stroke-opacity: 0.1; }

.hero-network__link {
  fill: none;
  stroke: var(--c-accent);
  stroke-linecap: round;
  stroke-width: 0.35;
  stroke-opacity: 0.45;
}

.hero-network__link--axis {
  stroke-width: 0.45;
  stroke-opacity: 0.8;
  stroke-dasharray: 1.2 1;
}

.hero-network__link--spoke {
  stroke-opacity: 0.6;
}

.hero-network__node {
  fill: var(--c-on-dark);
  stroke: var(--c-ink);
  stroke-width: 0.35;
}

.hero-network__node.is-hub {
  fill: var(--c-accent);
  filter: drop-shadow(0 0 1.6px rgba(94, 205, 222, 0.7));
}

/* Motion (hero-network.js sets data-motion; "is-live" while the drift runs, off when paused or off screen): the
   field lines pulse outwards from the bore, the field rings twinkle at different tempos. No motion without
   JavaScript or with "reduce motion" – the script then never sets data-motion. */
.hero-network[data-motion] .hero-network__magnet ellipse,
.hero-network[data-motion] .hero-network__rings circle {
  transform-box: fill-box;
  transform-origin: center;
}

.hero-network[data-motion].is-live .hero-network__magnet ellipse,
.hero-network[data-motion].is-live .hero-network__rings circle {
  animation-play-state: running;
}

.hero-network[data-motion] .hero-network__magnet ellipse {
  animation: hero-pulse 6s ease-in-out infinite paused;
}

/* Inner lines first: a wave that runs outwards */
.hero-network[data-motion] .hero-network__magnet ellipse:nth-of-type(6) { animation-delay: 0s; }
.hero-network[data-motion] .hero-network__magnet ellipse:nth-of-type(5) { animation-delay: 0.5s; }
.hero-network[data-motion] .hero-network__magnet ellipse:nth-of-type(4) { animation-delay: 1s; }
.hero-network[data-motion] .hero-network__magnet ellipse:nth-of-type(3) { animation-delay: 1.5s; }
.hero-network[data-motion] .hero-network__magnet ellipse:nth-of-type(2) { animation-delay: 2s; }
.hero-network[data-motion] .hero-network__magnet ellipse:nth-of-type(1) { animation-delay: 2.5s; }

.hero-network[data-motion] .hero-network__rings circle {
  animation: hero-twinkle 3.7s ease-in-out infinite paused;
}

/* Different tempos and offsets, so the rings never twinkle in step */
.hero-network[data-motion] .hero-network__rings circle:nth-child(3n + 1) { animation-duration: 2.9s; }
.hero-network[data-motion] .hero-network__rings circle:nth-child(3n) { animation-duration: 4.6s; }
.hero-network[data-motion] .hero-network__rings circle:nth-child(2n) { animation-delay: -1.3s; }
.hero-network[data-motion] .hero-network__rings circle:nth-child(5n) { animation-delay: -2.2s; }

@keyframes hero-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.025); }
}

@keyframes hero-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  45% { opacity: 0.35; transform: scale(1.04); }
}

/* Pause button for all movement (WCAG 2.2.2), below the graphic on the right – never on top of a node */
.hero__motion {
  align-self: flex-end;
  margin-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--c-on-dark-muted);
  cursor: pointer;
}

.hero__motion:hover {
  color: var(--c-on-dark);
  border-color: var(--c-line-dark-2);
}

.hero__motion-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hero__motion[aria-pressed="false"] .hero__motion-play,
.hero__motion[aria-pressed="true"] .hero__motion-pause {
  display: none;
}

.hero__facts {
  border-top: 1px solid var(--c-line-dark);
}

.hero__facts-list {
  display: grid;
  /* 2 × 2 up to 999 px, one row of four from 1000 px – never three (one figure alone in a row). "7 T · 9,4 T" needs
     about 211 px at full size; below 1000 px four columns are narrower and the figures ran into each other */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
  margin-block: 0;
  padding-block: var(--space-5);
}

@media (min-width: 1000px) {
  .hero__facts-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero__fact {
  display: flex;
  flex-direction: column-reverse;
  /* Values on one line across a row, also when a label wraps */
  justify-content: flex-end;
  gap: var(--space-1);
}

.hero__fact dt {
  font-size: 14px;
  color: var(--c-on-dark-faint);
}

.hero__fact dd {
  margin: 0;
  font-family: var(--font-mono);
  /* Scales with the screen so "7 T · 9,4 T" fits half the width down to 320 px */
  font-size: clamp(18px, 6vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--c-surface);
}

/* ---------- Steps ---------- */

/* Steps as a chain (network style of the Chronik): numbered node with a field ring, dashed link to the next node,
   the step as a card. Vertical chain on small screens, one row from 900 px. */
.steps {
  --node: 48px;
  --gap: 24px;
  display: grid;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) minmax(0, 1fr);
  column-gap: var(--space-4);
  align-items: start;
}

.steps__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2);
  left: calc(var(--node) / 2 - 0.75px);
  width: 1.5px;
  height: calc(100% + var(--gap));
  background: repeating-linear-gradient(180deg, var(--c-teal) 0 6px, transparent 6px 11px);
  opacity: 0.6;
}

.steps__node {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border: 1.5px solid var(--c-teal);
  border-radius: 50%;
  background: var(--c-surface);
  box-shadow: 0 0 0 6px rgba(10, 110, 128, 0.1), 0 0 0 12px rgba(10, 110, 128, 0.05);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-teal-dark);
}

.steps__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-5) var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-bg);
}

@media (min-width: 900px) {
  .steps {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }

  .steps__item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    row-gap: var(--space-5);
    height: 100%;
  }

  .steps__item:not(:last-child)::before {
    top: calc(var(--node) / 2 - 0.75px);
    left: calc(var(--node) / 2);
    width: calc(100% + var(--gap));
    height: 1.5px;
    background: repeating-linear-gradient(90deg, var(--c-teal) 0 6px, transparent 6px 11px);
  }
}

.steps__title {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.3;
}

.steps__text {
  flex-grow: 1;
  margin: 0;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

/* ---------- Contact band ---------- */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-5);
  border-radius: var(--radius-l);
}

.cta-band__text {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cta-band__text p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.5;
}

.cta-band--large {
  gap: var(--space-5);
  padding: clamp(28px, 4vw, var(--space-7));
  border-radius: var(--radius-xl);
}

.cta-band--large .cta-band__text p {
  line-height: 1.6;
  color: var(--c-on-dark-muted);
}

.cta-band__title {
  margin: 0;
  font-size: var(--fs-h2-compact);
  color: var(--c-surface);
}

.cta-band .button {
  gap: var(--space-2);
}

/* ---------- Project list ---------- */

.project-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3) var(--space-6);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--c-line);
}

.project-list__number {
  flex: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-teal);
}

.project-list__title {
  flex: 1 1 420px;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-ink);
  text-decoration: none;
}

a.project-list__title:hover {
  color: var(--c-teal);
  text-decoration: underline;
}

.project-list__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

/* Who works together: GUFI sites as linked nodes, partners outside the network as open nodes */
.project-list__network {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0;
  padding-left: var(--space-8);
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.project-list__site,
.project-list__partner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.project-list__site::before,
.project-list__partner::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 0 3px rgba(10, 110, 128, 0.14);
}

.project-list__partner::before {
  background: var(--c-surface);
  border: 1.5px solid var(--c-teal);
  box-shadow: none;
}

/* The link between neighbouring nodes */
.project-list__network > :is(.project-list__site, .project-list__partner) + :is(.project-list__site, .project-list__partner)::before {
  margin-left: var(--space-5);
}

.project-list__network > :is(.project-list__site, .project-list__partner) + :is(.project-list__site, .project-list__partner) {
  position: relative;
}

.project-list__network > :is(.project-list__site, .project-list__partner) + :is(.project-list__site, .project-list__partner)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 18px;
  border-top: 1.5px dashed var(--c-teal);
  opacity: 0.6;
}

@media (max-width: 599px) {
  .project-list__network {
    padding-left: 0;
  }
}

/* ---------- Network map (map and panel: phase 3) ---------- */

.network-map {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
}

.network-map__text {
  flex: 1 1 360px;
}

/* ---------- Section pages (about) ---------- */

.section--compact {
  padding-block: var(--space-6);
}

.section--compact:last-child {
  padding-bottom: var(--space-9);
}

.stack--24 {
  gap: var(--space-5);
}

.section-head__title--small {
  font-size: var(--fs-h2);
}


/* ---------- Page intro ---------- */

.page-intro {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  margin-bottom: var(--space-6);
}

.page-intro__inner {
  padding-top: var(--space-5);
  padding-bottom: var(--space-8);
}

.page-intro__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-7) var(--space-8);
}

.page-intro__text {
  flex: 2 1 520px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.page-intro__title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-intro__lead {
  max-width: 62ch;
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-muted);
}

.page-intro__card {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-5);
  border-radius: var(--radius-l);
}

.page-intro__card p {
  margin: 0;
}

.page-intro__card-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-on-dark-faint);
}

.page-intro__card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--c-surface);
}

.page-intro__card-text {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-on-dark-muted);
}

/* ---------- Goal grid ---------- */

.goal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.goal-grid__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.goal-grid__number {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-teal);
}

.goal-grid__title {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.4;
}

.goal-grid__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-muted);
}

/* ---------- Checklist ---------- */

.checklist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
}

.checklist__head {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.checklist__head .section-head__intro {
  font-size: 16px;
}

.checklist__list {
  flex: 2 1 520px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist__item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--c-line);
  font-size: 16px;
  line-height: 1.55;
}

.checklist__item:last-child {
  border-bottom: 1px solid var(--c-line);
}

.checklist__item .icon {
  flex: 0 0 22px;
  margin-top: 2px;
  color: var(--c-teal);
}

.checklist__item strong {
  font-weight: 600;
}

/* ---------- Timeline ---------- */

/* Chronik as a network (dark band, style of the start page hero): hubs with field rings and satellites, dashed
   links between them. Vertical chain on small screens, one row from 900 px. */
.timeline-band .section-head__title {
  color: var(--c-on-dark);
}

.timeline {
  --node: 48px;
  --gap: 28px;
  display: grid;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) 1fr;
  column-gap: var(--space-4);
  row-gap: var(--space-1);
  align-content: start;
}

/* Link to the next year: from this hub's centre to the next one */
.timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2);
  left: calc(var(--node) / 2 - 0.75px);
  width: 1.5px;
  height: calc(100% + var(--gap));
  background: repeating-linear-gradient(180deg, var(--c-accent) 0 6px, transparent 6px 11px);
  opacity: 0.7;
}

.timeline__node {
  position: relative;
  grid-row: 1 / span 2;
  width: var(--node);
  height: var(--node);
  overflow: visible;
}

.timeline__year {
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--c-on-dark);
}

.timeline__text {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-on-dark-muted);
}

@media (min-width: 900px) {
  /* One row; each year at least 190 px wide – with many years the row scrolls sideways (snapping to the years,
     focusable via timeline.js), the page never does */
  .timeline {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: var(--space-3);
    scrollbar-color: var(--c-line-dark-2) transparent;
  }

  .timeline__item {
    scroll-snap-align: start;
  }

  /* More years beyond the edge (timeline.js): the row fades out on that side */
  .timeline.has-more-right {
    mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent);
  }

  .timeline.has-more-left {
    mask-image: linear-gradient(to left, #000 calc(100% - 72px), transparent);
  }

  .timeline.has-more-left.has-more-right {
    mask-image: linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent);
  }

  /* The mask would also hide the focus outline */
  .timeline:focus-visible:is(.has-more-left, .has-more-right) {
    mask-image: none;
  }

  .timeline__item {
    grid-template-columns: 1fr;
  }

  .timeline__node {
    grid-row: auto;
    margin-bottom: var(--space-3);
  }

  .timeline__year {
    padding-top: 0;
  }

  .timeline__item:not(:last-child)::before {
    top: calc(var(--node) / 2 - 0.75px);
    left: calc(var(--node) / 2);
    width: calc(100% + var(--gap));
    height: 1.5px;
    background: repeating-linear-gradient(90deg, var(--c-accent) 0 6px, transparent 6px 11px);
  }
}

.timeline__satellites line {
  stroke: var(--c-accent);
  stroke-width: 0.8;
  stroke-opacity: 0.45;
}

.timeline__satellites circle {
  fill: var(--c-on-dark);
}

/* Every year its own constellation */
.timeline__item:nth-child(5n + 2) .timeline__satellites { transform: rotate(72deg); }
.timeline__item:nth-child(5n + 3) .timeline__satellites { transform: rotate(150deg) scale(0.9); }
.timeline__item:nth-child(5n + 4) .timeline__satellites { transform: rotate(215deg); }
.timeline__item:nth-child(5n) .timeline__satellites { transform: rotate(300deg) scale(1.08); }

.timeline__ring {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 0.9;
  stroke-opacity: 0.2;
  transform-box: fill-box;
  transform-origin: center;
}

.timeline__ring:nth-of-type(2) {
  stroke-opacity: 0.45;
}

.timeline__hub {
  fill: var(--c-accent);
  stroke: var(--c-ink);
  stroke-width: 1;
  filter: drop-shadow(0 0 3px rgba(92, 200, 215, 0.7));
  transform-box: fill-box;
  transform-origin: center;
}

/* Motion (timeline.js sets data-motion): one wave along the years when the list comes into view (is-pulsing,
   about four seconds), afterwards a year pulses while hovered. No motion without JavaScript or with "reduce motion". */
.timeline[data-motion].is-pulsing .timeline__ring,
.timeline[data-motion] .timeline__item:hover .timeline__ring {
  animation: timeline-ring 1.8s ease-in-out;
}

.timeline[data-motion].is-pulsing .timeline__hub,
.timeline[data-motion] .timeline__item:hover .timeline__hub {
  animation: timeline-hub 1.8s ease-in-out;
}

.timeline[data-motion].is-pulsing .timeline__item:not(:last-child)::before {
  animation: timeline-flow 1.8s linear;
}

.timeline[data-motion] .timeline__item:hover :is(.timeline__ring, .timeline__hub) {
  animation-iteration-count: infinite;
}

/* The wave runs along the years: timeline.js sets --i (position) and --step (shorter with many years) */
.timeline[data-motion].is-pulsing .timeline__item :is(.timeline__ring, .timeline__hub),
.timeline[data-motion].is-pulsing .timeline__item::before {
  animation-delay: calc(var(--i, 0) * var(--step, 0.45s));
}

@keyframes timeline-ring {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.35); stroke-opacity: 0.9; }
}

@keyframes timeline-hub {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.3); filter: drop-shadow(0 0 7px rgba(92, 200, 215, 0.95)); }
}

@keyframes timeline-flow {
  to { background-position: 22px 22px; }
}

/* ---------- Card grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.card__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-teal);
}

.card__title {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.35;
}

.card__text {
  flex-grow: 1;
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-muted);
}

/* Cards that lead to a page (projects, "Weitere Kooperationen"): the whole card is the link, as with the site cards –
   one tab stop, hover and focus on the card. Not for mail and phone links (contact page): there the text (address)
   must stay selectable and a click anywhere should not start a call. */
.card:has(> .link-arrow:not([href^="mailto:"], [href^="tel:"])) {
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card > .link-arrow:not([href^="mailto:"], [href^="tel:"])::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card:has(> .link-arrow:not([href^="mailto:"], [href^="tel:"])):hover {
  border-color: var(--c-teal);
  box-shadow: var(--shadow-hover);
}

.card:has(> .link-arrow:not([href^="mailto:"], [href^="tel:"])):is(:hover, :focus-within) .link-arrow {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card:has(> .link-arrow:not([href^="mailto:"], [href^="tel:"]):focus-visible) {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.card > .link-arrow:not([href^="mailto:"], [href^="tel:"]):focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}

/* ---------- Site profile (page type Standort) ---------- */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
}

.badge {
  padding: var(--space-1) 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  line-height: 1.4;
}

.badge--teal {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-teal-dark);
  background: var(--c-teal-tint);
}

.badge--mono {
  font-family: var(--font-mono);
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
}

.profile-head {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.profile-head__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-top: var(--space-6);
  padding-bottom: var(--space-7);
}

.profile-head__body {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-7);
}

.profile-head__text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  /* Badges, name and institution only (the introduction is a section below): centred against the photo instead of
     leaving an empty area under them */
  align-self: center;
  gap: var(--space-4);
}

.profile-head__title {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.profile-head__institution {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

/* Site photos come in very different formats (1.3:1 to 2.8:1, some with logo lettering): shown whole, never
   cropped or stretched to the height of the text */
/* Key facts and actions of the site head (systems, ultra-high field since, focus tags; contact, website) */
.profile-head__facts {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-2) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--c-line-dark);
}

.profile-head__facts > div {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr;
  gap: var(--space-1) var(--space-4);
  align-items: baseline;
}

.profile-head__facts dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-on-dark-faint);
}

.profile-head__facts dd {
  margin: 0;
  color: var(--c-on-dark);
}

.profile-head__system .mono {
  color: var(--c-accent);
}

.profile-head__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-head__tags li {
  padding: 3px 10px;
  border: 1px solid var(--c-line-dark-2);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.profile-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.profile-head__actions:empty {
  display: none;
}

@media (max-width: 599px) {
  .profile-head__facts > div {
    grid-template-columns: 1fr;
  }
}

.profile-head__figure {
  flex: 1 1 380px;
  align-self: flex-start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
}

.profile-head__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
}

.profile-head__figure figcaption {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.profile-body {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  padding-top: var(--space-7);
  padding-bottom: var(--space-9);
}

.profile-main {
  flex: 999 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.profile-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.profile-section__title {
  margin: 0;
  font-size: var(--fs-h2-compact);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-5);
}

.system-card {
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.system-card__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-5);
}

.system-card__strength {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--c-accent);
}

.system-card__name {
  margin: 0;
  font-size: 18px;
  color: var(--c-surface);
}

.system-card__status {
  font-size: var(--fs-xs);
  color: var(--c-on-dark-faint);
}

.system-card__specs {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--space-2) var(--space-5) var(--space-5);
}

.system-card__specs > div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--c-line);
}

.system-card__specs > div:last-child {
  border-bottom: 0;
}

.system-card__specs dt {
  flex: 0 0 120px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-muted);
}

.system-card__specs dd {
  flex: 1 1 200px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.system-card__specs .mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.placeholder {
  margin: 0;
  color: var(--c-muted);
}

.profile-notes {
  padding: var(--space-5) var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
  font-size: var(--fs-small);
}

.profile-notes__title {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-body);
}

/* Long equipment lists (Mannheim: 40 items) in columns where there is room, half as long to scroll past */
.profile-notes ul {
  margin: 0;
  padding-left: var(--space-4);
  column-width: 26ch;
  column-gap: var(--space-7);
}

.profile-notes li {
  break-inside: avoid;
  margin-bottom: var(--space-1);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  /* Items keep their own height: a title-only item next to one with a description stayed tall and empty */
  align-items: start;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-grid__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-4);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-surface);
}

.focus-grid__title {
  font-weight: 600;
}

.focus-grid__detail {
  font-size: 14px;
  color: var(--c-muted);
}

/* Site introduction as the first section below the head (always; the head only identifies the site) */
.profile-about {
  max-width: 68ch;
  font-size: var(--fs-body);
  line-height: 1.65;
}

.profile-about > :first-child {
  margin-top: 0;
}

.profile-about > :last-child {
  margin-bottom: 0;
}

.profile-aside {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.aside-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.aside-card--dark {
  gap: var(--space-4);
  border: 0;
  background: var(--c-ink);
}

.aside-card--dark p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-on-dark-muted);
}

.aside-card__label {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.aside-card__title {
  margin: 0;
  font-size: 20px;
  color: var(--c-surface);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact p {
  margin: 0;
}

.contact__name {
  font-size: 18px;
  font-weight: 600;
}

.contact__role {
  font-size: 14px;
  color: var(--c-muted);
}

.contact__address {
  font-style: normal;
  font-size: var(--fs-small);
  line-height: 1.6;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  font-size: var(--fs-small);
  color: var(--c-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__link .icon {
  flex: 0 0 18px;
  color: var(--c-teal);
}

.contact__link:hover {
  text-decoration: underline;
}

.nearby {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nearby__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nearby__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: 0 var(--space-4);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-surface);
  color: var(--c-ink);
  text-decoration: none;
}

.nearby__link:hover {
  border-color: var(--c-teal);
}

.nearby__name {
  font-weight: 600;
}

.nearby__strengths {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

/* ---------- Chips ---------- */

.code-chips,
.tag-chips {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.code-chips {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.tag-chips {
  flex-wrap: wrap;
  gap: 6px;
}

.code-chip {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: var(--c-bg);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.tag-chip {
  padding: 3px 9px;
  /* Pill for one line (it is ~22px high); real research-focus titles can wrap, then rounded corners */
  border-radius: 14px;
  background: var(--c-teal-tint);
  color: var(--c-teal-dark);
  font-size: 12px;
}

/* ---------- Schematic map ---------- */

.site-map {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 580;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
  background-color: var(--c-surface);
  background-image: radial-gradient(var(--c-dot-grid) 1.1px, transparent 1.2px);
  background-size: 14px 14px;
}

/* Country outlines (orientation only): neighbours light grey, network countries in a faint teal tint */
.site-map__land {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Round corners like the frame, without clipping the marker labels at the edge */
  clip-path: inset(0 round var(--radius-xl));
}

.site-map__country {
  stroke-width: 1;
  stroke-linejoin: round;
}

.site-map__country--context {
  fill: var(--c-bg);
  fill-opacity: 0.9;
  stroke: var(--c-line);
}

.site-map__country--network {
  fill: var(--c-teal-tint);
  fill-opacity: 0.75;
  stroke: var(--c-line-strong);
}

.site-map__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-linecap: round;
}

/* Network graph (start page): mesh between neighbours, spokes to the coordinators, dashed coordinator axis */
.site-map__link {
  stroke: var(--c-teal);
  transition: stroke-opacity 0.3s, stroke-width 0.3s;
}

.site-map__link--mesh {
  stroke: var(--c-line-strong);
  stroke-opacity: 0.6;
  stroke-width: 1;
}

.site-map__link--spoke {
  stroke-opacity: 0.35;
  stroke-width: 1.4;
}

.site-map__link--axis {
  stroke: var(--c-ink);
  stroke-opacity: 0.55;
  stroke-width: 2;
  stroke-dasharray: 6 5;
}

.site-map__link.is-active {
  stroke: var(--c-teal);
  stroke-opacity: 0.85;
  stroke-width: 1.8;
  stroke-dasharray: 2 4;
  animation: site-map-flow 1.6s linear infinite;
}

@keyframes site-map-flow {
  to {
    stroke-dashoffset: -12;
  }
}

/* Field rings around the coordinating sites – the hubs (motif of the hero) */
.site-map__field {
  stroke: var(--c-teal);
  stroke-width: 1;
  stroke-opacity: 0.16;
}

.site-map__field--outer {
  stroke-opacity: 0.08;
}

.site-map__marker {
  position: absolute;
  width: var(--tap);
  height: var(--tap);
  margin: calc(var(--tap) / -2) 0 0 calc(var(--tap) / -2);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.site-map__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-surface);
  /* Halo, so the nodes stand out from the lines */
  box-shadow: 0 0 0 3px var(--c-surface);
  transition: border-color 0.3s, background-color 0.3s;
}

.site-map__marker.is-coordinator .site-map__dot {
  width: 16px;
  height: 16px;
  background: var(--c-ink);
  box-shadow: 0 0 0 3px var(--c-surface), 0 0 0 6px rgba(15, 27, 42, 0.14);
}

/* Sites linked to the selected one */
.site-map__marker.is-linked .site-map__dot {
  border-color: var(--c-teal);
}

.site-map__marker.is-linked.is-coordinator .site-map__dot {
  box-shadow: 0 0 0 3px var(--c-surface), 0 0 0 6px rgba(10, 110, 128, 0.35);
}

.site-map__label {
  position: absolute;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--c-ink);
  font-size: var(--fs-xs);
  font-weight: 500;
  white-space: nowrap;
}

.site-map__label--right {
  left: calc(50% + 12px);
  top: 50%;
  transform: translateY(-50%);
}

.site-map__label--left {
  right: calc(50% + 12px);
  top: 50%;
  transform: translateY(-50%);
}

.site-map__label--above {
  left: 50%;
  bottom: calc(50% + 10px);
  transform: translateX(-50%);
}

.site-map__label--below {
  left: 50%;
  top: calc(50% + 10px);
  transform: translateX(-50%);
}

.site-map__marker[aria-pressed="true"] .site-map__dot,
.site-map__marker.is-selected .site-map__dot {
  width: 18px;
  height: 18px;
  border-color: var(--c-teal);
  background: var(--c-teal);
  box-shadow: 0 0 0 3px var(--c-surface), 0 0 0 8px rgba(10, 110, 128, 0.18);
}

/* Pulse of the selected site ("map pulse", tokens.css) */
.site-map--select .site-map__marker[aria-pressed="true"] .site-map__dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--c-teal);
  border-radius: 50%;
  animation: site-map-pulse 2.4s ease-out infinite;
}

@keyframes site-map-pulse {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-map__link.is-active,
  .site-map__marker .site-map__dot::after {
    animation: none;
  }
}

.site-map__marker[aria-pressed="true"] .site-map__label,
.site-map__marker.is-selected .site-map__label {
  background: var(--c-ink);
  color: var(--c-surface);
  font-weight: 600;
}

/* Directory: matching sites filled, the others greyed out (not by colour alone: hollow dot + faded label) */
.site-map--filter .site-map__dot {
  background: var(--c-ink);
}

.site-map__marker.is-dimmed .site-map__dot {
  border-color: var(--c-line-strong);
  background: var(--c-surface);
}

.site-map__marker.is-dimmed .site-map__label {
  color: var(--c-muted);
  background: transparent;
}

.site-map__legend {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  width: fit-content;
  padding: 6px 10px;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-muted);
  font-size: 12px;
}

.site-map__legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-map__key {
  width: 10px;
  height: 10px;
  border: 2px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-surface);
}

.site-map__key.is-coordinator {
  background: var(--c-ink);
}

/* ---------- Network map (start page) ---------- */

.network-map {
  align-items: flex-start;
}

.network-map__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.network-map__map {
  flex: 1.4 1 480px;
  min-width: 0;
}

/* Start page panel: first the network as a whole (no site preselected), then the selected site as a card (same
   classes as the directory cards, without the hover lift – it is not a link) */
.site-panel--overview {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--c-teal-tint), var(--c-surface) 70%);
}

.site-panel--overview p {
  margin: 0;
}

.site-panel__overview-title {
  margin: 0;
  font-size: 21px;
}

.site-panel__figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-4) var(--space-4);
  margin: 0;
}

/* Number above its label (dt first in the markup), numbers on one line even when a label wraps */
.site-panel__figures div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.site-panel__figures dt {
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--c-muted);
}

.site-panel__figures dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--c-teal-dark);
}

.site-panel__coordination {
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.site-card--panel:hover,
.site-card--panel.is-highlight {
  border-color: var(--c-line);
  box-shadow: none;
  transform: none;
}

.site-card--panel:focus-within {
  outline: none;
}

/* The panel is not one big link: its link gets the focus outline itself (otherwise nothing would show) */
.site-card--panel .site-card__link:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.site-card--panel .site-card__foot {
  gap: 10px var(--space-4);
}

.site-panel__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 var(--space-1);
  border: 0;
  background: none;
  color: var(--c-muted);
  font: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
}

.site-panel__back:hover {
  color: var(--c-ink);
  text-decoration: underline;
}

.link-arrow .icon {
  width: 16px;
  height: 16px;
}

/* ---------- Sites directory ---------- */

.directory {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-bottom: var(--space-9);
}

.directory__intro .page__title {
  margin-top: var(--space-2);
}

.directory__intro .page__lead {
  max-width: 760px;
  margin: 0;
  line-height: 1.6;
}

.directory__filters:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Desktop: the chip groups sit in the filter row like before; the toggle exists only on phones */
.directory__more {
  display: contents;
}

.directory__toggle {
  display: none;
}

/* Phones: search, then a "Filter (n)" button that opens field strength and focus – the first result moves up from
   about 380 px to about 130 px below the head */
@media (max-width: 599px) {
  .directory__toggle {
    display: inline-flex;
    align-self: flex-start;
  }

  .directory__toggle[aria-expanded="true"] {
    border-color: var(--c-ink);
  }

  .directory__more {
    display: none;
  }

  .directory__more.is-open {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    width: 100%;
  }
}

.filter--search {
  flex: 1 1 260px;
}

.filter--wide {
  flex: 2 1 420px;
}

.filter__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-muted);
}

.search-field {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: 0 var(--space-3);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-m);
  color: var(--c-muted);
}

.search-field:focus-within {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.search-field input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  font-size: var(--fs-control);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  min-height: var(--tap);
  padding: 0 var(--space-4);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  color: var(--c-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.filter-chip--mono {
  font-family: var(--font-mono);
}

.filter-chip[aria-pressed="true"] {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: var(--c-surface);
  font-weight: 600;
}

.directory__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-6);
}

.directory__results {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.directory__count {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.directory__count-number {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--c-ink);
}

.site-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Site card: light head with the name and the field strength as key figure, body with institution, models,
   focus tags (the filter's categories) and research topics; the whole card links to the profile */
.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

/* The whole card is the link to the profile: the name's link stretches over it */
.site-card__link {
  color: var(--c-ink);
  text-decoration: none;
}

.site-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}

.site-card:hover,
.site-card.is-highlight {
  border-color: var(--c-teal);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.site-card:hover .site-card__link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-card:focus-within {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.site-card__link:focus-visible {
  outline: none;
}

.site-card.is-selected {
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px rgba(10, 110, 128, 0.25);
}

/* No position here: the link's ::after must stretch over the whole card, not just the head */
.site-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--c-line);
  background: linear-gradient(180deg, var(--c-teal-tint), rgba(226, 240, 242, 0.35));
}

.site-card__heading {
  min-width: 0;
}

.site-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

/* Node symbol as on the maps: partner a dark dot, coordinator a teal hub with a field ring */
.site-card__title::before {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-ink);
}

.site-card.is-coordinator .site-card__title::before {
  width: 11px;
  height: 11px;
  background: var(--c-teal);
  box-shadow: 0 0 0 4px rgba(10, 110, 128, 0.18);
}

.site-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) 10px;
  margin: var(--space-1) 0 0 var(--space-4);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.site-card__badge {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-teal-dark);
}

.site-card__field {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--c-teal-dark);
}

.site-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
  padding: var(--space-4) var(--space-5) 0;
}

.site-card__institution {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-card__models {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.site-card__tag {
  padding: 3px 10px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-ink);
}

/* The tag of the active focus filter (site-directory.js) */
.site-card__tag.is-match {
  border-color: var(--c-teal-dark);
  background: var(--c-teal-dark);
  color: var(--c-surface);
}

.site-card__topics {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-card__topics li {
  position: relative;
  padding-left: var(--space-4);
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-muted);
}

/* At most two lines per topic; the full text is on the profile */
.site-card__topics li > span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-card__topics li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-teal);
}

/* Contact above the button on every card – side by side, long names (Essen, Jena, Wien) pushed the button onto its
   own line, so the cards did not line up */
.site-card__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-4) var(--space-5) 0;
  padding: var(--space-3) 0 var(--space-4);
  border-top: 1px solid var(--c-line);
}

.site-card__contact {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.site-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-m);
  background: var(--c-teal-tint);
  color: var(--c-teal-dark);
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
}

.site-card:hover .site-card__cta,
.site-card:focus-within .site-card__cta {
  background: var(--c-teal-dark);
  color: var(--c-surface);
}

.site-card__arrow {
  transition: transform 0.15s ease;
}

.site-card:hover .site-card__arrow,
.site-card:focus-within .site-card__arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .site-card,
  .site-card__arrow {
    transition: none;
  }

  .site-card:hover,
  .site-card.is-highlight,
  .site-card:hover .site-card__arrow {
    transform: none;
  }
}

.directory__empty:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--radius-l);
}

.directory__empty p {
  margin: 0;
}

.directory__map {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Beside the list the map travels along while scrolling, so the right column is never empty */
@media (min-width: 960px) {
  .directory__map {
    position: sticky;
    top: 24px;
  }
}

/* Directory map: names of partner sites only for the highlighted site (card hovered/focused, marker hovered or
   selected) – all 14 names do not fit at this size */
.site-map--filter .site-map__marker:not(.is-coordinator):not(:hover):not(:focus-visible):not(.is-highlight):not(.is-selected) .site-map__label {
  opacity: 0;
}

.site-map--filter .site-map__marker.is-highlight .site-map__dot {
  transform: scale(1.45);
  box-shadow: 0 0 0 5px rgba(10, 110, 128, 0.2);
}

.site-map--filter .site-map__marker.is-highlight {
  z-index: 3;
}

.directory__map-note {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--c-muted);
}


/* ---------- News ---------- */

.news-chip {
  align-self: flex-start;
  padding: 3px var(--space-2);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-ink);
  background: var(--c-surface-2);
}

.news-chip--gufi_meeting {
  color: var(--c-teal-dark);
  background: var(--c-teal-tint);
}

.news-chip--network_news {
  color: var(--c-warm);
  background: var(--c-warm-tint);
}

.news-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  padding-bottom: var(--space-9);
}

.news-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
}

.news-page__intro {
  max-width: 720px;
}

.news-page__intro .page__title {
  margin-top: var(--space-2);
}

.news-page__intro .page__lead {
  margin: 0;
}

.news-page__feeds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button--feed {
  gap: var(--space-2);
  padding: 0 var(--space-4);
  background: var(--c-surface);
  font-size: var(--fs-small);
  font-weight: 500;
}

.news-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.news-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.news-section__title {
  margin: 0;
  font-size: var(--fs-h2-compact);
}

.filter-chip__count {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.75;
}

.news-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  /* Compact: with no dates ahead this box is the first thing on the news page – it should not outweigh the news */
  padding: var(--space-4) var(--space-5);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.news-empty__text {
  flex: 1 1 360px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px var(--space-3);
}

.news-empty p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-muted);
}

.news-empty .news-empty__title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--c-ink);
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--c-line);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item__meta {
  flex: 0 0 130px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.news-item__date {
  font-family: var(--font-mono);
  font-size: 14px;
}

.news-item__body {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-item__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

/* Titles of list rows and cards (news, forum topics, search hits, reference cards, dashboard cards): one style –
   ink without underline (they are clearly the row's title), teal and underlined on hover/focus. Links in running
   text stay underlined (WCAG 1.4.1). */
:is(.news-item__title, .forum-topic__title, .search-result__title a, .page-card__title a, .dash-card__title a) {
  color: var(--c-ink);
  text-decoration: none;
}

:is(.news-item__title, .forum-topic__title, .search-result__title a, .page-card__title a, .dash-card__title a):is(:hover, :focus-visible) {
  color: var(--c-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The same on dark surfaces (meeting card of the dashboard) */
:is(.dash-card--dark, .band-dark, .on-dark) :is(.news-item__title, .dash-card__title a) {
  color: var(--c-on-dark);
}

:is(.dash-card--dark, .band-dark, .on-dark) :is(.news-item__title, .dash-card__title a):is(:hover, :focus-visible) {
  color: var(--c-accent);
}

.news-item__teaser {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-muted);
}

.news-item__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.news-older {
  align-self: center;
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
  /* Category edge in the colour of the card's category chip (meeting teal, network news warm, event neutral) */
  border-top: 4px solid var(--c-line-strong);
}

.news-card--gufi_meeting {
  border-top-color: var(--c-teal);
}

.news-card--network_news {
  border-top-color: var(--c-warm);
}

.news-card__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.news-card__date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.news-card__title {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.35;
}

.news-card__teaser {
  flex-grow: 1;
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-muted);
}

/* News detail (D22): dark header with facts and image, text with "at a glance", more news */
.news-article__head {
  background: var(--c-ink);
  color: var(--c-on-dark);
}

.news-article__head-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

@media (min-width: 900px) {
  .news-article__head-inner--image {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

.news-article__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 72ch;
}

.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
}

.news-article__date {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--c-accent);
}

.news-article__title {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.02em;
  hyphens: auto;
}

.news-article__lead {
  margin: 0;
  font-size: var(--fs-lead);
  color: var(--c-on-dark-muted);
}

.news-article__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--c-on-dark-muted);
}

.news-article__facts li,
.news-article__facts a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
}

.news-article__facts a {
  color: var(--c-accent);
  font-weight: 600;
}

.news-article__figure {
  margin: 0;
}

.news-article__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
}

.news-article__figure figcaption {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--c-on-dark-muted);
}

/* Cooperation page (Partials/Kooperation.html): head with the network of the sites, participants lit up */
.project-head__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.project-head__text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.project-head__text .eyebrow {
  margin: 0;
}

.project-map {
  position: relative;
  flex: 0 1 340px;
  aspect-ratio: 600 / 580;
  min-width: 220px;
  /* The outline fades out instead of ending in a hard rectangle */
  mask-image: radial-gradient(closest-side, #000 72%, transparent);
}

/* Small screens: the facts box lists the participants; the decorative map would fill a whole screen */
@media (max-width: 699px) {
  .project-map {
    display: none;
  }
}

/* Country outlines (Partials/MapOutline.html) faint on dark */
.project-map .site-map__land {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-map .site-map__country--context {
  fill: transparent;
  stroke: var(--c-line-dark);
}

.project-map .site-map__country--network {
  fill: rgba(92, 200, 215, 0.05);
  stroke: var(--c-line-dark-2);
}

.project-map__net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.project-map__link {
  stroke: var(--c-accent);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  stroke-opacity: 0.85;
}

.project-map__node {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--c-line-dark-2);
}

.project-map__node.is-participant {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--c-accent);
  box-shadow: 0 0 0 5px rgba(92, 200, 215, 0.18), 0 0 0 11px rgba(92, 200, 215, 0.08), 0 0 12px rgba(92, 200, 215, 0.7);
}

.project-map__label {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%);
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
  color: var(--c-on-dark);
}

.project-map__label--left {
  left: auto;
  right: calc(100% + 10px);
}

.project-map__label--above {
  top: auto;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}

.project-map__label--below {
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}

.project-sites {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-sites a {
  font-weight: 600;
  color: var(--c-teal-dark);
  text-decoration: none;
}

.project-sites a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-sites__institution {
  display: block;
  font-weight: 400;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--c-muted);
}

.news-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

@media (min-width: 900px) {
  .news-article__layout {
    grid-template-columns: minmax(0, 72ch) 300px;
    justify-content: space-between;
    align-items: start;
  }

  /* Short news (a few sentences): one column, "at a glance" as a strip below the text – a tall side box next to
     two lines left a large empty area */
  .news-article__layout--short {
    grid-template-columns: minmax(0, 72ch);
  }

  .news-article__layout--short .news-article__aside {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-6);
  }

  .news-article__layout--short .news-article__aside-title {
    flex-basis: 100%;
  }

  .news-article__layout--short .news-article__glance {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-5);
  }

  .news-article__layout--short .news-article__glance dt::after {
    content: ":";
  }

  .news-article__layout--short .news-article__glance dd {
    margin-right: var(--space-2);
  }

  .news-article__layout--short .news-article__aside-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 var(--space-5);
    margin: 0;
    padding-top: 0;
    border-top: 0;
  }
}

.news-article__body {
  font-size: var(--fs-lead);
  line-height: 1.7;
}

.news-article__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.news-article__aside-title {
  margin: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.news-article__glance {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px var(--space-4);
  margin: 0;
  font-size: var(--fs-small);
}

.news-article__glance dt {
  color: var(--c-muted);
}

/* Labels above their values (long labels, lists as values) */
.news-article__glance--stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
}

.news-article__glance--stacked dd + dt {
  margin-top: var(--space-3);
}

.news-article__glance dd {
  margin: 0;
  font-weight: 600;
}

.news-article__aside-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: var(--space-1) 0 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--c-line);
}

.news-article__aside-links .link-arrow {
  gap: var(--space-2);
}

.news-article__more {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-bottom: var(--space-9);
}

.news-article__more-title {
  margin: 0;
  font-size: var(--fs-h2-compact);
}

/* Site profile: news of this site */
.site-news {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.site-news li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--c-line);
}

.site-news li:last-child {
  border-bottom: 0;
}

.site-news time {
  flex: 0 0 110px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.site-news a {
  flex: 1 1 260px;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
}

.site-news a:hover {
  color: var(--c-teal);
  text-decoration: underline;
}

/* Small screens: the legend goes below the map instead of covering the southern sites; smaller labels */
@media (max-width: 600px) {
  .site-map--select {
    margin-bottom: var(--space-8);
  }

  .site-map__legend {
    top: calc(100% + 8px);
    bottom: auto;
    left: 0;
    right: 0;
    padding: 0;
    background: transparent;
  }

  .site-map__label {
    padding: 1px var(--space-1);
    font-size: 11px;
  }
}

/* ---------- Documents page ---------- */

.page-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}

.page-header .page__title {
  margin: var(--space-2) 0 0;
}

.page-header .page__lead {
  max-width: 760px;
  margin: 0;
  line-height: 1.6;
}

.document-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.document-card__type {
  flex: 0 0 56px;
  height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  border-radius: var(--radius-s);
  background: var(--c-teal-tint);
  color: var(--c-teal-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.document-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.document-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.document-card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.document-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px var(--space-4);
  margin: 0;
  padding-top: var(--space-1);
}

.document-card__actions .button {
  gap: var(--space-2);
  padding: 0 var(--space-4);
}

.news-chip--gufi_quality_assurance {
  color: var(--c-teal-dark);
  background: var(--c-teal-tint);
}

.publication-filters:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
}

.text-input {
  width: 260px;
  max-width: 100%;
  min-height: var(--tap);
  padding: 0 var(--space-3);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-m);
  background: var(--c-surface);
  color: var(--c-ink);
  font: inherit;
  font-size: var(--fs-control);
}

.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

/* Year | text | group and actions (fixed width, right-aligned, so every row lines up); small screens: group and
   actions below the text */
.publication {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px var(--space-5);
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--c-line);
}

@media (min-width: 760px) {
  .publication {
    grid-template-columns: 56px minmax(0, 1fr) 210px;
    gap: var(--space-2) var(--space-5);
  }
}

.publication:last-child {
  border-bottom: 0;
}

.publication__year {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 500;
}

.publication__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.publication__body p {
  margin: 0;
}

.publication__title {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
}

.publication__authors,
.publication__venue {
  font-size: 14px;
  color: var(--c-muted);
}

.publication__venue {
  font-style: italic;
}

.publication__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

@media (min-width: 760px) {
  .publication__side {
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
  }

  .publication__side > .news-chip {
    align-self: flex-end;
  }

  .publication__actions {
    justify-content: flex-end;
  }
}

.publication__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
}

/* DOI and "Zitat kopieren": quiet teal links like elsewhere, underline only on hover; 44 px high for touch */
.publication__action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--tap);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-teal-dark);
  text-decoration: none;
}

.publication__action:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.publication-export {
  margin: 0;
  font-size: 14px;
  color: var(--c-muted);
}

.publication-export a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
}

.members-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  padding: clamp(24px, 4vw, var(--space-7));
  border-radius: var(--radius-xl);
}

.members-teaser__text {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.members-teaser__text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-on-dark-muted);
}

.members-teaser__head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-accent);
}

.members-teaser__title {
  margin: 0;
  font-size: var(--fs-h2-compact);
  color: var(--c-surface);
}

.members-teaser__examples {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.members-teaser__examples li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  border: 1px solid var(--c-line-dark);
  border-radius: 10px;
  color: var(--c-on-dark-faint);
  font-size: var(--fs-small);
}

/* ---------- Members: login ---------- */

.login-page {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-7);
  padding-top: var(--space-7);
  padding-bottom: var(--space-9);
}

.login-page__main {
  flex: 1 1 400px;
  min-width: 0;
  max-width: 520px;
}

.login-page__aside {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(24px, 4vw, var(--space-7));
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
  background: var(--c-surface);
}

.login-card__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-card__head p,
.login-card > p {
  margin: 0;
  color: var(--c-muted);
}

.login-card__title {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.01em;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
}

.form-field__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.form-field__row a {
  font-size: 14px;
}

.form-input {
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-m);
  background: var(--c-surface);
  color: var(--c-ink);
  font: inherit;
  font-size: 16px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  font-size: var(--fs-small);
}

.form-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--c-teal);
}

.button--block {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

.form-message {
  padding: var(--space-4) var(--space-4);
  border-left: 4px solid var(--c-teal);
  border-radius: var(--radius-s);
  background: var(--c-teal-tint);
}

.form-message--error {
  border-left-color: var(--c-warm);
  background: var(--c-warm-tint);
}

.form-message p {
  margin: 0;
  font-size: var(--fs-small);
}

.form-message__title {
  font-weight: 600;
}

/* Forms of the form framework (EXT:form, D32; e.g. "Barriere melden"): core markup, styled like the login form.
   Max. width for readable line lengths; error text in the warm tone with a bar, not by colour alone. */
.frame-type-form_formframework form {
  max-width: 640px;
}

.frame-type-form_formframework .form-element {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 var(--space-5);
}

.frame-type-form_formframework .form-label {
  font-size: 15px;
  font-weight: 600;
}

.frame-type-form_formframework .required {
  margin-left: 2px;
  color: var(--c-warm);
}

.frame-type-form_formframework .form-note {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.frame-type-form_formframework .form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px var(--space-4);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-m);
  background: var(--c-surface);
  color: var(--c-ink);
  font: inherit;
  font-size: var(--fs-control);
}

.frame-type-form_formframework textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

.frame-type-form_formframework .form-text {
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.frame-type-form_formframework .has-error .form-control,
.frame-type-form_formframework .form-control.is-invalid {
  border: 2px solid var(--c-warm);
}

.frame-type-form_formframework .invalid-feedback {
  padding-left: 10px;
  border-left: 4px solid var(--c-warm);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-warm);
}

.frame-type-form_formframework .form-navigation {
  display: flex;
  margin-top: var(--space-2);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.frame-type-form_formframework .form-message:focus {
  outline: none;
}

.password-requirements {
  margin: 0;
  padding-left: var(--space-5);
  font-size: 14px;
  color: var(--c-muted);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.info-list__title {
  margin: 0;
  font-size: var(--fs-h2-compact);
}

.info-list__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list__items li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  line-height: 1.5;
}

.info-list__items .icon {
  flex: 0 0 22px;
  color: var(--c-teal);
}

.info-list__note {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-muted);
}

.info-list__note a {
  font-weight: 600;
}

.members-button__name {
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Notice (disclaimers, archive note) ---------- */

/* Notices: information in teal (like the form messages), cautions (drafts, safety disclaimers) in the warm tone –
   the warm tone alone would wear off as a warning signal if every note used it */
.notice {
  padding: var(--space-4) var(--space-4);
  border-left: 4px solid var(--c-teal);
  border-radius: var(--radius-s);
  background: var(--c-teal-tint);
  color: var(--c-ink);
}

.notice--caution {
  border-left-color: var(--c-warm);
  background: var(--c-warm-tint);
}

/* ---------- Rich-text tables (members pages) ---------- */

.table-scroll {
  position: relative;
  max-width: 100%;
  margin: var(--space-5) 0;
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-surface);
}

.table-scroll table {
  min-width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  line-height: 1.45;
}

.table-scroll th,
.table-scroll td {
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}

.table-scroll thead th {
  background: var(--c-surface-2);
  font-weight: 600;
  white-space: nowrap;
}

.table-scroll tbody th {
  font-weight: 600;
}

.table-scroll tbody tr:last-child > * {
  border-bottom: 0;
}

.table-scroll :where(p, ul) {
  margin: 0 0 6px;
}

.table-scroll ul {
  padding-left: var(--space-4);
}

.table-scroll a {
  overflow-wrap: anywhere;
}

/* ---------- Forum archive ---------- */

.forum {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* List view: categories overview beside the topics on wide screens, above them on small ones */
.forum__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

@media (min-width: 960px) {
  .forum__layout {
    grid-template-columns: 240px minmax(0, 880px);
    align-items: start;
  }

  .forum__toc {
    position: sticky;
    top: 24px;
  }
}

.forum__categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.forum__toc {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.forum__toc-title {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.forum__toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.forum__toc li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.forum__toc a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
  color: var(--c-teal-dark);
}

.forum__toc-count {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.forum-thread,
.forum > .notice {
  max-width: 880px;
}

.forum__category h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-h2-compact);
}

.forum-topics {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.forum-topic {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--c-line);
}

.forum-topic:last-child {
  border-bottom: 0;
}

.forum-topic__title {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
}

.forum-topic__meta,
.forum-post__date,
.forum-post__file-meta,
.forum-thread__hint {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.forum-topic__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.link-back {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
  color: var(--c-teal-dark);
}

.forum-thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.forum-thread__eyebrow {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.forum-thread__title {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Topic view: the topic is what the page is about – the page title "Forum-Archiv" steps back to a label (it stays
   the h1 of the page, the topic its h2) */
.page:has(.forum-thread) > .page__title {
  margin: var(--space-2) 0 var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.forum-posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.forum-post > article {
  padding: var(--space-5) var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.forum-post__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--c-line);
}

.forum-post__author {
  margin: 0;
  font-size: var(--fs-body);
}

.forum-post__date {
  font-family: var(--font-mono);
}

.forum-post__subject {
  margin: var(--space-3) 0 0;
  font-weight: 600;
}

.forum-post__body {
  overflow-wrap: anywhere;
}

.forum-post__body :where(th, td) {
  padding: 6px 10px;
  border: 1px solid var(--c-line);
  text-align: left;
}

.forum-post__attachments {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--c-line);
}

.forum-post__attachments-title {
  margin: 0 0 var(--space-1);
  font-size: var(--fs-small);
}

.forum-post__attachments ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.forum-post__attachments a {
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  font-weight: 600;
  color: var(--c-teal-dark);
}

/* Attachment the old forum lists but whose file is gone: same row, no link, muted */
.forum-post__missing {
  overflow-wrap: anywhere;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  min-height: var(--tap);
  color: var(--c-muted);
}

/* ---------- Members dashboard ---------- */

.dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.dashboard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-5);
}

.dashboard__eyebrow {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.dashboard__title {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dashboard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logout-form {
  margin: 0;
}

.dashboard__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-5);
}

.dash-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.dash-card--dark {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: var(--c-on-dark);
}

.dash-card__eyebrow {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.dash-card--dark .dash-card__eyebrow,
.dash-card--dark .dash-card__text {
  color: var(--c-on-dark-muted);
}

.dash-card__date {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--c-accent);
}

.dash-card__title {
  margin: 0;
  font-size: var(--fs-h3);
}


.dash-card__text {
  margin: 0;
  color: var(--c-muted);
}

.dash-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  margin: auto 0 0;
}

.dash-card--dark .link-arrow {
  color: var(--c-accent);
}

.doc-table {
  min-width: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
}

.doc-table__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--c-line);
}

.doc-table__title {
  margin: 0;
  font-size: var(--fs-h2-compact);
}

/* position: visually hidden texts in the cells are absolutely positioned and must not escape the scroll box */
.doc-table__scroll {
  position: relative;
  overflow-x: auto;
}

.doc-table table {
  width: 100%;
  border-collapse: collapse;
}

.doc-table :where(th, td) {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}

.doc-table thead th {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-muted);
}

.doc-table tbody th {
  min-width: 15rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Phones: no side-scrolling table (the "Öffnen" column was out of view) – each document becomes a stacked row:
   title on top, then type, file size and the "Öffnen" link; the column heads are only for screen readers */
@media (max-width: 599px) {
  .doc-table__scroll {
    overflow: visible;
  }

  .doc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .doc-table :where(table, tbody, .doc-table__group, .doc-table__group th) {
    display: block;
  }

  .doc-table__group th {
    padding: var(--space-4) var(--space-4) 10px;
  }

  .doc-table tbody tr:not(.doc-table__group) {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-1) var(--space-3);
    padding: var(--space-3) var(--space-4) var(--space-1);
    border-bottom: 1px solid var(--c-line);
  }

  .doc-table tbody tr:not(.doc-table__group) > * {
    padding: 0;
    border: 0;
  }

  .doc-table tbody tr:not(.doc-table__group) > th {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .doc-table tbody tr:last-child {
    border-bottom: 0;
  }
}

.doc-table tbody tr:last-child > * {
  border-bottom: 0;
}

.doc-table__source {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-xs);
}

.doc-table__source a {
  color: var(--c-muted);
}

.doc-table__date {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  white-space: nowrap;
}

.doc-table__open {
  text-align: right;
}

.doc-table__open a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
  color: var(--c-teal-dark);
}

.badge--minutes,
.badge--material,
.badge--list {
  background: var(--c-teal-tint);
  color: var(--c-teal-dark);
  white-space: nowrap;
}

.badge--material {
  background: var(--c-warm-tint);
  color: var(--c-ink);
}

.badge--list {
  background: var(--c-surface-2);
  color: var(--c-ink);
}

/* ---------- Site search (D24) ---------- */

.search {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 640px;
}

.search-form__label {
  font-weight: 600;
}

.search-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-form__input {
  flex: 1 1 240px;
  min-width: 0;
}

.search-results__title {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-h2-compact);
}

.search-results__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-line);
}

.search-result {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--c-line);
}

.search-result__type {
  margin: 0 0 var(--space-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.search-result__title {
  margin: 0;
  font-size: var(--fs-body);
}

.search-result__title a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

.search-result__snippet {
  margin: var(--space-1) 0 0;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.search-result__snippet mark {
  padding: 0 2px;
  border-radius: 2px;
  background: var(--c-warm-tint);
  color: var(--c-ink);
}

/* ---------- Imaging protocols: sequence types (members page) ----------
   Colours of the old site (legend: protocols_dist.png), each with its own shape, so the type is not shown by colour
   alone (WCAG 1.4.1). The symbol's alternative text names the type for screen readers. */

.seq {
  white-space: nowrap;
}

.seq::before {
  display: inline-block;
  margin-right: 0.35em;
  font-size: 0.85em;
}

.seq--product::before { content: "●" / "Produktsequenz: "; color: #008000; }
.seq--terra::before { content: "◆" / "Produktsequenz Terra: "; color: #5f7f00; }
.seq--wip::before { content: "▲" / "WIP-Sequenz: "; color: #007a99; }
.seq--customer::before { content: "■" / "Kundensequenz: "; color: #800080; }

:lang(en) .seq--product::before { content: "●" / "Product sequence: "; }
:lang(en) .seq--terra::before { content: "◆" / "Product sequence Terra: "; }
:lang(en) .seq--wip::before { content: "▲" / "WIP sequence: "; }
:lang(en) .seq--customer::before { content: "■" / "Customer sequence: "; }

/* ---------- Members area: navigation bar (all pages of the area, logged in) ---------- */

.members-bar {
  border-bottom: 1px solid var(--c-line);
  background: var(--c-ink);
  color: var(--c-on-dark);
}

.members-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-5);
}

.members-nav {
  --nav-bg: var(--c-ink);
  --nav-shadow: rgb(0 0 0 / 0.55);
  min-width: 0;
  overflow-x: auto;
  /* Scroll shadows as in the main navigation (site.css) */
  background:
    linear-gradient(to right, var(--nav-bg) 40%, transparent) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--nav-bg) 40%, transparent) right / 32px 100% no-repeat local,
    linear-gradient(to right, var(--nav-shadow), transparent) left / 16px 100% no-repeat scroll,
    linear-gradient(to left, var(--nav-shadow), transparent) right / 16px 100% no-repeat scroll;
}

.members-nav__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.members-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-4);
  border-bottom: 3px solid transparent;
  color: var(--c-on-dark);
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.members-nav__link:hover,
.members-nav__link.is-active {
  border-bottom-color: var(--c-accent);
}

.members-nav__link.is-active {
  font-weight: 600;
}

.members-nav :focus-visible {
  outline-offset: -3px;
}

.members-bar__user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-1) 0;
  font-size: var(--fs-small);
  color: var(--c-on-dark-muted);
}

.members-bar__user strong {
  color: var(--c-on-dark);
}

.members-bar .button--outline {
  border-color: var(--c-line-dark-2);
  color: var(--c-on-dark);
}

.button--small {
  padding: 0 var(--space-3);
  font-size: 13px;
}

/* ---------- Page cards (subpages; "Interne Dokumente", dashboard) ---------- */

/* max-width: none – the list must not take the text width of .prose */
.page-cards {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Like the other cards: the whole card links (the title's link stretches over it), no underline at rest */
.page-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: var(--c-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-card:hover {
  border-color: var(--c-teal);
  box-shadow: var(--shadow-hover);
}

.page-card:focus-within {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.page-card__title a:focus-visible {
  outline: none;
}

.page-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.page-card__title {
  margin: 0;
  font-size: var(--fs-h3);
}


.page-card:is(:hover, :focus-within) .page-card__title a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-card__text {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.page-card__meta {
  margin: auto 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.dashboard__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dashboard__section-title {
  margin: 0;
  font-size: var(--fs-h2-compact);
}

.doc-table__intro {
  margin: var(--space-1) 0 0;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.doc-table__group th {
  padding-top: var(--space-4);
  background: var(--c-surface-2);
  font-size: var(--fs-small);
  font-weight: 600;
}

.doc-table__group time {
  margin-right: var(--space-3);
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--c-muted);
}

.doc-table__group a {
  color: var(--c-ink);
}

.doc-table__file {
  font-size: var(--fs-small);
  color: var(--c-muted);
  white-space: nowrap;
}

.page__meta {
  margin: -8px 0 var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--c-muted);
}


/* ---------- Dark band (owner: "contrasty look … here and there") ----------
   Page heads in ink like the news detail: page header element, directory and news list heads, about intro, site
   profile head. Everything inside switches to the colours for dark backgrounds (contrast ≥ 4.5:1). */

.band-dark {
  border-bottom: 0;
  background: var(--c-ink);
  color: var(--c-on-dark);
}

.band-dark--head {
  margin-bottom: var(--space-6);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.band-dark :where(.page__title, .page-intro__title, .profile-head__title, .profile-head__institution) {
  color: var(--c-on-dark);
}

.band-dark :where(.page__lead, .page-intro__lead, .profile-head__figure figcaption) {
  color: var(--c-on-dark-muted);
}

.band-dark .eyebrow {
  color: var(--c-accent);
}

.band-dark a:not(.button) {
  color: var(--c-accent);
}

.band-dark .breadcrumb,
.band-dark .breadcrumb [aria-current] {
  color: var(--c-on-dark-muted);
}

/* Breadcrumb strip of section pages (Sections.html): one surface with the page head that follows – dark heads
   (contact, directory, news, documents, about) get a dark strip, so every dark head looks the same as the site
   profiles and cooperation pages, where the breadcrumb sits inside the band */
.breadcrumb-strip {
  padding-top: var(--space-5);
}

.breadcrumb-strip:has(+ .band-dark) {
  padding-top: var(--space-4);
  background: var(--c-ink);
}

.breadcrumb-strip:has(+ .band-dark) :is(.breadcrumb, .breadcrumb [aria-current]) {
  color: var(--c-on-dark-muted);
}

.breadcrumb-strip:has(+ .band-dark) .breadcrumb a {
  color: var(--c-accent);
}

.breadcrumb-strip + .band-dark--head {
  padding-top: var(--space-2);
}

.breadcrumb-strip + .page-intro .page-intro__inner {
  padding-top: var(--space-2);
}

.band-dark .badge--teal {
  background: var(--c-accent);
  color: var(--c-ink);
}

.band-dark .badge--mono {
  border-color: var(--c-line-dark-2);
  background: transparent;
  color: var(--c-on-dark);
}

.band-dark .button--outline {
  border-color: var(--c-line-dark-2);
  background: transparent;
  color: var(--c-on-dark);
}

/* About intro: the coordination card turns light on the dark band */
.band-dark .page-intro__card {
  background: var(--c-surface);
  color: var(--c-ink);
}

.band-dark .page-intro__card-label {
  color: var(--c-muted);
}

.band-dark .page-intro__card-title {
  color: var(--c-ink);
}

.band-dark .page-intro__card-text {
  color: var(--c-muted);
}

.band-dark .page-header,
.band-dark .directory__intro {
  padding-bottom: 0;
}

/* ---------- Hero finder (field strength + focus → sites directory) ---------- */

.hero-finder {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--c-line-dark-2);
  border-radius: var(--radius-l);
  background: rgba(255, 255, 255, 0.04);
}

.hero-finder__field {
  flex: 1 1 170px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-finder__field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-on-dark-muted);
}

.hero-finder select {
  min-height: 48px;
  padding: 0 var(--space-7) 0 var(--space-4);
  border: 1px solid var(--c-line-dark-2);
  border-radius: var(--radius-m);
  background: var(--c-ink-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e6edf5' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--c-on-dark);
  font: inherit;
  font-size: var(--fs-control);
  appearance: none;
}

.hero-finder .button {
  flex: 0 0 auto;
}

/* Publications: "copy citation" */
.copy-citation {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-teal-dark);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}

.copy-citation.is-copied::after {
  content: " ✓";
}

/* ---------- Gallery and lightbox (site profiles) ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-l);
  aspect-ratio: 3 / 2;
  background: var(--c-surface-2);
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery__link:hover .gallery__image {
  transform: scale(1.04);
}

.gallery__link:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .gallery__image {
    transition: none;
  }
}

.lightbox {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: var(--space-4);
  border: 0;
  border-radius: var(--radius-l);
  background: var(--c-ink);
  color: var(--c-on-dark);
}

.lightbox::backdrop {
  background: rgba(5, 10, 20, 0.8);
}

.lightbox__figure {
  margin: 0;
}

.lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: var(--radius-m);
}

.lightbox__caption {
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  color: var(--c-on-dark-muted);
}

.lightbox__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-3);
}

.lightbox__button {
  min-height: var(--tap);
  padding: 0 var(--space-4);
  border: 1px solid var(--c-line-dark-2);
  border-radius: var(--radius-m);
  background: transparent;
  color: var(--c-on-dark);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}

.lightbox__close {
  margin-left: auto;
}

.lightbox__count {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--c-on-dark-muted);
}

/* ---------- Links to other websites (Middleware\ExternalLinks: new tab, hidden hint) ---------- */

.is-external::after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.3em;
  vertical-align: 0.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7h-1.6V3.7L2.1 11 1 9.9l7.3-7.3H4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7h-1.6V3.7L2.1 11 1 9.9l7.3-7.3H4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Flex links (icon · text · mark) already space their parts with "gap" */
.contact__link.is-external::after {
  margin-left: -4px;
}

/* A logo link (e.g. the DFG) needs no arrow – the hidden hint is enough */
.is-external:has(> img)::after {
  display: none;
}
