/* ============================================
   CH Logistik — Design Tokens & Styles
   ============================================ */

/* --- Fonts --- */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,800&f[]=satoshi@400,500,700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --blue: #4A9FD9;
  --blue-dark: #3A8BC4;
  --blue-light: #6BB5E5;
  --navy: #0A1628;
  --navy-light: #0F172A;
  --amber: #F59E0B;
  --amber-dark: #D97706;

  /* Light Mode */
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --surface: #FFFFFF;
  --surface-alt: #F8FAFC;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-faint: #94A3B8;

  /* Semantic */
  --success: #22C55E;
  --error: #EF4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 180ms;
  --duration-slow: 400ms;

  /* Header */
  --header-height: 72px;
}

/* Dark Mode */
.dark {
  --bg: #0F172A;
  --bg-alt: #1E293B;
  --surface: #1E293B;
  --surface-alt: #334155;
  --border: #334155;
  --border-light: #1E293B;
  --text: #E2E8F0;
  --text-muted: #94A3B8;
  --text-faint: #64748B;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -4px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.3);
}

/* --- Base Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color var(--duration-slow) var(--ease), color var(--duration-slow) var(--ease);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--blue-dark);
}

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Typography --- */
.font-display {
  font-family: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.125rem; }

p {
  max-width: 70ch;
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }

/* --- Scroll Progress Bar --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  z-index: 9999;
  transition: none;
  box-shadow: 0 0 8px rgba(74, 159, 217, 0.5), 0 0 16px rgba(74, 159, 217, 0.2);
}

/* --- Header / Nav (Floating) --- */
.site-header {
  position: sticky;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 100;
  height: var(--header-height);
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 14px;
  transition: transform 0.3s var(--ease), background-color var(--duration-slow) var(--ease), box-shadow 0.3s var(--ease), border-radius 0.3s var(--ease), max-width 0.3s var(--ease), border-color 0.3s var(--ease);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dark .site-header {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(51, 65, 85, 0.5);
}

.site-header.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo svg {
  width: 40px;
  height: 40px;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.logo-img-footer {
  height: 32px;
  filter: brightness(1.3) saturate(0.8);
}

.dark .logo-img {
  filter: brightness(1.4) saturate(0.85);
}

.dark .logo-img-footer {
  filter: brightness(1.6) saturate(0.7);
}

.logo:hover { color: var(--blue); }

.logo:hover .logo-img {
  filter: brightness(1.15);
}

/* Desktop Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.nav-links a.active {
  color: var(--blue);
  background: rgba(74, 159, 217, 0.08);
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

.dark .nav-links a.active {
  background: rgba(74, 159, 217, 0.15);
}

/* Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  color: var(--text-muted);
}

.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(74, 159, 217, 0.06);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }
.dark .theme-toggle .icon-sun { display: block; }
.dark .theme-toggle .icon-moon { display: none; }
:root:not(.dark) .theme-toggle .icon-moon { display: block; }
:root:not(.dark) .theme-toggle .icon-sun { display: none; }
html:not(.dark) .theme-toggle .icon-moon { display: block; }
html:not(.dark) .theme-toggle .icon-sun { display: none; }

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

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: all var(--duration) var(--ease);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: absolute;
  transition: all var(--duration) var(--ease);
}

.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a.active {
  color: var(--blue);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -84px;
  padding-top: 84px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg video,
.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg .hero-fallback {
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.8) 35%, rgba(10, 22, 40, 0.45) 65%, rgba(10, 22, 40, 0.3) 100%);
  z-index: 1;
}

/* Noise/grain texture overlay on hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  color: #fff;
  margin-bottom: 1rem;
  max-width: 700px;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 30%, rgba(180, 215, 245, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  color: var(--amber);
}

/* Hero staggered fade-in animation */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .hero-badge {
  opacity: 0;
  animation: heroFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero h1 {
  opacity: 0;
  animation: heroFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero p {
  opacity: 0;
  animation: heroFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero .btn-group {
  opacity: 0;
  animation: heroFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* Wave divider after hero */
.hero-wave-divider {
  position: relative;
  margin-top: -1px;
  z-index: 3;
  line-height: 0;
  background: transparent;
}

.hero-wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 159, 217, 0.3), 0 0 20px rgba(74, 159, 217, 0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline-dark:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-amber {
  background: var(--amber);
  color: var(--navy);
}

.btn-amber:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Section Styles --- */
.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

.section-title {
  margin-bottom: 1rem;
  position: relative;
  display: block;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--blue));
  border-radius: 2px;
  margin-top: 0.75rem;
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* --- KPI Section --- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .kpi-card { padding: 1.25rem 0.75rem; overflow: hidden; }
  .kpi-value { font-size: clamp(1.125rem, 4.5vw, 1.75rem); word-break: break-word; }
  .kpi-label { font-size: 0.75rem; }
}

.kpi-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(74, 159, 217, 0.06) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-slow) var(--ease);
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(74, 159, 217, 0.08);
  border-color: rgba(74, 159, 217, 0.3);
}

.kpi-value {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.kpi-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-slow) var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(74, 159, 217, 0.15);
  border-color: var(--blue);
  border-top: 3px solid var(--blue);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(74, 159, 217, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- Partner Tabs --- */
.partner-tabs {
  margin-top: 2.5rem;
}

.partner-tab-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.partner-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-muted);
  font-family: 'Satoshi', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.partner-tab-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(74, 159, 217, 0.06);
}

.partner-tab-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(74, 159, 217, 0.3);
}

