/* =========================================================
   NordForm — Projektseite MachineDealerERP (machinedealer-erp.html)
   Lädt nach style.css und project.css (Grundbausteine .pj-*); der Vergleich hat eigenen Stil (erp-fragen.css).
   Präfixe: .erp-* (Seite), .wf-* (Workflow-Darstellung, Verhalten in erp-seite.js).
   Bewegung nur über transform und opacity, einmalig oder an Bedienung gebunden; prefers-reduced-motion beachtet.
   Kleinste Schrift 13 px (0.8125rem), Bedienelemente mindestens 44 px hoch.
   ========================================================= */

body.pj--erp {
  --erp-ink: #d3dfe7;                      /* Linien der Zeichnungen */
  --erp-line: rgba(211,223,231,0.42);      /* gestrichelte Verbindungen */
  --erp-panel: #0c1922;                    /* Arbeitsfläche */
  --erp-node: #11222d;                     /* Bausteine */
  --erp-go: #a6cf8c;                       /* Aktion / Ja-Weg */
  --erp-cond: #e3ebf0;                     /* Bedingung */
  --erp-dot: radial-gradient(rgba(255,255,255,0.075) 1px, transparent 1.4px);
}

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eyebrow--erp { color: var(--pj-accent); font-size: 0.8125rem; }
.erp-hero .category-marker__label, .pj--erp .pj-caption { font-size: 0.8125rem; }
/* Zielgrößen ≥ 44 px auch für Kopf- und Fußverweise (nur diese Seite) */
.pj--erp .logo, .pj--erp .nav-desktop a, .pj--erp .pj-back,
.pj--erp .pj-legal-strip a, .pj--erp .site-footer__bottom a { min-height: 44px; display: inline-flex; align-items: center; }
.erp-head { max-width: 720px; }
.erp-head .section-head__sub { max-width: 58ch; }

/* ---------- Einstieg ---------- */
@media (min-width: 901px) { .erp-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pj-hero h1.erp-hero__title { font-size: clamp(2.25rem, 3.9vw, 3.7rem); line-height: 1.04; max-width: 17ch; }
.erp-hero .pj-hero__lead { max-width: 54ch; }
.erp-hero__stage { position: relative; width: 100%; max-width: 620px; justify-self: end; }
.erp-hero__stage::before {
  content: ""; position: absolute; inset: 6% -8% 2%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--pj-glow), transparent);
}

.erp-yard {
  position: relative; color: var(--erp-ink);
  border: 1px solid var(--c-border); border-radius: 24px; overflow: hidden;
  background: var(--erp-dot) 0 0 / 22px 22px, linear-gradient(170deg, #10222e 0%, #0b1720 100%);
  box-shadow: 0 50px 90px -50px rgba(0,0,0,0.7);
}
.erp-yard__draw { display: block; width: 100%; height: auto; }
.erp-yard__draw * { vector-effect: non-scaling-stroke; stroke-width: 1.4px; }
.erp-yard__draw .k { fill: #0e1d27; }
.erp-yard__ground { stroke: var(--erp-ink); }
.erp-yard__ticks { stroke: var(--erp-line); }
.erp-yard__m--lader { opacity: 0.78; }
.erp-yard__lead { stroke: var(--pj-accent); stroke-dasharray: 3 4; }
.erp-yard__draw .erp-yard__pin { fill: var(--pj-accent); stroke: none; }

.erp-akte {
  position: absolute; top: 4.5%; right: 3.5%; width: 52%;
  padding: 0.85rem 1rem 0.7rem; border-radius: 14px;
  background: rgba(16,33,44,0.94); border: 1px solid rgba(247,165,3,0.38);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.8);
  font-size: 0.8125rem; line-height: 1.35; color: var(--c-text-dim);
}
.erp-akte__bar { display: flex; justify-content: space-between; gap: 0.5rem; padding-bottom: 0.45rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--c-border); }
.erp-akte__bar b { font-weight: 600; color: var(--c-text); }
.erp-akte__bar span { color: var(--pj-accent); }
.erp-akte__name { font-family: var(--font-display); font-size: 1.06rem; color: var(--c-text); letter-spacing: -0.01em; }
.erp-akte__meta { display: flex; flex-wrap: wrap; gap: 0 0.8rem; margin: 0.15rem 0 0.55rem; }
.erp-akte__log { list-style: none; display: grid; gap: 0.32rem; }
.erp-akte__log li { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: 0.4rem; align-items: baseline; }
.erp-akte__k { position: relative; padding-left: 0.85rem; font-weight: 600; color: var(--c-text); }
.erp-akte__k::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 6px; height: 6px; border-radius: 50%; background: var(--pj-accent); }
.erp-akte__log li + li .erp-akte__k::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--erp-line); }

