/* =========================================================
   BASIS UND LENIS
========================================================= */

html {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  overflow-x: hidden;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  isolation: isolate;

  width: 100%;
  min-height: clamp(650px, 48vw, 900px);

  margin-top: 4rem;
  margin-bottom: 2rem;

  overflow: hidden;
}

.container {
  width: min(100% - 2rem, 1320px);
  margin-inline: auto;
}

/* Hero-Hintergrund */

.hero__background-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;

  overflow: hidden;
  pointer-events: none;
}

.hero__background {
  position: absolute;
  top: -8%;

  display: block;

  width: 110%;
  height: 116%;

  object-fit: cover;
  object-position: center;

  transform-origin: center center;

  will-change: transform;
  backface-visibility: hidden;
}


/* Hero-Inhalt */

.hero__inner {
  position: absolute;
  top: 13%;
  z-index: 2;

  width: min(40%, 36rem);
  margin: 0;

  left: max(
    var(--content-padding),
    calc((100% - var(--content-max-width)) / 2)
  );

  color: #ffffff;

  transform: translate3d(0, 0, 0);

  will-change: transform, opacity;
}

.hero__title {
  margin: 0 0 2.5rem;

  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1.05;
  font-weight: 700;
}

.hero__title span {
  display: block;
}

.hero__title .accent {
  color: #ff0098;
}

.hero__text {
  max-width: 32rem;
  margin: 0 0 3rem;

  color: #ffffff;

  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.6;
}

.hero__text_b2b {
  max-width: 32rem;
  margin: 0rem 0 3rem;

  color: #ffffff;

  font-weight: 700;
  font-size: clamp(1.2rem, 1.4vw, 1.6rem);
  line-height: 1.6;
  color: var(--color-white);

}

/* Animiertes Display */

.display-animation {
  position: absolute;
  top: 8%;
  right: 15.5%;
  z-index: 3;

  width: clamp(320px, 29vw, 450px);
  height: auto;


  animation: displayGlow 4s ease-in-out infinite;

  will-change: transform;
}

.display-animation__video {
  display: block;

  width: 130%;
  height: auto;

  object-fit: contain;
  object-position: center;

  background: transparent;
}


/* =========================================================
   SERVICE-OPTIONEN
========================================================= */

.service-options__header {
  width: 100%;
  margin-bottom: 2rem;
}

.service-options__headline {
  margin: 0;
  padding: 0;

  color: #111827;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-options {
  position: relative;
  z-index: 2;

  width: 100%;
  padding: 3rem 0 5rem;
}


/* Service-Grid */

.type-service {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;

  width: 100%;
}

.service-option {
  display: flex;
  flex-direction: column;

  min-width: 0;
  height: 100%;
}


/* Service-Buttons */

.type-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 52px;
  min-height: 52px;

  margin: 0;
  padding: 0 1.25rem;

  border: 1px solid #e5e7eb;
  border-radius: 10px;

  background: #ffffff;
  color: #111827;

  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;

  cursor: pointer;

  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.type-btn:hover {
  border-color: #ff0098;

  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.09);

  transform: translateY(-2px);
}

.type-btn.active,
.service-option.is-open .type-btn {
  border-color: #ff0098;

  background: #ff0098;
  color: #ffffff;

  box-shadow: 0 10px 28px rgba(255, 0, 152, 0.2);
}


/* Service-Panels */

.service-panel {
  display: none;
  flex: 1;
  flex-direction: column;

  width: 100%;
  height: 100%;

  margin-top: 0.75rem;
  padding: 1.5rem;

  border: 1px solid #e5e7eb;
  border-radius: 12px;

  background: #ffffff;
  color: #111827;

  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);

  animation: serviceFade 0.25s ease;
}

.service-option.is-open .service-panel {
  display: flex;
}


/* Panel-Texte */

.service-panel h2 {
  margin: 0 0 0.8rem;

  color: #111827;

  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
}

.service-panel p {
  margin: 0;

  color: #4b5563;

  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 300;
}

.service-content {
   min-height: 150px;
}

