/* ============================================================
   pages.css — page-level layout. Currently: Startseite (home).
   Premium/smooth surface: near-white base, ink text, FMU red as
   the single accent, soft layered shadows + rounding instead of
   hairlines, calm whitespace + subtle surface tints to separate
   sections, dark "moments" (hero + closing CTA) lit with soft
   radial glows rather than wireframe grids. Mono is reserved for
   genuine spec values (e.g. the FKS-8 type chip).
   Tokens, buttons, .container/.grid/.eyebrow/.card/.ph are
   reused from tokens/base/components — never redefined here.
   ============================================================ */

/* Shared rhythm helpers (.section-head, .stats, .partner,
   [data-reveal] init) live in components.css. */

/* ============================================================
   1 — HERO (dark band)
   ============================================================ */
.hero {
  position: relative;
  background: var(--c-dark);
  color: var(--c-on-dark);
  overflow: clip;
  padding-block: clamp(var(--space-24), 14vh, var(--space-32)) var(--space-32);
}
/* soft glow for depth — a warm dark radial vignette, no wireframe grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 90% at 78% 8%, color-mix(in srgb, var(--c-red) 12%, transparent), transparent 60%),
    radial-gradient(120% 120% at 82% -10%, color-mix(in srgb, var(--c-on-dark) 7%, transparent), transparent 55%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-16);
}
.hero .eyebrow { color: color-mix(in srgb, var(--c-on-dark) 64%, transparent); }
.hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin-top: var(--space-6);
  text-wrap: balance;
}
.hero__title .accent { color: var(--c-red); }
.hero__sub {
  margin-top: var(--space-6);
  max-width: 48ch;
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: var(--lh-snug);
  color: color-mix(in srgb, var(--c-on-dark) 82%, transparent);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-10);
}
/* ghost buttons on the dark band use .btn-ghost--ondark (base.css) */

/* hero figure: the parallax-able render placeholder + a mono meta strip */
.hero__figure { position: relative; }
.hero__ph { will-change: transform; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--c-on-dark) 55%, transparent);
}
.hero__meta b {
  display: block;
  font-weight: 500;
  color: var(--c-on-dark);
  letter-spacing: .02em;
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
  .hero__figure { order: -1; }
}

/* ============================================================
   2 — POSITIONING HOOK (light, editorial)
   ============================================================ */
.hook { background: var(--c-base); }
/* NB: no max-width on the inner wrapper — the block keeps the shared
   .container left edge so it lines up with every other section. The
   measure is constrained on the text elements instead. */
.hook__title {
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  margin-top: var(--space-6);
  max-width: 18ch;
  text-wrap: balance;
}
.hook__title .accent { color: var(--c-red); }
.hook__lead {
  margin-top: var(--space-8);
  max-width: 62ch;
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: var(--lh-snug);
  color: var(--c-graphite);
}
.hook__pillars {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-10);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.hook__pillars li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
}
.hook__pillars li:not(:last-child)::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: var(--radius-pill);
  background: var(--c-red);
}

/* ============================================================
   3 — LÖSUNGEN · 4 KOMPETENZFELDER (asymmetric bento, surface)
   ============================================================ */
.bento-sec { background: var(--c-surface-2); }
/* 12-col canvas, two asymmetric rows. Heights are driven by each tile's
   own image aspect-ratio + body (no row-spanning stretch), so nothing
   leaves awkward empty space:
     row 1 → feature (cols 1-7, 4:3)   + Betonrecycling (cols 8-12, 4:3)
     row 2 → Bahntechnik (cols 1-5, 4:3) + Sondermaschinen wide (6-12, 16:9)
   Varied column spans + image ratios = intentional asymmetry. */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 1fr;   /* beide Reihen gleich hoch (Kundenwunsch 27.07.) */
  gap: var(--gutter);
}
.bento__tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft);
  /* default: a 5-col tile */
  grid-column: span 5;
}
.bento__tile--feature { grid-column: 1 / span 7; }
.bento__tile--wide { grid-column: 6 / span 7; }
.bento__tile:hover,
.bento__tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
/* Bild füllt den Rest der Kachel: alle vier Kacheln sind gleich hoch,
   die Bildhöhe gleicht unterschiedlich lange Texte aus. */
.bento__tile .ph,
.bento__tile .fig {
  border-radius: 0;
  box-shadow: none;
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 220px;
}
/* the body sits below the image. All bodies share padding + title size. */
.bento__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  flex: 1;
}
.bento__title {
  font-size: var(--fs-h3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.bento__title .arr {
  color: var(--c-red);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-soft);
}
.bento__tile:hover .arr,
.bento__tile:focus-visible .arr { transform: translate(4px, -4px); }
.bento__desc {
  font-size: var(--fs-small);
  color: var(--c-graphite);
  line-height: var(--lh-body);
}

/* tablet: two equal columns, full-width feature + wide */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__tile { grid-column: span 1; }
  .bento__tile--feature,
  .bento__tile--wide { grid-column: 1 / span 2; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .bento__tile,
  .bento__tile--feature,
  .bento__tile--wide { grid-column: span 1; }
}

/* ============================================================
   4 — KENNZAHLEN (light tinted default; dark variant below).
   Uses the standard .section padding (via .section in markup) and
   the shared .section-head rhythm so it lines up with every other
   band. The right slot stacks the "seit 1998…" line above the
   "Alle Referenzen" link.
   ============================================================ */
/* .stats / .stats--dark / .stat live in components.css (shared
   with Referenzen). */
.stats__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}
@media (max-width: 720px) {
  .stats__aside { align-items: flex-start; }
}

