/* ============================================================================
   hochzwei.tech 2026 Rebrand: Power Platform prototype B "Innovation Factory"
   Depends on core.css (tokens, primitives, compare, pillars, faq band) and
   index.css (hero, stats count-up, word-marquee). This file only adds the
   page-own sections: hero workshop teaser, the five-station factory line, the
   workshop phases, the two build ways, the case block, managed + closing CTA.
   No em-dashes or en-dashes anywhere (brand rule), comments included.
   ========================================================================== */

/* HERO: workshop teaser card (the one filled featured card in the hero) ===== */
.pp-hero__aside { align-self: stretch; display: flex; }
.ws-teaser {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--c-brand);
  color: var(--c-brand-ink);
  box-shadow: var(--shadow-pop);
}
.ws-teaser__eyebrow { color: var(--c-brand-ink); opacity: 0.85; }
.ws-teaser__title { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; }
.ws-teaser__sub { font-size: var(--fs-body); opacity: 0.92; }
.ws-teaser__list { display: grid; gap: var(--space-2); }
.ws-teaser__list li { position: relative; padding-left: 1.3em; font-size: var(--fs-body); opacity: 0.95; }
.ws-teaser__list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.5em; height: 0.5em; background: var(--c-accent); border-radius: 2px;
}
.ws-teaser .btn { align-self: flex-start; margin-top: var(--space-2); --btn-bg: var(--c-accent); --btn-fg: var(--c-accent-ink); border-color: transparent; }

/* OUTCOME: reuse .stats on a blue band; nothing extra needed here. */

/* FACTORY LINE: five stations on a left spine, governance as the base ======= */
.factory__rail {
  position: relative;
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: grid;
  gap: var(--space-5);
}
.factory__rail::before {
  content: "";
  position: absolute;
  left: 21px; top: 16px; bottom: 16px;
  width: 2px;
  background: var(--c-text);
}
.factory__station {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-5);
  align-items: start;
}
/* Standard hochzwei timeline marker (parity with the ueber-uns / handover bar):
   a box on the spine with thick [ ] brackets; the active station grows and shows the "2". */
.factory__marker {
  position: relative;
  z-index: 1;
  justify-self: center;
  margin-top: 3px;
  width: 22px; height: 26px;
  display: grid; place-items: center;
  border-radius: 3px;
  background: var(--c-brand);
  color: var(--c-brand-ink);
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1;
  font-size: 0;
  transition: width var(--transition), height var(--transition), font-size var(--transition);
}
.factory__marker::before,
.factory__marker::after {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px;
  width: 6px;
  border: 3px solid var(--c-brand-ink);
}
.factory__marker::before { left: 3px; border-right: 0; }
.factory__marker::after  { right: 3px; border-left: 0; }
.factory__content { padding-top: 2px; }
.factory__title { font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; }
.factory__body { font-size: var(--fs-body); color: var(--c-text); margin-top: var(--space-2); max-width: 62ch; }
.factory__meta { margin-top: var(--space-3); color: var(--c-text-muted); }
/* The workshop station is the entry point: lime marker with ink brackets. */
.factory__station--key .factory__marker { background: var(--c-accent); color: var(--c-accent-ink); }
.factory__station--key .factory__marker::before,
.factory__station--key .factory__marker::after { border-color: var(--c-accent-ink); }

/* WORKSHOP: three phase cards (the middle one filled = featured) ============ */
.wsphase {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}
.wsphase__idx { color: var(--c-brand); }
.wsphase__title { font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; }
.wsphase__list { display: grid; gap: var(--space-2); margin-top: var(--space-1); }
.wsphase__list li { position: relative; padding-left: 1.2em; font-size: var(--fs-body); color: var(--c-text); }
.wsphase__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.45em; height: 0.45em; background: var(--c-brand); border-radius: 2px;
}
.wsphase__mat {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-body);
  color: var(--c-text-muted);
}
.wsphase__mat b { font-weight: 700; color: var(--c-text); }
.wsphase--feature { background: var(--c-brand); color: var(--c-brand-ink); border-color: transparent; box-shadow: var(--shadow-pop); }
.wsphase--feature .wsphase__idx,
.wsphase--feature .wsphase__title { color: var(--c-brand-ink); }
.wsphase--feature .wsphase__list li { color: var(--c-brand-ink); opacity: 0.95; }
.wsphase--feature .wsphase__list li::before { background: var(--c-accent); }
.wsphase--feature .wsphase__mat { color: var(--c-brand-ink); opacity: 0.9; border-top-color: rgba(255, 255, 255, 0.3); }
.wsphase--feature .wsphase__mat b { color: var(--c-brand-ink); }

