/* ==========================================================================
   Vomesa – NFC-Bewertungsschilder
   Scroll-Effekte werden über die CSS-Variablen --p (linear) und --e (geglättet)
   gesteuert, die app.js pro [data-scroll]-Sektion zwischen 0 und 1 setzt.
   ========================================================================== */

:root {
  --paper: #ECEAE3;
  --paper-2: #E1DED4;
  --white: #F8F7F3;
  --ink: #111110;
  --ink-2: #2A2926;
  --muted: #75726A;
  --line: rgba(17, 17, 16, .14);
  --line-light: rgba(236, 234, 227, .16);
  --acid: #C8FF2E;
  --acid-deep: #A6DD00;
  --copper: #D08A4E;
  --signal: #FF4F1A;

  --f-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 28px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* feines Papierkorn */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.mono {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.kicker { color: var(--muted); margin-bottom: 1.2rem; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  padding: .95em 1.4em;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--acid { background: var(--acid); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--acid:hover { box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 30px -10px rgba(166, 221, 0, .9); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--lg { padding: 1.15em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform .4s var(--ease), box-shadow .2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { transform: rotate(90deg); box-shadow: inset 0 0 0 1.5px var(--ink); }

.link-btn {
  border: 0;
  background: none;
  padding: .2em 0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Navigation – zieht sich beim Scrollen zu einer schmalen Pille zusammen
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 14px var(--gutter);
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1480px;
  margin: 0 auto;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: transparent;
  transition: max-width .8s var(--ease), background .5s, color .5s, gap .8s var(--ease), box-shadow .5s, padding .6s var(--ease);
}
.nav.is-compact .nav__inner {
  max-width: 760px;
  gap: 1rem;
  background: rgba(17, 17, 16, .92);
  color: var(--paper);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(236, 234, 227, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.04em;
  text-decoration: none;
}
.nav__logo span { color: var(--acid-deep); }
.nav.is-compact .nav__logo span { color: var(--acid); }
.nav__links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.6rem);
  transition: gap .8s var(--ease);
}
.nav.is-compact .nav__links { gap: 1.1rem; }
.nav__links a {
  position: relative;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cart {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 0;
  padding: .6rem .7rem .6rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: .92rem;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.nav.is-compact .nav__cart { background: var(--acid); color: var(--ink); }
.nav__cart svg { width: 19px; height: 19px; }
.nav__count {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: .75rem;
}
.nav.is-compact .nav__count { background: var(--ink); color: var(--acid); }
.nav__cart.bump { animation: bump .6s var(--ease); }
@keyframes bump {
  30% { transform: scale(1.18) rotate(-4deg); }
  60% { transform: scale(.95) rotate(2deg); }
}

/* --------------------------------------------------------------------------
   NFC-Bewertungsschild (wiederverwendbare Komponente, Größe über --w)
   -------------------------------------------------------------------------- */
.nfc-sign {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 1;
  border-radius: calc(var(--w) * .09);
  font-size: calc(var(--w) / 20);
  background: #fff;
  overflow: hidden;
  isolation: isolate;
  /* sichtbare Kante + Schlagschatten */
  box-shadow:
    .12em .12em 0 #EDEDED,
    .24em .24em 0 #E0E0E0,
    .36em .36em 0 #D2D2D2,
    .48em .48em 0 #C6C6C6,
    0 calc(var(--w) * .1) calc(var(--w) * .18) calc(var(--w) * -.05) rgba(0, 0, 0, .45);
}
.nfc-sign > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  user-select: none;
}
.nfc-sign::after { /* Lichtreflex, folgt der Maus über --mx */
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .28) 48%, transparent 58%);
  transform: translateX(calc(var(--mx, 0) * 30%));
  pointer-events: none;
  z-index: 3;
}

/* programmiertes Schild: Funkwelle pulsiert aus dem NFC-Symbol */
.nfc-sign__pulse {
  position: absolute;
  left: 43%;
  top: 72%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: .18em solid #00499D;
  transform: translate(-50%, -50%) scale(.7);
  opacity: 0;
  pointer-events: none;
}
.is-programmed .nfc-sign__pulse { animation: signPing 1.8s ease-out infinite; }
@keyframes signPing {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.7); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}

/* --------------------------------------------------------------------------
   HERO – Schlagzeile schiebt sich diagonal um die Karte zusammen
   -------------------------------------------------------------------------- */
.hero { position: relative; height: 230vh; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--nav-h) + 3vh) var(--gutter) 4vh;
  overflow: hidden;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  justify-self: center;
  padding: .55em 1em;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acid-deep);
  box-shadow: 0 0 0 0 rgba(166, 221, 0, .6);
  animation: dot 2s infinite;
}
@keyframes dot { 70% { box-shadow: 0 0 0 10px rgba(166, 221, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(166, 221, 0, 0); } }

.hero__title {
  --k: calc(1 - var(--e, 0));
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(1.2vw + var(--k) * 1vw);
  font-size: clamp(2.6rem, 5.8vw, 7.4rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  white-space: nowrap;
}
.hero__word { display: inline-block; will-change: transform; }
.hero__word--l { transform: translate(calc(var(--k) * -3vw), calc(var(--k) * -19vh)); }
.hero__word--r { transform: translate(calc(var(--k) * 3vw), calc(var(--k) * 19vh)); }
.hero__word em { font-weight: 400; letter-spacing: -.02em; }

.hero__card {
  display: inline-block;
  transform:
    perspective(1400px)
    rotateX(calc(var(--k) * 18deg + var(--rx, 0deg)))
    rotateY(var(--ry, 0deg))
    rotateZ(calc(var(--k) * -10deg))
    scale(calc(1 + var(--k) * .38));
}
.hero__card .nfc-sign { --w: clamp(150px, 17vw, 290px); }

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  opacity: calc(1 - var(--p, 0) * 1.4);
}
.hero__lead { max-width: 460px; font-size: 1.08rem; color: var(--ink-2); }
.hero__actions { display: flex; align-items: center; gap: 1.5rem; }
.hero__scroll { color: var(--muted); animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* --------------------------------------------------------------------------
   Laufband – bewegt sich mit der Scrollposition
   -------------------------------------------------------------------------- */
.band {
  background: var(--ink);
  color: var(--paper);
  padding: 3.2rem 0;
  overflow: hidden;
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.band__row { display: flex; gap: .45em; white-space: nowrap; width: max-content; will-change: transform; }
.band__row i { font-style: normal; color: var(--acid); font-size: .5em; align-self: center; }
.band__row--a { transform: translateX(calc(var(--p, 0) * -38%)); }

/* --------------------------------------------------------------------------
   Explosionszeichnung – Schichten fahren zusammen
   -------------------------------------------------------------------------- */
.layers {
  position: relative;
  height: 320vh;
  background: var(--ink);
  color: var(--paper);
}
.layers .kicker { color: rgba(236, 234, 227, .55); }
.layers__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  align-items: center;
  gap: 2rem;
  padding: var(--nav-h) var(--gutter) 2rem;
  overflow: hidden;
}
.layers__title {
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 800;
}
.layers__title em { color: var(--acid); }
.layers__legend {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  gap: .15rem;
}
.layers__legend li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line-light);
  color: rgba(236, 234, 227, .38);
  transition: color .4s, padding-left .5s var(--ease);
}
.layers__legend li.is-on { color: var(--paper); padding-left: .6rem; }
.layers__legend li.is-on .mono { color: var(--acid); }
.layers__readout {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  margin: 2rem 0 0;
}
.layers__readout div { display: grid; gap: .25rem; }
.layers__readout dt { color: rgba(236, 234, 227, .45); }
.layers__readout dd { margin: 0; font-size: 1rem; color: var(--paper); }
#thickness { color: var(--acid); min-width: 9ch; }

