.hero-v2 {
  min-height: calc(100dvh - 72px);
  padding: 0 0 1.15rem;
}

.hero-frame {
  min-height: min(660px, calc(100dvh - 84px));
}

#leistungen .section-header h2,
#leistungen .service-row h3 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-synthesis: none;
}

#leistungen.section-space {
  padding-top: 2.75rem;
}

#leistungen .section-header h2 {
  font-weight: 800;
  letter-spacing: -0.038em;
  text-wrap: balance;
  font-size: clamp(2rem, 4.2vw, 4rem);
}

#leistungen .service-row h3 {
  font-weight: 700;
  letter-spacing: -0.028em;
  font-size: clamp(1.08rem, 1.5vw, 1.42rem);
}

#leistungen .service-atlas {
  align-items: stretch;
}

#leistungen .service-rail {
  overflow: hidden;
}

#leistungen .service-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 5.9rem;
  padding: 1.35rem 1.45rem;
  background: rgba(247, 248, 245, 0.94);
  transition:
    background-color 180ms ease,
    box-shadow 220ms ease,
    border-color 180ms ease;
  transform: none !important;
}

#leistungen .service-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.32rem;
  background: linear-gradient(180deg, #1b4965, #2f6a8c);
  opacity: 0;
  transition: opacity 180ms ease;
}

#leistungen .service-row:hover,
#leistungen .service-row:focus-visible,
#leistungen .service-row.is-active {
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(27, 73, 101, 0.08),
    0 12px 28px rgba(11, 20, 32, 0.04);
  transform: none !important;
}

#leistungen .service-row:hover::before,
#leistungen .service-row:focus-visible::before,
#leistungen .service-row.is-active::before {
  opacity: 1;
}

#leistungen .service-row h3 {
  transition: color 180ms ease;
}

#leistungen .service-row:hover h3,
#leistungen .service-row:focus-visible h3,
#leistungen .service-row.is-active h3 {
  color: #16384f;
}

#leistungen .service-preview-panel {
  padding: 0;
  min-height: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

#leistungen #service-preview-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  transition: opacity 220ms ease, transform 320ms ease;
}

#leistungen #service-preview-image.is-swapping {
  opacity: 0.68;
  transform: scale(1.015);
}

#ablauf .section-header {
  max-width: 44rem;
}

#ablauf .process-section-heading {
  display: block;
  margin: 0;
  color: #1b4965;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

#ablauf .section-header p {
  margin-top: 0.75rem;
  max-width: 42rem;
}

#ablauf .process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.7rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

#ablauf .process-timeline::before {
  content: "";
  position: absolute;
  top: 4.55rem;
  left: clamp(1.15rem, 3.6vw, 2.5rem);
  right: clamp(1.15rem, 3.6vw, 2.5rem);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(27, 73, 101, 0.3) 0%, rgba(74, 157, 210, 0.5) 50%, rgba(27, 73, 101, 0.3) 100%);
  box-shadow: 0 0 0 1px rgba(27, 73, 101, 0.06);
  opacity: 0.95;
  z-index: 0;
}

#ablauf .process-timeline::after {
  content: "";
  position: absolute;
  top: 4.2rem;
  left: 14%;
  right: 14%;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(168, 219, 255, 0.22), transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

#ablauf .process-card {
  overflow: visible;
  min-height: 0;
  padding: 1.5rem 1.15rem 1.35rem;
  border: 1px solid rgba(27, 73, 101, 0.09);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(245, 248, 246, 0.92) 100%);
  box-shadow:
    0 16px 36px rgba(11, 20, 32, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 260ms ease,
    box-shadow 260ms ease,
    transform 260ms ease,
    border-color 260ms ease;
  z-index: 1;
}

#ablauf .process-card::after {
  content: "";
  position: absolute;
  inset: auto 1.1rem 0.75rem 1.1rem;
  height: 0.22rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(27, 73, 101, 0.86) 0%, rgba(74, 157, 210, 0.92) 100%);
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition:
    opacity 240ms ease,
    transform 260ms ease;
}

#ablauf .process-kicker {
  color: rgba(11, 20, 32, 0.5);
  margin-bottom: 0.9rem;
  transition: color 220ms ease, letter-spacing 220ms ease;
}

#ablauf .process-node {
  display: none;
}

#ablauf .process-icon {
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(27, 73, 101, 0.18);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 246, 251, 0.82) 100%);
  color: var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 18px rgba(27, 73, 101, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

#ablauf .process-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

#ablauf .process-card h3 {
  transition: color 220ms ease, transform 220ms ease;
}