.service-panel__divider {
  margin-top: 1rem;
  margin-bottom: 2rem;
  height: 1.5px;
  width: 100%;
  background: #e5e7eb;
}

/* Bullet-Liste */

.service-panel ul {
  margin: 0;
  padding: 0 0 0 1.2rem;

  list-style: disc;
  text-align: left;
}

.service-panel li {
  margin: 0 0 0.7rem;
  padding-left: 0.2rem;

  color: #374151;

  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 400;
}

.service-panel li:last-child {
  margin-bottom: 0;
}

.service-panel li::marker {
  color: #374151;
  font-size: 0.9rem;
}

/* =========================================================
   CONTACT CTA
========================================================= */

.contact-cta {
  padding: 5rem 0;
  background: #111827;
  color: #fff;
}

.contact-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;

  text-align: center;
}

.contact-cta h2 {
  margin: 0 0 1.5rem;

  font-size: clamp(1rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;

  color: #fff;
}

.contact-cta .accent {
  color: #ff0098;
}

.contact-cta p {
  max-width: 760px;
  margin: 0 auto 2.5rem;

  color: rgba(255,255,255,.8);

  font-size: 1.05rem;
  line-height: 1.7;
}

/* Kontaktinfos */

.contact-cta__info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;

  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: #ffffff;

  white-space: nowrap;

  font-size: 1.05rem;
  font-weight: 500;
}

.contact-item svg {
  width: 22px;
  height: 22px;

  flex-shrink: 0;
  fill: #ff0098;
}

.contact-cta .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  min-width: 240px;
}

/* Mobile */

@media (max-width:768px){

  .contact-cta{
    padding:3rem 0;
  }

  .contact-cta__info{
    flex-direction:column;
    gap:1rem;
  }

  .contact-item{
    justify-content:center;
  }
}

/* =========================================================
   ANIMATIONEN
========================================================= */

@keyframes displayGlow {
  0%,
  100% {
    filter: drop-shadow(
      0 0 0 rgba(255, 0, 152, 0)
    );
  }

  50% {
    filter: drop-shadow(
      0 0 18px rgba(255, 0, 152, 0.22)
    );
  }
}

@keyframes serviceFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
  .type-service {
    gap: 1rem;
  }

  .service-panel {
    padding: 1.25rem;
  }

  .hero__inner {
    left: var(--content-padding);
    margin-right: 1rem;
    top: 8%;
  }

.hero__text_b2b {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
  }

  .display-animation {
    top:3%
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  /* Hero */

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    min-height: auto;

    padding-inline: var(--content-padding);
    margin-top: 2rem;
    margin-bottom: 2rem;

    overflow: hidden;
  }

  .hero__background-wrapper {
    position: absolute;
    inset: 0;
  }

  .hero__background {
    top: 0;
    left: 0;

    width: 108%;
    height: 110%;

    object-position: left;
  }

  .hero__inner {
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;

    width: 100%;
    max-width: none;
    max-height: 200px;

    margin: 0;

    text-align: left;
  }

  .hero__title {
    margin-bottom: 1.5rem;

    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .hero__text_b2b {
    margin-top: 4rem;
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  .hero__text {
    max-width: 25rem;
    margin-bottom: 2rem;

    font-size: 1rem;
  }

  .display-animation {
    position: relative;
    top: auto;
    right: auto;
    z-index: 3;

    width: 300px;
    height: 500px;

    margin-top: 8rem;
    padding-top: 6rem;

    overflow: hidden;

    transform: none;
  }

  .display-animation__video {
    width: 150%;

    transform: translateX(-12%);
    transform-origin: center top;
  }


  /* Service-Optionen */

  .service-options {
    padding: 2rem 0 3rem;
  }

  .type-service {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .service-option {
    height: auto;
  }

  .type-btn {
    height: 50px;
    min-height: 50px;
  }

  .service-panel {
    height: auto;

    margin-top: 0.6rem;
    padding: 1.25rem;
  }

  .service-panel__divider {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
}


/* =========================================================
   REDUZIERTE BEWEGUNG
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__background,
  .hero__inner,
  .display-animation,
  .service-panel {
    animation: none;
    transition: none;
    will-change: auto;
  }
}