/* Schroer Digital CI v3 · Seitentyp „E-Invoicing je System“ (/e-invoicing, /e-invoicing/*), 30.11.2026, Umbau Tor 8 (01.12.2026).
   Kopf: Text links auf Navy, rechts (Handy: oben) der gezeichnete Rechnungsfluss in Gold statt einer Bildkopie.
   Übersicht: Systemwähler, Prüfkarten, Zeitstrahl, Strafen als Übersicht; Langtexte in Aufklappern (Text bleibt im HTML).
   Systemseite: Dreiteilung als Karten (liefert / fehlt / wir verbinden), Schrittschiene, Fristen und Quellen aufklappbar.
   Nur Anordnung, alle Werte aus tokens.css. Keine Papierkarte (CI Nachtrag 2 Punkt 3). */

/* ---------- Kopf (Tor 9): Text links, rechts das Routen-Werkzeug auf einem eigenen Grund-Ausschnitt je Seite ----------
   Handy: Bildstreifen mit Route oben (≤ 180 px, CI: am Handy Bildstreifen oben), Chips, dann H1/Knopf/ASP, Statuskasten darunter.
   768–1023: Text, darunter Werkzeug in voller Breite, Statuskasten. Text liegt nie auf dem Bild. */
.svh.ei-hero::before { inset: 0; height: auto; background: radial-gradient(46% 58% at var(--lp, 76% 40%), rgb(var(--lc, 235 199 124) / .13), transparent 74%); }
.ei-hero .svh__text { max-width: none; }
.ei-hero__row { display: grid; gap: var(--s5); align-items: start; min-width: 0;
  grid-template-areas: "tool" "text" "cards"; }
.ei-hero__row > .svh__text { grid-area: text; }
.ei-tool { grid-area: tool; position: relative; isolation: isolate; display: grid; gap: var(--s3); min-width: 0; }
.ei-tool__cards { grid-area: cards; min-width: 0; }
.ei-asp { max-width: 52ch; font-size: var(--fs-small); font-weight: var(--fw-small); line-height: var(--lh-small); color: var(--text); }
.ei-asp strong { font-weight: var(--fw-btn); }
.ei-tool__p[hidden], .ei-tool__c[hidden] { display: none; }

/* Grundbild: Desktop rechts im ganzen Kopf, darunter/daneben Navy; Handy/Tablet hinter Chips und Route */
.ei-hero__bg { position: absolute; z-index: -2; display: block; pointer-events: none; }
.ei-hero__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ei-hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-900) 0, rgb(from var(--navy-900) r g b / .55) 22%, rgb(from var(--navy-900) r g b / .2) 46%, rgb(from var(--navy-900) r g b / .28) 100%),
    linear-gradient(0deg, var(--navy-900) 0, rgb(from var(--navy-900) r g b / 0) 26%), linear-gradient(180deg, var(--navy-900) 0, rgb(from var(--navy-900) r g b / 0) 16%); }

/* Chips: Systemwahl */
.ei-tool__h { font-size: var(--fs-small); font-weight: var(--fw-btn); line-height: var(--lh-small); color: var(--text-soft); }
.ei-tool__chips { display: flex; flex-wrap: wrap; gap: var(--s2); min-width: 0; }
.ei-chip { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); border: 1px solid rgb(from var(--line) r g b / .55);
  border-radius: var(--r-card); background: rgb(from var(--navy-900) r g b / .78); color: var(--text); font-size: var(--fs-small); font-weight: var(--fw-btn);
  line-height: 1.2; white-space: nowrap; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-tap) var(--ease), border-color var(--dur-tap) var(--ease), color var(--dur-tap) var(--ease); }
.ei-chip:hover { border-color: var(--gold); color: var(--gold-hi); }
.ei-chip[aria-selected="true"] { border-color: var(--gold); background: var(--navy-700); color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgb(from var(--gold) r g b / .18); }
.ei-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ei-chip .ei-kind__dot { width: 10px; height: 10px; }

/* Bühne der Route: 200 × 88 Einheiten */
.ei-tool__stage { position: relative; min-width: 0; }
.ei-tool__p { position: relative; aspect-ratio: 200 / 88; }
.ei-r { position: absolute; inset: 0; }
.ei-r__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ei-r__svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.ei-r__ln { stroke: var(--gold); stroke-width: 2.5; }
.ei-r__ln--hi { stroke: var(--gold-hi); stroke-width: 3; }
.ei-r__ln--fat { stroke-width: 5; }
.ei-r__ln--in { stroke: var(--gold); stroke-width: 1.5; opacity: .75; }
.ei-r__ln--bridge { stroke: var(--gold-hi); stroke-width: 3.5; stroke-dasharray: 1 9; }
.ei-r__glow { stroke: var(--gold-hi); stroke-width: 22; opacity: .14; }
.ei-r__tx { stroke: var(--text-soft); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .8; }
.ei-r__tx--wide { stroke-width: 2.5; stroke-dasharray: 7 7; }
.ei-r__brk { stroke: var(--gold-hi); stroke-width: 2.5; }
.ei-r__rec rect { fill: var(--gold-hi); opacity: var(--o, .5); }
.ei-r__l, .ei-r__d, .ei-r__file, .ei-r__sheet { position: absolute; left: calc(var(--x) / 200 * 100%); top: calc(var(--y) / 88 * 100%); }
.ei-r__d { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: var(--r-pill); border: 2px solid var(--gold); background: var(--navy-900); }
.ei-r__d.is-sys { width: 20px; height: 20px; margin: -10px 0 0 -10px; border-color: var(--gold-hi); background: var(--gold-hi);
  box-shadow: 0 0 0 6px rgb(from var(--gold) r g b / .22), 0 0 30px 10px rgb(from var(--gold-hi) r g b / .5); }
