@charset "UTF-8";

/* Services Container */
.services-container {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  height: 100vh;
  padding-top: 100px;
  padding-right: 30px;
}

.service-1, .service-2, .service-3, .service-4 {
  width: 300px;
  height: 75%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border: 1px solid #333333;
  overflow: hidden;
}

/* Background images für alle Services */
.service-1 .image-bg,
.service-2 .image-bg,
.service-3 .image-bg,
.service-4 .image-bg {
  background-image: url("../img/test-image.jpg");
}

/* Text im Service */
.service-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  pointer-events: none;
}

.service-text h3 {
  text-align: center;
}

/* Bildbereich */
.service-image {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Bild-Hintergrund */
.image-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(0);
  opacity: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
  background-color: #181818;
}

/* Hover-Effekt */
.service-1:hover .image-bg,
.service-2:hover .image-bg,
.service-3:hover .image-bg,
.service-4:hover .image-bg {
  opacity: 1;
  filter: blur(8px);
}

/* Fallback für Wrapper */
.image-wrapper, .image-bg {
  width: 100%;
  height: 100%;
}

/* Services-Beschreibungen */
.services-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  background-color: #181818;
  margin-bottom: 8em;
}

.description-block {
  width: 40%;
  text-align: center;
}

.description-block h4 {
  margin-bottom: 10px;
}

.description-block p {
  text-align: left;
}

/* Sticky Headline */
.services-headline {
  position: fixed;
  bottom: 0;
  left: 120px;
  z-index: 10;
  pointer-events: none;
}

.services-headline h1 {
  transform-origin: left bottom;
  transition: transform 0.1s linear;
}

/* Responsive Tablet & Mobile */
@media (max-width: 1024px) {
  .services-container {
    flex-direction: column;
    justify-content: flex-end;
    height: 88vh;
    padding: 0;
    margin: 0;
  }

  .services-headline {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    width: 30vw;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    top: 20px;
    left: 0;
    z-index: 10;
    background: transparent;
    pointer-events: none;
    position: absolute;
  }

  .services-headline h1 {
    font-size: 30vw;
    margin: 0 0 0 6%;
    transform: none;
    transition: none;
  }

  .service-1, .service-2, .service-3, .service-4 {
    width: 80vw;
    height: 14vh;
    position: relative;
    z-index: 1;
    align-self: flex-end;
    border: 1px solid #333333;
  }

  .service-1:hover .image-bg,
  .service-2:hover .image-bg,
  .service-3:hover .image-bg,
  .service-4:hover .image-bg {
    opacity: 0 !important;
    filter: none !important;
  }

  .service-text h3 {
    padding: 0 1rem;
  }

  .services-description {
    padding: 40px 5vw 0 5vw;
    gap: 40px;
    margin-bottom: 10px;
  }

  .description-block {
    width: 100%;
    max-width: 600px;
  }

  .description-block h2 {
    text-align: left;
    margin-bottom: 10px;
    text-transform: uppercase;
  }
}