/* ============================================================
   6 — LEISTUNGEN · connected process journey (tinted surface-2).
   A horizontal flow of 6 steps joined by a connecting line; the
   sequence is conveyed by the line + order + arrows — NOT by
   index numbers. Becomes a vertical connected timeline ≤860px.
   ============================================================ */
.process-sec { background: var(--c-base); }
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gutter);
  position: relative;
}
/* the connecting flow line behind the nodes — runs from the centre of the
   first node to the centre of the last (each node is 80px, sits flush-left
   in its column, so half a node = 40px). */
.process::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,
    color-mix(in srgb, var(--c-red) 55%, transparent),
    color-mix(in srgb, var(--c-ink) 16%, transparent));
  border-radius: var(--radius-pill);
  z-index: 0;
}
.process__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
/* round node holding the icon — sits on the line.
   64px → 80px wie .flow__node auf /leistungen/: das 42px-Icon braucht
   denselben Rahmen, sonst sitzt es im Kreis zu eng. */
.process__node {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
  color: var(--c-ink);
  transition: transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
}
.process__step:hover .process__node {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.process__icon { width: 28px; height: 28px; }
/* Icons von FMU (PNG-Strichzeichnung) — brauchen mehr Fläche als die
   früheren Inline-SVGs, damit die feinen Linien lesbar bleiben. */
.process__img {
  /* Gleiche Größe wie .flow__icon--img auf /leistungen/ (Kundenwunsch
     25.08.): dieselben Icons sollen auf beiden Seiten gleich groß sein. */
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.process__icon .stroke {
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.process__icon .tick { fill: var(--c-red); }
.process__title {
  font-size: var(--fs-body);
  margin-top: var(--space-1);
}
.process__desc {
  font-size: var(--fs-small);
  color: var(--c-graphite);
  line-height: var(--lh-body);
}

/* tablet: 3 columns, line off (rows would break it) */
@media (max-width: 860px) {
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
  .process::before { display: none; }
}
/* mobile: vertical connected timeline */
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before {
    display: block;
    top: 0; bottom: 0;
    left: 39px; right: auto;   /* Mitte des 80px-Knotens */
    width: 2px; height: auto;
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--c-red) 55%, transparent),
      color-mix(in srgb, var(--c-ink) 16%, transparent));
  }
  /* two-column timeline row: node spans both rows, title + desc stack right */
  .process__step {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: var(--space-5);
    padding-block: var(--space-5);
  }
  .process__node { grid-row: span 2; }
  .process__title { margin-top: var(--space-2); }
}

/* ============================================================
   7 — BRANCHEN (light, chip cloud)
   ============================================================ */
.branchen { background: var(--c-surface-2); }
.branchen__cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}
/* Jeder Chip führt auf /referenzen/ mit gesetztem Branchenfilter. */
.branchen__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 48px;
  text-decoration: none;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--c-ink);
  transition: transform var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft);
}
.branchen__chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--c-red) 40%, var(--c-hairline));
}
.branchen__ico {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--c-red);
}
.branchen__ico .stroke {
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 520px) {
  .branchen__chip { min-height: 44px; padding-inline: var(--space-4); }
}

/* ============================================================
   8 — FEATURED MACHINE (FKS-8)
   ============================================================ */
.featured { background: var(--c-surface-2); }
.featured__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-16);
}
.featured__body { max-width: 52ch; }
.featured__title {
  font-size: var(--fs-h2);
  margin-top: var(--space-4);
  text-wrap: balance;
  hyphens: auto;
}
.featured__pitch {
  margin-top: var(--space-4);
  color: var(--c-graphite);
  font-size: var(--fs-body);
}
.featured__list {
  list-style: none;
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}
.featured__list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--fs-small);
}
.featured__list li::before {
  content: "";
  flex-shrink: 0;
  width: 7px; height: 7px;
  margin-top: .5em;
  background: var(--c-red);
  border-radius: var(--radius-pill);
}
.featured__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.featured__figure { position: relative; }
/* genuine spec value — mono is intentional here */
.featured__spec {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-ink);
  background: color-mix(in srgb, var(--c-surface) 88%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2) var(--space-4);
}

@media (max-width: 900px) {
  .featured__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
}

/* ============================================================
   9 — STANDORT & REICHWEITE (dark map moment)
   ============================================================ */
