/* ══════════════════════════════════════════════════════════════
   Mailtory v2: Global CSS
   Dark tech design system
   ══════════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-v20-latin-700.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-v20-latin-800.woff2') format('woff2');
  font-weight: 800; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-v23-latin-regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-v23-latin-500.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-v23-latin-600.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:          #06080f;
  --bg-card:     #0c0f1a;
  --bg-card-2:   #111827;
  --border:      #1e2a3a;
  --border-glow: rgba(99,102,241,0.3);
  --text:        #e2e8f0;
  --text-muted:  #8b949e;
  --text-dim:    #4b5563;
  --indigo:      #6366f1;
  --violet:      #8b5cf6;
  --pink:        #ec4899;
  --green:       #10b981;
  --amber:       #f59e0b;
  --grad:        linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-text:   linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 50%, #f9a8d4 100%);
  --nav-h:       68px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-pill: 100px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.6), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 40px rgba(99,102,241,.15);
  --transition:  0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select {
  font: inherit;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
.display-1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.display-2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.display-3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-muted); line-height: 1.75; }
.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 780px; }
.container-lg { max-width: 1000px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; max-width: 580px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(6,8,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 8px;
  width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center;
  margin-right: 16px; flex-shrink: 0;
}
.nav-logo svg { width: 140px; height: 33px; }
.nav-menu {
  display: flex; align-items: center; gap: 2px;
  flex: 1;
}
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 14px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-trigger svg.chevron {
  width: 14px; height: 14px; flex-shrink: 0;
  transition: transform var(--transition);
}
.nav-dropdown.open .chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 520px;
  max-height: calc(100vh - var(--nav-h) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-dropdown-item:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-dropdown-item .dd-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-dropdown-item .dd-icon svg { width: 16px; height: 16px; }
.nav-dropdown-item .dd-text { flex: 1; }
.nav-dropdown-item .dd-name { font-weight: 600; color: var(--text); font-size: 0.875rem; }
.nav-dropdown-item .dd-desc { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }
.nav-spacer { flex: 1; }
.nav-cta {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nav-hamburger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-hamburger:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  bottom: 0;
  background: rgba(6,8,15,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 12px 20px 32px;
  z-index: 999;
  flex-direction: column; gap: 2px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-mobile-link:hover,
.nav-mobile-link:active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-mobile-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-mobile-divider { height: 1px; background: var(--border); margin: 6px 0; }
.nav-mobile-cta { margin-top: 8px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,.5);
  filter: brightness(1.08);
}
.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}
.btn-ghost {
  color: var(--text-muted);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon-indigo { background: rgba(99,102,241,0.15); color: #818cf8; }
.card-icon-violet { background: rgba(139,92,246,0.15); color: #a78bfa; }
.card-icon-pink   { background: rgba(236,72,153,0.15);  color: #f472b6; }
.card-icon-green  { background: rgba(16,185,129,0.15);  color: #34d399; }
.card-icon-amber  { background: rgba(245,158,11,0.15);  color: #fbbf24; }
.card-icon-blue   { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.9rem; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card { cursor: default; }
.feature-card-link { cursor: pointer; }
.feature-card-more {
  display: inline-block; margin-top: 14px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--indigo); text-decoration: none;
}
.feature-card-more:hover { text-decoration: underline; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ── Badges ──────────────────────────────────────────────────── */
/* In einem Flex-Elternelement (z.B. .feature-list-item) mit wenig Platz
   schrumpfte das Badge sonst und sein eigener Text brach in zwei Zeilen um
   ("IN ENTWICKLUNG" wurde zu "IN\nENTWICKLUNG") -- ein Badge ist ein Label,
   kein Fliesstext, es soll nie umbrechen oder schrumpfen. */
.badge-live, .badge-beta, .badge-planned, .badge-work {
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-live {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(16,185,129,0.15); color: #34d399;
  border: 1px solid rgba(16,185,129,0.25);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-beta {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(245,158,11,0.15); color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.25);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-planned {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(99,102,241,0.15); color: #818cf8;
  border: 1px solid rgba(99,102,241,0.25);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-work {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(167, 8, 142, 0.15);
  color: #a557e5;
  border: 1px solid rgba(99,102,241,0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dd-desc {
  display: block;
}
.badge-new {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(236,72,153,0.15); color: #f472b6;
  border: 1px solid rgba(236,72,153,0.25);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-addon {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(139,92,246,0.12); color: #a78bfa;
  border: 1px solid rgba(139,92,246,0.2);
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ── Trust Chips ─────────────────────────────────────────────── */
.trust-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 32px;
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
}
.trust-chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
}
.hero-orb-1 {
  width: 600px; height: 600px;
  top: -100px; left: -150px;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
}
.hero-orb-2 {
  width: 500px; height: 500px;
  top: 0; right: -100px;
  background: radial-gradient(circle, rgba(236,72,153,0.12) 0%, transparent 70%);
}
.hero-orb-3 {
  width: 400px; height: 400px;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  font-size: 0.8rem; font-weight: 600; color: #818cf8;
  margin-bottom: 28px; text-transform: uppercase; letter-spacing: 0.07em;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); }
.hero h1 { margin-bottom: 20px; }
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-muted); max-width: 580px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-ctas {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 48px;
}
.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 80px; color: var(--text-dim);
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--border));
}

