/* ============================================================
   loqal – Gesten-Hero fuer /webdesign/
   Eigene Wheel/Touch-Steuerung fuer einen kurzen, in sich
   geschlossenen Intro-Akt (0 -> 1). Nach Abschluss wird die
   Kontrolle an den normalen Dokument-Scroll zurueckgegeben, der
   Rest der Seite (Beweis-Akt, Prozess, FAQ, Footer) scrollt normal.
   Farb-/Schriftsystem 1:1 aus subpage-light.css (--paper/--ink/--accent,
   Geist Variable), keine neue Palette.
   ============================================================ */

.ghero {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.ghero-video-wrap {
  position: absolute;
  inset: 0;
  transform: scale(1.05);
  will-change: transform;
}
.ghero-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ghero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 15, 0.55) 0%, rgba(20, 20, 15, 0.28) 35%, rgba(20, 20, 15, 0.82) 100%);
}

.ghero-loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  transition: opacity 0.5s ease;
}
.ghero-loader.is-hidden { opacity: 0; pointer-events: none; }
.ghero-loader-ring {
  position: relative;
  width: 44px;
  height: 44px;
}
.ghero-loader-ring::before,
.ghero-loader-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}
.ghero-loader-ring::before {
  border: 3px solid rgba(25, 231, 208, 0.2);
}
.ghero-loader-ring::after {
  border: 3px solid transparent;
  border-top-color: var(--accent);
  animation: gheroSpin 0.9s linear infinite;
}
@keyframes gheroSpin { to { transform: rotate(360deg); } }

.ghero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6.5rem 1.5rem 8rem;
}
.ghero-content .kicker { color: var(--accent); }
.ghero-title {
  font-size: clamp(2.4rem, 7.2vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 0.75rem;
  color: var(--paper);
}
.ghero-title .char { display: inline-block; will-change: transform, opacity; }
.ghero-title .em { color: var(--accent); }
.ghero-lede {
  max-width: 42ch;
  margin: 1.4rem auto 0;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.7;
  color: rgba(250, 249, 245, 0.72);
}
.ghero-actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; justify-content: center; margin-top: 2.1rem; }
/* Buttons auf dunklem Grund invertieren, wie .hero es in subpage-light.css tut */
.ghero-actions .btn-p { background: var(--accent); color: var(--ink); }
.ghero-actions .btn-s { background: transparent; color: var(--paper); border-color: rgba(250, 249, 245, 0.28); }
.ghero-actions .btn-s:hover { background: rgba(250, 249, 245, 0.08); border-color: rgba(250, 249, 245, 0.5); }

.ghero-tiles {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 6.5rem;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
@media (min-width: 700px) {
  .ghero-tiles { left: auto; right: 3.5rem; bottom: 5.5rem; width: 19rem; }
}
.ghero-tiles.is-visible { opacity: 1; pointer-events: auto; }
.ghero-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 1.1rem;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  will-change: transform, opacity, filter;
}
.ghero-tile .gic { display: flex; height: 2.1rem; width: 2.1rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 0.7rem; background: var(--accent-tint); color: var(--accent-ink); font-size: 1.05rem; }
.ghero-tile b { display: block; font-size: 0.92rem; font-weight: 600; }
.ghero-tile span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }

.ghero-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 249, 245, 0.55);
  transition: opacity 0.3s ease;
}
.ghero-cue svg { width: 16px; height: 16px; animation: gheroBounce 1.6s ease-in-out infinite; }
@keyframes gheroBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.ghero-cue.is-hidden { opacity: 0; }

.ghero-rail {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  height: 8rem;
  width: 2px;
  background: rgba(250, 249, 245, 0.14);
  display: none;
}
@media (min-width: 900px) { .ghero-rail { display: block; } }
.ghero-rail i {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .ghero-title .char { opacity: 1 !important; transform: none !important; }
  .ghero-tiles { opacity: 1; pointer-events: auto; }
}