/* ---------- Aus der Praxis ---------- */
/* Abschnittsabstände straffen: Grundwert aus style.css (bis 9rem oben und unten) ergab rund 290 px Leerfläche
   zwischen zwei Abschnitten. :where hält die Spezifität niedrig, Einzelregeln unten gehen weiter vor. */
:where(.pj--erp main) > section { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.erp-praxis { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
/* Breit: Überschrift | Einstieg, darunter Foto | Fragen. Schmal: Überschrift, Foto, Einstieg, Fragen. */
.erp-praxis__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head lead" "foto qa";
  column-gap: clamp(2rem, 6vw, 6rem); row-gap: clamp(2rem, 3.5vw, 3rem); align-items: start;
}
.erp-praxis__head { grid-area: head; }
.erp-praxis__head h2 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 14ch; }
.erp-foto { grid-area: foto; position: relative; margin: 0; }
.erp-foto::before { /* warmer Schein hinter dem Bild, verbindet Tageslicht und Petrol */
  content: ""; position: absolute; inset: 8% -4% 14%; z-index: -1; pointer-events: none; /* schmal: innerhalb des Rands */
  background: radial-gradient(closest-side, rgba(247,165,3,0.10), transparent);
}
.erp-foto__rahmen {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 2 / 3; /* Verlauf statt Fläche, falls das Bild nicht lädt */
  background: #1b2a33 linear-gradient(165deg, #2a3d47 0%, #1b2a33 55%, #14212a 100%);
  box-shadow: 0 60px 100px -55px rgba(0,0,0,0.85), 0 0 0 1px rgba(0,0,0,0.35);
}
.erp-foto__rahmen::after { /* feine Kontur über dem Bild */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}
.erp-foto__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.erp-foto__cap { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 1.1rem; padding-left: 0.95rem; border-left: 2px solid var(--pj-accent); line-height: 1.35; }
.erp-foto__cap strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--c-text); }
.erp-foto__cap span { font-size: 0.875rem; color: var(--c-text-dim); }
.erp-praxis__lead { grid-area: lead; align-self: end; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--c-text); max-width: 52ch; }
.erp-qa { grid-area: qa; display: grid; grid-template-columns: minmax(0, 1fr); }
.erp-qa > div { padding: 1.2rem 0 1.3rem; border-top: 1px solid var(--c-border); }
.erp-qa dt { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 0.45rem; }
.erp-qa dt::before { content: "„"; color: var(--pj-accent); }
.erp-qa dt::after { content: "“"; color: var(--pj-accent); }
.erp-qa dd { color: var(--c-text-dim); font-size: 0.95rem; line-height: 1.55; }
@media (min-width: 1000px) {
  .erp-foto { margin-left: calc(-1 * clamp(0rem, 2.2vw, 2rem)); } /* ragt leicht aus dem Raster */
  .erp-foto::before { inset: 8% -10% 14%; }
  .erp-qa { align-self: start; } /* Oberkante der Fragen fluchtet mit der Oberkante des Fotos */
  .erp-qa > div { padding: 1.5rem 0 1.6rem; }
  .erp-qa > div:last-child { border-bottom: 1px solid var(--c-border); }
  .erp-qa dt { font-size: clamp(1.25rem, 1.7vw, 1.45rem); margin-bottom: 0.55rem; }
  .erp-qa dd { font-size: 1rem; max-width: 56ch; }
}

