/* Vinamo Hero-Animation — Website baut sich auf
   Farben: #6D3DF5 Violett · #0E0E10 Schwarz
   Der ganze Block skaliert mit seiner Breite (max. 470px). */

.vn-hero {
  --vn-violett: #6D3DF5;
  --vn-schwarz: #0E0E10;
  --vn-takt: 9s;              /* Dauer eines Durchlaufs */
  position: relative;
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  perspective: 1400px;
}

.vn-hero__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(109,61,245,0.14) 0%, rgba(109,61,245,0) 68%);
  pointer-events: none;
}

.vn-hero__tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 260ms ease-out;
}

.vn-hero__float { animation: vn-float 7s ease-in-out infinite; }

.vn-hero__browser {
  position: relative;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e7e5ec;
  box-shadow: 0 30px 70px rgba(24,18,60,0.14);
  overflow: hidden;
}

/* --- Browser-Leiste --- */
.vn-hero__chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  background: #faf9fb;
  border-bottom: 1px solid #eeecf1;
}
.vn-hero__dot { width: 9px; height: 9px; border-radius: 50%; background: #e3e0e8; }
.vn-hero__urlwrap { flex: 1; display: flex; justify-content: center; }
.vn-hero__url {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #eae8ee;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #6b6875;
}
.vn-hero__spacer { width: 30px; }
.vn-hero__load {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  background: var(--vn-violett);
  animation: vn-load var(--vn-takt) ease-in-out infinite;
}

/* --- Seiteninhalt --- */
.vn-hero__page { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 18px; background: #fff; }

.vn-hero__nav { display: flex; align-items: center; justify-content: space-between; }
.vn-hero__brand { display: flex; align-items: center; gap: 8px; }
.vn-hero__brandname { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; color: var(--vn-schwarz); }
.vn-hero__navlinks { display: flex; gap: 13px; }
.vn-hero__navlinks span { height: 6px; border-radius: 4px; background: #eceaf1; }
.vn-hero__navlinks span:nth-child(1) { width: 38px; }
.vn-hero__navlinks span:nth-child(2) { width: 30px; }
.vn-hero__navlinks span:nth-child(3) { width: 44px; }

.vn-hero__split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: center; position: relative; z-index: 2; }
.vn-hero__copy { display: flex; flex-direction: column; gap: 11px; }

.vn-hero__slot { position: relative; }
.vn-hero__slot--title { height: 20px; }
.vn-hero__slot--text { height: 26px; }
.vn-hero__slot--bild { height: 120px; }
.vn-hero__slot--karte { height: 56px; }

/* Wireframe-Umriss, verschwindet wenn der Block fertig ist */
.vn-hero__wire {
  position: absolute;
  inset: 0;
  border: 1.5px dashed #ded9ee;
  border-radius: 5px;
  animation: vn-wire var(--vn-takt) ease-in-out infinite;
}
.vn-hero__wire--stark { border-color: #cfc7ea; }
.vn-hero__wire--rund { border-radius: 10px; }
.vn-hero__wire--karte { border-radius: 9px; }

.vn-hero__real { position: absolute; inset: 0; animation: vn-fill var(--vn-takt) ease-in-out infinite; }

.vn-hero__title {
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--vn-schwarz);
}
.vn-hero__lines { display: flex; flex-direction: column; gap: 6px; }
.vn-hero__lines span { height: 6px; border-radius: 4px; background: #eceaf1; }
.vn-hero__lines span:nth-child(1) { width: 100%; }
.vn-hero__lines span:nth-child(2) { width: 70%; }

.vn-hero__bild {
  border-radius: 10px;
  background: linear-gradient(140deg, #8C6BFF 0%, var(--vn-violett) 52%, #3F18B8 100%);
  overflow: hidden;
}
.vn-hero__bild svg { position: absolute; right: -8px; bottom: -6px; opacity: 0.26; }

/* --- Button, Cursor, Klick-Ring --- */
.vn-hero__ctawrap { position: relative; z-index: 4; align-self: flex-start; margin-top: 2px; }
.vn-hero__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  margin: -41px 0 0 -41px;
  border-radius: 50%;
  border: 2px solid var(--vn-violett);
  animation: vn-ring var(--vn-takt) ease-in-out infinite;
}
.vn-hero__cta {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--vn-violett);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  animation: vn-btn var(--vn-takt) ease-in-out infinite;
}
.vn-hero__cursor {
  position: absolute;
  right: -13px;
  bottom: -15px;
  animation: vn-cursor var(--vn-takt) ease-in-out infinite;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.22));
}

