/*
 * WORKFLOW PREVIEW
 * This file only styles the experimental journey in the “Arbeitsweise” section.
 * Removing its link from index.html cleanly removes the visual experiment.
 */

.method .shell {
  position: relative;
}

.workflow-canvas {
  margin: clamp(42px, 5.5vh, 68px) 0 0;
  min-height: 300px;
  position: relative;
}

.workflow-journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  min-height: 300px;
  padding: 0;
  position: relative;
  z-index: 2;
}

.workflow-stop {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  padding-inline: clamp(8px, 2vw, 30px);
}

.workflow-stop-understand {
  padding-top: 20px;
}

.workflow-stop-shape {
  padding-top: 92px;
}

.workflow-stop-anchor {
  padding-top: 42px;
}

.workflow-marker {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--lime);
  border-radius: 50%;
  color: var(--lime);
  display: flex;
  height: 54px;
  justify-content: center;
  position: relative;
  width: 54px;
}

.workflow-marker::after {
  border: 1px solid rgba(215, 231, 106, .36);
  border-radius: 48% 52% 45% 55%;
  content: "";
  inset: -8px -6px -7px -9px;
  position: absolute;
  transform: rotate(13deg);
}

.workflow-marker i {
  font: 10px/1 var(--mono);
  font-style: normal;
  letter-spacing: .06em;
}

.workflow-copy {
  margin-top: 24px;
  max-width: 310px;
}

.workflow-copy h3 {
  font: 500 clamp(27px, 2.4vw, 36px)/1 var(--serif);
  letter-spacing: -.045em;
  margin: 0 0 10px;
}

.workflow-copy p {
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  font-size: 13.5px;
  line-height: 1.48;
  margin: 0;
  max-width: 290px;
}

.workflow-route {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.workflow-route span {
  border-top: 1px solid rgba(215, 231, 106, .68);
  height: 1px;
  position: absolute;
  transform-origin: left center;
}

.workflow-route span:nth-child(1) {
  left: 4.3%;
  top: 47px;
  transform: rotate(9deg);
  width: 33.4%;
}

.workflow-route span:nth-child(2) {
  left: 37.7%;
  top: 119px;
  transform: rotate(-6deg);
  width: 33.5%;
}

.workflow-route span:nth-child(3) {
  left: 71%;
  top: 69px;
  transform: rotate(2deg);
  width: 25.5%;
}

.workflow-route span:nth-child(3)::after {
  border-right: 1px solid rgba(215, 231, 106, .68);
  border-top: 1px solid rgba(215, 231, 106, .68);
  content: "";
  height: 7px;
  position: absolute;
  right: 0;
  top: -4px;
  transform: rotate(45deg);
  width: 7px;
}

@media (max-width: 880px) {
  .workflow-canvas {
    margin-top: 42px;
    min-height: 0;
  }

  .workflow-journey {
    display: block;
    padding-left: 22px;
  }

  .workflow-stop,
  .workflow-stop-understand,
  .workflow-stop-shape,
  .workflow-stop-anchor {
    display: grid;
    gap: 20px;
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 0 0 38px;
  }

  .workflow-marker {
    height: 44px;
    width: 44px;
  }

  .workflow-copy {
    margin-top: 0;
    max-width: 520px;
  }

  .workflow-copy h3 {
    font-size: 29px;
  }

  .workflow-copy p {
    font-size: 14px;
    max-width: 480px;
  }

  .workflow-route {
    border-left: 1px solid rgba(215, 231, 106, .68);
    bottom: 48px;
    left: 43px;
    right: auto;
    top: 22px;
    width: 1px;
  }

  .workflow-route span {
    display: none;
  }

  .workflow-route::after {
    border-bottom: 1px solid rgba(215, 231, 106, .68);
    border-right: 1px solid rgba(215, 231, 106, .68);
    bottom: 0;
    content: "";
    height: 7px;
    position: absolute;
    right: -4px;
    transform: rotate(135deg);
    width: 7px;
  }

}

@media (prefers-reduced-motion: no-preference) {
  .workflow-route span {
    animation: workflow-draw .7s cubic-bezier(.22, 1, .36, 1) both;
  }

  .workflow-route span:nth-child(2) {
    animation-delay: .14s;
  }

  .workflow-route span:nth-child(3) {
    animation-delay: .28s;
  }

  @keyframes workflow-draw {
    from {
      opacity: 0;
      scale: 0 1;
    }

    to {
      opacity: 1;
      scale: 1;
    }
  }
}
