.page-prozesse .page-hero .hero-grid {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
}

.page-prozesse .page-hero .lead { max-width: 34em; }

.process-film {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  margin: 0;
  justify-self: end;
}

.process-film__scene {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  aspect-ratio: 1.18;
  max-width: 100%;
}

.process-film__browser {
  position: absolute;
  z-index: 1;
  inset: 7% 24% auto 3%;
  min-height: 53%;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: linear-gradient(155deg, var(--surface-2), var(--surface) 70%);
  box-shadow: 0 20px 42px -24px #071523b0, inset 0 1px #ffffff18;
  transform: perspective(850px) rotateY(10deg) rotateX(7deg) rotateZ(-5deg);
}

.process-film__chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--line);
}

.process-film__chrome i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-2);
}

.process-film__chrome i:first-child { background: var(--accent); }

.process-film__url {
  flex: 1;
  height: 8px;
  max-width: 38%;
  margin-inline: auto;
  border-radius: 8px;
  background: var(--line);
}

.process-film__request { padding: 4cqi; }

.process-film__request strong {
  display: block;
  margin-bottom: .3em;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.15rem, 6.4cqi, 1.95rem);
  line-height: 1.05;
}

.process-film__request p {
  max-width: 16ch;
  margin: 0;
  color: var(--text-2);
  font-size: clamp(.75rem, 3.55cqi, 1rem);
  line-height: 1.35;
}

.process-film__slot {
  position: relative;
  width: 71%;
  height: 4px;
  margin: 1cqi auto 3cqi;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 44%, var(--line-2));
  box-shadow: 0 0 13px var(--accent-soft);
}

.process-film__slot::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff0cb;
  box-shadow: 0 0 9px 2px #edc982, 0 0 24px #edc982aa;
  content: "";
  opacity: 0;
  transform-origin: left;
}

