/* Serviceübergreifende visuelle Animationen */
.service-scroll-progress {
  position: fixed;
  top: 20vh;
  right: clamp(12px, 1.7vw, 30px);
  z-index: 80;
  width: 18px;
  height: 60vh;
  pointer-events: none;
}

.service-scroll-progress__track,
.service-scroll-progress__fill {
  position: absolute;
  top: 0;
  left: 8px;
  width: 2px;
  height: 100%;
  border-radius: 99px;
}

.service-scroll-progress__track {
  background: rgba(23, 150, 201, .18);
}

.service-scroll-progress__fill {
  background: linear-gradient(#79d6f4, #1796c9);
  box-shadow: 0 0 13px rgba(23, 150, 201, .5);
  transform: scaleY(0);
  transform-origin: top;
}

.service-scroll-progress__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 4px solid rgba(255, 255, 255, .76);
  border-radius: 50%;
  background: #1796c9;
  box-shadow: 0 0 0 8px rgba(23, 150, 201, .13), 0 0 22px rgba(23, 150, 201, .35);
  transform: translateY(-9px);
}

.service-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 12vw, 180px) 0;
  border-top: 1px solid #e4e4e7;
  border-bottom: 1px solid #e4e4e7;
  background: #fff;
}

.service-showcase::before {
  position: absolute;
  top: -180px;
  right: -150px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(23, 150, 201, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 68px rgba(23, 150, 201, .035), 0 0 0 136px rgba(23, 150, 201, .02);
  content: "";
}

.service-showcase__head {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto clamp(58px, 7vw, 90px);
  padding-inline: clamp(20px, 4vw, 54px);
  text-align: center;
}

.service-showcase__head h2 {
  margin: 0;
  color: #000;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(4rem, 8.1vw, 8.6rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
  text-align: center;
  text-wrap: balance;
}

.service-showcase__head h2 em {
  color: #6b6b70;
  font-weight: 400;
}

.service-showcase__head p {
  max-width: 790px;
  margin: 32px auto 0;
  color: #65656a;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.65;
  text-align: center;
}

.service-showcase__viewport {
  position: relative;
  overflow: hidden;
  padding-left: max(24px, calc((100vw - 1380px) / 2));
}

.service-showcase__track {
  display: flex;
  gap: clamp(18px, 2vw, 30px);
  padding: 8px max(24px, calc((100vw - 1380px) / 2)) 20px 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.service-showcase__track::-webkit-scrollbar { display: none; }

.service-showcase__card {
  position: relative;
  flex: 0 0 clamp(310px, 31vw, 490px);
  min-height: clamp(500px, 53vw, 660px);
  padding: clamp(28px, 3vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(23, 150, 201, .24);
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 35%),
    repeating-linear-gradient(135deg, transparent 0, transparent 35px, rgba(23, 150, 201, .08) 35px, rgba(23, 150, 201, .08) 36px),
    #07090a;
  box-shadow: 0 24px 65px rgba(0, 0, 0, .13);
  opacity: 0;
  scroll-snap-align: start;
  transform: translate3d(70px, 0, 0) rotate(.7deg);
  transition: opacity .7s ease, transform .85s cubic-bezier(.22, .78, .24, 1), border-color .35s ease;
}

.service-showcase.is-visible .service-showcase__card {
  opacity: 1;
  transform: none;
}

.service-showcase.is-visible .service-showcase__card:nth-child(2) { transition-delay: .1s; }
.service-showcase.is-visible .service-showcase__card:nth-child(3) { transition-delay: .2s; }
.service-showcase.is-visible .service-showcase__card:nth-child(4) { transition-delay: .3s; }

.service-showcase__card:hover {
  border-color: rgba(23, 150, 201, .72);
  transform: translateY(-7px);
}

.service-showcase__number {
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(255, 255, 255, .52);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
}

.service-showcase__visual {
  position: relative;
  display: grid;
  height: 48%;
  min-height: 210px;
  place-items: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.service-showcase__orb {
  position: relative;
  display: grid;
  width: clamp(138px, 14vw, 205px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 150, 201, .34), rgba(23, 150, 201, .06) 48%, transparent 49%);
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .025), 0 0 0 68px rgba(23, 150, 201, .025);
}

.service-showcase__orb::before,
.service-showcase__orb::after {
  position: absolute;
  border: 1px solid rgba(23, 150, 201, .5);
  border-radius: 50%;
  content: "";
  animation: serviceOrbit 9s linear infinite;
}

.service-showcase__orb::before { inset: -26px; border-right-color: transparent; }
.service-showcase__orb::after { inset: 18px; border-bottom-color: transparent; animation-direction: reverse; animation-duration: 6s; }

.service-showcase__orb svg {
  width: clamp(44px, 4.5vw, 66px);
  height: clamp(44px, 4.5vw, 66px);
  color: #65ceef;
  filter: drop-shadow(0 0 14px rgba(23, 150, 201, .55));
}

.service-showcase__card h3 {
  max-width: 390px;
  margin: 0 auto 18px;
  color: #fff;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.35rem, 3.5vw, 4rem);
  font-weight: 400;
  line-height: .98;
  text-align: center;
  text-wrap: balance;
}

.service-showcase__card p {
  max-width: 390px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .17);
  color: #b7b9bd;
  font-size: clamp(.98rem, 1.25vw, 1.12rem);
  line-height: 1.6;
  text-align: center;
}

.service-showcase__controls {
  display: grid;
  grid-template-columns: minmax(160px, 680px) auto;
  gap: 28px;
  align-items: center;
  width: min(calc(100% - 48px), 1380px);
  margin: 42px auto 0;
}

.service-showcase__progress {
  height: 3px;
  overflow: hidden;
  background: #e4e4e7;
}

.service-showcase__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #1796c9;
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .45s ease;
}

.service-showcase__buttons { display: flex; gap: 12px; }

.service-showcase__button {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid #d7d7db;
  border-radius: 50%;
  color: #000;
  background: #fff;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.service-showcase__button:hover {
  border-color: #1796c9;
  color: #fff;
  background: #1796c9;
  transform: translateY(-2px);
}

.service-showcase__button svg { width: 24px; height: 24px; }

@keyframes serviceOrbit { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .service-scroll-progress {
    top: 18vh;
    right: 5px;
    height: 64vh;
    opacity: .72;
  }

  .service-showcase__head h2 { font-size: clamp(3.7rem, 17vw, 5.2rem); }

  .service-showcase__viewport { padding-left: 18px; }

  .service-showcase__track {
    gap: 14px;
    padding-right: 18px;
  }

  .service-showcase__card {
    flex-basis: min(86vw, 390px);
    min-height: 540px;
    padding: 26px 22px 32px;
  }

  .service-showcase__controls {
    grid-template-columns: 1fr auto;
    width: calc(100% - 36px);
    margin-top: 28px;
  }

  .service-showcase__button { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-showcase__card { opacity: 1; transform: none; transition: none; }
  .service-showcase__orb::before,
  .service-showcase__orb::after { animation: none; }
  .service-showcase__track { scroll-behavior: auto; }
}