/* Workshop meta: participants + outputs, then next steps + CTA ============== */
.ws-meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-7); margin-top: var(--space-7); }
.ws-meta__h { display: block; margin-bottom: var(--space-3); color: var(--c-text-muted); }
.ws-meta__list { display: grid; gap: var(--space-2); }
.ws-meta__list li { position: relative; padding-left: 1.2em; font-size: var(--fs-body); color: var(--c-text); }
.ws-meta__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.45em; height: 0.45em; background: var(--c-brand); border-radius: 2px;
}
.ws-next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--c-border);
}
.ws-next__text { font-size: var(--fs-lead); color: var(--c-text); max-width: 54ch; }
.ws-next__text b { font-weight: 700; }

/* TWO WAYS to the app ====================================================== */
.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.way {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-7);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}
.way__tag { color: var(--c-brand); }
.way__title { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; }
.way__body { font-size: var(--fs-body); color: var(--c-text); }
.ways__note { margin-top: var(--space-5); font-size: var(--fs-lead); color: var(--c-text-muted); max-width: 70ch; }

/* RESPONSIVE =============================================================== */
@media (max-width: 1024px) {
  .ws-meta { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Hero teaser card drops below the copy + CTA on phones. */
  .pp-hero__aside { order: 6; }
  .factory__station { grid-template-columns: 36px 1fr; gap: var(--space-4); }
  .factory__rail::before { left: 17px; }
  .ws-next { flex-direction: column; align-items: flex-start; }
}

/* ============================================================================
   Refinement: scrollspy, decision-template mock, triage, form, proof
   ========================================================================== */

/* FACTORY: scroll-driven active station (JS adds .is-scrollspy) ============= */
.factory.is-scrollspy .factory__station { opacity: 0.4; transition: opacity var(--transition); }
.factory.is-scrollspy .factory__station--key { opacity: 0.62; }
.factory.is-scrollspy .factory__station.is-active { opacity: 1; }
/* Active station: the marker grows and reveals the "2", like the ueber-uns timeline. */
.factory.is-scrollspy .factory__station.is-active .factory__marker { width: 32px; height: 34px; font-size: 16px; }

/* WORKSHOP prep banner (Ideation-Fragebogen as the step before the workshop) */
.ws-prep {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px dashed var(--c-brand);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--c-brand) 6%, transparent);
}
.ws-prep__tag { color: var(--c-brand); white-space: nowrap; }
.ws-prep__text { font-size: var(--fs-body); color: var(--c-text); }
.ws-prep__text b { font-weight: 700; }
.ws-free { display: inline-block; margin-top: var(--space-3); font-size: var(--fs-body); color: var(--c-text-muted); }
.ws-free b { color: var(--c-brand); font-weight: 700; }

/* DECISION TEMPLATE MOCK: cost/value matrix + top-10 ROI list ============== */
.vorlage { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: var(--space-7); align-items: start; }
.vorlage__h { display: block; margin-bottom: var(--space-3); color: var(--c-text-muted); }

/* Cost/value matrix */
.vmatrix {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  overflow: hidden;
}
/* Welle-1 zone: high value, low cost (top-left) */
.vmatrix__zone {
  position: absolute; left: 0; top: 0; width: 50%; height: 50%;
  background: color-mix(in srgb, var(--c-accent) 18%, transparent);
  border-right: 1px dashed var(--c-border); border-bottom: 1px dashed var(--c-border);
}
.vmatrix__zone-label {
  position: absolute; left: var(--space-3); top: var(--space-3);
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue);
}
.vmatrix__axis {
  position: absolute; font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 3px; text-transform: uppercase; color: var(--c-text-muted);
}
.vmatrix__axis--y { top: 50%; left: 8px; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; }
.vmatrix__axis--x { bottom: 8px; right: 12px; }
.vmatrix__dot {
  position: absolute; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-label);
  background: var(--c-brand); color: var(--c-brand-ink);
  border: 2px solid var(--c-surface);
  box-shadow: var(--shadow-card);
}
.vmatrix__dot--w1 { background: var(--c-accent); color: var(--c-accent-ink); }
.vmatrix__dot--w3 { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border); }

/* Top-10 priority list */
.priolist-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.priolist { width: 100%; border-collapse: collapse; min-width: 460px; }
.priolist thead th {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 3px; text-transform: uppercase;
  color: var(--c-text-muted); text-align: left; padding: 0 var(--space-3) var(--space-3); white-space: nowrap;
  border-bottom: 1px solid var(--c-border);
}
.priolist tbody td { padding: var(--space-3); border-bottom: 1px solid var(--c-border-soft); font-size: var(--fs-body); color: var(--c-text); vertical-align: middle; }
.priolist .num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.priolist .rank { font-family: var(--font-mono); color: var(--c-text-muted); }
.priolist .uc { font-weight: 600; }
.priolist tr[data-welle="1"] td { background: color-mix(in srgb, var(--c-accent) 12%, transparent); }
.welle { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 3px; text-transform: uppercase; padding: 0.1em 0.5em; border-radius: 4px; white-space: nowrap; }
.welle--1 { background: var(--c-accent); color: var(--c-accent-ink); }
.welle--2 { background: color-mix(in srgb, var(--c-brand) 16%, transparent); color: var(--c-brand); }
.welle--3 { background: var(--c-surface-2); color: var(--c-text-muted); border: 1px solid var(--c-border); }
.vorlage__caption { margin-top: var(--space-5); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 3px; text-transform: uppercase; color: var(--c-text-muted); }

