/* ================================================================
   Landingpage actualskit.de – nur Seiten-Eigenes.
   Farben, Schrift, Abstände und Bausteine kommen aus dem Design-System (/design/, Ordner design/ im Projekt).
   Animationen dürfen hier auffälliger sein als im Dashboard; prefers-reduced-motion schaltet sie ab (base.css + unten).
   ================================================================ */

:root { --nav-h: 60px; --section-y: clamp(72px, 11vw, 128px); }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { overflow-x: hidden; }
.center { text-align: center; }
.center-row { justify-content: center; }
.mt-8 { margin-top: var(--sp-8); }

.skip-link {
  position: absolute; left: var(--sp-4); top: -48px; z-index: 100; padding: var(--sp-2) var(--sp-3);
  background: var(--surface-3); color: var(--text); border-radius: var(--r); transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

/* ================================================================ Kopfleiste */

.site-nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(8, 9, 10, .6); border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: border-color var(--dur-3), background var(--dur-3);
}
.site-nav.scrolled { border-bottom-color: var(--border); background: rgba(8, 9, 10, .82); }
.nav-inner { display: flex; align-items: center; gap: var(--sp-6); height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: var(--fw-semibold); font-size: var(--fs-md); letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 24px; height: 24px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 16px var(--accent-glow); }
.nav-links { display: flex; gap: var(--sp-1); margin-right: auto; }
.nav-links a { color: var(--muted); font-size: var(--fs-sm); padding: 6px 10px; border-radius: var(--r-sm); transition: color var(--dur-1), background var(--dur-1); }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta .ti { font-size: 13px; }
.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* ================================================================ Hero */

.hero { position: relative; padding: clamp(56px, 10vw, 112px) 0 0; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -1px 0 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 10%, transparent 75%);
  animation: grid-drift 24s linear infinite;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero-glow-1 {
  width: 620px; height: 420px; left: 50%; top: -180px; margin-left: -310px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  animation: float-a 14s var(--ease-in-out) infinite alternate;
}
.hero-glow-2 {
  width: 420px; height: 320px; left: 50%; top: 120px; margin-left: 40px;
  background: radial-gradient(closest-side, rgba(78, 167, 252, .22), transparent);
  animation: float-b 18s var(--ease-in-out) infinite alternate;
}
/* Lichtkegel hinter der Vorschau, dreht sich langsam */
.hero-beam {
  position: absolute; left: 50%; top: 52%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(113, 112, 255, .14) 40deg, transparent 90deg, transparent 180deg, rgba(113, 112, 255, .1) 230deg, transparent 280deg);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 70%);
  animation: spin 40s linear infinite;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.status-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2); height: 30px; padding: 0 var(--sp-2) 0 var(--sp-3);
  border-radius: var(--r-full); border: 1px solid var(--border-strong); background: rgba(20, 21, 22, .7);
  color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--sp-8);
  box-shadow: inset 0 1px 0 var(--highlight); transition: border-color var(--dur-2), color var(--dur-2);
}
.status-pill:hover { color: var(--text); border-color: rgba(255, 255, 255, .22); }
.status-pill .ti { font-size: 14px; color: var(--faint); transition: transform var(--dur-2) var(--ease); }
.status-pill:hover .ti { transform: translateX(2px); }
.status-pill .dot { color: var(--faint); }
.status-pill .dot.on { color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.status-pill .dot.warn { color: var(--orange); }
.status-pill .dot.off { color: var(--red); }

.hero-title {
  display: flex; flex-direction: column; align-items: center;
  font-size: var(--fs-display); line-height: 1.02; letter-spacing: var(--tracking-display); font-weight: var(--fw-semibold);
  margin: 0 0 var(--sp-6); max-width: 14ch;
}
.hero-title > span { display: block; }
.gradient-text {
  background: linear-gradient(100deg, #f7f8f8 0%, #b4b3ff 35%, var(--accent) 55%, #b4b3ff 75%, #f7f8f8 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer-text 9s var(--ease-in-out) infinite alternate;
}
.hero-lead { max-width: 600px; font-size: clamp(var(--fs-md), 2vw, var(--fs-lg)); line-height: 1.6; color: var(--muted); margin: 0 0 var(--sp-8); }
.hero-lead b { color: var(--text); font-weight: var(--fw-medium); }
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }

/* Einstieg: Elemente gleiten zeitversetzt ein */
.intro { animation: intro var(--dur-5) var(--ease) both; }
.hero-title .intro:nth-child(1) { animation-delay: 80ms; }
.hero-title .intro:nth-child(2) { animation-delay: 180ms; }
.hero-lead.intro { animation-delay: 300ms; }
.hero-cta.intro { animation-delay: 400ms; }
.hero-shot.intro { animation: intro-shot 1.2s var(--ease) 500ms both; }

/* ---- Vorschau des Control Centers ---- */
.hero-shot {
  --p: 0;  /* Scroll-Fortschritt 0…1 (landing.js) */
  margin: clamp(48px, 8vw, 88px) auto 0; max-width: 1040px; perspective: 1400px;
}
.shot-window {
  position: relative; border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border-strong); border-bottom: 0;
  box-shadow: 0 -20px 80px -20px var(--accent-glow), 0 40px 120px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--p)) * 16deg)) scale(calc(.94 + var(--p) * .06));
  transition: transform 120ms linear;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
