/* Iddy Uwimana KFZ-Handel und Werkstatt, Bonn — Design: „Premium dark + action red"
   (Automotive-Palette aus der Design-Bibliothek: Slate #1E293B + Aktionsrot #DC2626,
   Display-Schrift Bebas Neue lokal, Body hell & präzise wie bei Handwerk üblich). */

@font-face {
  font-family: "Bebas Neue";
  src: url("bebas.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f172a;
  --slate: #1e293b;
  --slate-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --accent: #dc2626;
  --accent-dark: #b91c1c;
  --gold: #f59e0b;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h2 { font-family: var(--display); font-size: clamp(34px, 5vw, 52px); letter-spacing: 0.02em; line-height: 1.05; color: var(--slate); }
h3 { font-size: 19px; letter-spacing: -0.01em; }

/* Demo-Banner (bei Live-Schaltung entfernen) */
.demo-banner { background: var(--slate); color: #cbd5e1; text-align: center; font-size: 12.5px; padding: 7px 16px; letter-spacing: 0.02em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgb(15 23 42 / 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a { color: #cbd5e1; text-decoration: none; font-size: 14.5px; transition: color 180ms ease; }
.nav-links a:hover { color: #fff; }
.btn-nav { margin-left: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease; }
.btn-primary { background: linear-gradient(120deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 6px 18px rgb(220 38 38 / 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(220 38 38 / 0.38); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--slate); background: var(--card); }
.btn-ghost:hover { border-color: var(--slate-2); transform: translateY(-1px); }
.hero .btn-ghost { background: transparent; border-color: rgb(255 255 255 / 0.25); color: #e2e8f0; }
.hero .btn-ghost:hover { border-color: rgb(255 255 255 / 0.55); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; background: var(--slate); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("hero.jpg") center 30% / cover no-repeat; opacity: 0.38; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgb(15 23 42 / 0.94) 30%, rgb(15 23 42 / 0.55) 70%, rgb(220 38 38 / 0.18)); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: center; padding-top: 84px; padding-bottom: 92px; }
.kicker { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #fca5a5; font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-family: var(--display); font-size: clamp(52px, 8.5vw, 96px); line-height: 0.95; letter-spacing: 0.015em; margin-bottom: 18px; }
.hero .sub { font-size: 17.5px; color: #cbd5e1; max-width: 46ch; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-note { font-size: 13.5px; color: #94a3b8; }

/* WOW 1: Zünd-Headline — flackert kurz wie die Armaturenbeleuchtung beim Start */
html.js .ign { animation: ignition 1.1s ease-out both; }
html.js .ign2 { animation-delay: 0.18s; }
html.js .ign3 { animation-delay: 0.36s; }
@keyframes ignition {
  0% { opacity: 0; }
  22% { opacity: 0.9; }
  30% { opacity: 0.25; }
  44% { opacity: 1; }
  54% { opacity: 0.5; }
  70%, 100% { opacity: 1; }
}

/* WOW 2: Tacho — Nadel schwenkt einmal voll durch und pendelt auf 5,0 ein */
.gauge-wrap { position: relative; justify-self: center; text-align: center; }
.gauge { width: min(300px, 64vw); height: auto; display: block; }
.g-outer { fill: rgb(15 23 42 / 0.55); stroke: rgb(255 255 255 / 0.14); stroke-width: 2; }
.g-track { fill: none; stroke: rgb(255 255 255 / 0.12); stroke-width: 10; stroke-linecap: round; }
.g-fill { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: gauge-fill 1.7s cubic-bezier(0.33, 1, 0.68, 1) 0.35s forwards; }
.g-ticks line { stroke: rgb(255 255 255 / 0.4); stroke-width: 2.5; stroke-linecap: round; }
.g-needle { stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.g-hub { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.needle-g { transform-origin: 110px 110px; transform: rotate(-146deg); animation: needle-sweep 1.9s cubic-bezier(0.34, 1.3, 0.64, 1) 0.35s forwards; }
@keyframes needle-sweep { from { transform: rotate(-146deg); } to { transform: rotate(146deg); } }
@keyframes gauge-fill { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.gauge-label { position: absolute; left: 0; right: 0; top: 58%; }
.gauge-num { display: block; font-family: var(--display); font-size: 46px; line-height: 1; }
.gauge-stars { display: block; color: var(--gold); font-size: 17px; letter-spacing: 3px; margin-top: 2px; }
.gauge-sub { display: block; font-size: 12.5px; color: #94a3b8; margin-top: 12px; }

/* ── WOW 3: Kontrollleuchten-Check ───────────────────── */
.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 22px 20px; }
.trust-item { display: flex; align-items: center; gap: 13px; justify-content: center; }
.trust-item strong { display: block; font-size: 15.5px; line-height: 1.3; }
.trust-item span:last-child { font-size: 13px; color: var(--muted); }
.lamp { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #fef2f2; color: var(--accent); flex-shrink: 0; }
html.js .trust-item.in .lamp { animation: lamp-check 0.9s ease-out both; }
html.js .trust-item.in:nth-child(2) .lamp { animation-delay: 0.25s; }
html.js .trust-item.in:nth-child(3) .lamp { animation-delay: 0.5s; }
@keyframes lamp-check {
  0% { color: #cbd5e1; background: #f1f5f9; }
  30% { color: var(--accent); background: #fee2e2; box-shadow: 0 0 0 6px rgb(220 38 38 / 0.12); }
  50% { color: #cbd5e1; background: #f1f5f9; box-shadow: none; }
  100% { color: var(--accent); background: #fef2f2; }
}

/* ── Sektionen ───────────────────────────────────────── */
.section { padding: 84px 0; }
.section.alt { background: #eef2f6; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }

/* Scroll-Reveal (nur mit JS aktiv, sonst alles sichtbar) */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* WOW 4: Hebebühne — Auto fährt hoch, sobald die Leistungen sichtbar werden */
.lift-stage { max-width: 620px; margin: 0 auto 46px; }
.lift-svg { width: 100%; height: auto; display: block; }
.car-body { fill: var(--slate); }
.car-glass { fill: #64748b; }
.car-light { fill: var(--gold); }
.car-light-rear { fill: var(--accent); }
.car-tire { fill: #0f172a; }
.car-rim { fill: #94a3b8; }
.post { fill: #cbd5e1; }
.post-foot { fill: #94a3b8; }
.lift-arm { fill: var(--accent); }
html.js .lift-car, html.js .lift-arm { transform: translateY(26px); transition: transform 1.3s cubic-bezier(0.33, 1, 0.68, 1) 0.3s; }
html.js .lift-stage.in .lift-car, html.js .lift-stage.in .lift-arm { transform: translateY(0); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgb(15 23 42 / 0.09); border-color: #cbd5e1; }
.card-ic { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 12px; background: #fef2f2; color: var(--accent); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; color: var(--slate); }
.card p { font-size: 15px; color: #475569; }
html.js .cards .reveal:nth-child(2) { transition-delay: 90ms; }
html.js .cards .reveal:nth-child(3) { transition-delay: 180ms; }
html.js .cards .reveal:nth-child(5) { transition-delay: 90ms; }
html.js .cards .reveal:nth-child(6) { transition-delay: 180ms; }

.cta-row { margin-top: 44px; text-align: center; }
.cta-row p { color: var(--muted); margin-bottom: 14px; }

/* ── WOW 5: Reifenspur-Trenner mit rollendem Rad ─────── */
.tread { position: relative; height: 64px; overflow: hidden; }
.tread-track { position: absolute; left: 0; right: 0; bottom: 18px; height: 8px; background: repeating-linear-gradient(90deg, #cbd5e1 0 14px, transparent 14px 24px); border-radius: 4px; opacity: 0.8; }
.tread-wheel { position: absolute; bottom: 20px; left: 4%; }
.tw-tire { fill: var(--slate); }
.tw-rim { fill: #e2e8f0; }
.tw-spokes { stroke: #64748b; stroke-width: 2.5; stroke-linecap: round; }
html.js .tread .tread-wheel { transform: translateX(0) rotate(0deg); }
html.js .tread.in .tread-wheel { transform: translateX(min(86vw, 1000px)) rotate(900deg); transition: transform 2.4s cubic-bezier(0.45, 0, 0.35, 1); }

/* ── Über uns ────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-copy p { margin-top: 16px; color: #334155; }
.owner-line { margin-top: 26px; padding: 16px 20px; background: var(--card); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; }
.owner-line strong { display: block; font-size: 17px; }
.owner-line span { font-size: 14px; color: var(--muted); }
.about-photo img { border-radius: 18px; box-shadow: 0 18px 44px rgb(15 23 42 / 0.16); }
.about-photo figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.about-cta { margin-top: 24px; }
.handel-grid { grid-template-columns: 1fr 1.1fr; }

/* ── Bewertungen ─────────────────────────────────────── */
.rating-panel { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; background: var(--slate); color: #fff; border-radius: 22px; padding: 48px 52px; }
.rating-big { text-align: center; }
.rating-big strong { font-family: var(--display); font-size: 96px; line-height: 1; display: block; }
.rating-stars { color: var(--gold); font-size: 24px; letter-spacing: 4px; display: block; margin-top: 6px; }
.rating-sub { display: block; font-size: 13.5px; color: #94a3b8; margin-top: 8px; }
.rating-copy h2 { color: #fff; }
.rating-copy p { color: #cbd5e1; margin: 12px 0 22px; max-width: 52ch; }
.rating-panel .btn-ghost { background: transparent; border-color: rgb(255 255 255 / 0.3); color: #e2e8f0; }
.rating-panel .btn-ghost:hover { border-color: #fff; }
.rating-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Kontakt ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-card h3 { color: var(--slate); }
.contact-card p { font-size: 15px; color: #475569; flex-grow: 1; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { background: var(--slate); color: #94a3b8; padding: 30px 0; font-size: 13.5px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: #cbd5e1; text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: #fff; }
.made-by a { margin: 0; }

/* Mobile Sticky-Call */
.sticky-call { display: none; }

/* ── Responsiv ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 64px; }
  .gauge-wrap { justify-self: start; }
  .cards, .contact-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .handel-grid .about-photo { order: 2; }
  .rating-panel { grid-template-columns: 1fr; gap: 28px; padding: 38px 30px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; }
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; gap: 14px; }
  .trust-item { justify-content: flex-start; }
  .section { padding: 60px 0; }
  .sticky-call { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 25; text-align: center; padding: 15px 18px; border-radius: 14px; background: linear-gradient(120deg, var(--accent), var(--accent-dark)); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 28px rgb(220 38 38 / 0.4); }
  body { padding-bottom: 76px; }
}

/* Reduzierte Bewegung: alle Animationen aus, Endzustände sofort */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .lift-car, html.js .lift-arm, html.js .tread .tread-wheel,
  html.js .ign, html.js .trust-item.in .lamp,
  .g-fill, .needle-g,
  .btn, .card, .nav-links a {
    animation: none !important;
    transition: none !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .lift-car, html.js .lift-arm { transform: none; }
  html.js .tread .tread-wheel { transform: translateX(min(86vw, 1000px)); }
  .needle-g { transform: rotate(146deg); }
  .g-fill { stroke-dashoffset: 0; }
}
