/* WS Car Connect – Fahrzeugliste, Karten, Karussell und Detailseite (Design 2.0, beide Modi).
   Farben, Radius und Schriften kommen als Variablen aus den Einstellungen (style-Attribut am Wurzel-Element). */

.wcc-ui {
  --wcc-acc: #fed316;
  --wcc-acc-ink: #1b1b1b;
  --wcc-brand: #222222;
  --wcc-brand-ink: #ffffff;
  --wcc-r: 16px;
  --wcc-h: inherit;
  --wcc-b: inherit;
  --wcc-bg: transparent;
  --wcc-card: #ffffff;
  --wcc-ink: #17202a;
  --wcc-mut: #5f6b76;
  --wcc-line: #e1e5ea;
  --wcc-soft: #eef1f4;
  --wcc-ok: #1f9d55;
  color: var(--wcc-ink);
  font-family: var(--wcc-b);
  line-height: 1.5;
  box-sizing: border-box;
}
.wcc-ui *, .wcc-ui *::before, .wcc-ui *::after { box-sizing: border-box; }
.wcc-ui.wcc--dark,
.wcc-ui.wcc--dark .wcc-ui {
  --wcc-card: #171e24; --wcc-ink: #e9eef2; --wcc-mut: #9aa7b2; --wcc-line: #27323b; --wcc-soft: #1f2a33;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  .wcc-ui.wcc--auto { --wcc-card: #171e24; --wcc-ink: #e9eef2; --wcc-mut: #9aa7b2; --wcc-line: #27323b; --wcc-soft: #1f2a33; color-scheme: dark; }
}
.wcc-ui h1, .wcc-ui h2, .wcc-ui h3 {
  font-family: var(--wcc-h);
  line-height: 1.1;
  margin: 0;
  color: inherit;
  text-wrap: balance;
  letter-spacing: normal;
  text-transform: none;
}
.wcc-ui button, .wcc-ui input, .wcc-ui select, .wcc-ui textarea { font: inherit; color: inherit; }
.wcc-ui img { max-width: 100%; }
.wcc-ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }

/* Kopf */
.wcc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wcc-title { font-size: clamp(26px, 4vw, 40px); font-weight: 700; }
.wcc-sub { margin: 4px 0 0; color: var(--wcc-mut); }
.wcc-count { font-family: var(--wcc-h); font-weight: 600; font-size: 15px; color: var(--wcc-mut); font-variant-numeric: tabular-nums; }
.wcc-link { font-family: var(--wcc-h); font-weight: 600; color: var(--wcc-ink); text-decoration: none; border-bottom: 2px solid var(--wcc-acc); }

/* Schnellfilter */
.wcc-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px; margin: 0 -2px 6px; }
.wcc-chips::-webkit-scrollbar { display: none; }
.wcc-chip {
  flex: none; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; user-select: none;
  border: 1.5px solid var(--wcc-line); background: var(--wcc-card); color: var(--wcc-ink);
  border-radius: 999px; padding: 9px 14px; font-family: var(--wcc-h); font-weight: 600; font-size: 15px; line-height: 1; margin: 0;
}
.wcc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.wcc-chip:has(input:checked) { background: var(--wcc-brand); border-color: var(--wcc-brand); color: var(--wcc-brand-ink); }
.wcc-chip:has(input:focus-visible) { outline: 3px solid var(--wcc-acc); outline-offset: 2px; }
.wcc-chip--f { background: var(--wcc-acc); border-color: var(--wcc-acc); color: var(--wcc-acc-ink); }
.wcc-chip--f i { font-style: normal; background: rgba(0, 0, 0, .15); border-radius: 999px; padding: 2px 7px; font-size: 12px; }
.wcc-chip .wcc-ic { width: 16px; height: 16px; }

/* Raster mit Filterleiste */
.wcc-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.wcc-list:not(.has-filter) .wcc-layout { grid-template-columns: 1fr; }
/* Filterleiste: kompakt, klebt beim Scrollen und scrollt selbst, wenn sie höher als das Fenster ist */
.wcc-side {
  position: sticky; top: 100px; background: var(--wcc-card); border: 1px solid var(--wcc-line); border-radius: var(--wcc-r);
  padding: 16px; display: grid; gap: 14px; align-content: start;
  max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.wcc-side__head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--wcc-line); }
