:root {
  color-scheme: light dark;
  --green: #58B031;
  --green-dark: #356f22;
  --ink: #18201a;
  --ink-soft: #334036;
  --charcoal: #313131;
  --paper: #fbfbf6;
  --paper-2: #f1f3ed;
  --line: rgba(24, 32, 26, 0.16);
  --surface: rgba(255, 255, 255, 0.82);
  --shadow: 0 1px 2px rgba(26, 36, 28, 0.06), 0 6px 16px rgba(26, 36, 28, 0.07), 0 18px 40px rgba(26, 36, 28, 0.06);
  --dark-bg: #0d1714;
  --dark-panel: #13221d;
  --dark-text: #eef4ea;
  --max: 1600px;
  --gutter: clamp(20px, 4vw, 56px);
  --sans: "IBM Plex Sans", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-height: 76px;
}

html {
  background: var(--paper);
  /* clip (nicht hidden) schneidet transienten Horizontal-Ueberstand ab, ohne position:sticky zu brechen */
  overflow-x: clip;
  transition: background-color 500ms ease, color 500ms ease;
}

html[data-theme="dark"] {
  --ink: var(--dark-text);
  --ink-soft: #c9d6c7;
  --paper: var(--dark-bg);
  --paper-2: #12201c;
  --line: rgba(238, 244, 234, 0.16);
  --surface: rgba(19, 34, 29, 0.84);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.24), 0 6px 16px rgba(0, 0, 0, 0.28), 0 18px 40px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(88, 176, 49, 0.08) 1px) 0 0 / calc((100vw - min(var(--max), calc(100vw - 2 * var(--gutter)))) / 2 + min(var(--max), calc(100vw - 2 * var(--gutter))) / 12) 100%,
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  transition: background-color 500ms ease, color 500ms ease;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--green);
  color: #071007;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  border-bottom-color: transparent;
  backdrop-filter: blur(18px);
  transition:
    background-color 500ms ease,
    border-color 500ms ease,
    color 300ms var(--ease-out);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom-color: var(--line);
}

/* Transparent hero header sits above the light page background; a top-anchored
   dark scrim lifts the cream nav/brand text to WCAG AA and fades into the hero. */
.site-header:not(.is-scrolled) {
  background: linear-gradient(
    180deg,
    rgba(6, 14, 12, 0.9) 0%,
    rgba(6, 14, 12, 0.78) 60%,
    rgba(6, 14, 12, 0.32) 100%
  );
}

.site-header:not(.is-scrolled) .brand,
.site-header:not(.is-scrolled) .nav-panel a {
  color: var(--dark-text);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.52);
}

.site-header:not(.is-scrolled) .nav-panel a:hover,
.site-header:not(.is-scrolled) .nav-panel a.is-current {
  color: #ffffff;
}

.scroll-progress {
  position: sticky;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.nav-shell {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 112px;
  height: 45px;
  background: rgba(255, 255, 255, 0.93);
  border-radius: 8px;
  padding: 6px 12px 6px 8px;
  object-fit: contain;
  object-position: left center;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-panel a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 220ms var(--ease-out);
}

.nav-panel a:hover {
  color: var(--ink);
}

.nav-panel a.is-current {
  color: var(--ink);
}

.nav-panel a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 260ms var(--ease-out);
}

.nav-panel a:hover::after,
.nav-panel a:focus-visible::after,
.nav-panel a.is-current::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-toggle,
.icon-button,
.lang-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition:
    background-color 240ms var(--ease-out),
    border-color 240ms var(--ease-out),
    color 240ms var(--ease-out),
    transform 180ms var(--ease-snap);
}

.nav-toggle {
  display: none;
  place-items: center;
  gap: 4px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.icon-button,
.lang-button {
  display: inline-grid;
  place-items: center;
  font-weight: 700;
}

.icon-button:hover,
.lang-button:hover,
.nav-toggle:hover {
  transform: translateY(-1px) scale(1.03);
}

.icon-button:active,
.lang-button:active,
.nav-toggle:active,
.icon-button.is-pressed,
.lang-button.is-pressed {
  transform: translateY(1px) scale(0.94) rotate(-3deg);
}

.theme-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -6px -4px 0 var(--green);
}

