/*
 * ASG24 – eigene Styles als reines CSS
 * Diese Datei wird als letzte geladen und überschreibt NOVA-Regeln.
 * Sie greift sofort, auch ohne SCSS-Kompilierung.
 * Werte entsprechen dem Design-Entwurf "Richtung C".
 */

:root {
  --asg-orange: #f28c00;
  --asg-orange-dark: #d97c00;
  --asg-blue: #1a4f9a;
  --asg-blue-dark: #123a72;
  --asg-blue-light: #eef3fb;
  --asg-dark: #1f2933;
  --asg-muted: #52606d;
  --asg-muted-light: #7b8794;
  --asg-border: #e4e7eb;
  --asg-page-bg: #f7f8fa;
  --asg-card-bg: #ffffff;
  --asg-success: #2f855a;
  --asg-radius: 6px;
  --asg-radius-lg: 8px;
}

/* ---------- Grundlagen ---------- */
body {
  font-family: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--asg-page-bg);
  color: var(--asg-dark);
}

a { color: var(--asg-blue); }
a:hover { color: var(--asg-blue-dark); }

h1, h2, h3, h4 { font-weight: 700; color: var(--asg-dark); }

/* ---------- Buttons ---------- */
.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--asg-orange);
  border-color: var(--asg-orange);
  color: #fff;
  font-weight: 700;
  border-radius: var(--asg-radius);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--asg-orange-dark);
  border-color: var(--asg-orange-dark);
  color: #fff;
}
.btn-secondary,
.btn-outline-primary {
  border-radius: var(--asg-radius);
  font-weight: 600;
}

/* ---------- Kopfbereich ---------- */
/* Dunkle Kontaktleiste ganz oben */
#header-top-bar,
.header-top-bar {
  background: var(--asg-dark);
  color: #cbd2d9;
  font-size: 13px;
}
#header-top-bar a,
.header-top-bar a { color: #cbd2d9; }

/* Weißer Hauptkopf mit Logo, Suche, Konto, Warenkorb */
#jtl-nav-wrapper,
.navbar.header-main,
#header .navbar {
  background: #fff;
  border-bottom: 1px solid var(--asg-border);
}

/* Suchfeld: klare Kante, oranger Suchen-Button */
#header .form-control,
#search-header .form-control,
.search-wrapper .form-control {
  height: 44px;
  border: 1px solid #cbd2d9;
  border-right: 0;
  border-radius: var(--asg-radius) 0 0 var(--asg-radius);
  box-shadow: none;
}
#search-header .btn,
.search-wrapper .btn {
  height: 44px;
  background: var(--asg-orange);
  border-color: var(--asg-orange);
  color: #fff;
  border-radius: 0 var(--asg-radius) var(--asg-radius) 0;
}

/* Warenkorb-Link blau hervorheben */
#header .cart-icon,
.nav-item.cart .nav-link { color: var(--asg-blue); font-weight: 600; }

/* ---------- Linke Sidebar (Kategorien = Marken) ---------- */
#sidebar-left .box,
#sidebar .box,
.box-normal {
  background: var(--asg-card-bg);
  border: 1px solid var(--asg-border);
  border-radius: var(--asg-radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
}
#sidebar-left .box .box-title,
.box-normal .box-title,
.box-normal .box-header {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--asg-muted-light);
  border-bottom: 1px solid var(--asg-border);
  background: transparent;
}
.box-categories .nav-link,
.box-normal .nav-link {
  padding: 10px 18px;
  font-size: 14px;
  color: var(--asg-muted);
}
.box-categories .nav-link.active,
.box-categories .active > .nav-link {
  background: var(--asg-blue-light);
  color: var(--asg-blue);
  font-weight: 700;
}
.box-categories .nav .nav .nav-link { padding-left: 32px; }

