/* Buffalo Engineering — Landingpage
   Konzept: die Seite als kontrolliertes Validierungsdokument.
   Palette: kühles Spec-Sheet-Papier, Graphit-Tinte, ein tiefes „Freigegeben"-Grün als einziger Akzent. */

:root {
  --paper:        #EEF1ED;
  --paper-2:      #E4E8E3;
  --card:         #FFFFFF;
  --ink:          #0F1815;
  --ink-2:        #3A4842;
  --stone:        #6C7A73;
  --line:         #C7D0CB;
  --line-soft:    #DAE0DB;
  --validated:    #1B6E57;
  --validated-2:  #2E9C79;
  --critical:     #B23A2E;

  --f-display: "Archivo", "Segoe UI", sans-serif;
  --f-body:    "IBM Plex Sans", "Segoe UI", sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --sect-y: clamp(64px, 9vw, 120px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: min(100% - calc(var(--gutter) * 2), var(--maxw)); margin-inline: auto; }

/* ---------- Dokument-Kontrollleiste ---------- */
.doc-control {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 40;
}
.doc-control__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 40px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--stone);
}
.doc-control__brand { color: var(--ink); font-weight: 600; letter-spacing: 0.12em; }
.doc-control__mid { display: none; }
.doc-control__meta { display: flex; align-items: center; gap: 8px; white-space: nowrap; }

/* Statuschips */
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 3px; line-height: 1.5;
}
.chip--released { background: rgba(27,110,87,.12); color: var(--validated); }
.chip--status { transition: background .5s ease, color .5s ease; }
.chip[data-status="Entwurf"]     { background: rgba(108,122,115,.15); color: var(--stone); }
.chip[data-status="Geprüft"]     { background: rgba(46,156,121,.15); color: var(--validated-2); }
.chip[data-status="Freigegeben"] { background: rgba(27,110,87,.14); color: var(--validated); }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--validated); margin-bottom: 20px;
}
.eyebrow--dark { color: var(--stone); }

.h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12;
  letter-spacing: -0.015em; color: var(--ink);
}
.h2--light { color: var(--paper); }

/* ---------- HERO ---------- */
.hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: var(--sect-y); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(34px, 5.4vw, 62px); line-height: 1.04;
  letter-spacing: -0.025em; color: var(--ink); margin-bottom: 24px;
}
.hero__title .mark { position: relative; white-space: nowrap; }
.hero__title .mark::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 0.08em; height: 0.34em;
  background: var(--validated-2); opacity: .22; z-index: -1; border-radius: 2px;
}
.hero__sub {
  font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-2);
  max-width: 46ch; margin-bottom: 32px;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__note {
  margin-top: 18px; font-family: var(--f-mono); font-size: 12px; color: var(--stone);
  letter-spacing: 0.01em;
}

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-weight: 550; font-size: 15px;
  padding: 13px 22px; border-radius: 5px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn__mark { font-family: var(--f-mono); transition: transform .2s ease; }
.btn--primary { background: var(--validated); color: #fff; box-shadow: 0 1px 0 rgba(15,24,21,.06); }
.btn--primary:hover { background: #175f4b; transform: translateY(-1px); }
.btn--primary:hover .btn__mark { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--ghost:hover .btn__mark { transform: translate(2px,-2px); }
.btn--lg { padding: 15px 26px; font-size: 16px; }

/* ---------- Specimen (Signatur) ---------- */
.specimen {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 22px;
  box-shadow: 0 24px 48px -32px rgba(15,24,21,.35), 0 2px 0 var(--line-soft);
  position: relative;
}
.specimen::before {
  content: "SPEZIFIKATIONS-ELEMENT"; position: absolute; top: -9px; left: 20px;
  background: var(--card); padding: 0 8px;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--stone);
}
.specimen__head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.specimen__id { font-family: var(--f-mono); font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: 0.02em; }
.specimen__typ { font-size: 14px; color: var(--ink-2); flex: 1; }

.specimen__params { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 5px; overflow: hidden; margin: 16px 0; }
.param { background: var(--card); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.param__k { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone); }
.param__v { font-family: var(--f-mono); font-weight: 600; font-size: 17px; color: var(--ink); }
.param__v em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--stone); }

