/* =========================================================
   Synapse · main.css
   Brand colors, base layout, components.
   ========================================================= */

:root {
  /* Dark-Theme = Default */
  --bg:           #0a0e13;
  --bg-soft:      #0f1419;
  --bg-elev:      #161c24;
  --bg-card:      #1c2430;
  --border:       #2a3441;
  --text:         #e6edf3;
  --text-dim:     #8b98a5;
  --text-mute:    #5d6975;

  --accent:       #6366f1;
  --accent-hover: #818cf8;
  --accent-dark:  #4548b8;
  --accent-soft:  rgba(99, 102, 241, 0.15);
  --accent-glow:  rgba(99, 102, 241, 0.5);

  --secondary:    #ec4899;
  --tertiary:     #14b8a6;

  --success:      #10b981;
  --warn:         #f59e0b;
  --danger:       #ef4444;

  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;

  --container:    1200px;
  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow:       0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg:    0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow:  0 0 32px rgba(99, 102, 241, 0.3);
}

/* Light-Theme: aktiviert über html[data-theme="light"]. Inline-Script im
   <head> setzt data-theme synchron aus dem `theme`-Cookie, damit kein
   Flash-of-wrong-theme entsteht. */
html[data-theme="light"] {
  --bg:           #f8fafc;
  --bg-soft:      #f1f5f9;
  --bg-elev:      #ffffff;
  --bg-card:      #ffffff;
  --border:       #e2e8f0;
  --text:         #0f172a;
  --text-dim:     #475569;
  --text-mute:    #94a3b8;

  --accent-soft:  rgba(99, 102, 241, 0.10);

  --shadow-sm:    0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow:       0 4px 12px rgba(15, 23, 42, 0.10);
  --shadow-lg:    0 12px 32px rgba(15, 23, 42, 0.15);
}
html[data-theme="light"] body {
  background: var(--bg);
}
html[data-theme="light"] p {
  color: var(--text-dim);
}

/* Light-Theme: Component-Overrides für Stellen die hardcoded dunkle
   Gradients/Backgrounds hatten. Ohne diese Overrides wäre Text auf
   Card-Backgrounds unlesbar. */
