/* ============================================================================
   Komuntec website UI kit — layout + 3D scroll hero (local to this kit)
   Tokens come from ../../styles.css. This file is NOT shipped to consumers.
   ============================================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); background: var(--asphalt-950); color: var(--asphalt-50); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ===== Header ============================================================ */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 76px; display: flex; align-items: center;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); border-bottom: 1px solid transparent; }
.hdr:not(.hdr--solid) { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.hdr--solid { background: color-mix(in srgb, var(--asphalt-950) 88%, transparent); backdrop-filter: blur(10px); border-bottom-color: var(--asphalt-800); }
.hdr__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.hdr__logo { height: 34px; }
.hdr__nav { display: flex; gap: var(--space-6); }
.hdr__nav a { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--asphalt-300); transition: color var(--dur-fast) var(--ease-out); white-space: nowrap; }
.hdr__nav a:hover { color: var(--asphalt-0); }
.hdr__right { display: flex; align-items: center; gap: var(--space-5); }
.hdr__phone { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--asphalt-0); display: inline-flex; align-items: center; gap: 0.5rem; }
.hdr__phone svg { width: 16px; height: 16px; color: var(--signal-400); }
@media (max-width: 880px) { .hdr__nav, .hdr__phone span { display: none; } }

/* ===== 3D HERO =========================================================== */
.hero { position: relative; height: 340vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 1200px; perspective-origin: 50% 38%;
  background:
    radial-gradient(120% 80% at 50% -10%, #1b2026 0%, #0d0f12 55%, #08090b 100%); }

/* faint hazard stripe at the very top edge */
.hero__warn { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--hazard-stripe); opacity: 0.9; z-index: 6; }

/* The receding road plane */
.hero__road { position: absolute; left: 50%; top: 46%; width: 230%; height: 240%;
  transform-origin: 50% 0%;
  transform: translateX(-50%) rotateX(calc(74deg - var(--drive) * 14deg)) translateY(calc(var(--drive) * -4%)) scale(calc(1 + var(--drive) * 0.12));
  background-color: #15181c;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 calc(50% - 7px), rgba(245,247,248,0.16) calc(50% - 7px) calc(50% + 7px), transparent calc(50% + 7px) 100%),
    repeating-linear-gradient(0deg, rgba(245,247,248,0.14) 0 70px, transparent 70px 190px),
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.05) 50%, transparent 51%),
    radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,0.04) 50%, transparent 51%);
  background-size: 100% 100%, 100% 260px, 140px 140px, 180px 180px;
  background-position: 0 0, 0 calc(var(--drive) * 520px), 0 0, 0 0;
  box-shadow: inset 0 80px 120px rgba(0,0,0,0.55), inset 0 -40px 80px rgba(0,0,0,0.6);
}
/* lane center marking emphasised */
.hero__road::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%);
  background: repeating-linear-gradient(0deg, var(--signal-400) 0 60px, transparent 60px 150px);
  background-position: 0 calc(var(--drive) * 520px); opacity: 0.85; }

/* horizon glow / atmosphere */
.hero__horizon { position: absolute; left: 0; right: 0; top: 40%; height: 30%; z-index: 2;
  background: linear-gradient(to bottom, rgba(13,15,18,0) 0%, rgba(13,15,18,0.65) 70%, #0d0f12 100%); }

/* The oil spill sitting on the road — a wet, faintly iridescent dark patch */
.hero__oil { position: absolute; left: 50%; top: 70%; width: clamp(240px, 34vw, 500px); height: clamp(90px, 13vw, 180px);
  transform: translate(-50%, -50%) scale(calc(1 - var(--clean) * 0.5)); z-index: 3;
  opacity: calc(1 - var(--clean) * 1.1);
  background:
    radial-gradient(68% 70% at 50% 45%, rgba(6,6,9,0.96), rgba(13,14,18,0.7) 58%, transparent 80%),
    conic-gradient(from 30deg at 52% 48%, rgba(70,120,140,0.22), rgba(120,90,150,0.20), rgba(150,130,70,0.18), rgba(70,140,120,0.22), rgba(70,120,140,0.22));
  border-radius: 58% 42% 55% 45% / 60% 52% 48% 40%;
  filter: blur(1px);
}
.hero__oil::after { content: ""; position: absolute; inset: 18% 26%; border-radius: 50%;
  background: radial-gradient(60% 60% at 42% 35%, rgba(140,150,165,0.18), transparent 70%); }

/* The Komuntec clean-sweep bar */
.hero__sweep { position: absolute; top: 44%; bottom: 0; width: 14vw; min-width: 120px; z-index: 4;
  left: calc(-16% + var(--clean) * 132%); opacity: var(--sweepOn);
  background: linear-gradient(90deg, transparent, rgba(31,157,91,0.0) 10%, rgba(31,157,91,0.18) 55%, rgba(95,197,146,0.55) 92%, rgba(231,246,238,0.9));
  filter: blur(3px);
  transform: skewX(-9deg); }
.hero__sweep::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 4px; background: var(--recovery-300); box-shadow: 0 0 26px 6px rgba(95,197,146,0.5); }

/* Foreground copy */
.hero__copy { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; pointer-events: none; padding-block: 104px 48px; }
.hero__copy .wrap { pointer-events: auto; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero__kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--signal-400); margin-bottom: var(--space-4); }
.hero__kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero__title { font-family: var(--font-display); font-weight: var(--fw-black); text-transform: uppercase;
  line-height: 0.92; letter-spacing: var(--ls-tight); margin: 0; font-size: clamp(2.6rem, 7.5vw, 6.8rem);
  transform: translateZ(calc(var(--drive) * 90px)); }