.wcc-side__head b { font-family: var(--wcc-h); font-size: 20px; flex: 1; }
body .wcc-ui .wcc-side__reset { font-family: var(--wcc-h); font-weight: 600; font-size: 14px; color: var(--wcc-mut) !important; text-decoration: underline; text-underline-offset: 3px; }
body .wcc-ui .wcc-side__reset:hover { color: var(--wcc-ink) !important; }
.wcc-side__head .wcc-x { display: none; }
.wcc-fg__l { display: block; margin: 0 0 6px; padding: 0; font-family: var(--wcc-h); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--wcc-mut); }
.wcc-opts.wcc-opts--seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.wcc-opts--seg .wcc-opt span { display: block; text-align: center; padding: 10px 6px; }

/* Sortierung über den Ergebnissen */
.wcc-bar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 0 0 14px; }
.wcc-bar label { font-family: var(--wcc-h); font-weight: 600; font-size: 14px; color: var(--wcc-mut); margin: 0; }
body .wcc-ui .wcc-bar select.wcc-select { width: auto !important; min-width: 220px; }
.wcc-side__foot { display: flex; gap: 8px; flex-wrap: wrap; }
.wcc-side__foot .wcc-btn { flex: 1; height: 44px; }
.wcc-fg { border: 0; margin: 0; padding: 0; min-width: 0; }
.wcc-fg legend { margin: 0 0 8px; padding: 0; font-family: var(--wcc-h); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--wcc-mut); }
.wcc-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.wcc-opt { margin: 0; cursor: pointer; }
.wcc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.wcc-opt span { display: inline-block; border: 1.5px solid var(--wcc-line); background: var(--wcc-card); border-radius: 10px; padding: 7px 10px; font-family: var(--wcc-h); font-weight: 600; font-size: 14px; line-height: 1; }
.wcc-opt input:checked + span { border-color: var(--wcc-acc); background: var(--wcc-soft); }
.wcc-opt input:focus-visible + span { outline: 3px solid var(--wcc-acc); outline-offset: 1px; }
.wcc-rng { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Eingaben gegen Theme-Stile absichern (Avada färbt Felder grau und ändert Höhe/Schrift) */
body .wcc-ui .wcc-rng input, body .wcc-ui select.wcc-select {
  width: 100%; height: 44px !important; min-height: 0 !important; border: 1.5px solid var(--wcc-line) !important; border-radius: 10px !important;
  padding: 0 12px !important; background-color: var(--wcc-card) !important; color: var(--wcc-ink) !important;
  font-family: var(--wcc-b) !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1.2 !important;
  margin: 0 !important; box-shadow: none !important;
}
body .wcc-ui select.wcc-select {
  -webkit-appearance: none !important; appearance: none !important; padding-right: 36px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b76' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 10px center !important; background-size: 18px !important;
}
body .wcc-ui select.wcc-select.is-set { border-color: var(--wcc-acc) !important; }
body .wcc-ui .wcc-rng input:focus, body .wcc-ui select.wcc-select:focus { border-color: var(--wcc-acc) !important; outline: 0; box-shadow: 0 0 0 3px rgba(0, 0, 0, .06) !important; }
.wcc-overlay { position: fixed; inset: 0; z-index: 99990; background: rgba(10, 14, 18, .5); }
.wcc-overlay[hidden] { display: none; }

/* Schmal (Handy oder schmale Theme-Spalte, per JS gemessen): Filter als Bottom-Sheet */
.wcc-list.is-narrow .wcc-layout { grid-template-columns: 1fr; }
.wcc-list.is-narrow .wcc-side { display: none; }
.wcc-list.is-narrow .wcc-side.is-open {
  display: grid; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 99991;
  border-radius: 22px 22px 0 0; max-height: 82vh; overflow: auto;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -20px 50px rgba(0, 0, 0, .25);
}
.wcc-list.is-narrow .wcc-side.is-open .wcc-side__head .wcc-x { display: grid; }
.wcc-list.is-narrow .wcc-side.is-open { gap: 16px; padding: 18px 18px 0; }
.wcc-list.is-narrow .wcc-bar { justify-content: space-between; }
body .wcc-ui .wcc-list.is-narrow .wcc-bar select.wcc-select, body .wcc-ui.wcc-list.is-narrow .wcc-bar select.wcc-select { min-width: 0; flex: 1; }
.wcc-list.is-narrow .wcc-side__foot { position: sticky; bottom: 0; background: var(--wcc-card); padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--wcc-line); }
.wcc-list.is-narrow .wcc-side__foot .wcc-btn { height: 50px; }
.wcc-list:not(.is-narrow) .wcc-side:not(.no-js) [data-wcc-apply] { display: none; }
/* ohne JavaScript: Filter über der Liste */
@media (max-width: 980px) {
  .wcc-layout { grid-template-columns: 1fr; }
  .wcc-side { position: static; }
}

