/* ==========================================================================
   SUPERNOVA GALLERY — Relaunch 2026
   Konzept: "Die Galerie für Automobile"
   Token-System
   ========================================================================== */

:root {
  /* Farben */
  --ink: #10161b;          /* Galeriewand, dunkel */
  --ink-2: #182027;        /* Panel auf dunkel */
  --ink-3: #1f2930;        /* Hover-Panel */
  --bone: #efece4;         /* Passepartout, hell */
  --bone-2: #f7f5f0;       /* Karte auf hell */
  --white: #ffffff;

  --text-on-dark: #ece9e1;
  --muted-on-dark: #aab3ae;
  --text-on-light: #1a2025;
  --muted-on-light: #49534e;

  --green: #4c6b5b;        /* Galerie-Grün (Sofa/Vorhänge im Showroom) */
  --green-dark: #93b0a1;   /* Grün auf dunklem Grund */
  --spark: #e4632b;        /* Funke aus dem Logo – nur Mikro-Akzente */

  --hairline-dark: rgba(236, 233, 225, 0.16);
  --hairline-light: rgba(26, 32, 37, 0.16);

  /* Typografie */
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  /* Maße */
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 11vw, 150px);
  --radius: 2px;

  --header-h: 76px;
}

/* ==========================================================================
   Reset & Basis
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-on-light);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

button { font: inherit; cursor: pointer; }

::selection { background: var(--spark); color: #fff; }

/* Fokus sichtbar — immer */
:focus-visible {
  outline: 2px solid var(--spark);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 12px 20px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Typo-Rollen
   ========================================================================== */

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--green-dark);
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  max-width: 34em;
}

/* Galerie-Etikett: kleine Beschriftung wie im Museum */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: clamp(16px, 2.5vw, 28px);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--spark);
  flex: none;
}

.on-dark { color: var(--text-on-dark); }
.on-dark .eyebrow { color: var(--green-dark); }
.on-light .eyebrow { color: var(--green); }
.muted { color: var(--muted-on-light); }
.on-dark .muted { color: var(--muted-on-dark); }

/* ==========================================================================
   Buttons & Links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

/* Auf dunklem Grund: heller Button */
.btn-light {
  background: var(--bone);
  color: var(--ink);
}
.btn-light:hover { background: var(--white); }

/* Auf hellem Grund: dunkler Button */
.btn-dark {
  background: var(--ink);
  color: var(--bone);
}
.btn-dark:hover { background: #000; }

.btn-outline-dark {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--hairline-dark);
}
.btn-outline-dark:hover { border-color: var(--text-on-dark); }

.btn-outline-light {
  background: transparent;
  color: var(--text-on-light);
  border-color: var(--hairline-light);
}
.btn-outline-light:hover { border-color: var(--text-on-light); }

.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(4px); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 180ms ease;
}
.on-light .textlink:hover { color: var(--green); }
.on-dark .textlink:hover { color: var(--green-dark); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(16, 22, 27, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(236, 233, 225, 0.08);
  transition: background-color 250ms ease;
}

.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }

.main-nav a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.main-nav a:hover { color: var(--white); border-color: var(--green-dark); }
.main-nav a[aria-current="page"] { border-color: var(--spark); }

/* Nav-CTA: Spezifität über .main-nav a */
.main-nav a.btn-light { color: var(--ink); border-bottom: none; }
.main-nav a.btn-light:hover { color: var(--ink); background: var(--white); }

.nav-cta { margin-left: 8px; }
.main-nav .btn { min-height: 44px; padding: 10px 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
}
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    /* absolute statt fixed: backdrop-filter am Header macht ihn zum
       Containing Block – fixed würde dort geclippt */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100svh - var(--header-h));
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 28px var(--gutter) 40px;
    background: var(--ink);
    border-top: 1px solid var(--hairline-dark);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s 220ms;
    overflow-y: auto;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: opacity 220ms ease, transform 220ms ease;
  }
  .main-nav a {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: 0;
    padding: 10px 0;
    border-bottom: none;
  }
  .nav-cta { margin: 18px 0 0; }
  .main-nav .btn { min-height: 52px; padding: 14px 28px; font-family: var(--font-sans); font-size: 1rem; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-block: var(--section); }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-light { background: var(--bone); color: var(--text-on-light); }