/* ---------- Karten (Artikel, Kategorien, Inhalte) ---------- */
.product-wrapper,
.productbox,
.productbox-inner,
.card {
  background: var(--asg-card-bg);
  border: 1px solid var(--asg-border);
  border-radius: var(--asg-radius-lg);
}
.productbox { padding: 20px; }
.productbox-image img { border-radius: 4px; }
.productbox-title,
.productbox-title a {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--asg-dark);
}
.productbox-short-desc,
.productbox .productbox-desc {
  font-size: 13px;
  color: var(--asg-muted);
  line-height: 1.5;
}
.productbox .price,
.productbox .price_wrapper .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--asg-dark);
}
.productbox .price_wrapper .price.old-price { color: var(--asg-muted-light); }

/* Kennzeichnung Reparatur / Austauschgerät über dem Titel (Merkmal oder Suchspecial) */
.asg-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--asg-orange);
  margin-bottom: 6px;
}
.asg-badge--austausch { color: var(--asg-blue); }

/* ---------- Brotkrumen ---------- */
.breadcrumb {
  background: transparent;
  padding: 16px 0 0;
  font-size: 13px;
}
.breadcrumb-item.active { color: var(--asg-dark); font-weight: 600; }

/* ---------- Artikeldetailseite ---------- */
#product-offer .price,
.product-detail .price {
  font-size: 34px;
  font-weight: 700;
}
.product-detail .nav-tabs .nav-link.active {
  color: var(--asg-blue);
  border-bottom: 2px solid var(--asg-blue);
  font-weight: 700;
}
.product-detail .nav-tabs .nav-link { font-weight: 600; color: var(--asg-muted); }

/* Hinweisbox "Nach der Bestellung" (Inhalt über Artikel-Attribut oder OPC) */
.asg-note {
  background: var(--asg-blue-light);
  border-radius: var(--asg-radius);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
}
.asg-note strong { display: block; margin-bottom: 2px; }

/* Vorteile mit grünem Haken */
.asg-check {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.asg-check li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
  font-size: 14px;
}
.asg-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 13px;
  border: solid var(--asg-success);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Fehlercode-Liste im Reiter "Typische Fehler" */
.asg-fault {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--asg-border);
  border-radius: var(--asg-radius);
  margin-bottom: 10px;
}
.asg-fault code {
  flex-shrink: 0;
  padding: 2px 8px;
  background: #fff4e5;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
}