/* Karten */
.wcc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
@media (max-width: 640px) { .wcc-grid { gap: 14px; } }
.wcc-list.is-loading .wcc-grid { opacity: .5; transition: opacity .2s; }
.wcc-empty { grid-column: 1 / -1; color: var(--wcc-mut); }

.wcc-car { min-width: 0; }
.wcc-car__link {
  height: 100%; display: flex; flex-direction: column; text-decoration: none; color: var(--wcc-ink);
  background: var(--wcc-card); border: 1px solid var(--wcc-line); border-radius: var(--wcc-r); overflow: hidden;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s;
}
.wcc-car__link:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, .1); color: var(--wcc-ink); }
.wcc-car__link:focus-visible { outline: 3px solid var(--wcc-acc); outline-offset: 2px; }

/* Feste Bühne für jedes Bildformat: unscharfer Rand, Bild vollständig sichtbar */
.wcc-pic, .wcc-slide { position: relative; aspect-ratio: 16 / 10; background: var(--wcc-soft); overflow: hidden; margin: 0; }
.wcc-pic__bg { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(18px) saturate(1.1); opacity: .7; }
.wcc-pic__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.wcc-pic .wcc-pic__img { object-fit: cover; }
.wcc--fit-contain .wcc-pic .wcc-pic__img { object-fit: contain; }
.wcc-pic__none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--wcc-mut); }
.wcc-pic__none .wcc-ic { width: 64px; height: 64px; opacity: .4; }
.wcc-pic__n { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 999px; padding: 4px 9px; font-family: var(--wcc-h); font-weight: 600; font-size: 12px; line-height: 1; }
.wcc-badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.wcc-badges span { white-space: nowrap; background: var(--wcc-acc); color: var(--wcc-acc-ink); border-radius: 999px; padding: 5px 10px; font-family: var(--wcc-h); font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.wcc-badges span.is-light { background: #fff; color: #17202a; }

.wcc-car__body { padding: 14px 16px 16px; display: grid; gap: 10px; flex: 1; align-content: start; }
.wcc-car__t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: flex-start; }
.wcc-car__t > div:first-child { min-width: 0; flex: 1 1 120px; }
.wcc-car__title { font-size: 20px; font-weight: 700; }
.wcc-car__t small { display: block; font-size: 14px; line-height: 1.3; color: var(--wcc-mut); margin-top: 2px; }
.wcc-price { text-align: right; margin-left: auto; }
.wcc-price b { display: block; font-family: var(--wcc-h); font-weight: 800; font-size: 22px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wcc-price em { display: block; font-style: normal; font-size: 12px; line-height: 1.3; color: var(--wcc-mut); margin-top: 4px; }
.wcc-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.wcc-specs span { display: flex; align-items: center; gap: 7px; font-size: 14px; min-width: 0; }
.wcc-specs .wcc-ic { width: 17px; height: 17px; color: var(--wcc-mut); }
.wcc-dealer { display: flex; align-items: center; gap: 8px; font-family: var(--wcc-h); font-weight: 600; font-size: 13px; line-height: 1.2; color: var(--wcc-mut); }
.wcc-dealer i { width: 24px; height: 24px; flex: none; border-radius: 6px; background: var(--wcc-brand); color: var(--wcc-brand-ink); display: grid; place-items: center; font-style: normal; font-size: 9px; font-weight: 800; overflow: hidden; }
.wcc-dealer i img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.wcc-dealer small { display: block; font-family: var(--wcc-b); font-weight: 400; font-size: 12px; }
.wcc-co2 { font-size: 12px; color: var(--wcc-mut); line-height: 1.4; border-top: 1px dashed var(--wcc-line); padding-top: 8px; margin-top: auto; }

/* Nachladen */
.wcc-more { display: flex; justify-content: center; margin-top: 22px; }
.wcc-more__link { color: var(--wcc-mut); font-family: var(--wcc-h); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.wcc-more.is-loading .wcc-more__link::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--wcc-line); border-top-color: var(--wcc-acc); animation: wcc-spin 1s linear infinite; }
@keyframes wcc-spin { to { transform: rotate(360deg); } }

/* Karussell: auf dem Handy eine Karte voll, die nächste halb sichtbar */
.wcc-carousel { position: relative; }
.wcc-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: max(min(78%, 280px), calc((100% - 42px) / 4)); gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; overscroll-behavior-x: contain;
}
.wcc-track::-webkit-scrollbar { display: none; }
.wcc-track > .wcc-car { scroll-snap-align: start; }
.wcc-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.wcc-nav[hidden] { display: none; }
.wcc-nav__btn, .wcc-x {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--wcc-line); background: var(--wcc-card);
  cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--wcc-ink);
}
.wcc-dealer-section { margin: 40px 0; }

