.text-image {
	padding-top:var(--space-padding) !important;
}


.text-image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 10%;
  color: #f5e6c8;
  line-height: 1.6;
  overflow-x: hidden;
	gap:40px;
}

/* === Textbereich === */
.text-image-text {
  flex: 1 1 45%;
  max-width: 600px;
}

.text-image-headline {
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 30px;	
	 transform: rotate(-3deg);
  transition: transform 0.3s ease;
	padding-left:50px;
	
}

.text-image-headline span {
  display: block;
  color: #000;
}

.text-image-text p {
  color: #000;
}

.text-image-text p strong {
  color: #000;
}

/* === Bildbereich === */
.text-image-images {
  flex: 1 1 45%;
  position: relative;
	min-height: 500px;
	height: auto;
}

.text-image-images img {
	border-radius: var(--radius);
}

.text-image-main,
.text-image-small {
  width: 100%;
  max-width: 350px;
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}

.text-image-main {
	aspect-ratio: 9 / 14;
	object-fit: cover;
	max-height: 450px;
}

.text-image-main {
  position: relative;
  z-index: 2;
}

.text-image-small {
  position: absolute;
  top: 350px;
  left: 240px;
  width: 250px;
  transform: rotate(5deg);
  z-index: 2;
}

.text-image-label {
  position: absolute;
  top: 480px;
  left: 30px;
  font-size: 25px;
  color: #fff;
  font-weight: bold;
	width: 200px;
	z-index: 3;
	 transform: rotate(-5deg);
  transition: transform 0.3s ease;
	
		font-family: "tt-modernoir", sans-serif;
font-weight: 400;
font-style: normal;
}



/* === Animation Keyframes === */
@keyframes fadeUpRotate {
  0% {
    opacity: 0;
    transform: translateY(40px) rotate(-8deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(-3deg);
  }
}

@keyframes fadeInTiltLeft {
  0% {
    opacity: 0;
    transform: translateX(40px) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(-5deg);
  }
}

@keyframes fadeInTiltRight {
  0% {
    opacity: 0;
    transform: translateX(-40px) rotate(-8deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(5deg);
  }
}

/* === Anwendung === */
.text-image-headline {
  animation: fadeUpRotate 0.8s ease-out 0.2s both;
}

.text-image-main {
  animation: fadeInTiltLeft 1s ease-out 0.4s both;
}

.text-image-small {
  animation: fadeInTiltRight 1s ease-out 0.6s both;
}

.text-image-label {
  opacity: 0;
  animation: fadeUpRotate 0.8s ease-out 1.1s forwards;
}



@media (max-width: 767px) {

  .text-image-container {
    flex-direction: column;
    padding: 40px 20px;
    gap: 20px;
    align-items: center; /* alles zentrieren */
    text-align: center;
  }

  .text-image-text {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 0;
  }

  .text-image-headline {
    font-size: 26px;
    padding-left: 0;
    transform: rotate(0); /* gerade, damit es sauber wirkt */
  }

  .text-image-headline span {
    font-size: 22px;
  }

  .text-image-text p {
    font-size: 16px;
  }



  .text-image-small {
    position: static; /* absolute rausnehmen */
   
  }

  .text-image-label {
    position: static; /* absolute rausnehmen */
   
  }
}

