/* ============================================================
   Tobaben Automobile — Stylesheet
   Schwarz / Anthrazit / weiße Typo, Akzent: warmes Champagner-Gold
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #131313;
  --bg-card: #181818;
  --bg-alt: #0f0f0f;
  --border: #262626;
  --border-light: #2f2f2f;
  --text: #f5f5f5;
  --text-muted: #a1a1a1;
  --text-dim: #6e6e6e;
  --accent: #c9a76a;       /* warmes Champagner-Gold, kein Auto-Haendler-Rot */
  --accent-hover: #d6b67a;
  --accent-soft: rgba(201, 167, 106, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --radius-lg: 16px;
  --max-w: 1200px;
  --font: 'Inter', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.2rem; margin-bottom: .35em; }
p { margin: 0 0 1em; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--text-muted); }
.center { text-align: center; }

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.18em; text-transform: uppercase; }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.95rem;
}
.nav a {
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s;
  transform-origin: left;
}
.nav a:hover::after { transform: scaleX(1); }

.cta-mini {
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  background: transparent;
}
.cta-mini:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

@media (max-width: 760px) {
  .nav { display: none; }
  .cta-mini { padding: 6px 10px; font-size: 0.82rem; }
  .brand-sub { display: none; }
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  border: 1px solid transparent;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-primary { background: var(--accent); color: #1a1a1a; }
.btn-primary:hover { background: var(--accent-hover); color: #000; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-light); }
.btn-ghost:hover { border-color: var(--text); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.05);
  z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.75) 60%, var(--bg) 100%);
  z-index: -1;
}
.hero-inner {
  padding: 100px 24px 80px;
  max-width: 900px;
}
.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  margin-bottom: 0.4em;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.hero-meta span { white-space: nowrap; }

/* ============== SECTIONS ============== */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head h2 { margin-bottom: 12px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 60px 0; }
}

.lead { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.6em; }

/* ============== CAR GRID ============== */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.car-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.car-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(201, 167, 106, 0.08);
}
.car-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.car-card-link:hover { color: inherit; }
.car-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: #1f1f1f;
  position: relative;
}
.car-image-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.car-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.car-title { font-size: 1.2rem; margin-bottom: 4px; }
.car-variant {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.car-specs span { position: relative; }
.car-specs span + span::before {
  content: '·';
  position: absolute;
  left: -10px;
  color: var(--text-dim);
}
.car-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.car-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.car-link { font-size: 0.9rem; color: var(--text-muted); }

.autoscout-cta { text-align: center; margin-top: 50px; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
}

/* ============== USP / PROCESS ============== */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.usp {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.usp h3 { color: var(--accent); font-size: 1rem; margin-bottom: 6px; }
.usp p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.award-box {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.award-box img {
  width: 110px;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}
.award-box strong { color: var(--accent); display: block; margin-bottom: 4px; }
.award-box p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
@media (max-width: 540px) {
  .award-box { grid-template-columns: 1fr; text-align: center; }
  .award-box img { margin: 0 auto; }
}

/* ============== EINDRUECKE-GALERIE ============== */
.gallery-section { padding: 90px 0; }
.impression-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.impression-item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  position: relative;
  border: 1px solid var(--border);
}
.impression-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s, opacity .3s;
  display: block;
}
.impression-item:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}
.impression-tall { grid-row: span 2; }
.impression-wide { grid-column: span 2; }
@media (max-width: 900px) {
  .impression-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .impression-wide, .impression-tall { grid-column: span 1; grid-row: span 1; }
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-num {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a1a;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
}
.step h3 { margin-bottom: 4px; }
.step p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ============== CONTACT ============== */
.contact-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 18px;
  margin: 28px 0;
}
.contact-list dt { color: var(--text-muted); font-size: 0.9rem; }
.contact-list dd { margin: 0; font-size: 1rem; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form.compact { padding: 22px; }
.contact-form h3 { margin-bottom: 8px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.req { color: var(--accent); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s, background .2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: #1c1c1c;
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.form-status { margin: 0; font-size: 0.9rem; min-height: 1.2em; }
.form-status.success { color: #6bd07c; }
.form-status.error { color: #f08a8a; }
.form-hint { font-size: 0.8rem; color: var(--text-dim); margin: 0; }

/* ============== CAR DETAIL ============== */
.car-detail { padding: 50px 0 90px; }
.back-link {
  display: inline-block;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.92rem;
}
.car-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.car-detail-head h1 { margin-bottom: 6px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.car-detail-variant { color: var(--text-muted); margin: 0; }
.car-detail-price { text-align: right; }
.price-big {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  display: block;
}
.price-sub { font-size: 0.85rem; color: var(--text-muted); }

/* Gallery */
.gallery {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-main {
  position: relative;
  background: #000;
  aspect-ratio: 4/3;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.gallery-nav:hover { background: rgba(0,0,0,0.85); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.thumb {
  flex: 0 0 90px;
  height: 68px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #000;
  transition: border-color .2s, opacity .2s;
  opacity: 0.6;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.is-active { border-color: var(--accent); opacity: 1; }

.car-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .car-detail-grid { grid-template-columns: 1fr; }
  .car-detail-head { flex-direction: column; align-items: flex-start; }
  .car-detail-price { text-align: left; }
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 16px 0 30px;
}
.spec-grid dt { color: var(--text-muted); font-size: 0.9rem; }
.spec-grid dd { margin: 0; font-weight: 600; }
.car-detail-cta { margin-top: 20px; }
.car-detail-side {
  position: sticky;
  top: 90px;
}
.quick-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.quick-contact a { color: var(--text); }

/* ============== LEGAL PAGES ============== */
.legal h1 { margin-bottom: 30px; }
.legal h2 { font-size: 1.25rem; margin: 2em 0 0.6em; color: var(--accent); }
.legal p, .legal ul { color: var(--text-muted); }
.legal ul { padding-left: 1.4em; }

.error h1 { font-size: 6rem; color: var(--accent); margin-bottom: 0; }
.error .lead { font-size: 1.4rem; color: var(--text); }

/* ============== FOOTER ============== */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 4px; }
.footer-name { font-weight: 700; font-size: 1.05rem; }
.footer-slogan { color: var(--text-muted); font-size: 0.88rem; }
.footer-col strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
}
.footer-col div { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 4px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