/* Ablauf in Schritten (Startseite, Artikelseite) */
.asg-steps { display: flex; flex-direction: column; gap: 14px; }
.asg-step { display: flex; gap: 14px; align-items: flex-start; }
.asg-step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--asg-blue-light);
  color: var(--asg-blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asg-step__title { font-size: 15px; font-weight: 700; }
.asg-step__text { font-size: 13px; color: var(--asg-muted); line-height: 1.55; }

/* ---------- Fußzeile ---------- */
#footer,
footer.footer {
  background: var(--asg-dark);
  color: #cbd2d9;
  font-size: 13px;
}
#footer a,
footer.footer a { color: #cbd2d9; }
#footer h4,
footer.footer .footer-title { color: #fff; font-size: 14px; font-weight: 700; }

/* ---------- Formulare ---------- */
.form-control {
  border-radius: var(--asg-radius);
  border-color: #cbd2d9;
}
.form-control:focus {
  border-color: var(--asg-blue);
  box-shadow: 0 0 0 0.15rem rgba(26, 79, 154, 0.2);
}

/* ---------- Mobil ---------- */
@media (max-width: 767.98px) {
  .productbox { padding: 14px; }
  #product-offer .price,
  .product-detail .price { font-size: 26px; }
}

/* =====================================================================
   ASG24 – Kopfbereich (layout/header.tpl im Child-Template)
   ===================================================================== */
.asg-topbar {
  background: var(--asg-dark);
  color: #cbd2d9;
  font-size: 13px;
  min-height: 36px;
}
.asg-topbar .nav-link {
  color: #cbd2d9;
  padding: 8px 12px;
  font-weight: 400;
}
.asg-topbar .nav-link:hover,
.asg-topbar .nav-link.active { color: #fff; }
.asg-topbar .nav-dividers .nav-item + .nav-item { border-left: 1px solid #3a4553; }
.asg-topbar .fas { color: var(--asg-orange); }

header.asg-header {
  background: #fff;
  border-bottom: 1px solid var(--asg-border);
  box-shadow: none;
}
header.asg-header .hide-navbar { padding-top: 12px; padding-bottom: 12px; }
header.asg-header .asg-header-main { min-height: 64px; }
header.asg-header .main-search-wrapper { max-width: 760px; }
header.asg-header .nav-icons-wrapper .nav-link { color: var(--asg-muted); font-weight: 600; }
header.asg-header .nav-icons-wrapper .nav-link:hover { color: var(--asg-blue); }

/* Wortmarke */
.asg-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding: 0;
  margin: 0 24px 0 0;
  text-decoration: none;
}
.asg-logo__word { display: flex; align-items: baseline; font-weight: 700; font-size: 24px; letter-spacing: -0.3px; }
.asg-logo__auto { color: var(--asg-blue); }
.asg-logo__brand { color: var(--asg-orange); }
.asg-logo__24 {
  display: inline-block;
  background: var(--asg-blue);
  color: #fff;
  font-size: 15px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  transform: translateY(-2px);
}
.asg-logo__claim { font-size: 11px; font-weight: 600; color: var(--asg-muted-light); letter-spacing: 0.5px; margin-top: 4px; }
.asg-logo:hover .asg-logo__auto { color: var(--asg-blue-dark); }

/* Kategorie-Zeile */
.asg-header-categories { border-top: 1px solid var(--asg-border); }
.asg-header-categories .navbar { padding: 0; }
.asg-header-categories .nav-scrollbar-item > .nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--asg-dark);
  padding: 12px 18px 12px 0;
}
.asg-header-categories .nav-scrollbar-item > .nav-link:hover,
.asg-header-categories .nav-scrollbar-item.active > .nav-link { color: var(--asg-orange); }

/* Suche im Kopf */
header.asg-header .search-wrapper .form-control,
header.asg-header #search-header {
  height: 44px;
  border: 1px solid #cbd2d9;
  border-right: 0;
  border-radius: var(--asg-radius) 0 0 var(--asg-radius);
  font-size: 14px;
}
header.asg-header .search-wrapper .btn,
header.asg-header .search-wrapper .btn-secondary {
  height: 44px;
  background: var(--asg-orange);
  border-color: var(--asg-orange);
  color: #fff;
  border-radius: 0 var(--asg-radius) var(--asg-radius) 0;
  padding: 0 18px;
}
header.asg-header .search-wrapper .btn:hover { background: var(--asg-orange-dark); border-color: var(--asg-orange-dark); }

/* =====================================================================
   ASG24 – Startseite (page/index.tpl im Child-Template)
   ===================================================================== */
.asg-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--asg-orange);
  margin-bottom: 12px;
}
.asg-card {
  background: var(--asg-card-bg);
  border: 1px solid var(--asg-border);
  border-radius: var(--asg-radius-lg);
  padding: 32px 40px;
}
.asg-section { margin: 28px 0; }
.asg-section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.asg-section__title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.asg-section__head .asg-section__title { margin: 0; }
.asg-link-strong { font-weight: 600; color: var(--asg-blue); }

.asg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  background: var(--asg-card-bg);
  border: 1px solid var(--asg-border);
  border-radius: var(--asg-radius-lg);
  padding: 36px 40px;
  margin: 24px 0 28px;
}
.asg-hero__title { font-size: 30px; line-height: 1.2; font-weight: 700; margin: 0 0 14px; }
.asg-hero__lead { font-size: 15px; line-height: 1.6; color: var(--asg-muted); margin: 0 0 16px; }
.asg-hero__actions { display: flex; align-items: center; gap: 20px; margin-top: 6px; }
.asg-hero__actions .btn-lg { padding: 12px 22px; font-size: 14px; }
.asg-hero__media img { width: 100%; height: auto; border-radius: var(--asg-radius); display: block; }