.section-panel { background: var(--ink-2); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 6vw, 64px);
}
.section-head > div { max-width: 640px; }
.section-head .h2 { margin-bottom: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  /* Cineastischer Vollbild-Hero: entsättigtes Bild, kräftiger Scrim links,
     Fahrzeug rechts (gespiegelt), Text vertikal zentriert */
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--text-on-dark);
  background: var(--ink);
  overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(32px, 5vh, 64px)) clamp(40px, 6vh, 72px);
}
.hero .eyebrow { color: var(--green-dark); }

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 84%;
  transform: scaleX(-1);              /* Fahrzeug auf die rechte Seite */
  filter: saturate(0.55) brightness(0.7) contrast(1.02);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(13, 18, 22, 0.95) 0%,
      rgba(13, 18, 22, 0.82) 34%,
      rgba(13, 18, 22, 0.45) 62%,
      rgba(13, 18, 22, 0.22) 100%),
    linear-gradient(to top, rgba(13, 18, 22, 0.68) 0%, rgba(13, 18, 22, 0) 38%),
    linear-gradient(200deg, rgba(13, 18, 22, 0.6) 0%, rgba(13, 18, 22, 0) 34%),
    linear-gradient(to bottom, rgba(13, 18, 22, 0.5) 0%, rgba(13, 18, 22, 0) 22%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-copy .display { max-width: 11em; margin-bottom: 22px; }
.hero-copy .lead { color: var(--text-on-dark); opacity: 0.88; margin-bottom: 34px; }

@media (max-width: 980px) {
  .hero-media img { object-position: 42% 74%; }
  .hero-media::after {
    background:
      linear-gradient(to right, rgba(13, 18, 22, 0.9) 0%, rgba(13, 18, 22, 0.68) 100%),
      linear-gradient(to top, rgba(13, 18, 22, 0.6) 0%, rgba(13, 18, 22, 0) 40%);
  }
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-bottom: clamp(32px, 5vh, 52px); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline-dark);
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--muted-on-dark);
}
.hero-facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--spark);
  flex: none;
  transform: translateY(-1px);
}

/* ==========================================================================
   Fahrzeug-Etiketten (Signature: Museums-Placards)
   ========================================================================== */

.exhibit-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.exhibit {
  grid-column: span 4;
  text-decoration: none;
  color: inherit;
  display: block;
}
.exhibit-feature { grid-column: span 8; }

@media (max-width: 1000px) {
  .exhibit { grid-column: span 6; }
  .exhibit-feature { grid-column: span 12; }
}
@media (max-width: 620px) {
  .exhibit, .exhibit-feature { grid-column: span 12; }
}

.exhibit-media {
  position: relative;
  border: 1px solid var(--hairline-dark);
  padding: clamp(10px, 1.4vw, 16px);          /* Passepartout */
  background: var(--ink-2);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.exhibit-media .frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.exhibit-feature .exhibit-media .frame { aspect-ratio: 16 / 9; }
.exhibit-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.6,.2,1), opacity 300ms ease;
}
.exhibit:hover .exhibit-media { border-color: rgba(236,233,225,0.4); background: var(--ink-3); }
.exhibit:hover .exhibit-media img { transform: scale(1.03); }

.exhibit-no {
  position: absolute;
  top: -1px;
  left: -1px;
  background: var(--ink);
  border: 1px solid var(--hairline-dark);
  color: var(--muted-on-dark);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 6px 12px;
}

.exhibit-tag {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--bone);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
}

/* Placard unterhalb */
.exhibit-placard {
  border: 1px solid var(--hairline-dark);
  border-top: none;
  padding: 18px clamp(14px, 2vw, 22px) 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 18px;
  align-items: baseline;
  transition: border-color 200ms ease;
}
.exhibit:hover .exhibit-placard { border-color: rgba(236,233,225,0.4); }