.partner-tab-btn.active svg {
  stroke: #fff;
}

.partner-tab-btn svg {
  flex-shrink: 0;
}

.partner-panel {
  display: none;
}

.partner-panel.active {
  display: block;
  animation: panelFadeIn 0.4s var(--ease);
}

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

.partner-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.partner-panel-image {
  height: 100%;
  min-height: 320px;
}

.partner-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-panel-content {
  padding: 2.5rem 2.5rem 2.5rem 0;
}

.partner-panel-content h3 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.partner-panel-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.partner-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.partner-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.partner-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

@media (max-width: 768px) {
  .partner-panel-inner {
    grid-template-columns: 1fr;
  }
  .partner-panel-image {
    min-height: 200px;
  }
  .partner-panel-content {
    padding: 1.5rem;
  }
  .partner-tab-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
}

/* --- Fleet Showcase --- */
.fleet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 2rem;
}

.fleet-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: default;
}

.fleet-card--large {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.fleet-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.fleet-card:hover img {
  transform: scale(1.04);
}

.fleet-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: background var(--duration-slow) var(--ease);
}

.fleet-card:hover .fleet-card-overlay {
  background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.3) 60%, transparent 100%);
}

.fleet-card-tag {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(74, 159, 217, 0.25);
  color: var(--blue-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(4px);
}

.fleet-card-overlay h3 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.375rem;
}

.fleet-card-overlay p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  max-width: 420px;
}

@media (max-width: 640px) {
  .fleet-grid {
    grid-template-columns: 1fr;
  }
  .fleet-card--large {
    grid-column: span 1;
    aspect-ratio: 16/10;
  }
  .fleet-card-overlay {
    padding: 1.25rem;
  }
  .fleet-card-overlay h3 {
    font-size: 1.1rem;
  }
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 50%, #1e4060 100%);
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

/* Noise/grain on CTA section */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Geometric accent on CTA */
.cta-section::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 159, 217, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2,
.cta-section p {
  color: #fff;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.75);
}

/* --- Floating Truck Image --- */
.truck-float-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 50%, var(--navy) 50%);
  padding: 0;
  overflow: visible;
}

.dark .truck-float-section {
  background: linear-gradient(180deg, var(--bg) 50%, #020617 50%);
}

.truck-float-wrapper {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  z-index: 2;
}

.truck-float-wrapper img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  transform: translateY(0);
}

/* --- Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
}

.value-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--duration-slow) var(--ease);
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(74, 159, 217, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

/* --- Benefits Grid --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

.benefit-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(74, 159, 217, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

/* --- Job Cards --- */
.job-card {
  padding: 2rem;
  padding-left: calc(2rem + 8px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  transition: all var(--duration-slow) var(--ease);
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 159, 217, 0.3);
}

.job-card h3 {
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(74, 159, 217, 0.1);
  color: var(--blue);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 159, 217, 0.1), inset 0 0 8px rgba(74, 159, 217, 0.06);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* --- Contact Info --- */
.contact-info-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(74, 159, 217, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

/* --- Map Placeholder --- */
.map-placeholder {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  overflow: hidden;
  position: relative;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

/* Topographic wave pattern in footer background */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 Q25 30 50 50 T100 50' fill='none' stroke='%234A9FD9' stroke-width='0.5'/%3E%3Cpath d='M0 60 Q25 40 50 60 T100 60' fill='none' stroke='%234A9FD9' stroke-width='0.5'/%3E%3Cpath d='M0 70 Q25 50 50 70 T100 70' fill='none' stroke='%234A9FD9' stroke-width='0.5'/%3E%3Cpath d='M0 40 Q25 20 50 40 T100 40' fill='none' stroke='%234A9FD9' stroke-width='0.5'/%3E%3Cpath d='M0 30 Q25 10 50 30 T100 30' fill='none' stroke='%234A9FD9' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  width: fit-content;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.375rem 0;
  transition: color var(--duration) var(--ease);
  position: relative;
}

.footer-col a::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue-light);
  transition: width 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--blue-light);
}

