/* v2.0 – stabile, gruppierte Leistungsrotation (3 / 3 / 3 / 4) */

/* Das dekorative "Seit 2008" und der große Hintergrund-Jahreszug entfallen. */
.story::before { content: none !important; }
.story__badge,
.story__visual--owner .story__badge { display: none !important; }

.services {
  min-height: 0 !important;
  padding-bottom: clamp(5rem, 8vw, 8rem) !important;
  overflow: clip;
}

.service-carousel {
  min-height: 0 !important;
  margin-top: clamp(1.5rem, 3vw, 2.5rem) !important;
  perspective: none !important;
  touch-action: auto !important;
  overflow: visible !important;
}

.service-slider.service-deck {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  cursor: default !important;
  transform: none !important;
  transform-style: flat !important;
  user-select: auto !important;
  touch-action: auto !important;
  transition: height .62s cubic-bezier(.16,1,.3,1);
}

.service-slider.service-deck::before,
.service-slider.service-deck::after { display: none !important; }

.service-page {
  --page-x: 0;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.7rem);
  align-items: stretch;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(var(--page-x), 0, 0) scale(.985);
  filter: blur(7px);
  transition:
    opacity .52s ease,
    transform .68s cubic-bezier(.16,1,.3,1),
    filter .52s ease,
    visibility 0s linear .68s;
}

.service-page[hidden] { display: none !important; }
.service-page.is-preparing.from-right { --page-x: 7%; }
.service-page.is-preparing.from-left { --page-x: -7%; }
.service-page.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0,0,0) scale(1);
  filter: none;
  transition-delay: 0s;
}
.service-page.is-leaving.to-left { --page-x: -7%; opacity: 0; filter: blur(7px); }
.service-page.is-leaving.to-right { --page-x: 7%; opacity: 0; filter: blur(7px); }

@media (min-width: 1121px) {
  .service-page[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-page[data-count="4"] .service-card { min-height: 24rem !important; padding-inline: clamp(1.4rem, 1.8vw, 2rem) !important; }
  .service-page[data-count="4"] .service-card h3 { font-size: clamp(1.55rem, 1.8vw, 2rem) !important; }
}

.service-page .service-card {
  --card-order: 0;
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: clamp(23rem, 29vw, 28rem) !important;
  padding: clamp(1.55rem, 2.35vw, 2.35rem) !important;
  border-radius: clamp(1.25rem, 1.8vw, 1.75rem) !important;
  border: 1px solid rgba(240,196,127,.18) !important;
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 45%), rgba(240,196,127,.11), transparent 34%),
    linear-gradient(145deg, rgba(22,43,66,.92), rgba(5,16,29,.98)) !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
  transform-origin: center !important;
  z-index: auto !important;
  pointer-events: auto !important;
  box-shadow: 0 1.6rem 4rem rgba(0,0,0,.2) !important;
  transition:
    transform .5s cubic-bezier(.16,1,.3,1),
    border-color .4s ease,
    box-shadow .5s ease,
    background .45s ease !important;
  will-change: transform, opacity;
}

.service-page.is-active .service-card {
  animation: serviceCardEnter .72s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(var(--card-order) * 90ms + 70ms);
}

@keyframes serviceCardEnter {
  from { opacity: 0; transform: translate3d(0, 2rem, 0) scale(.965); filter: blur(6px); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: none; }
}

.service-page .service-card:hover {
  transform: translateY(-.55rem) !important;
  border-color: rgba(240,196,127,.55) !important;
  box-shadow: 0 2.2rem 5.5rem rgba(0,0,0,.34), 0 0 3rem rgba(203,145,76,.07) !important;
}

.service-page .service-card::before { border-radius: inherit !important; }
.service-page .service-card::after {
  left: clamp(1.55rem, 2.35vw, 2.35rem) !important;
  right: clamp(1.55rem, 2.35vw, 2.35rem) !important;
  top: 7.2rem !important;
  transform: scaleX(1) !important;
  opacity: .72 !important;
}
.service-page .service-card .icon-chip {
  margin-bottom: clamp(3.6rem, 5vw, 5.5rem) !important;
  transform: none !important;
}
.service-page .service-card__number {
  top: 1.25rem !important;
  right: 1.55rem !important;
  font-size: clamp(3.5rem, 5vw, 5.5rem) !important;
  color: rgba(255,255,255,.045) !important;
}
.service-page .service-card h3 {
  min-height: 2.2em !important;
  max-width: 100% !important;
  font-size: clamp(1.8rem, 2.35vw, 2.55rem) !important;
  line-height: 1.02 !important;
}
.service-page .service-card p {
  max-width: 100% !important;
  margin-top: 1.25rem !important;
  line-height: 1.72 !important;
}
.service-page .service-card button {
  position: absolute !important;
  left: clamp(1.55rem, 2.35vw, 2.35rem) !important;
  right: clamp(1.55rem, 2.35vw, 2.35rem) !important;
  bottom: clamp(1.35rem, 2vw, 2rem) !important;
  opacity: 1 !important;
  transform: none !important;
}

