/* ========================================
   DataBridge Design-System
   Version 1.0 - 2026
   ======================================== */

:root {
  /* Brand Colors */
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --accent: #ec4899;
  --success: #10b981;
  --success-dark: #059669;
  --gold: #fbbf24;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Neutrals */
  --bg: #0a0a0f;
  --bg-card: #14141f;
  --bg-elevated: #1c1c2b;
  --border: #2a2a3e;
  --text: #f5f5f7;
  --text-dim: #a1a1aa;
  --text-faint: #71717a;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-bg: radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0f 60%);

  /* Spacing */
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow: 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 16px 48px rgba(124,58,237,.25);
  --shadow-glow: 0 0 60px rgba(124,58,237,.3);

  /* Transitions */
  --t-fast: 150ms cubic-bezier(.4,0,.2,1);
  --t: 250ms cubic-bezier(.4,0,.2,1);
  --t-slow: 400ms cubic-bezier(.4,0,.2,1);
}

/* ====== RESET ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
html { background: #0d111a; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ====== BACKGROUND VORTEX (aus alter Seite 1:1 übernommen) ====== */
#bg-canvas { display: none; }

.db-bg-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -10;
  overflow: hidden;
}
.db-bg-gradient {
  position: absolute;
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, #1a2a4a 0%, #0d111a 100%);
}
.db-bg-grid {
  position: absolute;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  transform: translateZ(-500px);
}
.db-vortex-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}
.db-origin-point {
  position: absolute;
  width: 30px; height: 30px;
  background-color: #fff;
  border-radius: 50%;
  filter: blur(15px);
  box-shadow:
    0 0 40px 20px rgba(100,200,255,0.7),
    0 0 80px 40px rgba(100,200,255,0.3),
    0 0 120px 60px rgba(150,100,255,0.15);
  z-index: 10;
}
.db-bg-lines {
  position: absolute;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
}
.db-line {
  position: absolute;
  width: 1px;
  border-radius: 2px;
  filter: blur(1px);
  transform: translateZ(-200px);
  animation: floatVortex linear infinite;
  opacity: 0;
}
@keyframes floatVortex {
  0%   { transform: translate3d(0,0,-200px) scale(0.1); opacity: 0; }
  10%  { opacity: 0.5; }
  50%  { transform: translate3d(var(--tx), var(--ty), 0) scale(1); opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translate3d(var(--tx-end), var(--ty-end), 300px) scale(3); opacity: 0; }
}

/* ====== LAYOUT ====== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; position: relative; }
section.compact { padding: 48px 0; }

/* ====== HEADER ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-main a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .92rem;
  color: var(--text-dim);
  transition: all var(--t-fast);
  font-weight: 500;
}
.nav-main a:hover { color: var(--text); background: var(--bg-elevated); }
.nav-main a.active { color: var(--text); background: var(--bg-elevated); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.menu-toggle:hover { background: var(--bg-elevated); }
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-main {
    position: fixed;
    inset: 0;
    background: #0a0a0f;
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .nav-main.open {
    opacity: 1;
    visibility: visible;
  }
  .nav-main a {
    padding: 16px 32px;
    font-size: 1.15rem;
    text-align: center;
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
  }
  .nav-main a:hover { background: rgba(124,58,237,.15); }
  .menu-toggle { display: flex; z-index: 1001; }
  .nav-right .btn { padding: 8px 14px; font-size: .85rem; }
  /* Body scroll lock when menu open */
  body.menu-open { overflow: hidden; }
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,.5); }
.btn-success {
  background: var(--grad-success);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16,185,129,.4);
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,185,129,.5); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); background: var(--bg-elevated); }
.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
}
.btn-ghost:hover { background: var(--border); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 8px; }

/* ====== HERO ====== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero h1 .highlight {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--text-dim);
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta-item svg { width: 16px; height: 16px; color: var(--success); }

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4 { color: var(--text); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p { color: var(--text-dim); margin-bottom: 16px; }
.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(124,58,237,.15);
  color: var(--primary-light);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title { text-align: center; margin-bottom: 48px; }
.section-title p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ====== CARDS ====== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--t);
}
.card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(124,58,237,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary-light);
}
.card-icon svg { width: 24px; height: 24px; }

.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ====== STATS ====== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.stat-label { color: var(--text-dim); font-size: .9rem; }

/* ====== TRUST BADGES ====== */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 32px 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-dim);
}
.badge svg { width: 16px; height: 16px; color: var(--success); }

/* ====== FORMS ====== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: border-color var(--t-fast);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-help { font-size: .82rem; color: var(--text-faint); margin-top: 4px; }

/* ====== FOOTER ====== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 100px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-dim);
  font-size: .92rem;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--primary-light); }
.footer-brand { font-size: 1.2rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 32px; border-radius: 8px; }
.footer-desc { color: var(--text-dim); font-size: .9rem; line-height: 1.5; max-width: 320px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
  color: var(--text-faint);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-col:first-child { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:first-child { grid-column: auto; }
}

/* ====== UTILITIES ====== */
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-primary { color: var(--primary-light); }
.text-dim { color: var(--text-dim); }
.mt-4 { margin-top: 32px; }
.mt-2 { margin-top: 16px; }
.mb-4 { margin-bottom: 32px; }
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ====== COOKIE BANNER ====== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  z-index: 200;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: .9rem; margin-bottom: 12px; }
.cookie-banner-actions { display: flex; gap: 8px; }

/* ====== ANIMATIONS ====== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease-out; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.pulse { animation: pulse 2s infinite; }

/* ====== SCROLL ====== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ====== REVIEWS (auf ueber-uns und marktplatz) ====== */
.review-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}
.review-stars { font-size: 1rem; letter-spacing: 2px; }
.review-text { color: var(--text); font-size: .93rem; line-height: 1.6; margin: 0; }
.mp-loading { text-align: center; padding: 24px; color: var(--text-dim); font-size: .92rem; }

/* ====== LIGHTBOX (Bild-Zoom) ====== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 20px;
}
.lightbox-overlay img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0,0,0,.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

/* Blog Video */
.blog-video {
  width: 100%;
  max-height: 500px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  background: #000;
}

/* ====== APP SHOWCASE (Phone Mockups) ====== */
.app-showcase {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.phone-mockup {
  text-align: center;
  max-width: 240px;
}
.phone-frame {
  background: #1a1a2e;
  border-radius: 32px;
  padding: 12px;
  border: 3px solid rgba(124,58,237,.3);
  box-shadow: 0 20px 60px rgba(124,58,237,.15), 0 0 30px rgba(124,58,237,.05);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.phone-frame:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(124,58,237,.25), 0 0 40px rgba(124,58,237,.1);
}
.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}
.phone-label {
  margin-top: 16px;
  font-size: .9rem;
  color: var(--text-dim);
  font-weight: 500;
}
@media (max-width: 900px) {
  .app-showcase { gap: 24px; }
  .phone-mockup { max-width: 200px; }
  .phone-frame { padding: 8px; border-radius: 24px; }
  .phone-frame img { border-radius: 16px; }
}
@media (max-width: 500px) {
  .app-showcase { gap: 16px; }
  .phone-mockup { max-width: 140px; }
  .phone-frame { padding: 6px; border-radius: 20px; border-width: 2px; }
  .phone-frame img { border-radius: 14px; }
  .phone-label { font-size: .8rem; }
}