.section {
  position: relative;
  --section-padding-y: clamp(84px, 10vw, 150px);
  padding: var(--section-padding-y) 0;
  border-bottom: 0;
}

.section--tight {
  --section-padding-y: clamp(60px, 7vw, 104px);
}

.section--generous {
  --section-padding-y: clamp(108px, 12vw, 184px);
}

.section:not(.dark-band):not(.section--no-divider)::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 0;
  left: var(--gutter);
  height: 1px;
  background: var(--line);
  pointer-events: none;
}

.section.section--accent-divider:not(.dark-band)::after {
  right: auto;
  width: clamp(48px, 5vw, 64px);
  background: var(--green);
}

.grid {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.photo-hero {
  isolation: isolate;
  color: var(--dark-text);
}

.hero-photo,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 1 !important;
}

.hero-photo img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.08);
  transform-origin: center;
  will-change: transform;
}

.hero-overlay {
  z-index: -1;
  /* Spaltenfokussierter Scrim: dunkel hinter der Textspalte (links), rechte Bildhaelfte bleibt farbig.
     WCAG-verifiziert (Text >= AA) und misst die tatsaechlichen Glyphen-Bounds. */
  background:
    linear-gradient(100deg, rgba(6, 14, 12, 0.93) 0%, rgba(6, 14, 12, 0.88) 30%, rgba(6, 14, 12, 0.78) 48%, rgba(6, 14, 12, 0.42) 60%, rgba(6, 14, 12, 0.12) 73%, rgba(6, 14, 12, 0) 84%),
    linear-gradient(0deg, rgba(6, 14, 12, 0.4) 0%, rgba(6, 14, 12, 0) 38%);
}

.hero-grid {
  align-items: center;
}

.hero-copy {
  grid-column: 1 / span 7;
  min-width: 0;
  will-change: transform;
}

.photo-hero .hero-copy {
  padding: clamp(32px, 5vw, 64px) 0;
}

.photo-hero h1,
.photo-hero .lead,
.photo-hero .eyebrow {
  color: var(--dark-text);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.photo-hero h1 {
  max-width: 13ch;
}

.hero-proof {
  grid-column: 8 / -1;
  align-self: end;
  display: grid;
  gap: 12px;
  padding-top: clamp(32px, 5vw, 64px);
  will-change: transform;
}

.hero-proof article {
  padding: 18px;
  border: 1px solid rgba(238, 244, 234, 0.3);
  background: rgba(8, 16, 14, 0.76);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
}

.hero-proof strong {
  display: block;
  color: var(--dark-text);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

.hero-proof span {
  display: block;
  margin-top: 8px;
  color: color-mix(in srgb, var(--dark-text) 88%, var(--green));
  font-weight: 700;
  line-height: 1.25;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-theme="dark"] .eyebrow {
  color: var(--green);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--ink);
}

h1[data-reveal-title],
h2[data-reveal-title] {
  position: relative;
  overflow: hidden;
  padding-bottom: 0.04em;
}

h1[data-reveal-title]::after,
h2[data-reveal-title]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0.11;
  transform: translateY(0);
  transition: transform 820ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  pointer-events: none;
}

h1[data-reveal-title][data-reveal],
h2[data-reveal-title][data-reveal] {
  transform: translateY(100%);
}

h1[data-reveal-title].is-visible::after,
h2[data-reveal-title].is-visible::after {
  transform: translateY(-105%);
}

h1[data-reveal-title][data-reveal].is-visible,
h2[data-reveal-title][data-reveal].is-visible {
  transform: translateY(0);
}

.is-split-title[data-reveal-title][data-reveal] {
  transform: none;
}

.is-split-title[data-reveal-title]::after {
  display: none;
}

.split-line {
  display: block;
  overflow: hidden;
}

.split-line-inner {
  display: block;
  will-change: transform;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.35rem, 8vw, 7.8rem);
  font-weight: 600;
}

h2 {
  max-width: 11ch;
  font-size: clamp(2.35rem, 5.3vw, 5.4rem);
  font-weight: 560;
}

#about h2,
#expertise h2,
#history h2,
#global-reach h2 {
  min-width: 0;
  max-width: min(100%, 22ch);
  font-size: clamp(2.45rem, 4.15vw, 4.45rem);
}

