/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  /* Radialer Glow-Hintergrund aus new_mockup.html: Turquoise oben rechts, Orange unten links */
  background:
    radial-gradient(900px 500px at 85% -10%, var(--sage) 0%, transparent 60%),
    radial-gradient(700px 500px at 5% 10%, var(--amber-soft) 0%, transparent 60%);
  display: flex;
  justify-content: center;
  padding-top: 200px;
  padding-bottom: var(--space-20);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-content {
  height: 100%;
  flex: 1.1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-image-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 700px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: block;
}

.carousel {
  position: relative;
  flex: 0.9;
  height: 100%;
}

/* Dekorative Farbkreise hinter dem Hero-Foto (Mockup-Look: .hero-blob) */
.carousel::before,
.carousel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  z-index: 0;
}

.carousel::before {
  width: 180px;
  height: 180px;
  top: -40px;
  right: -20px;
  background: var(--teal);
  opacity: 0.18;
}

.carousel::after {
  width: 140px;
  height: 140px;
  bottom: -30px;
  left: -20px;
  background: var(--amber);
  opacity: 0.15;
}

.carousel-content-wrapper {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  align-content: center;
  align-items: center;
}

.image-wrapper {
  /* All slides share a single grid cell so they overlap for the crossfade while
     staying in flow — this lets the container derive its height from the image
     (an absolutely positioned slide would contribute 0 height and get clipped). */
  grid-area: 1 / 1;
  position: relative;
}

.image-wrapper img {
  width: 100%;
}

.carousel-image {
  border-radius: var(--radius-xl);
  display: block;
  /* Mehrschichtiger Schatten + Hover-Lift, analog zu .about-me-photo-card:
     enger Kontaktschatten, weicher Umgebungsschatten und ein dezent
     Teal-getönter Glow, der die Markenfarbe aufgreift. */
  box-shadow:
    0 2px 6px -2px rgba(30, 35, 33, 0.12),
    0 18px 40px -18px rgba(30, 35, 33, 0.28),
    0 34px 64px -30px rgba(31, 142, 133, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.carousel-image:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 10px -3px rgba(30, 35, 33, 0.14),
    0 24px 50px -18px rgba(30, 35, 33, 0.32),
    0 44px 80px -32px rgba(31, 142, 133, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-image {
    transition: none;
  }
  .carousel-image:hover {
    transform: none;
  }
}

/* KI-Kennzeichnung: dezenter Text ohne Hintergrundfläche, überlagert auf
   KI-generierten/-bearbeiteten Bildern. Text-Shadow statt Badge-Hintergrund
   sorgt unabhängig vom jeweiligen Bildinhalt für ausreichend Kontrast. */
.ai-image-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

.hero-content-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-title {
  /* Base size for large screens (>1350px); stepped down via media_queries.css */
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 72px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: left;
  padding-top: 16px;
}

.hero-title span {
  display: block;
  color: var(--ink);
}

.hero-desc {
  max-width: 520px;
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  text-align: left;
}

/* Sekundärer Hero-CTA (Stil aus Homepage_Design-Vorlage, dort .btn-ghost) */
.btn-secondary {
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: 600;
  background: none;
  border: 1.5px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--paper-soft);
}