/* ---------- Drei Geschäftsfelder ---------- */
.erp-felder { padding-top: clamp(3rem, 6vw, 5rem); }
.erp-felder__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.erp-feld {
  position: relative; padding: clamp(1.5rem, 2.6vw, 2.2rem);
  border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01) 60%);
}
.erp-feld__no { position: absolute; top: 1.5rem; right: 1.7rem; font-family: var(--font-display); font-size: 0.95rem; color: var(--c-text-faint); }
.erp-feld__icon { width: 44px; height: 44px; color: var(--pj-accent); margin-bottom: 1.4rem; }
.erp-feld h3 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
.erp-feld__sub { margin: 0.35rem 0 1.3rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-faint); }
.erp-feld ul { display: grid; gap: 0.7rem; }
.erp-feld li { position: relative; padding-left: 1.25rem; color: var(--c-text-dim); font-size: 0.95rem; line-height: 1.5; }
.erp-feld li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.6rem; height: 2px; background: var(--pj-accent); opacity: 0.8; }

.erp-dazu { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem 2rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); padding-top: 1.4rem; border-top: 1px solid var(--c-border); }
.erp-dazu__k { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-faint); padding-top: 0.15rem; }
.erp-dazu ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; }
.erp-dazu li { color: var(--c-text-dim); font-size: 0.95rem; }
.erp-dazu li:last-child { flex-basis: 100%; }

/* ---------- Workflows ---------- */
.erp-wf { background: linear-gradient(180deg, transparent, rgba(6,14,20,0.55) 12%, rgba(6,14,20,0.55) 88%, transparent); }
.erp-wf__intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.6rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.erp-wf__head h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 13ch; }
.erp-wf__lead > p:first-child { color: var(--c-text-dim); font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.6; max-width: 54ch; }
.erp-formel { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.5rem; margin-top: 1.5rem; font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--c-text); }
.erp-formel__w { font-style: italic; color: var(--c-text-dim); }
.erp-chip { display: inline-flex; align-items: center; padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid currentColor; font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; }
.erp-formel__g { display: inline-flex; align-items: center; gap: 0.1rem; }
.erp-chip--t { color: var(--pj-accent); }
.erp-chip--c { color: var(--erp-cond); }
.erp-chip--a { color: var(--erp-go); }

/* Reiter (nur mit JS sichtbar) */
.wf__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.wf__tabs[hidden] { display: none; }
.wf__tabs [role="tab"] {
  position: relative; min-height: 56px; padding: 0.7rem 1rem 0.8rem; text-align: left;
  border-radius: 14px; border: 1px solid var(--c-border); background: rgba(255,255,255,0.025);
  font-weight: 600; font-size: 1rem; line-height: 1.25; color: var(--c-text-dim);
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.wf__tab-k { display: block; margin-bottom: 0.15rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-faint); }
.wf__tabs [role="tab"]:hover { color: var(--c-text); border-color: var(--c-border-strong); }
.wf__tabs [aria-selected="true"] { color: var(--c-text); border-color: rgba(247,165,3,0.55); background: rgba(247,165,3,0.08); }
.wf__tabs [aria-selected="true"] .wf__tab-k { color: var(--pj-accent); }

/* Beispiel = Arbeitsfläche */
.wf-ex {
  position: relative; padding: clamp(1.2rem, 3vw, 2.4rem);
  border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  background: var(--erp-dot) 0 0 / 22px 22px, var(--erp-panel);
}
.wf-ex + .wf-ex { margin-top: 1.4rem; }
.wf--js .wf-ex + .wf-ex { margin-top: 0; }
.wf-ex[hidden] { display: none; }
.wf-ex__head h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; }
.wf-ex__field { display: block; margin-bottom: 0.35rem; font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pj-accent); }
.wf-ex__head p { margin-top: 0.6rem; color: var(--c-text-dim); font-size: 0.95rem; line-height: 1.55; max-width: 72ch; }
.wf-board { margin-top: clamp(1.4rem, 3vw, 2.2rem); }