/* Kontakt-Heading traegt den langen vollen Vereinsnamen -> deutlich kleiner als eine
   Display-Headline, mit Umbruch-Sicherheit fuer die langen deutschen Komposita
   (BioWasserstoff-, Umweltforschung), damit nichts an der Spaltengrenze clippt. */
#contact h2 {
  min-width: 0;
  max-width: min(100%, 26ch);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  hyphens: auto;
  overflow-wrap: break-word;
}

h3 {
  font-size: clamp(1.2rem, 1.4vw, 1.55rem);
  line-height: 1.08;
}

.lead {
  max-width: 68ch;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
  line-height: 1.58;
}

.hero-actions,
.content-flow {
  margin-top: 34px;
}

.button {
  position: relative;
  z-index: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 10px 10px 0;
  padding: 12px 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 260ms var(--ease-out),
    color 260ms var(--ease-out),
    background-color 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    transform 220ms var(--ease-snap);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--green) 18%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(26, 36, 28, 0.18);
}

.button:hover::before {
  transform: scaleX(1);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #071007;
  will-change: transform;
}

.button.secondary {
  background: var(--surface);
}

/* .button.secondary erbt sonst die Ambient-Textfarbe (hell im Foto-Hero) auf einem hellen
   --surface-Chip -> nahezu unsichtbarer Kontrast. Hero-Kontext ist immer ein dunkles Foto,
   unabhaengig vom Light/Dark-Theme-Toggle, daher fest die bereits verifizierte dunkle
   Surface+Text-Paarung erzwingen statt vom Theme zu erben. */
.photo-hero .button.secondary {
  background: rgba(19, 34, 29, 0.84);
  color: #eef4ea;
}

.section-grid > :first-child {
  grid-column: 1 / span 5;
  min-width: 0;
}

.section-grid > :last-child {
  grid-column: 7 / -1;
  min-width: 0;
}

.content-flow > * + * {
  margin-top: 24px;
}

.content-flow p {
  max-width: 72ch;
}

.image-section {
  align-items: start;
}

.section-photo,
.wide-photo {
  position: relative;
  overflow: hidden;
  margin: 34px 0 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-photo::after,
.wide-photo::after,
.app-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(88, 176, 49, 0.045), transparent 54%);
}

.section-photo img,
.wide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03);
}

.section-photo {
  aspect-ratio: 1 / 1;
}

.section-photo.tall {
  aspect-ratio: 4 / 5;
}

.global-atmosphere-photo {
  aspect-ratio: 2 / 3;
}

.section-photo.wide-ratio {
  aspect-ratio: 4 / 3;
}

.section-photo figcaption {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.wide-photo {
  aspect-ratio: 16 / 9;
}

.trust-panel,
.unique-claim {
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--green) 46%, var(--line));
  background: color-mix(in srgb, var(--green) 9%, var(--surface));
  box-shadow: var(--shadow);
}

.unique-claim {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.8vw, 2.6rem);
  line-height: 1.08;
}

.fact-grid,
.metrics,
.pathway-list,
.two-column-list,
.capability-grid,
.country-grid,
.patent-grid {
  display: grid;
  gap: 12px;
}

.rbi-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rbi-photo-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--green) 24%, var(--line));
  background: var(--surface);
  box-shadow: var(--shadow);
}

.rbi-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 2px solid rgba(88, 176, 49, 0.42);
}

.rbi-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
}

.reactor-photo {
  grid-column: 1 / span 1;
  aspect-ratio: 3 / 2;
}

.installation-photo {
  grid-column: 2 / span 1;
  aspect-ratio: 3 / 2;
}

.cockpit-photo {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-grid article,
.metrics article,
.pathway-list article,
.two-column-list > div,
.capability-grid article,
.country-grid article,
.patent-grid article {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    background-color 500ms ease,
    border-color 500ms ease,
    box-shadow 260ms var(--ease-out);
}

.app-preview:hover,
.process-diagram:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 6px rgba(26, 36, 28, 0.1), 0 16px 40px rgba(26, 36, 28, 0.14);
}

.fact-grid article,
.metrics article {
  min-width: 0;
  min-height: 132px;
  padding: 18px;
}