/* Knöpfe */
.wcc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 18px;
  border-radius: 12px; border: 0; cursor: pointer; font-family: var(--wcc-h); font-weight: 700; font-size: 16px; line-height: 1;
  text-decoration: none; white-space: nowrap;
}
.wcc-btn--p { background: var(--wcc-acc); color: var(--wcc-acc-ink); }
.wcc-btn--s { background: var(--wcc-card); border: 1.5px solid var(--wcc-line); color: var(--wcc-ink); }
.wcc-btn--wa { background: #25d366; color: #fff; }
.wcc-btn:focus-visible { outline: 3px solid var(--wcc-acc); outline-offset: 2px; }

/* Gegen Theme-Stile absichern: Avada & Co. überschreiben <button> (Schrift, Farbe, Größe) */
body .wcc-ui .wcc-btn, body .wcc-ui button.wcc-btn, body .wcc-ui .wcc-chip, body .wcc-ui button.wcc-chip, body .wcc-ui .wcc-minibtn {
  font-family: var(--wcc-h) !important; text-transform: none !important; letter-spacing: normal !important;
  text-shadow: none !important; box-shadow: none; min-height: 0; width: auto; margin: 0;
  -webkit-appearance: none; appearance: none;
}
/* Knöpfe wie die CI der Seite (Muster Locals): Ecke = 3/4 des Radius, 2 px Rahmen in Akzentfarbe.
   Gefüllt: Akzent → Hover Markenfarbe. Umriss: transparent → Hover Akzent. */
body .wcc-ui .wcc-btn, body .wcc-ui button.wcc-btn {
  font-weight: 600 !important; font-size: 16px !important; line-height: 1 !important;
  border-radius: calc(var(--wcc-r) * .75) !important; border: 2px solid transparent !important;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
body .wcc-ui .wcc-btn:hover { transform: translateY(-1px); }
body .wcc-ui .wcc-btn--p, body .wcc-ui button.wcc-btn--p { background: var(--wcc-acc) !important; color: var(--wcc-acc-ink) !important; border-color: var(--wcc-acc) !important; }
body .wcc-ui .wcc-btn--p:hover, body .wcc-ui button.wcc-btn--p:hover { background: var(--wcc-brand) !important; color: var(--wcc-brand-ink) !important; border-color: var(--wcc-brand) !important; }
body .wcc-ui .wcc-btn--s, body .wcc-ui button.wcc-btn--s { background: transparent !important; color: var(--wcc-ink) !important; border-color: var(--wcc-acc) !important; }
body .wcc-ui .wcc-btn--s:hover, body .wcc-ui button.wcc-btn--s:hover { background: var(--wcc-acc) !important; color: var(--wcc-acc-ink) !important; border-color: var(--wcc-acc) !important; }
body .wcc-ui .wcc-btn--wa { background: #25d366 !important; color: #fff !important; border-color: #25d366 !important; }
body .wcc-ui .wcc-btn--wa:hover { background: #1ebe5a !important; border-color: #1ebe5a !important; }
body .wcc-ui .wcc-chip, body .wcc-ui button.wcc-chip { font-weight: 600 !important; font-size: 15px !important; line-height: 1 !important; border-radius: 999px !important; height: auto; padding: 9px 14px; }
body .wcc-ui .wcc-chip--f, body .wcc-ui button.wcc-chip--f { background: var(--wcc-acc) !important; color: var(--wcc-acc-ink) !important; border: 1.5px solid var(--wcc-acc) !important; }
body .wcc-ui .wcc-chip--f:hover, body .wcc-ui button.wcc-chip--f:hover { background: var(--wcc-brand) !important; color: var(--wcc-brand-ink) !important; border-color: var(--wcc-brand) !important; }

/* Mini-Knöpfe (Alle Fahrzeuge, Mehr über …, auch auf mobile.de): Umriss klein, Icon in Akzentfarbe, Hover Akzent */
body .wcc-ui .wcc-minibtn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: calc(var(--wcc-r) * .75);
  border: 2px solid var(--wcc-acc); background: transparent; color: var(--wcc-ink) !important;
  font-weight: 600 !important; font-size: 15px; line-height: 1; text-decoration: none !important; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
body .wcc-ui .wcc-minibtn::before, body .wcc-ui .wcc-minibtn::after { content: none !important; }
body .wcc-ui .wcc-minibtn .wcc-ic { width: 16px; height: 16px; }
body .wcc-ui .wcc-minibtn:hover { background: var(--wcc-acc); border-color: var(--wcc-acc); color: var(--wcc-acc-ink) !important; transform: translateY(-1px); }
body .wcc-ui .wcc-minibtn:focus-visible { outline: 3px solid var(--wcc-acc); outline-offset: 2px; }
body .wcc-ui .wcc-minibtn--ghost { border-color: var(--wcc-line); color: var(--wcc-mut) !important; }
body .wcc-ui .wcc-minibtn--ghost:hover { border-color: var(--wcc-acc); }
.wcc-dl__links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Detailseite */
.wcc-detail { max-width: 1100px; margin: 0 auto; padding: 16px 16px 40px; }
.wcc-back { margin: 0 0 12px; font-size: 14px; }

.wcc-gal { position: relative; }
.wcc-stage { position: relative; border-radius: 0; overflow: hidden; background: #2a2f35; isolation: isolate; }
.wcc-slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wcc-slides::-webkit-scrollbar { display: none; }
.wcc-slide { scroll-snap-align: start; background: #2a2f35; }
.wcc-slide .wcc-pic__bg { inset: -15%; width: 130%; height: 130%; filter: blur(28px) saturate(1.15) brightness(.85); opacity: 1; transform: translateZ(0); }
.wcc-slide .wcc-pic__img {
  inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: auto; height: auto; max-width: 94%; max-height: 88%; object-fit: contain;
  border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
@media (max-width: 640px) { .wcc-slide .wcc-pic__img { max-width: 96%; max-height: 90%; border-radius: 12px; } }
@media (min-width: 900px) { .wcc-slide { aspect-ratio: 16 / 9; } }
.wcc-gal__ctr { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 999px; padding: 5px 10px; font-family: var(--wcc-h); font-weight: 600; font-size: 13px; line-height: 1; }
.wcc-gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #17202a; cursor: pointer; display: grid; place-items: center; }
.wcc-gal__nav.is-prev { left: 12px; }
.wcc-gal__nav.is-next { right: 12px; }
@media (hover: none) { .wcc-gal__nav { display: none; } }
.wcc-thumbs { display: flex; gap: 8px; padding: 10px 0 0; overflow-x: auto; scrollbar-width: none; }
.wcc-thumbs button { flex: 0 0 72px; height: 48px; border-radius: 10px; border: 2px solid transparent; overflow: hidden; padding: 0; cursor: pointer; background: var(--wcc-soft); }
.wcc-thumbs button[aria-pressed="true"] { border-color: var(--wcc-acc); }
.wcc-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wcc-dbody { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; padding-top: 18px; }
@media (max-width: 900px) { .wcc-dbody { grid-template-columns: 1fr; } }
.wcc-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.wcc-col--side { position: sticky; top: 90px; }
@media (max-width: 900px) { .wcc-col--side { position: static; } }
.wcc-box { background: var(--wcc-card); border: 1px solid var(--wcc-line); border-radius: var(--wcc-r); padding: 18px; }
.wcc-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.wcc-dtitle h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
.wcc-dtitle p { margin: 4px 0 0; color: var(--wcc-mut); }
.wcc-dprice { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 12px 0 8px; }
.wcc-dprice b { font-family: var(--wcc-h); font-weight: 800; font-size: 34px; line-height: 1; }
.wcc-dprice span { font-size: 13px; color: var(--wcc-mut); }
.wcc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--wcc-soft); font-family: var(--wcc-h); font-weight: 600; font-size: 13px; line-height: 1; }
.wcc-pill.is-ok { background: rgba(31, 157, 85, .12); color: var(--wcc-ok); }
.wcc-mut { color: var(--wcc-mut); font-weight: 500; }
.wcc-kgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .wcc-kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wcc-k { background: var(--wcc-soft); border-radius: 12px; padding: 12px; display: grid; gap: 4px; min-width: 0; }
.wcc-k .wcc-ic { width: 20px; height: 20px; color: var(--wcc-mut); }
.wcc-k small { font-size: 12px; color: var(--wcc-mut); }
.wcc-k b { font-family: var(--wcc-h); font-weight: 700; font-size: 16px; line-height: 1.15; overflow-wrap: anywhere; }
.wcc-eqbox summary { list-style: none; cursor: pointer; }
.wcc-eqbox summary::-webkit-details-marker { display: none; }
.wcc-eqbox summary h2 { display: flex; align-items: center; gap: 8px; }
.wcc-eqbox summary h2::after { content: "+"; margin-left: auto; font-weight: 400; color: var(--wcc-mut); }
.wcc-eqbox[open] summary h2::after { content: "–"; }
.wcc-eq { display: flex; flex-wrap: wrap; gap: 8px; }
.wcc-eq span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--wcc-line); font-size: 14px; }
.wcc-eq .wcc-ic { width: 15px; height: 15px; color: var(--wcc-ok); }
.wcc-desc { font-size: 15px; color: var(--wcc-ink); }

/* CO₂-Label A–G */
.wcc-co2box { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.wcc-label { display: grid; gap: 3px; }
.wcc-label i { display: block; height: 13px; border-radius: 2px 7px 7px 2px; position: relative; }
.wcc-label i span { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 9px; font-weight: 700; color: #fff; line-height: 1; }
.wcc-label i.is-on { outline: 2px solid var(--wcc-ink); outline-offset: 1px; }
.wcc-label__a { background: #1a9641; } .wcc-label__b { background: #52b151; } .wcc-label__c { background: #a6d96a; }
.wcc-label__d { background: #e6c428; } .wcc-label__e { background: #fdae61; } .wcc-label__f { background: #f46d43; } .wcc-label__g { background: #d73027; }
.wcc-co2box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.wcc-co2box dt { color: var(--wcc-mut); margin: 0; }
.wcc-co2box dd { margin: 0; font-weight: 600; }
.wcc-legal { font-size: 12px; color: var(--wcc-mut); margin: 12px 0 0; line-height: 1.4; }

/* Anbieter-Kasten */
.wcc-dl { display: grid; gap: 12px; }
.wcc-dl__head { display: flex; gap: 12px; align-items: center; }
.wcc-dl__logo { width: 56px; height: 56px; flex: none; border-radius: 14px; background: var(--wcc-brand); color: var(--wcc-brand-ink); display: grid; place-items: center; font-family: var(--wcc-h); font-weight: 800; font-size: 18px; overflow: hidden; }
.wcc-dl__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.wcc-dl__head b { font-family: var(--wcc-h); font-weight: 700; font-size: 18px; line-height: 1.15; display: block; }
.wcc-dl__head small { display: block; color: var(--wcc-mut); font-size: 13px; }
.wcc-dl__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wcc-dl__btns .wcc-btn:only-child { grid-column: 1 / -1; }
.wcc-sublink { font-size: 13px; color: var(--wcc-mut); }

/* Anfrage */
.wcc-inq { display: grid; gap: 8px; }
.wcc-inq label { font-family: var(--wcc-h); font-weight: 600; font-size: 14px; line-height: 1.2; margin: 4px 0 0; }
.wcc-inq input:not([type="checkbox"]), .wcc-inq textarea {
  width: 100%; border: 1.5px solid var(--wcc-line); border-radius: 12px; padding: 12px; background: var(--wcc-card);
  color: var(--wcc-ink); font-size: 15px; margin: 0; box-shadow: none; height: auto;
}
.wcc-inq textarea { min-height: 90px; resize: vertical; }
.wcc-inq .wcc-cb { display: flex; gap: 10px; align-items: flex-start; font-family: var(--wcc-b); font-weight: 400; font-size: 13px; line-height: 1.4; color: var(--wcc-mut); }
.wcc-inq .wcc-cb input { margin-top: 3px; flex: none; }
.wcc-inq .wcc-btn { margin-top: 6px; }
.wcc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wcc-msg { padding: 12px; border-radius: 12px; font-family: var(--wcc-h); font-weight: 600; font-size: 15px; line-height: 1.3; }
.wcc-msg.is-ok { background: rgba(31, 157, 85, .12); color: var(--wcc-ok); }
.wcc-msg.is-error { background: rgba(215, 48, 39, .1); color: #b3261e; }

/* Feste Leiste unten (Handy) */
.wcc-dock { display: none; }
@media (max-width: 899px) {
  .wcc-detail { padding-bottom: 96px; }
  .wcc-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99980; display: flex; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--wcc-card); border-top: 1px solid var(--wcc-line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
  }
  .wcc-dock .wcc-btn { flex: 1; height: 48px; padding: 0 10px; }
  .wcc-dock .wcc-btn--ic { flex: 0 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .wcc-ui * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Detailseite: Titelleiste/Seitentitel des Themes aus – die einzige H1 ist der Fahrzeugtitel */
body.wcc-single .avada-page-titlebar-wrapper,
body.wcc-single .fusion-page-title-bar,
body.wcc-single .fusion-page-title-bar-wrapper,
body.wcc-single .wp-block-post-title { display: none !important; }

/* Icons in Knöpfen folgen immer der Schriftfarbe – auch beim Hover und gegen Theme-Regeln für svg */
body .wcc-ui .wcc-minibtn .wcc-ic, body .wcc-ui .wcc-btn .wcc-ic, body .wcc-ui .wcc-chip .wcc-ic {
  color: inherit !important; stroke: currentColor !important; fill: none !important;
}
body .wcc-ui .wcc-minibtn:not(:hover) .wcc-ic, body .wcc-ui .wcc-btn--s:not(:hover) .wcc-ic { color: var(--wcc-acc) !important; }

/* Autohaus-Seite /fahrzeuge/<autohaus>/ */
.wcc-dealer-page { max-width: 1240px; margin: 0 auto; padding: 16px 16px 40px; }
.wcc-dpage__head { margin-bottom: 20px; }
.wcc-dpage__head .wcc-title { font-size: clamp(24px, 3.4vw, 34px); }

/* Unscharfer Hintergrund darf breiter als die Bühne sein (sonst Rand rechts) – gegen .wcc-ui img { max-width: 100% } und Theme-Regeln */
body .wcc-ui img.wcc-pic__bg { max-width: none !important; max-height: none !important; }

/* Kartentitel gegen Theme-Überschriften absichern (Avada setzt h3 auf 34 px) */
body .wcc-ui h3.wcc-car__title {
  font-family: var(--wcc-h) !important; font-size: 20px !important; font-weight: 700 !important; line-height: 1.15 !important;
  letter-spacing: normal !important; text-transform: none !important; margin: 0 !important; padding: 0 !important;
}

/* Versteckte Auswahlfelder bleiben in ihrem Chip – sonst ragen sie aus der wischbaren Leiste und die Seite scrollt seitlich */
.wcc-chips, .wcc-chip, .wcc-opt { position: relative; }
.wcc-chip input, .wcc-opt input { left: 0; top: 0; }
