/* =============================================
   LEISTUNGEN — HERO (3D Wireframe Globe)
   Vanilla-Portierung des DotGlobeHero-Templates
   ============================================= */

.lh-globe {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--c-bg-deep);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- 3D Canvas Layer ---- */
.lh-globe__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.lh-globe__canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ---- Atmospheric Overlay (radial pulses) ---- */
.lh-globe__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(18,18,18,0.55) 0%, transparent 35%, rgba(18,18,18,0.35) 100%);
}
.lh-globe__overlay::before,
.lh-globe__overlay::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: lh-globe-pulse 6s ease-in-out infinite;
}
.lh-globe__overlay::before {
  width: 28rem;
  height: 28rem;
  top: 20%;
  left: 18%;
  background: rgba(184, 126, 95, 0.08);
}
.lh-globe__overlay::after {
  width: 20rem;
  height: 20rem;
  bottom: 18%;
  right: 18%;
  background: rgba(212, 151, 111, 0.06);
  animation-delay: 2s;
}

@keyframes lh-globe-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(1.08); }
}

/* ---- Content Layer ---- */
.lh-globe__content {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.75rem, 4vh, 2.75rem);
}

/* ---- Badge ---- */
.lh-globe__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(184,126,95,0.18), rgba(184,126,95,0.08), rgba(184,126,95,0.18));
  border: 1px solid rgba(184,126,95,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-violet);
  opacity: 0;
  transform: scale(0.92);
  animation: lh-globe-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.lh-globe__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c-violet);
  position: relative;
  flex-shrink: 0;
}
.lh-globe__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--c-violet);
  animation: lh-globe-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.lh-globe__dot--delayed::after { animation-delay: 0.9s; }

@keyframes lh-globe-ping {
  0%   { transform: scale(1);   opacity: 0.9; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

/* ---- Title ---- */
.lh-globe__title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 7.5rem);
  user-select: none;
}

.lh-globe__line {
  display: block;
}

.lh-globe__line--thin {
  font-weight: 300;
  color: rgba(250, 250, 250, 0.7);
  font-size: 0.7em;
  margin-bottom: 0.35em;
  opacity: 0;
  transform: translateY(20px);
  animation: lh-globe-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.lh-globe__line--gradient {
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  animation: lh-globe-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.lh-globe__gradient-text {
  /* Exakt der Nav-Button-Verlauf (--c-gradient-cta), damit Hero & Navbar matchen */
  background: var(--c-gradient-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.lh-globe__line--gradient::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.02em;
  height: 0.07em;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #B87E5F 0%, #8B6F47 60%, transparent 100%);
  box-shadow: 0 4px 24px rgba(184,126,95,0.45);
  animation: lh-globe-sweep 1.4s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
}

@keyframes lh-globe-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lh-globe-pop {
  to { opacity: 1; transform: scale(1); }
}
@keyframes lh-globe-sweep {
  to { width: 100%; }
}

/* ---- Subtitles ---- */
.lh-globe__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--c-text-body);
  max-width: 48ch;
  margin: 0 auto;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  animation: lh-globe-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}
.lh-globe__subtitle--muted {
  font-size: clamp(0.95rem, 1.4vw, 1.125rem);
  color: var(--c-text-muted);
  font-weight: 400;
  max-width: 52ch;
  animation-delay: 1s;
}

.lh-globe__pill {
  color: var(--c-text-primary);
  font-weight: 600;
  background: linear-gradient(90deg, rgba(184,126,95,0.18), rgba(184,126,95,0.08));
  padding: 0.15em 0.55em;
  border-radius: 0.4em;
  border: 1px solid rgba(184,126,95,0.2);
  white-space: nowrap;
}

/* Mobile: Subtitle etwas kleiner, damit die Pill als EINE zentrierte Reihe
   passt (statt mit gebrochenem Highlight-Kasten umzubrechen). */
@media (max-width: 767px) {
  .lh-globe__subtitle {
    font-size: 0.95rem;
    max-width: 21rem;
    text-align: center;
  }
  .lh-globe__pill {
    display: inline-block;
    white-space: nowrap;
  }
  /* Muted-Untertitel: zweiter Satz immer auf EINER Zeile, beide Zeilen zentriert */
  .lh-globe__subtitle--muted {
    max-width: none;
    text-align: center;
  }
  .lh-globe__promise {
    display: block;
    white-space: nowrap;
  }
}

/* ---- Actions ---- */
.lh-globe__actions {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  opacity: 0;
  transform: translateY(14px);
  animation: lh-globe-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.15s forwards;
}

.lh-globe__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.75rem;
  border-radius: 0.85rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
  will-change: transform;
}

.lh-globe__btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.lh-globe__btn--primary {
  /* An die Site-CTA angeglichen (var(--c-gradient-cta), weißer Text) */
  background: var(--c-gradient-cta);
  color: #fff;
  border: 1px solid rgba(184,126,95,0.35);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    var(--c-glow-sm);
}

.lh-globe__btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.lh-globe__btn--primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 22px 44px rgba(0,0,0,0.4),
    0 0 28px rgba(184,126,95,0.45);
}
.lh-globe__btn--primary:hover::before { transform: translateX(100%); }
.lh-globe__btn--primary:hover svg     { transform: translateX(4px); }
.lh-globe__btn--primary:active        { transform: translateY(0) scale(0.99); }

.lh-globe__btn--ghost {
  background: rgba(18,18,18,0.6);
  color: var(--c-text-primary);
  border: 2px solid rgba(184,126,95,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lh-globe__btn--ghost:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(184,126,95,0.5);
  background: rgba(26,26,26,0.85);
  box-shadow: 0 18px 32px rgba(0,0,0,0.32), 0 0 18px rgba(184,126,95,0.18);
}
.lh-globe__btn--ghost:hover svg { transform: rotate(8deg) scale(1.1); }
.lh-globe__btn--ghost:active    { transform: translateY(0) scale(0.99); }

.lh-globe__btn:focus-visible {
  outline: 2px solid var(--c-violet);
  outline-offset: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .lh-globe__content { gap: 1.5rem; }
  .lh-globe__badge   { font-size: 0.7rem; padding: 0.55rem 1.1rem; }
  .lh-globe__title   { font-size: clamp(2.5rem, 13vw, 4rem); }
  .lh-globe__pill    { white-space: normal; }
  .lh-globe__actions { flex-direction: column; width: 100%; }
  .lh-globe__btn     { width: 100%; justify-content: center; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .lh-globe__badge,
  .lh-globe__line--thin,
  .lh-globe__line--gradient,
  .lh-globe__subtitle,
  .lh-globe__actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .lh-globe__line--gradient::after { animation: none; width: 100%; }
  .lh-globe__dot::after,
  .lh-globe__overlay::before,
  .lh-globe__overlay::after { animation: none; }
}