.hero__title .l1 { display: block; color: var(--asphalt-0); }
.hero__title .l2 { display: block; color: var(--recovery-300);
  opacity: var(--clean); transform: translateY(calc((1 - var(--clean)) * 28px)); }
.hero__sub { max-width: 480px; margin: var(--space-5) 0 0; font-size: var(--text-md); line-height: var(--lh-relaxed); color: var(--asphalt-300); }
.hero__cta { display: flex; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap;
  animation: heroIn 0.7s var(--ease-out) 0.28s backwards; }
.hero__chips { display: flex; gap: var(--space-3); margin-top: var(--space-7); flex-wrap: wrap;
  animation: heroIn 0.7s var(--ease-out) 0.4s backwards; }

/* scroll cue */
.hero__cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 7;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--asphalt-500);
  display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: calc(1 - var(--settle)); }
.hero__cue i { width: 1px; height: 30px; background: linear-gradient(var(--asphalt-500), transparent); }

/* vehicle photo panel — sits to the side of the hero copy */
.hero__photo { position: absolute; z-index: 5; right: clamp(1.5rem, 5vw, 4rem); top: 50%;
  width: clamp(290px, 32vw, 460px); aspect-ratio: 4 / 5; margin: 0; transform: translateY(-50%);
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--asphalt-700);
  box-shadow: var(--shadow-lg); animation: heroIn 0.8s var(--ease-out) 0.35s backwards; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; z-index: 2; background: var(--hazard-stripe-red); }
.hero__photo-tag { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 2.2rem 1.1rem 0.95rem;
  background: linear-gradient(to top, rgba(8,9,11,0.94), rgba(8,9,11,0));
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--asphalt-300); display: flex; flex-direction: column; gap: 0.25rem; }
.hero__photo-tag span { color: var(--komuntec-300); font-weight: var(--fw-medium); }
@media (max-width: 900px) { .hero__photo { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; }
  .hero__stage { position: relative; }
  .hero__oil { opacity: 0; }
  .hero__title .l1, .hero__title .l2, .hero__kicker, .hero__sub, .hero__cta, .hero__chips { opacity: 1 !important; transform: none !important; }
}

/* ===== SPLIT HERO (B) + Glas-Navbar (N2) ================================= */
.shero { position: relative; min-height: 640px; height: min(94vh, 880px);
  display: grid; grid-template-columns: 1.08fr 0.92fr; overflow: hidden; background: var(--asphalt-950); }
.shero__warn { position: absolute; top: 0; left: 0; right: 0; height: 6px; z-index: 8; background: var(--hazard-stripe-red); }

/* navbar: logo on the dark side, glass pill entirely over the photo */
.shero__top { position: absolute; top: 6px; left: 0; right: 0; z-index: 7;
  display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 4vw, 56px); }
.shero__top > a { display: inline-flex; }
.shero__pill { display: flex; align-items: center; gap: 20px; padding: 8px 8px 8px 22px;
  border-radius: 999px; background: rgba(11,13,16,0.62); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.14); }
