/* Shared Hero styles extracted from leistungen-oeffentlich.html */
/* Desktop-first hero rotator for slim hero sections */
.hero-slim.hero-animated {
  position: relative;
  overflow: hidden;
}
.hero-slim.hero-animated .tag {
  display: inline-block;
  margin-bottom: 0.9rem; /* Abstand zum Bild+Text Block */
}
.hero-slim.hero-animated .lead {
  margin-top: 1.4rem; /* Abstand unterhalb des Bild+Text Blocks */
  font-size: 1.05rem;
  line-height: 1.45;
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.hero-rotator {
  position: relative;
  display: flex;
  align-items: stretch; /* WICHTIG: stretch statt center */
  min-height: unset;
  height: 140px;
}
.hero-rotator .slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s ease, transform 1s ease;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
}
.hero-rotator .slide.active {
  position: relative;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.hero-figure {
  position: relative;
  flex: 0 0 140px;
  width: 140px;
  max-width: 140px;
  min-width: 140px;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  border-radius: 14px 0 0 14px;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
  margin: 0; /* Standard-<figure>-Margin entfernen (Ursache Versatz) */
}
.hero-figure::before,
.hero-figure::after {
  content: "";
  position: absolute;
  inset: -8% -10%;
  background: radial-gradient(circle at 30% 30%, #ffe9c9, transparent 65%),
    radial-gradient(circle at 70% 70%, #ffd2f5, transparent 70%);
  filter: blur(28px) brightness(1.1);
  opacity: 0.55;
  z-index: -2;
  animation: heroGlow 9s linear infinite;
}
.hero-figure::after {
  background: conic-gradient(from 120deg, #ffb347, #ff6699, #ffd861, #ffb347);
  mix-blend-mode: overlay;
  opacity: 0.18;
  filter: blur(40px);
  animation: heroGlowAlt 11s linear infinite;
}
.hero-rotator img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
  border: none;
}
.hero-copy {
  flex: 1 1 0%;
  max-width: 640px;
  position: relative;
  background: linear-gradient(
    90deg,
    var(--accent, #00a7eb),
    var(--accent-dark, #0072b5)
  );
  color: #fff;
  display: flex;
  align-items: stretch; /* stretch statt center */
  justify-content: flex-start;
  padding: 0 1.6rem;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
}
.hero-copy h1 {
  font-size: 2.15rem; /* größer für Eye-Catcher */
  line-height: 1.1;
  margin: auto 0; /* vertikal mittig im Block */
  font-weight: 600;
  color: #fff;
}
@keyframes heroImgPulse {
  0%,
  100% {
    transform: scale(1) rotate(0.2deg);
  }
  50% {
    transform: scale(1.035) rotate(-0.6deg);
  }
}
@keyframes heroGlow {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(4%, -3%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes heroGlowAlt {
  0% {
    transform: rotate(0deg) scale(1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}
@keyframes underlineSwipe {
  0%,
  55% {
    transform: scaleX(0);
  }
  65%,
  90% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes sheen {
  0% {
    transform: translateX(-120%);
  }
  55% {
    transform: translateX(110%);
  }
  100% {
    transform: translateX(110%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rotator .slide,
  .hero-rotator img,
  .hero-figure::before,
  .hero-figure::after,
  .hero-copy h1 .accent-underline::after {
    animation: none !important;
  }
  .hero-rotator .slide {
    transition: none;
  }
}

/* NOTE: Mobile / small-screen hero rules intentionally minimal (desktop-first)
   Small tweak: reduce heading at very small widths */
@media (max-width: 600px) {
  .hero-copy h1 {
    font-size: 1.25rem; /* smaller but still prominent */
    line-height: 1.08;
    padding-right: 0.2rem;
  }
  .hero-copy {
    padding: 0 1rem; /* a little less horizontal padding */
  }
}
