/* ============================================================
   leistungen.css — page-level layout for the Leistungen page.
   Reuses the LOCKED design system (tokens / base / components):
   .container, .section, .section-head, .eyebrow, .btn-*, .card,
   .crumbs, soft shadows + rounding, single FMU-red accent, tonal
   surface variety, [data-reveal] motion hooks.

   This page has three movements that echo the home rhythm but stay
   distinct from its compact "Von der Idee zur Inbetriebnahme" strip:
     1 — intro (light base, breadcrumb + section-head)
     2 — END-TO-END FLOW: a generous, dark "contrast moment" band
         with a connected horizontal flow of 6 nodes on desktop →
         a vertical connected timeline on mobile. Sequence is read
         from the line + order only — NO 01–06 index numbers.
     3 — six service detail cards (surface-2), each an FMU icon
         (PNG), heading + substantive copy. Kein Anfrage-Link pro
         Karte mehr (Kundenfeedback 27.07.).
     4 — closing Anfrage CTA band (reuses the home .cta-band).
   Nothing from tokens/base/components is redefined here.
   ============================================================ */

/* ------------------------------------------------------------
   1 — INTRO (light base)
   ------------------------------------------------------------ */
.lst-intro { background: var(--c-base); }
.lst-intro .crumbs { margin-bottom: var(--space-8); }
/* the intro lead sits under the section-head title on its own line,
   constrained to a comfortable measure */
.lst-intro__lead {
  color: var(--c-graphite);
  max-width: 60ch;
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: var(--lh-snug);
  margin-top: var(--space-6);
}

/* ------------------------------------------------------------
   2 — END-TO-END FLOW (dark contrast moment)
   A connected horizontal flow: a line runs through 6 icon nodes,
   each node labelled below. The order + the directional line carry
   the sequence — there are no index numbers. ≤900px it folds to a
   vertical connected timeline.
   ------------------------------------------------------------ */
.flow-sec {
  position: relative;
  background: var(--c-dark);
  color: var(--c-on-dark);
  overflow: clip;
}
.flow-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 120% at 14% 0%, color-mix(in srgb, var(--c-red) 13%, transparent), transparent 60%),
    radial-gradient(70% 130% at 94% 108%, color-mix(in srgb, var(--c-on-dark) 6%, transparent), transparent 55%);
  pointer-events: none;
}
.flow-sec__inner { position: relative; z-index: 1; }
.flow-sec .eyebrow { color: color-mix(in srgb, var(--c-on-dark) 64%, transparent); }
.flow-sec .section-head__title { color: var(--c-on-dark); }
.flow-sec__lead {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .04em;
  color: color-mix(in srgb, var(--c-on-dark) 58%, transparent);
  white-space: nowrap;
  padding-bottom: 3px; /* matches .section-head__link baseline */
}

/* the flow track */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gutter);
  position: relative;
}
/* connecting flow line behind the nodes — from centre of first node to
   centre of last. Each node is 80px wide and flush-left in its column,
   so half a node = 40px. */
.flow::before {
  content: "";
  position: absolute;
  top: 40px;            /* centre of the 80px node row */
  left: 40px;
  right: calc(((100% - var(--gutter) * 5) / 6) - 40px);
  height: 2px;
  background: linear-gradient(90deg,
    var(--c-red),
    color-mix(in srgb, var(--c-red) 30%, transparent) 55%,
    color-mix(in srgb, var(--c-on-dark) 22%, transparent));
  border-radius: var(--radius-pill);
  z-index: 0;
}
.flow__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
/* round node holding the icon — sits on the line. 72px → 80px, damit die
   feinen Linien der FMU-PNG-Icons lesbar bleiben. */
.flow__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-pill);
  background: var(--c-dark-surface);
  border: 1px solid color-mix(in srgb, var(--c-on-dark) 14%, transparent);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  color: var(--c-on-dark);
  transition: transform var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft);
}
.flow__step:hover .flow__node {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c-red) 60%, transparent);
  box-shadow: 0 16px 38px rgba(0,0,0,.5);
}
/* Icons von FMU (PNG-Strichzeichnung, dunkle Linien auf Transparenz).
   Das Band ist dunkel → invertieren, damit die Linien hell stehen. */
.flow__icon--img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: invert(1);
}
/* ungenutzt seit Kundenfeedback 27.07. */
.flow__icon { width: 34px; height: 34px; }
/* ungenutzt seit Kundenfeedback 27.07. */
.flow__icon .stroke {
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ungenutzt seit Kundenfeedback 27.07. */
.flow__icon .tick { fill: var(--c-red); stroke: none; }
.flow__title {
  font-size: var(--fs-body);
  line-height: var(--lh-snug);
  color: var(--c-on-dark);
}
.flow__hint {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: color-mix(in srgb, var(--c-on-dark) 64%, transparent);
}

/* tablet: 3 columns over two rows → drop the single horizontal line
   (rows would break it) and give each node a quiet connector tail */
@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10) var(--gutter); }
  .flow::before { display: none; }
}

/* mobile: vertical connected timeline */
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before {
    display: block;
    top: 0; bottom: 0;
    left: 39px; right: auto;       /* centre of the 80px node */
    width: 2px; height: auto;
    background: linear-gradient(180deg,
      var(--c-red),
      color-mix(in srgb, var(--c-red) 30%, transparent) 55%,
      color-mix(in srgb, var(--c-on-dark) 22%, transparent));
  }
  .flow__step {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: var(--space-5);
    align-items: start;
    padding-block: var(--space-5);
  }
  .flow__node { grid-row: span 2; }
  .flow__title { margin-top: var(--space-2); }
}

/* ------------------------------------------------------------
   3 — SERVICE DETAIL CARDS (tinted surface-2)
   ------------------------------------------------------------ */
.services-sec { background: var(--c-surface-2); }
.services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.service {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* square rounded icon plate — 56px → 64px, damit die feinen Linien der
   FMU-PNG-Icons lesbar bleiben */
.service__ico {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--c-red) 9%, var(--c-surface));
  color: var(--c-red);
  flex-shrink: 0;
}
/* Icons von FMU (PNG-Strichzeichnung auf Transparenz) — dunkle Linien auf
   der hellen Plakette, keine Farbanpassung nötig. */
.service__ico--img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
/* ungenutzt seit Kundenfeedback 27.07. */
.service__ico svg { width: 30px; height: 30px; }
/* ungenutzt seit Kundenfeedback 27.07. */
.service__ico .stroke {
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service__title {
  font-size: var(--fs-h3);
  margin-top: var(--space-1);
}
.service__desc {
  font-size: var(--fs-small);
  color: var(--c-graphite);
  line-height: var(--lh-body);
  /* fills the remaining height so cards in a row stay aligned */
  flex: 1;
}
/* ungenutzt seit Kundenfeedback 27.07. — die Anfrage-Links pro Karte sind
   entfernt, der CTA am Seitenende bleibt.
   per-card Anfrage / Kontakt link — same affordance as .section-head__link
   but scoped here so it reads as a card action */
.service__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--c-ink);
  padding-bottom: 3px;
  border-bottom: 1.5px solid color-mix(in srgb, var(--c-ink) 22%, transparent);
  transition: color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    gap var(--dur-fast) var(--ease-soft);
}
.service__link:hover,
.service__link:focus-visible {
  color: var(--c-red);
  border-color: var(--c-red);
  gap: var(--space-3);
}
.service__link .arr { transition: transform var(--dur-fast) var(--ease-soft); }
.service__link:hover .arr,
.service__link:focus-visible .arr { transform: translateX(3px); }

@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
}
