/* ==========================================================================
   virtauto® – Global Styles
   Unified industrial design system for EN/DE core pages
   Version: 2026 navigation/footer baseline
   ========================================================================== */

/* Root tokens ------------------------------------------------------------- */

:root {
  --color-bg: #050816;
  --color-bg-deep: #020617;
  --color-surface: #070b17;
  --color-surface-soft: #0c1222;
  --color-surface-alt: #111827;

  --color-primary: #24b2ff;
  --color-primary-soft: #38bdf8;
  --color-primary-strong: #0ea5e9;

  --color-accent: #f97316;
  --color-ok: #22c55e;
  --color-issue: #ef4444;
  --color-unknown: #eab308;
  --color-preparing: #38bdf8;

  --color-border-subtle: rgba(148, 163, 184, 0.30);
  --color-border-strong: rgba(148, 163, 184, 0.60);

  --color-text: #e5e7eb;
  --color-text-soft: #9ca3af;
  --color-text-faint: #6b7280;
  --color-text-strong: #f9fafb;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.55);
  --shadow-card: 0 22px 70px rgba(2, 6, 23, 0.85);

  --space-2xs: 4px;
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 72px;

  --container-max: 1120px;
  --nav-max: 1180px;
}

/* Reset & base ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-bg-deep);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(36, 178, 255, 0.10), transparent 34rem),
    linear-gradient(180deg, #07101f 0%, #050816 42%, #020617 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-soft);
  text-decoration: none;
}

a:hover {
  color: var(--color-text-strong);
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Layout ----------------------------------------------------------------- */

.container {
  width: min(calc(100% - 48px), var(--container-max));
  margin-inline: auto;
}

.section,
section {
  padding-block: var(--space-2xl);
}

section:first-of-type {
  padding-top: var(--space-xl);
}

section:last-of-type {
  padding-bottom: var(--space-3xl);
}

.section-muted {
  background: rgba(2, 6, 23, 0.55);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

/* Typography -------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-sm);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--color-text-strong);
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.25;
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-soft);
  line-height: 1.65;
}

strong {
  color: var(--color-text-strong);
}

/* Unified Header & Navigation -------------------------------------------- */

.site-header,
.header {
  width: 100%;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(5, 8, 22, 0.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container,
.header-inner {
  width: min(calc(100% - 48px), var(--nav-max));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.logo,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-strong);
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo img {
  height: 26px;
  width: auto;
}

.brand span.badge,
.brand .badge,
.logo .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(36, 178, 255, 0.12);
  border: 1px solid rgba(36, 178, 255, 0.55);
  color: var(--color-primary-soft);
}

.main-nav,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a,
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  color: rgba(229, 231, 235, 0.78);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.main-nav a:hover,
.nav-links a:hover,
.main-nav a.active,
.nav-links a.active,
.main-nav a[aria-current="page"],
.nav-links a[aria-current="page"] {
  color: var(--color-text-strong);
  background: rgba(36, 178, 255, 0.10);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.lang-btn,
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: rgba(229, 231, 235, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.lang-btn:hover,
.lang-switch a:hover,
.lang-btn.active,
.lang-switch a.active,
.lang-switch a[aria-current="page"] {
  border-color: rgba(36, 178, 255, 0.65);
  background: rgba(36, 178, 255, 0.12);
  color: var(--color-text-strong);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(36, 178, 255, 0.55);
  background: rgba(36, 178, 255, 0.08);
  color: var(--color-text-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cta-button:hover {
  background: rgba(36, 178, 255, 0.18);
  box-shadow: 0 0 0 4px rgba(36, 178, 255, 0.08);
}

/* Optional mobile toggle support */
.menu-toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.85);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: 8px 11px;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  padding-block: var(--space-3xl);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: var(--space-2xl);
}

.hero-title {
  margin-bottom: var(--space-md);
}

.kicker,
.hero-title span.kicker,
.eyebrow {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--color-primary-soft);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-lead,
.lead {
  max-width: 44rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: #cbd5e1;
}

.hero-visual {
  max-width: 460px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at top, #1e293b 0, #020617 65%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-card);
}

/* Dashboard / status blocks ---------------------------------------------- */

.mini-dashboard,
.notice,
.info-box {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #dbeafe;
}

.mini-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  box-shadow: var(--shadow-soft);
}

.mini-dashboard strong {
  color: var(--color-text-strong);
}

.mini-dashboard .issue,
.issue {
  color: #fecaca;
}

/* Chips ------------------------------------------------------------------ */

.agent-chips,
.chip-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-sm);
}

.agent-chip,
.chip,
.pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
}

.agent-chip span.dot,
.chip span.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-text-faint);
}

.agent-chip.ok,
.chip.ok,
.badge.ok {
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(34, 197, 94, 0.55);
  color: #bbf7d0;
}

