/* Vehicle stock list and detail pages (Kenji, 9 Nov 2026). Uses the site's dark panels,
   red accent and type scale; cards follow the model catalogue and homepage stock cards. */
.stock-page{padding-top:28px;padding-bottom:56px}
.stock-filters{display:grid;grid-template-columns:minmax(200px,1.6fr) repeat(5,minmax(120px,1fr)) auto;align-items:end;gap:14px;padding:18px 22px;margin:0 0 14px}
.stock-filters label{display:grid;gap:6px;min-width:0;font-size:11px;line-height:1.4;color:#dce1e7}
.stock-filters :is(input,select){width:100%;min-width:0;min-height:44px;padding:0 12px;border:1px solid #536170;border-radius:4px;background:#05080d;color:#f5f6f8;font:inherit;font-size:15px}
.stock-filters input::placeholder{color:#aab5c2}
.stock-filters :is(input,select):focus-visible{outline:2px solid #ff5368;outline-offset:1px}
.stock-reset{min-height:44px}
.stock-count{margin:0 0 14px;font-size:13px;color:var(--sp-muted)}
.stock-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}
.stock-card{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid var(--sp-line);border-radius:6px;background:var(--sp-panel);overflow:hidden;transition:border-color .18s}
.stock-card:hover{border-color:#5d6875}
.stock-card[hidden]{display:none}
.stock-card-photo{position:relative;aspect-ratio:4/3;background:#0d151f;overflow:hidden}
.stock-card-photo img{width:100%;height:100%;object-fit:cover}
.stock-badge{position:absolute;top:12px;left:12px;z-index:1;padding:5px 9px;border-radius:3px;background:#1f2a36e6;color:#fff;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.stock-badge.is-new{background:#c4161c}
.stock-photo-count{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:3px;background:#05080dcc;color:#e6eaf0;font-size:11px;font-variant-numeric:tabular-nums}
.stock-photo-count .icon{width:14px;height:14px}
.stock-save{position:absolute;top:10px;right:10px;z-index:2;display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff38;border-radius:50%;background:#05080dcc;color:#fff;cursor:pointer}
.stock-save .icon{width:20px;height:20px}
.stock-save[aria-pressed=true]{color:#ff5368;border-color:#ff5368}
.stock-save[aria-pressed=true] .icon{fill:currentColor}
.stock-save:focus-visible{outline:2px solid #ff5368;outline-offset:2px}
.stock-card-copy{display:flex;flex:1;flex-direction:column;gap:10px;padding:16px 18px 0}
.stock-card-title{margin:0;font-size:17px;line-height:1.3;font-weight:600;color:#fff;text-wrap:balance}
.stock-card-title a{color:inherit;text-decoration:none}
.stock-card-title a::after{content:'';position:absolute;inset:0;z-index:1}
.stock-card-title a:focus-visible{outline:none}
.stock-card:has(.stock-card-title a:focus-visible){outline:2px solid #ff5368;outline-offset:2px}
.stock-facts{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.stock-facts li{padding:4px 8px;border:1px solid #2f3946;border-radius:3px;background:#0a1018;color:#d3d9e1;font-size:11.5px;line-height:1.3;font-variant-numeric:tabular-nums}
.stock-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:2px 0 0;font-size:22px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums}
.stock-price span{font-size:11.5px;font-weight:400;color:var(--sp-muted)}
.stock-efficiency{margin:0;font-size:11px;line-height:1.55;color:#98a2ae}
.stock-card[data-condition="Neuwagen"] .stock-efficiency{font-size:11.5px;font-weight:600}
.stock-summary[data-condition="Neuwagen"] .stock-efficiency{font-size:12.5px;font-weight:600}
.stock-card-more{display:flex;justify-content:space-between;align-items:center;min-height:48px;margin:auto -18px 0;padding:0 18px;border-top:1px solid var(--sp-line);color:#fff;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.stock-card-more .icon{width:16px;height:16px;color:#ff2a40}
.stock-empty{padding:28px;text-align:center}
.stock-empty h2{margin:0 0 8px;font-size:20px}
.stock-empty a{color:#ff8fa0}
.stock-source{margin:22px 0 0;font-size:11.5px;line-height:1.6;color:#98a2ae}
.stock-source a{color:#dfe4ea}
.stock-models{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px 32px;margin-top:36px;padding:26px 28px}
.stock-models h2{margin:6px 0 8px;font-size:22px}
.stock-models p:not(.eyebrow){max-width:62ch;margin:0;color:#c8cfd8;font-size:13px;line-height:1.6}

/* Detail page */
.stock-detail{padding-top:22px;padding-bottom:64px}
.stock-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;font-size:12px;color:#aab3be}
.stock-breadcrumb a{color:#dfe4ea}
.stock-breadcrumb [aria-current]{color:#fff;overflow-wrap:anywhere}
.stock-detail-top{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);gap:24px;align-items:start}
.stock-gallery{min-width:0}
.stock-gallery-main{position:relative;aspect-ratio:4/3;border:1px solid var(--sp-line);border-radius:6px;background:#0d151f;overflow:hidden}
.stock-gallery-main>img{width:100%;height:100%;object-fit:contain;background:#05080d}
.stock-gallery-nav{position:absolute;top:50%;z-index:1;display:grid;place-items:center;width:46px;height:46px;margin-top:-23px;border:1px solid #ffffff40;border-radius:50%;background:#05080dcc;color:#fff;cursor:pointer}
.stock-gallery-nav.is-prev{left:12px}
.stock-gallery-nav.is-next{right:12px}
.stock-gallery-nav:hover{border-color:#fff}
.stock-gallery-nav:focus-visible{outline:2px solid #ff5368;outline-offset:2px}
.stock-gallery-count{position:absolute;right:12px;bottom:12px;padding:4px 9px;border-radius:3px;background:#05080dcc;color:#e6eaf0;font-size:12px;font-variant-numeric:tabular-nums}
.stock-gallery-thumbs{display:flex;gap:8px;margin:10px 0 0;padding:0 0 6px;list-style:none;overflow-x:auto;scroll-snap-type:x proximity}
.stock-gallery-thumbs li{flex:0 0 auto;scroll-snap-align:start}
.stock-gallery-thumbs a{display:block;width:96px;aspect-ratio:4/3;border:2px solid transparent;border-radius:4px;overflow:hidden;opacity:.72}
.stock-gallery-thumbs a[aria-current]{border-color:#ff2a40;opacity:1}
.stock-gallery-thumbs a:hover{opacity:1}
.stock-gallery-thumbs a:focus-visible{outline:2px solid #ff5368;outline-offset:1px}
.stock-gallery-thumbs img{width:100%;height:100%;object-fit:cover}
.stock-summary{display:flex;flex-direction:column;gap:12px;padding:24px;position:sticky;top:calc(var(--hp-header-height,96px) + 16px)}
.stock-summary .eyebrow{margin:0}
.stock-summary h1{margin:0;font-size:28px;line-height:1.2;font-weight:700;color:#fff;text-wrap:balance;overflow-wrap:anywhere}
.stock-summary-title{margin:0;font-size:12.5px;line-height:1.5;color:#aab3be;overflow-wrap:anywhere}
.stock-price-large{font-size:30px;margin-top:4px}
.stock-facts-large li{font-size:12.5px;padding:5px 9px}
.stock-actions{display:grid;gap:10px;margin-top:4px}
.stock-actions .button{justify-content:flex-start;gap:12px;min-height:46px;font-size:12px}
.stock-actions .button .icon{width:18px;height:18px}
.stock-summary-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid var(--sp-line);font-size:12px}
.stock-summary-foot>a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:#dfe4ea}
.stock-summary-foot>a .icon{width:15px;height:15px}
.stock-save-inline{position:static;width:auto;height:44px;padding:0 14px;gap:8px;border-radius:4px;display:inline-flex;align-items:center;font:inherit;font-size:12px}
.stock-detail-body{display:grid;gap:18px;margin-top:28px}
.stock-section{padding:22px 24px}
.stock-section h2{margin:0 0 14px;font-size:19px;color:#fff}
.stock-spec-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:0 28px;margin:0}
.stock-spec-list>div{display:grid;grid-template-columns:minmax(120px,.9fr) minmax(0,1.1fr);gap:12px;padding:9px 0;border-bottom:1px solid #1e2631}
.stock-spec-list dt{font-size:12.5px;color:#aab3be}
.stock-spec-list dd{margin:0;font-size:13px;color:#f1f3f6;overflow-wrap:break-word;font-variant-numeric:tabular-nums}
.stock-footnote{margin:14px 0 0;font-size:11px;line-height:1.6;color:#98a2ae}
.stock-equipment{columns:3 220px;column-gap:28px;margin:0;padding:0;list-style:none}
.stock-equipment li{display:flex;gap:8px;break-inside:avoid;padding:5px 0;font-size:13px;line-height:1.45;color:#e1e6ec}
.stock-equipment .icon{flex:0 0 auto;width:16px;height:16px;margin-top:2px;color:#ff2a40}
.stock-description{max-width:78ch;font-size:13.5px;line-height:1.7;color:#d8dee6;overflow-wrap:anywhere}
.stock-description ul{margin:6px 0 14px;padding-left:20px}
.stock-description li{margin:2px 0}
.stock-description b,.stock-description strong{color:#fff}
.stock-related{margin-top:44px}
.stock-related h2{margin:0 0 16px;font-size:22px}
.stock-related>.button{margin-top:18px}

@media (max-width:1280px){
  .stock-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  .stock-filters .stock-search{grid-column:1/-1}
}
@media (max-width:980px){
  .stock-detail-top{grid-template-columns:1fr}
  .stock-summary{position:static}
}
@media (max-width:600px){
  .stock-filters{grid-template-columns:1fr 1fr;padding:16px;gap:12px}
  .stock-reset{grid-column:1/-1}
  .stock-grid{grid-template-columns:1fr}
  .stock-summary{padding:18px}
  .stock-summary h1{font-size:24px}
  .stock-section{padding:18px}
  .stock-spec-list>div{grid-template-columns:1fr 1fr}
  .stock-models{padding:20px}
  .stock-gallery-nav{width:40px;height:40px;margin-top:-20px}
}
@media (max-width:600px){
  .stock-filters .stock-search{grid-column:1/-1}
}
@media (max-width:340px){
  .stock-filters{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.stock-card{transition:none}}