/* ── Feature Card (large) ────────────────────────────────────── */
.feature-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-highlight.reverse { direction: rtl; }
.feature-highlight.reverse > * { direction: ltr; }
.feature-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.feature-visual-inner {
  padding: 24px;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(99,102,241,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(236,72,153,0.05) 0%, transparent 60%);
}
.feature-text { }
.feature-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; color: var(--indigo);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 16px;
}
.feature-text h2 { margin-bottom: 16px; }
.feature-text p { margin-bottom: 24px; }
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.feature-list-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text-muted);
}
.feature-list-item .check {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(16,185,129,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.feature-list-item .check svg { width: 11px; height: 11px; color: var(--green); }
@media (max-width: 768px) {
  .feature-highlight { grid-template-columns: 1fr; }
  .feature-highlight.reverse { direction: ltr; }
}

/* ── Comparison Section ──────────────────────────────────────── */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.comparison-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.comparison-col.highlight { border-color: rgba(99,102,241,0.4); }
.comparison-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.comparison-header h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-muted); }
.comparison-col.highlight .comparison-header h4 { color: var(--text); }
.comparison-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.comparison-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.comparison-item:last-child { border-bottom: none; }
.comparison-item .ci-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.comparison-item .ci-icon svg { width: 16px; height: 16px; }
.comparison-item .ci-text { color: var(--text-muted); }
.comparison-col.highlight .ci-text { color: var(--text); }
@media (max-width: 640px) { .comparison-grid { grid-template-columns: 1fr; } }

/* ── Stats ───────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--bg-card);
  padding: 36px 28px;
  text-align: center;
}
.stat-number {
  font-family: 'Manrope', sans-serif;
  font-size: 2.5rem; font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1; margin-bottom: 8px;
}
.stat-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border-glow); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600; font-size: 0.95rem; color: var(--text);
  user-select: none;
  transition: color var(--transition);
}
.faq-question:hover { color: #a5b4fc; }
.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--indigo); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding var(--transition);
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* ── Registration Form ───────────────────────────────────────── */
.reg-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
}
.reg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 680px; margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-grid-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;
}
.form-control {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-control::placeholder { color: var(--text-dim); }
.form-control:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  background: rgba(255,255,255,0.06);
}
/* Nur ungueltige Eingaben rot rahmen, nachdem etwas eingegeben und das Feld
   wieder verlassen wurde -- ohne :not(:placeholder-shown) galt ein leeres
   Pflichtfeld (required) schon beim Laden der Seite als :invalid, jedes
   Formular wirkte dadurch von Anfang an wie fehlerhaft ausgefuellt. */
.form-control:invalid:not(:placeholder-shown):not(:focus) { border-color: var(--pink); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: var(--text-muted);
  margin-top: 4px;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px;
  accent-color: var(--indigo); cursor: pointer; margin-top: 1px;
}
.form-check a { color: var(--indigo); text-decoration: underline; }
.form-honeypot { display: none; }
.form-message {
  padding: 14px 16px; border-radius: 10px;
  font-size: 0.875rem; margin-top: 12px; display: none;
}
.form-message.success {
  display: block;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
  color: #34d399;
}
.form-message.error {
  display: block;
  background: rgba(236,72,153,0.1); border: 1px solid rgba(236,72,153,0.25);
  color: #f472b6;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .reg-card { padding: 28px 20px; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 240px repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand { }
.footer-logo { margin-bottom: 16px; }
.footer-logo svg { width: 120px; height: 28px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; max-width: 200px; }
.footer-col h5 {
  font-size: 0.75rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 0.875rem; color: var(--text-dim);
  transition: color var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-link:hover { color: var(--text); }
.footer-link-badge { margin-left: 4px; }
.footer-social-link { transition: color var(--transition), border-color var(--transition); }
.footer-social-link:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg,#6366f1,#ec4899) !important; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: 0.8rem; color: var(--text-dim);
}
.footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--text-dim); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--text-muted); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 36px;
  position: relative; overflow: hidden;
  text-align: center;
}
.page-hero + .section { padding-top: 56px; }
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.page-hero-orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; max-width: 560px; margin: 0 auto 28px; }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}
.divider-grad {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-glow), transparent);
}