/* leuchtende Oberkante */
.shot-window::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(180, 179, 255, .8), transparent);
}
.shot-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--sp-4); border-bottom: 1px solid var(--border); background: var(--surface); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-4); }
.shot-bar em { margin: 0 auto; font-style: normal; font-size: var(--fs-xs); color: var(--faint); font-family: var(--font-mono); padding-right: 46px; }
.shot-body { display: grid; grid-template-columns: 190px 1fr; min-height: 360px; text-align: left; }
.shot-side { border-right: 1px solid var(--border); padding: var(--sp-3); display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-xs); }
.shot-brand { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; font-size: var(--fs-sm); }
.shot-brand img { border-radius: 4px; }
.shot-nav { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: var(--r-sm); color: var(--muted); }
.shot-nav .ti { color: var(--faint); font-size: 14px; }
.shot-nav.active { background: var(--surface-3); color: var(--text); }
.shot-nav.active .ti { color: var(--accent); }
.shot-main { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }
.shot-title { font-size: var(--fs-lg); font-weight: var(--fw-semibold); letter-spacing: -.02em; }
.shot-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.shot-stats > div { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); min-width: 0; }
.shot-stats small { font-size: 11px; color: var(--muted); }
.shot-stats b { font-size: var(--fs-lg); font-weight: var(--fw-semibold); letter-spacing: -.02em; white-space: nowrap; }
.shot-stats span { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-stats .ok { color: var(--green); }
.meter { display: block; height: 3px; border-radius: 99px; background: var(--track); margin-top: 6px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.meter .w1 { width: 12%; }
.meter .w2 { width: 32%; }
.shot-chart { flex: 1; min-height: 120px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); padding: var(--sp-3) 0 0; overflow: hidden; }
.shot-chart svg { width: 100%; height: 100%; min-height: 110px; }
.shot-chart stop { stop-color: var(--chart-1); }
.shot-line { stroke: var(--chart-1); stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.4s var(--ease) 1.2s forwards; }
.shot-area { opacity: 0; animation: ds-fade 1.2s var(--ease) 2s forwards; }

/* ================================================================ Kennzahlen */

.facts { padding: var(--sp-12) 0 0; position: relative; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fact { padding: var(--sp-8) var(--sp-6); display: flex; flex-direction: column; gap: 6px; }
.fact + .fact { border-left: 1px solid var(--border); }
.fact b { font-size: clamp(28px, 3.4vw, 40px); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-display); line-height: 1; font-variant-numeric: tabular-nums; }
.fact > span { color: var(--muted); font-size: var(--fs-sm); }

/* ================================================================ Abschnitte */

.section { padding: var(--section-y) 0 0; }
.section-head { max-width: 680px; margin: 0 auto var(--sp-12); text-align: center; }
.section-head h2, .discord-card h2, .final h2 {
  font-size: clamp(30px, 4.6vw, 52px); letter-spacing: var(--tracking-display); line-height: 1.06; margin: var(--sp-4) 0;
}
.section-head p, .discord-card p, .final p { color: var(--muted); font-size: clamp(var(--fs-md), 1.6vw, var(--fs-lg)); line-height: 1.6; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent);
  font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: .02em;
}
.eyebrow .ti { font-size: 14px; }

