/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
*/

:root {
  --section-spacing: 60px;
  --section-spacing-sm: 30px;
  --nav-spacing: 120px;
}

@media (min-width: 767px) {
  :root {
    --section-spacing: 80px;
    --section-spacing-sm: 40px;
    --nav-spacing: 140px;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-spacing: 120px;
    --section-spacing-sm: 60px;
    --nav-spacing: 160px;
  }
}

.pMargin p {
  margin-block-end: 0;
  margin-block-start: 0;
}

.lineH .elementor-icon-wrapper {
  line-height: 0;
}

.sunAccent {
  color: #e8b84b;
}

.mokkaAccent {
  color: #6b4226;
}

.greenAccent {
  color: #7a8c5a;
}

.karamellAccent {
  color: #c8a97a;
}

.italicAccent {
  font-style: italic;
}

.history-images {
  position: relative;
  min-height: 650px;
}

.history-photo {
  position: absolute;
  width: 65%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition:
    transform 1.8s ease,
    opacity 1.8s ease;
}

.history-photo:hover {
  transform: scale(1.04);
}

.old {
  top: 0;
  left: 0;
  z-index: 1;
  transform: translateX(-120px) rotate(-6deg);
}

.middle {
  top: -30px;
  right: -125px;
  z-index: 2;
  transform: translateX(120px) rotate(5deg);
}

.old:hover {
  transform: translateX(0) rotate(-6deg) scale(1.04);
}

.middle:hover {
  transform: translateX(0) rotate(5deg) scale(1.04);
}

.history-photo.show {
  opacity: 1;
}

.old.show {
  transform: translateX(0) rotate(-6deg);
}

.middle.show {
  transform: translateX(0) rotate(5deg);
}

/* Wort-Wrapper: bleibt immer zusammen, Browser bricht nur zwischen Wörtern */
.letter-animation .letter-word {
  display: inline-block;
  white-space: nowrap;
}

/* Leerzeichen zwischen Wörtern: inline damit der Browser hier umbrechen kann */
.letter-animation .letter-space {
  display: inline;
  white-space: normal;
}

.letter-animation .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  /* will-change: transform, opacity; */
}

.letter-animation.animate .letter {
  animation: revealLetter 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-120px) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(-6deg);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(120px) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(5deg);
  }
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (min-width: 768px) {
  .middle {
    right: -150px;
  }
}
