/* ==========================================================================
   Klinger Transport & Logistik – Stylesheet
   ========================================================================== */

:root {
  --color-navy: #0c2b4d;
  --color-navy-dark: #081b33;
  --color-navy-light: #143a63;
  --color-accent: #f2942c;
  --color-accent-dark: #d97b12;
  --color-teal: #1595c2;
  --color-bg: #f6f8fa;
  --color-white: #ffffff;
  --color-text: #1c2733;
  --color-text-muted: #566575;
  --color-border: #e2e8ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 43, 77, 0.08);
  --shadow-strong: 0 18px 45px rgba(12, 43, 77, 0.18);
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

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

section { padding: 90px 0; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 16px; font-weight: 700; }

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--color-text-muted); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-accent-dark);
  background: rgba(242, 148, 44, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p { font-size: 1.08rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary,
.btn-navy {
  background: var(--color-accent);
  color: var(--color-navy-dark);
  box-shadow: 0 12px 24px rgba(242, 148, 44, 0.35);
}
.btn-primary:hover,
.btn-navy:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(242, 148, 44, 0.18), 0 14px 30px rgba(242, 148, 44, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-white);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(242, 148, 44, 0.35);
}

.btn-block { width: 100%; }

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy-dark);
  border-bottom: 1px solid var(--color-navy);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

/* Logo only appears in the header on desktop; mobile header has no logo. */
.logo {
  display: none;
}
.logo img {
  width: auto;
  display: block;
}

@media (min-width: 981px) {
  .logo {
    display: flex;
    align-items: flex-end;
    margin-top: -14px;
    margin-bottom: -14px;
  }
  .logo img {
    height: 88px;
    width: auto;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-white);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--color-accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-white);
  font-size: 0.95rem;
}
.header-phone svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--color-white);
  border-radius: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero {
  position: relative;
  background: url("../img/hero-bg.jpg");
  background-image: image-set(url("../img/hero-bg.webp") type("image/webp"), url("../img/hero-bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 0% 55%;
  color: var(--color-white);
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(8, 27, 51, 0.35), transparent 30%, transparent 75%, rgba(8, 27, 51, 0.3)),
    radial-gradient(circle at 85% 15%, rgba(242, 148, 44, 0.18), transparent 40%);
  pointer-events: none;
}

.hero-textbox h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.hero-textbox {
  background: rgba(8, 27, 51, 0.6);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 30px 32px;
  max-width: 540px;
  box-shadow: 0 26px 60px rgba(3, 12, 26, 0.4);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-textbox { background: rgba(8, 27, 51, 0.82); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 { color: var(--color-white); margin-bottom: 20px; }
.hero-lead { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; max-width: 560px; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

.why-klinger {
  background: linear-gradient(120deg, #f7fafc 0%, #eef3f9 55%, #f7fafc 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.why-klinger::before {
  content: "";
  position: absolute;
  top: -100px;
  right: 8%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 148, 44, 0.1), transparent 70%);
  pointer-events: none;
}
.why-klinger-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}
.why-klinger-intro {
  flex: 1 1 260px;
  max-width: 300px;
  padding-left: 18px;
  border-left: 3px solid var(--color-accent);
}
.why-klinger-intro h2 { margin-bottom: 6px; color: var(--color-navy); font-size: 1.2rem; }
.why-klinger-intro p { margin: 0; font-size: 0.9rem; }

.hero-visual-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 2 1 520px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hero-visual-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hero-visual-list li:hover,
.hero-visual-list li:active {
  transform: translateY(-3px);
  border-color: rgba(242, 148, 44, 0.35);
  box-shadow: 0 14px 30px rgba(242, 148, 44, 0.16), var(--shadow-strong);
}
.hero-visual-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 9px;
  box-sizing: content-box;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(12, 43, 77, 0.1), rgba(21, 149, 194, 0.1));
  color: var(--color-accent-dark);
  transition: background 0.25s ease, color 0.25s ease;
}
.hero-visual-list li:hover svg,
.hero-visual-list li:active svg { background: var(--color-accent); color: var(--color-navy-dark); }

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.leistungen-cta {
  margin-top: 40px;
  text-align: center;
}