/* --- Drei Leistungs-Karten --- */
.vn-hero__karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 1; }
.vn-hero__karte {
  border-radius: 9px;
  border: 1px solid #eeecf1;
  background: #fbfafc;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.vn-hero__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vn-violett);
}
.vn-hero__karte span:not(.vn-hero__label) { height: 5px; border-radius: 4px; background: #eceaf1; }

/* --- Erfolgs-Badge --- */
.vn-hero__badge {
  position: absolute;
  right: -22px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--vn-schwarz);
  color: #fff;
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(14,14,16,0.28);
  animation: vn-badge var(--vn-takt) ease-in-out infinite;
}
.vn-hero__badge div { display: flex; flex-direction: column; gap: 1px; }
.vn-hero__badge strong { font-size: 12px; font-weight: 700; letter-spacing: -0.01em; }
.vn-hero__badge small { font-size: 9px; font-weight: 500; letter-spacing: 0.06em; color: #a29dbb; }

/* --- Zeitversatz der einzelnen Bausteine --- */
.vn-d1 { animation-delay: 0.5s; }
.vn-d2 { animation-delay: 0.8s; }
.vn-d3 { animation-delay: 0.9s; }
.vn-d4 { animation-delay: 1.3s; }
.vn-d5 { animation-delay: 1.5s; }
.vn-d6 { animation-delay: 1.7s; }

.vn-block { animation: vn-block var(--vn-takt) ease-in-out infinite; }

/* --- Keyframes --- */
@keyframes vn-block {
  0%       { opacity: 0; transform: translateY(24px) scale(0.96); }
  8%       { opacity: 1; transform: translateY(0) scale(1); }
  86%      { opacity: 1; transform: translateY(0) scale(1); }
  96%,100% { opacity: 0; transform: translateY(-12px) scale(0.98); }
}
@keyframes vn-wire  { 0%,10% { opacity: 1; } 34%,100% { opacity: 0; } }
@keyframes vn-fill  { 0%,12% { opacity: 0; } 38%,100% { opacity: 1; } }
@keyframes vn-cursor {
  0%,44%   { opacity: 0; transform: translate(-42px, -26px); }
  50%      { opacity: 1; transform: translate(-42px, -26px); }
  64%      { opacity: 1; transform: translate(0, 0); }
  70%      { opacity: 1; transform: translate(0, 0) scale(0.82); }
  76%      { opacity: 1; transform: translate(0, 0) scale(1); }
  88%,100% { opacity: 0; transform: translate(6px, -8px); }
}
@keyframes vn-btn {
  0%,66%   { transform: scale(1);    box-shadow: 0 6px 18px rgba(109,61,245,0.28); }
  72%      { transform: scale(0.95); box-shadow: 0 2px 8px  rgba(109,61,245,0.35); }
  78%,100% { transform: scale(1);    box-shadow: 0 10px 26px rgba(109,61,245,0.34); }
}
@keyframes vn-badge {
  0%,72%   { opacity: 0; transform: translateY(14px) scale(0.9); }
  80%      { opacity: 1; transform: translateY(0) scale(1); }
  92%      { opacity: 1; transform: translateY(0) scale(1); }
  100%     { opacity: 0; transform: translateY(-8px) scale(0.98); }
}
@keyframes vn-ring  { 0%,68% { opacity: 0; transform: scale(0.4); } 74% { opacity: 0.55; transform: scale(1); } 84%,100% { opacity: 0; transform: scale(1.6); } }
@keyframes vn-load  { 0% { width: 0%; opacity: 1; } 30% { width: 100%; opacity: 1; } 40%,100% { width: 100%; opacity: 0; } }
@keyframes vn-float { 0%,100% { transform: translateY(-7px); } 50% { transform: translateY(7px); } }

/* Schmale Bildschirme: Badge nach innen holen */
@media (max-width: 560px) {
  .vn-hero__badge { right: 8px; bottom: 14px; }
  .vn-hero__split { grid-template-columns: 1fr; }
  .vn-hero__slot--bild { display: none; }
}

/* Nutzer mit reduzierter Bewegung: fertige Seite ohne Animation */
@media (prefers-reduced-motion: reduce) {
  .vn-hero *,
  .vn-hero *::before,
  .vn-hero *::after { animation: none !important; }
  .vn-hero__wire { opacity: 0; }
  .vn-hero__real, .vn-hero__badge, .vn-hero__cursor { opacity: 1; }
  .vn-hero__cursor { display: none; }
}