.asg-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.asg-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--asg-card-bg);
  border: 1px solid var(--asg-border);
  border-radius: var(--asg-radius-lg);
  color: var(--asg-dark);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.asg-tile:hover { border-color: var(--asg-orange); box-shadow: 0 4px 14px rgba(31, 41, 51, 0.08); text-decoration: none; color: var(--asg-dark); }
.asg-tile__title { font-size: 16px; font-weight: 700; }
.asg-tile__sub { font-size: 13px; color: var(--asg-muted); line-height: 1.5; }
.asg-tile__more { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--asg-blue); }
.asg-tile__more .fas { font-size: 10px; margin-left: 4px; }

.asg-steps--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.asg-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.asg-trust__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--asg-card-bg);
  border: 1px solid var(--asg-border);
  border-radius: var(--asg-radius-lg);
}
.asg-trust__item .fas { font-size: 24px; color: var(--asg-blue); margin-bottom: 4px; }
.asg-trust__title { font-size: 14px; font-weight: 700; }
.asg-trust__text { font-size: 13px; color: var(--asg-muted); line-height: 1.5; }

.asg-faq__item { padding: 14px 0; border-top: 1px solid var(--asg-border); }
.asg-faq__q { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.asg-faq__a { font-size: 13px; color: var(--asg-muted); line-height: 1.55; }

/* NOVA-Slider auf der Startseite in unseren Rhythmus einpassen */
.asg-index-sliders .product-slider-wrapper { margin-top: 0; }

@media (max-width: 991.98px) {
  .asg-hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .asg-hero__title { font-size: 24px; }
  .asg-tiles, .asg-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asg-steps--grid { grid-template-columns: 1fr; gap: 16px; }
  .asg-card { padding: 20px; }
  .asg-logo__word { font-size: 20px; }
  .asg-logo__claim { display: none; }
}
@media (max-width: 575.98px) {
  .asg-tiles, .asg-trust { grid-template-columns: 1fr; }
  .asg-hero__actions { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Startseite: Breite und Fußzeile ---------- */
.asg-index { max-width: 1440px; }
#footer .box,
#footer .box-normal {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-bottom: 0;
}
#footer .box .box-title,
#footer .box-normal .box-title,
#footer .box-normal .box-header,
#footer .productlist-filter-headline,
#footer .box-normal-link {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  border: 0;
  padding: 0 0 10px;
}
#footer .box .nav-link,
#footer .box-normal .nav-link { padding: 4px 0; color: #cbd2d9; font-size: 13px; }
#footer .box .nav-link:hover { color: #fff; }
#footer hr { border-color: #3a4553; }
#footer .footnote-vat,
#footer .footnote-vat .small { color: #9aa5b1; }
#copyright { background: #161d26; color: #9aa5b1; font-size: 12px; }
#copyright a { color: #cbd2d9; }

/* Fußzeile: Widerrufs-Button dezent, Boxen-Titel weiß */
#footer .withdrawal-link,
#footer .withdrawal-link.btn-primary {
  background: transparent;
  border: 1px solid #3a4553;
  color: #cbd2d9;
  font-weight: 600;
}
#footer .withdrawal-link:hover { border-color: #cbd2d9; color: #fff; background: transparent; }
#footer .box-normal-link,
#footer .box-normal-link span { color: #fff; }
#footer .box,
#footer .box-normal { color: #cbd2d9; }

/* =====================================================================
   ASG24 – Aufklappmenü im Kopf (snippets/categories_mega.tpl)
   ===================================================================== */
