/* ============================================================
   produkt.css — Produkt-Detail page (Schneckenförderer).
   Builds ONLY on the locked design language (tokens / base /
   components). Reuses .container, .section, .section-head,
   .eyebrow, .crumbs, .ph, .card, .btn-*, .accent — never
   redefines them. Three page-specific blocks live here:
     1) .prod-head  — Container 1: title block + Anfrage CTA.
     2) .prod-show  — Container 2: accessible carousel + copy.
     3) .prod-detail — Container 3: Vorteile / Einsatzbereiche
        groupings + a mono parameter table + Zubehör note.
   Plus the carousel chrome (.carousel*); the closing CTA is the
   shared .cta-band from components.css.
   Mono (--font-mono) is used ONLY for genuine spec content
   (the Auslegungsparameter table), per the locked convention.
   ============================================================ */

/* ------------------------------------------------------------
   Reveal initial states.
   The shared [data-reveal] init lives in pages.css, which this
   page does NOT load. Re-declare the same calm states here so
   motion.js can animate, and so the no-JS / reduced-motion
   fallbacks still reveal content. Identical values to the lock.
   ------------------------------------------------------------ */
/* [data-reveal] initial states live in components.css. */

/* ------------------------------------------------------------
   Shared section-head rhythm (single text column variant).
   pages.css owns the full .section-head; here we only need the
   page-head one-column collapse + lead, mirrored from
   loesungen.css so the left edge + cadence line up everywhere.
   ------------------------------------------------------------ */
/* .section-head lives in components.css. */

/* ============================================================
   CONTAINER 1 — PRODUCT HEAD
   Breadcrumb + eyebrow + h1 + one-line lead + primary Anfrage.
   Light band; lines up with the shared .container edge.
   ============================================================ */
.prod-head { background: var(--c-base); }
.prod-head .crumbs { margin-bottom: var(--space-8); }
.prod-head__inner { max-width: 64ch; }
.prod-head__title {
  font-size: var(--fs-h1);
  margin-top: var(--space-4);
  text-wrap: balance;
}
.prod-head__lead {
  margin-top: var(--space-5);
  color: var(--c-graphite);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: var(--lh-snug);
  max-width: 58ch;
}
.prod-head__actions { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ============================================================
   CONTAINER 2 — SHOWCASE
   Carousel (left) + product description (right). Tinted
   surface-2 band to separate it from the light head.
   ============================================================ */
.prod-show { background: var(--c-surface-2); }
.prod-show__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
}
.prod-show__copy { max-width: 52ch; }
.prod-show__copy .eyebrow { margin-bottom: var(--space-4); }
.prod-show__sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  margin-top: var(--space-8);
}
.prod-show__sub:first-of-type { margin-top: var(--space-2); }
.prod-show__copy p {
  margin-top: var(--space-3);
  color: var(--c-graphite);
  font-size: var(--fs-body);
}
.prod-show__lead {
  color: var(--c-ink) !important;
  font-size: var(--fs-body);
}

/* ============================================================
   CAROUSEL — accessible single-slide viewer.
   The .ph slides stack via grid (all in cell 1,1); only the
   active one is opaque. Controls (prev / dots / next) sit in a
   row beneath. Wired by carousel.js (progressive enhancement).
   ============================================================ */
.carousel { position: relative; }
.carousel:focus-visible { outline: 2px solid var(--c-red); outline-offset: 4px; border-radius: var(--radius-lg); }

.carousel__track {
  display: grid;
  grid-template-areas: "stack";
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--c-surface-2);
}
.carousel__slide {
  grid-area: stack;
  min-width: 0;
}
.carousel__slide .ph,
.carousel__slide .fig { border-radius: 0; box-shadow: none; }

/* Before JS upgrades it, slides are simply stacked + visible
   (no overlap collapse) so no-JS users still see every image. */
html:not(.reveal-ready) .carousel:not([data-carousel-ready]) .carousel__track {
  display: block;
}
/* Once carousel.js runs, only the active slide shows. */
.carousel[data-carousel-ready] .carousel__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-soft);
}
.carousel[data-carousel-ready] .carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.carousel__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-hairline);
  background: var(--c-surface);
  color: var(--c-ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft);
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn:hover {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-surface);
  transform: translateY(-1px);
}

.carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex: 1;
}
.carousel__dot {
  appearance: none;
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--c-ink) 18%, transparent);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft);
}
.carousel__dot:hover { background: color-mix(in srgb, var(--c-ink) 36%, transparent); }
.carousel__dot.is-active {
  background: var(--c-red);
  transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
  .carousel[data-carousel-ready] .carousel__slide { transition: none; }
  .carousel__btn, .carousel__dot { transition: none; }
}

/* ============================================================
   CONTAINER 3 — DETAIL
   .prod-detail, .prod-block, .prod-list, .spec-table, .prod-extra,
   .prod-note und .zubehoer-list liegen in components.css: die
   Übersichtsseiten der Untergruppen nutzen dieselben Bausteine.
   ============================================================ */

/* ---- responsive ---- */
@media (max-width: 860px) {
  .prod-show__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Closing CTA: page uses the shared .cta-band from components.css. */

/* Titel ohne Eyebrow: kein Restabstand nach oben. */
.prod-head__title:first-child { margin-top: 0; }
