/* ==========================================================================
   luxury-template — Autaxo webgen
   Quiet, exclusive, editorial design system for a high-end dealership.
   Playfair Display headings + Inter body. Warm ivory light scheme; the
   signature look is the near-black dark scheme. Hairline rules everywhere,
   flat surfaces, generous whitespace. Accent is injected at generation time
   (#02a0ee) and used sparingly.
   ========================================================================== */

/* --- Web fonts (central webgen asset CDN — first-party, no cookies) -------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://webgenassets.garage.infra.autaxo.de/fonts/playfair-display/playfair-display-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: #02a0ee;
  /* Darkened accent: accent-colored text on light surfaces and filled buttons
     carrying white text (WCAG AA — the raw accent is often too light). */
  --accent-strong: color-mix(in srgb, var(--accent) 72%, #000);
  /* Lightened accent: accent-colored text on dark surfaces. */
  --accent-soft: color-mix(in srgb, var(--accent) 55%, #fff);
  /* Role token: accent-colored TEXT on the current scheme's surfaces. */
  --accent-text: var(--accent-strong);
  --accent-fg: #ffffff;

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

  /* Warm ivory luxe */
  --bg: #f7f4ef;
  --bg-soft: #efe9df;
  --ink: #171310;         /* headings, strong text */
  --body: #4d4437;        /* body copy */
  --muted: #857966;       /* secondary text */
  --line: #e3dbcd;        /* warm hairlines */
  --line-strong: #cfc4af; /* emphasised hairlines (button borders) */

  /* Fixed dark-band surfaces (signature moody panels, same in both schemes) */
  --night: #0d0b09;
  --night-soft: #16120e;
  --night-ink: #f5efe6;
  --night-body: #c9c0b1;
  --night-line: #2c251d;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 44px);
  /* ONE large soft shadow, reserved for hero/media only. */
  --shadow-media: 0 48px 90px -40px rgba(23, 19, 16, .45);

  /* 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-strong);
  --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-strong);
  --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: 0px;
}

/* --- Dark scheme (the signature look; auto via OS preference) --------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0b09;
    --bg-soft: #16120e;
    --ink: #f5efe6;
    --body: #c9c0b1;
    --muted: #93876f;
    --line: #2c251d;
    --line-strong: #453b2c;

    --night-soft: #16120e;

    /* 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-media: 0 48px 100px -36px rgba(0, 0, 0, .85);
  }
  }

/* --- 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: 16.5px;
  font-weight: 380;
  line-height: 1.75;
  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 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.4rem; font-weight: 600; }
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
@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(88px, 11vw, 150px); }
.section--soft { background: var(--bg-soft); }
.section--rule { border-top: 1px solid var(--line); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }

/* Thin editorial divider */
.rule { width: 64px; height: 1px; border: 0; background: var(--line-strong); margin: 28px 0; }
.rule--center { margin-inline: auto; }

/* --- Eyebrow + section heads --------------------------------------------------
   Small-caps-style labels: uppercase, wide tracking, hairline underline. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 560;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-text);
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-text) 45%, transparent);
  margin-bottom: 22px;
}
.section-head { max-width: 700px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 18px; font-size: 1.05rem; color: var(--muted); }
.lede { font-size: 1.1rem; color: var(--muted); font-weight: 380; }

/* --- Buttons -------------------------------------------------------------------
   Understated: hairline-bordered ghosts + one filled accent-strong primary. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-body); font-weight: 560; font-size: .76rem; line-height: 1;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 17px 32px; border: 1px solid transparent; border-radius: 0;
  cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--accent-strong); color: var(--accent-fg); border-color: var(--accent-strong); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent-strong) 84%, #000); border-color: color-mix(in srgb, var(--accent-strong) 84%, #000); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--night-ink); border-color: rgba(245, 239, 230, .35); }
.btn--ghost-light:hover { border-color: var(--night-ink); background: rgba(245, 239, 230, .07); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row--center { justify-content: center; }

/* Quiet inline text link with hairline underline */
.text-link {
  font-family: var(--font-body); font-weight: 560; font-size: .76rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 6px; border-bottom: 1px solid var(--line-strong);
  transition: color .2s ease, border-color .2s ease;
}
.text-link:hover { color: var(--accent-text); border-color: currentColor; }

/* --- 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(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; background: transparent; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--font-body); font-weight: 560; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  padding: 12px 14px 10px; border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a:hover { color: var(--accent-text); }
.nav a[aria-current="page"] { color: var(--accent-text); border-bottom-color: currentColor; }
.nav .btn { padding: 13px 22px; margin-left: 14px; border-bottom: 1px solid var(--accent-strong); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.nav-toggle span { display: block; width: 20px; height: 1px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px var(--gutter) 32px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease;
  }
  .nav a { padding: 15px 4px; font-size: .82rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .btn { margin: 18px 0 0; border: 1px solid var(--accent-strong); justify-content: center; }
  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); }
}

/* --- Hero (full-bleed, moody, centered) ---------------------------------------- */
.hero { position: relative; isolation: isolate; background: var(--night); color: var(--night-ink); }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 11, 9, .62) 0%, rgba(13, 11, 9, .28) 42%, rgba(13, 11, 9, .88) 100%);
}
.hero__inner {
  position: relative; text-align: center; max-width: 860px; margin-inline: auto;
  padding-block: clamp(130px, 20vw, 220px) clamp(110px, 16vw, 190px);
}
.hero .eyebrow { color: var(--accent-soft); border-bottom-color: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.hero h1 { color: var(--night-ink); }
.hero .rule { background: rgba(245, 239, 230, .4); }
.hero__tagline {
  font-size: clamp(1.02rem, 1.9vw, 1.22rem); font-weight: 340; line-height: 1.8;
  color: var(--night-body); max-width: 580px; margin-inline: auto;
}
.hero .btn-row { margin-top: 44px; justify-content: center; }

/* --- Headlight glow (fade-in on load) ------------------------------------------- */
.hero__headlight-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 320px 180px at 50% 82%,
    rgba(255, 248, 235, 0.88) 0%,
    rgba(255, 238, 210, 0.50) 28%,
    rgba(255, 225, 190, 0.18) 55%,
    transparent 100%
  );
  opacity: 0;
  animation: headlight-fade-in 1.6s ease-out 0.4s forwards;
}
@keyframes headlight-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__headlight-glow { animation: none; opacity: .5; }
}

