/* ============================================================
   Garage Hilaj / garagehilaj.ch
   Dark / sporty one-pager · Brand blue accent
   ============================================================ */

:root {
  --bg: #0b101c;
  --bg-alt: #0e1524;
  --surface: #141d31;
  --surface-2: #1a2542;
  --line: #24304e;
  --text: #eef2f9;
  --muted: #9aa7c0;
  --accent: #5b8def;
  --accent-strong: #3e6fd9;
  --accent-soft: rgba(91, 141, 239, 0.14);
  --whatsapp: #22c15e;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1160px, 92%); margin-inline: auto; }

section { padding: 88px 0; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0.04em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); margin-top: 14px; }
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent); }

.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-whatsapp { background: var(--whatsapp); color: #06280f; }
.btn-whatsapp:hover { background: #2bd66e; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 28, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 56px;
  width: auto;
  /* Logo-Blau auf dunklem Grund aufhellen, sonst zu wenig Kontrast */
  filter: brightness(1.9) saturate(1.15) drop-shadow(0 0 6px rgba(91, 141, 239, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 8px;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent); }

.nav-cta { display: inline-flex; align-items: center; gap: 8px; }
.nav-cta .btn { min-height: 44px; padding: 8px 18px; font-size: 0.95rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  padding: 120px 0;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/car-engine-slider.jpg") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 16, 28, 0.96) 30%, rgba(11, 16, 28, 0.55) 70%, rgba(11, 16, 28, 0.35)),
    linear-gradient(to top, var(--bg) 0%, transparent 35%);
}

.hero-inner { max-width: 720px; }
.hero p.lead { font-size: 1.15rem; color: #c5cede; margin: 20px 0 34px; max-width: 540px; }
.hero .accent { color: var(--accent); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 29, 49, 0.7);
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-chips svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* ---------- Services ---------- */

.services { background: var(--bg-alt); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------- Tuning ---------- */

.tuning {
  position: relative;
  isolation: isolate;
}
.tuning::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/tuning-slider.jpg") center/cover no-repeat fixed;
}
.tuning::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(11, 16, 28, 0.93), rgba(11, 16, 28, 0.93));
}

.tuning .card { background: rgba(20, 29, 49, 0.82); }

/* ---------- Garantie / Partner ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.partner-strip {
  margin-top: 36px;
  display: grid;
  gap: 16px;
}
.partner-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 96px;
  background: #f4f6fa;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #1c2333;
  overflow: hidden;
}
.partner-badge img {
  max-height: 56px;
  max-width: min(100%, 240px);
  width: auto;
  height: auto;
  object-fit: contain;
  flex: none;
}
.partner-badge img[src*="lehrbetrieb"] { max-height: 76px; }
.partner-badge strong { font-size: 0.95rem; display: block; white-space: nowrap; }
.partner-badge small { font-size: 0.82rem; color: #58627a; }

.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--muted); }
.check-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- Galerie ---------- */

.gallery { background: var(--bg-alt); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.info-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.info-block + .info-block { margin-top: 18px; }
.info-block h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--text); }
.info-block h3 svg { width: 20px; height: 20px; color: var(--accent); }
.info-block p, .info-block li { color: var(--muted); }
.info-block ul { list-style: none; }
.info-block li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.info-block li:last-child { border-bottom: none; }
.info-block li.zeit-oben { border-bottom: none; padding-bottom: 0; }
.review-btn { margin-top: 18px; font-size: 0.92rem; }
.review-btn svg { color: #f5b942; }
.info-block li span:last-child { color: var(--text); white-space: nowrap; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }
.field-error { margin-top: 8px; font-size: 0.86rem; color: #f1a0a0; }
.input-fehler { border-color: #d95757 !important; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.map-wrap {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(35%); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-inner p { color: var(--muted); font-size: 0.88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; }
.footer-links a { color: var(--muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- WhatsApp-Knopf schwebend ---------- */

.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #06280f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, background 0.18s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); background: #2bd66e; }
.whatsapp-fab svg { width: 30px; height: 30px; }

/* ---------- Unterseiten (Leistungen) ---------- */

.subpage-hero {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px;
}
/* Unterseiten: Inhalt als zentrierte Spalte */
.subpage-hero .container,
.breadcrumb.container { width: min(800px, 92%); }
.subpage-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
.subpage-hero .lead { color: var(--muted); max-width: 640px; margin-top: 16px; font-size: 1.08rem; }
.subpage-hero .hero-actions { margin-top: 28px; margin-bottom: 0; }

.prose { max-width: 800px; margin-inline: auto; }
.prose h2 { margin: 40px 0 14px; color: var(--text); }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose strong { color: inherit; }
.prose ul { margin: 0 0 14px 22px; color: var(--muted); }
.prose li { margin-bottom: 6px; }

.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.sub-head { max-width: 800px; margin-inline: auto; margin-bottom: 40px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); margin-top: 12px; }

.cta-band {
  max-width: 800px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cta-band h2 { font-size: 1.6rem; }
.cta-band p { color: var(--muted); margin-top: 6px; }
.cta-band .hero-actions { margin: 0; }

.card .card-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.breadcrumb { padding: 18px 0 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */

.legal-page { padding: 70px 0 90px; max-width: 780px; }
.legal-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 30px; }
.legal-page h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal-page p, .legal-page li { color: var(--muted); margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .tuning::before { background-attachment: scroll; }
}

@media (max-width: 900px) {
  section { padding: 64px 0; }

  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 10px 4%;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 10px; }

  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 90px 0; }
}