.footer-col a:hover::after {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}

.footer-bottom a:hover {
  color: var(--blue-light);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all var(--duration-slow) var(--ease);
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* --- Cookie Banner (Modern Card Style) --- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 3rem));
  width: calc(100% - 3rem);
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 200;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.04);
  transition: transform 0.5s var(--ease);
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: none;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--blue);
  text-decoration: underline;
}

.cookie-banner-btns {
  display: flex;
  gap: 0.75rem;
}

.cookie-btn {
  padding: 0.5rem 1.5rem;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.cookie-btn:hover {
  border-color: var(--text-muted);
}

.cookie-btn-accept {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.cookie-btn-accept:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* --- Page Header (internal pages) --- */
.page-header {
  padding: clamp(4rem, 10vw, 6rem) 0 clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
}

.page-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 159, 217, 0.08) 0%, transparent 70%);
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  max-width: 560px;
}

.page-header .section-label {
  color: var(--amber);
}

.page-header .section-label::before {
  background: var(--amber);
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.two-col-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.two-col-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: none;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
}

/* --- Utility --- */
.bg-dark { background: var(--navy); }
.text-white { color: #fff; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.gap-2 { gap: 1rem; }

/* --- Geometric Accent Shapes on Sections --- */
.section {
  position: relative;
}

/* Subtle dot grid on alternating bg-alt sections */
[style*="background: var(--bg-alt)"]::before,
.section:nth-child(even):not(.cta-section):not(.hero)::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: radial-gradient(circle, rgba(74, 159, 217, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Diagonal accent line pseudo-element on some sections */
.page-header::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to right bottom, transparent 49.5%, var(--bg) 50%);
  z-index: 2;
}

/* --- Dark Mode Enhancements --- */
.dark .kpi-card {
  border: 1px solid rgba(74, 159, 217, 0.1);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(74, 159, 217, 0.04) 100%);
}

.dark .service-card {
  border: 1px solid rgba(74, 159, 217, 0.1);
}

.dark .value-card {
  border-color: rgba(74, 159, 217, 0.1) !important;
}

.dark .job-card {
  border-color: rgba(74, 159, 217, 0.1);
}

.dark .benefit-item {
  border-color: rgba(74, 159, 217, 0.1);
}

.dark .contact-info-card {
  border-color: rgba(74, 159, 217, 0.1);
}

/* Subtle blue tint in dark mode backgrounds */
.dark {
  --bg: #0d1524;
  --bg-alt: #14202f;
  --surface: #1a2738;
}

/* --- Karriere Form Container --- */
.apply-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

/* --- Contact Page Alignment --- */
.contact-info-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Theme Toggle Tooltip --- */
.theme-toggle {
  position: relative;
}

.theme-toggle::after {
  content: 'Design wechseln';
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  white-space: nowrap;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration) var(--ease);
}

.theme-toggle:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* --- Service Icon Enhancement --- */
.service-icon {
  transition: all var(--duration-slow) var(--ease);
}

.service-card:hover .service-icon {
  background: rgba(74, 159, 217, 0.18);
  transform: scale(1.08);
}

/* --- KPI Value Glow on Hover --- */
.kpi-card:hover .kpi-value {
  text-shadow: 0 0 20px rgba(74, 159, 217, 0.2);
}

/* --- Button Focus Enhancement --- */
.btn:active {
  transform: translateY(0) scale(0.98);
}

/* --- Job Card Enhancement --- */
.job-card {
  position: relative;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  bottom: 0;
  width: 4px;
  background: var(--blue);
  border-radius: 4px 0 0 4px;
  transition: background var(--duration) var(--ease);
}

.job-card:hover::before {
  background: var(--amber);
}

/* --- Value Card Enhancement --- */
.value-card {
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease);
}

.value-card:hover::before {
  opacity: 1;
}

/* --- Benefit Items Enhancement --- */
.benefit-item {
  transition: all var(--duration-slow) var(--ease);
}

.benefit-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 159, 217, 0.2);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
  .hero .hero-badge,
  .hero h1,
  .hero p,
  .hero .btn-group {
    opacity: 1;
    animation: none;
  }
}