.exhibit-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.15;
}
.exhibit-sub {
  grid-column: 1;
  color: var(--muted-on-dark);
  font-size: 0.9rem;
  margin: 0;
}
.exhibit-price {
  grid-row: 1 / span 2;
  grid-column: 2;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  white-space: nowrap;
}
.exhibit-price small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted-on-dark);
  letter-spacing: 0.04em;
}
.exhibit-specs {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--hairline-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  padding-left: 0;
  font-size: 0.82rem;
  color: var(--muted-on-dark);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Split-Layouts (asymmetrisch)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split-media { grid-column: span 7; }
.split-copy { grid-column: span 5; }
.split-reverse .split-media { order: 2; grid-column: span 6; }
.split-reverse .split-copy { order: 1; grid-column: span 6; }

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }

@media (max-width: 900px) {
  .split-media, .split-copy,
  .split-reverse .split-media, .split-reverse .split-copy,
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; order: initial; }
}

.framed {
  border: 1px solid var(--hairline-light);
  padding: clamp(10px, 1.6vw, 18px);
  background: var(--bone-2);
}
.on-dark .framed, .section-dark .framed {
  border-color: var(--hairline-dark);
  background: var(--ink-2);
}
.framed img { width: 100%; height: auto; }

.caption {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted-on-light);
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.on-dark .caption, .section-dark .caption { color: var(--muted-on-dark); }
.caption::before { content: "—"; color: var(--spark); }

/* ==========================================================================
   Leistungen (editorial rows)
   ========================================================================== */

.service-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding-block: clamp(36px, 6vw, 64px);
  border-top: 1px solid var(--hairline-dark);
}
.service-row:last-of-type { border-bottom: 1px solid var(--hairline-dark); }

.service-row .service-media { grid-column: span 5; }
.service-row .service-body { grid-column: span 7; }
.service-row:nth-child(even) .service-media { order: 2; }
.service-row:nth-child(even) .service-body { order: 1; }

@media (max-width: 820px) {
  .service-row .service-media, .service-row .service-body { grid-column: span 12; order: initial; }
}

.service-media { position: relative; }
.service-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.service-kicker {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 12px;
  display: block;
}

.service-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 14px;
}

.service-body p { max-width: 34em; color: var(--muted-on-dark); }
.service-body .textlink { margin-top: 10px; }

.service-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.service-extra li {
  border: 1px solid var(--hairline-dark);
  padding: 7px 14px;
  font-size: 0.84rem;
  color: var(--muted-on-dark);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Person / Zitat
   ========================================================================== */

.quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3;
  font-style: italic;
  margin: 0 0 14px;
}

.cred-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline-light);
}
.cred-list li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline-light);
  font-size: 0.97rem;
}
.cred-list .cred-label {
  flex: none;
  width: 108px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.on-dark .cred-list { border-color: var(--hairline-dark); }
.on-dark .cred-list li { border-color: var(--hairline-dark); }
.on-dark .cred-list .cred-label { color: var(--green-dark); }

/* ==========================================================================
   Marken
   ========================================================================== */

.brand-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline-dark);
  border-left: 1px solid var(--hairline-dark);
  list-style: none;
  margin: 0;
  padding: 0;
}
.brand-band li {
  border-right: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 34px) 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: 0.04em;
  color: var(--muted-on-dark);
  transition: color 200ms ease;
}
.brand-band li:hover { color: var(--text-on-dark); }
@media (max-width: 640px) { .brand-band { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { border-top: 1px solid var(--hairline-light); }

.faq-item { border-bottom: 1px solid var(--hairline-light); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  font-weight: 600;
  color: inherit;
}
.faq-q .faq-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hairline-light);
  display: grid;
  place-items: center;
  transition: transform 250ms ease, background-color 200ms ease, color 200ms ease;
}
.faq-item[data-open="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--bone);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease;
}
.faq-a-inner {
  padding: 0 4px 24px;
  max-width: 46em;
  color: var(--muted-on-light);
}
.faq-a-inner ul { margin: 10px 0 0; padding-left: 20px; }

