/* ==========================================================================
   OptiMod – theme.css (Fassung 9)
   Die Gestaltungsebene über den bestehenden Stylesheets. Wird auf jeder Seite
   als letzte CSS-Datei geladen. Aufbau:
     1  Schriften und Variablen
     2  Typografie
     3  Schaltflächen, Links, Pfeile
     4  Kopfzeile
     5  Kopfbereiche der Unterseiten
     6  Fußzeile
     7  Seitenübergänge, Auswahlfarbe, reduzierte Bewegung
     8  Beispiele und Vergleiche kennzeichnen (Fassung 7)
     9  Engine auf der Seite „Das System“: Lesefeld, Scroll-Hinweis (Fassung 7)
    10  Wissenschaftsseite: drei Folgerungen im Abschnitt „Reproduzierbarkeit“ (Fassung 9)
    11  Seite „Das System“: die beiden Einsatzwege mit ihren Darstellungen (Fassung 9)
   ========================================================================== */

/* 1 ── Schriften und Variablen ------------------------------------------- */
@font-face {
  font-family: "OptiMod Display";
  src: url("assets/fonts/baskervville-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OptiMod Mono";
  src: url("assets/fonts/plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OptiMod Mono";
  src: url("assets/fonts/plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Überschriften: eine Zeile ändern, um zur serifenlosen Variante zurückzukehren:
     --display: var(--sans);  (dann zusätzlich --display-tracking: -0.04em) */
  --display: "OptiMod Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --display-weight: 500;
  --display-tracking: -0.014em;
  --mono: "OptiMod Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --forest: #14221c;
  --forest-2: #1b2a23;
  --forest-3: #23352c;
  --forest-line: #3d5144;
  --sheet: #fbfcf8;
  --sage: #e8ece1;
  --sage-line: #d2dacb;
  --gold: #f3d34a;
  --gold-deep: #e5ba38;
  --ochre: #7a6100;
  --leaf: #9ab078;
  --fern: #536d45;
  --ease-out: cubic-bezier(0.22, 0.68, 0.22, 1);
}

/* 2 ── Typografie -------------------------------------------------------- */
/* Seiten- und Abschnittsüberschriften in der Display-Schrift. Überschriften
   innerhalb der Produktvorschau und in Karten bleiben serifenlos. */
:is(h1, h2):not(.ui-heading),
.effect-opportunity h3,
.research-visual h3 {
  font-family: var(--display);
  font-weight: var(--display-weight) !important;
  letter-spacing: var(--display-tracking) !important;
  font-feature-settings: "lnum" 1, "kern" 1;
  font-synthesis: none;
  text-wrap: balance;
}
:is(.focus-demo, .ft-dialog, .finding-window, .effect-demo, .system-compare, .home-figure, .sci-example, .wide-card) :is(h1, h2),
h2.ui-heading {
  font-family: var(--sans);
  font-weight: 560 !important;
  letter-spacing: -0.035em !important;
}
h1 {
  line-height: 1.03;
}
h2 {
  font-size: clamp(34px, 3.75vw, 56px);
  line-height: 1.08;
}
h3 {
  font-weight: 600;
  letter-spacing: -0.022em;
}
html[lang="de"] :is(h1, h2) {
  hyphenate-limit-chars: 14 6 5;
}
p {
  text-wrap: pretty;
}

/* Etiketten: Monospace bleibt das Zeichen für „Datensatz/Protokoll“. */
.eyebrow,
.sci-label,
.kicker {
  font-family: var(--mono);
  font-weight: 500;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.eyebrow::before {
  border-radius: 1px;
}

/* 3 ── Schaltflächen, Links, Pfeile -------------------------------------- */
/* Pfeile nur dort, wo sie etwas bedeuten: Der Link verlässt die Website
   (↗) oder lädt eine Datei (↓). Alle übrigen Pfeile entfallen. */
.ui-arrow {
  display: none;
}
span[aria-hidden="true"]:has(> .ui-arrow),
.button > .arrow {
  display: contents;
}
a:is([target="_blank"], [download]) .ui-arrow,
:is(.focus-demo, .ft-dialog) .ui-arrow {
  display: inline-block;
}
a:is([target="_blank"], [download]) .ui-arrow {
  width: 0.92em;
  height: 0.92em;
  flex: none;
  opacity: 0.75;
}

.button {
  color: #14221c;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.006em;
  justify-content: center;
  gap: 10px;
  box-shadow: inset 0 -1px 0 #7a610038;
  transition:
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out),
    transform 120ms var(--ease-out);
}
.button:hover {
  background: #ffe174;
  border-color: #ffe174;
  box-shadow:
    inset 0 -1px 0 #7a610038,
    0 6px 18px -8px #e5ba3899;
}
.button:active {
  transform: translateY(1px);
}
.button.secondary,
.hero .button.secondary {
  box-shadow: none;
}
.nav .button {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 13px;
}

/* Textlinks: eine Linie, die beim Überfahren von links nachgezogen wird. */
.text-link,
.sci-link,
.partner-hero-link,
.evaluation-quiet-link {
  font-size: 14px;
  font-weight: 550;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 0;
  text-decoration: none;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) 0 100% / 0 2px no-repeat;
  transition:
    background-size 260ms var(--ease-out),
    color 160ms;
}
:is(.text-link, .sci-link, .partner-hero-link, .evaluation-quiet-link):hover {
  background-size:
    100% 1px,
    100% 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #b08d00;
  outline-offset: 4px;
  border-radius: 3px;
}
:is(.hero, .home-hero, .sci-hero, .page-hero, .applications, .site-footer, .engine-card) :is(a, button, [tabindex]):focus-visible {
  outline-color: var(--gold);
}

/* 4 ── Kopfzeile --------------------------------------------------------- */
.site-header {
  background: #f8f8f3ee;
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  transition:
    box-shadow 240ms var(--ease-out),
    border-color 240ms;
}
.site-header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow:
    0 1px 0 #d7ded4,
    0 14px 34px -26px #14221c66;
}
.nav {
  font-size: 13.5px;
  font-weight: 520;
}
.nav > a:not(.button) {
  color: #2a3a32;
}
.nav > a:not(.button)::after {
  height: 2px;
  bottom: -8px;
  background: var(--gold-deep);
}
.nav > a:not(.button):is(:hover, [aria-current="page"])::after {
  height: 2px;
  bottom: -8px;
}
.nav > a[aria-current="page"] {
  color: var(--ink);
}
.language-switch a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
@media (max-width: 1170px) {
  .nav > a:not(.button) {
    font-size: 16px;
  }
}

/* 5 ── Kopfbereiche der Unterseiten -------------------------------------- */
/* Kompakter als bisher. Dunkel mit eigenem Element rechts: System, Partner,
   Evaluierung. Hell und knapp: Wissenschaft, Kontakt, Rechtliches. */
.return-home {
  display: none;
}
main .page-hero {
  padding-block: clamp(38px, 4.2vw, 64px);
}
main .sci-hero-layout {
  gap: clamp(30px, 5vw, 76px);
  padding-block: clamp(38px, 4.2vw, 64px);
}
@media (min-width: 761px) {
  main .sci-hero-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}
main :is(.page-hero, .sci-hero) h1,
.system-page .sci-hero h1 {
  max-width: none;
  margin-top: 0;
  font-size: clamp(35px, 4.1vw, 57px);
  line-height: 1.07;
  text-wrap: balance;
}
main .sci-hero .sci-label {
  margin-bottom: 16px;
}
main .page-hero .eyebrow {
  margin-bottom: 16px;
}
main .page-hero .lead,
main .sci-hero .sci-lead {
  max-width: 58ch;
  margin-top: 20px;
  font-size: clamp(16px, 1.2vw, 17.5px);
  line-height: 1.7;
}
main .page-hero .actions,
main .sci-hero .sci-actions {
  margin-top: 26px;
}
html[lang="de"] main :is(.page-hero, .sci-hero) h1 {
  font-size: clamp(31px, 3.35vw, 47px);
}
main .system-page .system-hero-note {
  margin-top: 18px;
}
.system-pipeline {
  border-radius: 14px;
}
.system-pipeline-label,
.system-node {
  font-family: var(--mono);
}

/* Helle Variante */
.page-hero.is-light,
.sci-hero.is-light {
  color: var(--ink);
  background: linear-gradient(180deg, #ebefe4, var(--paper));
  border-bottom: 1px solid var(--line);
}
main .page-hero.is-light {
  padding-block: clamp(34px, 3.6vw, 54px) clamp(30px, 3.2vw, 46px);
}
:is(.page-hero, .sci-hero).is-light h1 {
  color: var(--ink);
}
.sci-hero.is-light .sci-label,
main .page-hero.is-light .eyebrow {
  color: #55665a;
}
main .sci-hero.is-light .sci-lead,
main .page-hero.is-light .lead {
  color: #47574d;
}
main .sci-hero.is-light .sci-link {
  color: var(--ink);
}
main .sci-hero.is-light .sci-link:hover {
  color: var(--ochre);
}
.research-foundation {
  padding: clamp(18px, 2vw, 26px) clamp(20px, 2.3vw, 30px);
}
.research-foundation > .sci-label {
  margin-bottom: 14px;
}
.research-connection {
  padding: 12px 0;
}
.research-logo {
  height: 54px;
}
.research-programme {
  gap: 4px;
  padding: 16px 0 0;
  margin-top: 4px;
}
.research-programme svg {
  display: none;
}
.is-light .research-foundation {
  background: #fff;
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 50px -40px #14221c80;
}
.is-light .research-connection,
.is-light .research-programme {
  border-top-color: var(--line);
}
.is-light .research-logo {
  background: #f6f7f1;
}
.is-light .research-connection > span:last-child,
.is-light .research-programme > span:last-of-type {
  color: #4b5a50;
}
.is-light .research-programme strong {
  color: var(--ink);
}
.is-light .research-connection:hover > span:last-child,
.is-light .research-programme:hover strong {
  color: var(--ochre);
}
.is-light .research-foundation a:focus-visible {
  outline-color: #b08d00;
}

/* Partnerseite: rechts die Integration als Beispiel – ein Assistent, der im
   Hintergrund OptiMod aufruft. */
main .page-hero.partner-hero {
  padding-block: clamp(34px, 3.4vw, 50px);
}
.partner-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: clamp(34px, 5.4vw, 84px);
  align-items: center;
}
.host-demo {
  margin: 0;
}
.host-demo .delivery-window {
  overflow: hidden;
  color: var(--ink);
  background: var(--sheet);
  border-radius: 14px;
  box-shadow:
    0 40px 80px -48px #000,
    0 0 0 6px #ffffff06;
}
.host-demo .delivery-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  font: 500 10.5px/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #55665a;
  background: #edf1e5;
  border-bottom: 1px solid #dbe2d5;
}
.host-demo .delivery-host-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.host-demo .delivery-chat {
  display: grid;
  gap: 9px;
  padding: 14px 16px 16px;
}
.host-demo .delivery-message {
  max-width: 92%;
  padding: 9px 13px 10px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 12px;
}
.host-demo .delivery-message p {
  margin: 0;
  font-size: inherit;
  color: #26332c;
}
.host-demo .delivery-message--user {
  justify-self: end;
  background: #e4eadc;
  border-bottom-right-radius: 3px;
}
.host-demo .delivery-message--assistant {
  justify-self: start;
  background: #fff;
  border: 1px solid #dbe2d5;
  border-bottom-left-radius: 3px;
}
.host-demo .delivery-speaker {
  display: block;
  margin-bottom: 5px;
  font: 500 9.5px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7a6d;
}
.host-demo .delivery-chat-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  padding: 3px 10px 3px 7px;
  font: 500 11px/1.5 var(--mono);
  color: #33423a;
  background: #fff;
  border: 1px solid #cdd6c7;
  border-radius: 99px;
}
.host-demo .delivery-background-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #f1f4e9;
  background: #17271e;
  border-radius: 10px;
}
.host-demo .delivery-background-step .delivery-label {
  display: block;
  font: 500 9.5px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f1cd59;
}
.host-demo .delivery-background-step strong {
  font-size: 13.5px;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.host-demo .delivery-report {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 7px 10px;
  color: #33423a;
  background: #f3f5ee;
  border: 1px solid #dbe2d5;
  border-radius: 8px;
}
.host-demo .delivery-report strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
}
.host-demo .delivery-report span span {
  font-size: 11px;
  color: #5d6c5f;
}
.host-demo figcaption {
  max-width: 62ch;
  margin-top: 11px;
  font-size: 12px;
  line-height: 1.6;
  color: #a9b9ac;
}
@media (prefers-reduced-motion: no-preference) {
  .host-demo .delivery-chat > * {
    animation: host-in 0.5s var(--ease-out) both;
  }
  .host-demo .delivery-chat > :nth-child(1) {
    animation-delay: 0.25s;
  }
  .host-demo .delivery-chat > :nth-child(2) {
    animation-delay: 0.95s;
  }
  .host-demo .delivery-chat > :nth-child(3) {
    animation-delay: 1.6s;
  }
}
@keyframes host-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (max-width: 980px) {
  .partner-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .host-demo {
    max-width: 560px;
  }
}