.ei-r__d.is-sys.is-open { background: var(--navy-900); border-style: dashed; box-shadow: 0 0 0 6px rgb(from var(--gold) r g b / .12); }
.ei-r__d.is-ring::after { content: ""; position: absolute; inset: -16px; border: 1.5px dashed var(--gold-hi); border-radius: var(--r-pill); }
.ei-r__d.is-key { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--gold-hi); border-color: var(--gold-hi); box-shadow: 0 0 18px 4px rgb(from var(--gold-hi) r g b / .45); }
.ei-r__d.is-asp { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.ei-r__d.is-fta, .ei-r__d.is-end { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.ei-r__file, .ei-r__sheet { width: 26px; height: 32px; margin: -16px 0 0 -13px; border: 2px solid var(--gold-hi); border-radius: var(--r-doc); background: var(--navy-900);
  background-image: linear-gradient(var(--gold) 0 0), linear-gradient(var(--gold) 0 0), linear-gradient(var(--gold) 0 0);
  background-size: 60% 2px, 44% 2px, 52% 2px; background-position: 4px 8px, 4px 14px, 4px 20px; background-repeat: no-repeat; }
.ei-r__file.is-one { width: 32px; height: 40px; margin: -20px 0 0 -16px; box-shadow: 0 0 26px 6px rgb(from var(--gold-hi) r g b / .35); }
.ei-r__sheet { border-color: rgb(from var(--text-soft) r g b / .8); border-width: 1.5px; background-image: linear-gradient(var(--line) 0 0), linear-gradient(var(--line) 0 0), linear-gradient(var(--line) 0 0); }
.ei-r__l { font-size: var(--fs-small); font-weight: var(--fw-btn); line-height: 1.15; color: var(--text); white-space: nowrap;
  text-shadow: 0 0 6px var(--navy-900), 0 0 14px var(--navy-900), 0 1px 2px var(--navy-900); }
.ei-r__l.l--a { transform: translate(-50%, calc(-100% - 12px)); }
.ei-r__l.l--b { transform: translate(-50%, 12px); }
.ei-r__l.l--r { transform: translate(16px, -50%); }
.ei-r__l.l--l { transform: translate(calc(-100% - 14px), -50%); }
.ei-r__l.l--c { transform: translate(-50%, -50%); }
.ei-r__l.l--a.l--start { transform: translate(-10px, calc(-100% - 14px)); }
.ei-r__l.l--b.l--start { transform: translate(-10px, 14px); }
.ei-r__l.l--b.l--end { transform: translate(calc(-100% + 6px), 12px); }
.ei-r__l.l--sys { color: var(--gold-hi); font-size: var(--fs-text); }
.ei-r__l.l--gold { color: var(--gold-hi); }
.ei-r__l.l--soft, .ei-r__l.l--tag { color: var(--text-soft); font-weight: var(--fw-small); }

/* Statuskasten: dunkle Fläche, nie Text auf Bild */
.ei-tool__card { display: grid; gap: var(--s2); padding: var(--s4) var(--s5); border-inline-start: 2px solid var(--gold); border-radius: 0 var(--r-card) var(--r-card) 0;
  background: rgb(from var(--navy-800) r g b / .92); }
.ei-tool__st { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.ei-tool__d { font-size: var(--fs-small); font-weight: var(--fw-small); line-height: var(--lh-small); color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ei-tool__t strong { font-weight: var(--fw-h3); }
.ei-tool__chk { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-soft); }
.ei-tool__chk span { color: var(--text); font-weight: var(--fw-btn); }
.ei-tool__go .sd-link { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 1024px) {
  .ei-hero__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-areas: "text tool" "text cards"; column-gap: var(--s7); row-gap: var(--s4); align-items: center; }
  .ei-hero__row > .svh__text { align-self: center; }
  .ei-tool { position: static; }
  .ei-hero__bg { inset: 0 0 0 auto; width: 60%; }
  .ei-hero .svh__key { font-size: clamp(2.5rem, 1rem + 2.7vw, 3.5rem); }
  .ei-hero .ei-key--long { font-size: clamp(2rem, .9rem + 1.9vw, 2.75rem); }
  .ei-hero .svh__rest { font-size: var(--fs-h3); line-height: var(--lh-h3); }
  .ei-tool__cards { align-self: start; }
  .ei-r__l { font-size: var(--fs-text); }
  .ei-r__l.l--soft, .ei-r__l.l--tag { font-size: var(--fs-small); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ei-hero__row { grid-template-areas: "text" "tool" "cards"; gap: var(--s5); }
  .ei-hero__bg { inset: -8px calc(-1 * var(--margin)) -24px; }
}
@media (max-width: 767px) {
  .ei-hero .svh__wrap { padding-top: 0; }
  .ei-hero__bg { inset: calc(-1 * var(--s2)) calc(-1 * var(--margin)) -16px; }
  .ei-hero__bg::after { background: linear-gradient(0deg, var(--navy-900) 0, rgb(from var(--navy-900) r g b / .25) 24%, rgb(from var(--navy-900) r g b / .35) 100%); }
  .ei-tool { gap: var(--s2); margin-inline: calc(-1 * var(--s2)); }
  .ei-tool__h { display: none; }
  .ei-tool__chips { order: 2; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--margin) + var(--s2)); padding-inline: calc(var(--margin) - var(--s2)); padding-block: 2px; }
  .ei-tool__chips::-webkit-scrollbar { display: none; }
  .ei-chip { min-height: 44px; flex: none; }
  .ei-r__l.opt { display: none; }
  .ei-r__l.l--sys { font-size: var(--fs-small); }
  .ei-r__d.is-ring::after { inset: -10px; }
  .ei-hero .svh__text > h1 { order: 1; }
  .ei-hero .svh__lead { order: 2; }
  .ei-hero .svh__go { order: 3; }
  .ei-hero .ei-asp { order: 4; font-size: var(--fs-text); line-height: var(--lh-text); }
  .ei-tool__card { padding: var(--s4); }
  .ei-tool__chk, .ei-tool__d { font-size: 1rem; line-height: 1.4; }
  .ei-rec .rec__i { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
}
@media (forced-colors: active) { .ei-r__d, .ei-chip { forced-color-adjust: none; } .ei-r__svg { display: none; } }

/* ---------- Beispielrechnung (gezeichnet, „Example, simplified“) ---------- */
.ei-doc__row { display: grid; gap: var(--s5); margin-top: var(--s6); min-width: 0; align-items: start; }
@media (min-width: 1024px) { .ei-doc__row { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--gutter); } }
.ei-doc { display: grid; gap: var(--s3); margin: 0; min-width: 0; }
.ei-doc__sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); padding: var(--s5);
  border-radius: var(--r-doc); background: var(--light), var(--navy-800); box-shadow: inset 0 3px 0 var(--gold), var(--shadow-doc); }
.ei-z { position: relative; display: grid; gap: 6px; align-content: start; min-width: 0; padding: var(--s3); border: 1px solid rgb(from var(--line) r g b / .35); border-radius: var(--r-doc); }
.ei-z.is-mark { border: 1.5px dashed var(--gold); background: rgb(from var(--gold) r g b / .06); }
.ei-z__m { position: absolute; top: -11px; inset-inline-end: -8px; display: flex; gap: 4px; }
.ei-z__m b, .ei-n { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--gold); color: var(--navy-900);
  font-size: .8125rem; font-weight: var(--fw-btn); line-height: 1; font-variant-numeric: tabular-nums; }
.ei-doc__head { grid-column: 1; }
.ei-doc__date { grid-column: 2; }
.ei-doc__lines, .ei-doc__ref, .ei-doc__foot { grid-column: 1 / -1; }
.ei-doc__type { font-size: var(--fs-h3); font-weight: var(--fw-h3); line-height: var(--lh-h3); }
.ei-doc__fmt, .ei-doc__k, .ei-doc__f { font-size: var(--fs-small); font-weight: var(--fw-small); line-height: var(--lh-small); color: var(--text-soft); }
.ei-doc__k { color: var(--text); font-weight: var(--fw-btn); }
.ei-bar { display: block; width: calc(var(--w, 60) * 1%); height: 8px; border-radius: 2px; background: rgb(from var(--text-soft) r g b / .32); }
.ei-doc__tr { display: grid; grid-template-columns: 1.4fr 1fr 1fr .7fr; gap: var(--s3); align-items: center; padding-block: 6px; border-bottom: 1px solid rgb(from var(--line) r g b / .3); }
.ei-doc__th { font-size: var(--fs-small); font-weight: var(--fw-small); line-height: var(--lh-small); color: var(--text-soft); }
.ei-doc__tr .ei-bar { width: calc(var(--w) * 1%); }
.ei-doc__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); }
.ei-doc__cap { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-soft); }
.ei-miss { display: grid; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.ei-miss li { display: flex; align-items: center; gap: var(--s3); font-weight: var(--fw-small); }
.ei-check__k { display: flex; align-items: center; gap: var(--s2); }
.ei-check__k .ei-n { width: 22px; height: 22px; }
@media (max-width: 767px) {
  .ei-doc__sheet { padding: var(--s4); gap: var(--s2); margin-inline: calc(-1 * var(--s2)); }
  .ei-z { padding: var(--s2); }
  .ei-doc__tr { gap: var(--s2); grid-template-columns: 1.2fr 1fr 1fr .6fr; }
  .ei-doc__th span { font-size: .75rem; }
  .ei-doc__type { font-size: var(--fs-text); }
  .ei-doc__fmt, .ei-doc__cap { font-size: 1rem; line-height: 1.4; }
}

/* ---------- Abschnittsköpfe ---------- */
.ei-intro { max-width: calc(8 * var(--step)); }
.ei-intro h2 { text-wrap: balance; }
.ei-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ei-note { margin-top: var(--s4); max-width: var(--measure); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-soft); }

/* ---------- Aufklapper ---------- */
.ei-fold { margin-top: var(--s6); border-top: 1px solid var(--line); }
.ei-fold > summary { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s4); row-gap: var(--s1);
  min-height: 52px; padding: var(--s4) var(--s7) var(--s4) 0; cursor: pointer; list-style: none; font-weight: var(--fw-btn); line-height: var(--lh-h3); }
.ei-fold > summary::-webkit-details-marker { display: none; }
.ei-fold > summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: var(--s4); font-size: var(--fs-h3); line-height: 1; color: var(--text-soft);
  transition: transform var(--dur-ui) var(--ease); }
.ei-fold[open] > summary::after { transform: rotate(45deg); }
.ei-fold > summary:hover::after { color: var(--gold-hi); }
.ei-fold > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ei-fold__b { padding-bottom: var(--s4); }
.ei-fold__n { font-size: var(--fs-small); font-weight: var(--fw-small); line-height: var(--lh-small); color: var(--text-soft); }
.ei-fold--sec { margin-top: 0; border-bottom: 1px solid var(--line); }
.ei-fold--sec > summary h2, .ei-fold__h2 { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.ei-fold--in { margin-top: var(--s2); }
.ei-fold--in > summary { min-height: 44px; padding-block: var(--s3); font-size: var(--fs-small); color: var(--text); }
.ei-fold--in > summary::after { top: var(--s3); }

/* ---------- Systemwähler (Übersicht) ---------- */
.ei-pick__grid { display: grid; gap: var(--s5); margin-top: var(--s6); min-width: 0; }
.ei-pick__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); min-width: 0; }
.ei-pick__t { display: grid; gap: var(--s1); align-content: start; min-width: 0; min-height: 64px; padding: var(--s3) var(--s4);
  border: 1px solid transparent; border-radius: var(--r-card); background: var(--navy-800); color: var(--text); font: inherit; text-align: start; cursor: pointer;
  transition: background-color var(--dur-tap) var(--ease), border-color var(--dur-tap) var(--ease); -webkit-tap-highlight-color: transparent; }
.ei-pick__t:hover { background: var(--navy-700); }
.ei-pick__t[aria-selected="true"] { border-color: var(--gold); background: var(--navy-700); box-shadow: 0 10px 30px rgb(from var(--gold) r g b / .12); }
.ei-pick__t:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ei-pick__n { font-weight: var(--fw-h3); line-height: var(--lh-h3); overflow-wrap: anywhere; }
.ei-pick__p { display: grid; gap: var(--s4); align-content: start; min-width: 0; padding: var(--s6); border: 1px solid var(--gold); border-radius: var(--r-card);
  background: var(--light), var(--navy-800); box-shadow: var(--shadow-card); }
