/* Home page only (loaded by _src/pages/home.mjs). Scope: the product list .pjl in the section "Unsere Produkte",
   nothing else. Built from the existing tokens: colours, hairlines, the type scale (names use .h-1), --gap, the motion
   curves and durations (--m-ease, --m-ease-soft, --t-mid, --t-slow). The scroll reveal is the existing one ([data-r]
   items, stepped by [data-stagger]).
   From 1024 px: three areas per row: category, short text, number and status | picture | large name.
   761–1023 px: text column with the name, picture on the right. Up to 760 px: category, name, then text and a small
   upright picture side by side. All rows have the same height (the tallest row sets it).
   Hover (only with a mouse or trackpad) and keyboard focus: the name moves 12 px to the right, the picture comes up to
   full strength and zooms to 1.03, the hairlines of the row get darker. Only transform, opacity, scale and colours
   change, so no row moves and nothing reflows. Reduced motion: no movement, changes at once. */
/* All rows as high as the tallest one (grid rows of 1fr), whatever the length of the texts. */
.pjl{display:grid;grid-auto-rows:1fr;margin-top:clamp(40px,5vw,88px)}
.pjl__i{display:grid;border-top:1px solid var(--c-line-2);transition:border-color var(--t-mid) var(--m-ease-soft)}
.pjl__i:last-child{border-bottom:1px solid var(--c-line-2)}
.pjl__a{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,3fr) minmax(0,6fr);grid-template-rows:auto auto 1fr;
  grid-template-areas:"c m n" "d m n" "f m n";column-gap:var(--gap);padding-block:clamp(24px,2.4vw,40px);color:var(--c-tx)}
.pjl__c{grid-area:c;font-size:var(--fs-meta);font-weight:500;line-height:1.4;letter-spacing:.08em;text-transform:uppercase;color:var(--c-tx)}
.pjl__d{grid-area:d;max-width:34ch;margin-top:12px;font-size:var(--t-16);line-height:1.5;color:var(--c-tx-2);text-wrap:pretty}
.pjl__f{grid-area:f;align-self:end;display:flex;align-items:baseline;gap:16px;margin-top:20px;font-size:var(--fs-meta);line-height:1.4;color:var(--c-tx-2);font-variant-numeric:tabular-nums}
.pjl__no{color:var(--c-tx)}
.pjl__m{grid-area:m;align-self:start;position:relative;overflow:hidden;transition:opacity var(--t-mid) var(--m-ease-soft)}
.pjl__m .slot{transition:scale var(--t-slow) var(--m-ease)}
.pjl__n{grid-area:n;align-self:center;justify-self:start;margin:0;white-space:nowrap;transition:transform var(--t-mid) var(--m-ease)}

/* Placeholder: while the cover is a numbered placeholder file, a quiet surface with the media number. */
.pjl__ph{display:none}
.pjl__m:has(img[src*="platzhalter/"]) .slot__m{visibility:hidden}
.pjl__m:has(img[src*="platzhalter/"]) .pjl__ph{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;
  padding:12px 14px;background:var(--c-s3);box-shadow:inset 0 0 0 1px var(--c-line);font-size:var(--fs-meta);line-height:1.35;color:var(--c-tx-2)}
.pjl__ph b{font-weight:500;letter-spacing:.06em;color:var(--c-tx)}
.show-slots .pjl__m .slot__m{visibility:visible}
.show-slots .pjl__ph{display:none!important}

/* Keyboard focus: the same state as hover. */
.pjl__i:focus-within{border-color:var(--c-line-3)}
.pjl__i:focus-within+.pjl__i{border-top-color:var(--c-line-3)}
.pjl__a:focus-visible .pjl__n{transform:translateX(12px)}
.pjl__a:focus-visible .pjl__m .slot{scale:1.03}
/* Mouse and trackpad only, so touch screens get no sticky hover state; the picture rests slightly lighter. */
@media (hover:hover) and (pointer:fine){
  .pjl__m{opacity:.82}
  .pjl__i:hover{border-color:var(--c-line-3)}
  .pjl__i:hover+.pjl__i{border-top-color:var(--c-line-3)}
  .pjl__a:hover .pjl__n{transform:translateX(12px)}
  .pjl__a:hover .pjl__m,.pjl__a:focus-visible .pjl__m{opacity:1}
  .pjl__a:hover .pjl__m .slot{scale:1.03}
}

@media (max-width:1023.98px){
  .pjl__a{grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-rows:auto auto auto 1fr;grid-template-areas:"c m" "n m" "d m" "f m"}
  .pjl__n{align-self:start;margin-top:10px}
  .pjl__d{margin-top:14px}
}
@media (max-width:760px){
  .pjl__a{grid-template-columns:minmax(0,1fr) minmax(0,34%);grid-template-rows:auto auto 1fr auto;grid-template-areas:"c c" "n n" "d m" "f m";padding-block:28px}
  .pjl__n{margin-top:8px}
  .pjl__d,.pjl__m{margin-top:16px}
}
@media (prefers-reduced-motion:reduce){
  .pjl__i,.pjl__m,.pjl__m .slot,.pjl__n{transition:none}
  .pjl__a:hover .pjl__n,.pjl__a:focus-visible .pjl__n{transform:none}
  .pjl__a:hover .pjl__m .slot,.pjl__a:focus-visible .pjl__m .slot{scale:none}
}