#leistungen { padding-bottom: 71px; }
#fuhrpark { padding-top: 71px; }

.card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 26px 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card.in-view { opacity: 1; transform: translateY(0); }
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover,
.card:active {
  transform: translateY(-6px);
  border-color: rgba(242, 148, 44, 0.35);
  box-shadow: 0 22px 44px rgba(242, 148, 44, 0.16), var(--shadow-strong);
}
.card:hover::before,
.card:active::before { transform: scaleX(1); }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(12, 43, 77, 0.1), rgba(21, 149, 194, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  margin-bottom: 18px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.card:hover .card-icon,
.card:active .card-icon {
  background: var(--color-accent);
  color: var(--color-navy-dark);
  transform: scale(1.08) rotate(-4deg);
}

.card h3 { color: var(--color-navy); }
.card p:last-child { margin-bottom: 0; }

/* Über uns / split section ---------------------------------------------- */

#ueber-uns { padding-top: 60px; }

.ueber-uns-intro {
  max-width: 1040px;
  margin: 0 auto 48px;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 36px 48px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.ueber-uns-intro h2 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); }
.ueber-uns-intro p { font-size: 0.92rem; max-width: 68ch; margin-left: auto; margin-right: auto; }
.ueber-uns-intro:hover,
.ueber-uns-intro:active {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(242, 148, 44, 0.35);
  box-shadow: 0 22px 44px rgba(242, 148, 44, 0.16), var(--shadow-strong);
}

.ueber-uns-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}

.split-visual {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--color-navy), var(--color-teal));
  border-radius: 22px;
  padding: 20px 20px 34px;
  color: var(--color-white);
  box-shadow: var(--shadow-strong);
}
.split-visual img {
  width: 100%;
  flex: 1;
  min-height: 220px;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 22px;
}
.split-visual .badge-number { font-size: 3.2rem; font-weight: 800; color: var(--color-accent); }
.split-visual p { color: rgba(255,255,255,0.85); }

.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
}
.value-list li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.value-list li:hover,
.value-list li:active {
  transform: translateY(-6px);
  border-color: rgba(242, 148, 44, 0.35);
  box-shadow: 0 22px 44px rgba(242, 148, 44, 0.16), var(--shadow-strong);
}
.value-list .value-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(242, 148, 44, 0.15);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.value-list li:hover .value-icon,
.value-list li:active .value-icon {
  background: var(--color-accent);
  color: var(--color-navy-dark);
  transform: scale(1.08) rotate(-4deg);
}
.value-list strong { display: block; color: var(--color-navy); margin-bottom: 4px; }
.value-list span { display: block; font-size: 0.92rem; color: var(--color-text-muted); }

.bg-alt {
  position: relative;
  background: linear-gradient(180deg, #eef3f9 0%, #f6f8fb 55%, #ffffff 100%);
  overflow: hidden;
}
.bg-alt::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 149, 194, 0.12), transparent 70%);
  pointer-events: none;
}
.bg-alt > .container { position: relative; z-index: 1; }

.leistungen-intro {
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  color: var(--color-white);
  border-radius: 28px;
  max-width: none;
  padding: 56px 40px;
  margin: 0 0 48px;
}
.leistungen-intro h2 { color: var(--color-white); }
.leistungen-intro p { color: rgba(255, 255, 255, 0.8); max-width: 68ch; margin-left: auto; margin-right: auto; }
.leistungen-intro .eyebrow { background: rgba(242, 148, 44, 0.2); }

/* Fuhrpark ---------------------------------------------------------------- */

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fleet-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.fleet-item svg { color: var(--color-navy); margin: 0 auto 12px; }
.fleet-item strong { display: block; color: var(--color-navy); margin-bottom: 4px; }
.fleet-item span { font-size: 0.85rem; color: var(--color-text-muted); }

