/* ============================================================
   Ice Truckers — icetruckers.eu
   Clean dark presentation (Apple-like): eine Familie (Archivo),
   Sentence-Case, ruhige Flächen, Amber nur für den CTA.
   ============================================================ */

:root {
  --bg:      #060b13;
  --bg-2:    #0a1420;
  --panel:   #0e1a2a;
  --ink:     #f2f7fb;
  --dim:     #96abbe;
  --line:    rgba(150, 195, 235, .12);
  --accent:  #ffb428;
  --accent-deep: #f0a112;
  --ice:     #6fd8ff;
  --shadow:  0 20px 50px -24px rgba(0, 0, 0, .6);
  --r: 18px;
  --font: "Archivo", -apple-system, "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

::selection { background: var(--accent); color: #131313; }

a { cursor: pointer; }

/* ---------- Typo ---------- */
h1, h2, h3 {
  font-family: var(--font);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 700;
}

h2 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 20px; }
h3 { font-size: 19px; letter-spacing: -0.01em; }

.kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--ice);
  margin-bottom: 12px;
}

.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-head.center h2 { margin-bottom: 0; }

p { color: var(--dim); }
p + p { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-big { font-size: 17px; padding: 16px 32px; }
.btn-accent {
  background: var(--accent);
  color: #181004;
  box-shadow: 0 8px 24px -12px rgba(255, 180, 40, .5);
}
.btn-accent:hover { background: #ffc14a; transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(150, 195, 235, .25);
  background: rgba(14, 26, 42, .45);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(150, 195, 235, .5); transform: translateY(-1px); }
.ico-steam { flex: 0 0 auto; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-nav.scrolled {
  background: rgba(6, 11, 19, .8);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand img { width: 88px; height: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,.5)); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links > a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  opacity: .8;
  transition: opacity .15s;
}
.nav-links > a:not(.btn):hover { opacity: 1; }
.btn-nav { padding: 9px 18px; font-size: 14px; }

.nav-side { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; gap: 8px; }
.flag {
  display: grid;
  place-items: center;
  width: 38px; height: 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  opacity: .5;
  transition: opacity .15s, border-color .15s;
}
.flag svg { border-radius: 3px; }
.flag:hover { opacity: .85; }
.flag.active { opacity: 1; border-color: rgba(150, 195, 235, .35); }

.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  animation: heroDrift 30s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.05) translateX(-1%); }
  to   { transform: scale(1.05) translateX(1%); }
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(6, 11, 19, .12) 0%, rgba(6, 11, 19, .6) 62%, rgba(6, 11, 19, .94) 100%),
    linear-gradient(180deg, rgba(6, 11, 19, .5) 0%, rgba(6, 11, 19, .16) 30%, rgba(6, 11, 19, .36) 68%, var(--bg) 100%);
}
.hero-snow { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 116px;
  padding-bottom: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: min(440px, 78vw);
  height: auto;
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, .7));
}
.hero-tagline {
  max-width: 620px;
  margin: 28px auto 34px;
  font-size: 19px;
  line-height: 1.6;
  color: #c9d9e6;
  text-wrap: balance;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-hint {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--dim);
  max-width: 440px;
  text-wrap: balance;
}
.hero-platforms {
  margin-top: 30px;
  font-size: 13px;
  font-weight: 500;
  color: #8fa5b8;
}
.hero-engine {
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: #64798c;
}
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: 2;
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.about { padding-top: 48px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
}

.tilt-frame {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tilt-frame img { width: 100%; }

/* Stats */
.stats {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--dim);
}

/* Features */
.features {
  background: var(--bg-2);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--panel);
  border-radius: var(--r);
  padding: 32px 28px;
  transition: transform .25s ease, background .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px) scale(1.01);
  background: #112034;
}
.feature-ico {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--ice);
  background: rgba(111, 216, 255, .09);
  margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 15px; line-height: 1.6; }