.service-carousel__footer {
  position: relative !important;
  z-index: 5 !important;
  display: grid !important;
  grid-template-columns: auto minmax(10rem, 1fr) auto auto !important;
  align-items: center !important;
  gap: clamp(.9rem, 1.8vw, 1.7rem) !important;
  width: 100% !important;
  margin: clamp(1.8rem, 3vw, 2.7rem) auto 0 !important;
}

.service-carousel__status strong { font-size: clamp(2rem, 3vw, 2.7rem) !important; }
.service-carousel__progress { overflow: hidden !important; }
.service-carousel__progress::after { display: none !important; }
.service-carousel__progress span {
  transform-origin: left center !important;
  transform: scaleX(.25);
  transition: transform .72s cubic-bezier(.16,1,.3,1) !important;
}

.service-carousel__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .58rem;
}
.service-page-dot {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.55);
  font: 600 .68rem/1 var(--sans);
  cursor: pointer;
  transition: width .42s cubic-bezier(.16,1,.3,1), color .3s ease, border-color .3s ease, background .3s ease;
}
.service-page-dot::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: .32rem;
  height: .32rem;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.service-page-dot span { opacity: 0; transition: opacity .25s ease; }
.service-page-dot:hover,
.service-page-dot:focus-visible { border-color: rgba(240,196,127,.52); color: var(--gold-bright); }
.service-page-dot.is-active {
  width: 3.8rem;
  border-color: rgba(240,196,127,.65);
  background: rgba(240,196,127,.08);
  color: var(--gold-bright);
}
.service-page-dot.is-active::after { left: .9rem; }
.service-page-dot.is-active span { opacity: 1; }

.service-autoplay {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.65rem;
  padding: .55rem .85rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.52);
  font: 600 .65rem/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.service-autoplay:hover,
.service-autoplay:focus-visible { color: var(--gold-bright); border-color: rgba(240,196,127,.45); }
.service-autoplay.is-paused { color: var(--gold-bright); background: rgba(240,196,127,.07); }
.service-autoplay__icon { font-size: .9rem; letter-spacing: -.15em; }

@media (max-width: 1120px) {
  .service-page,
  .service-page[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-page .service-card { min-height: 22rem !important; }
  .service-autoplay { display: none; }
  .service-carousel__footer { grid-template-columns: auto minmax(7rem,1fr) auto !important; }
}

@media (max-width: 700px) {
  .service-page,
  .service-page[data-count="4"] { grid-template-columns: 1fr; gap: 1rem; }
  .service-page .service-card,
  .service-page[data-count="4"] .service-card {
    min-height: 18.5rem !important;
    padding: 1.35rem 1.25rem 4.4rem !important;
    border-radius: 1.2rem !important;
  }
  .service-page .service-card::after { left: 1.25rem !important; right: 1.25rem !important; top: 5.65rem !important; }
  .service-page .service-card .icon-chip { width: 2.65rem !important; height: 2.65rem !important; margin-bottom: 2.6rem !important; }
  .service-page .service-card__number { font-size: 3.4rem !important; }
  .service-page .service-card h3 { min-height: 0 !important; font-size: clamp(1.55rem, 8vw, 2rem) !important; }
  .service-page .service-card p { font-size: .9rem !important; }
  .service-page .service-card button { left: 1.25rem !important; right: 1.25rem !important; bottom: 1.25rem !important; }
  .service-carousel__footer {
    grid-template-columns: auto minmax(4rem,1fr) !important;
    gap: .85rem !important;
  }
  .service-carousel__pagination { grid-column: 1 / -1; justify-content: flex-start; }
  .service-page-dot { width: 2.6rem; height: 2.6rem; }
  .service-page-dot.is-active { width: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .service-page,
  .service-page .service-card,
  .service-slider.service-deck { transition: none !important; animation: none !important; }
}