.layers__stage {
  display: grid;
  place-items: center;
  height: 100%;
  perspective: 2200px;
}
.stack {
  --w: min(32vw, 380px);
  --gap: calc(6px + (1 - var(--e, 0)) * 92px);
  position: relative;
  width: var(--w);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(58deg - var(--e, 0) * 10deg))
    rotateZ(calc(-38deg + var(--e, 0) * 8deg));
}
.stack__layer {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--w) * .075);
  transform-style: preserve-3d;
  transform: translateZ(calc((var(--i) - 2) * var(--gap)));
}
.stack__layer--back {
  background: linear-gradient(160deg, #1d1d1b, #0d0d0c);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .06);
  display: grid;
  place-items: center;
}
.stack__layer--back p {
  font-family: var(--f-mono);
  font-size: calc(var(--w) * .035);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(236, 234, 227, .3);
  text-align: center;
}
.stack__layer--core { background: linear-gradient(135deg, #F4F4F2, #D9D9D6); }
.stack__layer--antenna {
  background: rgba(236, 234, 227, .04);
  box-shadow: inset 0 0 0 1px rgba(236, 234, 227, .2);
}
.stack__layer--antenna svg { width: 100%; height: 100%; }
.stack__layer--print .nfc-sign { --w: min(32vw, 380px); box-shadow: none; }
/* Schicht 01: Epoxid-Harz wird eingegossen (--pour 0→1 und --stream kommen aus app.js) */
.stack__layer--resin {
  pointer-events: none;
  /* Das Harz wird auf den Druck gegossen: liegt direkt auf Schicht 02 */
  transform: translateZ(calc(var(--gap) + 1px));
}
.stack__layer--resin .stack__tag { display: none; }
.resin__gl, .resin__stream-gl { display: none; }
.resin__pt { position: absolute; left: 34%; top: 30%; width: 1px; height: 1px; }
/* WebGL aktiv: realistische Version statt der CSS-Vereinfachung */
.layers.has-gl-resin .resin,
.layers.has-gl-resin .resin__stream { display: none; }
.layers.has-gl-resin .resin__gl {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.layers__stage { position: relative; }
.layers.has-gl-resin .resin__stream-gl {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.resin {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}
.resin__blob {
  position: absolute;
  left: 34%;
  top: 30%;
  width: 230%;
  height: 230%;
  transform: translate(-50%, -50%) scale(var(--pour, 0)) rotate(calc(var(--pour, 0) * 28deg));
  filter: drop-shadow(0 0 calc(var(--w) * .012) rgba(255, 246, 220, .6)) drop-shadow(0 calc(var(--w) * .01) calc(var(--w) * .02) rgba(0, 0, 0, .18));
}
/* ausgehärteter Glanz über der ganzen Fläche */
.resin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .34), transparent 55%),
    linear-gradient(120deg, transparent 38%, rgba(255, 255, 255, .22) 48%, transparent 58%);
  box-shadow: inset 0 0 0 calc(var(--w) * .006) rgba(255, 255, 255, .55), inset 0 calc(var(--w) * -.02) calc(var(--w) * .04) rgba(255, 255, 255, .12);
  opacity: calc((var(--pour, 0) - .85) * 6.6);
}
/* Auftreffpunkt: kleine Wellenringe, solange gegossen wird */
.resin__splash {
  position: absolute;
  left: 34%;
  top: 30%;
  width: calc(var(--w) * .16);
  aspect-ratio: 1;
  border-radius: 50%;
  border: calc(var(--w) * .006) solid rgba(255, 255, 255, .6);
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
}
.layers.is-pouring .resin__splash { animation: resinSplash 1.1s ease-out infinite; }
@keyframes resinSplash {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: calc(var(--stream, 0) * .9); }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
/* Harzstrahl: steht senkrecht im Bild (Gegendrehung zur Stapelneigung) */
.resin__stream {
  position: absolute;
  left: 34%;
  top: calc(30% - var(--w) * .9);
  width: calc(var(--w) * .022);
  height: calc(var(--w) * .9);
  margin-left: calc(var(--w) * -.011);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 246, 220, 0), rgba(255, 246, 220, .55) 35%, rgba(255, 255, 255, .9));
  box-shadow: 0 0 calc(var(--w) * .02) rgba(255, 246, 220, .45);
  transform-origin: 50% 100%;
  transform:
    rotateZ(calc(38deg - var(--e, 0) * 8deg))
    rotateX(calc(-58deg + var(--e, 0) * 10deg))
    scaleY(var(--stream, 0));
  opacity: var(--stream, 0);
}
.stack__tag {
  position: absolute;
  left: calc(var(--w) * -.09);
  top: calc(var(--w) * -.02);
  padding: .3em .6em;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  transform: rotateZ(38deg) rotateX(-58deg);
  opacity: calc(1 - var(--e, 0) * 1.6);
}

