/* Kartenbude Shop Finish V12 - 17.08.2026
   Finaler Neon/Dark-Theme-Override fuer Shopseiten.
   Ziel: 6 Produkte pro Reihe auf Desktop, vollstaendig sichtbare Bilder,
   responsive Raster und keine hellen Alt-Styles aus site.css. */

:root{
  --kb12-bg:#020611;
  --kb12-panel:#07121f;
  --kb12-panel2:#091827;
  --kb12-line:#1d3b55;
  --kb12-text:#f4f8fc;
  --kb12-muted:#91a5b8;
  --kb12-cyan:#19d3ff;
  --kb12-pink:#ff35ad;
  --kb12-grad:linear-gradient(110deg,#10a8ff 0%,#2d6cff 45%,#7549ff 72%,#ff35ad 100%);
}

/* --- Global: alte helle Grundflaechen sicher ueberstimmen --- */
body.kb-premium,
body.kb-premium main{background-color:var(--kb12-bg)!important;color:var(--kb12-text)!important}
body.kb-premium .category-box,
body.kb-premium .service-strip,
body.kb-premium .filter-panel,
body.kb-premium .product-detail,
body.kb-premium .narrow,
body.kb-premium .empty,
body.kb-premium .sport-mini-card,
body.kb-premium .sport-tile,
body.kb-premium .sport-hub,
body.kb-premium .product-info-section,
body.kb-premium .description-box,
body.kb-premium .premium-category-card,
body.kb-premium .premium-product-card,
body.kb-premium .product-card{
  background:linear-gradient(180deg,var(--kb12-panel2),var(--kb12-panel))!important;
  color:var(--kb12-text)!important;
  border-color:var(--kb12-line)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.25)!important;
}
body.kb-premium .service-strip>div,
body.kb-premium .category-box>a{border-color:#193148!important}

/* Formulare / Dropdowns / Buttons: keine weissen Restflaechen */
body.kb-premium input,
body.kb-premium select,
body.kb-premium textarea{
  background:#06101b!important;color:#eef7ff!important;border-color:#284860!important;
}
body.kb-premium input::placeholder,
body.kb-premium textarea::placeholder{color:#71869a!important}
body.kb-premium input:focus,
body.kb-premium select:focus,
body.kb-premium textarea:focus{
  outline:none!important;border-color:var(--kb12-cyan)!important;
  box-shadow:0 0 0 3px rgba(25,211,255,.09)!important;
}
body.kb-premium button:not(.gold-buy-button):not(.gold-checkout-button):not(.kb-notify-button):not(.kb-chat-launcher),
body.kb-premium .cart-button,
body.kb-premium .back-button,
body.kb-premium .cart-remove{
  background:#081521!important;color:#eaf6ff!important;border-color:#29506c!important;
}
body.kb-premium button:hover,
body.kb-premium .cart-button:hover,
body.kb-premium .back-button:hover,
body.kb-premium .cart-remove:hover{
  border-color:var(--kb12-cyan)!important;color:#fff!important;
}

/* Autofill darf Felder nicht weiss machen */
body.kb-premium input:-webkit-autofill,
body.kb-premium input:-webkit-autofill:hover,
body.kb-premium input:-webkit-autofill:focus,
body.kb-premium textarea:-webkit-autofill,
body.kb-premium select:-webkit-autofill{
  -webkit-text-fill-color:#eef7ff!important;
  -webkit-box-shadow:0 0 0 1000px #06101b inset!important;
  caret-color:#eef7ff!important;
}

/* --- Produktkarten --- */
body.kb-premium .product-card{
  min-width:0!important;overflow:hidden!important;border-radius:11px!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
body.kb-premium .product-card:hover{
  transform:translateY(-3px)!important;border-color:#27bde8!important;
  box-shadow:0 14px 30px rgba(0,0,0,.32),0 0 18px rgba(25,211,255,.06)!important;
}
body.kb-premium .product-image-wrap,
body.kb-premium .premium-product-grid .product-image-wrap{
  background:radial-gradient(circle at 50% 42%,rgba(25,211,255,.06),transparent 42%),#06101a!important;
  border:1px solid #17344c!important;height:230px!important;min-height:230px!important;padding:8px!important;
}
body.kb-premium .product-image,
body.kb-premium .product-image-wrap img{
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;padding:3px!important;background:transparent!important;
}
body.kb-premium .product-card h3{color:#f8fbff!important}
body.kb-premium .product-meta,
body.kb-premium .variant-line{color:var(--kb12-muted)!important}
body.kb-premium .price{color:#fff!important}
body.kb-premium .stock-out{color:#7f93a6!important}

/* --- Gewuenschtes Raster: 6 Desktop / responsiv weniger --- */
@media (min-width:1400px){
  body.kb-premium .kb-preview-home .premium-product-grid,
  body.kb-premium .kb-preview-home .product-grid,
  body.kb-premium .kb-preview-home .featured-products-grid,
  body.kb-premium .shop-grid,
  body.kb-premium .all-products-grid,
  body.kb-premium .products-grid,
  body.kb-premium .premium-shop-grid,
  body.kb-premium .catalog-grid{
    display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important;
  }
}
@media (min-width:1200px) and (max-width:1399px){
  body.kb-premium .kb-preview-home .premium-product-grid,
  body.kb-premium .kb-preview-home .product-grid,
  body.kb-premium .kb-preview-home .featured-products-grid,
  body.kb-premium .shop-grid,
  body.kb-premium .all-products-grid,
  body.kb-premium .products-grid,
  body.kb-premium .premium-shop-grid,
  body.kb-premium .catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media (min-width:900px) and (max-width:1199px){
  body.kb-premium .kb-preview-home .premium-product-grid,
  body.kb-premium .kb-preview-home .product-grid,
  body.kb-premium .kb-preview-home .featured-products-grid,
  body.kb-premium .shop-grid,
  body.kb-premium .all-products-grid,
  body.kb-premium .products-grid,
  body.kb-premium .premium-shop-grid,
  body.kb-premium .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (min-width:620px) and (max-width:899px){
  body.kb-premium .kb-preview-home .premium-product-grid,
  body.kb-premium .kb-preview-home .product-grid,
  body.kb-premium .kb-preview-home .featured-products-grid,
  body.kb-premium .shop-grid,
  body.kb-premium .all-products-grid,
  body.kb-premium .products-grid,
  body.kb-premium .premium-shop-grid,
  body.kb-premium .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.kb-premium .product-image-wrap,
  body.kb-premium .premium-product-grid .product-image-wrap{height:210px!important;min-height:210px!important}
}
@media (min-width:420px) and (max-width:619px){
  body.kb-premium .kb-preview-home .premium-product-grid,
  body.kb-premium .kb-preview-home .product-grid,
  body.kb-premium .kb-preview-home .featured-products-grid,
  body.kb-premium .shop-grid,
  body.kb-premium .all-products-grid,
  body.kb-premium .products-grid,
  body.kb-premium .premium-shop-grid,
  body.kb-premium .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body.kb-premium .product-image-wrap,
  body.kb-premium .premium-product-grid .product-image-wrap{height:190px!important;min-height:190px!important}
}
@media (max-width:419px){
  body.kb-premium .kb-preview-home .premium-product-grid,
  body.kb-premium .kb-preview-home .product-grid,
  body.kb-premium .kb-preview-home .featured-products-grid,
  body.kb-premium .shop-grid,
  body.kb-premium .all-products-grid,
  body.kb-premium .products-grid,
  body.kb-premium .premium-shop-grid,
  body.kb-premium .catalog-grid{grid-template-columns:1fr!important}
  body.kb-premium .product-image-wrap,
  body.kb-premium .premium-product-grid .product-image-wrap{height:300px!important;min-height:300px!important}
}

/* --- Produktdetail / Ausverkauft / Varianten --- */
body.kb-premium .kb-variant-select{background:#06101b!important;color:#f4f8fc!important;border-color:#68459c!important}
body.kb-premium .premium-main-image,
body.kb-premium .detail-image{background:#06101a!important;border-color:#19374f!important}
body.kb-premium .premium-main-image img,
body.kb-premium .detail-image img{object-fit:contain!important;background:transparent!important}
body.kb-premium .premium-stock.out,
body.kb-premium .stock-out{display:inline-flex!important;align-items:center!important;padding:4px 8px!important;border-radius:999px!important;background:#15111c!important;border:1px solid #5d2948!important;color:#ff79be!important}

/* --- Mobile Header/Nav: nichts ueberlappt --- */
@media(max-width:850px){
  body.kb-premium .premium-header{grid-template-columns:1fr!important;gap:10px!important;padding:12px 16px!important}
  body.kb-premium .premium-brand{justify-self:center!important}
  body.kb-premium .premium-search{max-width:none!important}
  body.kb-premium .premium-actions{justify-self:center!important;flex-wrap:wrap!important;justify-content:center!important}
  body.kb-premium .premium-nav{height:auto!important;overflow-x:auto!important}
  body.kb-premium .premium-nav .nav-inner{justify-content:flex-start!important;min-width:max-content!important}
  body.kb-premium .premium-nav a{min-width:112px!important;padding:12px 14px!important}
  body.kb-premium .kb-preview-home,
  body.kb-premium .premium-subpage-shell,
  body.kb-premium .premium-listing-shell,
  body.kb-premium .premium-product-page,
  body.kb-premium .premium-cart-page,
  body.kb-premium .premium-form-page,
  body.kb-premium .premium-info-page,
  body.kb-premium .narrow{width:min(100% - 20px,1360px)!important}
}

/* ============================================================
   V13 - Top Angebote auf Seitenbreite (17.08.2026)
   Die Startseite zeigt bewusst max. 5 Top-Angebote. Diese 5 Karten
   nutzen auf Desktop die komplette Breite statt 5 von 6 Spalten.
   Andere Produktlisten behalten weiterhin das 6er-Raster.
   ============================================================ */
@media (min-width:1200px){
  body.kb-premium .kb-preview-home .premium-home-content > .premium-product-grid{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    width:100%!important;
    gap:14px!important;
  }
}
@media (min-width:900px) and (max-width:1199px){
  body.kb-premium .kb-preview-home .premium-home-content > .premium-product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media (min-width:620px) and (max-width:899px){
  body.kb-premium .kb-preview-home .premium-home-content > .premium-product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media (min-width:420px) and (max-width:619px){
  body.kb-premium .kb-preview-home .premium-home-content > .premium-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media (max-width:419px){
  body.kb-premium .kb-preview-home .premium-home-content > .premium-product-grid{
    grid-template-columns:1fr!important;
  }
}

/* CARDMETRIX SHOP – KATEGORIEN SCHRIFT V1 */
.premium-category-card small{
  font-size:15px !important;
  line-height:1.2 !important;
  letter-spacing:.02em !important;
  font-weight:900 !important;
}

.premium-category-card p{
  font-size:14px !important;
  line-height:1.35 !important;
}

.premium-category-card span{
  font-size:12px !important;
}

@media(max-width:900px){
  .premium-category-card small{
    font-size:14px !important;
  }
  .premium-category-card p{
    font-size:13px !important;
  }
}
