.third-screen {
  display: contents;
}

.third {
  /* color: black; */
  /* background-color: black; */
  height: 75%;
  width: 100%;
  /* display: flex; */
  display: inline-block;
  position: relative;
}

.video-style {
  pointer-events: none;
  position: absolute;
  object-fit: cover;
  left: 0;
  width: 100%;
  height: 100%;
}

.under-from-left {
  position: absolute;
  object-fit: cover;
  left: 0;
  width: 75%;
  height: 100%;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0)
  );
  z-index: 1;
}

.under-from-right {
  position: absolute;
  object-fit: cover;
  /* opacity: 0.7;  */
  right: 0;
  width: 75%;
  height: 100%;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0)
  );
  z-index: 1;
}

.third-text-right,
.third-text-left {
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
  position: absolute;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  transition: transform 0.1s ease-out;
}

.third-text-right {
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%, 0 calc(100% - 15%));
}

.third-text-left {
  left: 0;
  clip-path: polygon(0 0, calc(100% - 15%) 0, 100% 15%, 100% 100%, 0 100%);
}

.third-text-right h1,
.third-text-left h1 {
  align-self: flex-start;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: bold;
  margin-bottom: 20px;
}

.third-text-right p,
.third-text-left p {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  .third-text-right,
  .third-text-left {
    width: 50%;
    height: 100%;
  }
  .third-text-right h1,
  .third-text-left h1 {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1;
  }
  .third-text-right p,
  .third-text-left p {
    font-size: clamp(12px, 2.5vw, 18px);
    line-height: 1.5;
  }
}

.divider {
  width: 100%;
  max-width: 100%;
  height: 2px;
  margin: 10px 0;
  position: relative;
  overflow: hidden;
}

.divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px; /* Margin von 16px links */
  right: 16px; /* Margin von 16px rechts */
  height: 100%;
  background: rgb(213, 168, 133);
  box-shadow: 0 0 10px rgb(213, 168, 133), 0 0 20px rgb(213, 168, 133),
    0 0 30px rgb(213, 168, 133);
  animation: glimmer 5s infinite;
}

@keyframes glimmer {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.logo-container {
  margin-top: -1.5%;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -33%);
  z-index: 3; /* Sicherstellen, dass das Logo über den anderen Elementen liegt */
  pointer-events: none; /* Optional: Verhindern, dass das Logo Klicks blockiert */
  animation: myAnim 5s ease-in-out 0s alternate-reverse forwards;
  animation-iteration-count: infinite;
}

.logo1 {
  width: 100px;
  height: auto;
}

@keyframes myAnim {
  0% {
    opacity: 0.8;
    transform: scale(0.6) translate(-75%, -50%);
  }

  100% {
    opacity: 0;
    transform: scale(1) translate(-50%, -33%);
  }
}