html[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--border);
}
html[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
}
html[data-theme="light"] .nav-links a {
  color: var(--text-dim);
}
html[data-theme="light"] .nav-links a:hover {
  color: var(--text);
}
html[data-theme="light"] .price-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
html[data-theme="light"] .price-card.featured {
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
}
html[data-theme="light"] .feature-card {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}
html[data-theme="light"] .testi {
  background: #ffffff;
}
html[data-theme="light"] .showcase-visual {
  background: #ffffff;
}
html[data-theme="light"] .notebook-mock {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}
html[data-theme="light"] .cta-banner {
  background:
    radial-gradient(ellipse 800px 300px at center, rgba(99,102,241,0.18), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}
html[data-theme="light"] .cta-banner h2,
html[data-theme="light"] .cta-banner p {
  color: var(--text);
}
html[data-theme="light"] .cta-banner p {
  color: var(--text-dim);
}
html[data-theme="light"] .btn-ghost {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  border-color: var(--border);
}
html[data-theme="light"] .btn-ghost:hover {
  background: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] footer {
  background: var(--bg-soft);
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
html[data-theme="light"] .faq-item {
  background: #ffffff;
}
html[data-theme="light"] .logos-bar {
  background: #ffffff;
  border-color: var(--border);
}
html[data-theme="light"] .stats {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}
html[data-theme="light"] .auth-card {
  background: #ffffff;
}
html[data-theme="light"] .floating {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .lang-toggle {
  background: #ffffff;
  border: 1px solid var(--border);
}
html[data-theme="light"] .lang-toggle a {
  color: var(--text-dim);
}
html[data-theme="light"] .lang-toggle a.active {
  background: var(--accent);
  color: #ffffff;
}
html[data-theme="light"] .theme-toggle {
  background: #ffffff;
}
html[data-theme="light"] .billing-toggle {
  background: #ffffff;
  border: 1px solid var(--border);
}
html[data-theme="light"] .billing-toggle button {
  color: var(--text-dim);
}
html[data-theme="light"] .billing-toggle button.active {
  background: var(--accent);
  color: #ffffff;
}
html[data-theme="light"] .cookie-banner {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
}
html[data-theme="light"] .cookie-text {
  color: var(--text-dim);
}
html[data-theme="light"] .cookie-text strong {
  color: var(--text);
}
/* Particles-BG hat radial-gradients in der CSS, im Light-Mode gedimmt */
html[data-theme="light"] .particles {
  opacity: 0.35;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--text-dim); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
}
.section-head p {
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 14, 19, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  background: rgba(10, 14, 19, 0.92);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px var(--accent-glow);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  animation: shine 4s ease-in-out infinite;
}
@keyframes shine {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s, left 0.3s;
}
.nav-links a:hover::after { width: 100%; left: 0; }

.nav-cta { display: flex; gap: 0.6rem; align-items: center; }

/* ---------- Language Toggle (DE / EN) ---------- */
.lang-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-toggle a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--text-mute);
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}
.lang-toggle a:hover { color: var(--text); }
.lang-toggle a.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  color: #fff;
}
.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: 12px;
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 20%, rgba(99,102,241,0.15), transparent 60%),
    radial-gradient(ellipse 600px 500px at 80% 60%, rgba(236,72,153,0.1), transparent 60%),
    radial-gradient(ellipse 700px 400px at 50% 100%, rgba(20,184,166,0.08), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 640px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent-hover);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 1.5rem;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 50%, var(--tertiary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero p.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.hero-trust .item {
  display: flex; align-items: center; gap: 0.5rem;
}
.hero-trust .icon-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: var(--success);
  display: grid; place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Hero visual (right side) */
.hero-visual {
  position: relative;
  width: 100%;
  height: 500px;
  display: grid;
  place-items: center;
}
.notebook-mock {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #1a2230 0%, #0f1419 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}
.notebook-mock::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.notebook-mock .nb-bar {
  display: flex; gap: 0.5rem;
  margin-bottom: 1rem;
}
.notebook-mock .nb-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.notebook-mock .nb-dot:nth-child(1) { background: #ef4444; }
.notebook-mock .nb-dot:nth-child(2) { background: #f59e0b; }
.notebook-mock .nb-dot:nth-child(3) { background: #10b981; }

.notebook-mock svg.drawing {
  width: 100%;
  height: calc(100% - 2rem);
}

/* floating tags around mockup */
.floating {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 500;
  animation: float 6s ease-in-out infinite;
}
.floating-1 { top: 10%; right: -5%; animation-delay: 0s; }
.floating-2 { bottom: 15%; left: -10%; animation-delay: 2s; }
.floating-3 { top: 50%; right: -10%; animation-delay: 4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-15px); }
}
.floating .ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 0.95rem;
}
.floating-1 .ic { background: var(--accent-soft); color: var(--accent-hover); }
.floating-2 .ic { background: rgba(236,72,153,0.15); color: var(--secondary); }
.floating-3 .ic { background: rgba(20,184,166,0.15); color: var(--tertiary); }

/* ---------- LOGOS BAR ---------- */
.logos-bar {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.logos-bar .label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  opacity: 0.5;
}
.logos-grid span {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 1.1rem;
}

/* ---------- FEATURES ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, #181f29 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card.c2 .feature-icon { background: linear-gradient(135deg, var(--secondary) 0%, #be185d 100%); box-shadow: 0 4px 12px rgba(236,72,153,0.3); }
.feature-card.c3 .feature-icon { background: linear-gradient(135deg, var(--tertiary) 0%, #0d9488 100%); box-shadow: 0 4px 12px rgba(20,184,166,0.3); }
.feature-card.c4 .feature-icon { background: linear-gradient(135deg, var(--warn) 0%, #d97706 100%); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
.feature-card.c5 .feature-icon { background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%); box-shadow: 0 4px 12px rgba(168,85,247,0.3); }
.feature-card.c6 .feature-icon { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); box-shadow: 0 4px 12px rgba(6,182,212,0.3); }

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.95rem; }

/* ---------- SHOWCASE (alt) ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}
.showcase:nth-child(even) .showcase-text { order: 2; }
.showcase-text h3 { font-size: 2rem; margin-bottom: 1rem; }
.showcase-text p { font-size: 1.05rem; margin-bottom: 1.5rem; }
.showcase-text .check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.showcase-text .check-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  color: var(--text-dim);
}
.showcase-text .check-list .ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hover);
  display: grid; place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.showcase-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---------- PRICING ---------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem;
  margin: 0 auto 3rem;
  position: relative;
}
.billing-toggle button {
  background: transparent;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.billing-toggle button.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.billing-toggle .save-badge {
  position: absolute;
  top: -10px; right: -10px;
  background: var(--success);
  color: #052e21;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.pricing-grid {
  /* Flexbox statt Grid: orphan-Cards in der letzten Row werden automatisch
     mittig ausgerichtet (z.B. 3 oben + 1 unten → das 1 mittig, 2+2 → beide
     Rows mittig). Mit Grid ginge das ohne JS nicht. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.price-card {
  flex: 1 1 260px;
  max-width: 340px;
  background: linear-gradient(180deg, var(--bg-card) 0%, #14191f 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow);
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #1d2435 0%, #14191f 100%);
  box-shadow: 0 0 24px rgba(99,102,241,0.2);
}
.price-card.featured::before {
  content: 'Beliebt';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.price-name {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.5rem;
}
.price-amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
}
.price-amount .currency { font-size: 1.4rem; color: var(--text-dim); font-weight: 600; }
.price-amount .period { font-size: 0.9rem; color: var(--text-mute); font-weight: 500; }
.price-tagline { color: var(--text-mute); font-size: 0.85rem; margin-bottom: 1.5rem; }

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.price-features .ico {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: var(--success);
  display: grid; place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.price-features .ico.x {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
}
.price-features li.muted { color: var(--text-mute); opacity: 0.7; }

.price-card .btn { width: 100%; }

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.testi:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}
.testi .quote {
  font-size: 4rem;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.4;
  font-family: Georgia, serif;
  position: absolute;
  top: 1rem; left: 1.5rem;
}
.testi p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  font-style: italic;
}
.testi .author {
  display: flex; align-items: center; gap: 0.75rem;
}
.testi .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
}
.testi .meta strong { display: block; font-size: 0.95rem; color: var(--text); }
.testi .meta span { font-size: 0.8rem; color: var(--text-mute); }

/* ---------- STATS ---------- */
.stats {
  background:
    radial-gradient(ellipse 800px 400px at center, var(--accent-soft), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat .num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.stat .label {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: rgba(99, 102, 241, 0.3); }
.faq-item summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.3s;
}
.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-item .answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background:
    radial-gradient(ellipse 800px 300px at center, rgba(99,102,241,0.25), transparent 70%),
    linear-gradient(180deg, #14191f 0%, #0a0e13 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}
.cta-banner p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: #060809;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { max-width: 320px; }
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-mute);
}
.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.footer-bottom .social { display: flex; gap: 1rem; }
.footer-bottom .social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: all 0.2s;
}
.footer-bottom .social a:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* ---------- PAGE (Login, Legal, etc.) ---------- */
.page {
  padding: 8rem 0 6rem;
  min-height: 100vh;
}
.page-narrow {
  max-width: 760px;
  margin: 0 auto;
}
.page h1 { margin-bottom: 2rem; }
.page h2 { margin: 2.5rem 0 1rem; font-size: 1.6rem; }
.page h3 { margin: 1.5rem 0 0.75rem; font-size: 1.2rem; }
.page p { margin-bottom: 1rem; color: var(--text-dim); }
.page ul, .page ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-dim); }
.page li { margin-bottom: 0.4rem; }
.page strong { color: var(--text); }

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-card) 0%, #14191f 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 0.3rem;
  margin-bottom: 2rem;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.form-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auth-meta {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { height: 400px; max-width: 400px; margin: 0 auto; }
  .floating { font-size: 0.75rem; padding: 0.6rem 0.85rem; max-width: 200px; }
  /* Floating-Tags nicht negativ aus dem Mockup rausschieben — sonst hängen
     sie auf schmalen Screens neben dem Viewport. */
  .floating-1 { top: 5%;    right: 0; }
  .floating-2 { bottom: 10%; left: 0; }
  .floating-3 { top: 50%;   right: 0; }
  .showcase { grid-template-columns: 1fr; gap: 2rem; }
  .showcase:nth-child(even) .showcase-text { order: unset; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-inner { gap: 1rem; }
}

@media (max-width: 640px) {
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  /* ── Nav: nur Brand + (kompakter) CTA-Block sichtbar ───────────────── */
  .nav { padding: 0.75rem 0; }
  .nav-inner { gap: 0.5rem; padding: 0 1rem; }
  .brand { font-size: 0.95rem; gap: 0.45rem; }
  .brand-text { display: none; }     /* nur das "S"-Mark sichtbar */
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-elev);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { gap: 0.4rem; flex-wrap: nowrap; }
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .nav-cta .btn-primary { padding: 0.5rem 0.85rem; font-size: 0.82rem; }
  .lang-toggle { font-size: 0.65rem; padding: 2px; }
  .lang-toggle a { padding: 0.3rem 0.5rem; }

  /* ── Hero kompakter ────────────────────────────────────────────────── */
  .hero { padding: 6rem 0 2rem; }
  .hero-eyebrow { font-size: 0.78rem; padding: 0.35rem 0.85rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-trust { font-size: 0.78rem; gap: 0.85rem; }

  /* ── Pricing/Features stack auf 1 Spalte ───────────────────────────── */
  .pricing-grid { gap: 1rem; }
  .price-card { flex-basis: 100%; max-width: 100%; }
  .price-card { padding: 1.5rem; }
  .features-grid { gap: 1rem; }
  .feature-card { padding: 1.5rem; }
  .testimonials-grid { gap: 1rem; }
  .billing-toggle { width: 100%; max-width: 320px; }
  .billing-toggle button { flex: 1; padding: 0.65rem 0.5rem; font-size: 0.85rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* ── Auth-Card nicht zu groß ───────────────────────────────────────── */
  .auth-card { padding: 1.75rem 1.5rem; }
}

@media (max-width: 380px) {
  /* Ganz schmale Phones (iPhone SE 1st gen, kleine Androids) */
  .container { padding: 0 1rem; }
  .nav-inner { padding: 0 0.85rem; }
  .nav-cta .btn-primary { padding: 0.45rem 0.7rem; font-size: 0.75rem; }
  .lang-toggle a { padding: 0.3rem 0.45rem; }
  .brand-mark { width: 32px; height: 32px; font-size: 1rem; }
  h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .hero-trust { gap: 0.6rem; }
}

/* ── Theme-Toggle (Sonne/Mond) ─────────────────────────────────────────── */
.theme-toggle {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}
.theme-toggle .theme-icon-sun  { display: none; }
.theme-toggle .theme-icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .theme-icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle .theme-icon-moon { display: none; }
@media (max-width: 640px) {
  .theme-toggle { width: 32px; height: 32px; }
}

/* ── Auth-State-Toggle (Nav-Buttons) ────────────────────────────────────────
   Default = ausgeloggt (anon-only sichtbar). Wird im <head> via inline JS
   `html.auth-on` gesetzt sobald Token in localStorage liegt → tauscht
   Anmelden/Kostenlos-testen gegen Dashboard-Button.
   !important nötig weil `.btn` (display:inline-flex) und `.nav-cta .btn-*`
   (Spezifität 0,2,0) sonst gewinnen würden. */
.auth-only { display: none !important; }
html.auth-on .anon-only { display: none !important; }
html.auth-on .auth-only { display: inline-flex !important; align-items: center; }

/* ── Consent-Modal (FAGG-Widerrufsverzicht vor Stripe-Checkout) ─────────── */
.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: consentFadeIn 0.2s ease-out;
}
.consent-modal[hidden] { display: none; }
.consent-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.consent-modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: consentSlideUp 0.3s ease-out;
}
.consent-modal-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.consent-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-mute);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.consent-modal-close:hover {
  background: var(--bg-elev);
  color: var(--text);
}
.consent-checkbox-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.consent-checkbox-row:hover {
  border-color: var(--accent);
}
.consent-checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 4px 0 0 0;
  flex-shrink: 0;
  cursor: pointer;
}
.consent-checkbox-row a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.consent-modal-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.consent-modal-foot {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-mute);
  text-align: center;
}
.consent-modal-foot a { color: var(--accent-hover); }

@keyframes consentFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes consentSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .consent-modal-card { padding: 2rem 1.25rem 1.5rem; }
  .consent-modal-actions { flex-direction: column-reverse; }
  .consent-modal-actions .btn { width: 100%; }
}

/* ── Cookie-Banner ──────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  background: rgba(15, 20, 25, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: cookieIn 0.4s ease-out;
}
.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.cookie-text {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.cookie-text strong {
  color: var(--text);
  margin-right: 0.4rem;
}
.cookie-text a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.3rem;
  white-space: nowrap;
}
.cookie-banner .btn { flex-shrink: 0; }

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }
  .cookie-text { font-size: 0.82rem; }
  .cookie-text a { display: inline-block; margin-left: 0; }
  .cookie-banner .btn { width: 100%; }
}