/* --- Quiet mark row (index) ----------------------------------------------------- */
.marks { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 4vw, 48px); }
.mark { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.mark h3 {
  font-family: var(--font-body); font-size: .74rem; font-weight: 560;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px;
}
.mark p { font-size: .93rem; color: var(--muted); }
@media (max-width: 900px) { .marks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .marks { grid-template-columns: 1fr; } }

/* --- Inventory ------------------------------------------------------------------ */
.inventory-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.inventory-head .section-head { margin-bottom: 0; }

/* --- Services (hairline ledger rows — no icon tiles) ----------------------------- */
.services { border-top: 1px solid var(--line-strong); }
.service-box {
  display: grid; grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 10px 56px; padding-block: 36px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.service-title { font-size: 1.45rem; font-weight: 600; }
.service-text { color: var(--body); max-width: 62ch; font-size: .98rem; }
@media (max-width: 720px) {
  .service-box { grid-template-columns: 1fr; padding-block: 28px; }
}

/* --- Split (editorial media + copy) ---------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 7vw, 96px); align-items: center; }
.split--reverse .split__media { order: 1; }
.split__media { position: relative; isolation: isolate; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-media); }
.split__media::after {
  content: ""; position: absolute; inset: 16px -14px -14px 16px;
  border: 1px solid var(--line-strong); z-index: -1;
}
.split__body p + p { margin-top: 16px; }
.split__body .btn-row { margin-top: 36px; }
.quiet-list { list-style: none; padding: 0; margin: 28px 0 0; }
.quiet-list li {
  padding: 14px 0; border-top: 1px solid var(--line);
  color: var(--ink); font-size: .97rem; font-weight: 460;
}
.quiet-list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* --- Signature dark band (flat, hairline-bordered) -------------------------------- */
.cta-band {
  background: var(--night-soft); color: var(--night-body);
  border: 1px solid var(--night-line);
  padding: clamp(64px, 9vw, 110px) clamp(28px, 5vw, 80px);
  text-align: center;
}
.cta-band .eyebrow { color: var(--accent-soft); border-bottom-color: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.cta-band h2 { color: var(--night-ink); max-width: 640px; margin-inline: auto; }
.cta-band p { margin: 20px auto 0; max-width: 560px; }
.cta-band .btn-row { margin-top: 40px; justify-content: center; }

/* --- Contact ----------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: clamp(44px, 6vw, 88px); align-items: start; }
.contact-card { border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); }
.contact-list { margin: 0; padding: 0; }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list > div:first-child { padding-top: 0; }
.contact-list dt {
  font-size: .7rem; font-weight: 560; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.contact-list dd { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.7; }
.contact-list dd a:hover { color: var(--accent-text); }
.hours { margin-top: 26px; }
.hours h3 {
  font-family: var(--font-body); font-size: .7rem; font-weight: 560;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.hours table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 8px 0; color: var(--body); border-bottom: 1px solid var(--line); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; color: var(--ink); }
.hours-note { margin-top: 14px; font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Legal / prose ------------------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.55rem; margin-top: 52px; margin-bottom: 14px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 30px; margin-bottom: 10px; }
.prose p { margin-bottom: 14px; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.data-table { width: 100%; border-collapse: collapse; margin: 10px 0 22px; border-top: 1px solid var(--line-strong); }
.data-table th, .data-table td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
.data-table th {
  font-family: var(--font-body); font-weight: 560; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); width: 40%;
}

/* --- Page hero (sub-pages, centered editorial) ----------------------------------------- */
.page-hero { border-bottom: 1px solid var(--line); padding-block: clamp(72px, 10vw, 130px); text-align: center; }
.breadcrumbs {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px;
}
.breadcrumbs a:hover { color: var(--accent-text); }
.breadcrumbs span[aria-current] { color: var(--ink); }
.page-hero .lede { margin: 0 auto; max-width: 620px; }
.page-hero .rule { margin: 30px auto; }

/* --- Footer (centered, minimal, hairline-topped) ---------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(72px, 9vw, 120px) 40px; text-align: center; }
.footer-name { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 560; color: var(--ink); letter-spacing: -.01em; }
.footer-tagline { margin: 14px auto 0; max-width: 460px; font-size: .95rem; color: var(--muted); }
.site-footer address { font-style: normal; margin-top: 26px; font-size: .95rem; color: var(--body); line-height: 1.9; }
.site-footer address a:hover { color: var(--accent-text); }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 34px; margin-top: 38px; }
.footer-nav a {
  font-size: .72rem; font-weight: 560; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid transparent;
}
.footer-nav a:hover { color: var(--accent-text); border-bottom-color: currentColor; }
.footer-bottom {
  margin-top: clamp(44px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; justify-content: center;
  font-size: .84rem; color: var(--muted);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a:hover { color: var(--accent-text); }

/* --- Logo drive animation (auto: drives to right edge, reappears at origin, loops) ---------- */
@keyframes drive-off {
  0%   { transform: translateX(0); opacity: 1; }
  45%  { transform: translateX(calc(100vw - 700px)); opacity: 1; }
  50%  { transform: translateX(calc(100vw - 700px)); opacity: 0; }
  52%  { transform: translateX(0); opacity: 0; }
  58%  { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}
.brand img {
  animation: drive-off 12s ease-in-out 1;
}

/* --- Utilities ---------------------------------------------------------------------------- */
.mt-l { margin-top: clamp(44px, 6vw, 80px); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent-strong); color: #fff;
  padding: 10px 18px; z-index: 100; font-size: .85rem;
}
.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;
}