.fleet-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.fleet-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.fleet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.fleet-photo:hover img,
.fleet-photo:active img { transform: scale(1.05); }
.fleet-photo span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(8,27,51,0.88), transparent);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 24px 14px 12px;
}

.fleet-note {
  margin-top: 40px;
  background: rgba(21, 149, 194, 0.08);
  border: 1px solid rgba(21, 149, 194, 0.25);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.fleet-note svg { color: var(--color-teal); flex-shrink: 0; }
.fleet-note p { margin: 0; color: var(--color-text); }

/* Karriere ------------------------------------------------------------- */

#karriere { padding-bottom: 71px; }
#kontakt { padding-top: 71px; }

.career {
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  color: var(--color-white);
  border-radius: 28px;
}
.career .section-head p { color: rgba(255, 255, 255, 0.8); }
.career .eyebrow { background: rgba(242, 148, 44, 0.2); }

.career-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
}
.career-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.career-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; max-height: 300px; }
.career-split .section-head { text-align: left; margin: 0; max-width: none; }
.career-split .section-head h2 { font-size: 1.5rem; }
.career-split .section-head p { font-size: 0.92rem; }

.career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.career-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
}
.career-item svg { color: var(--color-accent); flex-shrink: 0; width: 20px; height: 20px; }
.career-item strong { display: block; margin-bottom: 2px; font-size: 0.92rem; }
.career-item p { color: rgba(255, 255, 255, 0.8); margin: 0; font-size: 0.85rem; }

.career-cta { text-align: center; margin-top: 20px; }

/* Kontakt -------------------------------------------------------------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}

.contact-card {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-card h3 { color: var(--color-white); }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex-shrink: 0; color: var(--color-accent); margin-top: 2px; }
.contact-list a, .contact-list address { font-weight: 600; font-style: normal; }
.contact-list a { display: inline-block; padding: 6px 0; margin: -6px 0; }
.contact-list small { display: block; color: rgba(255, 255, 255, 0.65); font-weight: 500; }

.map-frame {
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.map-placeholder {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px 20px;
  text-align: center;
}
.map-placeholder p { color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; margin-bottom: 14px; }
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--color-navy); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--color-teal);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(21, 149, 194, 0.35);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 10px; }
.form-success {
  display: none;
  background: rgba(21, 149, 194, 0.1);
  border: 1px solid rgba(21, 149, 194, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 600;
  color: var(--color-navy);
}
.form-success.visible { display: block; }
.form-error {
  display: none;
  background: rgba(214, 69, 69, 0.1);
  border: 1px solid rgba(214, 69, 69, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 600;
  color: #a52a2a;
}
.form-error.visible { display: block; }

/* FAQ ---------------------------------------------------------------------- */

#faq { padding-top: 15px; }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy);
  cursor: pointer;
}
.faq-icon { flex-shrink: 0; transition: transform 0.25s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
/* The clipping element (this one) must carry no padding of its own —
   padding always renders at its full size regardless of overflow:hidden,
   which would stop the row from collapsing all the way to 0. */
.faq-answer-inner { overflow: hidden; min-height: 0; }
.faq-answer-inner p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--color-text-muted);
}

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

.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand strong { color: var(--color-white); font-size: 1.15rem; display: block; margin-bottom: 10px; }
.footer-col h4 { color: var(--color-white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding: 7px 0; }
.footer-col a:hover { color: var(--color-white); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--color-white); }

/* Legal pages -------------------------------------------------------------- */

.legal-page { padding: 60px 0 100px; }
.legal-page h1 { color: var(--color-navy); }
.legal-page h2 { font-size: 1.25rem; color: var(--color-navy); margin-top: 34px; }
.legal-page p, .legal-page li { color: var(--color-text); }
.legal-page address { font-style: normal; }
.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 20px; }
.breadcrumb a { font-weight: 600; color: var(--color-navy); }

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

