/* Auto-generated scoped kurslist CSS for tenant 'daem'. Kurslisten-UI only — not app chrome. listChrome=flatRow/compact */
/* Scoped kurslist CSS only — do NOT style app chrome / header / footer.
   Tokens: #50963d #003e5c #ffffff #e9ffe2 4px 105px 576
   detailChrome: 20px 700 #003e5c 16px #505050 6px
   16px #6f706f 400 #50963d 27px 5px
   #50963d 0 10px 10px 13px 17px 500 108px
   When listChrome.itemChrome=flatRow: neutralize neumorphic gray tiles (site.css .neumorphism-row .card height:510px).
*/

/* --- Flat list surface: kill gray tile + fixed 510px height (site.css) --- */
.maincontent.webshop-style .neumorphism-row .card,
.maincontent.webshop-style .neumorphism-row .card.shadow-soft,
.maincontent.webshop-style .neumorphism-row .card.border-light,
.maincontent.webshop-style .kurslist-results-row .card,
.maincontent.webshop-style .card.kurslist-item-surface {
  --k3-kurslist-primary: #50963d;
  --k3-kurslist-secondary: #003e5c;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 4px 0 !important;
}

.maincontent.webshop-style .neumorphism-row > [class*="col-"],
.maincontent.webshop-style .kurslist-results-row > [class*="col-"] {
  margin-bottom: 0.35rem !important;
}

