*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Open Sans';
  src: url('./open-sans-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Baloo 2';
  src: url('./baloo-2-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

body {
  background: linear-gradient(
  120deg,
  #EDD1C9,  /* aus #D7A79B */
  #F3E2B8,  /* aus #E4C883 */
  #C7DBE1,  /* aus #8FB2BC */
  #D9ECE3   /* aus #B7D6C6 */
  );
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

.cont {
  position: relative;
  overflow: hidden;
  height: 100vh;
  padding: 80px 70px;
}
.cont__inner {
  position: relative;
  height: 100%;
}
.cont__inner:hover .dog__bg:after {
  opacity: 1;
}
.heart-pulse {
  animation: pulse 1.5s ease-in-out infinite;;
  display: inline-block;
}

@keyframes pulse {
  0% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
  100% { transform: scale(1); }
}
.teaser-block {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: clamp(20px, 12vw, 20px);
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 990px) {
  .teaser-block {
    top: clamp(200px, 40vw, 350px);
  }
}
.dog {
  position: absolute;
  left: 0;
  top: 0;
  width: 19.2%;
  height: 100%;
  background: #fff;
  transition: transform 0.6s 0.7s, width 0.7s, opacity 0.6s 0.7s, z-index 0s 1.3s;
  will-change: transform, width, opacity;
  border-radius: 20px;
}
.dog:not(.s--active) {
  cursor: pointer;
}
.dog__overflow {
  overflow: hidden;
  position: relative;
  height: 100%;
}
.dog__inner {
  overflow: hidden;
  position: relative;
  height: 100%;
  transition: transform 1s;
  border-radius: 20px;
}
.cont.s--inactive .dog__inner {
  transform: translate3d(0, 100%, 0);
}
.dog__bg {
  position: relative;
  width: calc(100vw - 140px);
  height: 100%;
  transition: transform 0.6s 0.7s;
  will-change: transform;
}
.dog__bg:before {
  content: "";
  position: absolute;
  left: 0;
  top: -5%;
  width: 100%;
  height: 110%;
  background-size: cover;
  background-position: center center;
  transition: transform 1s;
  transform: translate3d(0, 0, 0) scale(1);
}
.cont.s--dog-active .teaser-block {
  z-index: 0;
}
.cont.s--inactive .dog__bg:before {
  transform: translate3d(0, -100%, 0) scale(1.2);
}
.dog.s--active .dog__bg:before {
  transition: transform 0.8s;
}
.dog__bg:after {
  content: "";
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.5s;
}
.cont.s--dog-active .dog__bg:after {
  transition: opacity 0.5s 1.4s;
  opacity: 1 !important;
}
.dog__preview-cont {
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transition: all 0.3s 1.2s;
  border-radius: 20px;
}
.cont.s--inactive .dog__preview-cont {
  opacity: 0;
  transform: translateY(10px);
}
.cont.s--dog-active .dog__preview-cont {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s;
}
.dog:not(.s--active):hover .dog__bg:before {
  transform: scale(1.1);
  transition: transform 0.4s ease;
}
.dog__heading {
  color: #fff;
  text-transform: uppercase;
  font-size: 18px;
}
.dog__content {
  z-index: -1;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.1s;
  border-radius: 20px;
}
.dog.s--active .dog__content {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.5s 1.4s;
}
.dog__text {
  text-transform: uppercase;
  font-size: 40px;
  font-weight: bold;
  color: #000;
  margin-top:200px;
}
.dog__close-btn {
  z-index: -1;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 60px;
  height: 60px;
  opacity: 0;
  pointer-events: none;
  transition: all 0s 0.45s;
  cursor: pointer;
}
.dog.s--active .dog__close-btn {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  transition: all 0s 1.4s;
}
.dog__close-btn:before, .dog__close-btn:after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 8px;
  margin-top: -4px;
  background: #fff;
  opacity: 0;
  transition: opacity 0s;
}
.dog.s--active .dog__close-btn:before, .dog.s--active .dog__close-btn:after {
  opacity: 1;
}
.dog__close-btn:before {
  transform: rotate(45deg) translateX(100%);
}
.dog.s--active .dog__close-btn:before {
  transition: all 0.3s 1.4s cubic-bezier(0.72, 0.09, 0.32, 1.57);
  transform: rotate(45deg) translateX(0);
}
.dog__close-btn:after {
  transform: rotate(-45deg) translateX(100%);
}
.esc-hint {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #fff;
  white-space: nowrap;
}
.dog.s--active .dog__close-btn:after {
  transition: all 0.3s 1.55s cubic-bezier(0.72, 0.09, 0.32, 1.57);
  transform: rotate(-45deg) translateX(0);
}
.dog__index {
  overflow: hidden;
  position: absolute;
  left: 0;
  bottom: -80px;
  width: 100%;
  height: 100%;
  min-height: 250px;
  text-align: center;
  font-size: 20vw;
  line-height: 0.85;
  font-weight: bold;
  transition: transform 0.5s, opacity 0.3s 1.4s;
  transform: translate3d(0, 1vw, 0);
}
.dog:hover .dog__index {
  transform: translate3d(0, 0, 0);
}
.cont.s--dog-active .dog__index {
  transition: transform 0.5s, opacity 0.3s;
  opacity: 0;
}
.dog__index-back, .dog__index-front {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}
.dog__index-back {
  color: #ddd;
  opacity: 0;
  transition: opacity 0.25s 0.25s;
}
.dog:hover .dog__index-back {
  transition: opacity 0.25s;
  opacity: 1;
}
.dog__index-overlay {
  overflow: hidden;
  position: relative;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.5s 0.1s;
  color: transparent;
}
.dog__index-overlay:before {
  content: attr(data-index);
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  transform: translate3d(0, -100%, 0);
  transition: transform 0.5s 0.1s;
}
.dog:hover .dog__index-overlay {
  transform: translate3d(0, 0, 0);
}
.dog:hover .dog__index-overlay:before {
  transform: translate3d(0, 0, 0);
}
.dog:nth-child(1) {
  transform: translate3d(0%, 0, 0);
  transform-origin: 50% 50%;
}
.cont.s--dog-active .dog:nth-child(1):not(.s--active) {
  transform: scale(0.5) translate3d(0%, 0, 0);
  opacity: 0;
  transition: transform 0.95s, opacity 0.95s;
}
.dog:nth-child(1) .dog__inner {
  transition-delay: 0s;
}
.dog:nth-child(1) .dog__bg {
  transform: translate3d(0%, 0, 0);
}
.dog:nth-child(1) .dog__bg:before {
  transition-delay: 0s;
  background-image: url("hundefell.jpg");
}
.dog:nth-child(2) {
  transform: translate3d(105.2083333333%, 0, 0);
  transform-origin: 155.2083333333% 50%;
}
.cont.s--dog-active .dog:nth-child(2):not(.s--active) {
  transform: scale(0.5) translate3d(105.2083333333%, 0, 0);
  opacity: 0;
  transition: transform 0.95s, opacity 0.95s;
}
.dog:nth-child(2) .dog__inner {
  transition-delay: 0.1s;
}
.dog:nth-child(2) .dog__bg {
  transform: translate3d(-19.2%, 0, 0);
}
.dog:nth-child(2) .dog__bg:before {
  transition-delay: 0.1s;
  background-image: url("gemuse.jpg");
}
.dog:nth-child(3) {
  transform: translate3d(210.4166666667%, 0, 0);
  transform-origin: 260.4166666667% 50%;
}
.cont.s--dog-active .dog:nth-child(3):not(.s--active) {
  transform: scale(0.5) translate3d(210.4166666667%, 0, 0);
  opacity: 0;
  transition: transform 0.95s, opacity 0.95s;
}
.dog:nth-child(3) .dog__inner {
  transition-delay: 0.2s;
}
.dog:nth-child(3) .dog__bg {
  transform: translate3d(-38.4%, 0, 0);
}
.dog:nth-child(3) .dog__bg:before {
  transition-delay: 0.2s;
  background-image: url("gelenke.jpg");
}
.dog:nth-child(4) {
  transform: translate3d(315.625%, 0, 0);
  transform-origin: 365.625% 50%;
}
.cont.s--dog-active .dog:nth-child(4):not(.s--active) {
  transform: scale(0.5) translate3d(315.625%, 0, 0);
  opacity: 0;
  transition: transform 0.95s, opacity 0.95s;
}
.dog:nth-child(4) .dog__inner {
  transition-delay: 0.3s;
}
.dog:nth-child(4) .dog__bg {
  transform: translate3d(-57.6%, 0, 0);
}
.dog:nth-child(4) .dog__bg:before {
  transition-delay: 0.3s;
  background-image: url("gesund.jpg");
}
.dog:nth-child(5) {
  transform: translate3d(420.8333333333%, 0, 0);
  transform-origin: 470.8333333333% 50%;
}
.cont.s--dog-active .dog:nth-child(5):not(.s--active) {
  transform: scale(0.5) translate3d(420.8333333333%, 0, 0);
  opacity: 0;
  transition: transform 0.95s, opacity 0.95s;
}
.dog:nth-child(5) .dog__inner {
  transition-delay: 0.4s;
}
.dog:nth-child(5) .dog__bg {
  transform: translate3d(-76.8%, 0, 0);
}
.dog:nth-child(5) .dog__bg:before {
  transition-delay: 0.4s;
  background-image: url("wildkrauter.jpg");
}
.dog:hover .dog__bg:after {
  opacity: 0;
}
.dog.s--active {
  z-index: 1;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.6s, width 0.7s 0.7s, z-index 0s;
}
.cont:not(.s--dog-active) .dog__bg:after {
  opacity: 0 !important;
}
.dog.s--active .dog__bg {
  transform: translate3d(0, 0, 0);
  transition: transform 0.6s;
}
.dog.s--active .dog__bg:before {
  transition-delay: 0.6s;
  transform: scale(1.1);
}

.icon-link {
  position: absolute;
  left: 5px;
  bottom: 5px;
  width: 32px;
}
.icon-link img {
  width: 100%;
  vertical-align: top;
}
.icon-link--twitter {
  left: auto;
  right: 5px;
}

/* Icon container styles */
.icon-container {
  width: 100%;
  height: 200px;
  background: rgba(0,0,0,0.40);
  display: flex;
  align-items: center;
  margin-top: 400px;
  justify-content: center;
}

.icon-img {
  max-width: 180px;
  width: 100%;
  height: auto;
}

.icon-img--large {
  max-width: 250px;
}

/* Description text styles */
.dog__description {
  color: #000;
  font-size: clamp(16px, 2vw, 26px);
  line-height: 1.5;
  max-width: 700px;
}

.text-box{
    width: clamp(260px, 42vw, 650px);
    margin-left: auto;
    margin-right: 6%;
    text-align: right;
}

/* ===== Tablet ===== */
@media (max-width: 1100px){
    .text-box{
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* ===== Smartphone ===== */
@media (max-width: 500px){
    .cont {
        padding: 60px 15px 100px 15px;
    }
    
    .dog__bg {
        width: calc(100vw - 30px);
    }
.esc-hint {
  display: none;
}    
.dog__text {
    font-size: clamp(27px, 7.5vw, 36px);  /* 50% größer */
    margin-top: 100px;
    line-height: 1.3;
}

.dog__description {
    font-size: clamp(21px, 5.25vw, 24px);  /* 50% größer */
    line-height: 1.4;
}
    
    .dog__content {
        padding: 15px;
        overflow-y: auto;
    }
    
    .text-box{
        margin-left: 5%;
        margin-right: 5%;
        text-align: left;
        width: auto;
    }
    
    /* Icon-Container im Preview kleiner und höher positionieren */
    .icon-container {
        height: 120px;
        margin-top: 200px;
    }
    
    .icon-img {
        max-width: 100px;
    }
    
    .icon-img--large {
        max-width: 120px;
    }
    
    .dog__close-btn {
        width: 40px;
        height: 40px;
        right: 5px;
        top: 5px;
    }
    
    .dog__close-btn:before, 
    .dog__close-btn:after {
        height: 5px;
        margin-top: -2.5px;
    }
}