/* =========================================================
   NEXAS Media — /marketing
   Spotlight Hero: Fluid-Smoke-Effekt + 3D-Titel-Tilt
   ========================================================= */

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.mk-hero { cursor: none; }

.mk-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.3s;
  mix-blend-mode: difference;
}

.mk-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(22,224,255,0.45);
  pointer-events: none;
  z-index: 8999;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.3s;
}

.mk-cursor.is-hidden,
.mk-cursor-ring.is-hidden { opacity: 0; }

/* =========================================================
   HERO
   ========================================================= */
.mk-hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  background: #060810;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Subtiles Grid */
.mk-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 35%, transparent 88%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 35%, transparent 88%);
  pointer-events: none;
}

/* Smoke Canvas — CSS-Blur macht das Rendering weich */
.mk-smoke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  filter: blur(18px) saturate(1.4);
  mix-blend-mode: screen;
}

/* Scharfe Partikel oben drüber */
.mk-smoke-sharp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  filter: blur(3px);
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* Spotlight-Gradient folgt der Maus */
.mk-spotlight {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(700px at 50% 50%, rgba(255,255,255,0.055), transparent 70%);
  will-change: background;
}

/* Vignette-Ring */
.mk-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 38%, rgba(6,8,16,0.88) 100%);
  pointer-events: none;
}

/* Fade nach unten */
.mk-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: clamp(100px, 18vh, 220px);
  background: linear-gradient(to bottom, transparent, #060810);
  z-index: 6;
  pointer-events: none;
}

/* =========================================================
   HERO CONTENT — 3D Karte
   ========================================================= */
.mk-hero-3d {
  position: relative;
  z-index: 10;
  perspective: 900px;
}

.mk-hero-card {
  transform-style: preserve-3d;
  text-align: center;
  padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 96px);
  will-change: transform;
  /* smooth spring-like transition — wird im JS für idle state benutzt */
}

/* Eyebrow-Pill */
.mk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 32px;
  padding: 7px 18px;
  border: 1px solid rgba(22,224,255,0.28);
  border-radius: 100px;
  background: rgba(22,224,255,0.06);
  animation: mk-fade 0.8s 0.1s both;
}

/* Titel */
.mk-h {
  font-family: var(--font-d);
  font-size: clamp(3.2rem, 9.5vw, 9rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0 0 36px;
  color: var(--ink);
  font-variation-settings: 'opsz' 64;
}

/* Pro Zeile ein eigener Overflow-Container für Slide-up */
.mk-line { display: block; overflow: hidden; }

.mk-line-inner {
  display: block;
  animation: mk-up 0.95s cubic-bezier(.22,.84,.16,1) both;
}

.mk-line:nth-child(1) .mk-line-inner { animation-delay: 0.05s; }
.mk-line:nth-child(2) .mk-line-inner { animation-delay: 0.14s; }
.mk-line:nth-child(3) .mk-line-inner { animation-delay: 0.23s; }
.mk-line:nth-child(4) .mk-line-inner { animation-delay: 0.32s; }

@keyframes mk-up {
  from { transform: translateY(108%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Cyan-Akzent im Titel */
.mk-h .mk-em {
  color: var(--cyan);
  font-style: italic;
}

/* Lead */
.mk-lead {
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  color: var(--ink-mute);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.65;
  animation: mk-fade 1s 0.5s both;
}

/* CTAs */
.mk-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: mk-fade 1s 0.65s both;
}

@keyframes mk-fade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   SERVICES GRID
   ========================================================= */
.mk-services {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Spalten-Modifier statt Inline-Styles, damit die Mobile-Breakpoints greifen */
.mk-services-2 { grid-template-columns: repeat(2, 1fr); }
.mk-services-4 { grid-template-columns: repeat(4, 1fr); }

.mk-srv {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 22px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color 0.25s, transform 0.35s var(--ease), background 0.25s;
}

.mk-srv:hover {
  border-color: rgba(22,224,255,0.30);
  transform: translateY(-5px);
  background: var(--bg-3);
}

.mk-srv-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: rgba(22,224,255,0.07);
  border: 1px solid rgba(22,224,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 18px;
}

.mk-srv h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}

.mk-srv p {
  font-size: 0.87rem;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .mk-services { grid-template-columns: repeat(3, 1fr); }
  .mk-services-2, .mk-services-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mk-services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .mk-services { grid-template-columns: 1fr; }
}

/* =========================================================
   STATS — Zahlenreihe
   ========================================================= */
.mk-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.mk-stat-n {
  display: block;
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 6px;
}

.mk-stat-l {
  font-size: 0.83rem;
  color: var(--ink-dim);
}

/* =========================================================
   HERO (Standard-Stil): Copy links, Performance-Chart rechts
   ========================================================= */
.mk-ov-hero {
  position: relative;
  padding: clamp(150px, 16vw, 210px) 0 clamp(70px, 8vw, 110px);
  overflow: hidden;
}
.mk-ov-hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 55%; height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,224,255,0.10), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.mk-ov-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.mk-ov-h1 {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: #f5f6f8;
  margin: 18px 0 20px;
}
.mk-ov-h1 em {
  font-style: italic;
  color: var(--cyan);
}
.mk-ov-lead {
  font-family: var(--font-m);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.7;
  color: rgba(245,246,248,0.82);
  max-width: 560px;
  margin: 0 0 28px;
}
.mk-ov-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Chart-Karte (CSS-Loop, 9s) */
.mk-ov-chart {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(160deg, #0a0d14 0%, #1a2030 100%);
  border: 1px solid rgba(22,224,255,0.22);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
  padding: clamp(18px, 2vw, 26px);
  isolation: isolate;
  overflow: clip;
}
.mk-ov-chart::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(22,224,255,0.18), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.mk-ov-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.mk-ov-chart-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 13px;
  color: rgba(245,246,248,0.85);
}
.mk-ov-chart-label svg { color: var(--cyan); }
.mk-ov-chart-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(22,224,255,0.10);
  border: 1px solid rgba(22,224,255,0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}
.mk-ov-chart-svg { width: 100%; height: auto; display: block; }
.mk-ov-line {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: mkOvDraw 9s ease-in-out infinite;
}
.mk-ov-area {
  opacity: 0;
  animation: mkOvArea 9s ease-in-out infinite;
}
.mk-ov-dot {
  opacity: 0;
  animation: mkOvDot 9s ease-in-out infinite;
}
@keyframes mkOvDraw {
  0% { stroke-dashoffset: 620; }
  28% { stroke-dashoffset: 0; }
  86% { stroke-dashoffset: 0; opacity: 1; }
  94%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes mkOvArea {
  0%, 10% { opacity: 0; }
  34%, 86% { opacity: 1; }
  94%, 100% { opacity: 0; }
}
@keyframes mkOvDot {
  0%, 24% { opacity: 0; transform: scale(0.6); transform-origin: 410px 34px; }
  30%, 86% { opacity: 1; transform: scale(1); }
  55% { transform: scale(1.35); }
  94%, 100% { opacity: 0; }
}
.mk-ov-chart-months {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  opacity: 0.75;
}

@media (max-width: 960px) {
  .mk-ov-hero-inner { grid-template-columns: 1fr; }
  .mk-ov-chart { max-width: 520px; }
}