/* ==========================================================================
   Prozess-Schritte (Ankauf / Finanzierung)
   ========================================================================== */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(32px, 5vw, 56px);
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step {
  counter-increment: step;
  border: 1px solid var(--hairline-dark);
  padding: clamp(22px, 3vw, 32px);
  position: relative;
  background: var(--ink-2);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--green-dark);
  display: block;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; letter-spacing: 0.02em; margin-bottom: 10px; }
.step p { color: var(--muted-on-dark); font-size: 0.95rem; margin: 0; }

.on-light .step { background: var(--bone-2); border-color: var(--hairline-light); }
.on-light .step::before { color: var(--green); }
.on-light .step p { color: var(--muted-on-light); }

/* Vorteils-Liste */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(32px, 5vw, 56px);
}
.benefit { border-top: 2px solid var(--green); padding-top: 18px; }
.on-dark .benefit { border-color: var(--green-dark); }
.benefit h3 { font-size: 1.02rem; margin-bottom: 8px; }
.benefit p { font-size: 0.94rem; margin: 0; }

/* ==========================================================================
   Formulare
   ========================================================================== */

.form-shell {
  background: var(--bone-2);
  border: 1px solid var(--hairline-light);
  padding: clamp(24px, 4vw, 48px);
  color: var(--text-on-light);   /* auch innerhalb dunkler Sektionen lesbar */
}
.form-shell .muted { color: var(--muted-on-light); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}
.field label .req { color: var(--spark); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(26, 32, 37, 0.28);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  color: var(--text-on-light);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(94, 125, 109, 0.25);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #b3341f;
  background: #fdf6f4;
}
.field .error-msg {
  display: none;
  color: #a1301c;
  font-size: 0.83rem;
  margin-top: 6px;
}
.field.has-error .error-msg { display: block; }

.form-note {
  font-size: 0.88rem;
  color: var(--muted-on-light);
  margin-top: 16px;
}

fieldset {
  border: none;
  margin: 0 0 clamp(24px, 4vw, 40px);
  padding: 0;
}
fieldset legend {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  padding: 0;
  margin-bottom: 18px;
}
fieldset legend .fs-index {
  color: var(--green);
  margin-right: 10px;
}

.checkbox-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
}
.checkbox-field input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--green);
  flex: none;
}

.form-status {
  margin-top: 18px;
  font-size: 0.95rem;
}
.form-status[data-state="ok"] { color: #2c5e46; font-weight: 600; }
.form-status[data-state="err"] { color: #a1301c; font-weight: 600; }

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline-dark);
}
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline-dark);
}
.contact-list .c-label {
  flex: none;
  width: 120px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--hairline-dark); transition: border-color 180ms ease; }
.contact-list a:hover { border-color: currentColor; }

/* ==========================================================================
   CTA-Band
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.cta-band .cta-media {
  position: absolute; inset: 0;
}
.cta-band .cta-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.cta-band .cta-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,18,22,0.96) 30%, rgba(13,18,22,0.75) 100%);
}
.cta-band .container { position: relative; z-index: 1; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #0b1013;
  color: var(--muted-on-dark);
  padding: clamp(48px, 7vw, 80px) 0 34px;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(32px, 5vw, 52px);
  border-bottom: 1px solid rgba(236, 233, 225, 0.1);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .brand img { height: 34px; }
.footer-claim { margin-top: 16px; max-width: 30em; }

.site-footer h3 {
  color: var(--text-on-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a {
  color: var(--muted-on-dark);
  text-decoration: none;
  transition: color 180ms ease;
}
.site-footer a:hover { color: var(--text-on-dark); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.84rem;
}

/* ==========================================================================
   Unterseiten-Hero (kompakt)
   ========================================================================== */

.page-hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(48px, 7vw, 90px);
}
.page-hero .display { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 14em; }
.page-hero .lead { color: var(--muted-on-dark); }

/* ==========================================================================
   Widget-Theming (ansolution / webkfz)
   ========================================================================== */

/* Lade-Skeleton, solange das Widget noch nicht gerendert hat */
#ansolution-vehicles:empty {
  position: relative;
  background:
    linear-gradient(100deg, var(--ink-2) 40%, var(--ink-3) 50%, var(--ink-2) 60%);
  background-size: 200% 100%;
  animation: widget-shimmer 1.4s ease-in-out infinite;
  border: 1px solid var(--hairline-dark);
}
#ansolution-vehicles:empty::after {
  content: "Der aktuelle Bestand wird geladen …";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-on-dark);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
