/* Das System im Überblick – nur Komposition und Mockups dieser Seite (Komponenten stehen in site.css) */

/* ---------- Hero: Botschaft links, Unterzeile + CTA rechts, darunter die Kette in voller Breite ---------- */
.sys-hero { padding-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.sys-hero-grid { display: grid; gap: var(--sp-5); }
.sys-hero .h1 { max-width: 19ch; }
.sys-hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-5); }
.sys-chain { margin-top: clamp(2.25rem, 5vw, 4rem); }
@media (min-width: 68.75em) {
  .sys-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 29rem); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: end; }
  .sys-hero-side { padding-bottom: 4px; }
}
@media (min-width: 80em) { .sys-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---------- M20 Kette: ein Datensatz, sieben Stationen (Handy senkrecht, 768–1279 px zwei Spalten, ab 1280 px waagerecht) ---------- */
.ui-kette { border-radius: var(--r-lg); }
.ui-kette .ui-bar { padding: 12px 16px; }
.kt-who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: var(--fs-micro); color: var(--text-2); }
.kt-who .av-xs { margin-right: 0; }
.kt-who-n { display: inline; }
.kt-list { display: grid; padding: 8px 16px 6px; }
.kt-st { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 12px; align-items: start; padding: 10px 0; position: relative; }
.kt-st::before {
  content: ""; position: absolute; left: 14.5px; top: 40px; bottom: -10px; width: 1px;
  background: linear-gradient(180deg, rgba(34, 211, 238, .75), rgba(99, 102, 241, .75));
}
.kt-st:nth-child(6)::before { background: none; border-left: 1px dashed var(--line-3); }
.kt-st:last-child::before { display: none; }
.kt-node {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; position: relative; z-index: 1;
  font: 600 var(--fs-micro)/1 var(--ff-display); letter-spacing: .02em; font-variant-numeric: tabular-nums;
  color: var(--c-ink-950); background: var(--grad-btn);
}
.kt-next .kt-node { color: var(--text-2); background: var(--c-ink-850); border: 1.5px dashed var(--line-3); }
.kt-txt { min-width: 0; padding-top: 2px; }
.kt-t { font: 500 .875rem/1.3 var(--ff-display); color: var(--text); letter-spacing: -.005em; hyphens: manual; -webkit-hyphens: manual; }
.kt-t .kt-nw { display: inline; white-space: nowrap; }
.kt-d { font-size: .75rem; line-height: 1.4; color: var(--text-2); margin-top: 2px; }
.kt-m { font-size: var(--fs-micro); line-height: 1.4; color: var(--text-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.kt-next .kt-t { color: var(--text-2); }
.kt-meta { display: flex; justify-content: center; align-items: flex-start; align-self: stretch; padding-top: 3px; position: relative; }
/* Herkunfts-Faden (senkrecht): gestrichelte Linie von Chip zu Chip */
.kt-meta::before { content: ""; position: absolute; left: 50%; top: 14px; bottom: -24px; border-left: 1px dashed rgba(34, 211, 238, .38); }
.kt-st:last-child .kt-meta::before { display: none; }
.kt-src {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill); position: relative; z-index: 1;
  font-size: var(--fs-micro); line-height: 1.5; white-space: nowrap;
  color: var(--accent-soft); border: 1px solid rgba(34, 211, 238, .32); background: var(--c-ink-850);
}
.kt-next .kt-src { border-style: dashed; }
.kt-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 18px;
  padding: 12px 16px 14px; border-top: 1px solid var(--line); font-size: var(--fs-micro); color: var(--text-3);
}
.kt-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kt-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.kt-key-on { background: var(--grad-btn); }
.kt-key-next { margin-left: 10px; border: 1.5px dashed var(--line-3); }
.kt-thread { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-2); }
/* Bewegung: der Weg läuft genau einmal durch (unter 5 Sekunden) und kommt dann zur Ruhe – WCAG 2.2.2 */
@media (prefers-reduced-motion: no-preference) {
  .kt-st:not(.kt-next) .kt-node { animation: kt-pass 1.4s var(--ease) .3s 1 both; }
  .kt-st:nth-child(2) .kt-node { animation-delay: .95s; }
  .kt-st:nth-child(3) .kt-node { animation-delay: 1.6s; }
  .kt-st:nth-child(4) .kt-node { animation-delay: 2.25s; }
  .kt-st:nth-child(5) .kt-node { animation-delay: 2.9s; }
  .kt-st:nth-child(6) .kt-node { animation-delay: 3.55s; }
  .ui-kette .pulse { animation-iteration-count: 2; }
}
@keyframes kt-pass {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
  35% { box-shadow: 0 0 0 5px rgba(34, 211, 238, .22), 0 0 22px rgba(34, 211, 238, .55); }
}
/* 768–1279 px: zwei Spalten (Stationen 1–4 | 5–7), damit Text und Herkunft nah beieinander bleiben */
@media (min-width: 48em) and (max-width: 79.99em) {
  .kt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 40px; padding: 12px 20px 8px; }
  .kt-st:nth-child(4)::before, .kt-st:nth-child(4) .kt-meta::before { display: none; }
}
@media (min-width: 80em) {
  .ui-kette .ui-bar { padding: 14px 20px; }
  .kt-list { grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 24px 20px 20px; }
  .kt-st { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; row-gap: 14px; padding: 0 16px 0 0; }
  .kt-st::before { left: 36px; right: 0; top: 18px; bottom: auto; width: auto; height: 1px; background: var(--grad-bar); }
  .kt-st:nth-child(6)::before { background: none; border-left: 0; border-top: 1px dashed var(--line-3); }
  .kt-node { width: 36px; height: 36px; font-size: .75rem; }
  .kt-t { font-size: .9375rem; }
  .kt-d { font-size: .8125rem; }
  /* Herkunfts-Faden: eine gestrichelte Linie durch alle sieben Herkunfts-Chips */
  .kt-meta { justify-content: flex-start; align-self: auto; padding-top: 2px; }
  .kt-meta::before { left: 0; right: -16px; top: calc(50% + 1px); bottom: auto; border-left: 0; border-top: 1px dashed rgba(34, 211, 238, .38); }
  .kt-st:last-child .kt-meta::before { right: auto; width: 24px; }
  .kt-foot { padding: 12px 20px 14px; }
}