.asg-header-categories .nav-scrollbar-item > .nav-link.dropdown-toggle::after { margin-left: 6px; opacity: 0.6; }
.asg-header-categories .dropdown-full > .dropdown-menu {
  border: 0;
  border-top: 1px solid var(--asg-border);
  border-radius: 0 0 var(--asg-radius-lg) var(--asg-radius-lg);
  box-shadow: 0 16px 32px rgba(31, 41, 51, 0.12);
  padding: 0;
}
.asg-header-categories .dropdown-full > .dropdown-menu .dropdown-body { padding: 0; }
.asg-header-categories .dropdown-full .subcategory-wrapper { padding: 0; }
.asg-mega { padding: 24px 32px 28px; }
.asg-mega__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--asg-border);
}
.asg-mega__title { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--asg-muted-light); }
.asg-mega__all { font-size: 13px; font-weight: 600; color: var(--asg-blue); }
.asg-mega__all .fas { font-size: 10px; margin-left: 4px; }
.asg-mega__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px 24px;
}
.asg-mega__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--asg-radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--asg-dark);
  text-decoration: none;
}
.asg-mega__item:hover { background: var(--asg-blue-light); color: var(--asg-blue); text-decoration: none; }
.asg-mega__count {
  font-size: 11px;
  font-weight: 700;
  color: var(--asg-muted-light);
  background: #f4f5f7;
  border-radius: 10px;
  padding: 1px 7px;
}
@media (max-width: 991.98px) {
  .asg-mega { padding: 0; }
  .asg-mega__grid { grid-template-columns: 1fr; gap: 0; }
  .asg-mega__item { padding: 10px 16px; border-radius: 0; }
}

/* =====================================================================
   ASG24 – Unterkategorien auf Kategorieseiten (productlist/header.tpl)
   ===================================================================== */
