/* =========================================================
   Autohaus Mühlenberg GmbH – Stylesheet
   ========================================================= */

:root {
  --blue: #0a2a43;
  --blue-700: #103b5c;
  --accent: #e63a2e;
  --accent-dark: #c52a20;
  --gold: #d4a72c;
  --bg: #f5f6f8;
  --white: #ffffff;
  --text: #1f2a33;
  --muted: #66747f;
  --line: #e2e6ea;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(10, 42, 67, 0.08);
  --shadow-lg: 0 18px 50px rgba(10, 42, 67, 0.16);
  --max: 1200px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--blue);
  color: #cfe0ee;
  font-size: 0.86rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #cfe0ee; }
.topbar a:hover { color: #fff; }
.topbar .tb-links { display: flex; gap: 18px; align-items: center; }
.topbar .tb-links span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header / Nav ---------- */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--blue);
  font-size: 1.25rem;
  letter-spacing: 0.3px;
}
.logo .mark {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.3rem;
  box-shadow: var(--shadow);
}
.logo small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 600; letter-spacing: 2px; }

.menu { display: flex; gap: 4px; list-style: none; align-items: center; }
.menu a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text);
  transition: 0.2s;
}
.menu a:hover, .menu a.active { background: var(--bg); color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 8px;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 3px; background: var(--blue); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  font-size: 1rem;
  transition: 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-dark { background: var(--blue); color: #fff; }
.btn-dark:hover { background: var(--blue-700); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(10,42,67,0.92) 0%, rgba(10,42,67,0.65) 55%, rgba(10,42,67,0.45) 100%),
    url("../img/hero.jpg") center/cover no-repeat,
    linear-gradient(135deg, #0a2a43, #103b5c);
  color: #fff;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-inner { max-width: 640px; padding: 70px 0; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px; border-radius: 30px;
  font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 18px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.18rem; color: #d9e4ee; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Quick search bar ---------- */
.quicksearch {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin: -45px auto 0;
  position: relative;
  z-index: 5;
  max-width: var(--max);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.quicksearch .field { display: flex; flex-direction: column; gap: 6px; }
.quicksearch label { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.quicksearch select, .quicksearch input {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  font-family: var(--font);
}

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head .kicker { color: var(--accent); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 0.82rem; }
.section-head h2 { font-size: 2.1rem; color: var(--blue); margin: 8px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Vehicle grid ---------- */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.car-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.25s;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.car-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.car-photo { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg,#dfe6ec,#c4d0da); overflow: hidden; }
.car-photo svg, .car-photo img { width: 100%; height: 100%; object-fit: cover; }
.car-card:hover .car-photo img { transform: scale(1.04); }
.car-photo img { transition: transform 0.4s ease; }
.car-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 5px 10px; border-radius: 6px; letter-spacing: 0.5px;
}
.car-badge.green { background: #1f9d55; }
.car-badge.gold { background: var(--gold); color: #2a2200; }
.car-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.car-body h3 { font-size: 1.2rem; color: var(--blue); }
.car-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.car-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.car-specs span {
  background: var(--bg); border: 1px solid var(--line);
  font-size: 0.78rem; padding: 4px 9px; border-radius: 20px; color: var(--text);
}
.car-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--blue); }
.price small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 26px; }
.feature {
  background: #fff; padding: 30px 26px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line); text-align: center;
}
.feature .ico {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 1.8rem;
}
.feature h3 { color: var(--blue); margin-bottom: 8px; font-size: 1.2rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Brands strip ---------- */
.brands { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands .row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: center; }
.brands .brand { font-weight: 800; font-size: 1.4rem; color: #9aa7b1; letter-spacing: 1px; transition: 0.2s; }
.brands .brand:hover { color: var(--blue); }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split.alt { background: var(--white); }
.split h2 { color: var(--blue); font-size: 2rem; margin-bottom: 14px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.split ul { list-style: none; margin: 18px 0; }
.split ul li { padding: 8px 0 8px 32px; position: relative; }
.split ul li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: #fff; background: var(--accent); width: 22px; height: 22px;
  border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
}
.split-visual {
  aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: linear-gradient(135deg,#dfe6ec,#aebccb);
}
.split-visual svg, .split-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stats ---------- */
.stats { background: var(--blue); color: #fff; }
.stats .row { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; text-align: center; }
.stats .num { font-size: 2.8rem; font-weight: 800; color: var(--gold); }
.stats .lbl { color: #cfe0ee; font-size: 0.98rem; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 26px; }
.testi {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }
.testi p { color: var(--text); font-style: italic; margin-bottom: 16px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.testi .who strong { display: block; color: var(--blue); }
.testi .who small { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #fff; text-align: center;
}
.cta-band h2 { font-size: 2.2rem; margin-bottom: 12px; }
.cta-band p { font-size: 1.1rem; margin-bottom: 26px; opacity: 0.95; }
.cta-band .btn-light { background: #fff; color: var(--accent); }
.cta-band .btn-light:hover { background: #f1f1f1; }

/* ---------- Page header ---------- */
.page-head {
  background: linear-gradient(115deg, rgba(10,42,67,0.95), rgba(16,59,92,0.85)), linear-gradient(135deg,#0a2a43,#103b5c);
  color: #fff; padding: 60px 0;
}
.page-head h1 { font-size: 2.6rem; margin-bottom: 8px; }
.breadcrumb { color: #b9cbdb; font-size: 0.9rem; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Filter layout ---------- */
.shop { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); position: sticky; top: 95px;
}
.filters h3 { color: var(--blue); margin-bottom: 16px; font-size: 1.1rem; }
.filter-group { margin-bottom: 18px; }
.filter-group label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.filter-group select, .filter-group input {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font);
}
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.shop-toolbar .count { color: var(--muted); }

/* ---------- Service list ---------- */
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.service-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); border-left: 4px solid var(--accent);
}
.service-item h3 { color: var(--blue); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.service-item .price-tag { color: var(--accent); font-weight: 800; margin-top: 10px; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; }
.form-field label .req { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font); font-size: 1rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230,58,46,0.12);
}
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.checkbox-row input { width: auto; margin-top: 4px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.form-success {
  display: none; background: #e7f6ec; border: 1px solid #b7e1c4; color: #1f7a43;
  padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600;
}

/* ---------- Contact info cards ---------- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 22px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-card .ico { font-size: 1.8rem; margin-bottom: 10px; }
.info-card h3 { color: var(--blue); margin-bottom: 6px; }
.info-card p { color: var(--muted); }
.info-card a { color: var(--accent); font-weight: 600; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Hours table ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--accent); font-weight: 700; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 26px; }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); text-align: center; }
.member .ph { aspect-ratio: 1/1; background: linear-gradient(135deg,#0a2a43,#103b5c); display: grid; place-items: center; color: #fff; font-size: 3rem; font-weight: 700; overflow: hidden; }
.member .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.member:hover .ph img { transform: scale(1.05); }
.member .body { padding: 18px; }
.member h3 { color: var(--blue); font-size: 1.1rem; }
.member .role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.member small { color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 3px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.tl-item .year { font-weight: 800; color: var(--accent); }
.tl-item h3 { color: var(--blue); margin: 2px 0 4px; }
.tl-item p { color: var(--muted); }

/* ---------- Legal text ---------- */
.legal { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.legal h2 { color: var(--blue); margin: 26px 0 10px; font-size: 1.35rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text); margin-bottom: 10px; }
.legal ul { margin-left: 22px; }
.legal a { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--blue); color: #c2d2e0; padding: 60px 0 0; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo small { color: #8fa6ba; }
.footer p { font-size: 0.92rem; line-height: 1.7; }
.footer .social { display: flex; gap: 10px; margin-top: 14px; }
.footer .social a { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,0.1); display: grid; place-items: center; transition: 0.2s; }
.footer .social a:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding: 20px 0; font-size: 0.86rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu a { padding: 14px; }
  .burger { display: block; }
  .quicksearch { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; }
  .stats .row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 520px) {
  .quicksearch { grid-template-columns: 1fr; }
  .stats .row { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .topbar .tb-links { gap: 12px; }
  .hero h1 { font-size: 1.9rem; }
}