/* Bausteine */
.wf-flow, .wf-steps { list-style: none; }
.wf-n {
  position: relative; display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0.85rem 1rem 0.9rem; border-radius: 14px;
  background: var(--erp-node); border: 1px solid rgba(255,255,255,0.12);
  transition: opacity 0.35s var(--ease-out);
}
.wf-n::after { /* Lichtrand beim Probelauf (nur opacity) */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1.5px var(--wf-c, var(--erp-go)), 0 0 24px -4px var(--wf-c, var(--erp-go));
}
.wf-n__k { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wf-c, var(--erp-go)); }
.wf-n__k svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.wf-n__t { font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--c-text); }
.wf-n__m { font-size: 0.875rem; color: var(--c-text-dim); }
.wf-n--t { --wf-c: var(--pj-accent); border-color: rgba(247,165,3,0.42); }
.wf-n--c { --wf-c: var(--erp-cond); }
.wf-n--none { border-style: dashed; background: transparent; }
.wf-n--none .wf-n__t { color: var(--c-text-dim); }
.wf-ph { display: inline-block; padding: 0 0.4em; border-radius: 6px; background: rgba(247,165,3,0.14); color: #ffd27a; font-weight: 500; }

/* Verbindungen: gestrichelte Linie (::before) + Impuls (::after, nur transform/opacity) */
.wf-c { position: relative; }
.wf-c i { position: absolute; overflow: hidden; }
.wf-c i::before { content: ""; position: absolute; border: 0 dashed var(--erp-line); }
.wf-c i::after { content: ""; position: absolute; opacity: 0; }

.wf-path__k { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--erp-go); }
.wf-path--nein .wf-path__k { color: var(--c-text-dim); }
.wf-end { padding: 0.75rem 1rem; border: 1px dashed var(--erp-line); border-radius: 14px; color: var(--c-text-dim); font-size: 0.95rem; }

/* Weg, den der Probelauf nimmt: der andere Weg tritt zurück (CSS :has, ohne JS; JS setzt zusätzlich data-try) */
.wf-path { transition: opacity 0.35s var(--ease-out); }
.wf-path--nein { opacity: 0.72; }
.wf-path--nein .wf-n { border-style: dashed; }
.wf-ex:has(input[value="nein"]:checked) .wf-path--ja, .wf-ex[data-try="nein"] .wf-path--ja { opacity: 0.72; }
.wf-ex:has(input[value="nein"]:checked) .wf-path--ja .wf-n, .wf-ex[data-try="nein"] .wf-path--ja .wf-n { border-style: dashed; }
.wf-ex:has(input[value="nein"]:checked) .wf-path--nein, .wf-ex[data-try="nein"] .wf-path--nein { opacity: 1; }
.wf-ex:has(input[value="nein"]:checked) .wf-path--nein .wf-n, .wf-ex[data-try="nein"] .wf-path--nein .wf-n { border-style: solid; }