.shero__nav { display: flex; align-items: center; gap: 22px; }
.shero__nav a { font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: 14px;
  color: #fff; opacity: 0.85; text-decoration: none; white-space: nowrap; transition: opacity var(--dur-fast) var(--ease-out); }
.shero__nav a:hover { opacity: 1; }
.shero__pphone { display: inline-flex; align-items: center; gap: 7px; background: var(--komuntec-500);
  color: #fff; font-family: var(--font-mono); font-size: 12.5px; font-weight: var(--fw-semibold); letter-spacing: 0.01em;
  padding: 9px 15px; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: background var(--dur-fast) var(--ease-out); }
.shero__pphone:hover { background: var(--komuntec-400); }
.shero__pphone svg { width: 14px; height: 14px; }

/* left — dark copy panel */
.shero__left { position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 5vw, 64px);
  background: radial-gradient(120% 90% at 0% 0%, #1b2026 0%, #0d0f12 60%, #08090b 100%); }
.shero__kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono);
  font-size: var(--text-xs); font-weight: var(--fw-medium); letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--signal-400); margin-bottom: var(--space-4); }
.shero__kicker::before { content: ""; width: 30px; height: 2px; background: var(--komuntec-500); }
.shero__title { font-family: var(--font-display); font-weight: var(--fw-black); text-transform: uppercase;
  line-height: 0.92; letter-spacing: var(--ls-tight); margin: 0; color: var(--asphalt-0);
  font-size: clamp(2.6rem, 6vw, 5.2rem); }
.shero__title .red { color: var(--komuntec-400); }
.shero__sub { max-width: 460px; margin: var(--space-5) 0 0; font-size: var(--text-md);
  line-height: var(--lh-relaxed); color: var(--asphalt-300); }
.shero__cta { display: flex; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
.shero__chips { display: flex; gap: var(--space-3); margin-top: var(--space-7); flex-wrap: wrap; }

/* right — vehicle photo */
.shero__right { position: relative; overflow: hidden; }
.shero__right img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.shero__right::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; z-index: 2; background: var(--hazard-stripe-red); }
.shero__right::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; z-index: 1;
  background: linear-gradient(to bottom, rgba(8,9,11,0.82) 0%, rgba(8,9,11,0.5) 45%, rgba(8,9,11,0)); pointer-events: none; }
.shero__tag { position: absolute; left: 24px; bottom: 22px; z-index: 3; font-family: var(--font-mono);
  font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  background: rgba(8,9,11,0.62); backdrop-filter: blur(4px); padding: 9px 13px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12); }
.shero__tag b { color: var(--komuntec-300); font-weight: var(--fw-bold); }

@media (max-width: 900px) {
  .shero { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .shero__left { order: 2; padding: 44px clamp(24px, 6vw, 44px) 52px; }
  .shero__right { order: 1; height: clamp(260px, 42vh, 360px); }
  .shero__nav { display: none; }
  .shero__pill { padding: 6px; gap: 0; border-color: transparent; background: transparent; backdrop-filter: none; }
}

/* ===== Generic section ================================================== */
.section { padding-block: var(--section-y); }
.section--light { background: var(--asphalt-50); color: var(--asphalt-900); }
.section__head { max-width: 720px; margin-bottom: var(--space-8); }
.section__head h2 { font-family: var(--font-display); font-weight: var(--fw-black); text-transform: uppercase;
  letter-spacing: var(--ls-tight); line-height: 1.0; font-size: clamp(2rem, 4.5vw, 3.4rem); margin: var(--space-3) 0 var(--space-4); }
.section__head p { font-size: var(--text-md); line-height: var(--lh-relaxed); color: var(--asphalt-500); margin: 0; }

/* Services grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* ===== Fleet showcase =================================================== */
.fleet { background: var(--asphalt-950); }
.fleet-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-4); }
.fleet-card { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--asphalt-800); background: var(--asphalt-900); min-height: 220px; }
.fleet-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.fleet-card:hover img { transform: scale(1.04); }
.fleet-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; z-index: 2;
  background: var(--hazard-stripe-red); opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.fleet-card:hover::before { opacity: 1; }
