/* nexi-design-system.css — Zentrales Design-System für new.nexifyai.cloud (nexi-2026)
 * Single Source of Truth für Farben, Typo, Spacing, Radius, Motion, Shadow.
 * Inspired by: Claude Design (cream/coral), Linear UI refresh (calmer),
 *                Vercel/Stripe (premium minimalism), NeXify brand (lime).
 */

:root {
  /* === Farben (eine Wahrheit) === */
  --color-bg-deep:       #0A0A0A;
  --color-bg-elevated:   #141416;
  --color-bg-card:       #1A1A1D;
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-border:        rgba(255, 255, 255, 0.10);
  --color-border-strong: rgba(255, 255, 255, 0.18);

  --color-text-primary:   #FAFAFA;
  --color-text-secondary: #A1A1AA;
  --color-text-muted:     #71717A;
  --color-text-disabled:  #52525B;

  --color-lime:        #C8FF00;
  --color-lime-soft:   #EAFFB0;
  --color-lime-deep:   #8FCE00;
  --color-lime-muted:  rgba(200, 255, 0, 0.12);

  --color-success:     #4ADE80;
  --color-warning:     #FBBF24;
  --color-error:       #F87171;
  --color-info:        #60A5FA;

  --color-overlay:     rgba(0, 0, 0, 0.6);

  /* === Schrift === */
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* === Sizes === */
  --text-h1:    clamp(2.4rem, 5vw, 4.6rem);
  --text-h2:    clamp(1.8rem, 3vw, 2.6rem);
  --text-h3:    1.5rem;
  --text-h4:    1.25rem;
  --text-body:  1rem;
  --text-small: 0.875rem;
  --text-xs:    0.75rem;

  /* === Spacing === */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* === Radius === */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* === Motion === */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.5, 1.5, 0.5, 1);

  /* === Shadow === */
  --shadow-e1:        0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-e2:        0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-e3:        0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-glow-lime: 0 0 32px rgba(200, 255, 0, 0.18);
  --shadow-inner-lime: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* === Base-Reset === */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-bg-deep);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}
h1 { font-size: var(--text-h1); line-height: 1.06; }
h2 { font-size: var(--text-h2); line-height: 1.15; font-weight: 500; }
h3 { font-size: var(--text-h3); line-height: 1.25; font-weight: 500; }
h4 { font-size: var(--text-h4); line-height: 1.3; font-weight: 500; }

/* === Utility-Klassen === */
.nexi-container { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.nexi-section { padding: var(--space-24) 0; }
.nexi-section--tight { padding: var(--space-16) 0; }

/* Skip-Link (A11Y) */
.nexi-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--color-lime);
  color: var(--color-bg-deep);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) 0;
}
.nexi-skip-link:focus { left: 0; }

/* === Buttons (Pill-Shape, Claude-AI-like) === */
.nexi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.nexi-btn--primary {
  background: linear-gradient(120deg, var(--color-lime) 0%, var(--color-lime-soft) 50%, var(--color-lime) 100%);
  background-size: 200% auto;
  color: var(--color-bg-deep);
  box-shadow: var(--shadow-glow-lime), var(--shadow-inner-lime);
  animation: nexi-shimmer 8s linear infinite;
}
.nexi-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 0 40px rgba(200, 255, 0, 0.32), var(--shadow-inner-lime); }
.nexi-btn--secondary {
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}
.nexi-btn--secondary:hover { background: var(--color-bg-elevated); border-color: var(--color-border-strong); }
.nexi-btn--ghost { background: transparent; color: var(--color-text-secondary); }
.nexi-btn--ghost:hover { color: var(--color-text-primary); }

@keyframes nexi-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* === Cards === */
.nexi-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.nexi-card--interactive:hover {
  border-color: var(--color-border);
  transform: translateY(-2px);
}

/* === Inputs === */
.nexi-input {
  width: 100%;
  padding: var(--space-4);
  background: var(--color-bg-deep);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  min-height: 44px;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.nexi-input:focus { outline: none; border-color: var(--color-lime); }
.nexi-input::placeholder { color: var(--color-text-muted); }

/* === Pulse-Animation (Live-Indikator) === */
.nexi-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-lime);
  box-shadow: 0 0 8px rgba(200, 255, 0, 0.7);
  animation: nexi-pulse-anim 2.2s ease-in-out infinite;
}
@keyframes nexi-pulse-anim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* === Reduced-Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === Focus-Visible (A11Y) === */
:focus-visible {
  outline: 2px solid var(--color-lime);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* === Print === */
@media print {
  body { background: white; color: black; }
  .nexi-no-print { display: none; }
}