.ei-pick__ph { font-size: var(--fs-h3); font-weight: var(--fw-h3); line-height: var(--lh-h3); }
.ei-pick__dl { display: grid; gap: var(--s4); margin: 0; }
.ei-pick__dl div { display: grid; gap: var(--s1); min-width: 0; }
.ei-pick__dl dt { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-small); font-weight: var(--fw-btn); line-height: var(--lh-small); color: var(--text-soft); }
.ei-pick__dl dd { margin: 0; }
.ei-pick__go { margin-top: var(--s2); }
.ei-pick__go .sd-btn { max-width: 100%; white-space: normal; text-align: center; }
@media (min-width: 768px) { .ei-pick__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .ei-pick__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: start; }
  .ei-pick__panels { position: sticky; top: calc(var(--head-h) + var(--s5)); }
}
@media (max-width: 767px) { .ei-pick__p { padding: var(--s5); } }

/* Stand-Zeichen: voll = Herstellerweg, halb = teilweise, gestrichelt = angekündigt, leer = kein Weg gefunden */
.ei-kind { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-small); font-weight: var(--fw-small); line-height: var(--lh-small); color: var(--text-soft); }
.ei-kind__dot { flex: none; width: 12px; height: 12px; border-radius: var(--r-pill); border: 2px solid var(--gold); }
.ei-kind--yes .ei-kind__dot, .ei-kind__dot.ei-kind--yes { background: var(--gold); }
.ei-kind--part .ei-kind__dot, .ei-kind__dot.ei-kind--part { background: linear-gradient(90deg, var(--gold) 50%, transparent 50%); }
.ei-kind--soon .ei-kind__dot, .ei-kind__dot.ei-kind--soon { border-style: dashed; }
.ei-kind--no .ei-kind__dot, .ei-kind__dot.ei-kind--no { border-color: var(--line); }

/* Zeichen der Dreiteilung: liefert (voll), fehlt (gestrichelt), wir verbinden (Ring mit Kern) */
.ei-ic { flex: none; width: 14px; height: 14px; border-radius: var(--r-pill); border: 2px solid var(--gold); }
.is-does .ei-ic, .ei-card--does .ei-ic { background: var(--gold); }
.is-open .ei-ic, .ei-card--open .ei-ic, .ei-card--not .ei-ic { border-color: var(--text-soft); border-style: dashed; }
.is-how .ei-ic, .ei-card--how .ei-ic { background: radial-gradient(circle, var(--gold-hi) 0 2.5px, transparent 3px); }

/* ---------- Regeln: Prüfkarten (Übersicht) und Häkchenliste (Systemseite) ---------- */
.ei-checks { display: grid; gap: var(--s3); margin-top: var(--s6); }
@media (min-width: 768px) { .ei-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
@media (min-width: 1200px) { .ei-checks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ei-check { margin: 0; border: 0; border-radius: var(--r-card); background: var(--navy-800); }
.ei-check > summary { display: grid; gap: 2px; padding: var(--s4) var(--s7) var(--s4) var(--s5); }
.ei-check > summary::after { inset-inline-end: var(--s4); }
.ei-check[open] { background: var(--navy-700); }
.ei-check .ei-fold__b { padding: 0 var(--s5) var(--s4); color: var(--text-soft); }
.ei-check__k { font-size: var(--fs-small); font-weight: var(--fw-small); line-height: var(--lh-small); color: var(--text-soft); }
.ei-check__s { font-weight: var(--fw-h3); line-height: var(--lh-h3); }
.ei-ticks { display: grid; gap: var(--s4); max-width: var(--measure); margin: 0; padding: 0; list-style: none; }
.ei-ticks li { position: relative; padding-inline-start: var(--s6); }
.ei-ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 14px; height: 14px; border-radius: var(--r-pill); border: 2px solid var(--gold); }
.ei-req--sys .sd-list { max-width: var(--measure); }
@media (min-width: 1024px) {
  .ei-req__row { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .ei-req__row .ei-intro { grid-column: 1 / span 5; margin-bottom: 0; }
  .ei-req__row > .sd-list, .ei-req__row > .ei-ticks { grid-column: 6 / -1; }
}

/* ---------- Frist-Zeitstrahl ---------- */
.ei-time { position: relative; display: grid; gap: var(--s4); margin: 0 0 var(--s7); padding: 0; list-style: none; }
.ei-time__i { position: relative; display: grid; gap: 2px; align-content: start; min-width: 0; padding-inline-start: var(--s6); }
.ei-time__dot { position: absolute; inset-inline-start: 0; top: .35em; width: var(--s4); height: var(--s4); border-radius: var(--r-pill); background: var(--navy-800); border: 2px solid var(--text-soft); }
.ei-time::before { content: ""; position: absolute; inset-inline-start: 7px; top: var(--s2); bottom: var(--s2); width: 2px; background: var(--navy-700); }
.ei-time__d { font-size: var(--fs-h3); font-weight: var(--fw-h3); line-height: var(--lh-h3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ei-time__d .sd-mark { margin: 0; font-size: inherit; }
.ei-time__t { font-weight: var(--fw-small); }
.ei-time__s { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-soft); }
.ei-time__i.is-past .ei-time__d, .ei-time__i.is-past .ei-time__t { color: var(--text-soft); }
.ei-time__i.is-past .ei-time__dot { border-color: var(--gold-lo); background: var(--gold-lo); }
.ei-time__i.is-now .ei-time__dot { background: var(--text); border-color: var(--text); box-shadow: 0 0 0 5px rgb(from var(--text) r g b / .14); }
.ei-time__i.is-next .ei-time__dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 18px 4px rgb(from var(--gold-hi) r g b / .45); }
@media (max-width: 767px) { .ei-time__i:not(.is-next) .ei-time__s { display: none; } }
@media (min-width: 1024px) {
  .ei-time { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--gutter); }
  .ei-time::before { inset-inline: 0; top: 7px; bottom: auto; width: auto; height: 2px; }
  /* Goldstrecke bis heute */
  .ei-time::after { content: ""; position: absolute; inset-inline-start: 0; top: 7px; height: 2px; width: calc((100% + var(--gutter)) * 2 / 7); background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); }
  .ei-time__i { padding: var(--s6) 0 0; }
  .ei-time__dot { top: 0; z-index: 1; }
}

/* Strafen als Übersicht */
.ei-fines__h { margin: 0 0 var(--s5); font-size: var(--fs-h3); line-height: var(--lh-h3); }
.ei-fines { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.ei-fines li { display: grid; gap: var(--s1); align-content: start; min-width: 0; padding: var(--s5); border-radius: var(--r-card); background: var(--navy-900); box-shadow: inset 0 2px 0 var(--gold); }
.ei-fines__n { font-size: var(--fs-h2); font-weight: var(--fw-display); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ei-fines__u { font-weight: var(--fw-small); }
.ei-fines__w { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-soft); }
@media (min-width: 768px) { .ei-fines { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); } }
@media (max-width: 767px) { .ei-fines__w { font-size: var(--fs-text); line-height: var(--lh-text); } }