.capability-grid,
.country-grid,
.patent-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capability-grid article,
.country-grid article,
.patent-grid article {
  padding: 22px;
}

.country-grid article[data-country] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.country-grid article.is-linked {
  border-color: color-mix(in srgb, var(--green) 64%, var(--line));
  background: color-mix(in srgb, var(--green) 11%, var(--surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 32%, transparent), var(--shadow);
}

.capability-grid p,
.country-grid p,
.patent-grid p {
  color: var(--ink-soft);
}

.fact-grid strong,
.metrics strong {
  display: block;
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 2.65rem);
  line-height: 1.05;
  overflow-wrap: break-word;
  word-break: normal;
}

.metrics.compact strong {
  font-size: clamp(1.15rem, 1.3vw, 1.55rem);
}

html[data-theme="dark"] .fact-grid strong,
html[data-theme="dark"] .metrics strong {
  color: var(--green);
}

.fact-grid span,
.metrics span {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.dark-band {
  --blend-size: clamp(96px, 10vw, 150px);
  z-index: 1;
  border-bottom: 0;
  background: #10201b;
  color: var(--dark-text);
  isolation: isolate;
}

.dark-band > * {
  position: relative;
  z-index: 1;
}

.dark-band.section--blend-in::before,
.dark-band.section--blend-out::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  left: 0;
  pointer-events: none;
  height: var(--blend-size);
}

.dark-band.section--blend-in::before {
  top: calc(var(--blend-size) * -1);
  background: linear-gradient(180deg, rgba(247, 244, 236, 0) 0%, #10201b 100%);
}

.dark-band.section--blend-out::after {
  bottom: calc(var(--blend-size) * -1);
  background: linear-gradient(180deg, #10201b 0%, rgba(247, 244, 236, 0) 100%);
}

.dark-band h2,
.dark-band .lead,
.dark-band .eyebrow {
  color: var(--dark-text);
}

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

.network-grid {
  align-items: end;
}

.network-grid > :first-child {
  grid-column: 1 / span 7;
  min-width: 0;
}

.network-grid > :last-child {
  grid-column: 8 / -1;
  min-width: 0;
}

.timeline-section {
  overflow: visible;
}

@media (min-width: 981px) {
  .timeline-section .section-grid {
    align-items: start;
  }

  .timeline-section .section-grid > :first-child {
    position: sticky;
    top: calc(var(--header-height) + clamp(48px, 7vh, 96px));
    align-self: start;
    padding-top: clamp(12px, 2vh, 28px);
  }
}

.timeline {
  position: relative;
  grid-column: 7 / -1;
  display: grid;
  gap: 0;
  --timeline-progress: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 140px;
  width: 2px;
  background: color-mix(in srgb, var(--green) 70%, transparent);
  transform: scaleY(var(--timeline-progress, 0));
  transform-origin: top;
  transition: transform 120ms linear;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 104px 28px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
  padding-block: 0 18px;
}

.timeline article::before {
  content: "";
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  margin-top: 8px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--green);
  background: #10201b;
  border-radius: 50%;
  transition:
    background-color 320ms var(--ease-out),
    box-shadow 320ms var(--ease-out),
    transform 320ms var(--ease-out);
}

.timeline article.is-lit::before {
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(88, 176, 49, 0.14);
  transform: scale(1.18);
}

.timeline time {
  grid-column: 1;
  grid-row: 1;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.timeline p {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  color: #dce8d9;
  min-width: 0;
}

.global-section {
  background:
    linear-gradient(135deg, rgba(88, 176, 49, 0.08), transparent 30%),
    var(--paper);
}

.country-grid h3 {
  font-family: var(--sans);
  color: var(--green-dark);
  font-size: 1rem;
  line-height: 1.2;
}

html[data-theme="dark"] .country-grid h3 {
  color: var(--green);
}

.research-section {
  background: var(--paper-2);
}

.publication-list {
  display: grid;
  gap: 10px;
}

.publication-list p {
  display: block;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  transition: background-color 500ms ease, border-color 500ms ease;
}

.publication-list p::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: 12px;
  background: var(--green);
}

.patent-grid span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

html[data-theme="dark"] .patent-grid span {
  color: var(--green);
}

.project-section {
  background:
    radial-gradient(circle at 80% 16%, rgba(88, 176, 49, 0.12), transparent 28%),
    var(--paper);
}

.project-intro {
  border-bottom: 0;
}

.compact-project {
  padding-block: clamp(70px, 8vw, 112px);
}

#seaweed {
  padding-top: 0;
}