/* Showcase */
.show-row {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 72px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.show-row.flip .show-media { order: 2; }
.show-row.flip .show-text { order: 1; }
.show-text p:not(.kicker) { font-size: 16.5px; max-width: 46ch; }

/* Gallery */
.gallery {
  background: var(--bg-2);
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.shot {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.shot img { transition: transform .35s ease; }
.shot:hover img { transform: scale(1.035); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 14, .92);
  backdrop-filter: blur(12px);
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .8);
}
.lb-btn {
  position: absolute;
  background: rgba(20, 34, 52, .75);
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  width: 50px; height: 50px;
  font-size: 21px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.lb-btn:hover { background: rgba(38, 58, 82, .9); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* Final CTA */
.cta-final { padding-bottom: 48px; }
.cta-box {
  text-align: center;
  background: var(--panel);
  border-radius: 26px;
  padding: 84px 34px 80px;
}
.cta-box h2 { font-size: clamp(34px, 5vw, 58px); }
.cta-box p { max-width: 520px; margin: 0 auto 32px; }

/* Funding */
.funding { padding-top: 48px; padding-bottom: 96px; }
.funding-box {
  display: flex;
  align-items: center;
  gap: 36px;
  border-radius: var(--r);
  background: var(--bg-2);
  padding: 32px 36px;
}
.funding-logo-frame {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  display: block;
}
.funding-logo-frame img { width: 224px; height: auto; }
.funding-text p:not(.kicker) { font-size: 15px; max-width: 58ch; }
.funding-text .kicker { margin-bottom: 6px; }

/* Video strips */
.video-strip { max-width: 800px; margin-top: 80px; margin-inline: auto; }
.video-strip video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #05090f;
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr .6fr .6fr;
  gap: 40px;
  align-items: start;
}
.footer-social-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  opacity: .85;
  margin-bottom: 12px;
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  color: var(--dim);
  background: rgba(150, 195, 235, .07);
  transition: color .15s, background .15s, transform .15s;
}
.social-row a:hover {
  color: var(--ink);
  background: rgba(150, 195, 235, .14);
  transform: translateY(-2px);
}
.footer-tm { margin-top: 8px; font-size: 12px; color: #4d6275; max-width: 90ch; }
.footer-brand img { width: 168px; opacity: .9; }
.footer-brand p { margin-top: 16px; font-size: 14px; }
.footer-brand p a {
  color: var(--ink);
  opacity: .85;
  text-decoration: none;
  transition: opacity .15s;
}
.footer-brand p a:hover { opacity: 1; }
.funding-note { font-size: 13.5px; color: var(--dim); max-width: 44ch; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links a {
  color: var(--ink);
  opacity: .75;
  text-decoration: none;
  font-size: 14.5px;
  transition: opacity .15s;
}
.footer-links a:hover { opacity: 1; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-legal p { font-size: 13px; color: #5e7488; }

/* ---------- Legal pages ---------- */
.legal-main { padding: 150px 0 90px; max-width: 760px; }
.legal-main h1 { font-size: clamp(38px, 5.4vw, 56px); margin-bottom: 34px; }
.legal-main h2 { font-size: 22px; letter-spacing: -0.01em; margin: 34px 0 10px; }
.legal-main p, .legal-main li { font-size: 15.5px; }
.legal-main ul { padding-left: 22px; color: var(--dim); }
.legal-main a { color: var(--ice); }
.back-link {
  display: inline-block;
  margin-top: 44px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* ---------- Scroll-Route (Variante /route.php) ---------- */
.route-on main { position: relative; }
.route-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.route-base {
  fill: none;
  stroke: rgba(150, 195, 235, .14);
  stroke-width: 2;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
}
/* Maskenpfad: gibt die Spur bis zur gefahrenen Länge frei */
.route-mask {
  fill: none;
  stroke: #fff;
  stroke-width: 30;
  stroke-linecap: round;
}
/* Reifenspur im Schnee */
.route-snow {
  fill: none;
  stroke: rgba(210, 228, 244, .09);
  stroke-width: 17;
  stroke-linecap: round;
}
.route-track {
  fill: none;
  stroke: rgba(216, 232, 245, .5);
  stroke-width: 2.6;
  stroke-dasharray: 3 4.5;
  stroke-linecap: butt;
}
/* US-Truck (Draufsicht) */
.route-truck { filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .5)); }
.trk-shadow { fill: rgba(0, 0, 0, .28); filter: url(#rtBlur); }
.trk-wheel { fill: #1c2531; }
.trk-trailer { fill: #e9eff5; stroke: rgba(20, 34, 52, .35); stroke-width: .8; }
.trk-ribs { stroke: rgba(20, 34, 52, .12); stroke-width: 1; fill: none; }
.trk-cab { fill: var(--accent); stroke: rgba(90, 55, 0, .45); stroke-width: .8; }
.trk-hood { fill: var(--accent-deep); stroke: rgba(90, 55, 0, .45); stroke-width: .8; }
.trk-glass { fill: #1d2836; }
.trk-grille { stroke: rgba(90, 55, 0, .6); stroke-width: 1.4; stroke-linecap: round; }
.trk-stack { fill: #39434f; stroke: #141b24; stroke-width: .7; }
.trk-mirror { fill: #2a3542; }
.pin-dot { fill: var(--accent); }
.pin-ring {
  fill: none;
  stroke: rgba(255, 180, 40, .55);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pinPulse 2.2s ease-in-out infinite;
}
@keyframes pinPulse { 50% { opacity: .25; transform: scale(1.35); } }
/* Inhalte über die Route heben (Bilder in der Showcase bleiben darunter — Route führt darüber) */
.route-on .feature-card,
.route-on .sec-head,
.route-on .show-text,
.route-on .shot,
.route-on .stats,
.route-on .grid-2,
.route-on .video-strip,
.route-on .cta-box,
.route-on .funding-box { position: relative; z-index: 2; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .65, .3, 1), transform .7s cubic-bezier(.2, .65, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; }
  .hero-snow { display: none; }
}

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { border-radius: 999px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-2, .show-row { grid-template-columns: 1fr; gap: 40px; }
  .show-row.flip .show-media { order: 0; }
  .show-row.flip .show-text { order: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .stats { margin-top: 72px; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px 36px;
    background: rgba(6, 11, 19, .97);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links > a:not(.btn) { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
  .nav-burger {
    display: grid;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    z-index: 60;
  }
  .nav-burger span {
    width: 24px; height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .25s, opacity .25s;
  }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .feature-grid, .shot-grid { grid-template-columns: 1fr; }
  .funding-box { flex-direction: column; align-items: flex-start; }
  .hero-tagline { font-size: 17px; }
  .btn-big { width: 100%; }
  .hero-cta { width: 100%; flex-direction: column; }
  .video-strip { margin-top: 56px; }
  .cta-box { padding: 60px 24px 56px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
