/* ============================================================
   Emily Transport & Logistik — dark metallic theme
   Display: Space Grotesk · Body: Hanken Grotesk
   ============================================================ */

:root {
  --bg:        #0c0e11;
  --bg-2:      #111418;
  --surface:   #15181d;
  --surface-2: #1b1f25;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --text:      #eef1f4;
  --muted:     #9aa3ad;
  --muted-2:   #6f7882;
  --silver:    #d7dde3;
  --metal-1:   #f4f6f8;
  --metal-2:   #c2c9d1;
  --metal-3:   #8b939c;
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --shadow:    0 24px 60px -24px rgba(0,0,0,.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.08; font-weight: 600; letter-spacing: -.01em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--metal-1); color: #0c0e11; padding: 10px 18px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

::selection { background: rgba(215,221,227,.25); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  --pad-y: 15px; --pad-x: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--radius-sm); cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

.btn-metal {
  background: linear-gradient(135deg, var(--metal-1), var(--metal-2) 55%, var(--metal-3));
  color: #14171b; border-color: rgba(255,255,255,.5);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.7);
}
.btn-metal:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.85); }

.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line-2); --pad-y: 12px; --pad-x: 22px; }
.btn-outline:hover { background: var(--metal-1); color: #14171b; border-color: var(--metal-1); }

.btn-block { width: 100%; justify-content: center; --pad-y: 17px; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(12,14,17,.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.35rem; letter-spacing: .28em; color: #fff; }
.brand-sub { font-size: .58rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.main-nav { display: flex; gap: 6px; margin-left: auto; }
.nav-link {
  position: relative; padding: 8px 16px; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border-radius: 8px; transition: color .3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px;
  background: var(--metal-1); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-cta { margin-left: 8px; }

.nav-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; margin-left: auto; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero (framed card, à la reference) ──────────────────── */
.hero { min-height: 100svh; display: flex; padding: 78px clamp(12px, 2vw, 22px) clamp(14px, 2vw, 22px); }
.hero-card {
  position: relative; flex: 1; display: flex; overflow: hidden;
  border-radius: clamp(20px, 2.6vw, 36px); border: 1px solid var(--line);
  box-shadow: var(--shadow); min-height: calc(100svh - 100px);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%;
  transform: scale(1.06); animation: heroZoom 20s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-card-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12,14,17,.92) 0%, rgba(12,14,17,.36) 30%, rgba(12,14,17,.2) 50%, rgba(12,14,17,.58) 100%),
    radial-gradient(125% 78% at 50% 44%, rgba(12,14,17,.16) 0%, rgba(12,14,17,.3) 58%, rgba(12,14,17,.5) 100%);
}

.hero-grid {
  position: relative; z-index: 2; flex: 1; display: grid; grid-template-rows: auto 1fr auto;
  gap: 18px; padding: clamp(24px, 3.4vw, 52px); width: 100%;
}

/* tagline — top right */
.hero-tagline { justify-self: end; align-self: start; text-align: right; max-width: 360px; }
.hero-tagline span:first-child { font-family: 'Space Grotesk', sans-serif; font-style: italic; color: #fff; font-size: clamp(1rem, 1.5vw, 1.3rem); letter-spacing: .01em; }
.hero-tagline-line { display: block; height: 2px; margin-top: 14px; margin-left: auto; width: 78%; background: linear-gradient(90deg, transparent, var(--metal-1)); }

/* giant wordmark + subtitle — centre */
.hero-brand { align-self: center; justify-self: center; text-align: center; }
.hero-wordmark {
  margin: 0; text-align: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: .86;
  font-size: clamp(3.4rem, 17vw, 14rem); letter-spacing: -.035em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.92) 42%, rgba(214,221,227,.62) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 14px 46px rgba(0,0,0,.5)); pointer-events: none; user-select: none;
}
.hero-wordmark-sub {
  margin: clamp(2px, 0.6vw, 10px) 0 0;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  font-size: clamp(.72rem, 1.5vw, 1.15rem);
  letter-spacing: clamp(.18em, 0.6vw, .42em); text-transform: uppercase;
  color: rgba(238,241,244,.82); text-shadow: 0 2px 14px rgba(0,0,0,.55);
}

/* bottom row */
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 40px; flex-wrap: wrap; }
.hero-headline { font-family: 'Space Grotesk', sans-serif; font-weight: 600; text-transform: uppercase; color: #fff; font-size: clamp(1.05rem, 1.9vw, 1.7rem); line-height: 1.16; letter-spacing: .01em; }
.hero-stats { display: flex; gap: clamp(20px, 3vw, 40px); margin-top: 22px; }
.stat { display: flex; align-items: baseline; gap: 10px; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: #fff; line-height: 1; }
.stat-label { font-size: .78rem; color: var(--muted); line-height: 1.25; }

.hero-bottom-right { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.hero-pill {
  --pad-x: 26px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-width: 248px; border-radius: 999px; padding: 7px 7px 7px var(--pad-x);
  text-transform: none; letter-spacing: 0; font-size: .96rem; font-family: 'Space Grotesk', sans-serif;
}
.hero-pill .pill-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; font-size: .9rem; flex-shrink: 0; transition: transform .35s var(--ease);
}
.hero-pill:hover .pill-ic { transform: translateX(3px); }
.hero-pill-primary .pill-ic { background: #14171b; color: #fff; }
.hero-pill-secondary { border-color: var(--line-2); }
.hero-pill-secondary .pill-ic { background: rgba(255,255,255,.12); color: #fff; border: 1px solid var(--line-2); font-size: .62rem; }
.hero-pill-secondary:hover .pill-ic { transform: none; }

/* hero entrance animations (on load) */
.hero-anim { opacity: 0; animation: heroIn 1s var(--ease) forwards; }
.hero-wordmark.hero-anim { animation-delay: .12s; }
.hero-tagline.hero-anim { animation-delay: .34s; }
.hero-bottom-left.hero-anim { animation-delay: .48s; }
.hero-bottom-right.hero-anim { animation-delay: .6s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ── Reveal animations ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { animation: none; transform: none; }
  .hero-anim { opacity: 1; animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Feature strip ───────────────────────────────────────── */
.features { background: var(--bg-2); border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { display: flex; align-items: center; gap: 16px; padding: 34px 28px; position: relative; }
.feature:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.feat-ic { width: 38px; height: 38px; fill: var(--silver); flex-shrink: 0; }
.feature h3 { font-size: 1rem; color: #fff; margin-bottom: 3px; }
.feature p { font-size: .85rem; color: var(--muted); }

/* ── Section primitives ──────────────────────────────────── */
section { position: relative; }
.section-eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); color: #fff; }
.section-title.center { text-align: center; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-intro { color: var(--muted); margin-top: 18px; font-size: 1.05rem; }

/* ── Über uns ────────────────────────────────────────────── */
.about { padding: clamp(70px, 10vw, 120px) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-copy p { color: var(--muted); margin-top: 18px; }
.about-copy .btn { margin-top: 34px; }
.about-media { position: relative; }
.about-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.about-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 18px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.about-badge-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1; }
.about-badge-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ── Leistungen ──────────────────────────────────────────── */
.services { padding: clamp(70px, 10vw, 120px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(215,221,227,.1), transparent 70%);
  transition: opacity .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.svc-ic { width: 40px; height: 40px; fill: var(--silver); margin-bottom: 18px; }
.service-card h3 { font-size: 1.12rem; color: #fff; margin-bottom: 10px; }
.service-card p { font-size: .92rem; color: var(--muted); }

/* ── Fuhrpark ────────────────────────────────────────────── */
.fleet { padding: clamp(70px, 10vw, 120px) 0; }
.fleet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.fleet-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.fleet-copy p { color: var(--muted); margin-top: 18px; }
.fleet-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.fleet-list li { position: relative; padding-left: 32px; color: var(--text); font-size: .98rem; }
.fleet-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--metal-1), var(--metal-3)); border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.fleet-list li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 3px; border-left: 2px solid #14171b; border-bottom: 2px solid #14171b; transform: rotate(-45deg); }

/* ── Kontakt ─────────────────────────────────────────────── */
.contact { padding: clamp(70px, 10vw, 120px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact-lead { color: var(--muted); margin-top: 18px; }
.contact-list { list-style: none; margin-top: 38px; display: grid; gap: 24px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; fill: var(--silver); flex-shrink: 0; margin-top: 4px; }
.ci-label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.contact-list a:hover { color: #fff; text-decoration: underline; }
.contact-list address { font-style: normal; color: var(--text); }

.contact-form-wrap { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; margin-bottom: 16px; }
.field input, .field textarea {
  width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 18px 16px 8px; color: var(--text); font-family: inherit; font-size: 16px; transition: border-color .3s var(--ease), background .3s var(--ease);
  resize: vertical;
}
.field textarea { min-height: 130px; padding-top: 22px; }
.field label {
  position: absolute; left: 16px; top: 15px; color: var(--muted); pointer-events: none;
  font-size: .98rem; transition: transform .25s var(--ease), color .25s var(--ease), font-size .25s var(--ease);
  transform-origin: left;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--metal-2); background: rgba(255,255,255,.06); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-9px) scale(.78); color: var(--metal-2);
}
.field input.invalid, .field textarea.invalid { border-color: #e5736f; }

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

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--metal-2); flex-shrink: 0; cursor: pointer; }
.consent a { color: var(--text); text-decoration: underline; }
.consent a:hover { color: #fff; }

.form-status { margin-top: 16px; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: #7fd6a2; }
.form-status.err { color: #e5736f; }
.form-note { margin-top: 10px; font-size: .78rem; color: var(--muted-2); }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading .arr { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #090b0d; border-top: 1px solid var(--line); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-tagline { color: var(--muted); font-size: .92rem; max-width: 320px; }
.footer-col h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col a, .footer-col p, .footer-col address { display: block; color: var(--muted); font-size: .92rem; font-style: normal; margin-bottom: 10px; transition: color .25s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.footer-bottom p { color: var(--muted-2); font-size: .82rem; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: var(--muted); font-size: .82rem; }
.footer-legal a:hover { color: #fff; }

/* ── Legal pages (impressum / datenschutz) ───────────────── */
.legal { padding: 150px 0 90px; }
.legal-inner { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); color: #fff; margin-bottom: 14px; }
.legal .lead { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; color: #fff; margin: 40px 0 14px; }
.legal h3 { font-size: 1.08rem; color: var(--silver); margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal a { color: var(--text); text-decoration: underline; }
.legal a:hover { color: #fff; }
.legal address { font-style: normal; color: var(--text); margin-bottom: 16px; }
.back-home { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.back-home:hover { color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; gap: 4px; padding: 100px 28px 40px; margin: 0;
    background: rgba(12,14,17,.97); backdrop-filter: blur(16px);
    border-left: 1px solid var(--line); transform: translateX(100%);
    transition: transform .4s var(--ease); align-items: stretch;
  }
  .main-nav.open { transform: none; }
  .nav-link { padding: 14px 12px; font-size: .95rem; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .about-grid, .fleet-grid, .contact-grid { grid-template-columns: 1fr; }
  .fleet-media { order: 2; }
  .about-media { order: -1; }
  body.nav-open { overflow: hidden; }

  .hero-bottom { align-items: flex-start; }
  .hero-bottom-right { width: 100%; align-items: stretch; }
  .hero-pill { min-width: 0; width: 100%; }
  .hero-tagline { max-width: 260px; }
}

@media (max-width: 560px) {
  .feature-grid, .service-grid, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .feature::after { display: none; }
  .feature { padding: 22px 4px; }
  .hero { padding-top: 88px; }
  .hero-grid { gap: 12px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .about-badge { left: 12px; bottom: -16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