.seaweed-banner {
  position: relative;
  min-height: clamp(300px, 42vw, 520px);
  display: grid;
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 70px);
  overflow: hidden;
  isolation: isolate;
  color: var(--dark-text);
}

.seaweed-video,
.seaweed-video-overlay {
  position: absolute;
  inset: 0;
}

.seaweed-video {
  z-index: -2;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center 58%;
  background: #07151b url("../img/seaweed-coastline-poster.jpg") center / cover no-repeat;
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.06);
  transform-origin: center;
  will-change: transform;
}

.seaweed-video-overlay {
  z-index: -1;
  /* Text sitzt unten-links (align-items:end, Spalte 1/7). Scrim dort verstaerkt (bes. fuer den
     gruenen Status ueber hellem Schaum), rechts/oben bleibt das Video farbig. WCAG-verifiziert
     ueber mehrere bewegte Frames bei 1440 und 2000 px. */
  background:
    linear-gradient(105deg, rgba(6, 16, 14, 0.8) 0%, rgba(6, 16, 14, 0.44) 40%, rgba(6, 16, 14, 0) 68%),
    linear-gradient(0deg, rgba(6, 16, 14, 0.85) 0%, rgba(6, 16, 14, 0.5) 22%, rgba(6, 16, 14, 0) 45%);
}

.seaweed-banner-content {
  padding-block: clamp(42px, 7vw, 86px);
}

.seaweed-banner-content > div {
  grid-column: 1 / span 7;
  min-width: 0;
}

.seaweed-banner h2,
.seaweed-banner .eyebrow,
.seaweed-banner .status {
  color: var(--dark-text);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.seaweed-banner h2 {
  max-width: 11ch;
}

.seaweed-banner .status {
  color: var(--green);
}

.seaweed-summary {
  align-self: start;
}

.seaweed-detail-grid .content-flow {
  grid-column: 7 / -1;
  min-width: 0;
}

.seaweed-summary .eyebrow {
  margin-bottom: 16px;
}

.status {
  display: inline-flex;
  margin-top: 24px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

html[data-theme="dark"] .status {
  color: var(--green);
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(88, 176, 49, 0.08), transparent), var(--surface);
  box-shadow: var(--shadow);
}

.map-card svg {
  min-height: 220px;
  padding: 24px;
}

.two-column-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-column-list > div {
  padding: 22px;
}

.two-column-list p,
.pathway-list p {
  color: var(--ink-soft);
}

.note {
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  background: color-mix(in srgb, var(--green) 9%, var(--surface));
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.section-grid.seaweed-detail-grid .process-diagram {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: clamp(12px, 2vw, 28px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--green) 44%, var(--line));
  background: #07151b;
  box-shadow: 0 2px 6px rgba(8, 24, 20, 0.18), 0 16px 40px rgba(8, 24, 20, 0.22);
  transition:
    border-color 500ms ease,
    box-shadow 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.process-diagram img {
  width: 100%;
  height: auto;
}

.process-diagram iframe {
  aspect-ratio: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  background: #080f1a;
}

.process-diagram figcaption {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid rgba(126, 236, 173, 0.22);
  background: rgba(5, 15, 20, 0.96);
  color: #dcefe4;
  font-size: 0.88rem;
  line-height: 1.38;
}

.warning {
  border-left-color: #8c6a12;
  background: color-mix(in srgb, var(--green) 7%, var(--surface));
}

.muted-band {
  background: var(--paper-2);
}

.pathway-list {
  grid-template-columns: 1fr;
}

.pathway-list article {
  position: relative;
  padding: 24px 24px 24px 78px;
}

.pathway-list span {
  position: absolute;
  top: 22px;
  left: 22px;
  color: var(--green-dark);
  font-weight: 700;
}

.roa-section {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
}

.metro-card {
  position: relative;
  min-height: 310px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metro-node {
  position: relative;
  z-index: 2;
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--green) 50%, var(--line));
  background: color-mix(in srgb, var(--paper) 88%, white);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

html[data-theme="dark"] .metro-node {
  background: #172b25;
}

.metro-node.strong {
  border-color: var(--green);
  box-shadow: 0 0 0 6px rgba(88, 176, 49, 0.08);
}

.metro-line {
  position: absolute;
  z-index: 1;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--green) 0 16px, transparent 16px 28px);
  opacity: 0.8;
  transform-origin: left center;
}

