/*
 * TWZV Hero - styles 1:1 aus der echten Site (home.css).
 * Auto-enqueued von Blockstudio nur wenn der Block auf der Seite ist.
 */

.hero-waves {
  position: relative;
  overflow: hidden;
  color: var(--nl-primary-fg, #fff);
  padding: clamp(3.5rem, 7vw, 7rem) 0 clamp(3rem, 6vw, 6rem);
  background:
    radial-gradient(ellipse at 50% 30%,  rgba(35, 70, 140, .45), transparent 65%),
    radial-gradient(ellipse at 50% 110%, rgba(0, 0, 0, .55),     transparent 65%),
    #1a3565;
}

.hero-waves__inner {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.hero-waves h1 {
  margin: 0;
  color: var(--nl-primary-fg, #fff);
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}
.hero-waves h1 mark { background: transparent; color: var(--nl-accent, #abd26d); }

.hero-image__lead {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  max-width: 82ch;
  color: var(--nl-primary-fg, #fff);
  opacity: .95;
  font-size: clamp(1.05rem, .95rem + .7vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-image__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---- Ripple-Animation (zen-ripple): konzentrische Lichtringe ---- */
.hero-waves__bg {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}
.hero-ripple {
  border: 12px solid rgba(220, 240, 255, 0);
  border-radius: 50%;
  height: clamp(420px, 55vw, 980px);
  width: clamp(420px, 55vw, 980px);
  left: var(--rx, 50%);
  top: var(--ry, 50%);
  position: absolute;
  transform: translate(-50%, -50%) scale(0);
  filter: blur(6px);
  will-change: transform, border-color;
  animation: zen-ripple 16s cubic-bezier(0.18, 0.6, 0.4, 1) infinite;
  animation-delay: var(--rd, 0s);
}
.hero-ripple::before,
.hero-ripple::after {
  border: 10px solid rgba(220, 240, 255, 0);
  border-radius: 50%;
  content: '';
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  position: absolute;
  transform-origin: center center;
  transform: scale(0);
  filter: blur(5px);
  animation: zen-ripple-inner 16s cubic-bezier(0.18, 0.6, 0.4, 1) infinite;
}
.hero-ripple::before { animation-delay: calc(var(--rd, 0s) + 5s); }
.hero-ripple::after  { animation-delay: calc(var(--rd, 0s) + 10s); }

.hero-ripple--1 { --rx: 22%; --ry: 36%; --rd: 0s; }
.hero-ripple--2 { --rx: 76%; --ry: 64%; --rd: 8s; }

@keyframes zen-ripple {
  0%   { transform: translate(-50%, -50%) scale(0); border-color: rgba(220, 240, 255, .55); }
  8%   { border-color: rgba(220, 240, 255, .55); }
  100% { transform: translate(-50%, -50%) scale(1); border-color: rgba(220, 240, 255, 0); }
}
@keyframes zen-ripple-inner {
  0%   { transform: scale(0); border-color: rgba(220, 240, 255, .42); }
  8%   { border-color: rgba(220, 240, 255, .42); }
  100% { transform: scale(1); border-color: rgba(220, 240, 255, 0); }
}

/* User-Pause (Button) */
body.motion-paused .hero-ripple,
body.motion-paused .hero-ripple::before,
body.motion-paused .hero-ripple::after { animation-play-state: paused; }

/* System-Praeferenz respektieren */
@media (prefers-reduced-motion: reduce) {
  .hero-ripple,
  .hero-ripple::before,
  .hero-ripple::after { animation: none; }
}

/* ---- Motion-Toggle (Pause/Play unten rechts) ---- */
.motion-toggle {
  align-items: center;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: var(--nl-primary-fg, #fff);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  width: 40px;
  justify-content: center;
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  transition: background .15s ease;
  z-index: 5;
}
.motion-toggle:focus-visible { outline: 3px solid var(--nl-accent, #abd26d); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .motion-toggle:hover { background: rgba(255, 255, 255, .28); }
}
.motion-toggle__icon { fill: currentColor; height: 18px; width: 18px; }
.motion-toggle__icon--play { display: none; }
body.motion-paused .motion-toggle__icon--pause { display: none; }
body.motion-paused .motion-toggle__icon--play  { display: block; }

/* ---- Button ---- */
.hero-waves .btn {
  display: inline-block;
  padding: .9rem 2rem;
  border-radius: .5rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hero-waves .btn-accent { background: var(--nl-accent, #abd26d); color: var(--nl-accent-fg, #231f20); }
@media (hover: hover) and (pointer: fine) {
  .hero-waves .btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
}
.hero-waves .btn:focus-visible { outline: 3px solid var(--nl-primary-fg, #fff); outline-offset: 3px; }