/* Tabellen (Phasen, Strafen) im Aufklapper */
.ei-dates__grid { display: grid; gap: var(--s7); }
@media (min-width: 1024px) { .ei-dates__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); } }
.ei-table-wrap { min-width: 0; }
.ei-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: var(--lh-small); }
.ei-table caption { margin-bottom: var(--s3); text-align: start; font-size: var(--fs-text); font-weight: var(--fw-h3); line-height: var(--lh-h3); color: var(--text); }
.ei-table th, .ei-table td { padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.ei-table thead th { color: var(--text-soft); font-weight: var(--fw-small); }
.ei-table tbody th { font-weight: var(--fw-small); }
.ei-table td { font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .ei-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ei-table tr { display: grid; gap: var(--s1); padding-block: var(--s3); border-bottom: 1px solid var(--line); }
  .ei-table th, .ei-table td { display: block; padding: 0; border: 0; font-size: var(--fs-text); line-height: var(--lh-text); }
  .ei-table tbody th { font-weight: var(--fw-h3); }
  .ei-table:not(.ei-table--pen) td:nth-of-type(1)::before { content: "ASP by "; color: var(--text-soft); }
  .ei-table:not(.ei-table--pen) td:nth-of-type(2)::before { content: "Live by "; color: var(--text-soft); }
}

/* System-Matrix (Aufklapper der Übersicht) */
.ei-matrix { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: var(--lh-small); }
.ei-matrix th, .ei-matrix td { padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; min-width: 0; }
.ei-matrix thead th { color: var(--text-soft); font-weight: var(--fw-small); }
.ei-matrix tbody th { width: 22%; font-size: var(--fs-text); font-weight: var(--fw-h3); line-height: var(--lh-h3); }
.ei-matrix td { color: var(--text); }
.ei-matrix__sys { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .22em; }
.ei-matrix__sys:hover { color: var(--gold); text-decoration-color: currentColor; }
@media (max-width: 899px) {
  .ei-matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ei-matrix, .ei-matrix tbody, .ei-matrix tr, .ei-matrix th, .ei-matrix td { display: block; width: auto; }
  .ei-matrix tr { padding-block: var(--s4); border-bottom: 1px solid var(--line); }
  .ei-matrix th, .ei-matrix td { padding: 0; border: 0; font-size: var(--fs-text); line-height: var(--lh-text); }
  .ei-matrix tbody th { width: auto; margin-bottom: var(--s2); }
  .ei-matrix__sys { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .ei-matrix td { display: grid; gap: 2px; margin-top: var(--s2); }
  .ei-matrix td::before { content: attr(data-label); font-size: var(--fs-small); font-weight: var(--fw-small); line-height: var(--lh-small); color: var(--text-soft); }
}

/* ---------- Karten: Dreiteilung, Wir tun / tun nicht (Navy, die verbindende Karte mit Goldkante) ---------- */
.ei-card { display: grid; gap: var(--s4); align-content: start; min-width: 0; padding: var(--s6); border-radius: var(--r-card); background: var(--navy-800); box-shadow: var(--shadow-card); }
.ei-card h3 { max-width: none; }
.ei-card h4 { margin-top: var(--s2); font-size: var(--fs-text); font-weight: var(--fw-h3); line-height: var(--lh-h3); }
.ei-card p, .ei-card li { color: var(--text); }
.ei-card__k { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-small); font-weight: var(--fw-btn); line-height: var(--lh-small); color: var(--text-soft) !important; }
.ei-card--open, .ei-card--not { background: var(--navy-700); }
.ei-card--how { border: 1px solid var(--gold); background: var(--light), var(--navy-800); }
.ei-card--how .ei-card__k { color: var(--gold-hi) !important; }
.ei-card__route { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-small); }
.ei-card__foot { padding-top: var(--s3); border-top: 1px solid var(--line); font-weight: var(--fw-small); }
.ei-card__note { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-soft) !important; }
.ei-card .ei-fold { border-top-color: rgb(from var(--line) r g b / .5); }
.ei-card .ei-fold__b { display: grid; gap: var(--s3); }
.ei-pairs { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.ei-pairs strong { font-weight: var(--fw-h3); }
.ei-tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.ei-tags li { padding: var(--s1) var(--s3); border: 1px solid var(--line); border-radius: var(--r-doc); font-size: var(--fs-small); font-weight: var(--fw-small); line-height: var(--lh-small); }
.ei-three__grid, .ei-split__grid { display: grid; gap: var(--s4); margin-top: var(--s6); }
@media (min-width: 768px) { .ei-split__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); } }
@media (min-width: 1200px) { .ei-three__grid { grid-template-columns: 1.1fr 1.1fr .95fr; gap: var(--gutter); align-items: start; } }
@media (min-width: 768px) and (max-width: 1199px) {
  .ei-three__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
  .ei-card--how { grid-column: 1 / -1; }
}
@media (max-width: 767px) { .ei-card { padding: var(--s5); margin-inline: calc(-1 * var(--s2)); } }

/* ---------- Schritt-Schiene (echte Reihenfolge) ---------- */
.ei-steps__h { margin: var(--s8) 0 var(--s5); }
.ei-how .ei-steps__h:first-child, .ei-how .sd-intro + .ei-steps__h { margin-top: var(--s6); }
.ei-steps { display: grid; gap: var(--s5); margin: var(--s6) 0 0; padding: 0; list-style: none; }
.ei-steps__h + .ei-steps { margin-top: 0; }
.ei-steps li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s4); align-content: start; min-width: 0; }
.ei-steps li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 19px; top: 40px; bottom: calc(-1 * var(--s5)); width: 2px;
  background: linear-gradient(180deg, var(--gold), rgb(from var(--gold) r g b / .25)); }
.ei-steps__n { grid-row: 1 / span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--navy-900); border: 2px solid var(--gold); color: var(--gold-hi); font-weight: var(--fw-h3); font-variant-numeric: tabular-nums; }
.ei-steps h3 { padding-top: 8px; font-size: var(--fs-text); font-weight: var(--fw-h3); line-height: var(--lh-h3); }
.ei-steps p { margin-top: var(--s1); color: var(--text-soft); }
@media (min-width: 1024px) {
  .ei-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gutter); }
  .ei-steps li { grid-template-columns: minmax(0, 1fr); row-gap: var(--s3); }
  .ei-steps__n { grid-row: auto; }
  .ei-steps li:not(:last-child)::before { inset-inline-start: 40px; inset-inline-end: calc(-1 * var(--gutter)); top: 19px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--gold), rgb(from var(--gold) r g b / .3)); }
  .ei-steps h3 { padding-top: 0; }
  .ei-steps p { font-size: var(--fs-small); line-height: var(--lh-small); }
}
.ei-routes { display: grid; gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.ei-routes li { display: grid; gap: var(--s2); align-content: start; padding: var(--s5); border-radius: var(--r-card); background: var(--navy-900); box-shadow: inset 0 2px 0 var(--gold); }
.ei-routes__n { font-size: var(--fs-h3); font-weight: var(--fw-display); line-height: 1; color: var(--gold-hi); }
.ei-routes h4 { font-size: var(--fs-text); font-weight: var(--fw-h3); line-height: var(--lh-h3); }
@media (min-width: 1024px) { .ei-routes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); } }
.ei-how .ei-routes + .ei-note { margin-bottom: 0; }
.ei-how .ei-note + .ei-steps { margin-top: var(--s7); }

/* ---------- Fristen (Systemseite, aufklappbar) ---------- */
.ei-dt { padding-block: var(--s7) 0; }
.ei-dt__lead { margin-bottom: var(--s3); color: var(--text-soft); }

/* ---------- Fragen ---------- */
@media (min-width: 1024px) {
  .ei-faq__grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .ei-faq__grid .ei-intro { grid-column: 1 / span 4; }
  .ei-faq__grid .sd-faq { grid-column: 5 / -1; }
}

/* ---------- Anfrage ---------- */
.ei-plan__go { margin-top: var(--s5); }
.ei-plan__go .sd-btn { max-width: 100%; white-space: normal; text-align: center; line-height: var(--lh-small); padding-block: var(--s3); }

/* ---------- Weiterlesen ---------- */
.ei-more { padding-top: 0; }
.ei-more__grid { display: grid; gap: var(--s7); }
@media (min-width: 1024px) { .ei-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); } }
.ei-more__h { margin-bottom: var(--s5); font-size: var(--fs-h3); line-height: var(--lh-h3); }
.ei-sys { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.ei-sys__a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-card); background: var(--navy-800); color: var(--text); font-weight: var(--fw-small); text-decoration: none;
  transition: background-color var(--dur-tap) var(--ease), color var(--dur-tap) var(--ease); }
.ei-sys__a:hover { background: var(--navy-700); color: var(--gold); }
.ei-links { display: grid; gap: var(--s1); margin: 0; padding: 0; list-style: none; }
.ei-links .sd-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Quellen (aufklappbar) ---------- */
.ei-src { padding-top: var(--s7); }
.ei-src__h { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.ei-src__list { display: grid; gap: var(--s3); margin: 0; padding-inline-start: var(--s5); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-soft); }
.ei-src__list li { max-width: none; overflow-wrap: anywhere; }
.ei-src__list .sd-link { color: var(--text); overflow-wrap: anywhere; }
.ei-src__notice { margin: 0 0 var(--s4); max-width: var(--measure); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-soft); }