.specimen__trace { padding: 4px 0 2px; }
.trace__label { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--stone); display: block; margin-bottom: 10px; }
.trace__chain { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.node {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  padding: 5px 9px; border-radius: 4px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-2); white-space: nowrap;
  opacity: .35; transform: translateY(2px);
  transition: opacity .4s ease, transform .4s ease, border-color .4s ease, color .4s ease, background .4s ease;
}
.node--risk.is-on { border-color: rgba(178,58,46,.4); color: var(--critical); background: rgba(178,58,46,.06); }
.node--test.is-on { border-color: rgba(27,110,87,.45); color: var(--validated); background: rgba(27,110,87,.08); }
.node.is-on { opacity: 1; transform: translateY(0); }
.conn { width: 16px; height: 1px; background: var(--line); flex-shrink: 0; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.conn.is-on { transform: scaleX(1); background: var(--validated-2); }

.specimen__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-family: var(--f-mono); font-size: 10.5px; color: var(--stone); }

/* ---------- Sektions-Rahmen ---------- */
.section { padding-block: var(--sect-y); border-top: 1px solid var(--line); }

/* PROBLEM */
.problem__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 72px); }
.problem__head .h2 { max-width: 15ch; }
.problem__body p { font-size: clamp(16px,1.5vw,18px); color: var(--ink-2); margin-bottom: 22px; }
.tick { list-style: none; display: grid; gap: 12px; }
.tick li { position: relative; padding-left: 26px; color: var(--ink); font-size: 15.5px; }
.tick li::before {
  content: "—"; position: absolute; left: 0; top: 0; color: var(--critical);
  font-family: var(--f-mono); font-weight: 600;
}

