/* =====================================================================
   EC Transport-Logistik GmbH & Co. KG — Unternehmenswebseite
   Self-contained, keine externen Requests (DSGVO-konform).
   Brand: dunkel + EU-Stern-Gold; FleetERP-Sektion in Türkis.
   ===================================================================== */

:root {
  --bg:        #0c0e11;
  --bg-2:      #14181d;
  --bg-3:      #1b2128;
  --line:      rgba(255, 255, 255, .08);
  --line-2:    rgba(255, 255, 255, .14);
  --ink:       #eef1f4;
  --muted:     #aab2bd;
  --subtle:    #79828d;
  --gold:      #f6c61d;
  --gold-2:    #ffd84d;
  --gold-soft: rgba(246, 198, 29, .14);
  --teal:      #1db4a6;
  --teal-2:    #2ad3c3;
  --teal-soft: rgba(29, 180, 166, .14);
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 18px 50px -22px rgba(0, 0, 0, .75);
  --maxw:      1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-2);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 650; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #1a1407; }
.btn-primary:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-teal { background: var(--teal); color: #04201d; }
.btn-teal:hover { background: var(--teal-2); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 14, 17, .82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--muted); font-weight: 550; font-size: .96rem; transition: color .2s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: inline-flex; }
.nav__toggle, .nav__toggle-label { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 12vw, 132px) 0 clamp(56px, 9vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 78% 8%, rgba(246, 198, 29, .16), transparent 60%),
    radial-gradient(50% 60% at 8% 90%, rgba(29, 180, 166, .10), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 30%, #000 40%, transparent 100%);
          mask-image: radial-gradient(75% 75% at 50% 30%, #000 40%, transparent 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 800; margin: 18px 0 0; max-width: 16ch; }
.hero h1 .accent { color: var(--gold-2); }
.hero__lead { color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.22rem); margin-top: 20px; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero__stat .num { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.hero__stat .lbl { font-size: .86rem; color: var(--subtle); }

/* ---------- Route-Band (SVG-Illustration LKW + Strecke) ---------- */
.route-band { position: relative; height: 168px; background: var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.route-band::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(52% 130% at 82% 65%, var(--gold-soft), transparent 70%); }
.route-band__dash { position: absolute; left: 0; right: 0; bottom: 44px; height: 3px;
  background-image: repeating-linear-gradient(90deg, rgba(246,198,29,.45) 0 26px, transparent 26px 48px); }
.route-band__truck { position: absolute; bottom: 44px; right: clamp(20px, 7vw, 150px);
  width: clamp(150px, 26vw, 240px); height: auto; color: var(--gold); }
.route-band__truck .t-body { stroke: currentColor; }
.route-band__truck .t-hub { fill: currentColor; opacity: .8; }
.route-band__truck .t-glass { stroke: var(--teal-2); }
.route-band__pin { position: absolute; bottom: 44px; left: clamp(20px, 7vw, 150px);
  height: 62px; width: auto; color: var(--teal-2); }
.route-band__pin path { stroke: currentColor; }
.route-band__pin circle { fill: currentColor; }
@media (max-width: 560px) { .route-band { height: 132px; } .route-band__pin { display: none; }
  .route-band__truck { width: 42vw; } }

/* ---------- Hero zweispaltig + Logistik-Netzwerk-Illustration ---------- */
.hero--split .hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero--split .hero__viz { position: relative; }
.hero--split .net { display: block; width: 100%; max-width: 520px; height: auto; margin-inline: auto; }
.net .edge { stroke: rgba(246, 198, 29, .38); stroke-width: 2; stroke-dasharray: 6 7; }
.net .node { stroke: var(--gold); stroke-width: 3; fill: var(--bg); }
.net .dot { fill: var(--gold); }
.net .hub { stroke: var(--gold-2); stroke-width: 3.5; fill: var(--bg-2); }
.net .ring { fill: none; stroke: rgba(246, 198, 29, .30); stroke-width: 2; stroke-dasharray: 4 8; }
.net .pin { fill: none; stroke: var(--teal-2); stroke-width: 3; }
.net .pin-dot { fill: var(--teal-2); }
@media (max-width: 920px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero--split .hero__viz { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(58px, 9vw, 104px) 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin-top: 12px; }
.section__head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Leistungen ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--bg-3); }
.card__icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-2); margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; font-weight: 700; }
.card p { color: var(--muted); margin-top: 9px; font-size: .97rem; }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about__text p + p { margin-top: 16px; color: var(--muted); }
.about__text p:first-of-type { font-size: 1.12rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat-tile .num { font-size: 2.1rem; font-weight: 800; color: var(--gold-2); }
.stat-tile .lbl { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- FleetERP ---------- */
.fleeterp { position: relative; overflow: hidden; }
.fleeterp::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(55% 70% at 85% 15%, var(--teal-soft), transparent 60%);
}
.fleeterp .container { position: relative; }
.fleeterp__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.fleeterp .eyebrow { color: var(--teal-2); }
.fleeterp .eyebrow::before { background: var(--teal); }
.fleeterp h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; margin-top: 12px; }
.fleeterp__lead { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.feature-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.feature-list svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--teal-2); margin-top: 2px; }
.fleeterp__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.fleeterp__panel {
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: 20px; padding: 28px; box-shadow: var(--shadow);
}
.fleeterp__panel .badge { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-2); }
.mockbar { height: 10px; border-radius: 6px; background: var(--line-2); margin-top: 14px; }
.mockbar.short { width: 55%; }
.mockbar.mid { width: 78%; }
.mock-row { display: flex; gap: 10px; margin-top: 16px; }
.mock-chip { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.mock-chip .k { font-size: .72rem; color: var(--subtle); }
.mock-chip .v { font-size: 1.25rem; font-weight: 800; color: var(--teal-2); margin-top: 4px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact__cards { display: grid; gap: 16px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-row svg { width: 24px; height: 24px; color: var(--gold-2); flex: 0 0 auto; margin-top: 2px; }
.contact-row .k { font-size: .82rem; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; }
.contact-row .v { font-size: 1.06rem; font-weight: 600; margin-top: 3px; }
.contact-row a.v:hover { color: var(--gold-2); }
.contact__cta { background: linear-gradient(165deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 30px; align-self: start; }
.contact__cta h3 { font-size: 1.3rem; font-weight: 750; }
.contact__cta p { color: var(--muted); margin-top: 10px; }
.contact__cta .btn { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-grid img { height: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--subtle); font-size: .86rem; margin-top: 18px; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px, 8vw, 90px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin: 38px 0 10px; color: var(--gold-2); }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 20px; }
.legal a { color: var(--gold-2); }
.legal .back { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; color: var(--muted); font-weight: 600; }
.legal .back:hover { color: var(--ink); }
.placeholder { color: var(--gold-2); background: var(--gold-soft); padding: 1px 7px; border-radius: 6px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about, .fleeterp__wrap, .contact { grid-template-columns: 1fr; }
  .nav__toggle-label {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; color: var(--ink);
  }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav__links li { border-top: 1px solid var(--line); }
  .nav__links a { display: block; padding: 16px 22px; }
  .nav__cta { display: none; }
  .nav__toggle:checked ~ .nav__links { max-height: 360px; }
}
@media (max-width: 520px) {
  .hero__actions .btn, .fleeterp__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