/* USE-CASE-TRIAGE ========================================================== */
.triage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.triage__qs { display: grid; gap: var(--space-5); }
.triage__q-label { display: block; margin-bottom: var(--space-3); color: var(--c-text); }
.triage__opts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.triage__opt {
  padding: 0.55em 0.95em;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: var(--fs-nav);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.triage__opt:hover { border-color: var(--c-brand); }
.triage__opt[aria-pressed="true"] { background: var(--c-brand); color: var(--c-brand-ink); border-color: var(--c-brand); }

.triage__result {
  position: relative;
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6);
  border: 1.5px solid var(--c-border);
  border-left-width: 4px;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  min-height: 100%;
  transition: border-color var(--transition);
}
.triage__result[data-state="idle"] .triage__ready { display: none; }
.triage__result[data-state="ready"] .triage__idle { display: none; }
.triage__idle { font-size: var(--fs-lead); color: var(--c-text-muted); }
.triage__ready { display: flex; flex-direction: column; gap: var(--space-3); }
.triage__verdict { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; }
.triage__why { font-size: var(--fs-body); color: var(--c-text); }
.triage__cta { align-self: flex-start; margin-top: var(--space-2); }
.triage__result[data-path="self"] { border-left-color: var(--c-accent); }
.triage__result[data-path="together"] { border-left-color: var(--c-brand); }
.triage__result[data-path="hz"] { border-left-color: var(--c-brand); background: color-mix(in srgb, var(--c-brand) 6%, transparent); }

/* WORKSHOP REQUEST FORM ==================================================== */
.wf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.wf__aside { display: flex; flex-direction: column; gap: var(--space-4); }
.wf__free {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--c-brand); color: var(--c-brand-ink);
  box-shadow: var(--shadow-pop);
}
.wf__free h3 { font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-head); }
.wf__free p { font-size: var(--fs-body); opacity: 0.92; margin-top: var(--space-2); }
.wf__points { display: grid; gap: var(--space-2); }
.wf__points li { position: relative; padding-left: 1.3em; font-size: var(--fs-body); color: var(--c-text); }
.wf__points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.5em; height: 0.5em; background: var(--c-brand); border-radius: 2px; }
.wf .form { max-width: none; }
.wf__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-status { font-size: var(--fs-body); margin-top: var(--space-2); }
.form-status[data-state="success"] { color: var(--c-brand); font-weight: 600; }
.form-status[data-state="error"] { color: #E5484D; }
[data-theme="dark"] .form-status[data-state="error"] { color: #FF6369; }
.wf__privacy { font-size: var(--fs-label); color: var(--c-text-muted); line-height: 1.5; }
.wf__privacy a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1024px) {
  /* minmax(0, 1fr) statt 1fr: bare 1fr hat min-content-Minimum, die
     priolist-Tabelle blaest den Track sonst ueber die Viewport-Breite auf
     (priolist-wrap kann dann nicht scrollen). */
  .vorlage, .triage, .wf { grid-template-columns: minmax(0, 1fr); }
  .vmatrix { max-width: 460px; }
}
@media (max-width: 640px) {
  .wf__row { grid-template-columns: 1fr; }
  .priolist .col-opt { display: none; }
}

/* ============================================================================
   Refinement 2: layout fix + factory scroll-progress bar
   ========================================================================== */
/* Governance: top-align the heading next to the taller text column.
   The shared sec-head--beside bottom-aligns (good for short beside-text on the
   home), but here the text column is tall, which dropped the heading down. */
#governance .sec-head--beside { align-items: start; }

/* Power Apps vibe: a three-step flow on the blue band (lime step numbers) ==== */
.vibe-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6) var(--space-7); }
.vibe-flow li { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-5); border-top: 2px solid rgba(255, 255, 255, 0.3); color: var(--c-brand-ink); }
.vibe-flow__n { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-h2); line-height: 1; color: var(--c-accent); }
.vibe-flow__t { font-size: var(--fs-lead); }
@media (max-width: 640px) { .vibe-flow { grid-template-columns: 1fr; gap: var(--space-5); } }