@keyframes widget-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  #ansolution-vehicles:empty { animation: none; }
}

#ansolution-vehicles {
  --webkfz-filter-btn-text: #ece9e1;
  --webkfz-filter-btn-bg: transparent;
  --webkfz-filter-btn-border: rgba(236, 233, 225, 0.3);
  --webkfz-filter-btn-bg-hover: #1f2930;
  --webkfz-card-divider: rgba(236, 233, 225, 0.16);
  --webkfz-details-headline-text: #ece9e1;
  --webkfz-gradient-bg: #10161b;      /* Ausklapp-Verlauf: dunkel statt hell */
  --webkfz-price-gradient-from: #182027;
  --webkfz-price-gradient-to: #182027;
  min-height: 480px;
}

/* Preisbox: ruhige Karte statt Orange-Deko */
#ansolution-vehicles .price {
  border: 1px solid rgba(236, 233, 225, 0.16);
  border-radius: var(--radius);
}
#ansolution-vehicles .price::after { display: none; }

/* Klassen-Kollision Widget ↔ Site: Widget nutzt ebenfalls ".btn".
   Im Widget-Scope Site-Metriken zurücknehmen. */
#ansolution-vehicles .btn {
  min-height: 0;
  letter-spacing: 0;
}

/* „Zurück zu den Suchergebnissen" & sekundäre Widget-Buttons:
   vorher weißer Grund + geerbte helle Schrift = unlesbar.
   Jetzt: Ghost-Button im Galerie-Stil, in JEDEM Zustand lesbar. */
#ansolution-vehicles a.btn-secondary,
#ansolution-vehicles button.btn-secondary {
  background: transparent !important;
  border: 1px solid rgba(236, 233, 225, 0.35) !important;
  color: var(--text-on-dark) !important;
  border-radius: var(--radius);
  transition: border-color 180ms ease, background-color 180ms ease;
}
#ansolution-vehicles a.btn-secondary:hover,
#ansolution-vehicles button.btn-secondary:hover {
  background: var(--ink-3) !important;
  border-color: var(--text-on-dark) !important;
  color: var(--white) !important;
}

/* Detailseite: Ausstattung & Beschreibung in Galerie-Typo */
#ansolution-vehicles .text-xl.font-bold {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.005em;
  margin-bottom: 6px;
}
#ansolution-vehicles .mt-4.font-bold:not(.text-xl) {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-top: 26px;
}

/* Beschreibungs-Fließtext: ruhig, lesbar, begrenzte Zeilenlänge.
   Händlertexte kommen oft komplett in <strong> – typografisch normalisieren. */
#ansolution-vehicles .text-xl.font-bold + .mt-4 {
  color: var(--muted-on-dark);
  line-height: 1.75;
  max-width: 70ch;
}
#ansolution-vehicles .text-xl.font-bold + .mt-4 strong,
#ansolution-vehicles .text-xl.font-bold + .mt-4 b {
  font-weight: 400;
}
#ansolution-vehicles ul.list-none li {
  padding-block: 5px;
  color: var(--muted-on-dark);
}
#ansolution-vehicles ul.list-none li .text-primary {
  color: var(--green-dark);            /* Häkchen gedeckt grün statt Signal-Orange */
}
#ansolution-vehicles hr {
  border-color: rgba(236, 233, 225, 0.14);
}

/* ==========================================================================
   Scroll-Reveal (dezent, JS-gesteuert)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.6,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Rechtstexte
   ========================================================================== */

.legal-content { max-width: 800px; }
.legal-content h2, .legal-content h3, .legal-content strong { line-height: 1.3; }
.legal-content h2 { font-size: 1.5rem; margin-top: 2em; }
.legal-content h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal-content p, .legal-content li { font-size: 0.97rem; color: var(--muted-on-light); }
.legal-content a { color: var(--green); word-break: break-word; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
