/* ============================================================
   loesungen.css — Lösungen overview + group-landing pages.
   Builds ONLY on the locked design language (tokens / base /
   components / pages). Reuses .container, .section, .section-head,
   .eyebrow, .crumbs, .ph, .card, .btn-* — never redefines them.
   Two page-specific patterns live here:
     1) .kompetenz — alternating editorial image/text rows for the
        four Kompetenzfeld groups (overview page).
     2) .prodgrid — responsive product-card grid (group landing),
        each card reusing the .card surface + .ph treatment.
   Plus a shared .page-head (breadcrumb + section-head intro); the
   closing CTA uses the shared .cta-band from components.css.
   ============================================================ */

/* ------------------------------------------------------------
   PAGE HEAD — breadcrumb + intro section-head, light band.
   Keeps the shared .container left edge so it lines up with
   every section below; the crumbs sit a row above the head.
   ------------------------------------------------------------ */
.page-head { background: var(--c-base); }
/* The page head shares .section with the band below it; halving its
   bottom padding keeps the intro visually attached to its content
   instead of stacking two full section paddings (~260px gap). */
.page-head .section { padding-block-end: clamp(var(--space-10), 4vw, var(--space-12)); }
.page-head + .prodgrid-sec .section { padding-block-start: clamp(var(--space-8), 3vw, var(--space-10)); }
.page-head .crumbs { margin-bottom: var(--space-8); }
/* On the page head the section-head is a single text column, so
   collapse the home two-column grid to one and drop its bottom
   margin (the following section owns its own top padding). */
.page-head .section-head {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 0;
}
/* Page heads keep the h1 scale even though the shared .section-head__title
   is sized as an in-page h2 — sub-page titles use --fs-h1 site-wide. */
.page-head .section-head__title {
  font-size: var(--fs-h1);
  max-width: 18ch;
}
.page-head__lead {
  color: var(--c-graphite);
  max-width: 58ch;
  margin-top: var(--space-6);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: var(--lh-snug);
}

/* ------------------------------------------------------------
   PAGE HEAD — Übersichtsseiten der Untergruppen (Schneckenförderer,
   Förderbänder, Becherwerke): Text links, Familienbild rechts,
   darunter die Anfrage-Aktionen. Stapelt auf Tablet/Mobil.
   ------------------------------------------------------------ */
.page-head__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
}
.page-head__split .fig,
.page-head__split .ph { box-shadow: var(--shadow-md); }
.page-head__actions {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
@media (max-width: 860px) {
  .page-head__split {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
}

/* ============================================================
   KOMPETENZFELDER — alternating editorial rows (overview).
   Each group: a large .ph render on one side, copy + a
   "Produkte ansehen →" link on the other. Even rows flip the
   image to the opposite side for editorial rhythm. Tinted
   surface-2 band to separate it from the light page head.
   ============================================================ */
.kompetenz-sec { background: var(--c-surface-2); }
.kompetenz-list {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-16), 9vw, var(--space-24));
}
.kompetenz {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
}
/* every 2nd row: image to the right, copy to the left */
.kompetenz:nth-child(even) .kompetenz__figure { order: 2; }

.kompetenz__figure { position: relative; }
.kompetenz__figure .ph { box-shadow: var(--shadow-md); }

.kompetenz__body { max-width: 52ch; }
.kompetenz__title {
  font-size: var(--fs-h2);
  margin-top: var(--space-4);
  text-wrap: balance;
}
.kompetenz__desc {
  margin-top: var(--space-4);
  color: var(--c-graphite);
  font-size: var(--fs-body);
}
.kompetenz__desc + .kompetenz__desc { margin-top: var(--space-3); }
/* compact product link list per Kompetenzfeld — quiet text links
   separated by the dot pattern (see .hook__pillars in pages.css) */
.kompetenz__products {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-6);
  padding: 0;
}
.kompetenz__products li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.kompetenz__products li:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--c-ink) 24%, transparent);
}
.kompetenz__products a {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--c-graphite);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-soft);
}
.kompetenz__products a:hover,
.kompetenz__products a:focus-visible { color: var(--c-red); }
.kompetenz__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  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);
}
.kompetenz__link:hover,
.kompetenz__link:focus-visible {
  color: var(--c-red);
  border-color: var(--c-red);
  gap: var(--space-3);
}
.kompetenz__link .arr { transition: transform var(--dur-fast) var(--ease-soft); }
.kompetenz__link:hover .arr,
.kompetenz__link:focus-visible .arr { transform: translateX(3px); }

/* stack on tablet/mobile; keep image first for every row */
@media (max-width: 860px) {
  .kompetenz {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
  .kompetenz:nth-child(even) .kompetenz__figure { order: -1; }
  .kompetenz__figure { order: -1; }
}

/* ============================================================
   PRODGRID — responsive product-card grid (group landing).
   Each card: a .ph render on top, name + one-line teaser below.
   Anchor cards reuse the .card surface/shadow/hover language so
   they sit naturally beside the home tiles. Stub cards (no real
   page yet) are visually identical but flagged with a small
   "in Vorbereitung" hint and a not-emphatic cursor.
   ============================================================ */
.prodgrid-sec { background: var(--c-base); }
.prodgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.prodcard {
  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),
    border-color var(--dur-fast) var(--ease-soft);
}
/* only real links lift on hover — stub cards are static articles */
a.prodcard:hover,
a.prodcard:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.prodcard .ph { border-radius: 0; box-shadow: none; }
.prodcard__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  flex: 1;
}
.prodcard__title {
  font-size: var(--fs-h3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.prodcard__title .arr {
  color: var(--c-red);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-soft);
}
.prodcard:hover .arr,
.prodcard:focus-visible .arr { transform: translate(4px, -4px); }
.prodcard__teaser {
  font-size: var(--fs-small);
  color: var(--c-graphite);
  line-height: var(--lh-body);
}

/* stub cards: identical surface, no link affordance */
.prodcard[data-stub] .prodcard__title { justify-content: flex-start; }

/* one quiet note under the grid replaces per-card status chips */
/* ungenutzt: interne Notizen entfernt (Kundenwunsch 17.08.) */
.prodgrid__note {
  margin-top: var(--space-10);
  font-size: var(--fs-small);
  color: var(--c-graphite);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.prodgrid__note::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--c-red);
  border-radius: var(--radius-pill);
}

/* Übersichtsseiten der Untergruppen nutzen dasselbe Raster und dieselbe
   Karte wie die Gruppen-Landing (3 Spalten, Bild 4:3) — kein Sonderformat.
   Getöntes Band hebt das Karten-Raster vom hellen Seitenkopf ab */
.prodgrid-sec--tint { background: var(--c-surface-2); }
.page-head + .prodgrid-sec--tint .section {
  padding-block-start: clamp(var(--space-12), 6vw, var(--space-16));
}
/* Abschnittskopf über dem Raster: weniger Abstand als im Seitenfluss */
.prodgrid-sec .section-head { margin-bottom: var(--space-10); }
.prodgrid-sec .section-head__lead { max-width: 52ch; }

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

/* sub-grouped landing (e.g. Bahntechnik: Gleisbau + Garnituren).
   Each group = a quiet sub-heading row above its own .prodgrid.
   Vertical rhythm between groups matches the kompetenz spacing. */
.prodgroup + .prodgroup { margin-top: clamp(var(--space-16), 6vw, var(--space-24)); }
.prodgroup__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--c-hairline);
}
.prodgroup__title {
  font-size: var(--fs-h3);
  font-weight: 600;
}
.prodgroup__count {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-graphite);
}

/* Closing CTA: pages use the shared .cta-band from components.css. */