/* Lichtkegel, der der Maus folgt (landing.js setzt --mx/--my) */
.spotlight { position: relative; overflow: hidden; isolation: isolate; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(113, 112, 255, .13), transparent 60%);
  transition: opacity var(--dur-3);
}
.spotlight:hover::before { opacity: 1; }

/* ---- Minecraft ---- */
.mc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-4); align-items: start; }
.server-card, .feature, .bot-tile, .status-board {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: inset 0 1px 0 var(--highlight); transition: border-color var(--dur-3), transform var(--dur-3) var(--ease);
}
.server-card { padding: var(--sp-6); position: sticky; top: calc(var(--nav-h) + 24px); }
.server-card-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.server-card-head b { display: block; font-size: var(--fs-lg); letter-spacing: -.01em; }
.server-card-head small { color: var(--faint); font-size: var(--fs-xs); }
.server-card-head .badge { margin-left: auto; }
.server-icon, .feature-icon, .status-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 20px; box-shadow: inset 0 1px 0 var(--highlight);
}
.copy-field { display: flex; gap: var(--sp-2); }
.copy-field input { flex: 1; height: var(--control-h-lg); font-family: var(--font-mono); font-size: var(--fs-md); background: var(--bg-sunken); }
.copy-field .btn { height: var(--control-h-lg); }
.apply-box {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-6);
  padding: var(--sp-4); border-radius: var(--r-lg); border: 1px dashed rgba(113, 112, 255, .4); background: var(--accent-soft);
}
.apply-box p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-sm); }

.feature-list { display: grid; gap: var(--sp-4); }
.feature { display: flex; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); }
.feature h3, .bot-tile h3 { font-size: var(--fs-md); margin: 0 0 6px; letter-spacing: -.01em; }
.feature p, .bot-tile p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.feature:hover, .bot-tile:hover { border-color: var(--border-strong); transform: translateY(-2px); }

/* ---- Discord ---- */
.discord-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-10); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(88, 101, 242, .16), rgba(113, 112, 255, .05) 45%, var(--surface) 70%);
  border: 1px solid rgba(113, 112, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.discord-glow {
  position: absolute; z-index: -1; width: 520px; height: 520px; left: -160px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(88, 101, 242, .45), transparent); filter: blur(40px);
  animation: float-a 12s var(--ease-in-out) infinite alternate;
}
.discord-card h2 { margin-top: var(--sp-4); }
.discord-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.discord-points li {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-lg);
  background: rgba(8, 9, 10, .45); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: var(--fw-medium);
}
.discord-points .ti { font-size: 18px; color: var(--accent); }

/* ---- actualBot ---- */
.bot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.bot-tile { padding: var(--sp-6); }
.bot-tile > .ti {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: var(--sp-5); border-radius: var(--r);
  background: var(--accent-soft); color: var(--accent); font-size: 18px;
}

/* ---- Status ---- */
.status-board { max-width: 720px; margin: 0 auto; overflow: hidden; }
.status-row { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
.status-row .grow { flex: 1; min-width: 0; }
.status-row b { display: block; font-weight: var(--fw-medium); }
.status-row small { color: var(--faint); font-size: var(--fs-xs); }
.status-icon { width: 36px; height: 36px; font-size: 18px; }
.status-foot { padding: var(--sp-3) var(--sp-5); font-size: var(--fs-xs); color: var(--faint); background: rgba(255, 255, 255, .012); }

/* ---- Abschluss ---- */
.final { padding-bottom: var(--section-y); }
.final-inner {
  position: relative; text-align: center; padding: clamp(40px, 7vw, 88px) var(--sp-6);
  border-radius: var(--r-xl); border: 1px solid var(--border); overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface);
}
.final-mark { margin: 0 auto var(--sp-5); border-radius: 14px; box-shadow: 0 10px 40px var(--accent-glow); }
.final p { max-width: 520px; margin: 0 auto; }

