@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Raleway:wght@400;700&display=swap');

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url('../../img/home/hero/bg2.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: fadeInHero 1.2s ease-out;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(9, 12, 72, 0.85),
    rgba(22, 24, 67, 0.718),
    rgba(255, 255, 255, 0.1)
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1300px;
  flex-wrap: wrap;
  animation: slideUp 1.2s ease-out;
}

.hero__text {
  max-width: 600px;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  order: 1;
}

.hero__text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeIn 1.5s ease-in;
}

/* Leuchtender Titel (deine Hex-Farben) */
.hero__highlight {
  background: linear-gradient(
    90deg,
    #386ff0,
    #45aaf2,
    #ffffff
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* optionaler leichter glow */
  filter: drop-shadow(0 6px 18px rgba(69, 170, 242, 0.18));
}

.hero__text p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  font-weight: 300;
  animation: fadeIn 1.8s ease-in;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeIn 2s ease-in;
}

.hero__btn {
  padding: 0.9rem 1.8rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Primary Button (Hex-Gradient) */
.hero__btn--primary {
  background: linear-gradient(90deg, #386ff0 0%, #45aaf2 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 30px rgba(52,111,240,0.12);
}

/* Outline Button (mit Hex-Akzent) */
.hero__btn--outline {
  border: 2px solid #45aaf2;
  color: #386ff0;
  background: rgba(255,255,255,0.03);
}

/* Primary hover */
.hero__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(69,170,242,0.28);
  opacity: 0.98;
}

/* Outline hover */
.hero__btn--outline:hover {
  background: linear-gradient(90deg, rgba(56,111,240,0.12), rgba(69,170,242,0.08));
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(69,170,242,0.16);
}

/* Social Icons */
.hero__socials {
  display: flex;
  gap: 1rem;
  animation: fadeIn 2.2s ease-in;
}

.hero__socials a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 0;
  border: 1px solid rgba(255,255,255,0.04);
}

/* Social hover nutzt Hex-Gradient */
.hero__socials a:hover {
  background: linear-gradient(90deg, #386ff0, #45aaf2);
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(69,170,242,0.18);
}

.hero__image {
  position: relative;
  width: 40%;
  display: flex;
  justify-content: flex-end;
  order: 2;
  animation: fadeIn 2s ease-in;
}

.hero__image img {
  width: 100%;
  max-width: 1080px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transform: translateY(0);
  transition: transform 0.2s ease-out;
}

/* kleine Glas-Overlays / Karten, falls vorhanden */
.card, .feature-box {
  background: linear-gradient(
    180deg,
    rgba(9, 12, 72, 0.85),
    rgba(22, 24, 67, 0.718)
  );
  border: 1px solid rgba(69,170,242,0.12);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(9,12,72,0.18);
}

/* ----------- Responsive Design ----------- */

@media (max-width: 992px) {
  .hero__content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .hero__text {
    order: 1;
  }

  .hero__image {
    order: 2;
    width: 70%;
    margin-top: 2.5rem;
  }

  .hero__text h1 {
    font-size: 2.5rem;
  }

  .hero__text p {
    font-size: 1rem;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__socials {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero {
    position: relative;
    height: auto;
    padding: 8rem 0 4rem 0;
    overflow: hidden;
    background: none !important;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to bottom,
        rgba(9, 12, 72, 0.85),
        rgba(22, 24, 67, 0.718),
        rgba(255, 255, 255, 0.1)
      ),
      url('https://kreativstudioweide.de/assets/img/home/hero/hero-phone.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
  }

  .hero__text h1 {
    font-size: 2rem;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero__image {
    width: 100%;
  }
}

/* ----------- Animations ----------- */

@keyframes fadeInHero {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