/* Nav collapses to the hamburger menu earlier than the layout breakpoints
   below: the full nav + phone number + CTA button stop fitting on one line
   around ~930-960px, well before the 760px content breakpoint. */
@media (max-width: 1040px) {
  .main-nav, .header-phone-wrap { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn-navy { display: none; }
  body.nav-open .main-nav {
    display: flex;
    position: fixed;
    top: var(--header-height, 68px);
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 6px;
    overflow-y: auto;
    z-index: 99;
  }
  body.nav-open .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
  }
  body.nav-open .main-nav a:hover { color: var(--color-navy); }
  /* backdrop-filter on .site-header creates a containing block for fixed-position
     descendants, which would confine the open nav panel to the header's own box
     instead of the viewport. Drop it while the panel is open. */
  body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (min-width: 981px) and (max-width: 1300px) {
  .hero { background-position: 0% 55%; }
}

@media (max-width: 980px) {
  /* Mobile hero: image becomes a standalone banner above the textbox
     instead of a background the box overlays, so the truck photo is
     always fully visible regardless of how much text the box holds. */
  .hero { background: none; padding: 0 0 40px; }
  .hero::after { display: none; }
  .hero::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-image: url("../img/hero-bg-mobile.jpg");
    background-image: image-set(url("../img/hero-bg-mobile.webp") type("image/webp"), url("../img/hero-bg-mobile.jpg") type("image/jpeg"));
    background-size: cover;
    background-position: 50% 50%;
    margin-bottom: 24px;
  }
  .hero-textbox {
    background: var(--color-navy);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
  }
  .hero-inner { max-width: none; }
  .hero-visual-list { grid-template-columns: repeat(2, 1fr); }
  .ueber-uns-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .career-grid { grid-template-columns: 1fr; }
  .career-split { grid-template-columns: 1fr; }
  .career .container { padding: 32px 32px; }
}

@media (max-width: 760px) {
  section { padding: 60px 0; }
  .hero-textbox { padding: 26px 24px; border-radius: 18px; }
  .why-klinger-card { flex-direction: column; align-items: flex-start; gap: 18px; }
  .why-klinger-intro { flex: 0 1 auto; max-width: none; }
  .hero-visual-list { flex: 0 1 auto; grid-template-columns: 1fr; width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .value-list { grid-template-columns: 1fr; }
  .value-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 14px;
    padding: 14px 16px;
  }
  .value-list .value-icon { grid-row: 1 / 3; margin-bottom: 0; }
  .value-list strong { grid-column: 2; grid-row: 1; margin-bottom: 2px; }
  .value-list span:not(.value-icon) { grid-column: 2; grid-row: 2; }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-gallery { grid-template-columns: repeat(2, 1fr); }
  .fleet-photo { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .career .container { padding: 28px 22px; }
  .career-photo img { max-height: 240px; }
  .split-visual img { min-height: 210px; max-height: 210px; object-position: 78% 38%; }
}

@media (max-width: 400px) {
  .hero-textbox h1 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* WhatsApp contact button ------------------------------------------------- */

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover,
.whatsapp-fab:active {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
@media (max-width: 600px) {
  .whatsapp-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* Capacity popup ------------------------------------------------------- */

.capacity-popup {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.capacity-popup[hidden] { display: none; }
.capacity-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 27, 51, 0.6);
}
.capacity-popup-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-strong);
  animation: capacity-popup-in 0.3s ease;
}
@keyframes capacity-popup-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.capacity-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 6px;
}
.capacity-popup-close:hover { color: var(--color-navy); }
.capacity-popup-card h3 {
  color: var(--color-navy);
  margin: 0 0 10px;
  font-size: 1.3rem;
  padding-right: 20px;
}
.capacity-popup-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0 0 20px;
}
.capacity-popup-card .field { margin-bottom: 14px; }
.capacity-popup-card .field:last-of-type { margin-bottom: 20px; }
