/* The placeholder site (placeholder-site.mjs): Shop-Modus frame only, no stage
   (sams3 docs/ci/shop/README.md). Values from onlinetex-shop.css. */
@import url('/onlinetex-shop.css');

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/archivo-normal-100-900-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/instrument-sans-normal-400-700-latin.woff2') format('woff2');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--shop-leinen);
}

body {
  margin: 0 auto;
  max-width: 76rem;
  padding: 0 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--shop-leinen);
  color: var(--shop-marine);
  font: 400 17px/1.5 var(--shop-text);
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--shop-marine);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--shop-marine);
  outline-offset: 2px;
  border-radius: 2px;
}

.kopf {
  padding: 1.5rem 0 1rem;
}

.kopf img {
  display: block;
  height: 40px;
  width: auto;
}

main {
  flex: 1;
  padding: 1.5rem 0 3rem;
  overflow-wrap: break-word;
}

main > * {
  max-width: 70ch;
}

h1,
h2 {
  font-family: var(--shop-titel);
  font-stretch: 112%;
  line-height: 1.1;
  hyphens: auto;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  margin: 0.25rem 0 1rem;
  max-width: none;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-weight: 700;
  font-size: 1.3rem;
  margin: 2rem 0 0.5rem;
}

.start > h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 3rem;
}

.zeile {
  margin: 0;
  color: var(--shop-marine-leise);
  font-weight: 600;
}

.lead {
  font-size: 1.2rem;
  color: var(--shop-marine-leise);
}

.muted {
  color: var(--shop-marine-leise);
}

.blatt {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--shop-r-blatt);
  background: var(--shop-mat);
  border: 1px solid var(--shop-linie);
}

.blatt h2 {
  margin-top: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.wege {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 3rem;
  margin: 1.25rem 0 0.5rem;
}

.wege p {
  margin: 0;
  color: var(--shop-marine-leise);
}

.wege a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--shop-marine);
}

.punkte {
  padding-left: 1.25rem;
}

.punkte li,
.legal li {
  margin: 0.3rem 0;
}

.legal ul {
  padding-left: 1.25rem;
}

.hinweis {
  padding: 0.75rem 1rem;
  border-radius: var(--shop-r-feld);
  background: var(--shop-info-grund);
  color: var(--shop-info-text);
}

.form-lines {
  max-width: 36rem;
  padding: 1rem 1.25rem;
  border-radius: var(--shop-r-blatt);
  background: var(--shop-mat);
}

.form-lines p {
  border-bottom: 1.5px dashed var(--shop-strich);
  min-height: 1.6rem;
  margin: 0.4rem 0;
}

.fuss {
  border-top: 1.5px dashed var(--shop-strich);
  padding: 1.25rem 0 2rem;
  color: var(--shop-marine-leise);
  font-size: 0.95rem;
}

.fuss p {
  margin: 0 0 0.5rem;
}

.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.fuss a {
  color: var(--shop-marine-leise);
  padding: 0.25rem 0;
}

.fuss a[aria-current='page'] {
  color: var(--shop-marine);
  font-weight: 600;
}

/* Start page: the wall of garments across the whole width, the text on the
   frame where the wall fades out, the contact as a hang tag in front of it.
   Every tile is a mat with a quiet room in the garment's colour (the stage's
   rule: the room never touches the Leinen frame). */
html {
  overflow-x: clip;
}

.start > .held {
  max-width: none;
}

.held {
  position: relative;
  width: 100vw;
  margin: -1.5rem 0 1rem calc(50% - 50vw);
  min-height: min(50rem, 92vh);
  display: grid;
  align-items: center;
  overflow: hidden;
}

/* The frame takes the left half back for the text; the wall shows right. */
.held::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    var(--shop-leinen) 0,
    var(--shop-leinen) calc(50% - 6rem),
    rgb(243 239 232 / 0.75) calc(50% + 2rem),
    rgb(243 239 232 / 0) calc(50% + 14rem)
  );
  pointer-events: none;
}

.held-inhalt {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 4rem 16px 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.held .text {
  max-width: 34rem;
}

.wand {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1600px;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
}

/* One tilted plane: every lane at the same depth, so the gaps stay equal. */
.ebene {
  position: absolute;
  inset: -40% -18%;
  display: flex;
  gap: 18px;
  transform: rotateX(26deg) rotateZ(-14deg);
}

.spalte {
  flex: 1;
  min-width: 0;
}

.lauf {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: lauf 90s linear infinite;
}

.spalte:nth-child(even) .lauf {
  animation-name: lauf-zurueck;
}

/* Each column holds its tiles twice: half its height plus half a gap is one round. */
@keyframes lauf {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-50% - 9px));
  }
}

@keyframes lauf-zurueck {
  from {
    transform: translateY(calc(-50% - 9px));
  }
  to {
    transform: translateY(0);
  }
}