/* „e-invoicing“ nie trennen; Goldmarke der Frist bricht als ein Kasten je Zeile um */
.ei-nw { white-space: nowrap; }
.ei-key--long { font-size: clamp(2rem, 1rem + 3vw, 3.5rem); }
.ei-rec__mark { display: inline; margin: 0 var(--s1) 0 0 !important; padding-block: 2px; white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Handy: Fließtext ≥ 16 px */
@media (max-width: 767px) {
  .ei-src__list, .ei-src__notice, .ei-card__note, .ei-note, .ei-asp { font-size: var(--fs-text); line-height: var(--lh-text); }
  .ei-src__list li { padding-block: var(--s1); }
}

/* ---------- Tor 8 Runde b: Handy-Länge (Übersicht ≤ 10, Systemseiten ≤ 8 Bildschirme) ---------- */
.ei-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: var(--s5) 0 0; padding: 0; list-style: none; }
.ei-more__grid--one { grid-template-columns: minmax(0, 1fr) !important; }
.ei-more .ei-fold { margin-top: 0; }
.ei-more .ei-fold > summary .ei-more__h { margin: 0; }
@media (max-width: 767px) {
  main:has(.ei-hero) .sd-section { padding-block: 44px; }
  .ei-rec--idx { display: none; }
  /* Wähler: drei Spalten, Stand nur als Zeichen (Text bleibt für Vorleser), Legende darüber */
  .ei-pick__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ei-pick__t { min-height: 56px; padding: var(--s2) var(--s3) var(--s2); gap: 6px; }
  .ei-pick__n { font-size: var(--fs-small); line-height: 1.25; }
  .ei-pick__t .ei-kind__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ei-pick__grid { margin-top: var(--s4); gap: var(--s4); }
  .ei-intro > p { margin-top: var(--s3); }
  /* Regeln: zwei Spalten, nur Kurzform sichtbar */
  .ei-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s5); }
  .ei-check > summary { padding: var(--s3) var(--s6) var(--s3) var(--s3); }
  .ei-check > summary::after { inset-inline-end: var(--s2); top: var(--s3); }
  .ei-check__s { font-size: var(--fs-small); line-height: var(--lh-small); }
  .ei-check[open] { grid-column: 1 / -1; }
  .ei-check .ei-fold__b { padding: 0 var(--s3) var(--s3); }
  /* Zeitstrahl: Datum links, Ereignis rechts */
  .ei-time { gap: var(--s3); margin-bottom: var(--s6); }
  .ei-time__i { grid-template-columns: 7.2em minmax(0, 1fr); column-gap: var(--s3); }
  .ei-time__d { font-size: var(--fs-text); line-height: var(--lh-h3); }
  .ei-time__t, .ei-time__s { grid-column: 2; }
  .ei-time__d { grid-row: 1 / span 2; }
  /* Strafen: Betrag links, Erklärung rechts */
  .ei-fines li { grid-template-columns: minmax(0, 6.6em) minmax(0, 1fr); column-gap: var(--s3); padding: var(--s4); }
  .ei-fines__n { grid-row: 1 / span 2; font-size: var(--fs-h3); line-height: var(--lh-h3); }
  .ei-fines__u { font-size: var(--fs-text); }
  /* Schritte enger */
  .ei-steps { gap: var(--s4); }
  .ei-steps li { grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--s3); }
  .ei-steps__n { width: 32px; height: 32px; }
  .ei-steps li:not(:last-child)::before { inset-inline-start: 15px; top: 32px; bottom: calc(-1 * var(--s4)); }
  .ei-steps h3 { padding-top: 4px; }
  .ei-steps p { margin-top: 2px; }
  .ei-steps__h { margin: var(--s6) 0 var(--s4); }
  .ei-card__route { font-size: var(--fs-text); line-height: var(--lh-text); font-weight: var(--fw-small); }
  .ei-card { gap: var(--s3); }
  .ei-three__grid, .ei-split__grid { margin-top: var(--s5); }
  .ei-dt, .ei-src { padding-top: var(--s5) !important; }
  .ei-more__grid { gap: var(--s5); }
  .ei-ticks { gap: var(--s3); }
}
.ei-req--sys { padding-block: var(--s7) 0; }
.ei-req--sys .ei-ticks { margin-top: var(--s2); }
.ei-fold--steps { margin-top: var(--s7); }
.ei-fold--steps .ei-steps { margin-top: var(--s4); }
@media (max-width: 767px) {
  main:has(.ei-hero) .sd-section { padding-block: 40px; }
  .ei-req--sys { padding-bottom: 0 !important; }
  .ei-faq .sd-faq summary { padding-block: var(--s4); }
  .ei-faq .sd-faq summary h3 { font-size: var(--fs-text); line-height: var(--lh-h3); }
  .ei-sys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .ei-sys__a { width: 100%; padding: 0 var(--s3); font-size: var(--fs-small); }
}
@media (max-width: 767px) {
  .ei-time { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); }
  .ei-time::before { display: none; }
  .ei-time__i { grid-template-columns: minmax(0, 1fr); padding: var(--s3) var(--s3) var(--s3) calc(var(--s3) + 22px); border-radius: var(--r-card); background: var(--navy-900); }
  .ei-time__d { grid-row: auto; }
  .ei-time__t, .ei-time__s { grid-column: auto; }
  .ei-time__dot { inset-inline-start: var(--s3); top: calc(var(--s3) + .3em); width: 14px; height: 14px; }
  .ei-time__i.is-now { display: none; }
  .ei-time__i.is-next { grid-column: 1 / -1; box-shadow: inset 0 0 0 1px var(--gold); }
  .ei-time__t { font-size: var(--fs-small); line-height: var(--lh-small); }
  .ei-pick__p { padding: var(--s4); gap: var(--s3); }
  .ei-pick__dl { gap: var(--s3); }
  .ei-rec:not(.ei-rec--idx) .rec__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
  .ei-rec:not(.ei-rec--idx) .rec__k, .ei-rec:not(.ei-rec--idx) .rec__v { font-size: var(--fs-small); }
}
@media (max-width: 767px) {
  main:has(.ei-hero) .sd-section { padding-block: 32px; }
  .ei-fines li { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; row-gap: var(--s1); }
  .ei-fines__n { grid-row: auto; }
  .ei-fines__w { grid-column: 1 / -1; }
  .ei-fines__u { font-size: var(--fs-small); line-height: var(--lh-small); }
  .ei-legend { gap: var(--s1) var(--s4); margin-top: var(--s4); }
}
.ei-more { padding-top: var(--s5) !important; }
.ei-more .ei-more__grid { padding-top: var(--s2); }
.ei-card .ei-routes { gap: var(--s3); }
.ei-card .ei-routes li { padding: var(--s4); background: var(--navy-900); }
.ei-card .ei-routes p, .ei-card .ei-note { font-size: var(--fs-small); line-height: var(--lh-small); }
@media (min-width: 1024px) { .ei-card .ei-routes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .ei-rec:not(.ei-rec--idx) .rec__label { display: none; }
  .ei-card { padding: var(--s4); }
  .ei-three__grid { gap: var(--s3); }
  .ei-steps h3 { font-size: 1rem; }
  .ei-steps p { font-size: 1rem; line-height: 1.5; }
  .ei-card .ei-routes p, .ei-card .ei-note { font-size: 1rem; line-height: 1.5; }
}
.ei-fold > summary { display: grid; justify-items: start; }
.ei-fold--sec > summary h2, .ei-fold__h2 { max-width: 40ch; }
/* Responsiv-Messung Tor 8: Tippziel „The six steps“, Fließtext ≥ 16 px am Handy */
.ei-card--how .sd-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 767px) {
  .ei-pick .sd-kicker, .ei-check__s, .ei-time__s, .ei-fines__u, .ei-fold__n { font-size: 1rem; line-height: 1.4; }
  .ei-rec:not(.ei-rec--idx) .rec__list { grid-template-columns: minmax(0, 1fr); }
  .ei-rec:not(.ei-rec--idx) .rec__k, .ei-rec:not(.ei-rec--idx) .rec__v { font-size: 1rem; }
}
/* Tor 9: Regelkarten neben der Beispielrechnung zweispaltig */
.ei-doc__row .ei-checks { margin-top: 0; }
@media (min-width: 768px) { .ei-doc__row .ei-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ei-fold--mx { margin-top: var(--s5); }
/* Tor 9 Feinschliff 1: Grundbild hinter dem Kopf (nicht über dem Text), dunkler unter den Etiketten, Werkzeug kompakter */
@media (min-width: 1024px) {
  .ei-tool { isolation: auto; gap: var(--s2); }
  .ei-tool__chips { gap: 6px; }
  .ei-chip { min-height: 34px; padding: 0 var(--s3); }
  .ei-tool__p { aspect-ratio: 200 / 78; margin-top: var(--s2); }
  .ei-hero__bg::after { background: linear-gradient(90deg, var(--navy-900) 0, rgb(from var(--navy-900) r g b / .62) 20%, rgb(from var(--navy-900) r g b / .4) 44%, rgb(from var(--navy-900) r g b / .42) 100%),
      linear-gradient(0deg, var(--navy-900) 0, rgb(from var(--navy-900) r g b / 0) 24%), linear-gradient(180deg, var(--navy-900) 0, rgb(from var(--navy-900) r g b / 0) 16%); }
  .ei-hero__row { row-gap: var(--s3); }
}
@media (max-width: 1023px) {
  .ei-hero__bg::after { background: linear-gradient(180deg, var(--navy-900) 0, rgb(from var(--navy-900) r g b / .4) 22%, rgb(from var(--navy-900) r g b / .4) 70%, var(--navy-900) 100%); }
}
/* Tor 9 Feinschliff 2: Bildbreite und Licht je Seite (eigene Komposition) */
.svh.ei-hero::before { background: radial-gradient(44% 56% at var(--lp, 76% 40%), rgb(var(--lc, 235 199 124) / .2), transparent 74%); }
@media (min-width: 1024px) { .ei-hero__bg { width: var(--bw, 60%); } }
/* Tor 9 Feinschliff 3: Handy-Länge Systemseiten ≤ 8 (Prüfpunkte stehen nummeriert unter der Beispielrechnung, im Kopf nur Stand + Link) */
.ei-matrix__sys .ei-kind__dot { margin-inline-end: var(--s2); }
@media (max-width: 767px) {
  .ei-tool__chk { display: none; }
  .ei-tool__card { gap: var(--s1); }
  .ei-miss { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s3); }
  .ei-miss li { align-items: flex-start; font-size: 1rem; line-height: 1.35; }
  .ei-doc__lines .ei-doc__tr:last-child { display: none; }
  .ei-doc__row { gap: var(--s4); margin-top: var(--s5); }
  .ei-doc__party .ei-bar + .ei-doc__f + .ei-bar { width: 50%; }
}
@media (min-width: 768px) { .ei-three__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: var(--gutter); } .ei-three__grid--two .ei-card--how { grid-column: auto; } }
.ei-card--open .ei-pairs { gap: var(--s2); }
.ei-card--open .ei-pairs li { font-size: var(--fs-small); line-height: var(--lh-small); }
/* Tor 9 Feinschliff 4: Schritte als Aufklapper (Handy zu, ab 1024 offen); unmarkierte Nebenfelder der Beispielrechnung am Handy weg */
.ei-fold--how { border-bottom: 0; }
.ei-fold--how .ei-steps { margin-top: var(--s4); }
@media (max-width: 767px) {
  .ei-how { padding-block: var(--s5) !important; }
  .ei-doc__date:not(.is-mark), .ei-doc__ref:not(.is-mark) { display: none; }
  .ei-doc__head { grid-column: 1 / -1; }
}
/* Tor 9 Feinschliff 5 (Responsiv-Messung): Tippziele ≥ 44 px bis 1023, Etiketten am Handy ≥ 16 px, Aufklapp-Zeichen in der Zeile */
@media (max-width: 1023px) { .ei-chip { min-height: 44px; } }
@media (max-width: 767px) {
  .ei-r__l.l--soft, .ei-r__l.l--tag { font-size: 1rem; }
  .ei-r__l.l--mb { transform: translate(-50%, 10px); }
}
.ei-fold > summary::after { inset-inline-end: 6px; }
.ei-check > summary::after { inset-inline-end: var(--s4); }
@media (max-width: 767px) {
  .ei-mh { display: none; }
  .ei-r__l.l--mbb { top: calc(44 / 88 * 100%); transform: translate(-50%, 24px); }
}