/* ── Glow card ───────────────────────────────────────────────── */
.glow-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.glow-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Inline code / tags ──────────────────────────────────────── */
.code-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  color: #818cf8; font-size: 0.8rem; font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}

/* ── Utils ───────────────────────────────────────────────────── */
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.flex  { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Maintenance ─────────────────────────────────────────────── */
.maintenance-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 2rem;
}
.maintenance-card { max-width: 460px; width: 100%; text-align: center; }
.maintenance-card h1 { font-size: 2rem; margin: 0 0 16px; }
.maintenance-card p { margin-bottom: 12px; }
.maintenance-card .pulse-dot::before {
  content: ''; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--indigo); margin-right: 8px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Light mode tokens ───────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #f8f9fc;
  --bg-card:     #ffffff;
  --bg-card-2:   #f1f5f9;
  --border:      #dde4ed;
  --border-glow: rgba(99,102,241,0.3);
  --text:        #0f172a;
  --text-muted:  #475569;
  --text-dim:    #94a3b8;
  --shadow-card: 0 1px 3px rgba(0,0,0,.08), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 40px rgba(99,102,241,.1);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(248,249,252,0.92);
}
[data-theme="light"] .nav-mobile-menu {
  background: rgba(248,249,252,0.98);
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active { background: rgba(0,0,0,0.05); }
[data-theme="light"] .nav-dropdown-item:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .nav-mobile-link:hover,
[data-theme="light"] .nav-mobile-link:active { background: rgba(0,0,0,0.04); }
[data-theme="light"] .btn-secondary { background: rgba(0,0,0,0.05); color: var(--text); }
[data-theme="light"] .btn-secondary:hover { background: rgba(0,0,0,0.09); }
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,0.05); }
[data-theme="light"] .form-control { background: rgba(0,0,0,0.03); }
[data-theme="light"] .form-control:focus { background: rgba(0,0,0,0.02); }
[data-theme="light"] .cookie-toggles { background: rgba(0,0,0,0.02); }
[data-theme="light"] .cookie-banner { box-shadow: 0 -4px 40px rgba(0,0,0,.12), 0 0 0 1px rgba(99,102,241,0.1); }
[data-theme="light"] .nav-theme-btn:hover { background: rgba(0,0,0,0.05); }