/* --------------------------------------------------------------------------
   Überschriften der Sektionen
   -------------------------------------------------------------------------- */
.section-head { padding: 0 var(--gutter); max-width: 1480px; margin: 0 auto 3.5rem; }
.section-head h2 {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: .93;
  letter-spacing: -.05em;
  font-weight: 800;
}
.section-head--light .kicker { color: rgba(236, 234, 227, .55); }
.section-head--light h2 em { color: var(--acid); }

/* --------------------------------------------------------------------------
   Bento – Kacheln fliegen von außen zu einem dichten Raster zusammen
   -------------------------------------------------------------------------- */
.bento-wrap { padding: 9rem 0 8rem; }
.bento {
  --m: 1;
  --k: calc(1 - var(--e, 0));
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px; /* fester Abstand: das Zusammenschieben passiert nur per transform, die Seitenhöhe bleibt stabil */
}
.tile {
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  min-height: 250px;
  transform:
    translate(calc(var(--dx) * var(--k) * var(--m) * 1.25), calc(var(--dy) * var(--k) * var(--m) * 1.25))
    rotate(calc(var(--r) * var(--k)));
  opacity: calc(.2 + var(--e, 0) * .8);
  will-change: transform;
}
.tile .mono { color: var(--muted); }
.tile h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1; letter-spacing: -.04em; font-weight: 700; margin-top: auto; }
.tile p:last-child { color: var(--ink-2); font-size: .98rem; }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--big h3 { font-size: clamp(3rem, 6vw, 6.4rem); letter-spacing: -.055em; }
.tile--ink { background: var(--ink); color: var(--paper); box-shadow: none; }
.tile--ink .mono, .tile--ink p:last-child { color: rgba(236, 234, 227, .65); }
.tile--ink h3 em { color: var(--acid); }
.tile--acid { background: var(--acid); box-shadow: none; }
.tile--acid .mono { color: var(--ink-2); }
.tile--wide { grid-column: span 4; min-height: 0; flex-direction: row; align-items: end; justify-content: space-between; gap: 2rem; }
.tile--wide h3 { margin: 0; max-width: 16ch; font-size: clamp(1.8rem, 3.2vw, 3rem); }
.tile--wide .mono { align-self: start; }
.tile--line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.tile--wide p:last-child { max-width: 36ch; }

/* --------------------------------------------------------------------------
   Schritte – Karten stapeln sich
   -------------------------------------------------------------------------- */