/* ---------- Die sieben Stationen (Nummer · Text · Produkt-Beweis) ---------- */
@media (min-width: 56.25em) { .sys-head-side { justify-self: end; max-width: 30rem; } }
.sys-jump ol { display: flex; flex-wrap: wrap; gap: 8px; }
.sys-jump a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: rgba(255, 255, 255, .015);
  font-size: .8125rem; line-height: 1.2; color: var(--text-2); text-decoration: none;
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.sys-jump a > span[aria-hidden] { font: 500 .75rem/1 var(--ff-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.sys-jump a:hover { color: var(--text); border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .05); }

.sys-stations { border-top: 1px solid var(--line-2); }
.sys-st {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; row-gap: var(--sp-4); align-items: start;
  padding: clamp(1.75rem, 3.2vw, 3rem) 0; border-bottom: 1px solid var(--line); position: relative;
}
.sys-st::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--grad); transition: width .9s var(--ease); }
.sys-st:hover::after, .sys-st:target::after { width: 100%; }
.sys-st .st-no { font-size: 2.5rem; align-self: center; }
.sys-st-main { display: contents; }
.sys-st-main > :not(.st-t) { grid-column: 1 / -1; }
.sys-st-main > .st-t { grid-column: 2; align-self: center; }
.sys-st-main > .link-arrow { justify-self: start; }
.sys-st-side { grid-column: 1 / -1; gap: 12px; align-content: start; min-width: 0; }
.sys-st-side .mock { width: 100%; max-width: 26rem; }
.sys-st-side .sys-lead { max-width: 30rem; }
.sys-st-side .sys-ad { max-width: 21rem; }
.sys-st-side .sys-mail { max-width: 24rem; }
.sys-st-side .sys-phone { max-width: 15rem; }
@media (max-width: 47.99em) { .sys-ad .ad-img { aspect-ratio: 16 / 8; } }
@media (max-width: 29.99em) { .sys-lead .lead-actions { display: none; } }   /* Handy: Aktionen entfallen, die Notiz ist der Beweis */
.sys-st .footnote { max-width: 40rem; }
.sys-dl { display: grid; gap: var(--sp-4); max-width: 40rem; }
.sys-dl > div { display: grid; gap: 6px; }
.sys-dl dd { margin: 0; font-size: 1.0625rem; line-height: 1.62; color: var(--text-2); text-wrap: pretty; }
.sys-gain { position: relative; padding-left: 18px; }
.sys-gain::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: var(--grad); }
.sys-gain dt { color: var(--accent); }
.sys-gain dd { color: var(--text); }
@media (min-width: 56.25em) {
  .sys-st { grid-template-columns: 96px minmax(0, 1fr); column-gap: clamp(1.5rem, 3vw, 3rem); row-gap: var(--sp-6); }
  .sys-st .st-no { grid-row: 1 / span 2; align-self: start; font-size: clamp(3rem, 2rem + 2.6vw, 4.75rem); }
  .sys-st-main { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-5); grid-column: 2; min-width: 0; }
  .sys-st-main > .st-t { padding-top: .1em; align-self: auto; }
  .sys-st-side { grid-column: 2; }
}
@media (min-width: 68.75em) {
  .sys-st { grid-template-columns: 96px minmax(0, 7fr) minmax(0, 5fr); }
  .sys-st .st-no { grid-row: 1; }
  .sys-st-side { grid-column: 3; padding-top: .35rem; }
}