/* ── Theme toggle button ─────────────────────────────────────── */
.nav-theme-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.nav-theme-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-theme-btn svg { width: 18px; height: 18px; }
[data-theme="dark"]  .nav-theme-btn .icon-sun  { display: none; }
[data-theme="dark"]  .nav-theme-btn .icon-moon { display: block; }
[data-theme="light"] .nav-theme-btn .icon-sun  { display: block; }
[data-theme="light"] .nav-theme-btn .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: none; }
[data-theme="dark"]  .icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"]  .theme-label-dark  { display: inline; }
[data-theme="dark"]  .theme-label-light { display: none !important; }
[data-theme="light"] .theme-label-dark  { display: none !important; }
[data-theme="light"] .theme-label-light { display: inline !important; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2e3d50; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #c8d0da; }

/* ── Selection ───────────────────────────────────────────────── */
::selection { background: rgba(99,102,241,0.3); color: var(--text); }

/* ── Focus ───────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* ── Mock UI elements ────────────────────────────────────────── */
.mock-window {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot-r { background: #f87171; }
.mock-dot-y { background: #fbbf24; }
.mock-dot-g { background: #34d399; }
.mock-titlebar-label {
  margin-left: auto; font-size: 0.7rem; font-weight: 500; color: var(--text-dim);
  font-family: monospace;
}
.mock-body { padding: 16px; }
.mock-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  margin-bottom: 4px;
  font-size: 0.8rem;
}
.mock-row.active { background: rgba(99,102,241,0.1); color: var(--text); }
.mock-row:not(.active) { color: var(--text-dim); }
.mock-dot-status {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
}
.mock-tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 6px;
  font-size: 0.65rem; font-weight: 700;
  margin-left: auto;
}
.mock-tag-green { background: rgba(16,185,129,0.15); color: #34d399; }
.mock-tag-blue  { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.mock-tag-amber { background: rgba(245,158,11,0.15);  color: #fbbf24; }

/* ── Step list ───────────────────────────────────────────────── */
.step-list { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex; gap: 20px;
  padding: 0 0 40px 0;
  position: relative;
}
.step-item:last-child { padding-bottom: 0; }
.step-left { display: flex; flex-direction: column; align-items: center; gap: 0; }
.step-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-size: 0.85rem; font-weight: 800;
  color: #fff; flex-shrink: 0;
  box-shadow: 0 0 20px rgba(99,102,241,0.4);
}
.step-line {
  width: 1px; flex: 1; min-height: 24px;
  background: linear-gradient(to bottom, var(--border-glow), var(--border));
  margin-top: 8px;
}
.step-item:last-child .step-line { display: none; }
.step-content { padding-top: 8px; }
.step-content h4 { font-size: 1rem; margin-bottom: 6px; }
.step-content p { font-size: 0.875rem; }

/* ── Responsive Nav ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-menu    { display: none !important; }
  .nav-spacer  { display: none !important; }
  .nav-cta     { display: none !important; }
  .nav-hamburger { display: flex !important; margin-left: auto; }
}

/* ── Cookie Consent ──────────────────────────────────────────── */
.cookie-overlay {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  display: flex; justify-content: center;
  padding: 0 16px 16px;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cookie-overlay.visible {
  opacity: 1; visibility: visible;
}
.cookie-banner {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 760px; width: 100%;
  box-shadow: 0 -4px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(99,102,241,0.1);
  pointer-events: all;
  transform: translateY(16px);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.cookie-overlay.visible .cookie-banner {
  transform: translateY(0);
}
.cookie-banner-header {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px;
}
.cookie-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(99,102,241,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.cookie-icon svg { width: 22px; height: 22px; color: #818cf8; }
.cookie-banner-header h3 {
  font-size: 1.05rem; margin-bottom: 4px;
}
.cookie-banner-header p {
  font-size: 0.875rem; line-height: 1.6; margin: 0;
}
.cookie-toggles {
  display: flex; flex-direction: column; gap: 10px;
  margin: 20px 0;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.cookie-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.cookie-toggle-text { flex: 1; }
.cookie-toggle-text strong { font-size: 0.875rem; color: var(--text); display: block; margin-bottom: 2px; }
.cookie-toggle-text span { font-size: 0.78rem; color: var(--text-dim); }
.toggle-switch {
  position: relative; width: 44px; height: 24px; flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 12px;
  background: var(--border); cursor: pointer;
  transition: background 0.2s;
}
.toggle-track::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-track { background: var(--indigo); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); }
.toggle-switch input:disabled + .toggle-track { cursor: not-allowed; opacity: 0.6; }
.cookie-actions {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px;
}
@media (max-width: 600px) {
  .cookie-overlay { padding: 0 10px 10px; }
  .cookie-banner { padding: 16px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
  .cookie-banner-header { flex-direction: column; gap: 8px; }
  .cookie-toggles { margin: 12px 0; padding: 12px; }
}

/* ── Nav dropdown categorized 2-column ───────────────────────── */
.nav-dropdown-section {
  padding: 6px 8px 2px;
  font-size: 0.68rem; font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.nav-dropdown-sep {
  height: 1px; background: var(--border); margin: 6px 8px;
}
.dd-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.dd-col { padding: 2px 0; }
.dd-platform {
  border-top: 1px solid var(--border);
  padding: 6px 4px 4px;
  margin-top: 4px;
}
.dd-platform .nav-dropdown-item {
  background: rgba(99,102,241,0.05);
  border-radius: 8px;
}
.dd-platform .nav-dropdown-item:hover {
  background: rgba(99,102,241,0.1);
}

/* ── Feature detail blocks ───────────────────────────────────── */
.detail-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.detail-section:first-of-type { border-top: none; }
.detail-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.detail-cols.rev { direction: rtl; }
.detail-cols.rev > * { direction: ltr; }
@media (max-width: 768px) {
  .detail-cols { grid-template-columns: 1fr; }
  .detail-cols.rev { direction: ltr; }
}
.detail-icon-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px;
}
.detail-icon-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px;
}
.detail-icon-item .di-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.detail-icon-item .di-icon svg { width: 16px; height: 16px; }
.detail-icon-item h5 { font-size: 0.8rem; margin-bottom: 2px; }
.detail-icon-item p  { font-size: 0.75rem; margin: 0; }
@media (max-width: 480px) { .detail-icon-row { grid-template-columns: 1fr; } }

/* ── Info table ──────────────────────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.info-table th, .info-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.info-table th { color: var(--text-dim); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.info-table td { color: var(--text-muted); }
.info-table td:first-child { color: var(--text); font-weight: 500; }
.info-table tr:last-child td { border-bottom: none; }

/* ── Large feature card ──────────────────────────────────────── */
.feature-card-lg {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.feature-card-lg:hover { border-color: var(--border-glow); }
.feature-card-lg-body { padding: 32px; }
.feature-card-lg-visual {
  background: var(--bg-card-2);
  border-top: 1px solid var(--border);
  padding: 24px;
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
}

/* ── 2-column card grid (collapses on mobile) ────────────────── */
.cards-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .cards-2col { grid-template-columns: 1fr; }
}

/* ── Kontakt grid responsive fix ─────────────────────────────── */
@media (max-width: 700px) {
  .kontakt-grid { grid-template-columns: 1fr !important; }
}
