/* ==========================================================================
   classic-template — Autaxo webgen
   Warm, family-run heritage dealership: cream surfaces, espresso ink,
   Lora serif headings, Inter body. Brand accent is injected at generation
   time (#365b80). Fonts come from the central webgen asset CDN
   (first-party, no trackers, no cookies).
   ========================================================================== */

/* --- Web fonts (central webgen asset CDN) ---------------------------------- */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://webgenassets.garage.infra.autaxo.de/fonts/lora/lora-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://webgenassets.garage.infra.autaxo.de/fonts/inter/inter-latin-wght-normal.woff2') format('woff2');
}

/* --- Design tokens ---------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --accent: #365b80;
  /* Darkened accent: text on light surfaces + backgrounds carrying white text
     (raw accents like the default #d97706 are only ~3.2:1 on white). */
  --accent-strong: color-mix(in srgb, var(--accent) 72%, #000);
  /* Lightened accent: accent-colored text on dark surfaces (footer, CTA band). */
  --accent-soft: color-mix(in srgb, var(--accent) 55%, #fff);
  /* Role token: accent TEXT on the current scheme's surfaces. */
  --accent-text: var(--accent-strong);
  --accent-fg: #ffffff;

  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Warm cream & espresso palette */
  --ink: #2b2118;        /* warm espresso — headings */
  --body: #5b5044;       /* warm brown-grey — body text */
  --muted: #877a69;      /* warm muted */
  --line: #e6ddcf;       /* warm hairlines */
  --bg: #faf7f2;         /* warm cream */
  --bg-soft: #f1ebe1;    /* deeper cream — alt sections, cards */
  --bg-dark: #241a10;    /* warm dark brown — footer, CTA band */
  --bg-dark-soft: #2f2418;
  --cream: #f3ecdf;      /* light ink on dark-brown surfaces */
  --cream-dim: #cbbda8;  /* secondary text on dark-brown surfaces */

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(63, 48, 32, .06), 0 2px 6px rgba(63, 48, 32, .06);
  --shadow-md: 0 10px 24px -8px rgba(63, 48, 32, .16), 0 4px 10px -4px rgba(63, 48, 32, .08);
  --shadow-lg: 0 24px 48px -16px rgba(63, 48, 32, .28);

  /* Web-component theming (inherits through each widget's shadow DOM) */
  --autaxo-inventory-bg: transparent;
  --autaxo-inventory-text: var(--ink);
  --autaxo-inventory-title: var(--ink);
  --autaxo-inventory-muted: var(--muted);
  --autaxo-inventory-price-text: var(--ink);
  --autaxo-inventory-card-bg: var(--bg);
  --autaxo-inventory-card-hover-border: var(--accent);
  --autaxo-inventory-image-bg: var(--bg-soft);
  --autaxo-inventory-header-bg: transparent;
  --autaxo-inventory-input-bg: var(--bg);
  --autaxo-inventory-input-border: var(--line);
  --autaxo-inventory-input-text: var(--ink);
  --autaxo-inventory-input-focus: var(--accent-strong);
  --autaxo-inventory-btn-border: var(--line);
  --autaxo-inventory-btn-text: var(--ink);
  --autaxo-inventory-btn-hover-bg: var(--bg-soft);
  --autaxo-inventory-table-border: var(--line);

  --autaxo-detail-bg: var(--bg);
  --autaxo-detail-text: var(--ink);
  --autaxo-detail-muted: var(--muted);
  --autaxo-detail-accent: var(--accent-strong);
  --autaxo-detail-accent-fg: var(--accent-fg);
  --autaxo-detail-border: var(--line);
  --autaxo-detail-image-bg: var(--bg-soft);
  --autaxo-detail-price-text: var(--ink);

  --autaxo-contact-bg: transparent;
  --autaxo-contact-fg: var(--ink);
  --autaxo-contact-muted: var(--muted);
  --autaxo-contact-accent: var(--accent-strong);
  --autaxo-contact-accent-fg: var(--accent-fg);
  --autaxo-contact-border: var(--line);
  --autaxo-contact-border-focus: var(--accent-strong);
  --autaxo-contact-field-bg: var(--bg);
  --autaxo-inventory-font: var(--font-body);
  --autaxo-detail-font: var(--font-body);
  --autaxo-contact-font: var(--font-body);
  --autaxo-radius: var(--radius);
}

/* --- Dark scheme (auto via OS preference; no JS, no storage) ---------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3ecdf;        /* cream ink */
    --body: #cfc3b1;
    --muted: #a09077;
    --line: #3a2f21;
    --bg: #1b150e;         /* warm dark */
    --bg-soft: #241c13;    /* warm dark surfaces */
    --bg-dark: #120d07;
    --bg-dark-soft: #1d1610;
    --cream: #f3ecdf;
    --cream-dim: #b5a68e;

    /* Accent text needs the LIGHT variant on dark surfaces. */
    --accent-text: var(--accent-soft);
    --autaxo-inventory-input-focus: var(--accent-soft);
    --autaxo-contact-border-focus: var(--accent-soft);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .45);
    --shadow-md: 0 10px 24px -8px rgba(0, 0, 0, .6), 0 4px 10px -4px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .7);
  }
  /* Dealer logos are often dark-on-transparent — keep them legible on the
     dark header with a subtle light chip. */
  .brand img { background: #ffffff; border-radius: 8px; padding: 4px 8px; }
}

