/* cargoboy3d — Design System (2026-05)
 *
 * Portierung der neuen HTML/CSS-Prototypen aus dem Claude-Design-Bundle.
 * Quelle: cargoboy3d/project/{index,login,register,pricing,demo,viewer,dashboard}.html
 *
 * Tokens: Space Grotesk (Headlines) + DM Sans (Body), Orange #f97316 als
 * Primärakzent, Deep-Navy-Hintergrund, Glassmorphism via backdrop-filter.
 */

:root {
  --orange: #f97316;
  --orange-dim: #c2550e;
  --orange-bright: #fb923c;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --green: #22c55e;
  --red: #ef4444;
  --bg: #080d1a;
  --bg2: #0f1629;
  --bg3: #141d35;
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.12);
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #475569;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); letter-spacing: -0.02em; }
a { color: inherit; }

/* ──────────────── NAV ──────────────── */
.cb-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}
.cb-nav-logo {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: inherit;
}
.cb-nav-logo span { color: var(--orange); }
.cb-nav-links { display: flex; align-items: center; gap: 2rem; }
.cb-nav-links a {
  text-decoration: none;
  color: var(--text2);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.cb-nav-links a:hover, .cb-nav-links a.active { color: var(--text); }
.cb-nav-right { display: flex; align-items: center; gap: 1rem; }

/* Sprachauswahl */
.cb-lang-toggle {
  display: flex;
  background: var(--bg3);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}
.cb-lang-toggle a {
  background: none; border: none;
  color: var(--text2);
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body); font-weight: 500;
  transition: all 0.15s;
  text-decoration: none;
  text-transform: uppercase;
}
.cb-lang-toggle a.active { background: var(--orange); color: white; }

/* ──────────────── BUTTONS ──────────────── */
.cb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 8px 20px;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  transition: all 0.2s;
}
.cb-btn-primary { background: var(--orange); color: white; }
.cb-btn-primary:hover { background: var(--orange-dim); transform: translateY(-1px); }
.cb-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--card-border);
}
.cb-btn-secondary:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--text3); }
.cb-btn-outline {
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text2);
  padding: 7px 18px;
  font-weight: 500;
}
.cb-btn-outline:hover { border-color: var(--text2); color: var(--text); }
.cb-btn-blue { background: var(--blue); color: white; }
.cb-btn-blue:hover { background: var(--blue-bright); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3); }
.cb-btn-lg {
  padding: 13px 32px;
  font-size: 1rem;
  font-family: var(--font-head);
  border-radius: var(--radius);
}

/* ──────────────── CARDS ──────────────── */
.cb-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* ──────────────── FORM FIELDS ──────────────── */
.cb-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.cb-field-label {
  font-size: 0.82rem; font-weight: 500;
  color: var(--text2); letter-spacing: 0.02em;
}
.cb-field-input,
.cb-field-select,
.cb-field-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.cb-field-input::placeholder,
.cb-field-textarea::placeholder { color: var(--text3); }
.cb-field-input:focus,
.cb-field-select:focus,
.cb-field-textarea:focus {
  border-color: var(--blue-bright);
  background: rgba(255, 255, 255, 0.08);
}
.cb-field-input.error,
.cb-field-select.error { border-color: rgba(239, 68, 68, 0.5); }
.cb-field-hint { font-size: 0.78rem; color: var(--text3); margin-top: 0.25rem; }
.cb-field-hint.error { color: #fca5a5; }

/* ──────────────── FLASH MESSAGES ──────────────── */
.cb-flash {
  max-width: 720px; margin: 96px auto 0;
  padding: 0 1.5rem;
}
.cb-flash-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  border: 1px solid;
}
.cb-flash-success { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.3); color: #86efac; }
.cb-flash-danger  { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #fca5a5; }
.cb-flash-warning { background: rgba(234, 179, 8, 0.1); border-color: rgba(234, 179, 8, 0.3); color: #fde68a; }
.cb-flash-info    { background: rgba(37, 99, 235, 0.1); border-color: rgba(37, 99, 235, 0.3); color: #93c5fd; }

/* ──────────────── FOOTER ──────────────── */
.cb-footer {
  background: var(--bg);
  border-top: 1px solid var(--card-border);
  padding: 2.5rem 5vw;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.cb-footer-logo {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700;
}
.cb-footer-logo span { color: var(--orange); }
.cb-footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.cb-footer-links a {
  font-size: 0.85rem; color: var(--text3);
  text-decoration: none; transition: color 0.2s;
}
.cb-footer-links a:hover { color: var(--text2); }
.cb-footer-copy { font-size: 0.8rem; color: var(--text3); }

/* ──────────────── PAGE HEADERS ──────────────── */
.cb-page-header { padding: 130px 5vw 70px; text-align: center; }
.cb-page-tag {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem; display: block;
}
.cb-page-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.cb-page-sub {
  font-size: 1.05rem; color: var(--text2);
  max-width: 560px; margin: 0 auto;
  line-height: 1.7; font-weight: 300;
}

/* ──────────────── SECTION HELPERS ──────────────── */
.cb-section { padding: 100px 5vw; }
.cb-section-tag {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem;
}
.cb-section-h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 1rem;
}
.cb-section-sub {
  font-size: 1.05rem; color: var(--text2);
  font-weight: 300; line-height: 1.7;
  max-width: 520px;
}

/* ──────────────── SCROLLBAR ──────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 5px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ──────────────── DASHBOARD-SPEZIFISCHES ──────────────── */
.cb-dash-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.cb-dash-side {
  background: var(--bg2); border-right: 1px solid var(--card-border);
  padding: 1.5rem 1rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.cb-dash-side .cb-nav-logo { padding: 0.5rem 0.75rem 1.5rem; }
.cb-dash-side a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 9px 12px;
  font-size: 0.875rem; color: var(--text2);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.cb-dash-side a:hover { background: var(--card); color: var(--text); }
.cb-dash-side a.active { background: rgba(249, 115, 22, 0.1); color: var(--orange); }
.cb-dash-main { padding: 2rem 2.5rem; }

@media (max-width: 768px) {
  .cb-dash-shell { grid-template-columns: 1fr; }
  .cb-dash-side { display: none; }
  .cb-nav { padding: 0 1rem; }
  .cb-nav-links { display: none; }
}
