/* ==========================================================================
   Naber Logistik – Webvisitenkarte
   Reines CSS, keine externen Ressourcen (keine Webfonts, kein CDN).
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  --green: #007632;
  --green-dark: #005a26;
  --lime: #9bc31c;
  --slate: #5f7a78;
  --ink: #1d2a2a;
  --text: #3c4747;
  --muted: #6b7777;
  --bg: #ffffff;
  --bg-soft: #f2f5f4;
  --line: #dde3e2;

  --font: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--green);
  text-underline-offset: 3px;
}

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

a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Grüner Akzentstrich über Überschriften – Wiedererkennung zur bisherigen Website */
.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding-top: 0.75rem;
  border-top: 4px solid var(--lime);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.logo img {
  width: 150px;
}

.header-phone {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone span {
  color: var(--green);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(380px, 62vh, 600px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 20, 20, 0.72) 0%, rgba(10, 20, 20, 0.35) 55%, rgba(10, 20, 20, 0) 100%),
    url("../img/keyvisual-lkw.jpg") center right / cover no-repeat;
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}

.hero h1::before {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-bottom: 1.25rem;
  background: var(--lime);
}

.hero p {
  max-width: 34rem;
  font-size: 1.1875rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--green);
  color: #fff;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: var(--green-dark);
  color: #fff;
}

.button--light {
  background: #fff;
  color: var(--green);
}

.button--light:hover {
  background: var(--bg-soft);
  color: var(--green-dark);
}

/* ---------- Leistungen ---------- */
.section {
  padding-block: clamp(3rem, 8vw, 5rem);
}

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

.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  padding: 1.75rem;
  background: #fff;
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.service h3 {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.service p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.contact address {
  font-style: normal;
}

.contact-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  margin: 1.25rem 0 0;
}

.contact-list dt {
  font-weight: 700;
  color: var(--ink);
}

.contact-list dd {
  margin: 0;
}

.contact-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--slate);
  color: #fff;
}

.contact-card h2 {
  color: #fff;
  font-size: 1.5rem;
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal {
  max-width: 50rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
}

.legal h3 {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
}

.legal address {
  font-style: normal;
  margin-bottom: 1em;
}

.legal ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 1.5rem;
  background: #3a4242;
  color: #c9d1d0;
  font-size: 0.9375rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--lime);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .logo img {
    width: 120px;
  }

  .header-phone .label {
    display: none;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(10, 20, 20, 0.55) 0%, rgba(10, 20, 20, 0.75) 100%),
      url("../img/keyvisual-lkw.jpg") 70% center / cover no-repeat;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .contact-list dd {
    margin-bottom: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
