:root {
  --red: #EC1A2C;
  --red-dark: #b3121f;
  --bg: #0a0a0b;
  --bg-2: #101012;
  --surface: #151517;
  --border: #232327;
  --border-hover: #3a3a40;
  --text: #f5f5f4;
  --text-dim: rgba(245, 245, 244, 0.68);
  --text-faint: rgba(245, 245, 244, 0.42);
  --font: 'Archivo', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; }

::selection { background: var(--red); color: #fff; }

/* ===== Startampel ===== */
.start-lights {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.start-lights.done { opacity: 0; visibility: hidden; pointer-events: none; }
.lights-row { display: flex; gap: clamp(10px, 2.5vw, 22px); }
.light {
  width: clamp(28px, 6vw, 54px); height: clamp(28px, 6vw, 54px);
  border-radius: 50%;
  background: #1c1c1f;
  border: 1px solid var(--border);
}
.light.on { background: var(--red); box-shadow: 0 0 30px rgba(236, 26, 44, 0.55); }
.light.out { background: #1c1c1f; box-shadow: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.playing { opacity: 0.5; }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10,10,11,0.72) 0%, rgba(10,10,11,0) 26%),
    linear-gradient(to top, var(--bg) 0%, rgba(10,10,11,0) 32%),
    radial-gradient(ellipse at center, rgba(10,10,11,0) 40%, rgba(10,10,11,0.55) 100%);
}

/* map svg */
.hm-dot { fill: #3b3b42; }
.hm-city { fill: #55555e; }
.hm-label {
  font-family: var(--mono);
  font-size: 10px;
  fill: rgba(245,245,244,0.34);
  letter-spacing: 0.08em;
}
.hm-route {
  fill: none;
  stroke: rgba(245,245,244,0.13);
  stroke-width: 1;
}
.hm-route-active {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(236,26,44,0.7));
}
.hm-hub { fill: var(--red); }
.hm-hub-pulse {
  fill: none; stroke: var(--red); stroke-width: 1.5;
  animation: hubPulse 2.4s ease-out infinite;
  transform-origin: center;
}
@keyframes hubPulse {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}
.hm-car { fill: #fff; filter: drop-shadow(0 0 5px rgba(236,26,44,0.9)); }

/* nav */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px clamp(16px, 4vw, 40px) 0;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  background: rgba(21, 21, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px 10px 14px;
}
.nav-brand img { height: 22px; width: auto; }
.nav-brand span { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.nav-brand em { font-style: normal; font-weight: 400; color: var(--text-dim); }
.nav-links {
  display: flex; gap: 2px;
  background: rgba(21, 21, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 9px 18px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-cta {
  background: var(--red);
  color: #fff;
  font-size: 13.5px; font-weight: 600;
  border-radius: 999px;
  padding: 12px 24px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.nav-burger {
  display: none;
  background: rgba(21,21,23,0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 46px; height: 46px;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform 0.25s; }
.mobile-menu {
  display: none;
  position: absolute; top: 84px; left: 16px; right: 16px; z-index: 19;
  background: rgba(16, 16, 18, 0.97);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 16px; font-size: 16px; color: var(--text-dim); border-radius: 12px; }
.mobile-menu a:active { background: rgba(255,255,255,0.06); }
.mobile-menu .mm-cta { background: var(--red); color: #fff; text-align: center; font-weight: 600; margin-top: 8px; }

/* hero content */
.hero-content { position: relative; height: 100%; width: 100%; z-index: 10; }
.hero-line {
  position: absolute;
  font-size: clamp(44px, 10.5vw, 150px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  white-space: nowrap;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.hero-line-1 { left: clamp(16px, 4vw, 44px); top: 22%; }
.hero-line-2 { right: clamp(16px, 4vw, 44px); top: 44%; }
.hero-city { color: var(--red); display: inline-block; }
.hero-city.swap { animation: citySwap 0.5s ease; }
@keyframes citySwap {
  0% { opacity: 0; transform: translateY(0.35em) skewX(-8deg); }
  100% { opacity: 1; transform: translateY(0) skewX(0); }
}
.hero-dot { color: var(--red); }
.hero-desc {
  position: absolute;
  left: clamp(16px, 4vw, 44px);
  top: 63%;
  max-width: 360px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}
.hero-stat { position: absolute; display: flex; flex-direction: column; }
.hs-bl { left: clamp(16px, 4vw, 80px); bottom: 13%; }
.hs-bc { left: 50%; bottom: 11.5%; transform: translateX(-50%); align-items: center; }
.hs-br { right: clamp(16px, 4vw, 80px); bottom: 10%; align-items: flex-end; }
.hs-row { display: flex; align-items: center; gap: 14px; }
.hs-num { font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; letter-spacing: -0.03em; }
.hs-line { height: 1px; width: 90px; background: rgba(245,245,244,0.35); transform: rotate(20deg); }
.hs-line-down { transform: rotate(-20deg); }
.hs-label { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; max-width: 230px; }
.hs-br .hs-label { text-align: right; }
.hs-bc .hs-label { text-align: center; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid rgba(245,245,244,0.3);
  border-radius: 12px;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px;
  background: var(--red);
  animation: scrollHint 1.8s ease infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}

/* ===== Ticker ===== */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: flex; gap: 56px;
  width: max-content;
  animation: tickerMove 42s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
}
.ticker-track span { display: flex; gap: 12px; }
.ticker-track b { color: var(--red); font-weight: 700; }
.ticker-track i { font-style: normal; color: var(--text-faint); }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 72px); max-width: 1440px; margin: 0 auto; }
.section-alt { position: relative; }
.section-alt::before {
  content: ""; position: absolute; z-index: -1;
  top: 0; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: var(--bg-2);
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.section-head h2 {
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.section-sub { margin-top: 22px; max-width: 480px; color: var(--text-dim); font-size: 16px; line-height: 1.6; }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }

/* Leistungen */
#leistungen { position: relative; }
#leistungen .section-head, #leistungen .services { position: relative; z-index: 1; }
.sil-911 {
  display: none;
  position: absolute;
  left: 50%;
  top: clamp(180px, 22vw, 300px);
  transform: translateX(-50%);
  width: min(78vw, 1150px);
  z-index: 0;
  pointer-events: none;
}
.sil-911 { filter: drop-shadow(0 0 6px rgba(236, 26, 44, 0.22)); }
.sil-stroke { fill: none; stroke: rgba(245, 245, 244, 0.26); stroke-width: 2.2; }
.sil-accent { fill: none; stroke: rgba(236, 26, 44, 0.85); stroke-width: 2.2; }
.sil-mirror { fill: rgba(245, 245, 244, 0.22); stroke: none; }
.sil-d1, .sil-d2, .sil-d3, .sil-d4 {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.3, 0, 0.2, 1);
}
.sil-d2 { transition-delay: 0.4s; }
.sil-d3 { transition-delay: 0.75s; }
.sil-d4 { transition-delay: 1s; }
.sil-fade { opacity: 0; transition: opacity 0.8s ease 1.3s; }
.sil-911.drawn .sil-d1, .sil-911.drawn .sil-d2, .sil-911.drawn .sil-d3, .sil-911.drawn .sil-d4 { stroke-dashoffset: 0; }
.sil-911.drawn .sil-fade { opacity: 1; }
@media (min-width: 901px) {
  .sil-911 { display: block; }
  /* Geister-Karten: während die Silhouette sich zeichnet, treten P1–P4 zurück */
  #leistungen.sil-stage .service { opacity: 0.13; }
}
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.service {
  position: relative;
  background: rgba(21, 21, 23, 0.88);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 28px 30px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.service::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px;
  background: var(--red);
  transition: right 0.45s cubic-bezier(0.7, 0, 0.3, 1);
}
.service:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.service:hover::after { right: 0; }
.service-pos {
  font-family: var(--mono);
  font-size: 42px; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,245,244,0.22);
  display: block;
  margin-bottom: 26px;
}
.service-tag {
  position: absolute; top: 30px; right: 26px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--red);
  border: 1px solid rgba(236,26,44,0.4);
  border-radius: 999px;
  padding: 4px 12px;
}
.service-tag.tag-b2c { color: var(--text-dim); border-color: var(--border-hover); }
.service h3 { font-size: 21px; margin-bottom: 12px; letter-spacing: -0.02em; }
.service p { font-size: 14.5px; line-height: 1.65; color: var(--text-dim); }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.step {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 28px;
  background: var(--bg);
  position: relative;
}
.step-no {
  font-family: var(--mono); font-size: 13px; color: var(--text-faint);
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 20px; margin-bottom: 12px; letter-spacing: -0.02em; }
.step p { font-size: 14.5px; line-height: 1.65; color: var(--text-dim); }
.step-lights { display: flex; gap: 7px; margin-bottom: 24px; }
.step-lights span {
  width: 13px; height: 13px; border-radius: 50%;
  background: #232327;
}
.step.lit .step-lights span { animation: stepLight 0.3s forwards; }
.step.lit .step-lights span:nth-child(1) { animation-delay: 0.1s; }
.step.lit .step-lights span:nth-child(2) { animation-delay: 0.3s; }
.step.lit .step-lights span:nth-child(3) { animation-delay: 0.5s; }
.step.lit .step-lights span:nth-child(4) { animation-delay: 0.7s; }
.step.lit .step-lights span:nth-child(5) { animation-delay: 0.9s; }
@keyframes stepLight { to { background: var(--red); box-shadow: 0 0 10px rgba(236,26,44,0.5); } }
.step-lights-mid span { background: #232327; }
.step.lit .step-lights-mid span:nth-child(n+3) { animation: none; }
.step-flag {
  width: 44px; height: 13px;
  margin-bottom: 24px;
  background:
    repeating-conic-gradient(#f5f5f4 0% 25%, #0a0a0b 0% 50%) 0 0 / 12px 12px;
  border: 1px solid var(--border);
}

/* Einsätze */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.shot {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  background: var(--surface);
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.shot:hover img { transform: scale(1.045); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(10,10,11,0.92), rgba(10,10,11,0));
  display: flex; flex-direction: column; gap: 3px;
}
.shot b { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--red); }
.shot span { font-size: 13px; color: var(--text-dim); }

/* Warum */
.warum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.counter {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  background: var(--bg);
}
.counter-num {
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  display: block;
  color: var(--text);
}
.counter-label { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--text-faint); }

/* Kontakt */
.kontakt-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr); gap: clamp(36px, 6vw, 90px); }
.kontakt-info h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.04em; }
.kontakt-list { list-style: none; margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.kontakt-list li { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.kl-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }
.kontakt-list a { transition: color 0.2s; }
.kontakt-list a:hover { color: var(--red); }

.kontakt-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; color: var(--text-dim); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(236, 26, 44, 0.15);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-dim); line-height: 1.5; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; flex-shrink: 0; }
.check a { text-decoration: underline; }
.btn-submit {
  font-family: var(--font);
  font-size: 15.5px; font-weight: 600;
  color: #fff;
  background: var(--red);
  border: none;
  border-radius: 999px;
  padding: 16px 30px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.2s, transform 0.2s;
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-arrow { transition: transform 0.2s; }
.btn-submit:hover .btn-arrow { transform: translateX(4px); }
.form-status { font-size: 14px; min-height: 20px; }
.form-status.ok { color: #6fd66f; }
.form-status.err { color: var(--red); }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 72px) 28px; }
.footer-grid {
  max-width: 1440px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 84px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin-bottom: 6px; }
.footer-col a, .footer-col span { font-size: 14.5px; color: var(--text-dim); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1440px; margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-faint);
}
.footer-lap { font-family: var(--mono); letter-spacing: 0.1em; color: var(--red); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero-line-1 { top: 20%; }
  .hero-line-2 { top: 34%; }
  /* Beschreibung ans untere Ende, direkt über den Ticker */
  .hero-desc { top: auto; bottom: 6%; transform: none; left: clamp(16px, 4vw, 44px); right: clamp(16px, 4vw, 44px); max-width: none; font-size: 14px; }
  /* Kennzahlen als Reihe, mittig-oberhalb der Beschreibung */
  .hero-stat { top: 58%; bottom: auto; width: 31%; align-items: center; }
  .hs-bl { left: 2.5%; right: auto; }
  .hs-bc { left: 50%; transform: translateX(-50%); }
  .hs-br { right: 2.5%; left: auto; align-items: center; }
  .hs-row { justify-content: center; }
  .hs-num { font-size: 26px; }
  .hs-label { font-size: 9.5px; line-height: 1.3; text-align: center; max-width: 100%; margin-top: 6px; }
  .hs-br .hs-label { text-align: center; }
  .hs-line { display: none; }
  .hero-scroll { display: none; }
  .warum-grid, .kontakt-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Diese Galerie-Bilder nur auf Desktop zeigen */
  .desktop-only { display: none; }
}
@media (max-width: 560px) {
  .counters { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-line { font-size: 10vw; }
  .hero-line-2 { top: 32%; }
  .hm-label { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