/* =====================================================================================================
   Kill-Runde nach Tor 9 (01.12.2026): weiche Bildkanten, Plaketten für Grafik-Beschriftungen, drei Kopf-Familien + Übersicht,
   Zeile „Showing: …“, eine wischbare Chip-Reihe bis 1023 px, ausgefüllte Beispielrechnung.
   ===================================================================================================== */

/* (1) Grundbild: alle vier Kanten weich ins Navy, nie ein Kasten mit gerader Kante */
.ei-hero__bg {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 5%, #000 34%, #000 64%, transparent 100%), linear-gradient(90deg, transparent 0, #000 20%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, transparent 5%, #000 34%, #000 64%, transparent 100%), linear-gradient(90deg, transparent 0, #000 20%, #000 84%, transparent 100%);
  mask-composite: intersect; }

/* Licht des Kopfs: oben weich einblenden (keine Kante an der Abschnittsgrenze unter der Brotkrumenzeile) */
.svh.ei-hero::before { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 200px, #000 calc(100% - 220px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 200px, #000 calc(100% - 220px), transparent 100%); }

/* (2) Jede Beschriftung der Route auf eigener dunkler Plakette (Navy 92 %, feine Goldkante) über Linien und Bild */
.ei-r__l { z-index: 2; padding: 3px 8px; border: 1px solid rgb(from var(--gold) r g b / .38); border-radius: 6px;
  background: rgb(from var(--navy-900) r g b / .92); text-shadow: none; }
.ei-r__d { z-index: 1; }
.ei-r__l.l--sys { border-color: rgb(from var(--gold-hi) r g b / .6); }

/* (5) Zeile „Showing: …“: feste Höhe, nie ein Sprung beim Antippen */
.ei-now { display: flex; align-items: center; gap: var(--s3); min-width: 0; min-height: 44px; margin: 0; font-size: var(--fs-small); font-weight: var(--fw-btn); line-height: var(--lh-small); color: var(--text); }
.ei-now__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ei-now .sd-link { flex: none; display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-hi); white-space: nowrap; }
.ei-tool__p { margin-top: 0 !important; }
/* Zeilen über der Route stehen teils vor dem Bild: auch sie auf eine dunkle Plakette (Kontrast gegen den hellsten Bildpunkt) */
.ei-now__n, .ei-tool__h { width: fit-content; max-width: 100%; padding: 2px 8px; margin-inline-start: -8px; border-radius: 6px; background: rgb(from var(--navy-900) r g b / .92); }
.ei-now .sd-link { padding-inline: 8px; border-radius: 6px; background: rgb(from var(--navy-900) r g b / .92); }

/* (6) Bis 1023 px: Bildstreifen mit Route oben, eine wischbare Chip-Reihe mit Anschnitt, dann Text (wie 390) */
@media (max-width: 1023px) {
  .ei-hero__row { grid-template-areas: "tool" "text" "cards"; }
  .ei-tool { gap: var(--s2); }
  .ei-tool__h { display: none; }
  .ei-tool__chips { order: 2; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); padding-block: 2px; }
  .ei-tool__chips::-webkit-scrollbar { display: none; }
  .ei-chip { flex: none; }
  .ei-now { order: 3; font-size: 1rem; }
  .ei-now__x { display: none; }
  .ei-hero__bg { inset: calc(-1 * var(--s5)) calc(-1 * var(--margin)) calc(-1 * var(--s6)); width: auto; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ei-hero .svh__wrap { padding-top: var(--s2); }
  .ei-tool__p { aspect-ratio: 200 / 66; }
  .ei-hero .svh__text { max-width: 60ch; }
}
@media (max-width: 767px) { .ei-tool { margin-inline: 0; } }

/* (3) Kopf-Familien ab 1024 px. Text steht nie auf dem Bild; Text oben verankert (kein Sprung beim Wechsel). */
@media (min-width: 1024px) {
  .ei-hero__row > .svh__text { align-self: start; }
  .ei-tool__h { margin: 0; }
  .ei-hero .svh__wrap { padding-top: var(--s5); padding-bottom: var(--s4); }

  /* Übersicht (Tor 10 Korrektur 3): wieder der tor9-Aufbau (Text links mittig, rechts Aufforderung/Chips, ganze Route, Statuskasten),
     mit den Plaketten und weichen Kanten aus Tor 10. Regeln stehen im Block „Tor 10 Korrekturen“ am Dateiende. */

  /* bahn: Herstellerweg. Die Route läuft groß über die ganze Breite oben, der Text darunter, Statuskasten unter der Kante.
     Zwei Produkte auf zwei Wegen (split): Titel rechts, Satz links (gespiegelt). */
  .ei-fam--bahn .ei-hero__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s8); row-gap: var(--s3); align-items: start;
    grid-template-areas: "tool tool" "kick lead" "h1 lead" "h1 go" "cards asp" "cards ."; }
  .ei-fam--bahn .svh__text { display: contents; }
  .ei-fam--bahn .svh__text > .sd-kicker { grid-area: kick; }
  .ei-fam--bahn .svh__text > h1 { grid-area: h1; }
  .ei-fam--bahn .svh__lead { grid-area: lead; align-self: end; }
  .ei-fam--bahn .svh__go { grid-area: go; }
  .ei-fam--bahn .ei-asp { grid-area: asp; }
  .ei-fam--bahn .ei-tool__cards { grid-area: cards; }
  .ei-fam--bahn .ei-tool__p { aspect-ratio: 200 / 34; }
  .ei-fam--bahn .ei-hero__bg { inset: 0 0 auto 0; width: auto; height: 560px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 5%, #000 30%, #000 55%, transparent 90%), linear-gradient(90deg, transparent 0, #000 16%, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, transparent 5%, #000 30%, #000 55%, transparent 90%), linear-gradient(90deg, transparent 0, #000 16%, #000 86%, transparent 100%); }
  .ei-fam--bahn .ei-tool__chk { display: none; }
  .ei-hero .svh__wrap { row-gap: var(--s5); }
  .ei-intro { max-width: calc(10 * var(--step)); }
  .ei-fam--bahn .ei-hero__bg::after { background: linear-gradient(180deg, rgb(from var(--navy-900) r g b / .3), rgb(from var(--navy-900) r g b / .6)); }
  .ei-fam--bahn:is(.ei-hero--oracle-netsuite, .ei-hero--zoho-books) .ei-hero__row { grid-template-areas: "tool tool" "lead kick" "lead h1" "go h1" "asp cards" ". cards"; }

  /* bruch: „we build it“ oder angekündigt. Bühne links, Text rechts hinter einer gestrichelten Bruchkante.
     Angekündigt (soon): Bühne über beide Zeilen, Statuskasten rechts unter dem Text. */
  .ei-fam--bruch .ei-hero__row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "tool text" "cards text"; align-items: start; column-gap: var(--s7); }
  .ei-fam--bruch .svh__text { padding-inline-start: var(--s7); border-inline-start: 2px dashed rgb(from var(--gold) r g b / .45); padding-block: var(--s4); }
  .ei-fam--bruch .ei-tool__p { aspect-ratio: 200 / 96; }
  .ei-fam--bruch .ei-hero__bg { inset: 0 auto 0 0; width: var(--bw, 60%); }
  .ei-fam--bruch .ei-hero__bg::after { background: linear-gradient(270deg, var(--navy-900) 0, rgb(from var(--navy-900) r g b / .62) 22%, rgb(from var(--navy-900) r g b / .42) 50%, rgb(from var(--navy-900) r g b / .45) 100%); }
  :is(.ei-hero--quickbooks, .ei-hero--sap).ei-fam--bruch .ei-hero__row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "tool text" "tool cards"; }
  :is(.ei-hero--quickbooks, .ei-hero--sap).ei-fam--bruch .ei-tool { align-self: stretch; align-content: start; }
  :is(.ei-hero--quickbooks, .ei-hero--sap).ei-fam--bruch .ei-tool__p { aspect-ratio: 200 / 132; }
  :is(.ei-hero--quickbooks, .ei-hero--sap).ei-fam--bruch .ei-tool__cards { padding-inline-start: var(--s7); }

  /* strom: viele Belege, ein Strom. Text schmal links, hohe Bühne rechts, Chips unter der Route (auf Navy, nie auf dem Bild) */
  .ei-fam--strom .ei-hero__row { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-areas: "text tool" "cards tool"; align-items: start; column-gap: var(--s7); row-gap: var(--s5); }
  .ei-fam--strom .ei-tool { align-self: stretch; align-content: start; }
  .ei-fam--strom .ei-tool__stage { order: 1; }
  .ei-fam--strom .ei-tool__top { order: 2; }
  .ei-fam--strom .ei-tool__chips { order: 3; }
  .ei-fam--strom .ei-tool__p { aspect-ratio: 200 / 112; }
  .ei-fam--strom .ei-hero__bg { inset: 0 0 auto auto; width: 62%; height: 600px; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .ei-fam--bahn .ei-tool__p { aspect-ratio: 200 / 52; } }