.asg-subcats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 28px;
}
.asg-subcat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--asg-card-bg);
  border: 1px solid var(--asg-border);
  border-radius: var(--asg-radius-lg);
  color: var(--asg-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.asg-subcat:hover { border-color: var(--asg-orange); box-shadow: 0 4px 14px rgba(31, 41, 51, 0.08); color: var(--asg-dark); text-decoration: none; }
.asg-subcat__name { flex-grow: 1; }
.asg-subcat__count {
  font-size: 11px;
  font-weight: 700;
  color: var(--asg-muted-light);
  background: #f4f5f7;
  border-radius: 10px;
  padding: 2px 8px;
}
.asg-subcat__icon { font-size: 11px; color: var(--asg-muted-light); }
.asg-subcat:hover .asg-subcat__icon { color: var(--asg-orange); }
@media (max-width: 991.98px) { .asg-subcats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .asg-subcats { grid-template-columns: 1fr; } }

/* Kategorieseite: Überschrift und Beschreibung */
#content h1 { font-size: 26px; margin-bottom: 8px; }
.productlist-header .category-description,
.productlist-header .desc { color: var(--asg-muted); font-size: 14px; }

/* =====================================================================
   ASG24 – Artikelkarten in der Galerieansicht (productlist/item_box.tpl)
   ===================================================================== */
.product-list.layout-gallery .productbox,
.product-slider-wrapper .productbox {
  background: var(--asg-card-bg);
  border: 1px solid var(--asg-border);
  border-radius: var(--asg-radius-lg);
  padding: 20px;
  height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.productbox.productbox-hover:hover,
.productbox.productbox-hover:focus-within {
  border-color: var(--asg-orange);
  box-shadow: 0 6px 18px rgba(31, 41, 51, 0.10);
}
.productbox .productbox-inner { padding: 0; }
.productbox .productbox-images { background: #f4f5f7; border-radius: 4px; padding: 10px; margin-bottom: 14px; }
.productbox .productbox-image.square-image { background: transparent; }
.productbox .productbox-quick-actions { top: 12px; right: 12px; }
.productbox .productbox-quick-actions .btn { background: #fff; border: 1px solid var(--asg-border); color: var(--asg-muted); }

.asg-pb { display: flex; flex-direction: column; gap: 8px; min-height: 100%; }
.asg-pb .productbox-title,
.asg-pb .productbox-title a {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--asg-dark);
  text-align: left;
}
.asg-pb .productbox-title a:hover { color: var(--asg-blue); text-decoration: none; }
.asg-pb__desc { font-size: 13px; color: var(--asg-muted); line-height: 1.5; text-align: left; }
.asg-pb__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}
.asg-pb__price .price_wrapper,
.asg-pb__price .price { font-size: 20px; font-weight: 700; color: var(--asg-dark); text-align: left; }
.asg-pb__price .price_wrapper .price.old-price { color: var(--asg-muted-light); font-size: 13px; font-weight: 400; }
.asg-pb__price .price-note,
.asg-pb__price .shipping-note,
.asg-pb__price .footnote-reference { display: none; }
.asg-pb__btn { font-size: 13px; padding: 10px 14px; white-space: nowrap; }
.asg-pb .guarantee-label-wrapper { margin-top: 4px; }

/* Listenansicht: gleiche Kartenoptik */
.product-list.layout-list .productbox { background: var(--asg-card-bg); border: 1px solid var(--asg-border); border-radius: var(--asg-radius-lg); }

/* Werkzeugleiste über der Artikelliste */
.productlist-filter-headline,
.productlist-actions { font-size: 13px; }
#product-list-options .btn,
.productlist-actions .btn { border-radius: var(--asg-radius); font-size: 13px; }

@media (max-width: 575.98px) {
  .product-list.layout-gallery .productbox { padding: 14px; }
  .asg-pb__footer { flex-direction: column; align-items: flex-start; }
  .asg-pb__btn { width: 100%; text-align: center; }
}

/* Artikelkarten: drei Spalten neben der Seitenleiste, Preis und Button nicht umbrechen */
@media (min-width: 1200px) {
  .has-left-sidebar .product-list.layout-gallery > [class*="col-"] { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
.asg-pb .productbox-title a { text-decoration: none; }
.asg-pb__footer { flex-wrap: wrap; }
.asg-pb__price .price_wrapper,
.asg-pb__price .price { white-space: nowrap; }
.asg-pb__btn { flex: 1 0 auto; text-align: center; }
.asg-pb__desc strong { color: var(--asg-dark); font-weight: 600; }

/* Rahmen nur auf der Karte selbst, nicht auf Spalte und Innenteil */
.product-wrapper,
.productbox .productbox-inner,
.product-list > [class*="col-"] {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.product-list.layout-gallery .productbox,
.product-slider-wrapper .productbox { border: 1px solid var(--asg-border); background: var(--asg-card-bg); }

/* Karten: Preis und Button immer am unteren Rand, auch ohne Kurzbeschreibung */
.product-list.layout-gallery .productbox,
.product-list.layout-gallery .productbox .form-basket,
.product-list.layout-gallery .productbox .productbox-inner,
.product-list.layout-gallery .productbox .productbox-inner > .row,
.product-list.layout-gallery .productbox .productbox-inner > .row > .col-12:last-child {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
}
.product-list.layout-gallery .productbox .productbox-inner > .row { margin-left: 0; margin-right: 0; }
.product-list.layout-gallery .productbox .productbox-inner > .row > .col-12 { padding-left: 0; padding-right: 0; }
.product-list.layout-gallery .productbox .productbox-inner > .row > .col-12:first-child { flex-grow: 0; }
.asg-pb { flex-grow: 1; }
.asg-pb__footer { margin-top: auto; }

/* Korrektur: Spalten in der Karte untereinander, volle Breite, kein Umbruch */
.product-list.layout-gallery .productbox .productbox-inner > .row {
  flex-wrap: nowrap;
  width: 100%;
}
.product-list.layout-gallery .productbox .productbox-inner > .row > .col-12 {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
}
.product-list.layout-gallery .productbox .productbox-inner > .row > .col-12:last-child { flex: 1 0 auto; }

/* Kartenhöhe nicht per Skript fixieren, sondern über das Raster strecken; auf dem Handy eine Karte pro Zeile */
.product-list.layout-gallery > [class*="col-"] { display: flex; }
.product-list.layout-gallery .productbox { height: auto !important; min-height: 0; width: 100%; }
@media (max-width: 575.98px) {
  .product-list.layout-gallery > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
}