/* Evaluierung: das Beispiel-Briefing als Blatt, etwas kompakter */
.evaluation-hero-layout {
  gap: clamp(36px, 6vw, 96px);
}
.evaluation-brief {
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 4px;
}
.evaluation-brief-head {
  margin-bottom: 18px;
}
main .evaluation-brief h2 {
  font-size: clamp(23px, 2.1vw, 30px);
  line-height: 1.16;
}
.evaluation-brief dl {
  margin: 18px 0;
}
.evaluation-brief dl > div {
  padding: 11px 0;
}

/* Überschriften, deren Breite in Zeichen (ch) für die alte Schrift bemessen war.
   Die neue Schrift hat schmalere Ziffern, daher fallen dieselben ch-Werte enger aus –
   hier um rund ein Viertel angehoben, damit die Zeilen wie zuvor umbrechen. */
.sci-section h2,
.sci-chapters .effect-intro h2 {
  max-width: 31ch;
}
html[lang="de"] .sci-section h2,
html[lang="de"] .sci-chapters .effect-intro h2 {
  max-width: 34ch;
}
.sci-hero-note h2,
.sci-estimate h2,
.system-trust h2 {
  max-width: 30ch;
}
.integration-intro h2 {
  max-width: 29ch;
}
.institutional-intro h2 {
  max-width: 22ch;
}
.engine-intro h2 {
  max-width: 17ch;
}
@media (max-width: 1100px) {
  .engine-intro h2 {
    max-width: 27ch;
  }
}
@media (max-width: 480px) {
  .engine-intro h2 {
    max-width: 19ch;
  }
}
html[lang="de"] .tour-page .focus-tour .section-head h1 {
  font-size: clamp(31px, 3.5vw, 50px);
}

