/* Entwurf B: Leitsystem. Angelehnt an Bedienoberflächen von Prozessleitsystemen:
   ruhige Grautöne, Farbe nur für Status und Marke, Fenster mit Titelleisten. */
@font-face { font-family: "Heros"; src: url("../fonts/heros-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --paper: #DEE2E3; --surface: #F3F4F4; --ink: #1E2930; --ink-2: #47535A; --ink-3: #5F6B72;
  --rule: #BAC2C5; --grid: #D2D7D9; --green-wash: #DCEBCF; --bar: #2A363D;
  --head: "Heros", "Helvetica Neue", Arial, sans-serif; --r: 2px;
}
h1, h2, h3 { letter-spacing: -0.012em; line-height: 1.08; }
h1 { font-size: clamp(2.1rem, 1.3rem + 2.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .3vw, 1.35rem); }
.section--white { background: var(--surface); }

/* Kopfzeile als Titelleiste */
.site-header { background: var(--bar); border-bottom: 3px solid var(--green); }
.nav a { color: #D3DADD; }
.nav a:hover { color: #fff; background: #35434B; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--green); }
.menu-toggle { background: #35434B; border-color: #4C5A62; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { background: #fff; }
.nav-compact .nav { background: var(--bar); border-bottom-color: var(--green); }
.nav-compact .nav a { border-bottom-color: #3A474F; }

.hero, .page-hero { background: var(--paper); }
.hero { padding-bottom: clamp(56px, 7vw, 96px); }
.hero .cols-2 { align-items: start; }
.page-hero { border-bottom: 1px solid var(--rule); }

/* Fenster mit Titelleiste */
.sheet { border: 1px solid var(--rule); border-top: 28px solid var(--bar); padding: 14px; }
.sheet::before { display: none; }
.fp-head { display: flex; align-items: center; gap: 10px; background: var(--bar); color: #fff; padding: 8px 14px; font-weight: 600; font-size: .92rem; }
.fp-head::before { content: ""; width: 10px; height: 10px; background: var(--green); }
.sfc-panel { margin: 0; background: var(--surface); border: 1px solid var(--rule); }
.sfc-body { padding: 24px 24px 20px; }
.sfc .step { border-radius: 0; }
.pillar { background: var(--surface); border: 1px solid var(--rule); padding: 0 0 24px; gap: 12px; }
.pillar > :not(.fp-head) { margin-left: 24px; margin-right: 24px; }
.pillar .fp-head { margin: 0 0 6px; font-size: 1rem; padding: 12px 16px; }
.pillar h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pillar .sub { color: var(--ink); font-size: 1.15rem; }
.minor { border-left: 6px solid var(--ink-3); }
.btn { border-radius: var(--r); }
.node { border-radius: 3px; }

/* Engineering-Prozess als senkrechte Ablaufkette */
@media (min-width: 901px) {
  #prozess .wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: 36px; align-items: start; }
  #prozess .section-head { grid-column: 1 / -1; }
  .timeline-tabs { grid-column: 1; grid-row: 2 / span 5; display: block; position: sticky; top: 100px; }
  .timeline-tabs::before { left: 26px; right: auto; top: 26px; bottom: 26px; width: 3px; height: auto; }
  .timeline-tabs li + li { margin-top: 22px; }
  .timeline-tabs li + li::before { content: ""; position: absolute; left: 15px; top: -13px; width: 25px; height: 3px; background: var(--ink); z-index: 2; }
  .timeline-tabs a { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 0 14px; align-items: center; padding: 0; }
  .timeline-tabs .node { width: 54px; height: 54px; margin: 0; grid-row: span 2; }
  .timeline-tabs .ph { align-self: end; }
  .timeline-tabs .name { align-self: start; font-size: 1.12rem; }
  .timeline-tabs a[aria-selected="true"]::after { display: none; }
  .timeline-tabs a[aria-selected="true"] .name { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--green); text-underline-offset: 5px; }
  .phase-panel { grid-column: 2; border: 1px solid var(--rule); border-top: 28px solid var(--bar); }
  .phase-panel + .phase-panel { margin-top: 20px; }
}

/* Referenzen als Zeilen */
.ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ref-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.ref-card .art { border-bottom: 0; border-right: 1px solid var(--rule); aspect-ratio: auto; height: 100%; min-height: 150px; }
.ref-card .body { padding: 16px 18px 18px; }
.ref-card h2, .ref-card h3 { font-size: 1.12rem; }
@media (max-width: 980px) { .ref-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .ref-card { grid-template-columns: 110px minmax(0, 1fr); } }

.cta { background: var(--bar); }
.site-footer { background: #1A2329; }
.matrix-row .benefit, .link { color: #2F6A14; }
.isa-stack li:nth-child(odd) { background: var(--green-wash); }

.hero h1 { font-size: clamp(2rem, 1.2rem + 2.1vw, 3rem); }
.loop { max-width: 420px; }