/* (7) Länge: engere Abschnitte ab 768 px (nur E-Invoicing) */
@media (min-width: 768px) { main:has(.ei-hero) .sd-section:not(.ei-dt, .ei-req--sys, .ei-src, .ei-more) { padding-block: var(--s8); } }
@media (min-width: 1024px) { main:has(.ei-hero) .sd-section:not(.ei-dt, .ei-req--sys, .ei-src, .ei-more) { padding-block: 56px; } .ei-three .ei-doc__row { margin-top: var(--s5); } }

/* Abstand über der Route, damit obere Beschriftungen nie an Chips oder Brotkrumen stoßen */
.ei-tool__stage { padding-top: 30px; }
@media (max-width: 767px) {
  .ei-tool__stage { padding-top: 16px; }
  .ei-tool__p { aspect-ratio: 200 / 80; }
  .ei-hero__row { row-gap: var(--s4); }
  .ei-now { min-height: 32px; height: 32px; }
  .ei-now .sd-link { margin-block: -6px; }
  .ei-tool .ei-r .ei-r__l.m-r { transform: translate(16px, -50%); }
  .ei-tool .ei-r .ei-r__l.m-b { transform: translate(-50%, 12px); }
  .ei-tool .ei-r .ei-r__l.m-a { transform: translate(-10px, calc(-100% - 14px)); }
}

/* (4) Ausgefüllte Beispielrechnung im dunklen CI-Kleid */
.ei-doc__v { font-weight: var(--fw-h3); line-height: var(--lh-h3); color: var(--text); }
.ei-doc__f { font-variant-numeric: tabular-nums; }
.ei-doc__kv { display: grid; gap: var(--s2); margin: 0; }
.ei-doc__kv div { display: flex; justify-content: space-between; gap: var(--s3); }
.ei-doc__kv dt { font-size: var(--fs-small); color: var(--text-soft); }
.ei-doc__kv dd { margin: 0; font-size: var(--fs-small); font-weight: var(--fw-btn); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ei-doc__tb { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: var(--lh-small); font-variant-numeric: tabular-nums; }
.ei-doc__tb th, .ei-doc__tb td { padding: 6px var(--s2) 6px 0; border-bottom: 1px solid rgb(from var(--line) r g b / .35); text-align: end; vertical-align: top; white-space: nowrap; }
.ei-doc__tb th:first-child { text-align: start; white-space: normal; font-weight: var(--fw-small); color: var(--text); }
.ei-doc__tb thead th { color: var(--text-soft); font-weight: var(--fw-small); }
.ei-doc__tb td:last-child, .ei-doc__tb th:last-child { padding-inline-end: 0; }
.ei-doc__tot { display: grid; justify-content: end; gap: 2px; margin: var(--s2) 0 0; font-size: var(--fs-small); line-height: var(--lh-small); font-variant-numeric: tabular-nums; }
.ei-doc__tot div { display: grid; grid-template-columns: 9em 7em; text-align: end; }
.ei-doc__tot dt { color: var(--text-soft); }
.ei-doc__tot dd { margin: 0; }
.ei-doc__tot .ei-doc__sum { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--gold); font-weight: var(--fw-h3); }
.ei-doc__tot .ei-doc__sum dt, .ei-doc__tot .ei-doc__sum dd { color: var(--gold-hi); }
.ei-doc__cap strong { color: var(--text); font-weight: var(--fw-btn); }
@media (max-width: 767px) {
  .ei-doc__up, .ei-doc__vt { display: none; }
  .ei-doc__tb, .ei-doc__tot, .ei-doc__kv dt, .ei-doc__kv dd { font-size: 1rem; line-height: 1.4; }
  .ei-doc__tot div { grid-template-columns: 8em 7em; }
  .ei-doc__date:not(.is-mark) { display: grid; }
  .ei-doc__head, .ei-doc__date { grid-column: auto; }
  .ei-doc__kv { gap: var(--s1); }
  .ei-doc__kv div { display: grid; gap: 0; }
  .ei-doc__kv dt { line-height: 1.3; }
  .ei-doc__foot .ei-z:not(.is-mark) { display: none; }
  .ei-doc__foot:not(:has(.is-mark)) { display: none; }
  .ei-doc__foot { grid-template-columns: minmax(0, 1fr); }
  .ei-doc__sheet { padding: var(--s3); }
  .ei-z { gap: 2px; }
  .ei-doc__tb th, .ei-doc__tb td { padding-block: 4px; }
  .ei-hero .svh__text { gap: var(--s3); }
  .ei-tool__card { padding: var(--s3) var(--s4); }
  .ei-three .ei-doc__row { margin-top: var(--s4); gap: var(--s3); }
  .ei-hero .svh__wrap { padding-bottom: var(--s5); }
}

/* =====================================================================================================
   Tor 10 Korrekturen (01.12.2026): Linktext, Klammern bei 768, Übersicht wie tor9 mit Plaketten, Lesereihenfolge,
   „Showing“ teilt sich die Zeile mit der Aufforderung (ab 1024) bzw. steht im Statuskasten (darunter), SAP eigene Variante.
   ===================================================================================================== */