/* LEBENSZYKLUS */
.lifecycle__head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 40ch; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }
.step { background: var(--paper); padding: 26px 22px 30px; display: flex; flex-direction: column; gap: 12px; transition: background .25s ease; }
.step:hover { background: var(--card); }
.step__no { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--validated); letter-spacing: 0.04em; }
.step__t { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.step__d { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* TOOL (dunkle Sektion — der eine Kontrastblock) */
.tool { background: var(--ink); border-top-color: var(--ink); color: var(--paper); }
.tool .eyebrow { color: var(--validated-2); }
.tool__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.tool__lede { color: #B7C2BC; font-size: clamp(15.5px,1.4vw,17px); margin: 20px 0 28px; max-width: 42ch; }
.tool__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fcard { background: #16211D; border: 1px solid #26332E; border-radius: 8px; padding: 20px; transition: border-color .25s ease, transform .25s ease; }
.fcard:hover { border-color: var(--validated-2); transform: translateY(-2px); }
.fcard__tag { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--validated-2); }
.fcard__t { font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--paper); margin: 12px 0 8px; letter-spacing: -0.01em; }
.fcard__d { font-size: 13.5px; color: #9DAAA3; line-height: 1.55; }

/* VERTRAUEN */
.trust__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.trust__item { background: var(--paper); padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.trust__k { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--validated); letter-spacing: -0.01em; }
.trust__d { font-size: 13.5px; color: var(--ink-2); }

/* CTA */
.cta-band { text-align: center; }
.cta-band__inner { max-width: 640px; margin-inline: auto; }
.cta-band__t { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px,3.4vw,38px); letter-spacing: -0.02em; line-height: 1.14; }
.cta-band__d { color: var(--ink-2); font-size: 16.5px; margin: 18px auto 30px; max-width: 52ch; }

/* FOOTER */
.doc-foot { border-top: 1px solid var(--line); }
.doc-foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; font-family: var(--f-mono); font-size: 11px; color: var(--stone); letter-spacing: 0.03em; flex-wrap: wrap; }
.doc-foot__brand { color: var(--ink); font-weight: 600; letter-spacing: 0.12em; }

/* ---------- WIRKUNG (Kennzahlen) ---------- */
.wirkung__head { max-width: 34ch; margin-bottom: clamp(32px, 5vw, 52px); }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.metric { background: var(--paper); padding: 32px 26px 30px; display: flex; flex-direction: column; gap: 10px; }
.metric__num {
  font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: clamp(44px, 6vw, 68px); line-height: 0.95; letter-spacing: -0.03em;
  color: var(--validated); font-feature-settings: "tnum";
}
.metric__k { font-family: var(--f-display); font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.metric__d { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.wirkung__fuss { margin-top: 20px; font-family: var(--f-mono); font-size: 12px; color: var(--stone); }

/* ---------- VERGLEICH (vorher / nachher) ---------- */
.vergleich__head { max-width: 42ch; margin-bottom: clamp(32px, 5vw, 52px); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.vs__col { border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px 28px; background: var(--card); }
.vs__col--vorher { background: var(--paper-2); }
.vs__col--nachher { border-color: rgba(27,110,87,.32); box-shadow: 0 20px 44px -34px rgba(27,110,87,.5); }
.vs__tag { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; display: inline-block; margin-bottom: 18px; }
.vs__col--vorher .vs__tag { color: var(--stone); }
.vs__col--nachher .vs__tag { color: var(--validated); }
.vs__list { list-style: none; display: grid; gap: 13px; }
.vs__list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink); line-height: 1.45; }
.vs__col--vorher .vs__list li { color: var(--ink-2); }
.vs__list li::before { position: absolute; left: 0; top: 0; font-family: var(--f-mono); font-weight: 600; }
.vs__col--vorher .vs__list li::before { content: "×"; color: var(--critical); }
.vs__col--nachher .vs__list li::before { content: "✓"; color: var(--validated); }
.vs__time { margin-top: 6px; padding-top: 14px !important; border-top: 1px solid var(--line-soft); font-family: var(--f-mono); font-weight: 600; letter-spacing: 0.02em; }
.vs__col--vorher .vs__time { color: var(--stone); }
.vs__col--nachher .vs__time { color: var(--validated); }
.vs__time::before { top: 14px !important; }

/* ---------- LEBENSZYKLUS-SPINE (scroll-progress) ---------- */
.spine { position: relative; }
.spine__track { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.spine__fill { display: block; height: 100%; width: 0; background: var(--validated); transition: width .15s linear; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-top: none; border-radius: 0 0 8px 8px; overflow: hidden; background: var(--line); margin-top: 3px; }
.step { background: var(--paper); padding: 26px 22px 30px; display: flex; flex-direction: column; gap: 12px; transition: background .3s ease; position: relative; }
.step::before { content: ""; position: absolute; top: -3px; left: 0; width: 0; height: 3px; background: var(--validated-2); transition: width .4s ease; }
.step.is-active { background: var(--card); }
.step.is-active::before { width: 100%; }
.step__no { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--stone); letter-spacing: 0.04em; transition: color .3s ease; }
.step.is-active .step__no { color: var(--validated); }
.step__t { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.step__d { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ---------- COMPLIANCE ---------- */
.compliance__head { max-width: 38ch; margin-bottom: clamp(32px, 5vw, 52px); }
.cgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ccard { background: var(--paper); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; transition: background .25s ease; }
.ccard:hover { background: var(--card); }
.ccard__k { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--validated); letter-spacing: -0.01em; }
.ccard__d { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .doc-control__mid { display: block; flex: 1; text-align: center; }
  .metrics { grid-template-columns: 1fr; }
  .cgrid { grid-template-columns: repeat(2,1fr); }
  /* Spine bricht auf 2 Spalten — Fortschrittsleiste ausblenden, Karten aktivieren sich per Reveal */
  .spine__track { display: none; }
  .steps { grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--line); border-radius: 8px; margin-top: 0; }
  .step::before { display: none; }
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .specimen { max-width: 460px; }
  .problem__grid, .tool__grid { grid-template-columns: 1fr; }
  .tool__cards { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .doc-control__mid { display: none; }
  .doc-control__inner { font-size: 10px; }
  .steps { grid-template-columns: 1fr; }
  .cgrid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(30px, 9vw, 44px); }
  .btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