.fleet-card figcaption { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 2.4rem 1.1rem 0.95rem;
  background: linear-gradient(to top, rgba(8,9,11,0.92), rgba(8,9,11,0));
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--asphalt-300); display: flex; flex-direction: column; gap: 0.3rem; }
.fleet-card__no { color: var(--komuntec-300); font-weight: var(--fw-medium); }
.fleet-card--feature { grid-row: 1 / 3; min-height: 480px; }
.fleet-card--wide { grid-column: 2 / 4; }
.fleet-specs { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
@media (max-width: 820px) {
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .fleet-card--feature { grid-row: auto; grid-column: 1 / 3; min-height: 320px; }
  .fleet-card--wide { grid-column: 1 / 3; }
}
@media (max-width: 520px) {
  .fleet-grid { grid-template-columns: 1fr; }
  .fleet-card--feature, .fleet-card--wide { grid-column: auto; }
}

/* Stats band */
.stats-band { background: var(--asphalt-900); border-block: 1px solid var(--asphalt-800); }
.stats-band__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); padding-block: var(--space-9); }
@media (max-width: 800px) { .stats-band__inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { position: relative; padding-top: var(--space-6); border-top: 2px solid var(--asphalt-200); }
.step__no { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--signal-600); letter-spacing: 0.1em; }
.step h3 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-lg); margin: var(--space-3) 0 var(--space-2); letter-spacing: var(--ls-snug); }
.step p { font-size: var(--text-sm); line-height: var(--lh-relaxed); color: var(--asphalt-500); margin: 0; }
.step--active { border-top-color: var(--signal-500); }

/* Contact / CTA */
.cta { background: var(--asphalt-950); position: relative; overflow: hidden; }
.cta__stripe { height: 6px; background: var(--hazard-stripe); }
.cta__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-10); padding-block: var(--space-10); align-items: start; }
@media (max-width: 820px) { .cta__grid { grid-template-columns: 1fr; gap: var(--space-8); } }
.cta h2 { font-family: var(--font-display); font-weight: var(--fw-black); text-transform: uppercase; letter-spacing: var(--ls-tight);
  font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 0.98; margin: var(--space-4) 0; }
.cta__form { background: var(--asphalt-900); border: 1px solid var(--asphalt-800); border-radius: var(--radius-lg); padding: var(--space-7); }
.cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
.cta__big { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(1.8rem,4vw,2.6rem); color: var(--signal-400); letter-spacing: var(--ls-snug); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cta__consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: var(--space-5);
  font-size: var(--text-sm); line-height: var(--lh-normal); color: var(--asphalt-300); cursor: pointer; }
.cta__consent input { margin-top: 0.2rem; width: 16px; height: 16px; flex: none; accent-color: var(--komuntec-500); }
.cta__consent a { color: var(--komuntec-300); text-decoration: underline; }
.cta__consent a:hover { color: var(--komuntec-200); }

/* ===== Rechtstexte (Impressum / Datenschutz) ============================ */
.legal { padding-top: clamp(112px, 14vh, 156px); }
.legal__wrap { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-weight: var(--fw-black); text-transform: uppercase;
  letter-spacing: var(--ls-tight); line-height: 1.0; font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--text); margin: 0 0 var(--space-3); }
.legal__intro { font-size: var(--text-md); line-height: var(--lh-relaxed); color: var(--text-muted);
  margin: 0 0 var(--space-8); }
.legal h2 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-xl);
  letter-spacing: var(--ls-snug); color: var(--text); margin: 2.4rem 0 0.6rem; }
.legal h3 { font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--text-md);
  color: var(--text); margin: 1.6rem 0 0.4rem; }
.legal p, .legal li { font-size: var(--text-base); line-height: var(--lh-relaxed); color: var(--text-muted); }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--komuntec-600); text-decoration: underline; }
.legal strong { color: var(--text); font-weight: var(--fw-semibold); }
.legal address { font-style: normal; color: var(--text-muted); line-height: var(--lh-relaxed); margin: 0 0 1rem; }
.legal__updated { margin-top: var(--space-9); font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.06em; color: var(--text-faint); }
/* hervorgehobene Platzhalter — bitte ersetzen */
.legal .ph { font-style: normal; background: var(--signal-50); color: var(--signal-700);
  padding: 0.05em 0.35em; border-radius: 4px; border: 1px dashed color-mix(in srgb, var(--signal-500) 45%, transparent); }

/* Footer */
.ftr { background: var(--asphalt-950); border-top: 1px solid var(--asphalt-800); padding-block: var(--space-8); }
.ftr__inner { display: flex; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; align-items: center; }
.ftr small { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--asphalt-500); }
.ftr__links { display: flex; gap: var(--space-5); }
.ftr__links a { font-size: var(--text-sm); color: var(--asphalt-400); }
.ftr__links a:hover { color: var(--asphalt-0); }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(var(--ty, 20px)); z-index: 100;
  background: var(--recovery-500); color: #fff; font-weight: var(--fw-semibold); font-size: var(--text-sm);
  padding: 0.85rem 1.25rem; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); display: flex; align-items: center; gap: 0.6rem; }
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; }