#ablauf .process-card p:last-child {
  transition: color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  #ablauf .process-card:hover {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(236, 246, 252, 0.94) 100%);
    box-shadow:
      inset 0 0 0 1px rgba(27, 73, 101, 0.1),
      0 26px 46px rgba(11, 20, 32, 0.1);
    border-color: rgba(74, 157, 210, 0.22);
    transform: translateY(-10px) scale(1.01);
    z-index: 2;
  }

  #ablauf .process-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }

  #ablauf .process-card:hover .process-kicker {
    color: #1b4965;
    letter-spacing: 0.12em;
  }

  #ablauf .process-card:hover .process-icon {
    background: linear-gradient(180deg, rgba(225, 244, 255, 0.96) 0%, rgba(208, 236, 252, 0.92) 100%);
    border-color: rgba(74, 157, 210, 0.34);
    color: #15384f;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.8),
      0 14px 26px rgba(27, 73, 101, 0.14);
    transform: translateY(-3px) scale(1.04);
  }

  #ablauf .process-card:hover h3 {
    color: #143a59;
    transform: translateY(-1px);
  }

  #ablauf .process-card:hover p:last-child {
    color: #66727f;
  }
}

@media (max-width: 720px) {
  #leistungen.section-space {
    padding-top: 1.15rem;
    padding-bottom: 1.4rem;
    background:
      linear-gradient(180deg, rgba(232, 237, 241, 0.98) 0%, rgba(247, 248, 245, 0.98) 100%);
  }
}

@media (hover: hover) and (pointer: fine) {
  #leistungen .service-row:hover {
    transform: none !important;
  }
}

@media (max-width: 720px) {
  .hero-v2 {
    padding: 0 0 0.25rem;
  }

  .hero-frame {
    min-height: clamp(488px, calc(100dvh - 64px), 568px);
  }

  #leistungen .service-row {
    min-height: 4.35rem;
    padding: 0.95rem 1rem;
  }

  #leistungen .section-header {
    margin-bottom: 0.8rem;
  }

  #leistungen .section-header h2 {
    font-size: clamp(1.5rem, 7.4vw, 2rem);
    line-height: 1;
  }

  #leistungen .section-header p {
    margin-top: 0.48rem;
    font-size: 0.92rem;
    line-height: 1.34;
  }

  #leistungen .service-atlas {
    display: block;
    gap: 0;
  }

  #leistungen .service-preview-panel {
    display: none !important;
  }

  #leistungen #service-preview-image {
    aspect-ratio: 4 / 3;
  }

  #leistungen .service-actions {
    margin-top: 0.88rem;
  }

  #leistungen .service-actions .button.outline {
    width: 100%;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--brand);
    border-color: rgba(27, 73, 101, 0.12);
    box-shadow: none;
  }

  #leistungen .service-actions .button.outline:hover,
  #leistungen .service-actions .button.outline:focus-visible {
    background: rgba(255, 255, 255, 1);
    color: #143a59;
    border-color: rgba(27, 73, 101, 0.28);
  }

  #leistungen .service-row h3 {
    font-size: 0.94rem;
    line-height: 1.18;
  }

  #leistungen .service-inline-badge {
    margin-top: 0.42rem;
    font-size: 0.64rem;
  }

  #ablauf.section-space {
    padding-top: 1.15rem;
  }

  #ablauf .section-header {
    margin-bottom: 0.8rem;
  }

  #ablauf .section-header h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
    line-height: 0.96;
  }

  #ablauf .section-header p {
    margin-top: 0.8rem;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  #ablauf .process-timeline {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding-top: 0.4rem;
  }

  #ablauf .process-timeline::before,
  #ablauf .process-timeline::after {
    display: none;
  }

  #ablauf .process-card {
    padding: 1.15rem 1rem 1rem;
    overflow: hidden;
  }

  #ablauf .process-kicker {
    margin-bottom: 0.85rem;
  }

  #ablauf .process-icon {
    width: 2.85rem;
    height: 2.85rem;
    margin-bottom: 0.85rem;
  }
}

@media (max-width: 720px) {
  #leistungen.section-space {
    margin-top: 0 !important;
    padding-top: 0.78rem !important;
    padding-bottom: 1rem !important;
    background:
      linear-gradient(180deg, rgba(232, 237, 241, 0.99) 0%, rgba(247, 248, 245, 0.99) 100%) !important;
  }

  #leistungen .section-header {
    margin-bottom: 0.55rem !important;
  }

  #leistungen .section-header h2 {
    font-size: clamp(1.36rem, 6.6vw, 1.82rem) !important;
    line-height: 0.98 !important;
  }

  #leistungen .section-header p {
    font-size: 0.86rem !important;
    line-height: 1.28 !important;
  }

  #leistungen .service-atlas {
    display: block !important;
  }

  #leistungen .service-preview-panel,
  #leistungen #service-preview-image {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  #leistungen .service-row {
    min-height: 4.05rem !important;
    padding: 0.88rem 0.96rem !important;
  }

  #leistungen .service-row h3 {
    font-size: 0.92rem !important;
    line-height: 1.16 !important;
  }

  #leistungen .service-inline-badge {
    margin-top: 0.34rem !important;
    font-size: 0.62rem !important;
  }

  #leistungen .service-actions {
    margin-top: 0.68rem !important;
  }

  #leistungen .service-actions .button.outline {
    width: 100% !important;
    min-height: 46px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: var(--brand) !important;
    border-color: rgba(27, 73, 101, 0.14) !important;
    box-shadow: none !important;
  }

  #ablauf.section-space {
    padding-top: 0.9rem !important;
  }
}
