/* ================================================================
   DATENKERN WEBSITE v5.0
   Dark premium — White / Black / Red / Pink / Blue
   Glassmorphism · Moving accents · Editorial typography
   ================================================================ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --site-bg:         #060912;
  --site-bg2:        #0a0f1e;
  --site-glass:      rgba(10, 15, 30, 0.72);
  --site-glass2:     rgba(14, 20, 38, 0.88);
  --site-line:       rgba(255,255,255,0.09);
  --site-line2:      rgba(255,255,255,0.15);
  --site-text:       #f0f4ff;
  --site-muted:      #8896b3;
  --site-red:        #e0173a;
  --site-pink:       #f0145a;
  --site-blue:       #1d60f5;
  --site-r:          10px;
  --site-r-lg:       16px;
  --site-r-xl:       24px;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.dk-site {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--site-text);
  background-color: var(--site-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Moving gradient orbs (background) ──────────────────────── */
body.dk-site::before,
body.dk-site::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
body.dk-site::before {
  width: 70vw; height: 70vw;
  top: -25vw; left: -20vw;
  background: radial-gradient(circle, rgba(224,23,58,0.18) 0%, rgba(29,96,245,0.10) 50%, transparent 70%);
  animation: orb-a 18s ease-in-out infinite alternate;
}
body.dk-site::after {
  width: 60vw; height: 60vw;
  bottom: -20vw; right: -15vw;
  background: radial-gradient(circle, rgba(29,96,245,0.16) 0%, rgba(240,20,90,0.08) 50%, transparent 70%);
  animation: orb-b 22s ease-in-out infinite alternate;
}
@keyframes orb-a {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(8vw, 6vw) scale(1.08); }
  100% { transform: translate(4vw, 12vw) scale(0.96); }
}
@keyframes orb-b {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-6vw, -8vw) scale(1.12); }
  100% { transform: translate(-10vw, -4vw) scale(0.94); }
}

/* Particle canvas */
#dkSiteParticles {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

/* Stacking context for content above bg */
.site-header, main, .site-footer {
  position: relative;
  z-index: 1;
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  background: rgba(6,9,18,0.80);
  border-bottom: 1px solid var(--site-line);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  z-index: 100;
}

/* Animated rainbow line at top of header */
.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--site-red), var(--site-pink), var(--site-blue), var(--site-red));
  background-size: 300% 100%;
  animation: header-line 6s linear infinite;
}
@keyframes header-line {
  0%   { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

.site-brand img {
  width: min(200px, 42vw);
  display: block;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 0.125rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--site-muted);
  text-decoration: none;
  border-radius: var(--site-r);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
  transition: color 150ms ease, background 150ms ease;
  letter-spacing: 0.01em;
}
.site-nav a:hover, .site-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.site-login, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6875rem 1.25rem;
  border-radius: var(--site-r);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}
.btn {
  color: var(--site-text);
  border: 1px solid var(--site-line2);
  background: rgba(255,255,255,0.07);
  letter-spacing: 0.01em;
}
.btn:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.btn.primary, .site-login {
  border: none;
  background: linear-gradient(135deg, var(--site-red), var(--site-pink) 50%, #c7185c);
  color: #fff;
  box-shadow: 0 4px 22px rgba(224,23,58,0.45);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.btn.primary::before, .site-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 200ms ease;
}
.btn.primary:hover, .site-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(224,23,58,0.55);
}
.btn.primary:hover::before, .site-login:hover::before { opacity: 1; }