.reach {
  position: relative;
  background: var(--c-dark);
  color: var(--c-on-dark);
  overflow: clip;
}
.reach::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 110% at 80% 12%, color-mix(in srgb, var(--c-red) 11%, transparent), transparent 60%),
    radial-gradient(120% 120% at 90% -8%, color-mix(in srgb, var(--c-on-dark) 5%, transparent), transparent 55%);
  pointer-events: none;
}
.reach__inner {
  position: relative;
  z-index: 1;
  display: grid;
  /* text column gets equal/slightly-more room than the wide-but-short map */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-16);
}
.reach .eyebrow { color: color-mix(in srgb, var(--c-on-dark) 64%, transparent); }
.reach__title {
  font-size: var(--fs-h2);
  margin-top: var(--space-4);
  line-height: var(--lh-snug);
  text-wrap: balance;
}
.reach__title .accent { color: var(--c-red); }
/* Kundenwunsch 25.08.: „Unsere Wurzeln" liest sich zu klein. Lead auf
   dieselbe Stufe wie .hook__lead, Adresse und Regionen auf Fließtext. */
.reach__lead {
  margin-top: var(--space-5);
  max-width: 52ch;
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: var(--lh-snug);
  color: color-mix(in srgb, var(--c-on-dark) 82%, transparent);
}
.reach__hq {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--space-8);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: color-mix(in srgb, var(--c-on-dark) 72%, transparent);
}
.reach__hq-label {
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: var(--fs-label);
  color: color-mix(in srgb, var(--c-on-dark) 50%, transparent);
}
.reach__hq-name { color: var(--c-on-dark); font-weight: 600; }
.reach__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-6);
}
.reach__list li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--c-on-dark) 16%, transparent);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  color: color-mix(in srgb, var(--c-on-dark) 82%, transparent);
}
.reach__list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: var(--radius-pill);
  background: var(--c-red);
}
/* arrow link to /unternehmen/#standort — shared .section-head__link
   pattern (on-dark variant), only spacing is local */
.reach__link { margin-top: var(--space-8); }

/* map figure — framed as a deliberate panel so the wide/short graphic
   reads as an intentional piece next to the taller text column. Radius +
   border match the dark-band token language. */
.reach__map {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--c-on-dark) 12%, transparent);
  background: color-mix(in srgb, var(--c-on-dark) 3%, transparent);
}
.reach__svg {
  width: 100%;
  height: auto;
  display: block;
  color: color-mix(in srgb, var(--c-on-dark) 26%, transparent);
}
.reach__dots { opacity: .85; }
.reach__pin {
  fill: color-mix(in srgb, var(--c-on-dark) 72%, transparent);
}
.reach__hqmark .reach__pulse {
  fill: none;
  stroke: var(--c-red);
  stroke-width: 1.2;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: reachPulse 3s var(--ease-soft) infinite;
}
.reach__hqmark .reach__pulse--2 { animation-delay: 1.5s; }
@keyframes reachPulse {
  0%   { transform: scale(.3); opacity: .55; }
  70%  { opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}
.reach__cap {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .04em;
  color: color-mix(in srgb, var(--c-on-dark) 48%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .reach__hqmark .reach__pulse { animation: none; opacity: 0; }
}

@media (max-width: 900px) {
  .reach__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .reach__map { order: -1; max-width: 520px; }
}

/* ============================================================
   5 — KUNDEN (auto-scrolling logo marquee, after the stats band)
   ============================================================ */
.kunden { background: var(--c-base); }
.marquee {
  position: relative;
  overflow: hidden;
  /* soft fade-out on both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 42s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__group {
  list-style: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee__item {
  display: grid;
  place-items: center;
  min-width: clamp(160px, 18vw, 210px);
  height: 88px;
  padding-inline: var(--space-6);
}
/* Kundenlogos: ruhig monochrom, Farbe erst beim Hover — gleiche
   Behandlung wie die Logo-Leiste auf /referenzen/. */
.marquee__logo {
  /* feste Höhe (nicht max-height): SVG-Logos ohne intrinsische Größe
     bekommen so überhaupt erst eine Höhe. Sehr breite Wortmarken
     werden über max-width + contain sauber eingepasst. */
  height: 34px;
  width: auto;
  max-width: clamp(120px, 14vw, 170px);
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: opacity var(--dur-fast) var(--ease-soft), filter var(--dur-fast) var(--ease-soft);
}
.marquee__item:hover .marquee__logo { filter: grayscale(0); opacity: 1; }
/* .logos__mark lebt in components.css — Wortmarken-Fallback, falls
   für einen Kunden (noch) keine Logodatei vorliegt. */
.marquee__item:hover .logos__mark { color: var(--c-ink); opacity: 1; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* reduced-motion: render as a static wrapped row, no animation */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee__track { animation: none; width: 100%; flex-wrap: wrap; }
  .marquee__group:nth-child(2) { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
}

/* ============================================================
   10 — PARTNER
   ============================================================ */
.partner-sec { background: var(--c-base); }
/* .partners__grid / .partner cards live in components.css (shared
   with Unternehmen). */

/* ============================================================
   11 — ANFRAGE CTA BAND (dark): shared .cta-band lives in
   components.css — no local copy.
   ============================================================ */

/* [data-reveal] initial states live in components.css. */

/* Titel ohne Eyebrow: kein Restabstand nach oben. */
.hook__title:first-child,
.featured__title:first-child,
.reach__title:first-child { margin-top: 0; }