.agent-chip.issue,
.chip.issue,
.badge.issue {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

.agent-chip.unknown,
.chip.unknown,
.badge.unknown {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(234, 179, 8, 0.55);
  color: #fef9c3;
}

.agent-chip.preparing,
.chip.preparing {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.58);
  color: #e0f2fe;
}

/* Cards ------------------------------------------------------------------ */

.section-heading {
  margin-bottom: var(--space-xl);
}

.section-heading.center,
.section-heading.text-center {
  text-align: center;
}

.section-heading p {
  max-width: 42rem;
}

.section-heading.center p,
.section-heading.text-center p {
  margin-inline: auto;
}

.card-grid,
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.card,
.panel,
.feature-card {
  position: relative;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.86));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-soft);
}

.card h3,
.panel h3,
.feature-card h3 {
  margin-bottom: 7px;
}

.card p,
.panel p,
.feature-card p {
  font-size: 0.94rem;
}

/* Buttons ---------------------------------------------------------------- */

.btn-row,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--color-text-strong);
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  border-color: rgba(148, 163, 184, 0.25);
  color: #02111f;
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.18);
}

.btn-primary:hover {
  color: #020617;
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.28);
}

.btn-ghost,
.btn-secondary {
  background: rgba(15, 23, 42, 0.80);
  border-color: rgba(148, 163, 184, 0.34);
  color: var(--color-text);
}

.btn-ghost:hover,
.btn-secondary:hover {
  border-color: rgba(36, 178, 255, 0.55);
  background: rgba(36, 178, 255, 0.10);
}

/* Forms ------------------------------------------------------------------ */

form {
  margin: 0;
}

.form-grid {
  display: grid;
  gap: var(--space-md);
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.30);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.88);
  color: var(--color-text);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(36, 178, 255, 0.70);
  box-shadow: 0 0 0 4px rgba(36, 178, 255, 0.10);
}

/* Tables / code ----------------------------------------------------------- */

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

pre {
  overflow: auto;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(2, 6, 23, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #dbeafe;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-md);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
}

/* Activity Feed ----------------------------------------------------------- */

.activity-list {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
}

.activity-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.activity-list li:last-child {
  border-bottom: none;
}

.activity-list time {
  font-size: 0.76rem;
  color: var(--color-text-faint);
  margin-right: 8px;
}

.activity-list .tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-left: 8px;
}

.activity-list .tag-ok {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid #2ecc71;
}

.activity-list .tag-issue {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid #e74c3c;
}

/* Unified Footer ---------------------------------------------------------- */

.site-footer,
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.72);
  margin-top: var(--space-2xl);
}

.footer-inner {
  width: min(calc(100% - 48px), var(--nav-max));
  margin-inline: auto;
  padding-block: var(--space-xl);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(180px, 0.7fr);
  align-items: center;
  gap: var(--space-lg);
  color: var(--color-text-faint);
  font-size: 0.84rem;
}

.footer-brand strong {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--color-text-strong);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--color-primary-soft);
  font-weight: 650;
}

.footer-copy {
  justify-self: end;
  color: var(--color-text-faint);
}

/* Legacy compatibility ---------------------------------------------------- */

.max-width,
.section-max {
  width: min(calc(100% - 48px), var(--container-max));
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--color-text-soft);
}

.text-center {
  text-align: center;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav-container,
  .header-inner {
    width: min(calc(100% - 32px), var(--nav-max));
    gap: var(--space-md);
  }

  .main-nav,
  .nav-links {
    gap: 2px;
  }

  .main-nav a,
  .nav-links a {
    padding-inline: 8px;
    font-size: 0.78rem;
  }
}

@media (max-width: 960px) {
  .nav-container,
  .header-inner {
    min-height: auto;
    padding-block: 12px;
    flex-wrap: wrap;
  }

  .main-nav,
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .lang-switch,
  .cta-button {
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 420px;
  }

  .card-grid,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .container,
  .max-width,
  .section-max,
  .footer-inner {
    width: min(calc(100% - 32px), var(--container-max));
  }

  section,
  .section {
    padding-block: var(--space-xl);
  }

  .hero {
    padding-block: var(--space-2xl);
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3.7rem);
  }

  .card-grid,
  .grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .mini-dashboard {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-row,
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .cta-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-container,
  .header-inner {
    width: min(calc(100% - 24px), var(--nav-max));
  }

  .main-nav a,
  .nav-links a,
  .lang-btn,
  .lang-switch a {
    font-size: 0.76rem;
  }

  .hero-lead,
  .lead {
    font-size: 0.96rem;
  }

  .card,
  .panel,
  .feature-card {
    padding: var(--space-md);
  }
}