.btn.outline-blue {
  border-color: rgba(29,96,245,0.4);
  background: rgba(255,20,147,0.14);
  color: #93b8ff;
}
.btn.outline-blue:hover {
  background: rgba(29,96,245,0.16);
  box-shadow: 0 8px 28px rgba(29,96,245,0.25);
  transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  padding: clamp(3rem, 7vw, 8rem) clamp(1.25rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
  position: relative;
  overflow: hidden;
}

/* Geometric accent lines behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 10%; right: -5%;
  width: 500px; height: 500px;
  border: 1px solid rgba(224,23,58,0.12);
  border-radius: 50%;
  animation: hero-ring-a 20s linear infinite;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 20%; right: 5%;
  width: 300px; height: 300px;
  border: 1px solid rgba(29,96,245,0.10);
  border-radius: 50%;
  animation: hero-ring-b 14s linear infinite reverse;
  pointer-events: none;
}
@keyframes hero-ring-a {
  0%   { transform: rotate(0deg) scale(1); opacity: 0.6; }
  50%  { transform: rotate(180deg) scale(1.06); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.6; }
}
@keyframes hero-ring-b {
  0%   { transform: rotate(0deg); opacity: 0.5; }
  100% { transform: rotate(360deg); opacity: 0.5; }
}

.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-copy { max-width: 900px; }

/* Eyebrow pill */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(224,23,58,0.1);
  border: 1px solid rgba(224,23,58,0.25);
  color: #ff6b87;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--site-red);
  box-shadow: 0 0 8px var(--site-red);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

h1, h2, h3 {
  font-family: 'Sora', 'Manrope', sans-serif;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-weight: 900;
  line-height: 0.9;
  color: #fff;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
h3 { font-size: 1.0625rem; font-weight: 700; color: #fff; }

.gradient-text {
  display: inline-block;
  background: linear-gradient(110deg, #fff 10%, #ffb8c8 40%, #a8c4ff 70%, #fff 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shimmer 5s ease infinite;
}
@keyframes text-shimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

.lead {
  color: #c0cfef;
  font-size: clamp(1.0625rem, 1.8vw, 1.4rem);
  line-height: 1.6;
  max-width: 760px;
  margin-bottom: 2rem;
}

.hero-actions, .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero trust badge */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.hero-trust span {
  font-size: 0.8rem;
  color: var(--site-muted);
}
.hero-trust-dots {
  display: flex;
  gap: 0.25rem;
}
.hero-trust-dots i {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--site-red);
  opacity: 0.7;
  animation: trust-pulse 2.4s ease-in-out infinite;
}
.hero-trust-dots i:nth-child(2) { background: var(--site-pink); animation-delay: 0.3s; }
.hero-trust-dots i:nth-child(3) { background: var(--site-blue); animation-delay: 0.6s; }
@keyframes trust-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

/* ── Metrics / stat bar ──────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--site-line);
}
.metric {
  padding: 1.25rem 1.125rem;
  background: var(--site-glass);
  border: 1px solid var(--site-line2);
  border-radius: var(--site-r-lg);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.metric::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--site-red), var(--site-pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}
.metric:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(224,23,58,0.15); }
.metric:hover::after { transform: scaleX(1); }
.metric strong { display: block; font: 900 2.25rem 'Sora', sans-serif; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.metric span   { color: var(--site-muted); font-size: 0.825rem; margin-top: 0.25rem; display: block; }

/* ── Sections ────────────────────────────────────────────────── */
.section {
  padding: clamp(4rem, 7vw, 8rem) clamp(1.25rem, 5vw, 5rem);
  position: relative;
}
.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.hero-inner, .section-inner { width: min(1180px, 100%); margin: 0 auto; }

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 820px;
}
.section-head h2 { margin-bottom: 0.25rem; }
.section-head p, .muted { color: var(--site-muted); line-height: 1.65; }

/* Divider accent */
.section-divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--site-red), var(--site-pink));
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

/* ── Grids ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid.two   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

/* ── Cards (flow, product, plan) ─────────────────────────────── */
.flow-card,
.product-card,
.plan-card,
.panel {
  background: var(--site-glass);
  border: 1px solid var(--site-line);
  border-radius: var(--site-r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.flow-card::before,
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.flow-card:hover,
.product-card:hover,
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(224,23,58,0.2);
  border-color: rgba(224,23,58,0.25);
}

.flow-card h3 { margin-bottom: 0.75rem; font-size: 1.0625rem; }
.flow-card p  { color: var(--site-muted); font-size: 0.9rem; line-height: 1.6; }

/* Flow card number badge */
.flow-card-num {
  display: inline-flex;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--site-red), var(--site-pink));
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}

/* Product card */
.product-card h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.product-card .class {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--site-blue), #6ab0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.875rem;
  display: block;
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.125rem; }
.chip {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  color: #b4c6e8;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ── "So fühlt es sich an" mockup ────────────────────────────── */
.demo-surface {
  border: 1px solid var(--site-line2);
  border-radius: var(--site-r-xl);
  overflow: hidden;
  background: var(--site-glass2);
  box-shadow: 0 40px 120px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.demo-surface::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--site-red), var(--site-pink), var(--site-blue));
}
.demo-top {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--site-line);
  background: rgba(0,0,0,0.2);
}
.demo-top span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--site-red);
}
.demo-top span:nth-child(2) { background: #f59e0b; }
.demo-top span:nth-child(3) { background: #10b981; }
.demo-top-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--site-muted);
  font-weight: 500;
}

