/* ============================================================
   Hero-Komponente – versetzte Bild-Galerie mit Anschnitt
   Wiederverwendbar via templates/partials/_hero.html.twig
   ============================================================ */

:root {
  --hero-pink: var(--brand-primary);
  --hero-pink-dark: var(--brand-primary-dark);
  --hero-teal: var(--brand-secondary);
  --hero-teal-dark: var(--brand-secondary-dark);
  --hero-beige: var(--surface-beige);
  --hero-ink: var(--text-heading);
  --hero-muted: var(--text-muted);
  --hero-line: var(--border-subtle);
  --hero-card-radius: 1rem;
}

/* ----------------------------------------------------------
   Hero-Container
   ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 6rem;
}

.hero::before {
  content: "";
  position: absolute;
  right: -12%;
  top: 6%;
  width: 780px;
  height: 780px;
  /*background: radial-gradient(circle at center, rgba(197, 43, 108, .16), rgba(0, 136, 180, .10) 42%, transparent 70%);*/
  background: radial-gradient(circle at center, var(--surface-beige) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46%;
  /*background: linear-gradient(180deg, var(--hero-beige), rgba(242, 235, 228, 0) 85%);*/
  opacity: .6;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

/* ----------------------------------------------------------
   Text-Block
   ---------------------------------------------------------- */
.hero-text {
  order: -1;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hero-pink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero .eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--hero-pink);
  border-radius: 2px;
}

.hero h1 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--hero-ink);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--hero-teal);
}

.hero .lede {
  font-size: 19px;
  color: var(--hero-muted);
  max-width: 30em;
  margin-bottom: 34px;
}

/* ----------------------------------------------------------
   CTA-Buttons (Harmonisiert mit Bootstrap)
   ---------------------------------------------------------- */
.hero .actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  box-shadow: 0 10px 24px -10px rgba(var(--brand-primary-rgb), .4);
  transition: transform .15s, background .2s, box-shadow .2s;
}

.hero .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(var(--brand-primary-rgb), .5);
}

.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hero-ink);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.8rem 0.5rem;
  transition: color .2s;
}

.hero-btn-ghost:hover {
  color: var(--hero-teal);
}

.hero-btn-ghost svg {
  transition: transform .2s;
}

.hero-btn-ghost:hover svg {
  transform: translateX(4px);
}

/* ----------------------------------------------------------
   Trust-Badges
   ---------------------------------------------------------- */
.hero .trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  color: var(--hero-muted);
  font-size: 14px;
  font-weight: 600;
  flex-wrap: wrap;
}

.hero .trust b {
  color: var(--hero-ink);
}

.hero .stars {
  color: var(--rating-star);
  letter-spacing: 1px;
}

.hero .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hero-line);
}

/* ----------------------------------------------------------
   Galerie – Desktop: 3 versetzte Spalten, rechts auslaufend
   ---------------------------------------------------------- */
.hero .gallery {
  display: flex;
  gap: 18px;
  margin-right: -70px;
  justify-content: flex-end;
}

.hero .gcol {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 0 0 auto;
  width: 188px;
}

.hero .gcol.c1 { margin-top: 96px; }
.hero .gcol.c2 { margin-top: 48px; }
.hero .gcol.c3 { margin-top: 0; }

.hero .card {
  position: relative;
  border-radius: var(--hero-card-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  background: var(--hero-beige);
}

.hero .card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero .card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(13, 36, 46, .78));
}

/* Einblend-Animation (Desktop) */
.hero .card {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise .7s cubic-bezier(.2, .7, .2, 1) forwards;
}

.hero .gcol.c3 .card:nth-child(1) { animation-delay: .05s; }
.hero .gcol.c2 .card:nth-child(1) { animation-delay: .15s; }
.hero .gcol.c1 .card:nth-child(1) { animation-delay: .25s; }
.hero .gcol.c3 .card:nth-child(2) { animation-delay: .30s; }
.hero .gcol.c2 .card:nth-child(2) { animation-delay: .40s; }
.hero .gcol.c1 .card:nth-child(2) { animation-delay: .50s; }

@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------
   Mobile – 2-Spalten-Raster, nur die ersten 3 Bilder
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    padding: 3rem 0 4rem;
  }

  .hero::after {
    display: none;
  }

  .hero::before {
    right: -30%;
    top: 30%;
    width: 520px;
    height: 520px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-text {
    order: 0;
  }

  .hero .lede {
    font-size: 17px;
  }

  .hero .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;
    justify-content: stretch;
  }

  .hero .gcol {
    display: contents;
  }

  .hero .card {
    width: auto;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero .gcol .card:nth-child(2) {
    transform: translateY(20px);
  }

  .hero .gcol.c1 {
    margin-top: 0;
  }

  /* nur die ersten 3 Bilder zeigen: Bild 4,5,6 ausblenden */
  .hero .gcol.c2,
  .hero .gcol.c3 .card {
    display: none;
  }
}
