/* ============================================================
   centautos.com – Style
   Farben: Dunkelblau #0b1d3a, Blau #1e7fff (aus Logo)
   ============================================================ */

* { box-sizing: border-box; }

:root {
  --dark:      #0b1d3a;
  --blue:      #1e7fff;
  --blue-dark: #1466d6;
  --text:      #1a1a1a;
  --muted:     #6b7280;
  --border:    #e5e7eb;
  --bg:        #f7f8fa;
  --card:      #ffffff;
  --success:   #16a34a;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- HEADER ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo img { height: 44px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.main-nav .nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--blue-dark); }

.hamburger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #162e5c 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 16px;
  line-height: 1.2;
  font-weight: 700;
}
.hero h1 span { color: var(--blue); }
.hero p {
  font-size: 1.1rem;
  max-width: 640px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-badge {
  background: rgba(30,127,255,0.2);
  border: 1px solid rgba(30,127,255,0.4);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: 0;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }

.btn-secondary {
  background: #fff;
  color: var(--dark);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.btn-block { display: block; width: 100%; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- SECTIONS ---------- */
.section { padding: 60px 0; }
.section-alt { background: #fff; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h1,
.section-header h2 {
  font-size: 1.8rem;
  color: var(--dark);
  margin: 0 0 12px;
}
.section-header p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- AUTO-KARTEN (mobile.de-Style) ---------- */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.auto-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.auto-card:hover {
  box-shadow: 0 6px 20px rgba(11,29,58,0.08);
  transform: translateY(-2px);
}
.auto-card a { color: inherit; text-decoration: none; display: block; }

.auto-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef1f5;
  object-fit: cover;
}
.auto-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.auto-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.auto-card-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
  margin: 8px 0;
}
.auto-card-facts {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.auto-card-location {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: auto;
}

/* ---------- ANZEIGEN-SEITE ---------- */
.auto-detail-header {
  background: var(--dark);
  color: #fff;
  padding: 32px 0;
}
.auto-detail-header h1 {
  font-size: 1.8rem;
  margin: 0 0 8px;
  color: #fff;
}
.auto-detail-meta {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}
.auto-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  margin: 12px 0 0;
}

.auto-detail-body { padding: 40px 0; }
.auto-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.auto-detail-image {
  width: 100%;
  border-radius: 10px;
  background: #eef1f5;
  margin-bottom: 24px;
}

.auto-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.auto-detail-card h2 {
  font-size: 1.1rem;
  margin: 0 0 16px;
  color: var(--dark);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.auto-detail-card dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 0;
}
.auto-detail-card dt { color: var(--muted); font-size: 0.9rem; }
.auto-detail-card dd { margin: 0; font-size: 0.95rem; }

.auto-detail-desc { white-space: pre-line; line-height: 1.7; }

.auto-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin: 32px 0;
}

/* ---------- FORMULAR ---------- */
.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,127,255,0.15);
}

/* ---------- HINWEIS-BANNER ---------- */
.disclaimer {
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 32px;
}

.warn-banner {
  background: #fef3c7;
  color: #92400e;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: 3px 0;
  text-decoration: none;
}
.footer-col a:hover { color: var(--blue); text-decoration: none; }
.footer-col p { font-size: 0.9rem; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .auto-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .header-inner { height: 60px; }
  .logo img { height: 36px; }
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; border-radius: 8px; }
  .main-nav a:hover { background: var(--bg); }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.6rem; }
  .hero p  { font-size: 1rem; }
  .section { padding: 40px 0; }
  .section-header h1,
  .section-header h2 { font-size: 1.4rem; }
  .auto-detail-header h1 { font-size: 1.3rem; }
  .auto-detail-price { font-size: 1.5rem; }
  .auto-detail-card dl { grid-template-columns: 1fr; gap: 2px 0; }
  .auto-detail-card dt { margin-top: 10px; }
  .form-wrapper { padding: 20px; }
}