:root {
  /* Zentrale Farb- und Abstandswerte für das gesamte Layout */
  --color-white: #ffffff;
  --color-red: #c71f25;
  --color-red-dark: #9e171c;
  --color-anthracite: #232529;
  --color-muted: #5b616a;
  --color-soft: #f6f7f9;
  --color-border: #e6e8ec;
  --shadow-soft: 0 18px 50px rgba(35, 37, 41, 0.08);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  /* Leichter Farbverlauf im Hintergrund für mehr Tiefe ohne Unruhe */
  font-family: "Barlow", sans-serif;
  color: var(--color-anthracite);
  background:
    linear-gradient(180deg, rgba(199, 31, 37, 0.04), transparent 24rem),
    var(--color-white);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

.section-space {
  padding: 6rem 0;
}

.section-soft {
  background-color: var(--color-soft);
}

.section-heading {
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.section-heading p,
.hero-text,
.about-panel p,
.feature-box p,
.card-text,
.contact-panel p {
  color: var(--color-muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-red);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.site-nav {
  /* Halbtransparente Navigation für modernen Sticky-Effekt */
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0;
  margin-right: 0;
}

.brand-mark {
  display: block;
  width: auto;
  height: 4.5rem;
  object-fit: contain;
}

.nav-link {
  font-weight: 600;
  color: var(--color-anthracite);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-red);
}

.btn-brand {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(199, 31, 37, 0.2);
}

.btn-brand:hover,
.btn-brand:focus {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: var(--color-white);
}

.btn-outline-brand {
  border: 2px solid var(--color-red);
  color: var(--color-red);
  font-weight: 700;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.hero-section {
  overflow: hidden;
  position: relative;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 5% -10% auto auto;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 31, 37, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-title {
  max-width: 12ch;
}

.hero-text {
  max-width: 42rem;
  font-size: 1.1rem;
}

.hero-panel {
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto 1rem -1.25rem auto;
  width: 100%;
  height: 100%;
  background-color: rgba(199, 31, 37, 0.08);
  border-radius: var(--radius-lg);
}

.hero-card {
  /* Akzentuierte Infokarte als optisches Gegengewicht zum Hero-Text */
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(199, 31, 37, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 249, 0.98));
  box-shadow: var(--shadow-soft);
}

.hero-card-label {
  color: var(--color-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.hero-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.hero-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--color-muted);
}

.hero-list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: var(--color-red);
}

.service-card,
.feature-box,
.contact-panel,
.form-panel,
.stat-card,
.about-panel {
  /* Einheitliche Kartenlogik für konsistente Flächen im ganzen One-Pager */
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.service-card {
  overflow: hidden;
}

.service-card .card-body,
.feature-box,
.contact-panel,
.form-panel,
.about-panel {
  padding: 2rem;
}

.icon-badge,
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background-color: rgba(199, 31, 37, 0.1);
  color: var(--color-red);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.service-image {
  display: block;
  width: 100%;
  height: 11rem;
  margin-bottom: 0;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.service-card .card-title,
.feature-box h3,
.contact-panel h3 {
  margin-bottom: 0.8rem;
}

.feature-box {
  height: 100%;
  border: 1px solid var(--color-border);
}

.about-panel {
  border-left: 6px solid var(--color-red);
}

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

.stat-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.stat-card span {
  color: var(--color-muted);
}

.contact-list li + li {
  margin-top: 1.4rem;
}

.contact-list span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-muted);
  font-weight: 600;
}

.contact-list a {
  color: var(--color-anthracite);
  font-weight: 700;
}

.form-control {
  border: 1px solid var(--color-border);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
}

.form-control:focus {
  border-color: rgba(199, 31, 37, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(199, 31, 37, 0.12);
}

.site-footer {
  padding: 1.5rem 0;
  background-color: var(--color-anthracite);
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--color-white);
}

@media (max-width: 991.98px) {
  /* Verdichtet Abstände und Navigation für Tablets und kleinere Laptops */
  .section-space {
    padding: 5rem 0;
  }

  .brand-mark {
    height: 4rem;
  }

  .hero-title {
    max-width: none;
  }

  .navbar-collapse {
    padding-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  /* Weitere Vereinfachung des Layouts für Smartphones */
  .section-space {
    padding: 4rem 0;
  }

  .brand-mark {
    height: 3.5rem;
  }

  .hero-card,
  .service-card .card-body,
  .feature-box,
  .contact-panel,
  .form-panel,
  .about-panel {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .display-4 {
    font-size: 2.5rem;
  }
}

/* Hero-Hintergrundbild mit dunklem Overlay für gute Lesbarkeit */
.hero-section {
  background:
    linear-gradient(90deg, rgba(24, 27, 32, 0.9) 0%, rgba(24, 27, 32, 0.76) 45%, rgba(24, 27, 32, 0.52) 100%),
    url("../images/LkwAufAutobahn.jpeg") center center / cover no-repeat;
}

.hero-section::after {
  inset: auto -6rem -8rem auto;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(199, 31, 37, 0.28), transparent 70%);
}

.hero-section .eyebrow,
.hero-section .hero-title,
.hero-section .hero-text {
  color: #ffffff;
}

.hero-section .hero-text {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-section .btn-outline-brand {
  border-color: rgba(255, 255, 255, 0.78);
  color: #ffffff;
}

.hero-section .btn-outline-brand:hover,
.hero-section .btn-outline-brand:focus {
  border-color: #ffffff;
  background-color: #ffffff;
  color: var(--color-anthracite);
}

.hero-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

@media (max-width: 991.98px) {
  .hero-section {
    background:
      linear-gradient(180deg, rgba(24, 27, 32, 0.9) 0%, rgba(24, 27, 32, 0.78) 100%),
      url("../images/hero-logistics.svg") center center / cover no-repeat;
  }
}