.kachel {
  display: block;
  padding: 7px;
  border-radius: 18px;
  background: var(--shop-mat);
  box-shadow:
    0 1px 0 rgb(31 42 68 / 0.05),
    0 22px 34px -22px rgb(31 42 68 / 0.45);
}

.kachel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 270;
  object-fit: contain;
  padding: 10% 8% 4%;
  border-radius: 12px;
  background: var(--shop-leinen-2);
  /* The stage's room (CI "Bühne"): L 91.5 %, chroma half the garment's, 0.03–0.075. */
  background: oklch(from var(--t) 0.915 clamp(0.03, c * 0.5, 0.075) h);
}

/* The claim as in the shop (sams3 docs/ci/shop, "Sternchen, Claim und
   Fußnote"): the asterisk ends the headline, the footnote stands right-aligned
   below, the dashed line falls from the asterisk's middle. --stern is its width. */
.claim {
  --gr: clamp(2.5rem, 5vw, 4.6rem);
  --stern: calc(var(--gr) * 0.62);
  width: fit-content;
  max-width: 100%;
  margin: 0.5rem 0 1.5rem;
  font-size: var(--gr);
}

.claim h1 {
  margin: 0;
  font-size: 1em;
  line-height: 1.02;
  white-space: nowrap;
}

.stern {
  display: inline-block;
  width: var(--stern);
  vertical-align: top;
  margin: 0.04em 0 0 0.04em;
}

.stern img {
  display: block;
  width: 100%;
  height: auto;
}

.claim-fuss {
  contain: inline-size;
  margin: 4px calc(var(--stern) / 2 - 1px + var(--gr) * 0.02) 0 0;
  padding: 6px 18px 4px 0;
  border-right: 2px dashed var(--shop-strich);
  text-align: right;
  font-size: 1.05rem;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The hang tag. The holder carries the shadow (a clip-path would cut it off)
   and the cord, which runs down behind the tag into its hole. */
.etikett-halter {
  justify-self: center;
  position: relative;
  width: min(26rem, 100%);
  transform: rotate(-3.5deg);
  transform-origin: 50% 1.7rem;
  filter: drop-shadow(0 2px 1px rgb(31 42 68 / 0.12)) drop-shadow(0 28px 32px rgb(31 42 68 / 0.3));
}

.etikett-halter::before {
  content: '';
  position: absolute;
  left: calc(50% - 1px);
  bottom: calc(100% - 1.7rem);
  height: 40rem;
  border-left: 2px solid var(--shop-marine-leise);
}

.etikett {
  position: relative;
  padding: 3.75rem 2rem 1.5rem;
  color: var(--shop-marine);
  /* Eyelet ring around the hole, on the tag's mat. */
  background:
    radial-gradient(
      circle at 50% 1.7rem,
      transparent 0.6rem,
      var(--shop-leinen-2) 0.65rem,
      var(--shop-leinen-2) 1rem,
      transparent 1.05rem
    ),
    var(--shop-mat);
  clip-path: polygon(16% 0, 84% 0, 100% 2.75rem, 100% 100%, 0 100%, 0 2.75rem);
  mask-image: radial-gradient(circle at 50% 1.7rem, transparent 0.6rem, #000 0.65rem);
}

.etikett p {
  margin: 0 0 1.25rem;
}

.etikett-titel {
  font-family: var(--shop-titel);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.15;
}

.kanal {
  display: block;
  margin: 0 -0.5rem;
  padding: 0.6rem 0.5rem;
  border-radius: var(--shop-r-feld);
  text-decoration: none;
}

.kanal:hover {
  background: var(--shop-leinen);
}

.kanal-art {
  display: block;
  font-size: 0.9rem;
  color: var(--shop-marine-leise);
}

.kanal-wert {
  display: block;
  font-family: var(--shop-titel);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

/* Perforation: the CI's dashed line. */
.etikett .antwort {
  margin: 1rem -2rem 0;
  padding: 1rem 2rem 0;
  border-top: 2px dashed var(--shop-strich);
  font-size: 0.95rem;
  color: var(--shop-marine-leise);
}

@media (prefers-reduced-motion: reduce) {
  .lauf {
    animation: none;
  }
}

@media (max-width: 52rem) {
  .held {
    min-height: 0;
    align-items: start;
  }

  .held-inhalt {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
    padding: 2rem 16px 4rem;
  }

  .ebene {
    inset: -15% -110%;
  }

  /* Short cord: on a phone the text stands above the tag, not beside it. */
  .etikett-halter {
    transform: rotate(-2deg);
  }

  .claim {
    --gr: 2.6rem;
  }

  .held::before {
    background: linear-gradient(
      180deg,
      var(--shop-leinen) 0,
      var(--shop-leinen) 29rem,
      rgb(243 239 232 / 0) 36rem
    );
  }

  .etikett-halter::before {
    height: 4.5rem;
  }

  .etikett {
    padding-inline: 1.5rem;
  }

  .etikett .antwort {
    margin-inline: -1.5rem;
    padding-inline: 1.5rem;
  }
}
