/* ============================================================
   BestInnos — Global Stylesheet
   ============================================================ */

:root {
  --color-bg:             #0a0a0f;
  --color-bg-secondary:   #12121a;
  --color-surface:        rgba(255,255,255,0.04);
  --color-border:         rgba(255,255,255,0.09);
  --color-text:           #f0f4ff;
  --color-text-secondary: #a1a1c0;
  --color-text-muted:     #6b6b88;
  --color-primary:        #7b2cbf;
  --color-cyan:           #00f5d4;
  --color-purple:         #7b2cbf;
  --color-pink:           #f72585;
  --color-green:          #22c55e;
  --color-red:            #ef4444;
  --gradient-primary:     linear-gradient(135deg, #00f5d4, #7b2cbf, #f72585);
  --navbar-height:        72px;
  --radius-sm:            0.375rem;
  --radius-md:            0.75rem;
  --radius-lg:            1rem;
  --radius-xl:            1.5rem;
  --transition:           0.2s ease;

  /* Theme-abhängige Rohwerte (Dark = Default) */
  --navbar-bg:            rgba(10,10,15,0.85);
  --surface-hover:        rgba(255,255,255,0.07);
  --border-hover:         rgba(255,255,255,0.2);
  --shadow-card:          0 4px 24px rgba(0,0,0,0.4);
  --nav-link-color:       #d8d8ea;
}

/* ============================================================
   LIGHT MODE  —  aktiv bei <html data-theme="light">
   Überschreibt nur die Design-Tokens; alle Komponenten nutzen
   diese Variablen und passen sich damit automatisch an.
   ============================================================ */
:root[data-theme="light"] {
  --color-bg:             #f6f7fb;
  --color-bg-secondary:   #ffffff;
  --color-surface:        rgba(15,23,42,0.04);
  --color-border:         rgba(15,23,42,0.12);
  --color-text:           #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted:     #64748b;
  /* Akzentfarben etwas satter, damit sie auf Hell lesbar bleiben */
  --color-primary:        #6d28d9;
  --color-cyan:           #0891b2;
  --color-purple:         #6d28d9;
  --color-pink:           #db2777;
  --color-green:          #16a34a;
  --color-red:            #dc2626;
  --gradient-primary:     linear-gradient(135deg, #0891b2, #6d28d9, #db2777);

  --navbar-bg:            rgba(255,255,255,0.85);
  --surface-hover:        rgba(15,23,42,0.06);
  --border-hover:         rgba(15,23,42,0.25);
  --shadow-card:          0 4px 24px rgba(15,23,42,0.08);
  --nav-link-color:       #475569;
}

/* Sanfter Übergang beim Umschalten (nicht bei Seiten-Erstladung) */
:root.theme-transition,
:root.theme-transition body,
:root.theme-transition .navbar,
:root.theme-transition .card {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ── Theme-Umschalter (Sonne/Mond) ── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all var(--transition);
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}
.theme-toggle svg { width: 20px; height: 20px; }
/* Passendes Icon je Theme zeigen */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-secondary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--color-text);
  background: var(--surface-hover);
}

.btn-small { padding: 0.4rem 0.875rem; font-size: 0.8125rem; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: background var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-links a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--nav-link-color, var(--color-text-secondary));
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
  background: var(--color-surface);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── Mobile menu ── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0; right: 0;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  z-index: 999;
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-menu.open { display: block; }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-links a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 1rem;
  transition: all var(--transition);
}

.mobile-menu-links a:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

/* ── Main content offset ── */
main { padding-top: var(--navbar-height); }

/* ── Cards ── */
.card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-info    { background: rgba(0,245,212,0.15);  color: #00f5d4; }
.badge-warning { background: rgba(234,179,8,0.15);  color: #eab308; }
.badge-danger  { background: rgba(239,68,68,0.15);  color: #ef4444; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.form-control:focus { border-color: var(--color-cyan); }

/* ── Alerts ── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.alert-success { background: rgba(34,197,94,0.1);  border-color: rgba(34,197,94,0.3);  color: #22c55e; }
.alert-error   { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #ef4444; }
.alert-info    { background: rgba(0,245,212,0.1);  border-color: rgba(0,245,212,0.3);  color: #00f5d4; }
.alert-warning { background: rgba(234,179,8,0.1);  border-color: rgba(234,179,8,0.3);  color: #eab308; }

/* ── Section ── */
.section { padding: 5rem 0; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.section-subtitle { color: var(--color-text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.text-center { text-align: center; }

/* ── Gradient text ── */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Utility ── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--color-text-muted); }
.text-small { font-size: 0.875rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none; }

  .mobile-menu-btn { display: flex; }

  .container { padding: 0 1rem; }
}

/* ── Mobile menu JS toggle ── */
