/* =========================================
   Autohaus Schilling – Haupt-Stylesheet
   ========================================= */

/* --- Grundlegendes Reset & Basis --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  background: #fff;
}

a { color: #c8a800; text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* --- HEADER --- */
header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px;
}

.logo img { height: 120px; width: auto; }

/* --- NAVIGATION --- */
nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

nav ul li a {
  display: block;
  padding: 10px 16px;
  color: #333;
  font-weight: 600;
  font-size: 15px;
  border-radius: 3px;
  transition: background .2s, color .2s;
}

nav ul li a:hover,
nav ul li a.active {
  background: #ffcc00;
  color: #222;
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: .3s;
}

/* --- HERO SLIDER --- */
.hero {
  position: relative;
  overflow: hidden;
  background: #111;
}

.slides { display: flex; height: 480px; }

.slide {
  min-width: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}

.slider-controls {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 12px; height: 12px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  transition: background .3s;
}
.dot.active { background: #fff; }

/* --- CALL-TO-ACTION BANNER --- */
.cta-banner {
  background: #ffcc00;
  color: #222;
  padding: 28px 20px;
}
.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: 22px; margin-bottom: 6px; }
.cta-banner p  { font-size: 15px; opacity: .85; }
.cta-btn {
  background: #282828;
  color: #fff;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  transition: background .2s;
  display: inline-block;
}
.cta-btn:hover { background: #000; text-decoration: none; color: #ffcc00; }

/* --- SECTION HEADINGS --- */
.section-title {
  text-align: center;
  margin: 50px 0 30px;
  font-size: 28px;
  color: #222;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #ffcc00;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* --- GRID CARDS (Kfz-Vertrieb / Service) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 40px;
}

/* Kfz-Vertrieb: Bilder vollständig anzeigen (keine Beschneidung) */
.card-grid-vertrieb .card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background: #f8f8f8;
  padding: 8px;
}

/* Service-Karten dürfen weiter cover nutzen */
.card-grid-service .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .25s;
}
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); }

/* Fallback für card-img ohne Klasse */
.card img { width: 100%; height: 200px; object-fit: cover; }

.card-body { padding: 16px; }
.card-body h3 { font-size: 15px; margin-bottom: 6px; color: #222; font-weight: 700; }
.card-body p  { font-size: 14px; color: #666; }

/* --- KUNDENMEINUNGEN --- */
.testimonials {
  background: #f7f7f7;
  padding: 50px 20px;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background: #fff;
  border-left: 4px solid #ffcc00;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.testimonial h4 { margin-bottom: 8px; color: #b8960e; }
.testimonial p  { font-size: 14px; color: #555; font-style: italic; }

/* --- INTRO COLUMNS (Zeichnung + Text + Aktuelles) --- */
.intro-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 50px 0;
  align-items: start;
}
.intro-cols img { border-radius: 4px; }
.intro-cols h3 { color: #b8960e; margin-bottom: 10px; }

/* --- PAGE HEADER BANNER --- */
.page-header {
  background-image: url('../images/autohaus-schilling-slide-1.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 20px;
}
.page-header h1 {
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* --- CONTENT AREA --- */
.content-area {
  padding: 50px 0;
}
.content-area h1,
.content-area h2 { color: #222; margin-bottom: 16px; }
.content-area h1 { font-size: 30px; }
.content-area h2 { font-size: 24px; margin-top: 30px; }
.content-area p  { margin-bottom: 14px; }
.content-area ul { padding-left: 22px; margin-bottom: 14px; }
.content-area ul li { margin-bottom: 6px; }
.content-area h3 { font-size: 20px; margin-top: 24px; margin-bottom: 10px; color: #333; }
.content-area h4 { font-size: 17px; margin-top: 20px; margin-bottom: 8px; color: #333; }
.content-area h5 { font-size: 15px; margin-top: 16px; margin-bottom: 6px; color: #333; }
.content-area a  { color: #b8960e; }

/* --- FAHRZEUGE PAGE --- */
.vehicles-box {
  background: #f0f4f8;
  border-radius: 8px;
  padding: 50px 40px;
  text-align: center;
  max-width: 700px;
  margin: 50px auto;
}
.vehicles-box h2 { color: #222; margin-bottom: 16px; font-size: 26px; }
.vehicles-box p  { color: #555; margin-bottom: 24px; font-size: 16px; }
.vehicles-box .mobile-btn {
  display: inline-block;
  background: #ffcc00;
  color: #222;
  padding: 14px 36px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 17px;
  transition: background .2s;
}
.vehicles-box .mobile-btn:hover { background: #e6b800; text-decoration: none; color: #111; }
.vehicles-box .mobile-logo {
  margin: 20px auto 0;
  max-width: 160px;
}

/* --- KONTAKT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 50px 0;
}
.contact-info h2 { color: #222; margin-bottom: 16px; }
.contact-info p  { margin-bottom: 10px; }
.contact-info strong { color: #b8960e; }
.contact-map iframe { width: 100%; height: 380px; border: 0; border-radius: 6px; }

/* --- FOOTER --- */
footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 30px 20px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #bbb; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-copy { font-size: 14px; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .slides { height: 240px; }

  .header-inner { flex-wrap: wrap; }

  nav { width: 100%; display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 2px; padding-bottom: 10px; }
  nav ul li a { border-radius: 0; }

  .nav-toggle { display: flex; }

  .cta-banner .container { flex-direction: column; text-align: center; }

  .contact-grid { grid-template-columns: 1fr; }

  .page-header h1 { font-size: 28px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .intro-cols { grid-template-columns: 1fr; }

  .vehicles-box { padding: 30px 20px; }

  /* Card-Grids auf Mobilgeräten einspaltig */
  .card-grid { grid-template-columns: 1fr; }
}

@media (min-width: 600px) and (max-width: 960px) {
  /* Tablets: 2 Spalten */
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