.ei-tool__show { display: none; }
.ei-tool__top { display: none; }
@media (max-width: 1023px) {
  /* (2) Klammern „Our part“/„Accredited ASPs“ hängen unter der Route in die Chip-Reihe: unter 1024 aus */
  .ei-r__l.l--brk { display: none; }
  /* (5) Statuskasten des gewählten fremden Systems trägt „Showing: …“ als Kopfzeile */
  .ei-tool__show { display: block; flex-basis: 100%; font-weight: var(--fw-btn); color: var(--gold-hi); }
}
@media (min-width: 1024px) {
  /* (1)+(5) Eine Zeile über den Chips: Aufforderung, nach dem Antippen „Showing: … Open the … page“ an derselben Stelle */
  .ei-tool__top { display: grid; align-items: center; min-width: 0; min-height: 32px; }
  .ei-tool__top > * { grid-area: 1 / 1; }
  .ei-tool__top .ei-now { min-height: 32px; height: auto; font-size: var(--fs-small); }
  .ei-tool:not([data-cmp]) .ei-now, .ei-tool[data-cmp] .ei-tool__h { visibility: hidden; }
  .ei-now .sd-link, .ei-now .ei-now__a { display: inline-block; min-height: 0; padding-block: 4px; line-height: var(--lh-small); white-space: nowrap; }

  /* (3) Übersicht: tor9-Aufbau. Text links mittig, rechts Aufforderung, Chips, ganze Route, Statuskasten; „Your dates“ darunter */
  .ei-fam--idx .ei-hero__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-areas: "text tool" "text cards"; column-gap: var(--s7); row-gap: var(--s2); align-items: start; }
  /* Text oben verankert (kein Sprung, wenn der Statuskasten beim Antippen höher wird), optisch mittig zum Werkzeug */
  .ei-fam--idx .ei-hero__row > .svh__text { align-self: start; padding-top: clamp(56px, 6.6vw, 96px); }
  .ei-fam--idx .ei-tool__p { aspect-ratio: 200 / 66; }
  /* Oberkante: auch die verglichenen Routen (FTA ganz oben) halten ≥ 16 px Abstand zur Chip-Reihe */
  .ei-fam--idx .ei-tool__stage { padding-top: 36px; padding-bottom: 20px; }
  .ei-fam--idx .ei-r__l.l--brk { transform: translate(-50%, 6px); }
  .ei-fam--idx .ei-hero__bg { inset: 0 0 0 auto; width: var(--bw, 66%); }

  /* (4) NetSuite/Oracle, Zoho Books (gespiegelte bahn): H1 zuerst über die volle Breite, dann Satz und Knöpfe links, Statuskasten rechts */
  /* Lesereihenfolge: Kicker, H1 (volle Breite, Unterzeile in einer Zeile), dann Satz links und Knöpfe rechts auf gleicher Höhe, Statuskasten rechts darunter */
  .ei-fam--bahn:is(.ei-hero--oracle-netsuite, .ei-hero--zoho-books) .ei-hero__row { grid-template-areas: "tool tool" "kick kick" "h1 h1" "lead go" "lead asp" "lead cards"; row-gap: var(--s2); }
  .ei-fam--bahn:is(.ei-hero--oracle-netsuite, .ei-hero--zoho-books) .svh__lead { align-self: start; margin-top: var(--s2); }
  .ei-fam--bahn:is(.ei-hero--oracle-netsuite, .ei-hero--zoho-books) .svh__go { margin-top: var(--s2); }
  .ei-fam--bahn:is(.ei-hero--oracle-netsuite, .ei-hero--zoho-books) .ei-tool__cards { align-self: start; margin-top: var(--s2); }
  .ei-fam--bahn:is(.ei-hero--oracle-netsuite, .ei-hero--zoho-books) .svh__text > .sd-kicker { margin-top: var(--s4); }
  .ei-fam--bahn:is(.ei-hero--oracle-netsuite, .ei-hero--zoho-books) h1 .svh__rest { max-width: none; }
  /* obere Plaketten (FTA) mit ≥ 16 px Luft unter der Chip-Reihe */
  .ei-fam--bahn .ei-tool__stage { padding-top: 38px; }

  /* (4) strom (POS, Excel, TallyPrime, Odoo): Bühne, dann Aufforderung/„Showing“, dann Chips; Bühne höher, damit rechts keine Leerfläche bleibt */
  .ei-fam--strom .ei-tool__p { aspect-ratio: 200 / 150; }
  .ei-fam--strom .ei-tool__chk { display: none; }
  .ei-fam--strom .ei-hero__bg { height: 680px; }

  /* (6) SAP: eigene Variante der bruch-Familie, gespiegelt (Text links vor der Bruchkante, Route rechts über beide Zeilen) */
  .ei-hero--sap.ei-fam--bruch .ei-hero__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "text tool" "cards tool"; }
  .ei-hero--sap.ei-fam--bruch .svh__text { padding-inline: 0 var(--s7); border-inline-start: 0; border-inline-end: 2px dashed rgb(from var(--gold) r g b / .45); }
  .ei-hero--sap.ei-fam--bruch .ei-tool__cards { padding-inline: 0 var(--s7); }
  .ei-hero--sap.ei-fam--bruch .ei-tool__chk { display: none; }
  .ei-hero--sap.ei-fam--bruch .ei-tool__p { aspect-ratio: 200 / 150; }
  .ei-hero--sap.ei-fam--bruch .ei-hero__bg { inset: 0 0 0 auto; }
  .ei-hero--sap.ei-fam--bruch .ei-hero__bg::after { background: linear-gradient(90deg, var(--navy-900) 0, rgb(from var(--navy-900) r g b / .62) 22%, rgb(from var(--navy-900) r g b / .42) 50%, rgb(from var(--navy-900) r g b / .45) 100%); }
}

/* Tablet/Handy: Plaketten mit ≥ 16 px Luft zur Chip-Reihe und zur Brotkrumenzeile, keine Plakette an einer anderen */
@media (min-width: 768px) and (max-width: 1023px) { .ei-tool__stage { padding-bottom: 12px; } }
@media (max-width: 767px) {
  .ei-tool__stage { padding-bottom: 18px; }
  .ei-hero__row { row-gap: var(--s3); }
  /* Übersicht: Quellen rechts neben ihrem Punkt (nicht über ERP an der Brotkrumenzeile) */
  .ei-r--all .ei-r__l.l--start { transform: translate(14px, -50%); }
  /* „Buyer“ über seinem Punkt, damit es nicht an „Your ASP“ stößt (POS: Route oben, dort bleibt es unten) */
  .ei-r:not(.ei-r--pos) .ei-r__l.l--end { transform: translate(calc(-100% + 6px), calc(-100% - 12px)); }
  .ei-r--split .ei-r__l.l--a.l--start { transform: translate(16px, -50%); }
  .ei-r--soon .ei-r__l.l--soft { transform: translate(-50%, -50%); }
  .ei-r--pos .ei-r__l.l--gold { transform: translate(-50%, calc(-50% - 4px)); }
  .ei-r--stack .ei-r__l.l--sys { transform: translate(-10px, -100px); }
  .ei-r--stack .ei-r__l.l--mb { transform: translate(-50%, 14px); }
  /* Beispielrechnung kompakter (gleiche Inhalte): Summen in einer Zeile, Bezug in einer Zeile, Senden/Empfangen nebeneinander */
  .ei-doc__tot { justify-content: stretch; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
  .ei-doc__tot div, .ei-doc__tot .ei-doc__sum { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 4px 0 0; border-top: 1px solid rgb(from var(--line) r g b / .35); }
  .ei-doc__tot .ei-doc__sum { border-top: 1px solid var(--gold); }
  .ei-doc__ref { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s2); }
  .ei-doc__foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ei-fam--bruch .ei-tool__stage { padding-top: 34px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .ei-fam--idx .ei-tool__stage { padding-top: 40px; }
  .ei-fam--idx .ei-r__l.l--tag.opt:not(.l--brk) { display: none; }
}
@media (max-width: 767px) {
  .ei-r--yes .ei-r__l.l--c { transform: translate(-50%, calc(-50% - 7px)); }
  .ei-r--soon .ei-r__l.l--gold.m-r { transform: translate(16px, calc(-50% + 5px)); }
  .ei-r--pos .ei-r__l.l--gold { transform: translate(-50%, calc(-50% - 10px)); }
  .ei-r--pos .ei-r__l.l--b:not(.l--start):not(.l--end) { transform: translate(calc(-100% + 10px), 12px); }
  .ei-r--all .ei-r__l.l--a:not(.l--start):not(.opt) { transform: translate(-50%, 12px); }
  /* Länge: Sprungmarke „What … is missing, in detail“ (der Abschnitt folgt direkt) am Handy aus; ungezeichnetes Datumsfeld aus */
  .ei-tool__go--own { display: none; }
  .ei-doc__date:not(.is-mark) { display: none; }
  .ei-doc__head:has(~ .ei-doc__date:not(.is-mark)) { grid-column: 1 / -1; }
  .ei-doc__sheet { gap: var(--s2); }
  .ei-doc__row { margin-top: var(--s4); }
}
@media (max-width: 767px) {
  .ei-tool__stage { padding-bottom: 20px; }
  .ei-r--gap .ei-r__l.l--gold { transform: translate(-50%, 7px); }
  .ei-r--split .ei-r__l.l--b.l--start { transform: translate(-10px, 9px); }
  .ei-r--arch .ei-r__l.l--b { transform: translate(-50%, 9px); }
  .ei-r--arch .ei-r__l.l--b.l--start { transform: translate(-10px, 9px); }
  .ei-hero .svh__wrap { padding-bottom: var(--s3); }
  .ei-doc__tb th, .ei-doc__tb td { padding-block: 3px; }
}
@media (max-width: 767px) {
  .ei-tool__stage { padding-top: 12px; }
  .ei-hero:is(.ei-hero--oracle-netsuite, .ei-hero--sap) .ei-tool__stage { padding-top: 4px; }
  .ei-r--stack .ei-r__l.l--sys { transform: translate(-10px, -96px); }
  .ei-r--gap .ei-r__l.l--gold { transform: translate(-50%, 9px); }
  .ei-r--gap .ei-r__l.l--b:not(.l--start):not(.l--end):not(.l--gold) { transform: translate(calc(-100% - 18px), -50%); }
}
@media (max-width: 767px) {
  .ei-hero--excel-custom .ei-tool__stage { padding-top: 16px; }
  .ei-r--stack .ei-r__l.l--sys { transform: translate(-10px, -101px); }
  .ei-hero--oracle-netsuite .ei-hero__row { row-gap: 10px; }
}
/* (6) Eigene Varianten innerhalb der Familien, damit sich keine zwei Köpfe bei 1440 gleichen (kleinstes Paar ≥ 15) */
@media (min-width: 1024px) {
  /* Odoo: strom gespiegelt – Route mit Chips links über beide Zeilen, Text und Statuskasten rechts */
  .ei-hero--odoo.ei-fam--strom .ei-hero__row { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); grid-template-areas: "tool text" "tool cards"; }
  .ei-hero--odoo.ei-fam--strom .ei-hero__bg { inset: 0 auto auto 0; }
  /* SAP: Bild heller und bis unten, Licht unten rechts */
  .ei-hero--sap.ei-fam--bruch .ei-hero__bg::after { background: linear-gradient(90deg, var(--navy-900) 0, rgb(from var(--navy-900) r g b / .5) 22%, rgb(from var(--navy-900) r g b / .18) 55%, rgb(from var(--navy-900) r g b / .22) 100%); }
}
