.einblick {
   max-width: 1440px;
  margin: 80px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
}


.einblick-header {
  display: inline-block;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 6vw, 60px);
  color: #251f1a;
  margin-bottom: 40px;
  margin: 0 auto 40px;
}

h2.hover-underline {
  position: relative;
  display: inline-block;
  color: #ff5722;
  padding: 0.3em 0;
  font-size: clamp(1.2rem, 2.5vw + 0.5rem, 2rem);
  white-space: normal;

}

h2.hover-underline::after,
h2.hover-underline::before {
  content: '';
  position: absolute;
  height: 3px;
  background: linear-gradient(to right, #ff0000, #00ffff);
  left: 0;
  right: auto;
  transform: scaleX(0);
  transition: transform 0.4s ease-out;
  width: 100%;

}

h2.hover-underline::before {
  top: 0;
  transform-origin: left;
}

h2.hover-underline::after {
  bottom: 0;
  transform-origin: right;
}

h2.hover-underline:hover::after,
h2.hover-underline:hover::before {
  transform: scaleX(1);
}



.einblick-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.einblick-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.einblick-block.reverse {
  flex-direction: row-reverse;
}

.einblick-text {
  flex: 1 1 400px;
  color: black;
}

.einblick-text h2 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #1a1818;
  line-height: 1.6;
}

.einblick-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.einblick-bild {
  flex: 1 1 400px;
}

.einblick-bild img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.einblick-bild img:hover {
  transform: scale(1.03);
}


@media (max-width: 992px) {
  .einblick-header {
    font-size: 2.5rem;
  }
  .einblick-block {
    gap: 20px;
  }
  .einblick-text h2 {
    font-size: 1.6rem;
  }
  .einblick-text p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .einblick {
    margin: 40px auto;
    gap: 60px;
  }
  .einblick-header {
    font-size: 2rem;
  }
  .einblick-block,
  .einblick-block.reverse {
    flex-direction: column;
    gap: 30px;
  }
  .einblick-text,
  .einblick-bild {
    flex: 1 1 auto;
  }
  .einblick-text {
    text-align: center;
  }
}

 @media (max-width: 655px) {
  .hover-underline{
    font-size: 1.5rem;
    padding: 0.2em 0;
  }

  .hover-underline::before,
  .hover-underline::after{
    height: 2px;
  }
}



 @media (max-width: 480px) {

  .hover-underline{
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  }
  /* Container insgesamt nicht über die Smartphone-Breite hinaus wachsen lassen */
  .einblick {
    padding-bottom: 50px;
  }

  /* Blöcke untereinander anordnen und etwas dichter */
  .einblick-block {
    flex-direction: column;
    gap: 20px;
  }

  /* Bilder auf eine handlichere Höhe begrenzen */
  .einblick-bild img {
    width: 100%;
    max-height: 150px; /* hier kannst du noch runter- oder rauftrimmen */
    object-fit: cover;
  }

  .einblick-text h2 {
    font-size: 1.3rem;
  }
  .einblick-text p {
    font-size: 0.9rem;
  }
}

 @media (max-width: 400px) {

  .hover-underline{
    font-size: 17px;
  }
 }