/* Probelauf-Schalter und Ergebnis */
.wf-try { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: clamp(1.4rem, 3vw, 2rem); padding: 0; border: 0; min-width: 0; }
.wf-try[hidden] { display: none; }
.wf-try legend { float: left; margin-right: 0.6rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-faint); }
.wf-try label { position: relative; display: inline-flex; cursor: pointer; }
.wf-try input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wf-try label span {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.55rem 1rem;
  border: 1px solid var(--c-border-strong); border-radius: 999px; font-size: 0.92rem; font-weight: 600; color: var(--c-text-dim);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.wf-try label span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.wf-try input:checked + span { color: var(--c-text); border-color: var(--erp-cond); background: rgba(255,255,255,0.06); }
.wf-try input:checked + span::before { background: var(--erp-go); box-shadow: none; }
.wf-try input:focus-visible + span { outline: 2px solid var(--pj-accent); outline-offset: 3px; }
.wf-try label:hover span { color: var(--c-text); }
.wf-play {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.55rem 1.1rem 0.55rem 0.9rem; margin-left: auto;
  border-radius: 999px; background: var(--pj-accent); color: var(--pj-on-accent); font-weight: 600; font-size: 0.92rem;
  transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.wf-play[hidden] { display: none; }
.wf-play svg { width: 16px; height: 16px; fill: currentColor; }
.wf-play:hover { background: var(--pj-accent-hi); }
.wf-try--solo .wf-play { margin-left: 0; }
.wf-out { margin-top: 1rem; padding: 0.8rem 1rem; border-left: 2px solid var(--erp-go); background: rgba(166,207,140,0.06); border-radius: 0 10px 10px 0; color: var(--c-text-dim); font-size: 0.95rem; line-height: 1.5; }
.wf-out b { color: var(--c-text); font-weight: 600; }
.wf-out__nein { display: none; }
.wf-ex:has(input[value="nein"]:checked) .wf-out__ja, .wf-ex[data-try="nein"] .wf-out__ja { display: none; }
.wf-ex:has(input[value="nein"]:checked) .wf-out__nein, .wf-ex[data-try="nein"] .wf-out__nein { display: inline; }
.wf__note { margin-top: 1rem; font-size: 0.875rem; color: var(--c-text-faint); max-width: 80ch; }

/* --- Breit: Ablauf von links nach rechts --- */
@media (min-width: 1100px) {
  .wf-flow { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) 52px minmax(0, 2.4fr); align-items: center; }
  .wf-flow > .wf-c, .wf-steps > .wf-c { align-self: stretch; }
  .wf-c i { left: 0; right: 0; top: calc(50% - 5px); height: 10px; }
  .wf-c i::before { left: 0; right: 4px; top: 4px; border-top-width: 1.5px; }
  .wf-c i::after { inset: 0; background: radial-gradient(circle at 5px 50%, var(--pj-accent) 3.6px, transparent 4.6px); transform: translateX(-12px); }
  /* Pfeilspitze */
  .wf-c::after { content: ""; position: absolute; right: 1px; top: calc(50% - 3.5px); width: 7px; height: 7px; border-top: 1.5px solid var(--erp-line); border-right: 1.5px solid var(--erp-line); transform: rotate(45deg); }

  .wf-br { position: relative; display: grid; gap: 22px; }
  .wf-path { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; }
  .wf-path--solo { grid-template-columns: minmax(0, 1fr); }
  .wf-path__k { grid-column: 1; grid-row: 1; align-self: center; transform: translateY(-0.95rem); padding-left: 12px; }
  .wf-path > .wf-steps, .wf-path > .wf-end { grid-column: 2; grid-row: 1; }
  .wf-path--solo > .wf-steps { grid-column: 1; }
  /* Gabel: Stummel je Weg + senkrechte Schiene links (Treffpunkt in der Mitte der Lücke) */
  .wf-path:not(.wf-path--solo)::before { content: ""; position: absolute; left: 0; width: 48px; top: 50%; border-top: 1.5px dashed var(--erp-line); }
  .wf-path:not(.wf-path--solo)::after { content: ""; position: absolute; left: 0; border-left: 1.5px dashed var(--erp-line); }
  .wf-path:first-child:not(.wf-path--solo)::after { top: 50%; bottom: -11px; }
  .wf-path:last-child:not(.wf-path--solo)::after { top: -11px; bottom: 50%; }
  .wf-steps { display: flex; align-items: stretch; }
  .wf-steps > .wf-n { flex: 1 1 0; min-width: 0; }
  .wf-steps > .wf-c { flex: 0 0 44px; }
}

/* --- Schmal: Ablauf von oben nach unten an einer Schiene --- */
@media (max-width: 1099px) {
  .wf-flow { --rail: 22px; }
  .wf-c { height: 34px; }
  .wf-c i { top: 0; bottom: 0; left: calc(var(--rail) - 5px); width: 10px; }
  .wf-c i::before { top: 0; bottom: 3px; left: 4px; border-left-width: 1.5px; }
  .wf-c i::after { inset: 0; background: radial-gradient(circle at 50% 5px, var(--pj-accent) 3.6px, transparent 4.6px); transform: translateY(-12px); }
  .wf-c::after { content: ""; position: absolute; left: calc(var(--rail) - 3px); bottom: 2px; width: 7px; height: 7px; border-right: 1.5px solid var(--erp-line); border-bottom: 1.5px solid var(--erp-line); transform: rotate(45deg); }
  .wf-br { display: grid; gap: 1rem; }
  .wf-path { position: relative; margin-left: var(--rail); padding-left: 1.1rem; border-left: 1.5px dashed var(--erp-line); }
  .wf-path--solo { margin-left: 0; padding-left: 0; border-left: 0; }
  .wf-path__k { display: block; margin-bottom: 0.5rem; padding-top: 0.2rem; }
  .wf-steps .wf-c { --rail: 22px; }
}

/* Probelauf: Lichtrand und Impuls (JS setzt .is-hit/.is-flow; ohne Bewegung nur der Endzustand) */
@media (prefers-reduced-motion: no-preference) {
  .wf-n.is-hit::after { animation: wfHit 1.1s var(--ease-out) both; }
  .wf-c.is-flow i::after { animation: wfFlowX 0.42s cubic-bezier(0.4, 0, 0.6, 1) both; }
  .wf-ex.is-enter .wf-n, .wf-ex.is-enter .wf-c, .wf-ex.is-enter .wf-end { animation: wfIn 0.5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms); }
  .erp-akte { animation: erpCard 0.9s var(--ease-out) 0.35s both; }
  .erp-yard__pin { transform-box: fill-box; transform-origin: center; animation: erpPin 2.2s var(--ease-out) 1s 3; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 1099px) {
  .wf-c.is-flow i::after { animation-name: wfFlowY; }
}
@keyframes wfHit { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0.55; } }
@keyframes wfFlowX { 0% { opacity: 1; transform: translateX(-12px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(100%); } }
@keyframes wfFlowY { 0% { opacity: 1; transform: translateY(-12px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(100%); } }
@keyframes wfIn { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
@keyframes erpCard { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
@keyframes erpPin { 0% { transform: scale(1); } 30% { transform: scale(1.7); opacity: 0.6; } 60%, 100% { transform: scale(1); opacity: 1; } }
.wf-ex.is-done .wf-n.is-hit::after { opacity: 0.55; }

/* Bausteine, „intelligent“, Nutzen */
.erp-wf__more { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.6rem, 5vw, 4.5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.erp-wf__more h3, .erp-gewinn h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 1.2rem; }
.erp-bausteine ul { display: grid; gap: 0; }
.erp-bs { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 0.3rem 1.2rem; padding: 0.9rem 0; border-top: 1px solid var(--c-border); }
.erp-bs b { position: relative; padding-left: 1.4rem; font-weight: 600; color: var(--c-text); }
.erp-bs b::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 0.7rem; height: 0.7rem; border-radius: 3px; border: 1.5px solid var(--bs, var(--erp-go)); }
.erp-bs--t { --bs: var(--pj-accent); }
.erp-bs--c { --bs: var(--erp-cond); }
.erp-bs--c b::before { transform: rotate(45deg) scale(0.9); border-radius: 1px; }
.erp-bs span { color: var(--c-text-dim); font-size: 0.95rem; line-height: 1.55; }
.erp-bausteine__fine, .erp-gewinn__fine { margin-top: 1rem; font-size: 0.875rem; color: var(--c-text-faint); max-width: 70ch; }
.erp-gewinn__cta { margin-top: 1.6rem; }
.erp-klug { padding: clamp(1.4rem, 2.8vw, 2rem); border-radius: var(--radius-lg); border: 1px solid rgba(247,165,3,0.3); background: linear-gradient(160deg, rgba(247,165,3,0.08), rgba(255,255,255,0.01)); align-self: start; }
.erp-klug p { color: var(--c-text-dim); font-size: 0.98rem; line-height: 1.6; }
.erp-klug p + p { margin-top: 0.9rem; color: var(--c-text); }

.erp-gewinn { margin-top: clamp(3rem, 6vw, 4.5rem); }
.erp-gewinn ol { list-style: none; counter-reset: g; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem clamp(1.2rem, 2.4vw, 2rem); }
.erp-gewinn li { counter-increment: g; display: flex; flex-direction: column; gap: 0.45rem; padding-top: 1rem; border-top: 1px solid var(--c-border-strong); }
.erp-gewinn li::before { content: counter(g, decimal-leading-zero); font-family: var(--font-display); font-size: 0.95rem; color: var(--pj-accent); }
.erp-gewinn b { font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--c-text); }
.erp-gewinn li > span { color: var(--c-text-dim); font-size: 0.95rem; line-height: 1.55; }

/* ---------- Betrieb ---------- */
.erp-betrieb { padding-bottom: clamp(2rem, 4vw, 3rem); }
.erp-welten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.erp-welt { padding: clamp(1.3rem, 2.6vw, 1.9rem); border-radius: var(--radius-md); border: 1px solid var(--c-border); border-top: 3px solid var(--w); background: rgba(255,255,255,0.025); }
.erp-welt--s { --w: var(--c-web); }
.erp-welt--o { --w: var(--c-warm); }
.erp-welt__k { margin-bottom: 0.4rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w); }
.erp-welt p:last-child { font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.35; color: var(--c-text); }
.erp-betrieb__back { margin-top: 2rem; }
.erp-betrieb__back .link-arrow { min-height: 44px; }
#vergleich { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .erp-felder__grid { grid-template-columns: minmax(0, 1fr); }
  .erp-feld { display: grid; grid-template-columns: 15rem minmax(0, 1fr); column-gap: 2rem; }
  .erp-feld__icon, .erp-feld h3, .erp-feld__sub { grid-column: 1; }
  .erp-feld ul { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
  .erp-gewinn ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .erp-wf__intro, .erp-wf__more, .erp-praxis__grid { grid-template-columns: minmax(0, 1fr); }
  .erp-praxis__grid { grid-template-areas: "head" "foto" "lead" "qa"; }
  .erp-praxis__head h2 { max-width: 20ch; }
  /* Foto nimmt die Spaltenbreite ein, aber höchstens etwa 70 % der Bildschirmhöhe */
  .erp-foto { width: 100%; max-width: calc(70vh * 2 / 3); }
  @supports (height: 1svh) { .erp-foto { max-width: calc(70svh * 2 / 3); } }
  .erp-qa { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.2rem; }
}
@media (min-width: 721px) and (max-width: 999px) {
  /* Tablet: Einstieg neben dem Foto, damit rechts keine leere Fläche bleibt */
  .erp-praxis__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "head head" "foto lead" "qa qa"; }
  .erp-praxis__lead { align-self: center; }
}
@media (max-width: 900px) {
  .erp-hero__stage { justify-self: stretch; max-width: 620px; }
}
@media (max-width: 720px) {
  .erp-qa { grid-template-columns: minmax(0, 1fr); }
  .erp-feld { display: block; }
  .erp-dazu { grid-template-columns: minmax(0, 1fr); }
  .erp-dazu ul { display: grid; gap: 0.5rem; }
  .erp-bs { grid-template-columns: minmax(0, 1fr); }
  .erp-welten { grid-template-columns: minmax(0, 1fr); }
  .wf__tabs [role="tab"] { padding: 0.6rem 0.7rem 0.7rem; font-size: 0.92rem; }
}
@media (max-width: 640px) {
  /* Akte unter die Zeichnung, Bezugslinie entfällt */
  .erp-akte { position: relative; top: auto; right: auto; width: auto; margin: 0.2rem 0.8rem 0.9rem; }
  .erp-yard__lead, .erp-yard__draw .erp-yard__pin { display: none; }
  .erp-yard__draw { margin-top: -32%; } /* leeren Himmel über den Maschinen abschneiden */
  .erp-gewinn ol { grid-template-columns: minmax(0, 1fr); }
  .wf-play { margin-left: 0; }
}
@media (max-width: 480px) {
  .pj-hero h1.erp-hero__title { font-size: clamp(1.9rem, 9.4vw, 2.4rem); }
  .wf__tabs { gap: 0.35rem; }
  .wf__tabs [role="tab"] { font-size: 0.875rem; padding: 0.55rem 0.55rem 0.6rem; border-radius: 12px; }
  .wf__tab-k { font-size: 0.8125rem; letter-spacing: 0.04em; }
  .wf-ex { padding: 1.1rem 0.9rem 1.2rem; border-radius: 20px; }
  .wf-try legend { float: none; width: 100%; margin-bottom: 0.1rem; }
  .erp-akte__log li { grid-template-columns: 5.2rem minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .wf-n, .wf-path, .wf-try label span { transition: none; }
}
@media (forced-colors: active) {
  .wf-n__k, .wf-path__k { forced-color-adjust: auto; }
  .wf-c i::after { display: none; }
}
@media print {
  .wf__tabs, .wf-play { display: none !important; }
  .wf-ex[hidden] { display: block !important; }
  .wf-ex + .wf-ex { margin-top: 1.4rem !important; }
  .erp-feld, .wf-ex, .erp-klug, .erp-gewinn li, .erp-welt { break-inside: avoid; }
}
