/* Startseite */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Ein Verlauf statt zwei überlagerter (vertikal+horizontal): dunkelt
     gezielt die Textseite links ab, lässt die Lichtshow rechts kräftiger
     durchscheinen, plus ein dezentes Boden-Vignette für Lesbarkeit unten. */
  background: linear-gradient(100deg, rgba(6, 6, 7, 0.85) 0%, rgba(6, 6, 7, 0.5) 40%, rgba(6, 6, 7, 0.12) 68%, rgba(6, 6, 7, 0.3) 100%),
    linear-gradient(0deg, rgba(6, 6, 7, 0.6) 0%, rgba(6, 6, 7, 0) 42%);
}

.hero__content {
  /* Bewusst KEIN eigenes max-width mehr auf dieser Box: .container liefert
     bereits die 1240px-Spalte, die exakt mit den Sektionen darunter (z. B.
     dem Bild im Über-mich-Teaser) fluchtet. Ein zusätzliches max-width
     hier würde (durch das geerbte margin-inline:auto) diese Spalte erneut
     zentrieren statt an ihrer eigenen linken Kante zu bleiben. Die Lesbreite
     wird stattdessen gezielt auf .hero__lede begrenzt (siehe unten). */
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content > * {
  opacity: 0;
  animation: hero-in var(--dur-slow) var(--ease-out) forwards;
}

.hero__content > *:nth-child(1) {
  animation-delay: 60ms;
}
.hero__content > *:nth-child(2) {
  animation-delay: 160ms;
}
.hero__content > *:nth-child(3) {
  animation-delay: 260ms;
}
.hero__content > *:nth-child(4) {
  animation-delay: 360ms;
}

.hero__title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-8);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.hero__lede {
  font-size: var(--fs-lg);
  color: #d9d9dc;
  max-width: 36rem;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.stats-band {
  border-bottom: 1px solid var(--color-border);
}

/* --- Leistungen --- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Über-mich-Teaser --- */

.about-teaser__grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: var(--space-10);
  align-items: center;
}

.about-teaser__img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-teaser__img--cutout {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-teaser__img--cutout::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: var(--gradient-brand-soft);
  filter: blur(40px);
  border-radius: 50%;
  z-index: -1;
}

.about-teaser__img--cutout img {
  border-radius: 0;
  box-shadow: none;
  max-width: 78%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 96%);
}

.about-teaser__img--cutout::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 42%;
  height: 22px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent 75%);
  transform: translateX(-50%);
  z-index: -1;
  filter: blur(3px);
}

.about-teaser__text p {
  margin-bottom: var(--space-4);
}

@media (max-width: 780px) {
  .about-teaser__grid {
    grid-template-columns: 1fr;
  }
  .about-teaser__img {
    max-width: 320px;
    margin-inline: auto;
  }
}

/* --- Galerie-Teaser --- */

.gallery-teaser__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.gallery-teaser__item {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
}

.gallery-teaser__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery-teaser__item:hover img {
  transform: scale(1.06);
}

@media (max-width: 760px) {
  .gallery-teaser__grid {
    grid-template-columns: 1fr 1fr;
  }
}

