/* Pack Trail — landing page */

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 0; overflow-x: clip; }
.hero-title { font-size: clamp(40px, 7.6vw, 116px); }

/* the changing word: box. → mailer. → jar. … */
.swap {
  display: inline-grid; justify-items: start;
  clip-path: inset(-.15em -.3em -.2em -.05em);
  transition: width .55s var(--ease);
}
.swap > span {
  grid-area: 1 / 1; white-space: nowrap;
  opacity: 0; transform: translateY(130%);
  transition: transform .65s var(--ease), opacity .35s;
}
.swap > span.is-on { opacity: 1; transform: none; }
.swap > span.is-out { opacity: 0; transform: translateY(-130%); }

.hero-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 28px 48px; margin-top: clamp(24px, 3vw, 40px);
}
.hero-row .lead { max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- the trail: packaging → details → documents → DoC ---------- */
.trail {
  position: relative; display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; margin-top: clamp(40px, 5vw, 72px); padding: clamp(28px, 4vw, 56px);
  background: var(--ground-2); border-radius: 28px; overflow: hidden;
}
.trail-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.trail-track, .trail-prog { fill: none; stroke-width: 4; stroke-linecap: round; }
.trail-track { stroke: #d6dcd5; }
.trail-prog, .trail-dot, .trail-halo { transition: opacity .45s; }
.trail-prog { stroke: var(--accent); }
.trail-dot { fill: var(--accent); }
.trail-halo { fill: var(--accent); opacity: .14; }
.trail.fade .trail-prog, .trail.fade .trail-dot, .trail.fade .trail-halo { opacity: 0; }

.st {
  position: relative; z-index: 1; flex: 0 1 220px; min-width: 0; min-height: 176px;
  padding: 18px 20px 20px; background: var(--ground); border-radius: 18px;
  transition: transform .5s var(--ease);
}
.st:nth-of-type(1) { margin-top: 120px; }
.st:nth-of-type(2) { margin-top: 0; }
.st:nth-of-type(3) { margin-top: 150px; }
.st:nth-of-type(4) { margin-top: 36px; }
.st.on { transform: translateY(-4px); }

.st-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.st-head i {
  width: 10px; height: 10px; border-radius: 50%; background: var(--ground-3);
  transition: background-color .3s, transform .4s var(--spring);
}
.st.on .st-head i { background: var(--accent); transform: scale(1.2); }

.st-body > * { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.st.on .st-body > * { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.st.on .st-body > :nth-child(2) { transition-delay: .12s; }
.st.on .st-body > :nth-child(3) { transition-delay: .24s; }

.st-pack { display: grid; gap: 14px; }
.pk-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--kraft); color: var(--ink); }
.pk-ic svg { width: 30px; height: 30px; }
.st-pack b { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
/* long German words (Konformitätserklärung) break at syllables inside the small cards */
.st-pack b, .st-doc b, .st-kv dd { hyphens: auto; overflow-wrap: break-word; }

.st-kv { display: grid; gap: 10px; }
.st-kv div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.st-kv dt { color: var(--ink-2); }
.st-kv dd { font-weight: 600; text-align: right; }

.st-files { list-style: none; display: grid; gap: 10px; }
.st-files li { display: grid; gap: 7px; padding: 10px 12px; border-radius: 10px; background: var(--ground-2); font-size: 14px; font-weight: 500; }
.st-files .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-files em { display: block; height: 4px; border-radius: 4px; background: var(--ground-3); overflow: hidden; }
.st-files em i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.st.on .st-files em i { transform: scaleX(1); transition: transform .9s var(--ease) .25s; }
.st.on .st-files li:nth-child(2) em i { transition-delay: .55s; }

.st-doc { display: grid; gap: 8px; justify-items: start; }
.st-doc b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.st-doc #pk-doc { font-size: 15px; color: var(--ink-2); }
.st-ready {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 12px 6px 8px;
  border-radius: var(--r-pill); background: var(--mint); color: var(--deep); font-size: 14px; font-weight: 600;
}
.st-ready svg { width: 18px; height: 18px; }
.st-body > .st-ready { transform: scale(.7); }
.st.on .st-body > .st-ready { transform: none; transition: opacity .3s .5s, transform .5s var(--spring) .5s; }

/* ---------- the film ---------- */
/* the film's own ground is --ground-2, so on the same ground the film plays right on the page;
   its blue end card then leads into the blue final section below */
.film { position: relative; padding: clamp(100px, 12vw, 170px) 0; background: var(--ground); }
.film-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; }
.film-head > * { min-width: 0; }
/* the frame grows into place as it scrolls in (scale set by home.js) */
.film-frame {
  position: relative; margin-top: clamp(40px, 5vw, 64px); aspect-ratio: 16 / 9;
  border-radius: 28px; overflow: hidden; background: var(--ground-2); transform-origin: 50% 0;
}
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ground-2); }
/* the cover's play button sits in the empty bottom-left of the poster frame */
.film-play {
  position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 18px;
  padding: clamp(16px, 3.2vw, 44px); border: 0; border-radius: inherit; background: none;
  color: var(--ink); text-align: left; cursor: pointer; transition: opacity .35s;
}
.film-play .pp {
  flex: none; display: grid; place-items: center; width: clamp(52px, 6vw, 88px); aspect-ratio: 1;
  border-radius: 50%; background: var(--accent); color: #fff;
  transition: transform .4s var(--spring), background-color .2s;
}
.film-play .pp svg { width: 38%; height: 38%; margin-left: 8%; }
.film-play:hover .pp { transform: scale(1.08); background: var(--accent-press); }
.film-play:active .pp { transform: scale(.95); }
.film-play b { display: block; font-size: clamp(17px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.film-play .t { display: block; margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.film-frame.playing .film-play { opacity: 0; pointer-events: none; }
.film-end { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; animation: pop .5s var(--ease) both; }
.btn-ic { width: 15px; height: 15px; }

/* ---------- why now ---------- */
.ppwr { padding: clamp(120px, 14vw, 200px) 0; }
.ppwr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
/* "12.08.2026" is about 5em wide: keep it inside its half of the grid */
.date { font-size: min(8.2vw, 124px); font-weight: 600; letter-spacing: -.05em; line-height: .9; white-space: nowrap; }
.date span {
  display: block; margin-top: 16px;
  font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--ink-2);
}
.statement { font-size: clamp(24px, 2.5vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.js .statement .w { color: var(--ink-3); transition: color .35s; }
.js .statement .w.on { color: var(--ink); }
.ppwr .note { max-width: 48ch; margin-top: 28px; }

/* ---------- how it works: the builder ---------- */
.how { position: relative; padding: clamp(100px, 12vw, 170px) 0; background: var(--ground-2); }
.how-head .lead.flash { animation: pop .5s var(--ease); }

/* the trail from the check result down to "Four steps.": drawn while scrolling, the dot lands on the heading */
.bridge { position: absolute; left: 0; z-index: 1; width: 100%; overflow: visible; pointer-events: none; }
.bridge-path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; opacity: 0; }
.bridge .trail-dot, .bridge .trail-halo { opacity: 0; transition: opacity .3s; }
.bridge.on .bridge-path, .bridge.on .trail-dot { opacity: 1; }
.bridge.on .trail-halo { opacity: .14; }
.bridge.landed .trail-halo { transform-box: fill-box; transform-origin: center; animation: land 1.6s var(--ease) 3; }
@keyframes land { from { opacity: .35; transform: scale(.6); } to { opacity: 0; transform: scale(2.4); } }
.how-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; }
.builder {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(16px, 3vw, 40px);
  align-items: start; margin-top: clamp(40px, 5vw, 64px);
}

/* the checklist: the sample article on the left, its requirements on the right */
.cl-side, .cl-card { padding: clamp(24px, 3vw, 40px); background: var(--ground); border-radius: 22px; }
.cl-side { position: sticky; top: calc(var(--nav-h) + 24px); overflow: hidden; }
.cl-ex { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cl-side h3 { margin-top: 8px; }
.cl-pack { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink-2); }
.cl-pack .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ground-2); color: var(--ink); }
.cl-pack .ic svg { width: 18px; height: 18px; }
.cl-count { display: flex; align-items: baseline; gap: 8px; margin-top: 32px; }
.cl-count b { font-size: clamp(48px, 5vw, 64px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.cl-count b.flash { animation: pop .4s var(--ease); }
.cl-count > span:not(.status) { font-size: 20px; color: var(--ink-2); }
.cl-count .status { margin-left: auto; align-self: center; }
.status {
  flex: none; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--ground-2); font-size: 15px; font-weight: 600;
  transition: background-color .3s, color .3s;
}
.status.busy { background: var(--accent-soft); color: var(--accent-press); }
.status.ok { background: var(--mint); color: var(--deep); }
.meter { height: 10px; margin: 18px 0 16px; border-radius: 10px; background: var(--ground-2); overflow: hidden; }
.meter i { display: block; width: 0; height: 100%; border-radius: 10px; background: var(--accent); transition: width .5s var(--ease); }
.cl-msg { min-height: 3em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.cl-card h3 { margin-bottom: 12px; }
.cl-list { margin: 0; padding: 0; list-style: none; }
.cl-list li + li { border-top: 1px solid rgba(13, 26, 21, .08); }
.cl-row {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 4px;
  border: 0; background: none; color: inherit; font: inherit; font-size: 15px; text-align: left; cursor: pointer;
  border-radius: 10px; transition: background-color .2s;
}
.cl-row:hover { background: var(--ground-2); }
.cl-ic {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(13, 26, 21, .22); color: transparent;
  transition: background-color .25s, box-shadow .25s, color .25s, transform .35s var(--spring);
}
.cl-ic svg { width: 14px; height: 14px; }
.cl-nm { flex: 1; min-width: 0; }
.cl-st { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b25e09; }
.cl-row[aria-pressed="true"] .cl-ic { background: var(--ink); box-shadow: none; color: #fff; transform: scale(1.08); }
.cl-row[aria-pressed="true"] .cl-st { color: var(--ink-2); }

.doc-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 0; max-height: 0; transition: max-height .5s var(--ease), margin .5s var(--ease); }
.cl-side.ready .cl-acts { display: none; }
.cl-side.ready .doc-foot { min-height: 110px; max-height: 140px; margin-top: 16px; }
.ready-cta { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease), visibility 0s .5s; }
.seal {
  display: grid; place-items: center; flex: none; width: 104px; height: 104px;
  border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 1.15; text-align: center;
  opacity: 0; transform: scale(1.7) rotate(-25deg); transition: opacity .2s, transform .2s;
}
.cl-side.ready .seal { opacity: 1; transform: rotate(-8deg); transition: opacity .2s, transform .55s var(--spring); }
.cl-side.ready .ready-cta { opacity: 1; visibility: visible; transform: none; transition: opacity .4s .2s, transform .5s var(--ease) .2s; }

/* ---------- manufacturer check ---------- */
.deliver { padding: clamp(120px, 14vw, 200px) 0; background: var(--deep); color: #fff; overflow: hidden; }
.deliver-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.deliver .lead { margin-top: 24px; color: #d6e4dc; }
.deliver ul { list-style: none; display: grid; gap: 14px; margin-top: 36px; font-size: 19px; }
.deliver li { display: flex; align-items: center; gap: 14px; }
.deliver li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); }
.check-label { margin-top: 36px; font-weight: 600; }
.deliver .check-label + ul { margin-top: 14px; }

/* the manufacturer check card */
.hc { display: grid; gap: 26px; padding: clamp(22px, 3vw, 36px); border-radius: 22px; background: var(--ground); color: var(--ink); }
.hc h3 { font-size: clamp(22px, 2vw, 28px); }
.hc-q { min-width: 0; border: 0; animation: pop .45s var(--ease) both; }
.hc-q legend { margin-bottom: 12px; padding: 0; font-size: 17px; font-weight: 600; }
.hc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-opts button {
  min-height: 44px; padding: 10px 16px; border: 0; border-radius: 14px;
  background: var(--ground-2); font-size: 15px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.hc-opts button:hover { background: var(--ground-3); }
.hc-opts button:active { transform: scale(.97); }
.hc-opts button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-press); font-weight: 600; }
.hc-note { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.hc-result { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--mint); color: var(--deep); }
.hc-result.no { background: var(--accent-soft); color: #0b3a8f; }
.hc-result.pop { animation: pop .5s var(--ease) both; }
.hc-result > svg { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.hc-result b { display: block; font-size: 18px; }
.hc-result p { margin-top: 4px; font-size: 16px; }
.hc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.hc-again { padding: 6px 0; border: 0; background: none; color: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- faq ---------- */
.faq { padding: clamp(120px, 14vw, 200px) 0; background: var(--ground); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 80px); }
.faq details { margin-bottom: 10px; border-radius: 18px; background: var(--ground-2); transition: background-color .2s; }
.faq details:hover { background: var(--ground-3); }
/* with the video shown (English page) the FAQ turns grey again, so the two white blocks do not merge */
.film:not([hidden]) ~ .faq { background: var(--ground-2); }
.film:not([hidden]) ~ .faq details { background: var(--ground); }
.film:not([hidden]) ~ .faq details:hover { background: var(--ground-3); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 22px 26px;
  list-style: none; cursor: pointer; font-size: 19px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: .8; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 62ch; padding: 0 26px 24px; }
.faq details[open] p { animation: pop .4s var(--ease); }

/* ---------- close + footer ---------- */
.close { padding: clamp(96px, 12vw, 170px) 0 0; background: var(--accent); color: #fff; overflow: hidden; }
.close h2 { max-width: 13ch; }
.close .lead { margin-top: 22px; color: #e3ecff; }
.close .hero-cta { margin-top: 32px; }
.close .btn-primary { background: #fff; color: var(--accent); }
.close .btn-primary:hover { background: #e8efff; }
.close .btn-quiet { background: var(--accent-press); color: #fff; }
.close .btn-quiet:hover { background: #0047bb; }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 120px; font-size: 15px; color: #dbe6ff; }
.foot-org { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-meta address { font-style: normal; }
.foot-meta nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-meta a { text-decoration: none; transition: color .2s; }
.foot-meta a:hover { color: #fff; }
/* the logo returns at full width; the trail draws itself when it scrolls in */
.giant-logo { width: 100%; height: auto; margin: 56px 0 clamp(28px, 4vw, 56px); color: #fff; --pt-dot: #fff; }
.js .giant-logo .pt-path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.js .giant-logo.in .pt-path { stroke-dashoffset: 0; }
.js .giant-logo .pt-dot { transform: scale(0); transition: transform .6s var(--spring) 1.7s; }
.js .giant-logo.in .pt-dot { transform: none; }

/* ---------- responsive ---------- */
.ppwr-grid > *, .how-head > *, .builder > *, .deliver-grid > *, .faq-grid > * { min-width: 0; }

/* the preview only sticks when the screen is tall enough to show all of it */
@media (max-height: 720px) {
  .cl-side { position: static; }
}

/* tablets and small laptops: the trail zigzags over two rows */
@media (min-width: 641px) and (max-width: 1180px) {
  .trail { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16%; row-gap: 32px; padding: clamp(28px, 4vw, 48px) 6%; }
  .st { width: 100%; max-width: 300px; }
  .st:nth-of-type(1) { justify-self: start; margin-top: 0; }
  .st:nth-of-type(2) { justify-self: end; margin-top: 64px; }
  .st:nth-of-type(3) { justify-self: start; margin-top: -24px; }
  .st:nth-of-type(4) { justify-self: end; margin-top: 40px; }
}

@media (max-width: 900px) {
  .ppwr-grid, .how-head, .builder, .deliver-grid, .faq-grid, .film-head { grid-template-columns: 1fr; }
  .cl-side { position: static; }
  .date { font-size: min(14.5vw, 128px); }
}

/* phones: the trail runs down the screen */
@media (max-width: 640px) {
  .film-frame { border-radius: 18px; }
  /* the frame is small here: just the round button, in the middle */
  .film-play { align-items: center; justify-content: center; }
  .film-play .lbl { display: none; }
  .trail { flex-direction: column; align-items: stretch; gap: 32px; padding: 20px; border-radius: 22px; }
  .st { flex: none; width: 78%; max-width: 340px; min-height: 0; }
  .st:nth-of-type(n) { margin-top: 0; }
  .st:nth-of-type(even) { align-self: flex-end; }

  .hero-cta .btn { flex: 1 1 auto; }
  .doc-foot .seal { width: 84px; height: 84px; font-size: 12px; }
}

/* hover lifts only where there is a real pointer, so they do not stick after a tap */

/* what else Pack Trail does, under the builder: a heading on the left, a ruled list on the right (like the FAQ) */
.more { margin-top: clamp(80px, 10vw, 140px); }
.more h3 { margin-bottom: clamp(24px, 3vw, 36px); font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; line-height: 1.15; }
/* full-width ruled rows: the name on the left, what it does on the right */
.more-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid rgba(13, 26, 21, .12); }
.more-list li { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 8px clamp(24px, 4vw, 64px); align-items: baseline; padding: 22px 0; border-top: 1px solid rgba(13, 26, 21, .12); }
.more-list b { font-size: 20px; font-weight: 600; }
.more-list em { margin-left: 8px; color: var(--accent); font-size: 13px; font-style: normal; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
.more-list span { max-width: 62ch; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 640px) { .more-list li { grid-template-columns: 1fr; } }