.steps {
  background: var(--ink);
  color: var(--paper);
  padding: 8rem 0 6rem;
  border-radius: 48px 48px 0 0;
}
.steps__list {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: 1480px;
}
.step {
  position: sticky;
  top: calc(var(--nav-h) + 20px + var(--i) * 22px);
  min-height: 52vh;
  margin-bottom: 9vh;
  padding: clamp(1.6rem, 4vw, 3.4rem);
  border-radius: 36px;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: clamp(1.2rem, 4vw, 4rem);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--c, 0) * .06));
  filter: brightness(calc(1 - var(--c, 0) * .35));
  box-shadow: 0 -20px 50px -30px rgba(0, 0, 0, .6);
}
.step:nth-child(2) { background: var(--acid); }
.step:nth-child(3) { background: var(--white); margin-bottom: 0; }
.step__num {
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.step h3 { font-size: clamp(1.8rem, 3.6vw, 3.4rem); letter-spacing: -.045em; line-height: 1; margin-bottom: 1rem; }
.step p { max-width: 52ch; font-size: 1.08rem; color: var(--ink-2); }
.step__visual {
  align-self: end;
  padding: .8em 1.1em;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Shop / Konfigurator
   -------------------------------------------------------------------------- */
.shop { padding: 9rem 0 7rem; }
.shop__grid {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.shop__preview { position: sticky; top: calc(var(--nav-h) + 24px); min-width: 0; }
.shop__stage {
  position: relative;
  aspect-ratio: 1 / .92;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 45%, rgba(200, 255, 46, .35), transparent 55%),
    radial-gradient(rgba(17, 17, 16, .16) 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--paper-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1200px;
}
.shop__card {
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -12deg)) rotateZ(-4deg);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  z-index: 1;
}
.shop__card .nfc-sign { --w: min(330px, 29vw); }
.shop__shadow {
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: 55%;
  height: 7%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(17, 17, 16, .3);
  filter: blur(18px);
}
.shop__badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  padding: .5em .9em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: background .3s, color .3s;
}
.shop__badge.is-programmed { background: var(--acid); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.shop__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .5s var(--ease), transform .8s var(--ease);
  pointer-events: none;
}
.shop__photo.is-on { opacity: 1; transform: none; }
.shop__stage.is-photo .shop__badge { z-index: 2; }
.shop__caption {
  position: absolute;
  right: .8rem;
  bottom: .7rem;
  z-index: 2;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgb(0 0 0 / .45);
  color: #fff;
  font-size: .68rem;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.shop__stage.is-photo .shop__caption { opacity: 1; }
.shop__thumbs { display: flex; gap: .5rem; margin-top: 1rem; overflow-x: auto; scrollbar-width: none; }
.shop__thumbs::-webkit-scrollbar { display: none; }
.shop__thumbs button {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .9rem .4rem .4rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
  font-size: .9rem;
  flex: none;
  transition: box-shadow .2s, background .2s;
}
.shop__thumbs button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.shop__thumbs button.is-active { background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.shop__thumbs img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.shop__facts {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.shop__facts li {
  display: grid;
  gap: .2rem;
  padding: .9rem 1rem;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.shop__facts span { color: var(--muted); }

.config { display: grid; gap: 1.2rem; }
.config__group {
  margin: 0;
  padding: 1.6rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.config__label { padding: 0; margin-bottom: 1rem; color: var(--muted); float: left; width: 100%; }
.config__label + * { clear: both; }

.company-cta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 0;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.company-cta[hidden] { display: none; }
.company-cta__text { flex: 1; display: grid; gap: .3rem; }
.company-cta__text strong { font-size: 1.1rem; letter-spacing: -.02em; }
.company-cta__text span { font-size: .88rem; opacity: .7; }
.company-cta__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  transition: transform .3s var(--ease);
}
.company-cta__go svg { width: 20px; height: 20px; }
.company-cta:hover .company-cta__go { transform: translateX(4px); }
.company-cta:active { transform: scale(.98); }
.company-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.company-chip {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1rem;
  border-radius: 16px;
  background: var(--acid);
  animation: chipIn .5s var(--ease);
}
.company-chip[hidden] { display: none; }
.company-chip > svg { flex: none; width: 22px; height: 22px; }
.company-chip div { flex: 1; display: grid; line-height: 1.3; min-width: 0; }
.company-chip span { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes chipIn { from { opacity: 0; transform: translateY(-8px); } }

.qty {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  overflow: hidden;
}
.qty__btn {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  transition: background .2s;
}
.qty__btn:hover { background: var(--paper-2); }
.qty__input {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  padding: .3rem 0;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; background: var(--paper); }

.presets { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.presets button {
  border: 0;
  padding: .5em 1em;
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--f-mono);
  font-size: .85rem;
  transition: background .2s, color .2s;
}
.presets button:hover { background: var(--paper-2); }
.presets button.is-active { background: var(--ink); color: var(--paper); }

.tiers {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.tier {
  padding: .7rem .5rem;
  border-radius: 12px;
  background: var(--paper);
  text-align: center;
  transition: background .3s, transform .3s var(--ease);
}
.tier span { display: block; }
.tier__range { font-family: var(--f-mono); font-size: .68rem; color: var(--muted); }
.tier__price { font-weight: 700; font-size: .98rem; letter-spacing: -.02em; }
.tier.is-active { background: var(--acid); transform: translateY(-3px); }
.tier.is-active .tier__range { color: var(--ink-2); }

.config__total {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.config__unit { color: rgba(236, 234, 227, .6); }
.config__sum { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; }
.config__save { color: var(--acid); min-height: 1.2em; }
.config__legal { font-size: .82rem; color: var(--muted); padding: 0 .4rem; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { padding: 4rem 0 8rem; }
.faq__list { max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
.faq details { border-top: 1.5px solid var(--ink); }
.faq details:last-child { border-bottom: 1.5px solid var(--ink); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 0;
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.03em;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-weight: 400;
  transition: transform .4s var(--ease), background .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--acid); }
.faq details p { max-width: 70ch; padding: 0 0 1.8rem; color: var(--ink-2); font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Abschluss – Wörter fahren aufeinander zu
   -------------------------------------------------------------------------- */
.closer {
  --k: calc(1 - var(--e, 0));
  padding: 6rem var(--gutter) 9rem;
  text-align: center;
  overflow: hidden;
}
.closer__line {
  font-size: clamp(3rem, 11vw, 12rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.06em;
  white-space: nowrap;
}
.closer__line span { display: inline-block; }
.closer__a { transform: translateX(calc(var(--k) * -30vw)); }
.closer__b { transform: translateX(calc(var(--k) * 30vw)); }
.closer__c { transform: translateX(calc(var(--k) * 30vw)); }
.closer__d { transform: translateX(calc(var(--k) * -30vw)); }
.closer__d em { color: var(--acid-deep); }
.closer .btn { margin-top: 3rem; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding: 2rem var(--gutter);
  background: var(--ink);
  color: var(--paper);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer nav a { text-decoration: none; opacity: .75; }
.footer nav a:hover { opacity: 1; }
.footer .mono { opacity: .55; }
.footer nav[aria-label="Branchen"] { flex-basis: 100%; gap: .4rem 1.2rem; font-size: .85rem; }

/* --------------------------------------------------------------------------
   Dialoge: Modal, Warenkorb, Kasse
   -------------------------------------------------------------------------- */
dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(17, 17, 16, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: modalIn .55s var(--ease); }
dialog[open]::backdrop { animation: fade .4s ease; }
dialog.is-closing { animation: modalOut .3s ease forwards; }
dialog.is-closing::backdrop { animation: fade .3s ease reverse forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(20px) scale(.97); } }

.modal {
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border-radius: 32px;
  background: var(--paper);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal__inner { display: grid; gap: 1.4rem; padding: clamp(1.3rem, 3vw, 2.4rem); }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.modal__head .kicker { margin-bottom: .5rem; }
.modal__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.045em; line-height: 1; }
.modal__note {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: .95rem;
  color: var(--ink-2);
}
.modal__body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.4rem; align-items: start; }
.modal__body--single { grid-template-columns: 1fr; }
.modal__notice { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; background: var(--acid); font-size: .9rem; line-height: 1.45; }
.modal__notice svg { flex: none; width: 20px; height: 20px; margin-top: .1rem; }
.modal__foot { display: flex; justify-content: flex-end; gap: .7rem; flex-wrap: wrap; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: .85rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.field input:not([type=radio]), .field select {
  width: 100%;
  padding: .9rem 1rem;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 1rem;
  transition: box-shadow .2s, background .2s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23111110' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
}
.field input:not([type=radio]):hover, .field select:hover { box-shadow: inset 0 0 0 1.5px rgba(17, 17, 16, .35); }
.field input:not([type=radio]):focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(200, 255, 46, .6); }
.field__err { display: none; font-style: normal; font-size: .8rem; color: var(--signal); font-family: var(--f-sans); }
.is-invalid .field__err, .field__err.is-shown { display: block; }
.is-invalid input { box-shadow: inset 0 0 0 2px var(--signal) !important; }

.check { display: flex; gap: .7rem; align-items: start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--ink); flex: none; }
.promo { margin: 0 0 1rem; }
.promo__row { display: flex; gap: .5rem; }
.promo__row input { flex: 1; text-transform: uppercase; letter-spacing: .04em; }
.promo__row input::placeholder { text-transform: none; letter-spacing: 0; }
.promo__apply { flex: none; padding-inline: 1.1rem; }
.promo__ok { margin: 0; font-size: .85rem; font-weight: 600; }
.promo__ok::before { content: '✓ '; }
#aktionTermsWrap { margin-bottom: .9rem; }
.totals .totals__discount dt, .totals .totals__discount dd { color: var(--ink); }


/* Warenkorb als Seitenpanel */
.drawer {
  margin: 0 0 0 auto;
  width: min(480px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100vw;
  background: var(--paper);
  border-radius: 28px 0 0 28px;
}
.drawer[open] { animation: drawerIn .55s var(--ease); }
.drawer.is-closing { animation: drawerOut .3s ease forwards; }
@keyframes drawerIn { from { transform: translateX(100%); } }
@keyframes drawerOut { to { transform: translateX(100%); } }
.drawer__inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.8rem; letter-spacing: -.04em; }
.drawer__body { overflow-x: hidden; overflow-y: auto; padding: 1rem 1.6rem; overscroll-behavior: contain; }
.drawer__foot { padding: 1.2rem 1.6rem 1.6rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.drawer__foot[hidden] { display: none; }

.empty { display: grid; place-items: center; gap: 1rem; text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty .nfc-sign { --w: 150px; transform: rotate(-8deg); opacity: .5; }

.line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  animation: chipIn .4s var(--ease);
}
.line .nfc-sign { --w: 64px; }
.line__title { font-weight: 700; letter-spacing: -.02em; }
.line__meta { font-size: .84rem; color: var(--muted); line-height: 1.35; margin-top: .15rem; }
.line__controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; margin-top: .7rem; }
.mini-qty {
  display: inline-grid;
  grid-template-columns: 30px 44px 30px;
  align-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.mini-qty button { height: 30px; border: 0; background: none; font-size: 1.05rem; border-radius: 50%; }
.mini-qty button:hover { background: var(--paper-2); }
.mini-qty input { width: 100%; border: 0; background: transparent; text-align: center; font-family: var(--f-mono); font-size: .85rem; -moz-appearance: textfield; }
.mini-qty input::-webkit-inner-spin-button, .mini-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.line__remove { border: 0; background: none; font-size: .82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.line__remove:hover { color: var(--signal); }
.line__edit { border: 0; background: none; font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.line__price { text-align: right; font-weight: 700; white-space: nowrap; }
.line__price small { display: block; font-weight: 400; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }

.ship-meter p { color: var(--ink-2); margin-bottom: .5rem; text-transform: none; letter-spacing: 0; }
.ship-meter__bar { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.ship-meter__bar span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width .6s var(--ease), background .3s; }
.ship-meter.is-free .ship-meter__bar span { background: var(--acid-deep); }

.totals { margin: 0; display: grid; gap: .45rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-weight: 600; }
.totals__grand { padding-top: .6rem; border-top: 1px solid var(--line); font-size: 1.25rem; }
.totals__grand dt { color: var(--ink); font-weight: 700; }
.totals__grand small { font-size: .75rem; font-weight: 400; color: var(--muted); }
.totals__grand dd { font-weight: 800; letter-spacing: -.03em; }

/* Kasse */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6rem; align-items: start; }
.summary { padding: 1.4rem; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.summary ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .7rem; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.summary li span:first-child { color: var(--ink-2); }
.summary li small { display: block; color: var(--muted); }

.checkout__side { display: grid; gap: 1rem; align-content: start; }
.checkout__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; font-size: .92rem; color: var(--ink-2); }
.checkout__facts li { display: flex; gap: .6rem; align-items: start; }
.checkout__facts svg { flex: none; width: 18px; height: 18px; margin-top: .15rem; color: var(--acid-deep); }
.checkout__error { padding: .9rem 1rem; border-radius: 14px; background: rgba(255, 79, 26, .1); color: #B23208; font-size: .92rem; }
.btn.is-loading { opacity: .7; cursor: progress; }
.btn.is-loading svg { animation: nudgeX .8s ease-in-out infinite; }
@keyframes nudgeX { 50% { transform: translateX(5px); } }

/* Toast + fliegende Karte */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  padding: .9rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: .95rem;
  transform: translate(-50%, 160%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-shown { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease); }
.toast b { color: var(--acid); font-weight: 600; }
.flyer { position: fixed; z-index: 95; pointer-events: none; transform-origin: 0 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: span 2; }
  .modal__body, .checkout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 68px; }
  .nav__links { display: none; }
  .nav.is-compact .nav__inner { max-width: 340px; }

  .hero { height: 200vh; }
  .hero__title { flex-direction: column; gap: 5vw; font-size: clamp(2.6rem, 12vw, 5rem); }
  .hero__word--l { transform: translate(calc(var(--k) * -7vw), calc(var(--k) * -5vh)); }
  .hero__word--r { transform: translate(calc(var(--k) * 7vw), calc(var(--k) * 5vh)); }
  .hero__card .nfc-sign { --w: min(54vw, 250px); }
  .hero__card { transform: perspective(1000px) rotateX(calc(var(--k) * 14deg + var(--rx, 0deg))) rotateY(var(--ry, 0deg)) rotateZ(calc(var(--k) * -8deg)) scale(calc(1 + var(--k) * .12)); }
  .hero__foot { flex-direction: column; align-items: start; gap: 1rem; }
  .hero__lead { font-size: 1rem; }
  .hero__scroll { display: none; }

  .layers { height: 280vh; }
  .layers__sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: calc(var(--nav-h) + 1rem); }
  .layers__legend { display: none; }
  .layers__readout { margin-top: 1rem; }
  .stack, .stack__layer--print .nfc-sign { --w: min(58vw, 290px); }
  .stack { --gap: calc(4px + (1 - var(--e, 0)) * 52px); }
  .stack__tag { font-size: 10px; }

  .bento { --m: .45; }
  .bento-wrap { padding: 6rem 0; }

  .step { grid-template-columns: 1fr; min-height: 0; top: calc(var(--nav-h) + 12px + var(--i) * 14px); margin-bottom: 6vh; }
  .step__visual { justify-self: start; }

  .shop__grid { grid-template-columns: 1fr; }
  .shop__preview { position: static; }
  .shop__stage { aspect-ratio: 1 / .9; }
  .shop__card .nfc-sign { --w: min(250px, 58vw); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile--big, .tile--wide { grid-column: auto; grid-row: auto; }
  .tile { min-height: 0; }
  .tile h3 { margin-top: 1.4rem; }
  .tile--wide { flex-direction: column; align-items: start; }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tier { padding: .6rem .2rem; }
  .tier__price { font-size: .8rem; }
  .tier__range { font-size: .6rem; }
  .shop__facts { grid-template-columns: 1fr 1fr 1fr; }
  .shop__facts li { padding: .7rem; font-size: .66rem; }
  .fields { grid-template-columns: 1fr; }
  .config__group, .config__total { padding: 1.2rem; }
  .config__total .btn { width: 100%; }
  .nav__cart-label { display: none; }
  .modal { border-radius: 24px; }
  .drawer { border-radius: 0; }
  .steps { border-radius: 28px 28px 0 0; }
}

/* Weniger Bewegung: alle Sektionen im Endzustand, kein Sticky-Scrollen */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .layers { height: auto; }
  .hero__sticky, .layers__sticky { position: relative; min-height: 100svh; height: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------------
   Google-Unternehmenssuche im Firmendetails-Fenster
   -------------------------------------------------------------------------- */
  width: 100%;
  padding: .9rem 1rem .9rem 2.6rem;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 1rem;
}
  position: absolute; right: .9rem; top: 50%;
  width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--ink);
  opacity: 0; transition: opacity .2s;
  animation: gspin .7s linear infinite;
  pointer-events: none;
}
@keyframes gspin { to { transform: rotate(360deg); } }
  position: absolute;
  z-index: 5;
  left: 0; right: 0; top: calc(100% + 6px);
  margin: 0;
  padding: .35rem;
  list-style: none;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line);
  max-height: 290px;
  overflow: auto;
}
.fields input[readonly] { background: var(--paper-2); color: var(--ink-2); }

/* ==========================================================================
   Mobile-Optimierung: Menü, Kaufleiste, Bottom-Sheets, sichere Ränder,
   kleine Bildschirme und Querformat
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
button, a, summary, label { touch-action: manipulation; }

/* Ränder für Notch und Home-Leiste (viewport-fit=cover) */
.nav { padding-top: max(14px, env(safe-area-inset-top)); padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
.drawer__foot { padding-bottom: calc(1.6rem + env(safe-area-inset-bottom)); }

.nav__actions { display: flex; align-items: center; gap: .5rem; }

/* Sterne im dritten Schritt als Grafik (Schrift enthält kein ★) */
.step__visual--stars { display: inline-flex; gap: .3em; color: var(--ink); }
.step__visual--stars svg { width: 1.05em; height: 1.05em; }

/* Menü-Knopf (zwei Striche → Kreuz) */
.nav__menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
  color: inherit;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 0;
}
.nav__menu span { display: block; width: 18px; height: 2px; margin: 0 auto; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobiles Menü: Vollbild, Links fahren gestaffelt herein */
.mmenu {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
}
.mmenu::backdrop { background: rgba(17, 17, 16, .4); }
.mmenu[open] { animation: menuIn .5s var(--ease); }
.mmenu.is-closing { animation: menuOut .3s ease forwards; }
@keyframes menuIn { from { clip-path: circle(0% at calc(100% - 44px) 40px); } to { clip-path: circle(150% at calc(100% - 44px) 40px); } }
@keyframes menuOut { to { opacity: 0; } }
.mmenu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
}
.mmenu__head { display: flex; justify-content: space-between; align-items: center; }
.mmenu__head .nav__logo span { color: var(--acid); }
.mmenu .icon-btn { box-shadow: inset 0 0 0 1.5px rgba(236, 234, 227, .3); color: var(--paper); }
.mmenu__links { display: grid; margin-top: auto; }
.mmenu__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-light);
  font-size: clamp(2rem, 10vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.05;
  text-decoration: none;
}
.mmenu__links a .mono { color: var(--acid); font-size: .7rem; letter-spacing: .08em; transform: translateY(-.4em); }
.mmenu__links a, .mmenu > .mmenu__inner > .btn { opacity: 0; transform: translateY(24px); }
.mmenu[open] .mmenu__links a, .mmenu[open] .mmenu__inner > .btn { animation: menuItem .6s var(--ease) forwards; animation-delay: calc(.12s + var(--i) * .06s); }
@keyframes menuItem { to { opacity: 1; transform: none; } }
.mmenu__contact { color: rgba(236, 234, 227, .6); text-transform: none; letter-spacing: 0; font-size: .85rem; }
.mmenu__contact a { text-decoration: none; }

/* Kaufleiste unten (nur mobil, per JS eingeblendet) */
.buybar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .55rem .55rem .55rem 1.1rem;
  border-radius: 999px;
  background: rgba(17, 17, 16, .94);
  color: var(--paper);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(calc(100% + 30px));
  transition: transform .5s var(--ease);
}
.buybar.is-shown { transform: none; }
.buybar__info { display: grid; line-height: 1.15; min-width: 0; }
.buybar__info .mono { color: rgba(236, 234, 227, .6); font-size: .62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__info strong { font-size: 1.25rem; letter-spacing: -.03em; }
.buybar .btn { padding: .85em 1.1em; font-size: .92rem; }

.shop__hint { display: none; }

/* Hover-Effekte nur für Geräte mit Maus */
@media (hover: none) {
  .icon-btn:hover { transform: none; }
  .btn:hover svg { transform: none; }
}

@media (max-width: 860px) {
  .nav__menu { display: grid; }
  .buybar { display: flex; }

  /* Startbereich: Schild skaliert auch mit der Bildschirmhöhe */
  .hero__card .nfc-sign { --w: min(54vw, 32svh, 250px); }
  .hero__title { font-size: clamp(2.4rem, min(12vw, 7.2svh), 5rem); }
  .hero__eyebrow { font-size: .62rem; max-width: 100%; }

  /* größere Tippflächen */
  .presets button { min-width: 48px; min-height: 44px; font-size: .95rem; }
  .qty { grid-template-columns: 56px 1fr 56px; }
  .footer nav a { display: inline-block; padding: .55rem 0; }
  .mini-qty { grid-template-columns: 38px 48px 38px; }
  .mini-qty button { height: 38px; }
  .mini-qty input { font-size: 16px; } /* verhindert Zoom beim Antippen (iOS) */
  .line__remove, .line__edit { padding: .5rem 0; }
  .check input { width: 22px; height: 22px; }
  .check { font-size: .95rem; }

  /* Schild per Wischen drehen */
  .shop__stage { touch-action: pan-y; }
  .shop__hint {
    display: block;
    position: absolute;
    bottom: .9rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: .4em .8em;
    border-radius: 999px;
    background: rgba(248, 247, 243, .8);
    color: var(--ink-2);
    font-size: .6rem;
    white-space: nowrap;
    transition: opacity .4s;
  }
  .shop__stage.is-dragged .shop__hint, .shop__stage.is-photo .shop__hint { opacity: 0; }
  .shop__stage.is-dragging .shop__card { transition: none; }

  /* Platz für die Kaufleiste am Seitenende */
  .footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }

  /* Dialoge als Bottom-Sheet */
  .modal {
    width: 100vw;
    max-width: 100vw;
    margin: auto 0 0;
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top)));
    border-radius: 26px 26px 0 0;
  }
  .modal[open] { animation: sheetIn .5s var(--ease); }
  .modal.is-closing { animation: sheetOut .3s ease forwards; }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  @keyframes sheetOut { to { transform: translateY(100%); } }
  .modal__inner { padding-bottom: calc(1.3rem + env(safe-area-inset-bottom)); }
  .modal__inner::before { content: ""; justify-self: center; width: 40px; height: 5px; margin: -.4rem 0 -.3rem; border-radius: 5px; background: rgba(17, 17, 16, .18); }
  .modal__foot { position: sticky; bottom: calc(-1.3rem - env(safe-area-inset-bottom)); margin: 0 -1.3rem calc(-1.3rem - env(safe-area-inset-bottom)); padding: .9rem 1.3rem calc(.9rem + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -12px 24px -18px rgba(0, 0, 0, .4); }
  .modal__foot .btn { flex: 1; }
  .drawer { width: 100vw; border-radius: 0; }
}

/* sehr kleine bzw. niedrige Bildschirme */
@media (max-width: 860px) and (max-height: 700px) {
  .hero__eyebrow { display: none; }
  .hero__sticky { grid-template-rows: 1fr auto; }
  .hero__lead { font-size: .92rem; }
  .hero__foot { gap: .7rem; }
}

/* Handy quer */
@media (max-width: 960px) and (max-height: 520px) and (orientation: landscape) {
  :root { --nav-h: 60px; }
  .hero { height: 190vh; }
  .hero__sticky { padding-top: calc(var(--nav-h) + 6px); padding-bottom: 12px; grid-template-rows: 1fr auto; }
  .hero__eyebrow { display: none; }
  .hero__title { flex-direction: row; font-size: min(7vw, 13svh); gap: 2.5vw; }
  .hero__word--l { transform: translate(calc(var(--k) * -6vw), calc(var(--k) * -12svh)); }
  .hero__word--r { transform: translate(calc(var(--k) * 6vw), calc(var(--k) * 12svh)); }
  .hero__card .nfc-sign { --w: min(24vw, 40svh); }
  .hero__foot { flex-direction: row; align-items: end; }
  .hero__lead { font-size: .85rem; max-width: 55ch; }

  .layers { height: 260vh; }
  .layers__sticky { grid-template-columns: 1fr 1fr; grid-template-rows: none; align-items: center; padding-top: var(--nav-h); }
  .layers__title { font-size: min(5vw, 11svh); }
  .stack, .stack__layer--print .nfc-sign { --w: min(28vw, 50svh); }
  .stack { --gap: calc(4px + (1 - var(--e, 0)) * 34px); }

  .step { min-height: 0; top: calc(var(--nav-h) + 8px + var(--i) * 10px); padding: 1.2rem 1.6rem; grid-template-columns: auto 1fr; }
  .step__num { font-size: 3.6rem; }
  .step__visual { display: none; }

  .shop__grid { grid-template-columns: 1fr 1fr; }
  .shop__preview { position: sticky; top: calc(var(--nav-h) + 10px); }
  .shop__stage { aspect-ratio: 1 / .75; }
  .shop__card .nfc-sign { --w: min(22vw, 36svh); }
  .shop__thumbs, .shop__facts { display: none; }

  .closer__line { font-size: min(11vw, 18svh); }
  .modal { max-height: 100dvh; border-radius: 20px 20px 0 0; }
  .mmenu__links a { font-size: min(7vw, 9svh); padding: .35rem 0; }
}

/* Anzeige „Epoxid“: feste Breite, damit beim Gießen nichts springt */
#resinState { min-width: 14ch; }
@media (max-width: 860px) {
  .layers__readout { display: grid; grid-template-columns: auto auto; justify-content: start; gap: .6rem 1.6rem; }
  .layers__readout dd { white-space: nowrap; }
}

/* Galerie auf schmalen Displays: kompakte Vorschaubilder */
@media (max-width: 520px) {
  .shop__thumbs button { padding: .3rem .7rem .3rem .3rem; gap: .45rem; font-size: .82rem; }
  .shop__thumbs img { width: 36px; height: 36px; }
}

/* iPhone/iPad (Safari auf iOS): Die WebGL-Harzfläche verschwindet dort im 3D-Stapel.
   Flach auf ihre Ebene legen und etwas anheben, dann zeichnet Safari sie. Gilt NUR auf iOS –
   PC und Mac (auch Safari am Mac) sind davon nicht betroffen. Die Klasse is-ios setzt resin.js. */
html.is-ios .stack__layer--resin {
  transform-style: flat;
  transform: translateZ(calc(var(--gap) + 8px));
}
html.is-ios .layers.has-gl-resin .resin__gl { border-radius: 0; }