.maincontent.webshop-style .neumorphism-row .card table,
.maincontent.webshop-style .kurslist-item-table,
.maincontent.webshop-style .kurslist-item-surface table,
.maincontent.webshop-style table:has(.kurslist-template-card),
.maincontent.webshop-style table:has(.kurslist-template) {
  background: transparent !important;
  background-color: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.maincontent.webshop-style .kurslist-item-table tr,
.maincontent.webshop-style .kurslist-item-table td,
.maincontent.webshop-style .kurslist-template,
.maincontent.webshop-style .kurslist-template-card,
.maincontent.webshop-style tr.kurslist-template-card > td,
.maincontent.webshop-style tr.kurslist-template > td {
  --k3-kurslist-primary: #50963d;
  --k3-kurslist-secondary: #003e5c;
  background: transparent !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Divider only between list items — never between title and description rows */
.maincontent.webshop-style .neumorphism-row .card.kurslist-item-surface,
.maincontent.webshop-style .kurslist-results-row .card,
.maincontent.webshop-style .neumorphism-row .card {
  border-bottom: 1px solid #e0ded8 !important;
}

/* Title ↔ body stack (detailChrome.titleStack) */
.maincontent.webshop-style .kurslist-template-card a,
.maincontent.webshop-style .kurslist-item-surface a {
  color: #003e5c !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  font-family: Poppins, "Open Sans", sans-serif !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

.maincontent.webshop-style .kurslist-template-card td .mud-typography,
.maincontent.webshop-style .kurslist-item-surface td {
  font-family: Poppins, "Open Sans", sans-serif;
}

/* Single gap between title row and description — do not stack with large cell padding */
.maincontent.webshop-style .kurslist-item-table tr:nth-child(2) > td {
  padding-top: 6px !important;
  color: #505050;
  font-size: 16px;
}

/* Keep overall card close to source ~120px row height */
.maincontent.webshop-style .kurslist-item-surface .kurslist-item-table {
  height: auto !important;
}

.maincontent.webshop-style .kurslist-item-table td {
  line-height: 1.35 !important;
}

/* Compact icons — measured seminarPhoto ~105px; object-fit contain (artwork may be circular) */
.maincontent.webshop-style .kurslist-icon-stack {
  position: relative;
  display: inline-block;
  width: 105px;
  height: 105px;
  max-width: 105px;
  vertical-align: middle;
  overflow: visible;
}

.maincontent.webshop-style .kurslist-template-card .kursIcon-lg,
.maincontent.webshop-style .kurslist-template .kursIcon-lg,
.maincontent.webshop-style .kurslist-template-card .img.kursIcon-lg,
.maincontent.webshop-style .kurslist-template-card .mud-image.kursIcon-lg,
.maincontent.webshop-style .neumorphism-row .kursIcon-lg,
.maincontent.webshop-style .kurslist-item-surface .kursIcon-lg,
.maincontent.webshop-style .kurslist-icon-stack .kursIcon-lg {
  border-radius: 0 !important;
  width: 105px !important;
  height: 105px !important;
  max-width: 105px !important;
  max-height: 105px !important;
  object-fit: contain !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: block !important;
}

/* Badges must overlay — never stack in flow (that doubles rowspan cell height / creates holes) */
.maincontent.webshop-style .kurslist-icon-stack .Online-Icon,
.maincontent.webshop-style .kurslist-icon-stack .mud-image.Online-Icon,
.maincontent.webshop-style .kurslist-item-surface .Online-Icon {
  position: absolute !important;
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  right: -4px !important;
  bottom: -4px !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  z-index: 2;
  object-fit: contain !important;
}

.maincontent.webshop-style .kurslist-icon-stack .New-Icon,
.maincontent.webshop-style .kurslist-icon-stack .mud-image.New-Icon,
.maincontent.webshop-style .kurslist-item-surface .New-Icon {
  position: absolute !important;
  width: 40px !important;
  height: auto !important;
  max-width: 48px !important;
  top: -6px !important;
  left: -6px !important;
  margin: 0 !important;
  z-index: 2;
}

/* Price badge: restyle Mud Euro icon (direct td child) like source i.fa-preis + lbl_fapreis */
.maincontent.webshop-style .neumorphism-row td > .mud-icon-root,
.maincontent.webshop-style .kurslist-item-surface td > .mud-icon-root {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 27px !important;
  height: 27px !important;
  min-width: 27px !important;
  max-width: 27px !important;
  max-height: 27px !important;
  margin-right: 5px !important;
  border-radius: 50% !important;
  background: #50963d !important;
  color: #fff !important;
  fill: #fff !important;
  font-size: 14px !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

.maincontent.webshop-style .neumorphism-row td > .mud-icon-root + *,
.maincontent.webshop-style .kurslist-item-surface td {
  font-size: 16px;
  font-weight: 400;
  color: #6f706f;
  font-family: Poppins, "Open Sans", sans-serif;
}

/* CTA Details — source HaasMehrBtn: fill + trailing arrow (EndIcon / ::after) */
.maincontent.webshop-style .kurslist-template-card .mud-button.SearchDeatilsBtn,
.maincontent.webshop-style .kurslist-template .mud-button.SearchDeatilsBtn,
.maincontent.webshop-style .neumorphism-row .mud-button.SearchDeatilsBtn,
.maincontent.webshop-style .kurslist-item-surface .mud-button.SearchDeatilsBtn {
  background-color: #50963d !important;
  border-color: #50963d !important;
  color: #fff !important;
  box-shadow: none !important;
  border-radius: 0 10px !important;
  font-weight: 500 !important;
  font-size: 17px !important;
  font-family: Poppins, "Open Sans", sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  padding: 10px 13px !important;
  min-width: 108px !important;
  height: auto !important;
  position: relative !important;
}

.maincontent.webshop-style .mud-button.SearchDeatilsBtn .mud-button-label {
  color: #fff !important;
}

.maincontent.webshop-style .mud-button.SearchDeatilsBtn .mud-icon-root {
  color: #fff !important;
  fill: #fff !important;
  background: transparent !important;
  border-radius: 0 !important;
  width: 1.1em !important;
  height: 1.1em !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.maincontent.webshop-style .neumorphism-row .mud-icon-root,
.maincontent.webshop-style .kurslist-item-surface .mud-icon-root,
.maincontent.webshop-style .kurslist-template-card .mud-icon-root {
  color: var(--k3-kurslist-primary, #50963d) !important;
  font-size: 1.25rem !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
}

/* Search bar — mint panel from source .PS.WD */
.maincontent.webshop-style .neumorphism-card {
  background: #e9ffe2 !important;
  box-shadow: 0 0 8px 1px rgba(170, 170, 170, 0.9) !important;
  border-radius: 10px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 14px !important;
}

/* Match live Dx primary on /Webshop/Suche (computed rgb(89, 159, 70)) */
.maincontent.webshop-style .neumorphism-card .SearchBtn {
  background-color: #599f46 !important;
  border-color: #599f46 !important;
  color: #fff !important;
  box-shadow: none !important;
  border-radius: 4px !important;
  padding: 0.375rem 0.75rem !important;
  font-weight: 500 !important;
}

.maincontent.webshop-style .neumorphism-card .SearchTextBox,
.maincontent.webshop-style .neumorphism-card .SearchComboBox {
  background: #fff !important;
  box-shadow: none !important;
}

/* Mobile matches DeviceSize.XSmall (~576) + source ≤619px: no image/desc; title then price|Details */
@media (max-width: 576px) {
  .maincontent.webshop-style .neumorphism-card {
    height: auto !important;
  }

  /* Source hides seminar image — hide icon stack if desktop template leaks into narrow viewports */
  .maincontent.webshop-style .kurslist-icon-stack,
  .maincontent.webshop-style .kurslist-template-card .kursIcon-lg,
  .maincontent.webshop-style .neumorphism-row .kursIcon-lg,
  .maincontent.webshop-style .kurslist-item-surface .kursIcon-lg,
  .maincontent.webshop-style .kurslist-icon-stack .Online-Icon,
  .maincontent.webshop-style .kurslist-icon-stack .New-Icon {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Title link: source mobile ~17px / weight 400 / green link color */
  .maincontent.webshop-style .kurslist-template-card a,
  .maincontent.webshop-style .kurslist-item-surface a {
    color: #448831 !important;
    font-size: 17px !important;
    font-weight: 400 !important;
  }

  /* Row 2 is price|Details on mobile template — not description gap */
  .maincontent.webshop-style .kurslist-item-table tr:nth-child(2) > td {
    padding-top: 10px !important;
    color: #6f706f;
    font-size: 16px;
    vertical-align: middle !important;
  }

  .maincontent.webshop-style .kurslist-item-table tr:nth-child(2) > td:last-child {
    text-align: right !important;
    vertical-align: bottom !important;
  }

  .maincontent.webshop-style .kurslist-item-surface .mud-button.SearchDeatilsBtn,
  .maincontent.webshop-style .neumorphism-row .mud-button.SearchDeatilsBtn {
    float: right !important;
    margin-left: auto !important;
  }
}
