/* ==========================================================================
   TLTransporte – Stylesheet (2026)
   Modern, minimalistisch, Logistik-Ästhetik
   ========================================================================== */

/* ---------- Lokale Fonts (DSGVO-konform, selbst gehostet) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2-variations'),
       url('../fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/oswald.woff2') format('woff2-variations'),
       url('../fonts/oswald.woff2') format('woff2');
}

:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f6f8fb;
  --c-bg-dark: #0f1620;
  --c-bg-dark-2: #1a2432;
  --c-text: #1a2432;
  --c-text-muted: #5a6978;
  --c-text-light: #e9edf2;
  --c-text-light-muted: #a6b3c1;
  --c-border: #e4e8ee;
  --c-border-dark: #253244;

  --c-primary: #0f1620;
  --c-primary-hover: #1a2432;
  --c-accent: #d60a06;
  --c-accent-hover: #b30804;
  --c-accent-soft: rgba(214, 10, 6, 0.1);

  --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ff-display: 'Oswald', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 22, 32, 0.04), 0 1px 3px rgba(15, 22, 32, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 22, 32, 0.06), 0 2px 4px rgba(15, 22, 32, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 22, 32, 0.08), 0 8px 16px rgba(15, 22, 32, 0.05);
  --shadow-accent: 0 10px 30px rgba(214, 10, 6, 0.25);

  --tr: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1200px;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}
.section-title { line-height: 1.2; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}

.section { padding: 120px 0; position: relative; }
.section-head { margin-bottom: 64px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section-title.light { color: #fff; }
.section-sub { font-size: 1.1rem; color: var(--c-text-muted); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all var(--tr);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(255, 107, 26, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}
.btn-ghost:hover {
  border-color: var(--c-text);
  background: var(--c-bg-alt);
}
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; margin-top: 12px; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all var(--tr);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #000;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 0;
}
.brand-text { color: inherit; }
.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}
.site-footer .brand-logo {
  height: 56px;
}
@media (max-width: 768px) {
  .brand-logo { height: 48px; }
  .site-footer .brand-logo { height: 44px; }
}

.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text);
  position: relative;
  transition: color var(--tr);
}
.nav-link:hover, .nav-link.active { color: var(--c-accent); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--c-accent);
  border-radius: 2px;
}
.nav-cta { margin-left: 8px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all var(--tr);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 32, 0.5);
  z-index: 90;
  opacity: 0;
  transition: opacity var(--tr);
}
.nav-overlay.active { display: block; opacity: 1; }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  padding: calc(var(--header-h) + 80px) 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f6f8fb 0%, #eef2f7 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255, 107, 26, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(15, 22, 32, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 22, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 22, 32, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; max-width: 900px; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.25;
}
.hero-title-accent { color: var(--c-accent); }
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--c-text-muted);
  max-width: 640px;
  margin: 0 0 40px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 72px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
  max-width: 700px;
}
.stat-value {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.01em;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* About */
.section-about { background: var(--c-bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  margin: 0 0 20px;
  line-height: 1.75;
}
.about-text strong { color: var(--c-text); }
.checklist { margin-top: 28px; display: grid; gap: 12px; }
.checklist li {
  padding-left: 32px;
  position: relative;
  color: var(--c-text);
  font-weight: 500;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  background: var(--c-accent-soft);
  border-radius: 50%;
}
.checklist li::after {
  content: '';
  position: absolute;
  left: 6px; top: 12px;
  width: 6px; height: 10px;
  border-right: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(45deg);
}
.about-card { position: sticky; top: calc(var(--header-h) + 24px); }
.about-card-inner {
  background: var(--c-primary);
  color: #fff;
  padding: 40px;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.about-card-inner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.3) 0%, transparent 70%);
}
.about-card-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 20px;
}
.about-card blockquote {
  margin: 0 0 28px;
  font-size: 1.25rem;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.about-card-author {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.about-card-author strong { font-size: 1rem; }
.about-card-author span { color: var(--c-text-light-muted); font-size: 0.875rem; }

/* Services */
.section-services { background: var(--c-bg-alt); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-radius: var(--r-md);
  margin-bottom: 24px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-title { font-size: 1.25rem; margin-bottom: 12px; }
.service-desc {
  color: var(--c-text-muted);
  margin: 0 0 20px;
  line-height: 1.7;
  font-size: 0.95rem;
}
.service-desc strong { color: var(--c-text); font-weight: 600; }
.service-features {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.service-features li {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  padding-left: 20px;
  position: relative;
}
.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-weight: 700;
}

.service-card-soon {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border-style: dashed;
}
.badge-soon {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.service-soon-note {
  font-size: 0.875rem;
  color: var(--c-accent);
  font-weight: 500;
  font-style: italic;
  margin: 0;
}

/* Fleet */
.section-fleet {
  background: var(--c-bg-dark);
  color: var(--c-text-light);
  overflow: hidden;
}
.fleet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.fleet-sub {
  color: var(--c-text-light-muted);
  font-size: 1.05rem;
  margin: 16px 0 40px;
  line-height: 1.7;
}
.fleet-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  transition: all var(--tr);
}
.spec:hover {
  border-color: var(--c-accent);
  background: rgba(255, 107, 26, 0.08);
}
.spec strong { color: #fff; font-size: 1rem; font-weight: 600; }
.spec span { color: var(--c-text-light-muted); font-size: 0.85rem; }

.fleet-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: radial-gradient(ellipse at center, rgba(255, 107, 26, 0.08) 0%, transparent 70%);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fleet-visual-inner { position: relative; width: 85%; height: 70%; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 107, 26, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 26, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
}
.fleet-truck {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

/* Contact */
.section-contact { background: var(--c-bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-intro p {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  margin: 12px 0 36px;
  line-height: 1.7;
}
.contact-direct { display: grid; gap: 20px; }
.contact-direct li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.contact-direct a {
  color: var(--c-text);
  font-weight: 500;
  transition: color var(--tr);
}
.contact-direct a:hover { color: var(--c-accent); }

.contact-form {
  background: var(--c-bg-alt);
  padding: 40px;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  position: relative;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--c-text);
}
.req { color: var(--c-accent); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--c-text);
  transition: all var(--tr);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.form-field input.error, .form-field textarea.error { border-color: #e53e3e; }
.form-field input.success, .form-field textarea.success { border-color: #38a169; }
.form-field textarea { resize: vertical; min-height: 140px; }
.field-error {
  font-size: 0.8rem;
  color: #e53e3e;
  margin-top: 6px;
  min-height: 1em;
  display: block;
}

.privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 8px;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  cursor: pointer;
  line-height: 1.5;
}
.privacy input[type="checkbox"] {
  margin-top: 3px;
  width: 18px; height: 18px;
  accent-color: var(--c-accent);
  flex-shrink: 0;
}
#privacyError { display: block; margin-bottom: 12px; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-success {
  margin-top: 24px;
  padding: 20px;
  background: rgba(56, 161, 105, 0.1);
  border: 1px solid rgba(56, 161, 105, 0.3);
  border-radius: var(--r-md);
  color: #276749;
}
.form-success strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.form-success p { margin: 0; font-size: 0.9rem; }

.form-error {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(229, 62, 62, 0.08);
  border: 1px solid rgba(229, 62, 62, 0.25);
  border-radius: var(--r-md);
  color: #c53030;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--c-bg-dark);
  color: var(--c-text-light-muted);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-accent { color: var(--c-accent); }
.footer-tag {
  margin: 16px 0 0;
  color: var(--c-text-light-muted);
  font-size: 0.95rem;
  font-style: italic;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col p { margin: 0; line-height: 1.8; font-size: 0.9rem; }
.footer-col a { transition: color var(--tr); }
.footer-col a:hover { color: var(--c-accent); }
.footer-nav { display: grid; gap: 10px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid var(--c-border-dark);
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--c-text-light-muted);
}

/* Scroll-to-top */
.scroll-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--tr);
  z-index: 80;
  box-shadow: var(--shadow-lg);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--c-accent); transform: translateY(-2px); }

/* Cookie Banner (DSGVO) */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(15, 22, 32, 0.25), 0 4px 12px rgba(15, 22, 32, 0.08);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
}
.cookie-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-accent);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
}
.cookie-title {
  font-family: var(--ff-sans);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  text-transform: none;
}
.cookie-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-text-muted);
  margin: 0;
}
.cookie-text a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.cookie-text a:hover { color: var(--c-accent-hover); }
.cookie-text strong { color: var(--c-text); font-weight: 600; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-actions .btn {
  padding: 11px 20px;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Footer "Cookie-Einstellungen" Button */
.footer-legal-btn {
  font: inherit;
  color: var(--c-text-light-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.85rem;
  transition: color var(--tr);
}
.footer-legal-btn:hover { color: var(--c-accent); }

/* Animations */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Legal pages (Impressum / Datenschutz) */
.page-legal { background: var(--c-bg-alt); }

.legal-main {
  padding: calc(var(--header-h) + 72px) 0 120px;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(255, 107, 26, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #f6f8fb 0%, #ffffff 340px);
  min-height: calc(100vh - var(--header-h));
}
.legal-container {
  max-width: 820px;
  padding: 0 24px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-muted);
  margin-bottom: 32px;
  transition: color var(--tr);
}
.legal-back:hover { color: var(--c-accent); }

.legal-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (max-width: 768px) {
  .legal-title { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .legal-title { font-size: 1.35rem; }
}
.legal-lead {
  font-size: 1.075rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin: 0 0 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-border);
}

.legal-content {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 48px clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow-sm);
}
.legal-content h2 {
  font-size: 1.25rem;
  margin: 40px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal-content h2:first-of-type,
.legal-content > h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.legal-content p {
  color: var(--c-text);
  font-size: 0.975rem;
  line-height: 1.75;
  margin: 0 0 16px;
}
.legal-content p em { color: var(--c-text-muted); }
.legal-content a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  word-break: break-word;
}
.legal-content a:hover { color: var(--c-accent-hover); }
.legal-content strong { color: var(--c-primary); font-weight: 600; }

.legal-list {
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.legal-list li {
  position: relative;
  padding-left: 22px;
  color: var(--c-text);
  font-size: 0.975rem;
  line-height: 1.7;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.legal-toc {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 0.9rem;
}
.legal-toc strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 10px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--c-text-muted);
}
.legal-toc a {
  color: var(--c-text);
  text-decoration: none;
  transition: color var(--tr);
}
.legal-toc a:hover { color: var(--c-accent); text-decoration: underline; }

.legal-meta {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  font-style: italic;
}

/* Footer bottom legal */
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-legal {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
}
.footer-legal a {
  color: var(--c-text-light-muted);
  transition: color var(--tr);
}
.footer-legal a:hover { color: var(--c-accent); }

/* Privacy checkbox link styling */
.privacy a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.privacy a:hover { color: var(--c-accent-hover); }

/* Responsive */
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-card { position: static; }
  .fleet-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 85%);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-h) + 24px) 32px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--tr);
    box-shadow: var(--shadow-lg);
    z-index: 95;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav .nav-link { font-size: 1.1rem; }
  .menu-toggle { display: flex; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 48px); padding-bottom: 48px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    flex: none;
    min-width: 0;
    padding: 16px 20px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .fleet-specs { grid-template-columns: 1fr; gap: 16px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 768px) {
  .legal-main { padding: calc(var(--header-h) + 40px) 0 80px; }
  .legal-content { padding: 32px 24px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

  .cookie-inner { grid-template-columns: 1fr; gap: 16px; padding: 20px 22px; }
  .cookie-actions { flex-direction: column-reverse; width: 100%; }
  .cookie-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .btn { padding: 12px 20px; font-size: 0.9rem; white-space: normal; line-height: 1.3; }
  .contact-direct li { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
}