/* Server-Rückmeldung (Station 3) */
.ui-rueck .mini-k { margin-bottom: 4px; }
.rk-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.rk-row:last-child { padding-bottom: 0; }
.rk-l { font: 500 .8125rem/1.2 var(--ff-display); color: var(--text); }
.rk-x { font-size: .75rem; line-height: 1.35; color: var(--text-2); }

/* ---------- 9 Vertriebsstufen: Stufen-Leiste (M27) als große Messleiste ---------- */
.sys-stages .stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.sys-stages .stages li {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0;
  padding: 18px 8px 20px 12px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none;
  font: 400 .9375rem/1.25 var(--ff-display); color: var(--text); letter-spacing: -.005em; hyphens: auto; -webkit-hyphens: auto;
}
.sys-stages .stages li:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.sys-stages .stages li:nth-child(n+4) { border-top: 1px solid var(--line); }
.sys-stages .stages-n {
  display: block; width: auto; height: auto; border-radius: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font: 300 clamp(2rem, 1.5rem + 2vw, 3.25rem)/1 var(--ff-display); letter-spacing: -.05em; padding-right: .05em; font-variant-numeric: tabular-nums;
}
.sys-stages .stages li:nth-child(3)::before { content: ""; position: absolute; left: 12px; right: 0; top: -1px; height: 2px; background: var(--grad); }
.sys-stages .stages li:nth-child(3)::after { content: ""; position: absolute; top: 22px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); }
.sys-stages-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; margin-top: var(--sp-5); }
.sys-stages-foot .footnote { max-width: 40rem; }
@media (min-width: 80em) {
  .sys-stages .stages { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .sys-stages .stages li, .sys-stages .stages li:nth-child(3n+1) { border-left: 1px solid var(--line); padding: 24px 10px 26px 14px; font-size: 1.0625rem; }
  .sys-stages .stages li:first-child { border-left: 0; padding-left: 0; }
  .sys-stages .stages li:nth-child(n+4) { border-top: 0; }
  .sys-stages .stages li:nth-child(3)::before { left: 0; }
}

/* ---------- Warum ein durchgehendes System: Schema „Einzellösungen oder ein System“ ---------- */
.sys-why { align-items: center; }
.ui-luecken { display: grid; gap: 14px; padding: 16px; border-radius: var(--r-lg); }
.lk-lane { display: grid; gap: 12px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, .012); }
.lk-b { border-color: rgba(34, 211, 238, .3); background: linear-gradient(180deg, rgba(99, 102, 241, .1), rgba(34, 211, 238, .03)); }
.lk-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.lk-k { font: 500 var(--fs-micro)/1.3 var(--ff-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.lk-b .lk-k { color: var(--accent-soft); }
.lk-c { font-size: var(--fs-micro); color: var(--text-3); }
.lk-b .lk-c { color: var(--text); }
.lk-row { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; }
.lk-box { min-width: 0; padding: 10px 9px; border: 1px dashed var(--line-3); border-radius: 8px; background: rgba(10, 13, 20, .45); }
.lk-t { font: 500 .8125rem/1.25 var(--ff-display); color: var(--text); hyphens: manual; }
.lk-s { font-size: var(--fs-micro); line-height: 1.35; color: var(--text-3); margin-top: 3px; }
.lk-gap { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--danger); }
.lk-gap::before, .lk-gap::after { content: ""; position: absolute; top: 50%; width: 6px; border-top: 1px dashed var(--line-3); }
.lk-gap::before { left: 0; }
.lk-gap::after { right: 0; }
.ui .lk-gap .ico { width: 13px; height: 13px; stroke-width: 2; }
.lk-gap-t { display: none; font-size: var(--fs-micro); line-height: 1.2; color: var(--text-3); text-align: center; hyphens: manual; }
.lk-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lk-path > span { display: inline-flex; align-items: center; gap: 6px; font: 500 .75rem/1.3 var(--ff-display); color: var(--text); }
.lk-path > span:not(:first-child)::before { content: "→"; color: var(--accent); font-family: var(--ff-text); }
.lk-trace { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .75rem; line-height: 1.4; color: var(--text-2); }
.lk-trace-cut { color: var(--text-3); }
.lk-trace-cut .tag { border-style: dashed; color: var(--text-3); }
@media (min-width: 30em) {
  .lk-path { gap: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid rgba(34, 211, 238, .4); border-radius: 8px; overflow: hidden; }
  .lk-path > span { justify-content: center; padding: 10px 4px; text-align: center; background: rgba(34, 211, 238, .06); min-width: 0; }
  .lk-path > span:not(:first-child) { border-left: 1px solid rgba(34, 211, 238, .22); }
  .lk-path > span:not(:first-child)::before { content: none; }
}
@media (min-width: 48em) {
  .ui-luecken { padding: 20px; gap: 16px; }
  .lk-lane { padding: 16px 18px; }
  .lk-row { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 64px minmax(0, 1fr); }
  .lk-gap::before, .lk-gap::after { width: 12px; }
  .lk-gap-t { display: block; }
  .lk-box { padding: 12px; }
  .lk-path > span { font-size: .8125rem; }
  .lk-b .lk-trace::after { content: ""; flex: 1 1 40px; height: 1px; background: var(--grad-bar); }
  .lk-trace-cut::after { content: ""; flex: 0 0 48px; border-top: 1px dashed var(--line-3); }
}

/* ---------- Fundament ---------- */
@media (min-width: 56.25em) {
  .sys-base { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .sys-base-mock { justify-self: end; width: 100%; max-width: 30rem; }
}

/* ---------- Modular starten: vier Bauabschnitte + Stationen je Paket ----------
   Editorial statt Kartenraster: Starter, Vertrieb, Premium ohne Rahmen, getrennt durch Haarlinien
   (wie die Stufen-Leiste darüber); nur das Flaggschiff Rundum-Marketing behält den Verlaufsrahmen. */
.sys-mod { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.sys-pkg:not(.sys-pkg-flag) { border: 0; border-radius: 0; background: none; padding-inline: 0; }
.sys-pkg:not(.sys-pkg-flag):hover { background: none; }
.sys-pkg + .sys-pkg:not(.sys-pkg-flag) { border-top: 1px solid var(--line); }
.sys-pkg-flag { margin-top: 16px; }
.sys-pkg-flag { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; }
.sys-pkg-flag:hover { border-color: transparent; }
.sys-pkg-flag .pkg-sub { color: var(--accent-soft); }
.sys-cover { width: 100%; display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.sys-cover p { font-size: .875rem; line-height: 1.5; color: var(--text-2); }
.sys-cover-k { color: var(--text); font-weight: 600; }
.sys-dots { display: inline-flex; gap: 4px; }
.sys-dots i {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-3); font: 500 var(--fs-xs)/1 var(--ff-display); font-style: normal; color: var(--text-3);
}
.sys-dots .on { border-color: transparent; background: var(--grad-btn); color: var(--c-ink-950); }
.sys-dots .half { border-color: rgba(34, 211, 238, .7); color: var(--text); background: linear-gradient(90deg, rgba(34, 211, 238, .38) 50%, transparent 50%); }
.sys-mod-after { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; margin-top: 22px; }
.sys-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-3); }
.sys-legend .sys-dots i { width: 16px; height: 16px; }
.sys-legend .sys-dots + .sys-dots, .sys-legend .sys-dots:nth-of-type(2) { margin-left: 12px; }
.sys-mod-grid { display: grid; gap: var(--sp-6); margin-top: clamp(2.5rem, 5vw, 3.5rem); align-items: start; }
.sys-move .ico { width: 28px; height: 28px; margin-top: 2px; }
.sys-move p { color: var(--text-2); }
.sys-move strong { color: var(--text); }
.sys-links { max-width: none; }
@media (min-width: 56.25em) {
  .sys-mod { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys-pkg:not(.sys-pkg-flag) { padding-inline: clamp(1.25rem, 2.4vw, 2rem); }
  .sys-pkg:nth-child(1), .sys-pkg:nth-child(3) { padding-left: 0; }
  .sys-pkg:nth-child(2) { border-top: 0; border-left: 1px solid var(--line); }
  .sys-mod-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--sp-8); }
}
@media (min-width: 80em) {
  .sys-mod { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sys-pkg:nth-child(3) { border-top: 0; border-left: 1px solid var(--line); padding-left: clamp(1.25rem, 2.4vw, 2rem); }
  .sys-mod .pkg-name-sm { font-size: 1.625rem; }
  .sys-mod .pkg-ba { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
}

/* ---------- Im Echtbetrieb entwickelt + Leitfaden ---------- */
.sys-real { display: grid; gap: var(--sp-8); align-items: center; }
.sys-guide { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--bg-2); }
.sys-guide-t { font: var(--fw-display) clamp(1.375rem, 1.15rem + .8vw, 1.75rem)/1.2 var(--ff-display); letter-spacing: -.02em; color: var(--text); }
.sys-guide p:not(.m-label) { color: var(--text-2); }
@media (min-width: 56.25em) { .sys-real { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--sp-9); } }

/* Baustein-Navigation: gemeinsamer Baustein partials/baustein-nav.html, Stile .bnav in site.css (keine seitenlokalen Stile mehr). */