/* 6 ── Fußzeile ---------------------------------------------------------- */
.site-footer .kicker {
  font-size: 10.5px;
  letter-spacing: 0.1em;
}
.footer-tag {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: #dfe6da;
}
.footer-links a {
  transition: color 150ms;
}
/* Schmale Fenster: Firmenzeile und Rechtslinks untereinander statt ohne Abstand aneinander */
.footer-bottom > span {
  display: block;
}

/* 7 ── Seitenübergänge, Auswahl, reduzierte Bewegung --------------------- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease;
}
::selection {
  background: #f3d34a70;
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  .text-link,
  .sci-link,
  .button {
    transition: none;
  }
}

/* 8 ── Beispiele und Vergleiche kennzeichnen ----------------------------- */
/* Ein Beispiel oder ein Vergleich darf nicht mit dem Angebot verwechselt werden:
   Die Kennzeichnung steht deshalb in Lesegröße und mit einem deutlichen Schild. */
.marker-tag {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 9px;
  font: 600 11px/1.25 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
  color: #f3d34a;
  background: #14221c;
  border-radius: 999px;
}
.sci-page .sci-label.is-marker,
.sci-label.is-marker {
  font: 550 15px/1.45 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: #26342d;
}
.sci-page .sci-label.is-marker-lead,
.sci-label.is-marker-lead {
  margin-bottom: 14px;
  font: 600 clamp(17px, 1.5vw, 21px) / 1.35 var(--sans);
  letter-spacing: -0.012em;
  color: #1b2622;
}
.effect-demo .effect-study-label {
  display: block;
  font: 550 14.5px/1.45 var(--sans);
  letter-spacing: 0;
  color: #26342d;
}
.fig-tag {
  display: inline-block;
  margin-right: 9px;
  padding: 2px 7px;
  font: 600 9.5px/1.4 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
  color: #14221c;
  background: #e9dfae;
  border-radius: 999px;
}
/* Konzeptdarstellungen und Beispielkarten: Kennzeichnung als lesbares Schild */
.delivery-window--platform .delivery-window-head > span:last-child,
.evaluation-brief-head .kicker {
  padding: 4px 10px;
  font: 600 11px/1.3 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #14221c;
  background: #e9dfae;
  border-radius: 999px;
}
/* Auszeichnungen mit Logo: greift nur, wenn die Liste Logos enthält (siehe README). */
.research-recognition.has-logos > li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0 24px;
  align-items: center;
}
.research-recognition-logo {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  height: 64px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #dfe4d9;
  border-radius: 8px;
}
.research-recognition-logo img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.research-recognition.has-logos > li > :is(.research-recognition-role, h3) {
  grid-column: 2;
}
@media (max-width: 560px) {
  .research-recognition.has-logos > li {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0 16px;
  }
}
/* Vergleich „ohne / mit OptiMod“ */
.system-choice > .choice-tag {
  justify-self: start;
  margin: 0;
  padding: 5px 11px;
  font: 600 11.5px/1.25 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.system-choice--manual > .choice-tag {
  color: #37463c;
  background: #d9dfd2;
}
.system-choice--auto > .choice-tag {
  color: #f3d34a;
  background: #14221c;
}
.system-choice--manual h3 {
  color: #3a493f;
}
.system-choice .choice-claim {
  display: block;
  margin-bottom: 8px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #26342d;
}
.system-choice--manual li {
  color: #46564b;
}

/* 9 ── Engine auf der Seite „Das System“ --------------------------------- */
/* Die Karte hält oben im Fenster (Klasse is-pinned, von engine.js gesetzt); darunter nennt ein
   Lesefeld den Schritt, den die Route gerade durchläuft. Damit Karte und Lesefeld unter die
   Kopfzeile passen, wird die Grafik bei Bedarf schmaler (Höhe = Breite × 0,3); in niedrigen
   Fenstern entfallen zusätzlich die Unterzeilen der Stufen. Passt es auch dann nicht, läuft die
   Karte wie bisher frei durch und die Erklärungen stehen als Liste darunter. */
.engine-reader,
.engine-hint,
.engine-skip,
.engine-stage-jump {
  display: none;
}
@media (min-width: 1101px) {
  .engine-demo .engine-card {
    --engine-fit: calc((100vh - var(--engine-header, 76px) - var(--engine-chrome, 404px)) / 0.3);
  }
  @supports (height: 100svh) {
    .engine-demo .engine-card {
      --engine-fit: calc((100svh - var(--engine-header, 76px) - var(--engine-chrome, 404px)) / 0.3);
    }
  }
  .has-js .engine-demo.is-pinned :is(.engine-desktop-art, .engine-step-flow, .engine-reader) {
    max-width: max(880px, var(--engine-fit));
    margin-inline: auto;
  }
  .has-js .engine-demo.is-pinned .engine-desktop-art {
    margin-block: 10px 6px;
  }
  .engine-demo .engine-stage-heading {
    min-height: 74px;
  }
  .engine-kicker {
    gap: 11px;
  }
  .has-js .engine-demo.is-pinned .engine-hint {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    color: #f7d565;
  }
  .engine-hint::before {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    animation: engine-nudge 1.5s ease-in-out infinite;
  }
  .engine-hint-end,
  .engine-demo.is-complete .engine-hint-start {
    display: none;
  }
  .engine-demo.is-complete .engine-hint-end {
    display: inline;
  }
  .has-js .engine-demo.is-pinned.is-complete .engine-hint {
    color: #dfe7dc;
  }
  .has-js .engine-demo.is-pinned .engine-skip {
    display: inline-block;
    margin-left: 6px;
    padding: 6px 11px;
    color: #c3d1c6;
    font: 500 11px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: none;
    border: 1px solid #55695a;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .has-js .engine-demo.is-pinned.is-complete .engine-skip {
    display: none;
  }
  .engine-skip:hover {
    color: #fff3c4;
    border-color: #f1cd59;
  }
  .engine-skip:focus-visible,
  .engine-stage-jump:focus-visible {
    outline: 2px solid #f1cd59;
    outline-offset: 3px;
  }
  /* Stufen, die die Route noch nicht erreicht hat, treten zurück */
  .engine-demo .engine-desktop-art [data-engine-art] {
    transition: opacity 0.35s ease;
  }
  .engine-demo.is-following .engine-desktop-art [data-engine-art]:not(.is-lit) {
    opacity: 0.38;
  }
  .engine-demo.is-following .engine-step:not(.is-current, .is-done) {
    opacity: 0.55;
  }
  .engine-demo .engine-step {
    transition: opacity 0.3s ease;
  }
  .has-js .engine-demo.is-pinned .engine-stage-jump {
    position: absolute;
    inset: -12px -3px -8px;
    z-index: 2;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
  }
  .engine-demo.is-pinned .engine-step:is(:hover, .is-peek) {
    opacity: 1;
  }
  .engine-demo.is-pinned .engine-step:is(:hover, .is-peek) .engine-stage-name {
    color: #ffe8a4;
  }
  /* Lesefeld */
  .has-js .engine-demo.is-pinned .engine-reader {
    position: relative;
    display: block;
    height: 136px;
    margin-top: 8px;
  }
  .engine-reader-rail {
    position: absolute;
    top: 0;
    right: 8px;
    left: 8px;
    height: 2px;
    overflow: hidden;
    background: #3f5445;
    border-radius: 2px;
  }
  .engine-reader-rail i {
    position: absolute;
    inset: 0;
    background: #f1cd59;
    transform: scaleX(0);
    transform-origin: left;
  }
  .engine-reader-callout {
    position: absolute;
    top: 14px;
    left: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 14px;
    align-content: start;
    width: min(540px, 100%);
    height: 118px;
    padding: 14px 18px 14px 16px;
    color: #1b2622;
    background: #f4f2e7;
    border-radius: 10px;
    box-shadow: 0 14px 30px -18px #0c1611cc;
    transform: translateX(var(--engine-callout-left, 0px));
    transition: transform 0.5s var(--ease-out);
  }
  .engine-reader-callout::before {
    content: "";
    position: absolute;
    top: -6px;
    left: var(--engine-notch, 50%);
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: inherit;
    border-radius: 2px;
    transform: rotate(45deg);
    transition: left 0.5s var(--ease-out);
  }
  .engine-reader-step {
    grid-row: 1 / span 2;
    padding-top: 3px;
    font: 500 11px/1.5 var(--mono);
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: #7a6100;
  }
  .engine-reader-name {
    font: 600 17px/1.3 var(--sans);
    letter-spacing: -0.02em;
  }
  .engine-reader-text {
    font-size: 14px;
    line-height: 1.55;
    color: #3c4b41;
  }
  .engine-reader-callout.is-changing :is(.engine-reader-name, .engine-reader-text, .engine-reader-step) {
    animation: engine-read 0.4s var(--ease-out) both;
  }
  /* Solange das Lesefeld die Schritte erklärt, entfällt die Liste unter der Karte;
     für Vorleseprogramme bleiben die Beschreibungen an ihren Stufen erhalten. */
  .has-js .engine-demo.is-pinned .engine-details {
    display: none;
  }
  .has-js .engine-demo.is-pinned .engine-step > .engine-description {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
/* Niedrige Fenster (die meisten Notebooks): kompakte Karte, Lesefeld breit und zweizeilig */
@media (min-width: 1101px) and (max-height: 820px) {
  .has-js .engine-demo.is-pinned .engine-card {
    padding-block: 16px 14px;
  }
  .has-js .engine-demo.is-pinned .engine-kicker {
    padding-bottom: 11px;
  }
  .has-js .engine-demo.is-pinned .engine-desktop-art {
    margin-block: 6px 2px;
  }
  .has-js .engine-demo.is-pinned .engine-stage-caption {
    display: none;
  }
  .has-js .engine-demo.is-pinned .engine-stage-heading {
    min-height: 0;
  }
  .has-js .engine-demo.is-pinned .engine-stage-number {
    margin-bottom: 3px;
  }
  .has-js .engine-demo.is-pinned .engine-step .engine-stage-name {
    font-size: 15.5px;
    overflow-wrap: normal;
  }
  .has-js .engine-demo.is-pinned .engine-reader {
    height: 104px;
    margin-top: 14px;
  }
  .has-js .engine-demo.is-pinned .engine-reader-callout {
    width: min(720px, 100%);
    height: 88px;
    padding-block: 11px 12px;
  }
}
@keyframes engine-nudge {
  0%, 100% { transform: translateY(-4px) rotate(45deg); }
  50% { transform: translateY(0) rotate(45deg); }
}
@keyframes engine-read {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .engine-hint::before {
    animation: none;
  }
}

/* 10 ── Wissenschaftsseite: drei Folgerungen im Abschnitt „Reproduzierbarkeit“ (bis Fassung 8 auf der Startseite) */
.sci-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(22px, 2.8vw, 40px);
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}
.sci-outcomes li {
  padding-top: 16px;
  border-top: 1px solid #c8d2c3;
}
.sci-outcome-number {
  display: block;
  font: 400 12px/1.5 var(--mono);
  color: #62735b;
}
.sci-section .sci-outcomes h3 {
  margin: 9px 0 8px;
  font-size: 1.16rem;
  line-height: 1.25;
}
.sci-outcomes p {
  font-size: 0.93rem;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .sci-outcomes {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}


/* 11 ── Seite „Das System“: die beiden Einsatzwege mit ihren Darstellungen (bis Fassung 8 auf der Startseite).
   Die Fenster selbst kommen aus routes.css. */
.system-ways {
  --delivery-divider: #ccd3c8;
  --delivery-secondary: #536258;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  margin-top: 2.1rem;
}
.system-ways article {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}
.sci-section .system-ways h3 {
  font-size: 1.22rem;
  line-height: 1.25;
}
.system-ways .delivery-figure {
  margin: 0.95rem 0 0;
}
.system-ways + .sci-actions {
  margin-top: 1.9rem;
}
@media (max-width: 760px) {
  .system-ways {
    grid-template-columns: minmax(0, 1fr);
  }
}