/* --- Reset / base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ink); line-height: 1.2; font-weight: 600; letter-spacing: .002em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); font-weight: 650; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.18rem; font-weight: 650; }
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 650; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- Layout ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(52px, 7.5vw, 96px); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(36px, 5vw, 60px); }
.narrow { max-width: 740px; }
.center { text-align: center; margin-inline: auto; }

/* --- Eyebrow + section heads -------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}
/* Thin accent rule under the serif section headings. */
.section-head h2::after,
.page-hero h1::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  background: var(--accent-text);
  margin-top: 16px;
}
.section-head.center h2::after { margin-inline: auto; }
.section-head { max-width: 700px; margin-bottom: clamp(30px, 5vw, 52px); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 16px; font-size: 1.08rem; color: var(--muted); }
.lead { font-size: 1.16rem; color: var(--muted); }

/* --- Buttons ------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 14px 28px; border-radius: 18px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--accent-strong); color: var(--accent-fg); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent-strong) 86%, #000); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 28%, var(--line)); }
.btn--outline:hover { border-color: var(--accent-text); color: var(--accent-text); background: var(--bg-soft); }
.btn--ghost-cream { background: transparent; color: var(--cream); border-color: color-mix(in srgb, var(--cream) 38%, transparent); }
.btn--ghost-cream:hover { background: color-mix(in srgb, var(--cream) 12%, transparent); border-color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Header / nav ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-family: var(--font-body); font-weight: 500; font-size: .97rem; color: var(--ink);
  padding: 10px 14px; border-radius: 8px; transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--accent-text); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--accent-text); }
.nav .btn { padding: 11px 22px; }
.nav-cta { margin-left: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px;
    box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav a { padding: 13px 12px; font-size: 1.05rem; }
  .nav .btn { margin-top: 8px; }
  .nav-cta { margin-left: 0; }
  body.nav-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --- Split hero (text on cream, warm image right) ------------------------------- */
.hero { padding-block: clamp(48px, 7vw, 96px) 0; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5.5vw, 64px); align-items: center; padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { margin-bottom: 18px; font-size: clamp(3rem, 6vw, 4.5rem); }
.hero__tagline { font-size: clamp(1.3rem, 2.8vw, 1.8rem); color: var(--body); }
.hero .btn-row { margin-top: 36px; }

/* Heritage strip under the hero */
.heritage-strip {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 18px;
}
.heritage-strip p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--body);
  text-align: center;
}
.heritage-strip .dot { color: var(--accent-text); font-style: normal; padding-inline: 10px; }

/* --- Trust items -------------------------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(22px, 3vw, 36px); }
.trust__item { border-top: 1px solid var(--line); padding-top: 20px; }
.trust__item h3 { font-size: 1.12rem; margin-bottom: 8px; }
.trust__item h3::before { content: ""; display: block; width: 26px; height: 2px; background: var(--accent-text); margin-bottom: 14px; }
.trust__item p { font-size: .96rem; color: var(--muted); }

/* --- Featured inventory --------------------------------------------------------------- */
.inventory-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.inventory-head .section-head { margin-bottom: 0; }