.metro-line.horizontal {
  top: 50%;
  left: 58px;
  right: 58px;
}

.metro-line.diagonal {
  top: 66%;
  left: 18%;
  width: 70%;
  transform: rotate(-28deg);
  opacity: 0.36;
}

.app-preview {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    background-color 500ms ease,
    border-color 500ms ease,
    box-shadow 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.browser-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 78%, white);
}

html[data-theme="dark"] .browser-bar {
  background: #172b25;
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 72%, var(--ink));
}

.browser-bar span:nth-child(2) {
  opacity: 0.66;
}

.browser-bar span:nth-child(3) {
  opacity: 0.42;
}

.app-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.app-preview a {
  display: block;
  line-height: 0;
}

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

.route-strip span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 700;
}

.cta-section {
  background: #10201b;
  color: var(--dark-text);
}

.cta-grid {
  align-items: center;
}

.cta-grid h2 {
  grid-column: 1 / span 7;
  min-width: 0;
  max-width: min(100%, 22ch);
  color: var(--dark-text);
}

.cta-grid > div {
  grid-column: 8 / -1;
  min-width: 0;
}

.cta-grid .lead {
  color: #dce8d9;
}

.contact-grid > :first-child {
  grid-column: 1 / span 6;
  min-width: 0;
}

.contact-grid address {
  grid-column: 8 / -1;
  min-width: 0;
  font-style: normal;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.5;
}

.contact-grid address span,
.contact-grid address a {
  display: block;
}

.site-footer {
  padding: 36px 0;
  background: var(--charcoal);
  color: #f4f7f1;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-inner p {
  max-width: 86ch;
  margin: 0;
  color: #dce5d9;
  font-size: 0.88rem;
}

.footer-inner p strong {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer-badge {
  width: 96px;
  height: auto;
  margin-top: 18px;
  opacity: 0.82;
}

.footer-inner nav {
  display: flex;
  gap: 16px;
}

.footer-inner a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-weight: 700;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23noise)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