/* ================================================================ Fußzeile */

.site-foot { border-top: 1px solid var(--border); padding: var(--sp-12) 0 var(--sp-8); font-size: var(--fs-sm); }
.foot-inner { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--sp-8); }
.foot-brand p { color: var(--faint); margin-top: var(--sp-3); }
.foot-col { display: flex; flex-direction: column; gap: var(--sp-2); }
.foot-col b { font-weight: var(--fw-medium); margin-bottom: var(--sp-1); }
.foot-col a { color: var(--muted); width: fit-content; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-10); padding-top: var(--sp-5); border-top: 1px solid var(--border); color: var(--faint); font-size: var(--fs-xs); }

/* ================================================================ Einblenden beim Scrollen (nur mit JS, siehe landing.js) */

html.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 700ms var(--ease), transform 900ms var(--ease), filter 700ms var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; filter: none; }
/* zeitversetzt innerhalb von Rastern */
.facts-grid .reveal:nth-child(2), .bot-grid .reveal:nth-child(3n+2), .feature-list .reveal:nth-child(2) { transition-delay: 80ms; }
.facts-grid .reveal:nth-child(3), .bot-grid .reveal:nth-child(3n+3), .feature-list .reveal:nth-child(3) { transition-delay: 160ms; }
.facts-grid .reveal:nth-child(4), .feature-list .reveal:nth-child(4) { transition-delay: 240ms; }
/* nach dem Einblenden: Hover-Bewegung ohne Verzögerung */
html.js .reveal.in.settled { transition: border-color var(--dur-3), transform var(--dur-3) var(--ease); }

/* ================================================================ Animationen */

@keyframes intro { from { opacity: 0; transform: translateY(20px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes intro-shot { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes grid-drift { from { background-position: center 0; } to { background-position: center 64px; } }
@keyframes float-a { from { transform: translate(-40px, 0) scale(1); } to { transform: translate(60px, 30px) scale(1.12); } }
@keyframes float-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(-90px, -30px) scale(.9); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer-text { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; filter: none; }
  .shot-line { stroke-dashoffset: 0; }
  .shot-area { opacity: 1; }
  .shot-window { transform: none; }
}

/* ================================================================ Responsive */

@media (max-width: 960px) {
  .mc-grid { grid-template-columns: 1fr; }
  .server-card { position: static; }
  .bot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discord-card { grid-template-columns: 1fr; gap: var(--sp-8); }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--border); }
  .foot-inner { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .shot-body { grid-template-columns: 1fr; }
  .shot-side { display: none; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-grid; margin-left: auto; }
  .mobile-nav {
    display: flex; flex-direction: column; gap: 2px; padding: 0 var(--gutter); overflow: hidden;
    max-height: 0; opacity: 0; transition: max-height var(--dur-4) var(--ease), opacity var(--dur-3), padding var(--dur-3);
  }
  .mobile-nav a { color: var(--text); padding: var(--sp-3) var(--sp-2); border-bottom: 1px solid var(--border); font-size: var(--fs-md); display: flex; align-items: center; justify-content: space-between; }
  .mobile-nav a:last-child { border-bottom: 0; color: var(--accent); }
  .site-nav.open { background: rgba(8, 9, 10, .96); border-bottom-color: var(--border); }
  .site-nav.open .mobile-nav { max-height: 360px; opacity: 1; padding-bottom: var(--sp-3); }
  .shot-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-main { padding: var(--sp-3); }
  .shot-body { min-height: 0; }
  .hero-cta .btn { flex: 1 1 220px; }
}

@media (max-width: 560px) {
  .bot-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--border); }
  .fact { padding: var(--sp-5) var(--sp-2); }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .feature { padding: var(--sp-5); flex-direction: column; gap: var(--sp-3); }
  .copy-field .btn span { display: none; }
  .apply-box { flex-direction: column; }
  .shot-bar em { padding-right: 0; }
}
