:root {
  --blue-dark: #0d2340;
  --blue: #14335e;
  --orange: #e8621a;
  --orange-dark: #c9500f;
  --gray-bg: #f4f6f8;
  --gray-border: #dfe3e8;
  --text: #1c2733;
  --text-muted: #5a6774;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(13, 35, 64, 0.08);
  --shadow-hover: 0 6px 18px rgba(13, 35, 64, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--gray-bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.topbar {
  background: var(--blue-dark);
  color: #cdd8e6;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
  gap: 8px;
}
.topbar a { color: #cdd8e6; }
.topbar a:hover { color: var(--white); }
.topbar-info { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-info span { white-space: nowrap; }

/* Header / nav */
header.main-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-link img { height: 52px; width: auto; border-radius: 4px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .brand { font-size: 20px; font-weight: 700; color: var(--blue-dark); }
.logo-text .tagline { font-size: 12px; color: var(--text-muted); }

nav.main-nav { flex: 1; }
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  color: var(--blue-dark);
}
nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--gray-bg);
  color: var(--orange);
}

.header-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; border: 2px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--blue-dark);
}

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 65%);
  color: var(--white);
  padding: 48px 0 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: 34px; margin: 0 0 12px; }
.hero p { font-size: 16px; color: #cdd8e6; margin: 0 0 24px; max-width: 46ch; }
.hero-usp { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.hero-usp div { font-size: 13px; color: #cdd8e6; display: flex; align-items: center; gap: 8px; }

/* Vehicle finder */
.finder-card {
  background: var(--white);
  color: var(--text);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-hover);
}
.finder-card h2 { margin: 0 0 6px; font-size: 18px; color: var(--blue-dark); }
.finder-card .hint { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; }
.finder-row { display: flex; flex-direction: column; gap: 12px; }
.finder-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--white);
  color: var(--text);
}
.finder-row select:disabled { background: var(--gray-bg); color: #99a3ad; }
.finder-card .btn { width: 100%; margin-top: 6px; padding: 13px; font-size: 15px; }
.finder-result {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: #fff4ec;
  border: 1px solid #ffd9bc;
  font-size: 13px;
  color: #7a3c12;
  display: none;
}
.finder-result.show { display: block; }

/* Section headings */
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: 28px; color: var(--blue-dark); margin: 0 0 10px; }
.section-head p { color: var(--text-muted); margin: 0; }

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cat-card-photo { height: 130px; overflow: hidden; background: var(--gray-bg); }
.cat-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-card-body { padding: 18px 22px 22px; }
.cat-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--blue-dark); }
.cat-card p { margin: 0 0 12px; font-size: 13px; color: var(--text-muted); }
.cat-card .link { font-size: 13px; font-weight: 700; color: var(--orange); }

/* Product grid */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.prod-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.prod-card .thumb {
  height: 110px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-card h3 { font-size: 15px; margin: 0 0 6px; color: var(--text); }
.prod-card .artnr { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.prod-card .desc { font-size: 13px; color: var(--text-muted); flex: 1; margin: 0 0 14px; }
.prod-card .price { font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; font-size: 15px; }
.prod-card .btn { width: 100%; }

.placeholder-note {
  font-size: 12px;
  color: #99621d;
  background: #fff8ec;
  border: 1px dashed #f0c98a;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

/* Brand badges (Kategorie-Detailseite) */
.brand-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.brand-badge {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-width: 130px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.brand-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.brand-badge img { max-height: 32px; max-width: 130px; width: auto; object-fit: contain; }
.brand-badge-text span { font-weight: 700; color: var(--blue-dark); font-size: 14px; }

/* Brand grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.brand-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--blue-dark);
  cursor: pointer;
}
.brand-card:hover { box-shadow: var(--shadow-hover); }

/* USP bar */
.usp-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}
.usp-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px 20px;
}
.usp-item { text-align: center; font-size: 13px; color: var(--text-muted); }
.usp-item .num { font-size: 24px; margin-bottom: 6px; display: block; }
.usp-item strong { display: block; color: var(--blue-dark); font-size: 14px; margin-bottom: 2px; }

/* Contact / forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.info-card, .form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.info-card h3 { margin-top: 0; color: var(--blue-dark); }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 8px 0; border-bottom: 1px solid var(--gray-border); font-size: 14px; }
.info-list li:last-child { border-bottom: none; }
.info-list .label { color: var(--text-muted); display: block; font-size: 12px; }

.form-card form { display: flex; flex-direction: column; gap: 14px; }
.form-card label { font-size: 13px; font-weight: 600; color: var(--blue-dark); }
.form-card input, .form-card textarea, .form-card select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}
.form-card textarea { resize: vertical; min-height: 110px; }

/* Map / anfahrt */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: none;
  width: 100%;
  height: 320px;
}
.map-consent {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.map-consent p {
  max-width: 46ch;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.map-consent a { color: var(--blue); text-decoration: underline; }

/* Simple content pages */
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { color: var(--blue-dark); }
.prose h2 { color: var(--blue-dark); font-size: 20px; margin-top: 32px; }
.prose p, .prose li { color: var(--text-muted); font-size: 15px; }

.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--blue); }

/* Footer */
footer {
  background: var(--blue-dark);
  color: #b7c4d6;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: var(--white); font-size: 15px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 13px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .usp-bar .container { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; }
  .header-inner { flex-wrap: wrap; }
  .header-cta .btn-outline { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