html[data-theme="dark"] .grain {
  opacity: 0.025;
  mix-blend-mode: soft-light;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.legal-shell {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-shell h1 {
  max-width: none;
  margin-top: 34px;
  font-size: clamp(3rem, 8vw, 6rem);
}

.legal-shell h2 {
  max-width: none;
  margin-top: 32px;
  margin-bottom: 4px;
  font-size: 1.15rem;
  font-family: var(--sans);
  font-weight: 700;
}

.legal-shell p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.legal-shell .lead {
  color: var(--ink);
}

@media (max-width: 980px) {
  .brand span {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-panel {
    position: fixed;
    inset: 76px var(--gutter) auto var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 240ms var(--ease-out),
      transform 240ms var(--ease-out),
      visibility 0ms linear 240ms,
      background-color 500ms ease,
      border-color 500ms ease;
  }

  .nav-panel.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0ms, 0ms, 0ms, 0ms, 0ms;
  }

  .nav-panel a {
    justify-content: center;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity 220ms var(--ease-out),
      transform 220ms var(--ease-out),
      color 220ms var(--ease-out);
  }

  .nav-panel.is-open a {
    opacity: 1;
    transform: translateY(0);
  }

  .site-header:not(.is-scrolled) .nav-panel.is-open a {
    color: var(--ink-soft);
    text-shadow: none;
  }

  .site-header:not(.is-scrolled) .nav-panel.is-open a:hover,
  .site-header:not(.is-scrolled) .nav-panel.is-open a.is-current {
    color: var(--ink);
  }

  .nav-panel.is-open a:nth-child(1) {
    transition-delay: 40ms;
  }

  .nav-panel.is-open a:nth-child(2) {
    transition-delay: 70ms;
  }

  .nav-panel.is-open a:nth-child(3) {
    transition-delay: 100ms;
  }

  .nav-panel.is-open a:nth-child(4) {
    transition-delay: 130ms;
  }

  .nav-panel.is-open a:nth-child(5) {
    transition-delay: 160ms;
  }

  .nav-panel.is-open a:nth-child(6) {
    transition-delay: 190ms;
  }

  .nav-panel.is-open a:nth-child(7) {
    transition-delay: 220ms;
  }

  .hero-copy,
  .hero-proof,
  .seaweed-banner-content > div,
  .section-grid > :first-child,
  .section-grid > :last-child,
  .timeline,
  .network-grid > :first-child,
  .network-grid > :last-child,
  .cta-grid h2,
  .cta-grid > div,
  .contact-grid > :first-child,
  .contact-grid address {
    grid-column: 1 / -1;
  }

  .timeline-section .section-grid > :first-child {
    position: static;
    padding-top: 0;
  }

  /* .seaweed-detail-grid hat DREI Kinder (seaweed-summary, content-flow, process-diagram) -
     die generische :first-child/:last-child-Regel oben erreicht nur die aeusseren zwei; das
     mittlere Kind behaelt sonst sein Desktop-only grid-column:7/-1 (rechte Haelfte) bei <=980px
     und laesst die linke Haelfte leer. Explizit zuruecksetzen. */
  .seaweed-detail-grid .content-flow {
    grid-column: 1 / -1;
  }

  /* Ab hier ist der Hero-Text voll breit -> Scrim vertikal (oben, wo der Text sitzt)
     statt spaltenfokussiert. WCAG-verifiziert bei 390 und 768 px. */
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(6, 14, 12, 0.9) 0%, rgba(6, 14, 12, 0.88) 58%, rgba(6, 14, 12, 0.4) 76%, rgba(6, 14, 12, 0) 92%);
  }

  /* SEAWEED-Text wird hier voll breit (Spalte 1/-1) und sitzt unten -> spaltenfokussierter
     Desktop-Scrim reicht nicht. Unten-breiter vertikaler Scrim (gruener Status unten am staerksten),
     nach oben ausblendend. WCAG-verifiziert ueber mehrere bewegte Frames bei 390 und 768 px. */
  .seaweed-video-overlay {
    background:
      linear-gradient(0deg, rgba(6, 16, 14, 0.92) 0%, rgba(6, 16, 14, 0.86) 42%, rgba(6, 16, 14, 0.66) 70%, rgba(6, 16, 14, 0.34) 100%);
  }

  .hero {
    min-height: auto;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline::before {
    left: 14px;
  }

  .timeline article {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px 18px;
    padding-left: 0;
  }

  .timeline article::before {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline time,
  .timeline p {
    grid-column: 2;
  }

  .timeline time {
    grid-row: 1;
  }

  .timeline p {
    grid-row: 2;
  }

  h1,
  h2 {
    max-width: min(100%, 26ch);
  }

  #about h2,
  #expertise h2,
  #history h2,
  #global-reach h2,
  .cta-grid h2 {
    max-width: min(100%, 24ch);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .section {
    --section-padding-y: 72px;
  }

  .section--tight {
    --section-padding-y: 56px;
  }

  .section--generous {
    --section-padding-y: 88px;
  }

  .fact-grid,
  .metrics,
  .metrics.compact,
  .two-column-list,
  .capability-grid,
  .rbi-photo-grid,
  .country-grid,
  .patent-grid {
    grid-template-columns: 1fr;
  }

  .reactor-photo,
  .installation-photo,
  .cockpit-photo {
    grid-column: 1 / -1;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .metro-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px;
  }

  .metro-line {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .nav-shell,
  .grid,
  .footer-inner {
    width: min(var(--max), calc(100% - 32px));
  }

  .nav-panel {
    inset-inline: 16px;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.35rem, 15vw, 4.5rem);
    max-width: 100%;
  }

  h2 {
    font-size: clamp(1.9rem, 11vw, 3.7rem);
    max-width: 100%;
  }

  .hero-proof article,
  .capability-grid article,
  .country-grid article,
  .patent-grid article {
    padding: 16px;
  }

  .pathway-list article {
    padding: 22px;
  }

  .pathway-list span {
    position: static;
    display: block;
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .timeline-story-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