.demo-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 380px;
}
.demo-sidebar {
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--site-line);
  background: rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.demo-sidebar div {
  padding: 0.6rem 0.875rem;
  border-radius: 8px;
  color: var(--site-muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.demo-sidebar .active {
  color: #fff;
  background: linear-gradient(120deg, rgba(224,23,58,0.28), rgba(29,96,245,0.22));
  border: 1px solid rgba(224,23,58,0.2);
}

.demo-content {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}
.demo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.mini-card {
  min-height: 88px;
  border: 1px solid var(--site-line);
  border-radius: var(--site-r);
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}
.mini-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--site-red), var(--site-pink));
  opacity: 0.5;
}
.mini-card strong {
  display: block;
  font: 900 1.625rem 'Sora', sans-serif;
  color: #fff;
  letter-spacing: -0.03em;
}
.mini-card p { color: var(--site-muted); font-size: 0.78rem; margin-top: 0.2rem; }

.panel h3 { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.panel p  { color: var(--site-muted); font-size: 0.875rem; line-height: 1.6; }

/* ── Feature highlight strip ─────────────────────────────────── */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--site-line);
  border-radius: var(--site-r-xl);
  overflow: hidden;
  background: var(--site-glass);
  backdrop-filter: blur(16px);
}
.feature-item {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--site-line);
  transition: background 200ms ease;
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: rgba(255,255,255,0.03); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(224,23,58,0.12);
  border: 1px solid rgba(224,23,58,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.125rem;
  font-size: 1.25rem;
  color: #ff4d72;
}
.feature-item:nth-child(2) .feature-icon {
  background: rgba(240,20,90,0.1);
  border-color: rgba(240,20,90,0.2);
  color: #ff5a8a;
}
.feature-item:nth-child(3) .feature-icon {
  background: rgba(255,20,147,0.18);
  border-color: rgba(29,96,245,0.2);
  color: #6aa3ff;
}
.feature-item h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.feature-item p  { color: var(--site-muted); font-size: 0.875rem; line-height: 1.6; }

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
  margin: 0 auto;
  width: min(1180px, 100%);
  padding: 3.5rem 3rem;
  border-radius: var(--site-r-xl);
  background: linear-gradient(135deg, rgba(224,23,58,0.18), rgba(29,96,245,0.14));
  border: 1px solid rgba(224,23,58,0.25);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(240,20,90,0.2), transparent 60%);
  pointer-events: none;
  animation: cta-glow 8s ease-in-out infinite alternate;
}
@keyframes cta-glow {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.15); }
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); max-width: 600px; }
.cta-banner p  { color: #c0cfef; margin-top: 0.5rem; font-size: 1rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 2rem clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--site-line);
  background: rgba(6,9,18,0.85);
  backdrop-filter: blur(16px);
  color: var(--site-muted);
  font-size: 0.875rem;
}
.site-footer strong { color: #fff; display: block; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a {
  color: var(--site-muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.footer-links a:hover { color: #fff; }

/* Footer logo area */
.footer-brand { max-width: 280px; }
.footer-brand img { width: 160px; margin-bottom: 0.75rem; }

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body.dk-site::before,
  body.dk-site::after,
  .hero::before,
  .hero::after,
  .gradient-text,
  .eyebrow::before,
  .metric::after { animation: none !important; }
  #dkSiteParticles { display: none; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--site-line); }
  .feature-item:last-child { border-bottom: none; }
}
@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { grid-column: 1 / -1; justify-content: flex-start; order: 3; padding-bottom: 0.25rem; }
  .metrics, .grid.two, .demo-body, .demo-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 2.5rem 2rem; }
  .cta-banner h2 { max-width: 100%; }
}
@media (max-width: 640px) {
  .site-header { padding: 0.875rem 1.25rem; gap: 0.75rem; }
  .site-nav a   { padding: 0.4rem 0.6rem; font-size: 0.8125rem; }
  .hero { min-height: auto; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .cta-banner { padding: 2rem 1.5rem; }
}