.process-film__paper {
  position: absolute;
  z-index: 2;
  inset: 38% 12% auto 34%;
  min-height: 43%;
  padding: 4.8cqi 4.6cqi 5.2cqi;
  border-radius: 3px 0 3px 3px;
  background: linear-gradient(146deg, #fffaf0, #efe2c9);
  color: #203040;
  box-shadow: 0 22px 35px -18px #040d19b3, inset 0 0 0 1px #fff8;
  transform: perspective(780px) rotateX(6deg) rotateZ(4deg);
}

.process-film__paper::after {
  position: absolute;
  inset: 10% 0 90%;
  height: 1px;
  background: #ad772c;
  box-shadow: 0 0 7px 2px #e9bd6bcc;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.process-film__fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 6cqi;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #d8b982, #aa7f41);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  transform-origin: left bottom;
}

.process-film__paper strong {
  display: block;
  margin: 0 0 .55em;
  font-family: var(--serif);
  font-size: clamp(1rem, 5.8cqi, 1.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.process-film__paper ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(.72rem, 3.2cqi, .96rem);
  line-height: 1.2;
}

.process-film__paper li {
  display: flex;
  align-items: center;
  gap: .52em;
  border-top: 1px solid #93713f40;
  padding-block: .42em;
}

.process-film__paper li::before {
  content: "";
  flex: 0 0 5px;
  height: 5px;
  border-radius: 50%;
  background: #a3763f;
}

.process-film__tray {
  position: absolute;
  z-index: 1;
  inset: 70% 0 5% 22%;
  border: 1px solid #a78455;
  border-radius: 10px;
  background: linear-gradient(155deg, #324354, #142535 66%);
  box-shadow: inset 0 4px 12px #0a141f9e, 0 24px 44px -23px #060e19bf;
  transform: perspective(700px) rotateX(38deg);
}

.process-film__lip {
  position: absolute;
  z-index: 3;
  inset: auto 0 5% 22%;
  display: grid;
  place-items: center;
  min-height: 9%;
  border: 1px solid #917555;
  border-radius: 4px 4px 9px 9px;
  background: linear-gradient(#293b4a, #182837);
  color: #efd5a2;
  box-shadow: inset 0 1px #e8c78938, 0 14px 26px -12px #081522bd;
  font-size: clamp(.68rem, 2.66cqi, .82rem);
  font-weight: 650;
  letter-spacing: .065em;
}

.process-film__lip::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #e7c98d, 0 0 22px #e7c98d7a;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.process-film__scene::after {
  position: absolute;
  z-index: 0;
  inset: 71% 10% 7% 28%;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--accent-soft), inset 0 0 12px var(--accent-soft);
  content: "";
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
  .page-prozesse .page-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .process-film { justify-self: center; }
}

@media (max-width: 620px) {
  .page-prozesse .page-hero .hero-grid { gap: 24px; }
  .process-film { max-width: 360px; }
}

@media (prefers-reduced-motion: no-preference) {
  .process-film.is-playing .process-film__browser {
    animation: process-browser-kick .72s .16s both;
  }

  .process-film.is-playing .process-film__slot::after {
    animation: process-slot-charge .83s both;
  }

  .process-film.is-playing .process-film__paper {
    animation: process-paper 3.2s both;
  }

  .process-film.is-playing .process-film__paper :is(strong, li) {
    animation: process-ink .36s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: var(--ink-delay, 1.08s);
  }

  .process-film__paper li:nth-child(1) { --ink-delay: 1.26s; }
  .process-film__paper li:nth-child(2) { --ink-delay: 1.43s; }
  .process-film__paper li:nth-child(3) { --ink-delay: 1.60s; }

  .process-film.is-playing .process-film__paper::after {
    animation: process-scan .76s .99s linear both;
  }

  .process-film.is-playing .process-film__fold {
    animation: process-fold .45s 1.82s cubic-bezier(.18, .85, .3, 1) both;
  }

  .process-film.is-playing :is(.process-film__tray, .process-film__lip) {
    animation: process-tray-hit .62s 2.43s both;
  }

  .process-film.is-playing .process-film__scene::after {
    animation: process-impact-ring .71s 2.44s cubic-bezier(.1, .62, .4, 1) both;
  }

  .process-film.is-playing .process-film__lip::after {
    animation: process-land .72s 2.43s cubic-bezier(.2, .7, .3, 1) both;
  }

  @keyframes process-browser-kick {
    0%, 100% { translate: none; rotate: none; }
    25% {
      translate: -1% -1%;
      rotate: -1.3deg;
      animation-timing-function: cubic-bezier(.2, .75, .3, 1);
    }
    50% {
      translate: -5% -4%;
      rotate: -4deg;
      animation-timing-function: cubic-bezier(.1, .7, .3, 1);
    }
    77% { translate: 1% 1%; rotate: .7deg; }
  }

  @keyframes process-slot-charge {
    0% { opacity: 0; transform: scaleX(.05); }
    38% { opacity: 1; transform: scaleX(1); }
    57% { opacity: 1; }
    100% { opacity: 0; transform: scaleX(1); }
  }

  @keyframes process-paper {
    0%, 9% {
      opacity: 0;
      transform: perspective(780px) translate3d(-43%, -33%, -190px) rotateX(70deg) rotateY(120deg) rotateZ(-30deg);
      animation-timing-function: cubic-bezier(.22, .75, .3, 1);
    }
    15% { opacity: 1; }
    29% {
      transform: perspective(780px) translate3d(4%, -46%, 76px) rotateX(-14deg) rotateY(-28deg) rotateZ(-12deg);
      animation-timing-function: cubic-bezier(.2, .65, .3, 1);
    }
    43% {
      transform: perspective(780px) translate3d(6%, -32%, 36px) rotateX(-6deg) rotateY(5deg) rotateZ(-6deg);
    }
    61% {
      transform: perspective(780px) translate3d(6%, -31%, 32px) rotateX(-9deg) rotateY(8deg) rotateZ(-4deg);
      animation-timing-function: cubic-bezier(.68, .06, .88, .45);
    }
    77% {
      transform: perspective(780px) translateY(6%) rotateX(19deg) rotateZ(7deg);
      animation-timing-function: cubic-bezier(.15, .75, .25, 1);
    }
    84% { transform: perspective(780px) translateY(-5%) rotateX(-3deg) rotateZ(1.5deg); }
    92%, 100% { transform: perspective(780px) rotateX(6deg) rotateZ(4deg); }
  }

  @keyframes process-ink {
    from { opacity: 0; transform: translateX(-9px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes process-scan {
    0% { opacity: 0; transform: translateY(0); }
    17%, 65% { opacity: .8; }
    100% { opacity: 0; transform: translateY(35cqi); }
  }

  @keyframes process-fold {
    0% { opacity: 0; transform: rotateY(165deg); }
    65% { opacity: 1; transform: rotateY(-25deg); }
    100% { opacity: 1; transform: rotateY(0); }
  }

  @keyframes process-tray-hit {
    0%, 88%, 100% { translate: none; }
    15% { translate: 0 6px; animation-timing-function: cubic-bezier(.2, .76, .25, 1); }
    48% { translate: 0 -3px; }
  }

  @keyframes process-impact-ring {
    0% { opacity: 0; transform: scale(.65); }
    11% { opacity: .85; }
    100% { opacity: 0; transform: scale(1.28, 1.65); }
  }

  @keyframes process-land {
    0%, 100% { opacity: 0; }
    14% { opacity: 1; }
  }
}

