/* 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;
  /* 140px statt 200px: gleicht die Höhe von Eyebrow + Fakten-Zeile aus, damit
     die CTA-Buttons auf Laptop-Viewports weiterhin ohne Scrollen sichtbar sind */
  padding-top: 140px;
  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;
  animation: orb-float-a 11s ease-in-out infinite;
}

.carousel::after {
  width: 140px;
  height: 140px;
  bottom: -30px;
  left: -20px;
  background: var(--amber);
  opacity: 0.15;
  animation: orb-float-b 9s ease-in-out infinite;
}

/* Langsames Schweben der Farbkreise (wie die Orbs auf rein-campus.de) */
@keyframes orb-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, 12px) scale(1.06); }
}

@keyframes orb-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -8px) scale(0.94); }
}

.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;
  /* Rahmen (Radius + mehrschichtiger Schatten mit Teal-getöntem Glow) sitzt auf
     dem Wrapper statt auf dem Bild, damit der Soft-Zoom des Bildes sauber an der
     abgerundeten Kante beschnitten wird. */
  border-radius: var(--radius-xl);
  overflow: hidden;
  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);
}

.image-wrapper img {
  width: 100%;
}

/* Soft-Zoom beim Hover (wie die Fotos auf rein-campus.de/hello-learn.de) */
.carousel-image {
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.carousel-image:hover {
  transform: scale(1.03);
}

/* 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;
  /* Mindestabstand, falls der Inhalt (Eyebrow + Headline + Fakten-Zeile) die
     verfügbare Höhe ausfüllt und space-between nichts mehr zu verteilen hat */
  gap: 20px;
}

.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);
}

/* Akzentzeile der Headline (wie .accent auf rein-campus.de). --amber-dark statt
   --amber: erreicht auf Weiß das 3:1-Kontrastminimum für große Schrift. */
.hero-title .hero-title-accent {
  color: var(--amber-dark);
}

/* Kompakte Fakten-Zeile unter den Hero-Buttons (wie die Häkchen-Liste auf hello-learn.de) */
.hero .eyebrow {
  margin-bottom: 0;
}

.hero-trust {
  list-style: none;
  /* Abstand zum Hero-Bild im gestapelten Layout (trug vorher .hero-btns) */
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.hero-trust li::before {
  content: '✓';
  margin-right: 6px;
  color: var(--teal-dark);
  font-weight: 700;
}

.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.3s var(--spring), background 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--paper-soft);
}