/* --- Pull quote ------------------------------------------------------------------------ */
.quote-band { padding-block: clamp(56px, 8vw, 100px); }
.quote-band blockquote { max-width: 780px; margin-inline: auto; text-align: center; }
.quote-band blockquote::before {
  content: ""; display: block; width: 54px; height: 2px;
  background: var(--accent-text); margin: 0 auto 26px;
}
.quote-band blockquote p {
  font-family: var(--font-heading); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.45; color: var(--ink);
}
.quote-band cite {
  display: block; margin-top: 20px; font-style: normal;
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* --- Services (warm cards, thin borders, serif titles) ---------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-box {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.service-box:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-md); }
.service-title { font-family: var(--font-heading); font-size: 1.18rem; font-weight: 650; margin-bottom: 10px; }
.service-title::after { content: ""; display: block; width: 26px; height: 2px; background: var(--accent-text); margin-top: 12px; }
.service-text { font-size: .96rem; color: var(--muted); margin-top: 10px; }

/* --- Split (about / feature) -------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 68px); align-items: center; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split__body h2::after { content: ""; display: block; width: 54px; height: 2px; background: var(--accent-text); margin-top: 16px; margin-bottom: 18px; }
.split__body p + p { margin-top: 14px; }
.split__body .btn-row { margin-top: 26px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: ""; flex: none; width: 21px; height: 21px; border-radius: 999px; margin-top: 3px;
  background: var(--accent-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
}

/* --- CTA band (warm dark brown) -------------------------------------------------------------- */
.cta-band {
  background: var(--bg-dark); color: var(--cream-dim);
  border-radius: var(--radius-lg); padding: clamp(38px, 6vw, 64px);
  box-shadow: var(--shadow-md);
}
.cta-band .eyebrow { color: var(--accent-soft); }
.cta-band h2 { color: var(--cream); max-width: 620px; }
.cta-band h2::after { content: ""; display: block; width: 54px; height: 2px; background: var(--accent-soft); margin-top: 16px; }
.cta-band p { margin-top: 16px; max-width: 560px; }
.cta-band .btn-row { margin-top: 28px; }

/* --- Contact ------------------------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.contact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { flex: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); color: var(--accent-text); display: grid; place-items: center; }
.contact-list .ci svg { width: 19px; height: 19px; }
.contact-list dt { font-family: var(--font-body); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list dd { margin: 3px 0 0; color: var(--ink); font-weight: 550; font-style: normal; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--accent-text); }
.hours { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.hours h3 { font-size: 1.05rem; margin-bottom: 12px; }
.hours table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 5px 0; color: var(--body); }
.hours td:last-child { text-align: right; color: var(--ink); font-weight: 550; }
.hours-note { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.contact-form-head { margin-bottom: 20px; }
.contact-form-head h2::after { content: ""; display: block; width: 54px; height: 2px; background: var(--accent-text); margin-top: 14px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Legal / prose -------------------------------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 40px; margin-bottom: 12px; }
.prose h2:first-of-type { margin-top: 24px; }
.prose h3 { margin-top: 26px; margin-bottom: 8px; }
.prose p { margin-bottom: 14px; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.data-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
.data-table th { background: var(--bg-soft); font-family: var(--font-heading); color: var(--ink); font-weight: 600; width: 42%; }

/* --- Page hero (sub-pages) --------------------------------------------------------------------------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding-block: clamp(44px, 6.5vw, 80px); }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--accent-text); }
.breadcrumbs span[aria-current] { color: var(--ink); }
.page-hero p { margin-top: 18px; font-size: 1.1rem; color: var(--body); max-width: 640px; }

/* --- Footer (warm dark brown, serif brand) ------------------------------------------------------------- */
.site-footer { background: var(--bg-dark); color: var(--cream-dim); padding-block: clamp(48px, 6vw, 72px) 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
.site-footer h4 { color: var(--cream); font-family: var(--font-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer-name { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 600; color: var(--cream); }
.footer-name::after { content: ""; display: block; width: 40px; height: 2px; background: var(--accent-soft); margin-top: 12px; }
.footer-brand p { margin-top: 16px; font-size: .95rem; max-width: 320px; }
.footer-brand address { font-style: normal; margin-top: 16px; font-size: .95rem; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: color-mix(in srgb, var(--cream) 82%, transparent); font-size: .96rem; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { margin-top: clamp(36px, 5vw, 52px); padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--cream) 14%, transparent); display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; font-size: .88rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover { color: var(--cream); }
.footer-hinweis { width: 100%; font-size: .78rem; color: color-mix(in srgb, var(--cream) 55%, transparent); text-align: center; margin-top: 8px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- Utilities --------------------------------------------------------------------------------------------- */
.mt-l { margin-top: clamp(36px, 5vw, 64px); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent-strong); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- Map -------------------------------------------------------------------- */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
