/*
 * IT Tradeport – Brand, Typografie, Content-XXL
 * Wird als letzte CSS-Datei geladen und überschreibt NOVA bei Bedarf.
 * Kein Google-CDN – Source Sans Pro lokal unter fonts/sourcesanspro/
 */

/* -------------------------------------------------------------------------- */
/* Source Sans Pro (lokal, woff2)                                              */
/* -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sourcesanspro/SourceSansPro-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/sourcesanspro/SourceSansPro-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/sourcesanspro/SourceSansPro-Bold.woff2') format('woff2');
}

/* -------------------------------------------------------------------------- */
/* Brand-Tokens                                                               */
/* -------------------------------------------------------------------------- */

:root {
  /* WCAG 2.2 AA: Gruen/Grau/Rot so weit abgedunkelt, dass Text darauf bzw. damit
     4,5:1 erreicht (Markengruen #53b54a -> #3D8436, gleicher Farbton). */
  --it-primary: #3D8436;
  --it-secondary: #292F2D;
  --it-success: #3C843E;
  --it-danger: #CF4538;
  /* Gemeinsame Innenhoehe aller Mega-Menues (Desktop) */
  --it-mega-height: 18.5rem;
  --it-info: #29588C;
  --it-mute: #6D7078;
  --it-bg: #F5F7F8;
  --it-soft: #81C071;
  --it-soft-light: #9BCE97;
  --it-border: #DDE4E6;
  --it-field-border: #7F99A1; /* Raender von Eingabefeldern: mind. 3:1 (1.4.11) */

  /* Wireframe-Akzente */
  --it-green-deep: #2F6B3E;   /* Eigenmarke JodaBook, Icon-Akzent */
  --it-sale: #C0392B;         /* Angebote %, Warenkorb-Badge */
  --it-aktion: #6B3FA0;       /* Angebots-Badge in der Uebersicht, 7.4:1 auf Weiss */
  --it-bestseller: #D81B60;   /* Bestseller-Badge, 4.9:1 auf Weiss (AA fuer Kleintext) */
  --it-neu: #FFFFFF;          /* NEU-Tag rechts: weiss, schwarze Outline, schwarze Schrift */
  --it-line: #3F4543;         /* Header-Trennlinien laut Wireframe */

  --primary: #3D8436;
  --secondary: #292F2D;
  --success: #3C843E;
  --info: #29588C;
  --warning: #5F636B;
  --danger: #CF4538;
  --light: #F5F7F8;
  --dark: #292F2D;
  --font-family-sans-serif: 'Source Sans Pro', sans-serif;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
}

/* NOVA setzt Überschriften/Accent noch auf Montserrat (kompiliertes CSS) – überall Source Sans Pro */
html,
body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.btn,
.nav,
.navbar,
.dropdown-menu,
.form-control,
.custom-select,
.input-group-text,
.text-accent,
.price,
.product-title,
.card-title,
.modal,
.breadcrumb,
.pagination,
.badge,
.alert,
.table,
.footer,
.main-wrapper {
  font-family: 'Source Sans Pro', sans-serif !important;
}

/* Primary-Akzente (bis SCSS auf dem Server neu kompiliert ist) */
.btn-primary,
.badge-primary,
.bg-primary {
  background-color: var(--it-primary) !important;
  border-color: var(--it-primary) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  background-color: #346F2E !important;
  border-color: #346F2E !important;
  color: #fff !important;
}

.btn-outline-primary {
  color: var(--it-primary) !important;
  border-color: var(--it-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #fff !important;
  background-color: var(--it-primary) !important;
  border-color: var(--it-primary) !important;
}

.btn-secondary,
.badge-secondary,
.bg-secondary {
  background-color: var(--it-secondary) !important;
  border-color: var(--it-secondary) !important;
}

.btn-success,
.badge-success,
.bg-success {
  background-color: var(--it-success) !important;
  border-color: var(--it-success) !important;
  color: #fff !important;
}

.btn-danger,
.badge-danger,
.bg-danger {
  background-color: var(--it-danger) !important;
  border-color: var(--it-danger) !important;
}

.btn-info,
.badge-info,
.bg-info {
  background-color: var(--it-info) !important;
  border-color: var(--it-info) !important;
}

/* NOVA laedt Bootstrap ohne Reboot, es gibt also keinen Basis-Linkstil im
   kompilierten Theme. Standard ist dunkles Brand-Grau ohne Unterstrich; im
   Fliesstext bekommen Links Farbe und Unterstrich weiter unten zurueck.
   :where() haelt die Spezifitaet bei 0,0,1, damit jede vorhandene Regel
   (Footer, Navigation, Buttons, Kacheln) weiter gewinnt. */
a:where(:not(.btn, .dropdown-item, .nav-link)) {
  color: var(--it-secondary);
  text-decoration: none;
}

a:where(:not(.btn, .dropdown-item, .nav-link)):hover,
a:where(:not(.btn, .dropdown-item, .nav-link)):focus {
  color: var(--it-primary);
  text-decoration: none;
}

/* Fliesstext: Links muessen im Absatz erkennbar bleiben */
.content-xxl p a:not(.btn),
.content-xxl li a:not(.btn),
.link-content p a:not(.btn),
.link-content li a:not(.btn),
#result-wrapper .tab-content .desc a:not(.btn),
.it-pdp-desc a:not(.btn) {
  color: var(--it-info);
  text-decoration: underline;
}

.content-xxl p a:not(.btn):hover,
.content-xxl li a:not(.btn):hover,
.link-content p a:not(.btn):hover,
.link-content li a:not(.btn):hover,
#result-wrapper .tab-content .desc a:not(.btn):hover,
.it-pdp-desc a:not(.btn):hover {
  color: var(--it-primary);
  text-decoration: underline;
}

.text-primary {
  color: var(--it-primary) !important;
}

.text-muted {
  color: var(--it-mute) !important;
}

.page-item.active .page-link,
.nav-pills .nav-link.active,
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--it-primary) !important;
  border-color: var(--it-primary) !important;
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--it-primary);
  box-shadow: 0 0 0 0.2rem rgba(83, 181, 74, 0.25);
}

/* -------------------------------------------------------------------------- */
/* Content XXL                                                                */
/* -------------------------------------------------------------------------- */

.content-xxl {
  max-width: 52rem;
}

.content-xxl > .lead {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--it-mute);
}

.content-xxl h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--it-border);
  color: var(--it-secondary);
}

.content-xxl h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--it-secondary);
}

.content-xxl blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid var(--it-primary);
  background: rgba(83, 181, 74, 0.08);
  color: var(--it-secondary);
}

.content-xxl .btn {
  margin: 0.25rem 0.35rem 0.25rem 0;
}

.content-xxl .table {
  margin-top: 0.75rem;
}

.content-xxl .table thead th {
  border-bottom-color: var(--it-primary);
  color: var(--it-secondary);
}

.content-xxl-form .form-group {
  margin-bottom: 1rem;
}

.content-xxl .alert {
  margin-bottom: 0.75rem;
}

.content-xxl img.img-fluid {
  border-radius: 0.25rem;
  margin-top: 0.5rem;
}

/* Allgemeine Content-Seiten (CMS / OPC-Ausgaben im Link-Content) */
.link-content h2,
.link-content h3 {
  scroll-margin-top: 5rem;
}

/* ========================================================================== */
/* HEADER – 1:1 nach Wireframe „1 · Startseite“                               */
/* Aufbau: grüne USP-Leiste · Logo/Suche/Icons · Kategorie-Nav mit B2B rechts */
/* ========================================================================== */

/* -- 0) Inhaltsbreite: Header fluchtet mit dem Seiteninhalt (.container) ---- */

#header-top-bar > .container-fluid,
.it-header-main,
.it-header-nav {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  #header-top-bar > .container-fluid,
  .it-header-main,
  .it-header-nav {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  #header-top-bar > .container-fluid,
  .it-header-main,
  .it-header-nav {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  #header-top-bar > .container-fluid,
  .it-header-main,
  .it-header-nav {
    max-width: 1250px;
  }
}

/* -- 1) USP-Leiste: durchgehend grün, weiße Schrift ------------------------ */

#header-top-bar,
#header-top-bar.it-header-top,
.topbar-wrapper {
  background: var(--it-soft) !important;
  background-image: linear-gradient(90deg, var(--it-soft) 0%, #76b767 55%, var(--it-primary) 100%) !important;
  color: #fff !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  flex-direction: row !important;
  min-height: 2.1875rem;
  z-index: 1030;
}

#header-top-bar > .container,
#header-top-bar > .container-fluid {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 2.1875rem;
  width: 100%;
}

.it-usp-bar {
  width: 100%;
  min-width: 0; /* sonst sprengt die nowrap-Liste als Flex-Item den Viewport */
}

.it-usp-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.it-usp-bar__item,
.it-usp-bar__item .it-usp-bar__text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-shadow: 0 1px 0 rgba(41, 47, 45, 0.12);
}

.it-usp-bar__icon,
.it-usp-bar__item i {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
}

.it-usp-bar__item--phone .it-usp-bar__link,
.it-usp-bar__item--phone .it-usp-bar__link:hover,
.it-usp-bar__item--phone .it-usp-bar__link:focus {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
}

.it-usp-bar__item--phone .it-usp-bar__link:hover {
  text-decoration: underline !important;
  text-underline-offset: 0.2em;
}

/* -- 2) Hauptzeile: Logo | Suche | Icons ----------------------------------- */

#jtl-nav-wrapper {
  background: #fff !important;
  border-bottom: 0 !important;
  /* Der Header liest als ein Block, statt in den Content auszulaufen */
  box-shadow: 0 1px 0 var(--it-border), 0 10px 20px -16px rgba(41, 47, 45, 0.35) !important;
  /* Navigation bleibt beim Scrollen immer erreichbar */
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow 0.2s ease;
}

.it-header-main {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--it-border);
  transition: padding 0.18s ease;
}

.it-header-main__row {
  margin: 0 !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 1.5rem;
}

.it-header-logo {
  flex: 0 0 auto;
  max-width: none;
  padding: 0 !important;
}

.it-header-logo .toggler-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  float: none !important;
  position: static !important;
}

.it-header-logo .navbar-brand {
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
}

.it-header-logo .navbar-brand img,
#jtl-nav-wrapper .navbar-brand img,
#shop-logo {
  display: block !important;
  height: 2.9rem !important;
  width: auto !important;
  max-width: min(200px, 42vw) !important;
  object-fit: contain !important;
  transition: height 0.18s ease;
}

.it-header-search {
  flex: 1 1 auto !important;
  min-width: 0;
  padding: 0 !important;
}

.it-header-icons {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 !important;
}

/* -- 3) Suche: eine ruhige Pill, Lupe links -------------------------------- */

.it-search,
.it-search.nav-item {
  width: 100%;
}

.it-search__wrap,
.it-search .search-wrapper {
  width: 100%;
  max-width: none;
}

.it-search__form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.it-search__input,
.it-search #search-header,
.main-search-wrapper #search-header {
  width: 100% !important;
  height: 2.75rem !important;
  margin: 0 !important;
  padding: 0 3.4rem 0 1.15rem !important;
  border: 1px solid var(--it-field-border) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--it-secondary) !important;
  font-size: 0.9375rem !important;
  box-shadow: inset 0 1px 2px rgba(41, 47, 45, 0.04) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, height 0.18s ease;
}

.it-search__input::placeholder,
#search-header::placeholder {
  color: var(--it-mute) !important;
  opacity: 1;
}

.it-search__input:hover {
  border-color: #5F7A82 !important;
}

.it-search__input:focus,
#search-header:focus {
  outline: none !important;
  border-color: var(--it-primary) !important;
  box-shadow: 0 0 0 3px rgba(83, 181, 74, 0.15) !important;
}

/* Submit als gefüllter Kreis rechts in der Pill – füllt den Raum, klarer CTA */
.it-search__btn {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--it-primary);
  color: #fff;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.it-search__btn:hover,
.it-search__btn:focus {
  background: var(--it-green-deep);
  color: #fff;
  outline: none;
}

.it-search__btn:active {
  transform: translateY(-50%) scale(0.94);
}

.it-search .form-clear {
  left: auto !important;
  right: 3.1rem !important;
  bottom: auto !important;
  top: 50% !important;
  transform: translateY(-50%);
  color: var(--it-mute);
}

/* Autosuggest an die Pill angleichen */
.it-search .ac_results,
.main-search-wrapper .ac_results {
  border: 1px solid var(--it-border) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 14px 34px rgba(41, 47, 45, 0.12) !important;
  overflow: hidden;
  margin-top: 0.35rem;
}

/* -- 4) Icons: Herz, Konto, Warenkorb-Pill --------------------------------- */

.it-shop-nav {
  align-items: center !important;
  gap: 0.35rem;
  flex-wrap: nowrap !important;
}

.it-shop-nav > li > .nav-link,
.it-shop-nav .nav-link {
  color: var(--it-secondary) !important;
  padding: 0.4rem 0.5rem !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s ease;
}

.it-shop-nav .nav-link:hover,
.it-shop-nav .nav-link:focus {
  color: var(--it-green-deep) !important;
}

.it-nav-wish .nav-link i,
.it-shop-nav .account-icon-dropdown .nav-link span[class*="fa-user"] {
  font-size: 1.2rem;
  line-height: 1;
}

.it-shop-nav .account-icon-dropdown .nav-link span[class*="fa-user"] {
  color: var(--it-green-deep);
}

.it-shop-nav .dropdown-toggle::after {
  display: none !important;
}

/* Wunschliste-Badge dezent */
.it-nav-wish .fa-sup {
  background: var(--it-green-deep);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -0.35rem;
  margin-top: -0.6rem;
}

/* Warenkorb als umrandete Pill mit Preis + rotem Zähler */
.it-nav-cart > .nav-link {
  position: relative;
  border: 1px solid var(--it-border);
  border-radius: 999px;
  padding: 0.42rem 0.95rem !important;
  margin-left: 0.35rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.it-nav-cart > .nav-link:hover,
.it-nav-cart.show > .nav-link {
  border-color: var(--it-primary);
  background: rgba(83, 181, 74, 0.06);
  box-shadow: 0 2px 8px rgba(83, 181, 74, 0.12);
}

.it-nav-cart .cart-icon-dropdown-icon {
  font-size: 1.05rem;
  color: var(--it-green-deep);
}

.it-nav-cart .cart-icon-dropdown-price {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--it-secondary);
  white-space: nowrap;
}

.it-nav-cart .it-cart-count {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--it-sale);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

/* -- 5) Kategorie-Navigation ----------------------------------------------- */

.it-header-nav .navbar {
  padding: 0 !important;
  min-height: 0;
}

.it-header-nav #mainNavigation,
.it-header-nav .navbar-collapse {
  height: auto !important;
  width: 100%;
  margin-right: 0 !important; /* NOVA setzt 1rem für die Scroll-Pfeile */
}

.it-header-nav .nav-mobile-body {
  width: 100%;
}

/* NOVA reserviert unter der Nav 1.5rem für die versteckte Scrollbar –
   das schiebt die Trennlinie nach unten. Wir brauchen die Scroll-Mechanik nicht. */
.it-header-nav #mainNavigation.nav-scrollbar {
  overflow: visible;
}

.it-header-nav .nav-scrollbar-inner {
  overflow: visible !important;
  padding-bottom: 0 !important;
  align-self: center !important;
  flex-wrap: wrap !important;
}

#mainNavigation .navbar-nav {
  width: 100%;
  align-items: center;
  gap: 0.1rem;
}

#mainNavigation .navbar-nav > .nav-item > .nav-link {
  color: var(--it-secondary) !important;
  font-weight: 500 !important;
  font-size: 0.9375rem !important;
  padding: 0.7rem 0.85rem !important;
  transition: color 0.15s ease;
  position: relative;
}

/* Unterstreichung über left/right statt width – bleibt bei bündigen
   Rand-Items korrekt und überschreibt NOVAs width-Animation */
#mainNavigation .navbar-nav > .nav-item > .nav-link::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  width: auto !important;
  transform: scaleX(0);
  transform-origin: center;
  border: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 2px;
  transition: transform 0.18s ease;
}

#mainNavigation .navbar-nav > .nav-item:hover > .nav-link::before,
#mainNavigation .navbar-nav > .nav-item.active > .nav-link::before,
#mainNavigation .navbar-nav > .nav-item.hover > .nav-link::before {
  width: auto !important;
  transform: scaleX(1);
}

/* Zwischen 992 und 1200px ist die Zeile eng: Abstände enger, damit alle Punkte
   in einer Zeile bleiben (das B2B-Label kürzt sich dort per Template) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #mainNavigation .navbar-nav > .nav-item > .nav-link {
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
    font-size: 0.9rem !important;
  }

  #mainNavigation .navbar-nav > .nav-item > .nav-link::before {
    left: 0.55rem;
    right: 0.55rem;
  }

  #mainNavigation .navbar-nav > .it-nav-item--usecase + .nav-item:not(.it-nav-item--usecase) {
    margin-left: 0.55rem;
  }
}

/* Erster Punkt bündig zum Logo, letzter bündig zur Warenkorb-Pille.
   Bei aktiver Scroll-Navigation stellt NOVA einen ausgeblendeten Home-Button an
   den Anfang der Liste. Dann traegt der Punkt dahinter die buendige Kante. */
@media (min-width: 992px) {
  #mainNavigation .navbar-nav > .nav-item:not(.d-none):first-child > .nav-link,
  #mainNavigation .navbar-nav > .nav-item.d-none + .nav-item > .nav-link {
    padding-left: 0 !important;
  }

  #mainNavigation .navbar-nav > .nav-item:not(.d-none):first-child > .nav-link::before,
  #mainNavigation .navbar-nav > .nav-item.d-none + .nav-item > .nav-link::before {
    left: 0;
  }

  #mainNavigation .navbar-nav > .nav-item:last-child > .nav-link {
    padding-right: 0 !important;
  }

  #mainNavigation .navbar-nav > .nav-item:last-child > .nav-link::before {
    right: 0;
  }
}

#mainNavigation .navbar-nav > .nav-item > .nav-link:hover {
  color: var(--it-green-deep) !important;
}

#mainNavigation .navbar-nav > .nav-item.active > .nav-link {
  color: var(--it-green-deep) !important;
  font-weight: 600 !important;
}

/* Eigenmarke JodaBook – dunkelgrün, fett (Wireframe) */
#mainNavigation .navbar-nav > .it-nav-item--brand > .nav-link,
#mainNavigation .navbar-nav > .it-nav-item--brand > .nav-link:hover {
  color: var(--it-green-deep) !important;
  font-weight: 700 !important;
}

/* Angebote % – Sale-Rot */
#mainNavigation .navbar-nav > .it-nav-item--sale > .nav-link,
#mainNavigation .navbar-nav > .it-nav-item--sale > .nav-link:hover {
  color: var(--it-sale) !important;
  font-weight: 700 !important;
}

/* Einsatzbereiche (erste Achse): leicht kräftiger, danach eine feine Trennlinie
   zur zweiten Achse mit den Gerätetypen */
#mainNavigation .navbar-nav > .it-nav-item--usecase > .nav-link {
  font-weight: 600 !important;
}

/* Die Linie liegt als Hintergrund auf dem li, nicht als positioniertes ::before:
   ein position:relative würde NOVAs .dropdown-full{position:static} aushebeln
   und das Mega auf die Breite des Menüpunkts zusammenschrumpfen. */
@media (min-width: 992px) {
  #mainNavigation .navbar-nav > .it-nav-item--usecase + .nav-item:not(.it-nav-item--usecase) {
    margin-left: 0.85rem;
    background-image: linear-gradient(var(--it-border), var(--it-border));
    background-repeat: no-repeat;
    background-size: 1px 1.1rem;
    background-position: left center;
  }
}

/* Im Burger-Menü stehen die Punkte untereinander, dort trennt eine waagerechte Linie */
@media (max-width: 991.98px) {
  #mainNavigation .navbar-nav > .it-nav-item--usecase + .nav-item:not(.it-nav-item--usecase) {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--it-border);
  }
}

/* Businesskunden (B2B) rechts abgesetzt */
#mainNavigation .navbar-nav > .it-nav-item--b2b {
  margin-left: auto;
}

#mainNavigation .navbar-nav > .it-nav-item--b2b > .nav-link,
#mainNavigation .navbar-nav > .it-nav-item--b2b > .nav-link:hover {
  color: var(--it-info) !important;
  font-weight: 700 !important;
}

#mainNavigation .navbar-nav > .it-nav-item--service > .nav-link:hover {
  color: var(--it-info) !important;
}

#mainNavigation .dropdown-menu {
  border: 1px solid var(--it-border) !important;
  border-top: 2px solid var(--it-primary) !important;
  box-shadow: 0 16px 38px rgba(41, 47, 45, 0.1) !important;
  border-radius: 0 0 0.5rem 0.5rem !important;
  margin-top: 0 !important;
}

/* Scrollbar-Pfeile der NOVA-Nav ausblenden – Wireframe zeigt eine ruhige Zeile */
.it-header-nav .nav-scrollbar-arrow {
  display: none !important;
}

/* -- 5b) Service-Mega ------------------------------------------------------- */

@media (min-width: 992px) {
  .it-mega .dropdown-body {
    padding: 1.6rem 0 1.4rem !important;
  }

  /* Unter 1200px setzt NOVA drei Spalten je Zeile; die vierte (Service:
     Kontakt) rutschte darunter und machte das Menue fast doppelt so hoch.
     #mainNavigation, weil NOVAs "header .navbar-nav > .nav-item .nav" sonst gewinnt. */
  #mainNavigation .it-mega .lg-row-lg.nav {
    flex-wrap: nowrap;
  }

  /* Spalten behalten ihre NOVA-Breite (4 je Zeile) und stehen links; reicht der
     Platz nicht, schrumpfen sie bis zur Mindestbreite statt umzubrechen. */
  .it-mega .lg-row-lg.nav > .nav-item-lg-m:not(.d-lg-none) {
    flex-shrink: 1;
    min-width: 14rem;
    margin-bottom: 0;
  }

  /* Die Spaltenzeile fuellt die gemeinsame Menuehoehe, damit Kacheln wie die
     Service-Kontaktbox unten buendig mit dem Rest abschliessen. */
  .it-mega .dropdown-body > .container {
    display: flex;
    flex-direction: column;
  }

  .it-mega .dropdown-body > .container > .lg-row-lg.nav {
    flex: 1 0 auto;
    align-self: stretch;
  }

  .it-mega .it-mega-contact {
    height: 100%;
  }

  .it-mega .dropdown-body > .container {
    max-width: 1250px;
    /* Alle Mega-Menues gleich hoch: sonst springt die Unterkante beim Wechsel
       zwischen den Menuepunkten (Mini-PCs war 194px, Zubehoer 513px hoch). */
    min-height: var(--it-mega-height);
  }

  /* NOVA setzt hier Montserrat in Fließtextgröße – wir wollen eine ruhige
     Spaltenüberschrift in der Hausschrift */
  .it-mega .submenu-headline-toplevel,
  .it-mega .submenu-headline-toplevel:hover,
  .it-mega .submenu-headline-toplevel:focus {
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--it-green-deep) !important;
    padding: 0 0 0.5rem !important;
    margin-bottom: 0.7rem !important;
    border-bottom: 1px solid var(--it-border) !important;
  }

  .it-mega .submenu-headline-toplevel::after,
  .it-mega .submenu-headline-toplevel::before {
    display: none !important;
  }

  /* Die Spaltenlisten sind technisch ebenfalls dropdown-menus und erben sonst
     Rahmen, Schatten und Radius des Megas */
  #mainNavigation .it-mega .categories-recursive-dropdown {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .it-mega .categories-recursive-dropdown .nav-link {
    padding: 0.3rem 0 !important;
    font-size: 0.9375rem;
    color: var(--it-secondary) !important;
    transition: color 0.15s ease, padding-left 0.15s ease;
  }

  .it-mega .categories-recursive-dropdown .nav-link:hover,
  .it-mega .categories-recursive-dropdown .nav-link:focus {
    color: var(--it-primary) !important;
    padding-left: 0.2rem !important;
  }

  /* -- Herstellerlogos in der Spalte "Marken" (snippets/categories_mega_recursive.tpl).
     Hier steht nur noch das Raster. Der Hover-Effekt liegt vollstaendig in
     templates/ITTradeport/layout/header.tpl (Block
     layout-header-menu-single-row-css).

     Grund fuer die Verlagerung: Die alte Fassung an dieser Stelle setzte am
     Namen background: var(--it-secondary) mit padding und border-radius. Das
     erzeugte einen schwarzen Balken unter jedem Logo, sobald der Name im Fluss
     stand statt absolut zu schweben. Zwei getrennte Regelwerke fuer dieselben
     Elemente sind hier die Fehlerquelle – deshalb nur noch eine Stelle. */
  .it-mega .categories-recursive-dropdown .nav:has(> .it-brand-item) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .it-mega .it-brand-item {
    min-width: 0;
  }

  /* -- Banner aus dem Plugin itt_navigation (snippets/it_nav_banners.tpl) */
  .it-mega-banners {
    display: grid;
    gap: 0.75rem;
    max-width: 30rem;
    margin-left: auto;
  }

  .it-mega-banners--2,
  .it-mega-banners--3,
  .it-mega-banners--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .it-mega-banner {
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
    background: var(--it-bg);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  /* 3:2 wie die Kundenbanner "klein" (1920x1280, Trello-Karte "Banner" vom 09.11.). */
  .it-mega-banner img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .it-mega-banner:hover,
  .it-mega-banner:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -12px rgba(41, 47, 45, 0.45);
  }

  .it-mega-banner:hover img,
  .it-mega-banner:focus-visible img {
    transform: scale(1.03);
  }

  .it-mega-banner:focus-visible {
    outline: 2px solid var(--it-info);
    outline-offset: 2px;
  }

  /* -- Kachel-Layout fuer flache Menues (snippets/it_mega_flat.tpl):
     Einleitung | Kacheln | Banner in einer Zeile, damit nichts umbricht. */
  .it-mega-flat {
    display: grid;
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
    min-height: var(--it-mega-height);
    padding-top: 0.25rem;
  }

  .it-mega-flat--banners {
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr) minmax(0, 26rem);
  }

  /* Banner fuellen die Spaltenhoehe, damit sie mit Einleitung und Kacheln unten
     buendig abschliessen. Das Bild wird dafuer links verankert beschnitten – dort
     stehen bei allen Kundenbannern die Herstellerlogos. */
  .it-mega-flat__banners .it-mega-banners {
    max-width: none;
    height: 100%;
    grid-auto-rows: minmax(0, 1fr);
  }

  .it-mega-flat__banners .it-mega-banner img {
    height: 100%;
    aspect-ratio: auto;
    object-position: left center;
  }

  /* Notebooks, Mini-PCs: Bannerspalte so breit wie in den Kachelmenues (Gaming,
     Buero, Zuhause), direkt neben den Spalten. Als col-lg wuchs sie in jeden freien
     Platz: Fehlte eine Spalte (Mini-PCs hat nur "Marken"), wurden die Banner riesig. */
  .it-mega .lg-row-lg.nav > .it-mega__banners {
    /* innen so breit wie die Bannerspalte der Kachelmenues: 26rem, unter 1200px
       19rem, dazu links und rechts der Spaltenabstand von NOVA (je 2rem). */
    flex: 0 0 calc(26rem + 4rem);
    max-width: calc(26rem + 4rem);
    margin-top: 0;
  }

  @media (max-width: 1199.98px) {
    .it-mega .lg-row-lg.nav > .it-mega__banners {
      flex-basis: calc(19rem + 4rem);
    }
  }

  /* 2x2 wie in den Kachelmenues, Hoehe = Menuehoehe abzueglich deren Abstand oben. */
  .it-mega__banners .it-mega-banners {
    max-width: none;
    height: 100%;
    min-height: calc(var(--it-mega-height) - 0.25rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
  }

  /* Das Bild liegt absolut in der Kachel und gibt ihr keine eigene Hoehe. Mit
     height: 100% im Fluss setzte Chromium (Edge) hier die volle Bildhoehe an, weil
     es die Prozenthoehe in der Flex-Zeile nicht aufloest – das Menue wurde zu hoch.
     Beschnitten wird links verankert, dort stehen die Herstellerlogos. */
  .it-mega__banners .it-mega-banner {
    position: relative;
  }

  .it-mega__banners .it-mega-banner img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
    object-position: left center;
  }

  .it-mega-flat__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 1.35rem;
    border-radius: 0.6rem;
    background: var(--it-bg);
    border: 1px solid var(--it-border);
    white-space: normal; /* NOVA setzt im Dropdown nowrap */
  }

  .it-mega-flat--brand .it-mega-flat__intro {
    background: color-mix(in srgb, var(--it-green-deep) 8%, #fff);
    border-color: color-mix(in srgb, var(--it-green-deep) 25%, #fff);
  }

  .it-mega-flat__intro-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.6rem;
  }

  .it-mega-flat__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--it-mute);
  }

  .it-mega-flat__title {
    margin: 0.1rem 0 0.4rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--it-secondary);
  }

  .it-mega-flat--brand .it-mega-flat__title {
    color: var(--it-green-deep);
  }

  /* Hoechstens drei Zeilen: die WaWi-Beschreibungen sind unterschiedlich lang
     und machten die Einleitung (und damit das Menue) mal hoeher, mal niedriger. */
  .it-mega-flat__text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--it-mute);
  }

  .it-mega-flat__finder {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--it-info) !important;
  }

  .it-mega-flat__finder:hover,
  .it-mega-flat__finder:focus {
    color: var(--it-green-deep) !important;
  }

  /* Immer eine Reihe: Zubehoer brach mit vier Kacheln in eine zweite Zeile um.
     Wenige Kacheln (Zuhause: 2, JodaBook: 3) bleiben schmal statt voller Breite. */
  .it-mega-flat__tiles {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 14rem);
    /* Eine Zeile ueber die volle Hoehe: die Kacheln enden unten buendig mit
       der Einleitung links. */
    grid-template-rows: minmax(0, 1fr);
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .it-mega-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--it-border);
    border-radius: 0.6rem;
    background: #fff;
    color: var(--it-secondary) !important;
    text-decoration: none !important;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }

  .it-mega-tile:hover,
  .it-mega-tile:focus-visible {
    border-color: var(--it-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -14px rgba(41, 47, 45, 0.45);
  }

  .it-mega-tile:focus-visible {
    outline: 2px solid var(--it-info);
    outline-offset: 2px;
  }

  /* Feste Hoehe statt Seitenverhaeltnis: sonst hing die Kachelhoehe an der
     Spaltenbreite und war in jedem Menue ein paar Pixel anders. */
  .it-mega-tile__media {
    display: flex;
    flex: 1 1 9.5rem;
    align-items: center;
    justify-content: center;
    min-height: 9.5rem;
    padding: 0.75rem;
    overflow: hidden;
    background: #fff;
  }

  /* Feste Flaeche statt max-height: ein hohes Foto (Maus) blaeht die Kachel sonst auf */
  .it-mega-tile__media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    transition: transform 0.3s ease;
  }

  .it-mega-tile:hover .it-mega-tile__media img,
  .it-mega-tile:focus-visible .it-mega-tile__media img {
    transform: scale(1.05);
  }

  /* Ohne Artikelfoto: grosses Icon auf heller Flaeche */
  .it-mega-tile--icon .it-mega-tile__media {
    background: var(--it-bg);
    font-size: 2.5rem;
    color: var(--it-soft);
  }

  /* Feste Mindesthoehe: Kacheln ohne Unterzeile (Zubehoer) waren sonst 2px flacher */
  .it-mega-tile__body {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 3.6rem;
    padding: 0.65rem 0.75rem 0.7rem;
    border-top: 1px solid var(--it-border);
  }

  .it-mega-tile__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--it-primary) 12%, #fff);
    color: var(--it-primary);
    font-size: 0.875rem;
  }

  .it-mega-tile__label {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    white-space: normal;
  }

  .it-mega-tile__name,
  .it-mega-tile__meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .it-mega-tile__name {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
  }

  .it-mega-tile__meta {
    min-height: 1.3em;
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--it-mute);
  }

  .it-mega-tile__arrow {
    flex: none;
    font-size: 0.75rem;
    color: var(--it-mute);
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .it-mega-tile:hover .it-mega-tile__arrow,
  .it-mega-tile:focus-visible .it-mega-tile__arrow {
    color: var(--it-primary);
    transform: translateX(2px);
  }
}

/* Mobil bleibt die Marke eine Textzeile wie die übrigen Einträge */
@media (max-width: 991.98px) {
  .it-mega .it-brand__logo {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .it-mega .it-brand,
  .it-mega .it-brand::before,
  .it-mega .it-brand__name,
  .it-mega-banner,
  .it-mega-banner img,
  .it-mega-tile,
  .it-mega-tile__media img,
  .it-mega-tile__arrow {
    transition: none !important;
  }
}

/* Kontaktspalte: abgesetzte Fläche als Abschluss der Mega-Reihe */
.it-mega-contact {
  background: var(--it-bg);
  border: 1px solid var(--it-border);
  border-radius: 0.6rem;
  padding: 1.1rem 1.2rem 1.2rem;
}

.it-mega-contact__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--it-mute);
  margin-bottom: 0.35rem;
}

.it-mega-contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--it-info) !important;
  text-decoration: none;
}

.it-mega-contact__phone:hover {
  color: var(--it-green-deep) !important;
  text-decoration: none;
}

.it-mega-contact__phone i {
  font-size: 0.875rem;
}

.it-mega-contact__note {
  margin: 0.55rem 0 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--it-mute);
  white-space: normal; /* NOVA setzt im Dropdown nowrap */
}

.it-mega-contact__cta {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: var(--it-primary);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.it-mega-contact__cta:hover,
.it-mega-contact__cta:focus {
  background: var(--it-green-deep);
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(47, 107, 62, 0.25);
}

/* -- 6) Kompakter Zustand beim Scrollen ------------------------------------- */
/* Klasse setzt das Script in layout/header_menu_single_row.tpl ab ca. 90px    */

#jtl-nav-wrapper.it-header--compact {
  box-shadow: 0 1px 0 var(--it-border), 0 14px 26px -18px rgba(41, 47, 45, 0.55) !important;
}

#jtl-nav-wrapper.it-header--compact .it-header-main {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

/* Ist NOVAs Scroll-Navigation aktiv, liegt die USP-Leiste im fixierten Header.
   Beim Scrollen wuerde sie ihn um ihre volle Hoehe aufblaehen. */
#jtl-nav-wrapper.it-header--compact #header-top-bar {
  display: none !important;
}

#jtl-nav-wrapper.it-header--compact .navbar-brand img,
#jtl-nav-wrapper.it-header--compact #shop-logo {
  height: 2.1rem !important;
}

#jtl-nav-wrapper.it-header--compact .it-search__input,
#jtl-nav-wrapper.it-header--compact #search-header {
  height: 2.25rem !important;
}

#jtl-nav-wrapper.it-header--compact .it-search__btn {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8125rem;
}

#jtl-nav-wrapper.it-header--compact .it-nav-cart > .nav-link {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
}

#jtl-nav-wrapper.it-header--compact #mainNavigation .navbar-nav > .nav-item > .nav-link {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

/* Dropdowns dürfen im gescrollten Zustand nie länger als der Viewport sein.
   Nur Desktop: im Burger-Menü scrollt .nav-mobile-body, und ein Scroll-Container
   auf der Zwischenebene würde die nächste Ebene abschneiden. */
@media (min-width: 992px) {
  #jtl-nav-wrapper #mainNavigation > .navbar-nav > .nav-item > .dropdown-menu {
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #jtl-nav-wrapper *,
  #jtl-nav-wrapper {
    transition: none !important;
  }
}

/* -- 7) Mobil --------------------------------------------------------------- */

@media (max-width: 991.98px) {
  #header-top-bar {
    display: flex !important;
  }

  .it-usp-bar__list {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    min-width: 0;
    max-width: 100%;
    gap: 0 1.1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .it-usp-bar__list::-webkit-scrollbar {
    display: none;
  }

  .it-usp-bar__item {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.75rem;
  }

  .it-header-main {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .it-header-main__row {
    gap: 0.5rem;
  }

  .it-header-search {
    display: none; /* mobile Suche läuft über das Lupen-Dropdown */
  }

  .it-header-logo .navbar-brand img,
  #shop-logo {
    height: 2.4rem !important;
  }

  .it-nav-cart .cart-icon-dropdown-price {
    display: none;
  }

  .it-nav-cart > .nav-link {
    border: 0;
    padding: 0.4rem 0.5rem !important;
    margin-left: 0;
  }

  #mainNavigation .navbar-nav > .it-nav-item--b2b {
    margin-left: 0;
  }

  /* mobile Suchleiste an die Pill-Optik angleichen */
  .search-form-wrapper-fixed {
    background: #fff;
    border-bottom: 1px solid var(--it-border);
  }

  .search-form-wrapper-fixed .input-group {
    border: 1px solid var(--it-field-border);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    flex-wrap: nowrap;
  }

  .search-form-wrapper-fixed .input-group-append {
    display: flex;
    flex: 0 0 auto;
  }

  .search-form-wrapper-fixed .form-control {
    border: 0 !important;
    background: transparent !important;
    padding-left: 1.1rem !important;
    box-shadow: none !important;
    min-width: 0;
    flex: 1 1 auto;
  }

  .search-form-wrapper-fixed .main-search,
  .search-form-wrapper-fixed .search-wrapper {
    max-width: 100%;
    min-width: 0;
  }

  .search-form-wrapper-fixed .btn {
    border: 0 !important;
    border-radius: 0 999px 999px 0 !important;
    background: var(--it-primary) !important;
    color: #fff !important;
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================================
   Footer – subtil modern, an den Header angeglichen
   ============================================================================= */

#footer.it-footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: #fff;
  color: var(--it-secondary);
  font-family: 'Source Sans Pro', sans-serif;
  border-top: 0 !important;
  box-shadow: none !important;
}

#footer.it-footer a {
  color: var(--it-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

#footer.it-footer a:hover,
#footer.it-footer a:focus {
  color: var(--it-primary);
}

.it-footer__inner {
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .it-footer__inner { max-width: 720px; }
}

@media (min-width: 992px) {
  .it-footer__inner { max-width: 960px; }
}

@media (min-width: 1200px) {
  .it-footer__inner {
    max-width: 1250px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* -- Trust-Band: ruhiges 3×2 Benefit-Raster --------------------------------- */

.it-footer-trust {
  background: var(--it-bg);
  border-top: 1px solid var(--it-border);
  border-bottom: 1px solid var(--it-border);
}

.it-footer-trust__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
}

.it-footer-trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--it-secondary);
  line-height: 1.2;
}

.it-footer-trust__item:not(:nth-child(3n)) {
  border-right: 1px solid rgba(41, 47, 45, 0.1);
}

/* feste Innenbreite → Icons stehen in der Spalte untereinander bündig */
.it-footer-trust__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 13.5rem;
  max-width: 100%;
  min-width: 0;
}

.it-footer-trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  color: var(--it-primary);
  font-size: 0.95rem;
  line-height: 1;
  background: none;
  border-radius: 0;
}

.it-footer-trust__text {
  min-width: 0;
  line-height: 1.25;
  white-space: nowrap;
}

.it-footer-trust__link {
  color: var(--it-secondary) !important;
  font-weight: 500;
  text-decoration: none !important;
}

.it-footer-trust__link:hover {
  color: var(--it-primary) !important;
}

.it-footer-trust__item--phone .it-footer-trust__text {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* -- Hauptgrid -------------------------------------------------------------- */

.it-footer-main {
  padding: 2rem 0 1.5rem;
  background: #fff;
}

.it-footer-main__row {
  row-gap: 2rem;
  align-items: flex-start;
}

.it-footer-col {
  min-width: 0;
}

/* NOVA setzt bei aktivem Newsletter margin-top auf #footer-boxes – das
   verschiebt bei uns die erste Linkspalte nach unten. */
#footer.it-footer.newsletter-active #footer-boxes,
#footer.it-footer #footer-boxes {
  margin-top: 0 !important;
}

/* Spaltentitel wie Nav-Gewichtung – Satzschrift, kein Uppercase-Shop-Look */
.it-footer-col__title,
#footer.it-footer .box-normal .productlist-filter-headline,
#footer.it-footer .box-normal-link {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--it-secondary);
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
  line-height: 1.3;
  background: transparent;
}

#footer.it-footer .box.box-linkgroup {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#footer.it-footer .box-normal-hr,
#footer.it-footer hr,
#footer.it-footer .box .card,
#footer.it-footer .box .card-body {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Desktop: Accordion-Toggle aus, Collapse immer offen – verhindert versetzte Titel */
@media (min-width: 768px) {
  #footer.it-footer .box-normal-link.dropdown-toggle {
    display: none !important;
  }

  #footer.it-footer .box-normal .productlist-filter-headline {
    display: block !important;
  }

  #footer.it-footer .collapse,
  #footer.it-footer .collapsing {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
    overflow: visible !important;
  }
}

@media (max-width: 767.98px) {
  #footer.it-footer .box-normal .productlist-filter-headline {
    display: none !important;
  }

  #footer.it-footer .box-normal-link.dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0 !important;
    margin: 0 !important;
    border-top: 1px solid var(--it-border) !important;
    border-radius: 0 !important;
    color: var(--it-secondary) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }

  #footer.it-footer .box-normal-link.dropdown-toggle::after {
    float: none;
    margin: 0;
    border: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid var(--it-mute);
    border-bottom: 1.5px solid var(--it-mute);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
  }

  #footer.it-footer .box-normal-link.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
  }

  #footer.it-footer .it-footer-links + .it-footer-links .box-normal-link.dropdown-toggle {
    border-bottom: 1px solid var(--it-border);
  }
}

#footer.it-footer .nav-panel,
#footer.it-footer .box-nav-item {
  margin: 0 !important;
  padding: 0 !important;
}

#footer.it-footer .box-nav-item .nav,
#footer.it-footer .nav-panel .nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

#footer.it-footer .box-nav-item .nav-link,
#footer.it-footer .nav-panel .nav-link {
  padding: 0.3rem 0 !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  color: var(--it-mute) !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 1.35;
}

#footer.it-footer .box-nav-item .nav-link:hover,
#footer.it-footer .nav-panel .nav-link:hover {
  color: var(--it-primary) !important;
  padding-left: 0 !important;
}

/* Newsletter – gleiche Pill wie die Header-Suche */

.it-footer-newsletter__lead {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--it-mute);
  margin: 0 0 1.05rem;
  max-width: 18rem;
}

.it-footer-newsletter__form {
  position: relative;
}

.it-footer-newsletter__field {
  position: relative;
  max-width: 20rem;
}

.it-footer-newsletter__input,
#footer.it-footer .it-footer-newsletter__input.form-control {
  display: block;
  width: 100% !important;
  height: 2.75rem !important;
  margin: 0 !important;
  padding: 0 3.4rem 0 1.15rem !important;
  border: 1px solid var(--it-field-border) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--it-secondary) !important;
  font-size: 0.9375rem !important;
  box-shadow: inset 0 1px 2px rgba(41, 47, 45, 0.04) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.it-footer-newsletter__input:focus,
#footer.it-footer .it-footer-newsletter__input.form-control:focus {
  outline: none !important;
  border-color: var(--it-primary) !important;
  box-shadow: 0 0 0 3px rgba(83, 181, 74, 0.15) !important;
}

.it-footer-newsletter__btn {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--it-primary);
  color: #fff;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.it-footer-newsletter__btn:hover,
.it-footer-newsletter__btn:focus {
  background: var(--it-green-deep);
  color: #fff;
  outline: none;
}

.it-footer-newsletter__btn:active {
  transform: translateY(-50%) scale(0.94);
}

.it-footer-newsletter__consent {
  margin: 0.7rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--it-mute);
  max-width: 20rem;
}

.it-footer-newsletter__consent a {
  color: var(--it-secondary) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.it-footer-newsletter__consent a:hover {
  color: var(--it-primary) !important;
}

/* Kontakt */

.it-footer-contact__phone {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--it-secondary) !important;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.it-footer-contact__phone:hover {
  color: var(--it-primary) !important;
}

.it-footer-contact__hours {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--it-mute);
}

.it-footer-contact__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: var(--it-primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: none;
  transition: background 0.15s ease;
}

.it-footer-contact__cta:hover,
.it-footer-contact__cta:focus {
  background: var(--it-green-deep);
  color: #fff !important;
}

.it-footer-contact__store {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--it-border);
}

.it-footer-contact__store-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--it-secondary);
  margin-bottom: 0.35rem;
}

.it-footer-contact__address {
  margin: 0 0 0.45rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--it-mute);
}

.it-footer-contact__route {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--it-secondary) !important;
}

.it-footer-contact__route:hover {
  color: var(--it-primary) !important;
}

/* -- Zahlung / Versand / Partner / Social ----------------------------------- */

.it-footer-pay {
  border-top: 1px solid var(--it-border);
  background: var(--it-bg);
  padding: 1.35rem 0 0.5rem;
}

.it-footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.35rem 2.25rem;
}

.it-footer-logos__group {
  flex: 0 1 auto;
  min-width: 0;
}

.it-footer-logos__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--it-mute);
  margin: 0 0 0.7rem;
}

.it-footer-logos__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.it-footer-logos__items--partner {
  gap: 0.85rem 1.25rem;
}

.it-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  line-height: 0;
}

.it-footer-logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--it-secondary) !important;
  text-decoration: none !important;
}

/* Einheitliche 3:2 Payment-/Versand-Cards */
.it-footer-logo--card img {
  display: block;
  width: 3.75rem;
  height: 2.5rem;
  max-width: none;
  object-fit: cover;
  border-radius: 0.45rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(41, 47, 45, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.it-footer-logo--card:hover img {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(41, 47, 45, 0.12),
    0 4px 12px rgba(41, 47, 45, 0.08);
}

.it-footer-logo--partner {
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.it-footer-logo--partner:hover {
  opacity: 1;
}

.it-footer-logo--partner img {
  display: block;
  width: auto;
  height: 1.5rem;
  max-width: 7.25rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.it-footer-logo--partner:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.it-footer-logo--partner a img[src*="itrechtkanzlei"] {
  height: 1.85rem;
  width: 1.85rem;
  max-width: none;
  border-radius: 50%;
  filter: none;
  opacity: 1;
}

.it-footer-logo__text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--it-secondary);
  line-height: 1;
}


.it-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.15rem;
  margin-bottom: 0;
  padding-top: 1rem;
  padding-bottom: 0;
  border-top: 1px solid var(--it-border);
  min-height: 2.25rem;
}

.it-footer-social__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--it-secondary);
}

.it-footer-social__list {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.it-footer-social__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--it-border);
  background: #fff;
  color: var(--it-secondary) !important;
  font-size: 1rem;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.it-footer-social__link:hover,
.it-footer-social__link:focus {
  color: var(--it-primary) !important;
  border-color: var(--it-primary);
  background: #fff;
}

.it-footer-pay__withdrawal {
  margin-left: auto;
  display: flex;
  align-items: center;
  align-self: center;
  font-size: 0.8125rem;
  line-height: 1;
}

/* NOVA wrappt den Link in .mt-3 – im Footer keine Extra-Höhe */
.it-footer-pay__withdrawal .mt-3 {
  margin-top: 0 !important;
  display: flex;
  align-items: center;
}

/* Der Widerrufsbutton muss gut sichtbar und als Schaltflaeche erkennbar sein
   (§ 356a BGB) – kein grauer Mini-Link. Umrandet statt gefuellt, damit er
   neben den Social-Icons nicht wie eine Kaufaufforderung wirkt. !important
   nur, weil .btn-primary Hintergrund und Farbe shopweit mit !important setzt. */
.it-footer-pay__withdrawal .btn {
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 0.5rem 1rem;
  border: 1px solid var(--it-primary) !important;
  border-radius: 999px;
  background: #fff !important;
  color: var(--it-primary) !important;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.it-footer-pay__withdrawal .btn:hover,
.it-footer-pay__withdrawal .btn:focus {
  background: var(--it-primary) !important;
  color: #fff !important;
}

/* -- Copyright -------------------------------------------------------------- */

#footer.it-footer #copyright.it-footer-copy {
  background: #fff;
  color: var(--it-mute);
  padding: 0;
  margin-top: 0 !important;
  border: 0;
  border-top: 1px solid var(--it-border);
}

/* NOVA Crit: #copyright > div hat eigenes Padding */
#footer.it-footer #copyright.it-footer-copy > div {
  padding-top: 0;
  padding-bottom: 0;
  font-size: inherit;
  text-align: inherit;
}

.it-footer-copy__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1.25rem;
  padding: 0.85rem 0;
}

.it-footer-copy__left {
  flex: 0 1 auto;
  font-size: 0.8125rem;
  line-height: 1.3;
  text-align: left;
}

.it-footer-copy__left [itemprop="copyrightHolder"] {
  color: var(--it-secondary);
  font-weight: 500;
}

.it-footer-copy__vat {
  flex: 1 1 12rem;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: right;
  line-height: 1.3;
}

.it-footer-copy__vat,
.it-footer-copy__vat a,
.it-footer-copy__vat .small {
  color: var(--it-mute) !important;
  font-size: 0.75rem !important;
  display: inline;
}

.it-footer-copy__vat a:hover {
  color: var(--it-primary) !important;
}

@media (max-width: 767.98px) {
  .it-footer-main {
    padding: 1.75rem 0 0.5rem;
  }

  .it-footer-logos {
    gap: 1.1rem 1.5rem;
  }

  .it-footer-pay__withdrawal {
    margin-left: auto;
    width: auto;
  }

  .it-footer-social {
    gap: 0.75rem;
  }

  .it-footer-trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.7rem;
    padding: 0.95rem 0;
  }

  .it-footer-trust__item {
    justify-content: flex-start;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
  }

  .it-footer-trust__item:not(:nth-child(3n)) {
    border-right: 0;
  }

  .it-footer-trust__item:nth-child(odd) {
    border-right: 1px solid rgba(41, 47, 45, 0.1);
    padding-left: 0;
  }

  .it-footer-trust__item:nth-child(even) {
    padding-right: 0;
  }

  .it-footer-trust__inner {
    width: auto;
  }

  .it-footer-trust__text {
    white-space: normal;
  }

  .it-footer-copy__vat {
    flex: 1 1 100%;
    text-align: left;
  }
}

/* -------------------------------------------------------------------------- */
/* Startseite (it-home-*) – finales Wireframe „Anpassungen Grundstruktur“     */
/* Finder-Hero → Trust → Neuheiten → Angebote → Bestseller → Marken → …       */
/* -------------------------------------------------------------------------- */

#main-wrapper > .container-fluid.it-home-root,
#main-wrapper > .container-fluid.opc-Container.it-home-root,
.opc-Container.it-home-root.container-fluid {
  --it-home-section-gap: 1.25rem;
  --it-home-radius: 1rem;
  --it-home-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --it-home-mint: #e7f4e5;
  width: 100%;
  max-width: none;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0;
  margin-right: 0;
}

.it-home-root .it-home-block {
  margin: 0 !important;
  padding: 0 !important;
}

.it-home {
  color: var(--it-secondary);
}

.it-home a:not(.btn) {
  text-decoration: none;
}

.it-home .btn {
  font-weight: 600;
}

.it-home__shell {
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

#main-wrapper .it-home-root h2.it-home__section-title,
#main-wrapper .it-home-root .it-home-neuheiten,
#main-wrapper .it-home-root .it-home-bestsellers {
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

#main-wrapper .it-home-root h2.it-home__section-title {
  position: relative;
  margin-top: 0 !important;
  margin-bottom: 2.25rem !important;
  padding-bottom: 0.45rem;
  font-size: clamp(1.45rem, 2.1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--it-secondary);
  /* OPC setzt an Neuheiten/Bestseller text-align:left per style-Attribut */
  text-align: center !important;
}

/* padding statt margin: sonst collapst es mit .it-home-trust margin-bottom */
#main-wrapper .it-home-root h2.it-home__section-title:has(+ .it-home-neuheiten) {
  margin-top: 0 !important;
  padding-top: 1.5rem;
}

#main-wrapper .it-home-root h2.it-home__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--it-primary), var(--it-soft));
  transform: translateX(-50%);
}

.it-home__section-title {
  position: relative;
  margin: 0 0 2.25rem;
  padding-bottom: 0.45rem;
  font-size: clamp(1.45rem, 2.1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--it-secondary);
  text-align: center !important;
}

.it-home__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--it-primary), var(--it-soft));
  transform: translateX(-50%);
}

/* Startseite: Header bündig auf Hero, keine Lücke/Doppel-Linien */
body:has(.it-home-finder-hero) #jtl-nav-wrapper {
  background: #fff;
  box-shadow: none;
}

body:has(.it-home-finder-hero) .it-header-main {
  border-bottom-color: rgba(41, 47, 45, 0.08);
}

body:has(.it-home-finder-hero) .it-header-nav {
  border-bottom: 1px solid rgba(41, 47, 45, 0.1);
  background: #fff;
}

body:has(.it-home-finder-hero) #main-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body:has(.it-home-finder-hero) #main-wrapper > .it-home-root {
  margin-top: 0 !important;
}

/* --- 1) Finder Hero (Video, Full-Bleed, centered) --- */
/* Theme: `main section { padding: 2rem 0 }` – ohne Override + absolute Layers entsteht ein schwarzer Streifen */
.it-home-finder-hero {
  --it-home-hero-h: clamp(28rem, 72vh, 40rem);
  position: relative;
  display: block;
  width: 100%;
  height: var(--it-home-hero-h);
  min-height: var(--it-home-hero-h);
  margin: 0; /* Trust-Bar direkt anschließen */
  padding: 0 !important;
  overflow: hidden;
  background: #000;
  box-sizing: border-box;
}

.it-home-finder-hero__media,
.it-home-finder-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.it-home-finder-hero__media {
  z-index: 0;
  overflow: hidden;
  /* Poster als Cover-Hintergrund – kein schwarzer Fallback-Streifen */
  background-color: #111;
  background-image: url('/templates/ITTradeport/img/home/hero-finder-poster.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Video: echtes object-fit cover, kein transform-Hack */
.it-home-finder-hero__media video,
.it-home-finder-hero__media img {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transform: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.it-home-finder-hero__overlay {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.25rem 1.25rem;
  /* Komplett flächig verdunkeln – kein Verlauf / keine Bar */
  background: rgba(0, 0, 0, 0.62);
  text-align: center;
}

.it-home-finder-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  max-width: 42rem;
}

.it-home-finder-hero__title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  text-wrap: balance;
}

.it-home-finder-hero__text {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* --- 2) Trust-Bar: Icons oben, Vorteile darunter, bündig am Hero --- */
.it-home-trust {
  width: 100%;
  margin: 0 0 var(--it-home-section-gap, 1.25rem);
  padding: 0 !important; /* Theme: main section { padding: 2rem 0 } */
  background: #eaf6e8;
  border-top: 0;
  border-bottom: 1px solid rgba(83, 181, 74, 0.22);
}

.it-home-trust__inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 0.75rem;
}

.it-home-trust__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.it-home-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 1.1rem 0.85rem 1.15rem;
  color: var(--it-secondary);
  text-align: center;
}

.it-home-trust__item:not(:last-child) {
  border-right: 1px solid rgba(83, 181, 74, 0.28);
}

.it-home-trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.9rem;
  background: #fff;
  color: var(--it-primary);
  font-size: 1.55rem;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(41, 47, 45, 0.04);
}

.it-home-trust__icon .fas,
.it-home-trust__icon .fa {
  line-height: 1;
}

.it-home-trust__text {
  display: block;
  max-width: 12ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--it-secondary);
}

/* --- 3/5) Product streams --- */
#main-wrapper .it-home-root .it-home-neuheiten,
#main-wrapper .it-home-root .it-home-bestsellers {
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: var(--it-home-section-gap, 1.25rem);
}

/*
 * OPC liefert col-6 / col-md-4 / col-xl-3.
 * Bei 4 Artikeln ergibt col-md-4 ein hässliches 3+1-Raster.
 * Home-Streams: nur Teiler von 4 → 2 Spalten bis lg, ab xl 4 Spalten.
 */
#main-wrapper .it-home-root .it-home-neuheiten > .product-wrapper,
#main-wrapper .it-home-root .it-home-bestsellers > .product-wrapper {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  width: 50% !important;
}

@media (min-width: 1200px) {
  #main-wrapper .it-home-root .it-home-neuheiten > .product-wrapper,
  #main-wrapper .it-home-root .it-home-bestsellers > .product-wrapper {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }
}

/* Karte, Hover und Typografie der Kacheln kommen aus dem Abschnitt
   "Artikelkacheln und Produkt-Slider" am Dateiende – hier nur der Abstand
   zwischen den Zeilen des Streams. */
.it-home-neuheiten > .product-wrapper,
.it-home-bestsellers > .product-wrapper {
  margin-bottom: 1.5rem;
}

/* --- 3b) Product-Stream ausserhalb der Startseite -------------------------- */

/* Befund aus dem gerenderten HTML: Ein OPC-Product-Stream ist selbst die Zeile:

     <div class="row gallery row-eq-height row-eq-img-height product-list
                 opc-ProductStream opc-ProductStream-gallery it-home-neuheiten">

   Die .product-wrapper liegen also direkt darin. Die Regeln oben greifen
   trotzdem nicht, weil sie auf "#main-wrapper .it-home-root ..." eingegrenzt
   sind – diese Klasse setzt der Composer nur auf der Startseite.

   Ohne Breitenvorgabe sind die .product-wrapper nur Flex-Items in einer
   display:flex-Zeile. Sie bekommen dann keine Spaltenbreite und die Kachel
   zieht sich ueber die volle Containerbreite ("viel zu gross").

   !important ist hier noetig: Ohne das gewinnt das spaeter in dieser Datei
   stehende ".product-list > .product-wrapper" (gleiche Spezifitaet, spaetere
   Position) bzw. eine NOVA-Regel. Genau deshalb nutzen die Startseiten-Regeln
   oben ebenfalls !important. Da beide !important sind, entscheidet die
   Spezifitaet – "#main-wrapper .it-home-root ..." (1,3,0) gewinnt gegen
   ".it-home-neuheiten .product-wrapper" (0,2,0). Die Startseite bleibt damit
   unveraendert. */
/* Breite auf die Startseitenwerte begruenden: dort setzt
   "#main-wrapper .it-home-root .it-home-neuheiten" max-width 1250px. In der
   Kategorie fehlt dieser Vorfahre, der Stream zieht die volle Containerbreite
   (gemessen: 4 x 414,75px = 1.659px, statt ~304px je Kachel). */
.it-home-neuheiten,
.it-home-bestsellers {
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.it-home-neuheiten > .product-wrapper,
.it-home-bestsellers > .product-wrapper,
.it-home-neuheiten .product-wrapper,
.it-home-bestsellers .product-wrapper {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  margin-bottom: 1.5rem;
}

@media (min-width: 1200px) {
  .it-home-neuheiten > .product-wrapper,
  .it-home-bestsellers > .product-wrapper,
  .it-home-neuheiten .product-wrapper,
  .it-home-bestsellers .product-wrapper {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }
}

/* Kachel im Stream bricht den Innenabstand nicht ueber die Kartenkante */
.it-home-neuheiten .product-wrapper > .productbox,
.it-home-bestsellers .product-wrapper > .productbox {
  width: 100%;
}

/* --- Gleiche Kartenhoehe in den Startseiten-Streams ----------------------- */

/* Die Hoehenkette fuer die Kacheln steht in Abschnitt "1) Karte" weiter oben
   und beginnt bei .productbox (height:100%). Damit sie greift, muss das
   Elternelement die Hoehe vorgeben. In der Kategorie macht das die NOVA-Zeile
   (.row-eq-height), im Stream fehlte der oberste Link der Kette: die
   .product-wrapper waren reine Block-Container, height:100% der .productbox
   lief damit ins Leere, und jede Karte blieb so hoch wie ihr eigener Inhalt.

   align-items:stretch sorgt dafuer, dass sich alle Kacheln einer Zeile nach
   der hoechsten richten - der groesste gemeinsame Nenner. Innerhalb der Karte
   zieht .price_wrapper per margin-top:auto den Preis nach unten (Zeile ~5405),
   die Eckdaten bleiben damit oben buendig. */
.it-home-neuheiten,
.it-home-bestsellers {
  align-items: stretch;
}

.it-home-neuheiten > .product-wrapper,
.it-home-bestsellers > .product-wrapper {
  display: flex;
  align-items: stretch;
}

.it-home-neuheiten > .product-wrapper > .productbox,
.it-home-bestsellers > .product-wrapper > .productbox {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: auto;
}

/* --- 4) Aktuelle Angebote (2 Tiles) --- */
.it-home-offers {
  margin: 0 0 var(--it-home-section-gap, 1.25rem);
}

.it-home-offers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.it-home-offers__tile {
  position: relative;
  display: block;
  min-height: 16.5rem;
  border-radius: var(--it-home-radius, 1rem);
  overflow: hidden;
  color: #fff;
  background: #2a312e;
}

.it-home-offers__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--it-home-ease, ease);
}

.it-home-offers__tile:hover img {
  transform: scale(1.05);
}

.it-home-offers__tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12) 55%, transparent 75%);
  z-index: 1;
}

.it-home-offers__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.35rem 1.35rem 1.4rem;
}

.it-home-offers__title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.it-home-offers__text {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* --- 6) Marken --- */
.it-home-brands {
  margin: 0 0 var(--it-home-section-gap, 1.25rem);
}

.it-home-brands__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.it-home-brands__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 6.75rem;
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--it-border);
  transition: border-color 0.2s ease, transform 0.25s var(--it-home-ease, ease);
}

.it-home-brands__item:hover,
.it-home-brands__item:focus-visible {
  border-color: rgba(83, 181, 74, 0.55);
  transform: translateY(-2px);
}

/* Alle Marken liegen auf demselben 400×160-Canvas – feste Höhe, gleicher Slot. */
.it-home-brands__item img {
  display: block;
  height: 4.15rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* --- 7) JodaBook band --- */
.it-home-jodabook {
  width: 100%;
  margin: 0 0 var(--it-home-section-gap, 1.25rem);
  background: linear-gradient(145deg, #eaf6e8 0%, #f6fbf5 55%, #dff0db 100%);
}

.it-home-jodabook__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: center;
  max-width: 1250px;
  margin: 0 auto;
  padding: 1.75rem 1rem;
}

.it-home-jodabook__media {
  border-radius: var(--it-home-radius, 1rem);
  overflow: hidden;
  background: #d7e6d4;
  aspect-ratio: 16 / 10;
}

.it-home-jodabook__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.it-home-jodabook__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.it-home-jodabook__badge {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  color: var(--it-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(41, 47, 45, 0.08);
}

.it-home-jodabook__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--it-secondary);
}

.it-home-jodabook__text {
  margin: 0 0 0.35rem;
  max-width: 42ch;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--it-mute);
}

/* --- 8) Blog --- */
.it-home-blog {
  margin: 0 0 var(--it-home-section-gap, 1.25rem);
}

/* Kopf mit Link zur Übersicht; Karten füllt LatestNews.php mit den neuesten News */
/* Titel bleibt zentriert wie in allen Startseiten-Abschnitten, Link rechts daneben */
.it-home-blog__head {
  position: relative;
}

.it-home-blog__all {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: var(--it-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.it-home-blog__all::after {
  content: ' →';
}

.it-home-blog__all:hover {
  color: var(--it-green-deep);
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .it-home-blog__all {
    position: static;
    display: block;
    margin: -0.5rem 0 1rem;
    text-align: center;
    transform: none;
  }
}

.it-home-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.it-home-blog__card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--it-secondary);
  transition: transform 0.25s var(--it-home-ease, ease);
}

.it-home-blog__card:hover {
  transform: translateY(-3px);
  color: var(--it-secondary);
}

.it-home-blog__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #e8eee9;
}

.it-home-blog__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.it-home-blog__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.it-home-blog__excerpt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--it-mute);
}

.it-home-blog__meta {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--it-mute);
}

/* --- 9) Werkstatt --- */
.it-home-service {
  position: relative;
  width: 100%;
  margin: 0;
  min-height: 18rem;
  padding: 2rem 0;
  background-color: #2a312e;
  background-image:
    linear-gradient(105deg, rgba(245, 247, 248, 0.94) 0%, rgba(245, 247, 248, 0.88) 34%, rgba(20, 28, 24, 0.28) 62%, rgba(20, 28, 24, 0.35) 100%),
    var(--it-home-service-image);
  background-size: cover;
  background-position: center;
}

.it-home-service__inner {
  display: flex;
  align-items: center;
  min-height: 14rem;
}

.it-home-service__panel {
  width: min(100%, 30rem);
  padding: 1.5rem 1.45rem 1.55rem;
  border-radius: var(--it-home-radius, 1rem);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(20, 28, 24, 0.16);
}

.it-home-service__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--it-secondary);
}

.it-home-service__list {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.it-home-service__list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.45rem;
  font-weight: 600;
  color: var(--it-secondary);
}

.it-home-service__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--it-primary);
  font-weight: 700;
}

/* --- 10) SEO-Text nach Werkstatt --- */
.it-home-seo {
  width: 100%;
  margin: 0;
  padding: 2rem 0 2.5rem;
  background: #fff;
}

.it-home-seo__inner {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.it-home-seo__title {
  margin: 1.75rem 0 0.75rem;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--it-secondary);
  line-height: 1.25;
}

.it-home-seo__inner > .it-home-seo__title:first-child {
  margin-top: 0;
}

.it-home-seo__text {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--it-mute);
}

.it-home-seo__text a {
  color: var(--it-info);
  font-weight: 600;
}

.it-home-seo__text a:hover {
  color: var(--it-primary);
}

.it-home-seo__closing {
  margin: 1.75rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--it-secondary);
}


@media (max-width: 991.98px) {
  .it-home-offers__grid,
  .it-home-jodabook__inner,
  .it-home-blog__grid {
    grid-template-columns: 1fr;
  }

  .it-home-brands__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .it-home-finder-hero {
    --it-home-hero-h: clamp(24rem, 68vh, 34rem);
  }

  .it-home-service {
    background-image:
      linear-gradient(180deg, rgba(245, 247, 248, 0.94) 0%, rgba(245, 247, 248, 0.9) 42%, rgba(20, 28, 24, 0.45) 100%),
      var(--it-home-service-image);
  }
}

@media (max-width: 575.98px) {
  .it-home-brands__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .it-home-trust__list {
    grid-template-columns: 1fr 1fr;
  }

  .it-home-trust__item {
    padding: 0.95rem 0.75rem 1rem;
  }

  .it-home-trust__item:nth-child(2n) {
    border-right: 0;
  }

  .it-home-trust__item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(83, 181, 74, 0.22);
  }

  .it-home-trust__icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.35rem;
  }

  .it-home-trust__text {
    max-width: 14ch;
  }

  .it-home-offers__tile {
    min-height: 14rem;
  }

  .it-home-service__panel {
    width: 100%;
  }
}

/* -------------------------------------------------------------------------- */
/* Artikeldetailseite (it-pdp-*) – Wireframe „3 · Produktdetailseite“          */
/* Galerie links · Infospalte rechts · Skalen · Tabs · Empfehlungen            */
/* -------------------------------------------------------------------------- */

#result-wrapper {
  --it-pdp-media: 38rem; /* nutzt die linke Produkthaelfte fast vollstaendig */
  color: var(--it-secondary);
}

#result-wrapper #product-offer.product-detail {
  margin-bottom: 2.25rem;
}

/* --- Galerie ------------------------------------------------------------- */

#result-wrapper .product-gallery #gallery_wrapper,
#result-wrapper .product-gallery .product-thumbnails-wrapper {
  width: 100%;
  max-width: var(--it-pdp-media);
  margin-left: 0;
  margin-right: auto;
}

#result-wrapper .rating-wrapper .fa-star,
#result-wrapper .rating-wrapper .fas.fa-star-half-alt,
#result-wrapper .rating-wrapper .far.fa-star {
  color: var(--it-primary);
}

#result-wrapper .rating-wrapper a {
  color: var(--it-secondary);
  font-weight: 600;
  text-decoration: none;
}

#result-wrapper .rating-wrapper a:hover,
#result-wrapper .rating-wrapper a:focus {
  color: var(--it-primary);
}

#result-wrapper .product-gallery #gallery_wrapper {
  border: 1px solid var(--it-border);
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}

#result-wrapper .product-gallery .product-thumbnails-wrapper {
  margin-top: 0.9rem;
}

#result-wrapper .product-gallery #gallery_preview {
  display: flex;
  align-items: center;
  margin-left: 0;
  margin-right: 0;
}

/* Keine Pfeile in der Thumb-Leiste.

   Slick erzeugt sie je nach Zustand mal und mal nicht – nach einem
   Variantenwechsel entstanden dadurch doppelte. Die Navigation uebernimmt die
   Positionsanzeige (.it-thumb-progress), Klick auf eine Vorschau bleibt
   unveraendert moeglich. */
#result-wrapper .product-gallery #gallery_preview .slick-arrow {
  display: none !important;
}

/* Schmale Positionsanzeige unter den Vorschauen.

   Track: 2px, neutrale Linie. Fill: Markenfarbe, Breite entspricht dem
   sichtbaren Anteil der Galerie, Position dem aktuellen Bild.
   Klick oder Ziehen auf den Track springt an die entsprechende Stelle.
   Erscheint nur, wenn mehr Bilder vorhanden sind als gleichzeitig sichtbar. */
.it-thumb-progress {
  position: relative;
  height: 2px;
  margin: 0.55rem auto 0.15rem;
  max-width: 14rem;
  border-radius: 2px;
  background: var(--it-border);
  cursor: pointer;
  touch-action: none;
}

.it-thumb-progress__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 1.25rem;
  border-radius: 2px;
  background: var(--it-primary);
  transition: transform 260ms cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .it-thumb-progress__fill {
    transition: none;
  }
}

#result-wrapper .product-gallery #gallery_preview .slick-list {
  margin-right: -0.4rem;
  margin-left: -0.4rem;
}

#result-wrapper .product-gallery #gallery_preview .slick-slide {
  margin-right: 0.4rem;
  margin-left: 0.4rem;
}

#result-wrapper .product-gallery #gallery_preview .square .inner {
  position: absolute;
  inset: 0;
  padding: 0.35rem;
  border: 1px solid var(--it-border);
  border-radius: 0.5rem;
  background: #fff;
  overflow: hidden;
}

#result-wrapper .product-gallery #gallery_preview .product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Mauszeiger in der Thumb-Galerie: Finger statt Lupe.

   Die Lupe kommt aus NOVA, nicht aus unserem Theme:
     _productdetails.scss, Zeile 2:   .product-image { cursor: zoom-in; }
     _carousel.scss, Zeile 137:       [data-gallery] .slick-slide { cursor: zoom-in; }

   In der Vorschau-Bildleiste wird aber nichts gezoomt, dort wird gewechselt –
   also pointer. Gesetzt auf Bild, Slide und Kachel, weil alle drei die Lupe
   erben koennen. Die Lupe im Vollbild (Zeile 3422/3427) bleibt unveraendert:
   dort zoomt der Klick tatsaechlich. */
#result-wrapper .product-gallery #gallery_preview,
#result-wrapper .product-gallery #gallery_preview .slick-slide,
#result-wrapper .product-gallery #gallery_preview .js-gallery-images,
#result-wrapper .product-gallery #gallery_preview .product-image {
  cursor: pointer;
}

/* Vor Slick-Init: vier statt fuenf Thumbs, sonst bleiben sie einen Takt klein */
#result-wrapper .product-gallery #gallery_preview:not(.slick-initialized) .js-gallery-images,
#image_wrapper .product-thumbnails:not(.slick-initialized) div.js-gallery-images {
  width: calc(25% - 0.8rem);
  min-width: calc(25% - 0.8rem);
}

#result-wrapper .product-gallery #gallery_preview .slick-current .inner,
#result-wrapper .product-gallery #gallery_preview .square:hover .inner {
  border-color: var(--it-primary);
}

/* NOVA umrandet Thumbs dunkelgrau und den aktiven gelb – hier Brand-Gruen */
#result-wrapper .product-gallery .carousel-thumbnails .slick-slide {
  border-color: transparent;
}

#result-wrapper .product-gallery .carousel-thumbnails .slick-slide.slick-current {
  border-color: transparent;
}

#result-wrapper .product-gallery .carousel-thumbnails .slick-slide.it-pdp-thumb-more-slide {
  opacity: 1;
}

#result-wrapper .product-gallery #gallery_preview .slick-current .inner {
  box-shadow: 0 0 0 1px var(--it-primary);
}

/* Letzter sichtbarer Thumb zeigt die Zahl der restlichen Bilder */
.it-pdp-thumb-more {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  width: 100%;
  padding: 0.35rem;
  border: 0;
  border-radius: 0.45rem;
  background: rgba(41, 47, 45, 0.62);
  color: #fff;
  font-weight: 700;
  line-height: 1.05;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.15s ease;
}

.it-pdp-thumb-more:hover,
.it-pdp-thumb-more:focus {
  background: rgba(47, 107, 62, 0.88);
  color: #fff;
}

.it-pdp-thumb-more:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
}

.it-pdp-thumb-more__count {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.it-pdp-thumb-more__label {
  font-size: 0.72rem;
  font-weight: 600;
}

/* Im NOVA-Vollbild darf der normale Galerie-Deckel nicht weiterwirken. */
#result-wrapper .product-gallery #image_wrapper.fullscreen {
  padding: 2rem;
}

#result-wrapper .product-gallery #image_wrapper.fullscreen #gallery_wrapper {
  width: 100%;
  max-width: min(80vw, calc(100vh - 14rem));
  margin-right: auto;
  margin-left: auto;
}

/* Vollbild: keine weissen Flaechen mehr.

   NOVA legt im Vollbild drei Bloecke auf Weiss (_productdetails.scss, 72/77/82):
     .gallery-with-action-main        background: $white
     .product-detail-image-preview-bar background: $white
     .product-detail-image-topbar      background: $white
   Zusammen mit der Polsterung des Wrappers (2rem) ergab das eine fast
   bildschirmfuellende weisse Flaeche um das Foto.

   Alle drei werden hier transparent gestellt. Der Wrapper selbst bekommt
   statt NOVAs rgba($gray-darker,.5) eine schwache Abdunklung, damit das
   Foto sich vom Seiteninhalt abhebt, ohne als Kaestchen zu wirken. */
#result-wrapper .product-gallery #image_wrapper.fullscreen {
  background-color: rgba(41, 47, 45, 0.55);
}

#result-wrapper .product-gallery #image_wrapper.fullscreen .gallery-with-action-main,
#result-wrapper .product-gallery #image_wrapper.fullscreen .product-detail-image-preview-bar,
#result-wrapper .product-gallery #image_wrapper.fullscreen .product-detail-image-topbar {
  background: transparent;
  box-shadow: none;
}

/* Der Innenabstand des Wrappers schiebt das Foto nach innen – im Vollbild
   soll es die Flaeche fuellen. Oben bleibt Luft fuer den Schliessen-Button. */
#result-wrapper .product-gallery #image_wrapper.fullscreen {
  padding: 3.5rem 1.5rem 1.5rem;
}

/* Scrollverhalten zuruecknehmen: mit flex-start und overflow-y wuchs die
   weisse Flaeche ueber das Bild hinaus. Jetzt zentriert der Block. */
#result-wrapper .product-gallery #image_wrapper.fullscreen .gallery-with-action-main {
  align-content: center;
  max-width: calc(100vw - 3rem);
  overflow-y: visible;
}

/* Hauptbild im Vollbild */
#result-wrapper .product-gallery #image_wrapper.fullscreen #gallery_wrapper {
  width: 100%;
  max-width: min(80vw, calc(100vh - 11rem));
  margin-right: auto;
  margin-left: auto;
  border: 0;
  border-radius: 0.75rem 0.75rem 0 0;
  background: #fff;
}

/* Thumb-Leiste: gleiche Breite wie der Bildcontainer.

   Zwei Ebenen getrennt steuern:

   1) Die Leiste selbst bekommt exakt das Mass von #gallery_wrapper. Damit
      schliessen Bild und Vorschau buendig ab – keine schmalere Insel unter
      einem breiten Foto.

   2) Die einzelne Kachel wird begrenzt (.square, siehe unten). Wuerde man
      stattdessen die Leiste schmaler machen, rutschen die Kacheln wieder nach
      innen und die Kante passt nicht mehr.

   Padding auf allen Seiten gleich (0.6rem), damit oben und unten derselbe
   Abstand zur Kante steht. */
#result-wrapper .product-gallery #image_wrapper.fullscreen .product-thumbnails-wrapper {
  width: 100%;
  max-width: min(80vw, calc(100vh - 11rem));
  margin: 0 auto;
  padding: 0.6rem;
  border-radius: 0 0 0.75rem 0.75rem;
  background: #fff;
}

/* Einzelne Vorschau klein halten und in ihrer Slide zentrieren.

   .square ist die Kachel mit dem Seitenverhaeltnis; .inner liegt absolut
   darin. Die Slide-Breite setzt Slick inline (Breite / slidesToShow) und darf
   nicht angetastet werden – sonst entstehen ungleiche Abstaende. Deshalb wird
   nur die Kachel innerhalb der Slide begrenzt. */
#result-wrapper .product-gallery #image_wrapper.fullscreen #gallery_preview .square {
  max-width: 6.5rem;
  margin-right: auto;
  margin-left: auto;
}

/* align-content und overflow-y bewusst NICHT gesetzt: beides liess den
   weissen Block ueber das Bild hinauswachsen. Die Zentrierung steht weiter
   oben (.gallery-with-action-main, align-content: center). */
#result-wrapper .product-gallery #image_wrapper.fullscreen .gallery-with-action-main {
  max-width: calc(100vw - 3rem);
  margin-right: auto;
  margin-left: auto;
}

#result-wrapper .product-gallery #image_wrapper.fullscreen #image_fullscreen_close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  transform: none;
}

/* NOVA blendet die Pfeile am grossen Bild ausserhalb des Vollbilds aus –
   ohne sie war nicht erkennbar, dass es weitere Bilder gibt. Slick rendert
   sie nur bei mehr als einem Bild. Im Vollbild schob NOVA sie per transform
   um ihre Breite nach aussen, wo #gallery_wrapper sie halb abschnitt. Beide
   Ansichten setzen sie deshalb innen an den Bildrand. */
#result-wrapper .product-gallery #gallery .slick-arrow {
  display: flex !important;
  z-index: 1;
  transform: translateY(-50%);
}

/* NOVA macht sie am grossen Bild transparent – auf dunklen Fotos und im
   Zoom waren nur noch leere Ringe zu sehen. */
#result-wrapper .product-gallery #gallery .slick-arrow:not(:hover):not(:focus) {
  background-color: #fff;
}

#result-wrapper .product-gallery #gallery .slick-prev {
  right: auto;
  left: 0.75rem;
}

#result-wrapper .product-gallery #gallery .slick-next {
  right: 0.75rem;
  left: auto;
}

/* Zoom im Vollbild: Klick auf das Bild vergroessert, die Maus verschiebt den
   Ausschnitt (custom.js). */
#result-wrapper .product-gallery #image_wrapper.fullscreen #gallery .inner {
  overflow: hidden;
}

#result-wrapper .product-gallery #image_wrapper.fullscreen #gallery .product-image {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

#result-wrapper .product-gallery #image_wrapper.fullscreen #gallery .it-gallery-zoomed .product-image {
  cursor: zoom-out;
  transform: scale(2.5);
}

@media (prefers-reduced-motion: reduce) {
  #result-wrapper .product-gallery #image_wrapper.fullscreen #gallery .product-image {
    transition: none;
  }
}

/* --- Kopf der Infospalte ------------------------------------------------- */

.it-pdp-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(83, 181, 74, 0.35);
  border-radius: 999px;
  background: #eaf6e8;
  color: var(--it-green-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#result-wrapper .product-title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--it-secondary);
}

#result-wrapper .rating-wrapper {
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

#result-wrapper .info-essential {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--it-mute);
}

#result-wrapper .info-essential strong {
  font-weight: 600;
  color: var(--it-secondary);
}

#result-wrapper .shortdesc {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

#result-wrapper .shortdesc ul {
  margin: 0;
  padding-left: 1.15rem;
}

#result-wrapper .shortdesc li + li {
  margin-top: 0.35rem;
}

/* --- Fakten-Kacheln (Netzteil / Watt) ------------------------------------ */

.it-pdp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 0 0 1.15rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--it-border);
  border-bottom: 1px solid var(--it-border);
}

.it-pdp-facts__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.it-pdp-facts__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  background: #eaf6e8;
}

.it-pdp-facts__icon img {
  width: 1.75rem;
  height: 1.75rem;
}

.it-pdp-facts__icon .fas {
  font-size: 1.5rem;
  color: var(--it-green-deep);
}

.it-pdp-facts__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.it-pdp-facts__text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--it-secondary);
}

.it-pdp-facts__text span {
  font-size: 0.8rem;
  color: var(--it-mute);
}

/* --- Netzteil zum Anhaken über dem Warenkorb-Button ---------------------- */

.it-pdp-addons {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.it-pdp-addons__title {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--it-secondary);
}

.it-pdp-addon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--it-border);
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.it-pdp-addon:has(.it-pdp-addon__check:checked) {
  border-color: var(--it-primary);
  background: #f3faf2;
}

/* Echte Checkbox als erstes Element der Zeile, in Markenfarbe */
.it-pdp-addon__check {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: var(--it-primary);
  cursor: pointer;
}

.it-pdp-addon__check:focus-visible {
  outline: 2px solid var(--it-info);
  outline-offset: 2px;
}

.it-pdp-addon__image {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.it-pdp-addon__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.it-pdp-addon__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--it-secondary);
}

.it-pdp-addon__hint {
  font-size: 0.78rem;
  color: var(--it-mute);
}

.it-pdp-addon__price {
  flex: none;
  font-weight: 700;
  color: var(--it-secondary);
  white-space: nowrap;
}

/* --- Variationen als Pills ----------------------------------------------- */

#result-wrapper .variations dl {
  margin-bottom: 0;
}

#result-wrapper .variations dt {
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--it-mute);
}

#result-wrapper .variations dd {
  margin-bottom: 1rem;
}

#result-wrapper .it-pdp-variation {
  margin: 0;
  gap: 0.45rem;
}

#result-wrapper .it-pdp-variation > [class*="col-"] {
  padding: 0;
}

#result-wrapper .it-pdp-variation .swatches-text {
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--it-field-border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--it-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

/* Klick-Rueckmeldung: waehrend die Variante geladen wird, treten alle
   Optionen kurz zurueck. Damit ist sofort nach dem Klick sichtbar, dass etwas
   passiert – ohne Spinner, ohne Layout-Sprung.

   Die Klasse setzt und entfernt js/custom.js (initVariationDim); sie liegt auf
   der formrow und verschwindet mit dem Ajax-Austausch von selbst. */
#result-wrapper .it-pdp-variation.it-pdp-variation--loading .swatches-text {
  opacity: 0.45;
}

/* Kein pointer-events: none. Das hat die Optionen blockiert, wenn die Klasse
   haengen blieb – dann war die Zeile dauerhaft nicht mehr bedienbar. Ein
   zweiter Klick waehrend des Ladens ist unkritisch, NOVA bricht den laufenden
   Aufruf selbst ab. */

#result-wrapper .it-pdp-variation .swatches-text:hover {
  border-color: var(--it-primary);
}

/* Aufpreis je Varianten-Chip (productdetails/variation.tpl). Der Wert ist die
   Differenz zur gerade aktiven Variante, netto bei B2B-Kunden, sonst brutto.
   Der aktive Chip traegt stattdessen ein Haekchen.

   margin-left statt Bootstrap: die Regel liegt hier, damit sie auch dann greift,
   wenn NOVA die Klasse des Chips aendert; ms-1/mx-1 haben in Bootstrap 4 keine
   Wirkung (dort heissen die Utilities ml-1/mr-1). */
#result-wrapper .it-pdp-variation .variant-addon {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.74rem;
  font-weight: 500;
  /* Eine Stufe heller als --it-secondary (#292F2D), aber noch deutlich dunkler
     als --it-mute (#6D7078): der Betrag soll nachrangig sein, nicht schwach. */
  color: #4F5754;
  white-space: nowrap;
}

/* Haekchen auf dem aktiven Chip. Kein Text mehr, deshalb entfallen
   text-transform und letter-spacing. */
#result-wrapper .it-pdp-variation .variant-addon--base {
  display: inline-flex;
  align-items: center;
  color: var(--it-green-deep);
}

#result-wrapper .it-pdp-variation .variant-addon--base svg {
  display: block;
  width: 0.82rem;
  height: 0.82rem;
}

#result-wrapper .it-pdp-variation .swatches-text.active {
  border-color: var(--it-primary);
  background: #eaf6e8;
  color: var(--it-green-deep);
}

#result-wrapper .it-pdp-variation .swatches-not-in-stock,
#result-wrapper .it-pdp-variation .swatches-sold-out {
  opacity: 0.45;
  text-decoration: line-through;
}

/* --- Preisblock ----------------------------------------------------------- */

#result-wrapper .price_wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.6rem;
  margin-top: 0.25rem;
}

#result-wrapper .price_wrapper .price.h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--it-secondary);
}

/* Angebotspreis in Signalrot (#C0392B = --it-sale).

   !important, weil die Regel fuer .price.h1 (Zeile 3696) dieselbe Spezifitaet
   hat und in der ausgelieferten Reihenfolge danach kommen kann. Ohne das blieb
   der Preis schwarz. */
/* Angebotspreis in Signalrot (#C0392B = --it-sale).

   Zwei Wege, absichtlich beide:

   1) ueber NOVAs Klasse .special-price – greift nur, wenn
      Preise->Sonderpreis_aktiv gefuellt ist. Bei Variantenkindern ist das
      nicht zuverlaessig der Fall.

   2) ueber :has(.it-pdp-price-old) – greift immer dann, wenn tatsaechlich ein
      Streichpreis gerendert wurde. Das ist der belastbare Zusammenhang:
      Streichpreis sichtbar => Sonderpreis laeuft => Preis rot.

   Die Regel fuer .price.h1 (Zeile 3696) hat gleiche Spezifitaet und setzt
   color: var(--it-secondary). Ohne !important gewinnt je nach Reihenfolge
   die falsche. */
#result-wrapper .price_wrapper .price.special-price,
#result-wrapper .price_wrapper:has(.it-pdp-price-old) .price.h1,
#result-wrapper .price_wrapper:has(.it-pdp-price-old) .price.productbox-price {
  color: var(--it-sale) !important;
}

/* Abstand zwischen "statt" und dem Betrag */
.it-pdp-price-old-label {
  margin-right: 0.25rem;
}

#result-wrapper .price_wrapper .price_label {
  font-size: 0.9rem;
  color: var(--it-mute);
}

/* Streichpreis ohne Durchstreichung.

   <del> setzt per Browser-Standard text-decoration: line-through. Auf Wunsch
   entfaellt die Linie – der Bezug ergibt sich aus dem vorangestellten "statt"
   und der gedaempften Farbe. text-decoration: none wird explizit auch fuer
   die Kindelemente gesetzt, weil die Linie sonst von <del> weitervererbt
   sichtbar bleibt. */
.it-pdp-price-old {
  font-size: 1.15rem;
  color: var(--it-mute);
  text-decoration: none;
}

.it-pdp-price-old .it-pdp-price-old-label,
.it-pdp-price-old .old-price-value,
.it-pdp-price-old * {
  text-decoration: none;
}

/* Preiswechsel bei Variantenwahl: kurzes Einblenden.

   Absichtlich minimal – 220 ms, 3 px Weg, eine Kurve fuer alles. Kein
   Zaehleffekt, kein Aufziehen, kein Scale. Der Preis soll sich nur nicht
   "hart" hinsetzen, waehrend Galerie und Seite stehen bleiben.

   Ausgeloest per JS nach evo:contentLoaded (js/custom.js, initPriceIn). */
@keyframes it-price-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#result-wrapper .price_wrapper.it-price-in {
  animation: it-price-in 220ms cubic-bezier(0.2, 0, 0, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  #result-wrapper .price_wrapper.it-price-in {
    animation: none;
  }
}

#result-wrapper .price_wrapper .price-note {
  display: flex;
  flex: 1 0 100%;
  flex-direction: column;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--it-mute);
}

/* Der 30-Tage-Hinweis (.it-pdp-price-30d) wurde entfernt, die zugehoerige
   order-Regel damit unnoetig. Steuer- und Versandzeile ruecken nach oben. */
#result-wrapper .price_wrapper .price-note .vat_info {
  order: 1;
}

#result-wrapper .price_wrapper .price-note .base-price,
#result-wrapper .price_wrapper .price-note .suggested-price,
#result-wrapper .price_wrapper .price-note .yousave,
#result-wrapper .price_wrapper .price-note .bulk-prices {
  order: 2;
}

/* --- Lieferstatus + Haekchen-Zeile ---------------------------------------- */

#result-wrapper .stock-information {
  margin: 1rem 0;
  font-size: 0.88rem;
}

/* NOVA setzt vor den Lagerstatus ein LKW-Icon. Das Wireframe zeigt dort ein
   Haekchen – deshalb nur den Glyph tauschen, kein zweites Icon davorsetzen.

   Das Haekchen gilt aber nur fuer verfuegbare Ware. Vorher war es hier
   fest verdrahtet: Glyph \f00c und Farbe --it-primary, unabhaengig vom
   Status. Dadurch stand auch vor "Artikel vergriffen" (status-0) ein
   gruenes Haekchen. */
#result-wrapper .delivery-status .status .status-icon::before {
  content: "\f00c";
}

#result-wrapper .delivery-status .status .status-icon {
  margin-right: 0.35rem;
  font-size: 0.8rem;
  color: var(--it-primary);
}

/* Nicht verfuegbar: rotes Kreuz statt Haekchen.
   status-0 ist NOVAs Signalstufe fuer "nicht lieferbar"
   (NOVA/themes/base/sass/_base.scss, Zeile 88: .status-0 { color: $danger }).
   Eine Klasse mehr als die Grundregel oben, damit sie unabhaengig von der
   Reihenfolge gewinnt. */
#result-wrapper .delivery-status .status.status-0 .status-icon::before {
  content: "\f00d";
}

#result-wrapper .delivery-status .status.status-0 .status-icon {
  color: #CF4538;
}

/* Text des Lagerstatus ("4 Stk. auf Lager") in Textfarbe statt gedämpft.
   NOVA setzt .status auf eine graue Stufe; gemeint ist hier ein Hinweis, kein
   Nebentext. Bewusst auf .a{status}-Span und .status gelegt, damit auch der
   von stock_status.tpl erzeugte Inhalt greift. */
#result-wrapper .stock-information .status,
#result-wrapper .stock-information .status span,
#result-wrapper .delivery-status .status {
  color: var(--it-secondary);
  font-weight: 600;
}

/* "Artikel vergriffen" ebenfalls in Signalrot - sonst bliebe der Text gruen,
   obwohl die Ware nicht lieferbar ist. */
#result-wrapper .delivery-status .status.status-0 {
  color: #CF4538;
}

.it-pdp-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin-top: 0.5rem;
}

.it-pdp-trustline__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--it-secondary);
}

.it-pdp-trustline__item i {
  flex: none;
  font-size: 0.8rem;
  color: var(--it-primary);
}

/* --- Hinweisbox "Artikel hat Variationen" ausgeblendet --------------------- */

/* NOVA rendert die Info-Box an zwei Stellen mit der Klasse .choose-variations:
   in productdetails/basket.tpl (Block productdetails-basket-alert-choose, greift
   bei Vaterartikeln) und im Konfigurator-Zweig von productdetails/details.tpl.
   Ausblenden per CSS statt per Kopie der basket.tpl, damit beim NOVA-Update nicht
   171 Zeilen mitgepflegt werden muessen. Das JS (js-choose-variations-wrapper)
   bleibt unberuehrt, die Box ist lediglich unsichtbar. */
#add-to-cart .choose-variations,
#product-configurator .choose-variations,
.js-choose-variations-wrapper .choose-variations {
  display: none !important;
}

/* --- Vertrauenssignale unter dem Kaufbutton ------------------------------- */

.it-pdp-trust {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--it-border);
  border-radius: 0.65rem;
  background: #fafbfb;
}

.it-pdp-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.it-pdp-trust__icon {
  flex: none;
  width: 1.75rem;
  padding-top: 0.1rem;
  font-size: 1.1rem;
  line-height: 1;
  text-align: center;
  color: var(--it-primary);
}

.it-pdp-trust__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--it-mute);
  overflow-wrap: anywhere;
}

.it-pdp-trust__text strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--it-secondary);
}

a.it-pdp-trust__link {
  font-weight: 600;
  color: var(--it-green-deep);
  text-decoration: underline;
}

a.it-pdp-trust__link:hover,
a.it-pdp-trust__link:focus {
  color: var(--it-primary);
}

/* --- Kaufbox: Menge schmal, CTA breit ------------------------------------ */

#result-wrapper .basket-form-inline {
  align-items: flex-start;
  row-gap: 0.6rem;
}

/* Mengenfeld und "In den Warenkorb" auf dieselbe Höhe und Linie bringen.

   1) Beide auf exakt 3rem Aussenmass (box-sizing) und ohne vertikales Padding
      am Button. Vorher addierte sich das .btn-Padding auf die min-height.
   2) Beide Spalten beginnen oben. Messung im Browser: Mengenfeld top 1428 px,
      Button top 1436 px, beide 48 px hoch. Die 8 px sind die halbe Höhe eines
      zusätzlichen Elements von 16 px in der Button-Spalte – bei
      justify-content:center wird der Button dadurch nach unten geschoben.
      Mit flex-start hängen beide an derselben Oberkante. */
#result-wrapper .basket-form-inline > [class*="col"] {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#result-wrapper #quantity-grp,
#result-wrapper #add-to-cart .btn-primary {
  box-sizing: border-box;
  height: 3rem;
  min-height: 3rem;
  max-height: 3rem;
  margin-top: 0;
  margin-bottom: 0;
}

#result-wrapper #add-to-cart .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}

#result-wrapper #quantity-grp .form-control,
#result-wrapper #quantity-grp .btn,
#result-wrapper #add-to-cart .btn-primary {
  min-height: 3rem;
}

/* Einheit ("Stk") aus dem Mengenfeld – NOVA setzt sie zwischen Zahl und Plus,
   in der schmalen Mengenspalte bricht das Feld sonst um. */
#result-wrapper #quantity-grp .unit {
  display: none;
}

/* Mengenfeld als saubere Dreiteilung: Minus | Zahl | Plus.

   Vorher kam die Zahl nicht mittig und zweistellige Werte wurden abgeschnitten
   ("11" nur halb sichtbar). Ursachen: NOVA begrenzt .form-counter per
   max-height, die Spinners werden zusätzlich eingerechnet, und das Feld hat
   kein festes Platzverhältnis zwischen den beiden Buttons. Hier bekommt die
   Gruppe einen eigenen Rahmen, die Buttons feste Breiten und die Zahl den
   restlichen Platz. */
/* Aussenmasse exakt 3rem wie der CTA-Button, Rahmen eingerechnet. Vorher
   standen 3rem auf den Kindern plus 2px Rahmen – dadurch sass die Gruppe
   2px tiefer als "In den Warenkorb". */
#result-wrapper #quantity-grp {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  height: 3rem;
  max-height: none;
  box-sizing: border-box;
  border: 1px solid var(--it-field-border);
  border-radius: 0.5rem;
  background: #fff;
}

#result-wrapper #quantity-grp .btn,
#result-wrapper #quantity-grp .form-control {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Die Buttons sind die Klickflächen. display:flex + zentriert, damit das
   FontAwesome-Span die ganze Fläche fuellt und nicht nur sein Glyph klickbar
   ist. height:100% erbt von der Gruppe, kein fixes Mass mehr noetig. */
#result-wrapper #quantity-grp .btn {
  flex: 0 0 2.625rem;
  width: 2.625rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Der Input darf NICHT width:100% bekommen. Bootstrap verhindert das Überlaufen
   der Input-Group bewusst mit width:1% + flex-grow; mit 100% schiebt der Input
   die Buttons aus dem Container. Sie waren dann zwar sichtbar, aber ihre
   Klickflaeche lag ausserhalb – der Zähler reagierte nicht mehr.
   min-width:0 laesst den Input unter seine Inhaltsbreite schrumpfen. */
#result-wrapper #quantity-grp .form-control {
  flex: 1 1 0%;
  width: 1%;
  min-width: 0;
  padding: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--it-secondary);
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Spinner-Pfeile des number-Feldes raus – sie überdecken bei zwei Ziffern die
   letzte Stelle. Erhöht wird über den Plus-Button. */
#result-wrapper #quantity-grp .form-control::-webkit-outer-spin-button,
#result-wrapper #quantity-grp .form-control::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

#result-wrapper #add-to-cart .btn-primary {
  border-radius: 0.5rem;
  font-weight: 700;
}

@media (min-width: 576px) {
  #result-wrapper .basket-form-inline > [class*="col-sm-6"]:first-child {
    flex: 0 0 10rem;
    max-width: 10rem;
  }

  /* flex-basis 0 statt auto – sonst reisst die max-content-Breite des
     Block-Buttons die Zeile um */
  #result-wrapper .basket-form-inline > [class*="col-sm-6"]:last-child {
    flex: 1 1 0%;
    min-width: 0;
    max-width: none;
  }
}

/* --- Beratung + Zubehoer-Platzhalter -------------------------------------- */

.it-pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

#result-wrapper .it-pdp-advice {
  min-height: 2.75rem;
  border-radius: 0.5rem;
  border-color: var(--it-primary);
  color: var(--it-green-deep);
  font-weight: 600;
}

#result-wrapper .it-pdp-advice:hover,
#result-wrapper .it-pdp-advice:focus {
  background: var(--it-primary);
  border-color: var(--it-primary);
  color: #fff;
}

/* --- Skalen (Mobilitaet / Leistung) --------------------------------------- */

.it-pdp-scales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem 2.5rem;
  margin: 0 0 2.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--it-border);
  border-bottom: 1px solid var(--it-border);
}

.it-pdp-scale__title {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--it-secondary);
}

.it-pdp-scale__labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--it-mute);
}

.it-pdp-scale__labels span:last-child {
  text-align: right;
}

.it-pdp-scale__track {
  position: relative;
  height: 0.875rem;
  margin-top: 0.55rem;
}

.it-pdp-scale__track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--it-border);
  transform: translateY(-50%);
}

.it-pdp-scale__dot {
  position: absolute;
  top: 50%;
  width: 0.875rem;
  height: 0.875rem;
  margin-left: -0.4375rem;
  border-radius: 50%;
  background: var(--it-primary);
  box-shadow: 0 0 0 3px rgba(83, 181, 74, 0.22);
  transform: translateY(-50%);
}

/* --- Tabs ----------------------------------------------------------------- */

#result-wrapper .tab-navigation {
  margin-bottom: 1.5rem;
}

#result-wrapper .tab-navigation .nav-tabs {
  gap: 0.25rem;
  border-bottom: 2px solid var(--it-secondary);
}

/* NOVA setzt den Reitern eine gelbe Unterstreichung – das Wireframe zeigt Karten */
#result-wrapper .tab-navigation .nav-tabs .nav-item:not(:last-child) {
  margin-right: 0;
}

#result-wrapper .tab-navigation .nav-link::after {
  display: none;
}

#result-wrapper .tab-navigation .nav-tabs .nav-link {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--it-border);
  border-bottom: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  background: #fff;
  color: var(--it-mute);
  font-size: 0.92rem;
  font-weight: 600;
}

#result-wrapper .tab-navigation .nav-tabs .nav-link:hover {
  color: var(--it-secondary);
}

#result-wrapper .tab-navigation .nav-tabs .nav-link.active {
  background: #eaf6e8;
  border-color: var(--it-border);
  color: var(--it-secondary);
}

#result-wrapper .tab-content {
  padding-top: 1.35rem;
}

#result-wrapper .tab-content .desc {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--it-secondary);
}

/* --- Technische Daten ----------------------------------------------------- */

.it-pdp-specs__group + .it-pdp-specs__group {
  margin-top: 1.75rem;
}

.it-pdp-specs__title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--it-secondary);
}

.it-pdp-specs__empty {
  margin: 0;
  color: var(--it-mute);
}

.it-pdp-specs__table {
  width: 100%;
  border-collapse: collapse;
}

.it-pdp-specs__table th,
.it-pdp-specs__table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--it-border);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.it-pdp-specs__table th {
  width: 15rem;
  font-weight: 600;
  color: var(--it-secondary);
}

.it-pdp-specs__table td {
  color: var(--it-mute);
}

.it-pdp-specs__table tr:nth-child(odd) {
  background: #fafbfb;
}

/* ?-Icon mit Erklaerung an erklaerungsbeduerftigen Merkmalen */
.it-pdp-specs__hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.3rem;
  padding: 0;
  border: 1px solid var(--it-border);
  border-radius: 50%;
  background: #fff;
  color: var(--it-mute);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: 0.1em;
  cursor: help;
}

.it-pdp-specs__hint:hover,
.it-pdp-specs__hint:focus-visible {
  border-color: var(--it-primary);
  color: var(--it-primary);
}

/* --- Downloads (Handbuecher / Treiber) ------------------------------------ */

.it-pdp-downloads__group + .it-pdp-downloads__group {
  margin-top: 1.75rem;
}

.it-pdp-downloads__title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--it-secondary);
}

.it-pdp-downloads__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--it-border);
}

.it-pdp-downloads__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.35rem;
  border-bottom: 1px solid var(--it-border);
}

.it-pdp-downloads__item:hover {
  background: #fafbfb;
}

.it-pdp-downloads__icon {
  flex: none;
  width: 2rem;
  font-size: 1.35rem;
  line-height: 1;
  text-align: center;
  color: var(--it-primary);
}

.it-pdp-downloads__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
}

.it-pdp-downloads__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--it-secondary);
  overflow-wrap: anywhere;
}

.it-pdp-downloads__meta {
  font-size: 0.8rem;
  color: var(--it-mute);
  overflow-wrap: anywhere;
}

.it-pdp-downloads__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--it-primary);
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--it-green-deep);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

a.it-pdp-downloads__btn:hover,
a.it-pdp-downloads__btn:focus {
  background: var(--it-primary);
  border-color: var(--it-primary);
  color: #fff;
  text-decoration: none;
}

/* Empfehlungen: siehe Abschnitt "Artikelkacheln und Produkt-Slider" am Dateiende */

/* --- Warenkorb-Bestaetigung als Modal ------------------------------------- */

.it-cart-success-modal .modal-content {
  border: 0;
  border-radius: 0.8rem;
  box-shadow: 0 1.25rem 3.5rem rgba(41, 47, 45, 0.24);
}

.it-cart-success-modal .modal-header {
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--it-border);
  background: rgba(83, 181, 74, 0.09);
}

.it-cart-success-modal .modal-title {
  color: var(--it-secondary);
  font-weight: 700;
}

.it-cart-success-modal .modal-body {
  padding: 1.25rem;
}

.it-cart-success-modal #pushed-success .productbox-title {
  margin-bottom: 0.85rem;
}

.it-cart-success-modal #pushed-success .pushed-success-image-wrapper img {
  max-height: 10rem;
  object-fit: contain;
}

.it-cart-success-modal #pushed-success .pushed-success-buttons {
  margin-top: 1rem;
}

.it-cart-specs-wrapper {
  display: block;
  margin-top: 0.75rem;
}

.it-pdp-listing-specs {
  margin: 0 0 1.1rem;
}

.it-cart-specs .it-listing-specs,
.it-pdp-listing-specs .it-listing-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.it-cart-specs .it-listing-specs__item,
.it-pdp-listing-specs .it-listing-specs__item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  min-height: 3.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--it-border);
  border-radius: 0.6rem;
  background: #fff;
}

.it-cart-specs .it-listing-specs__icon,
.it-pdp-listing-specs .it-listing-specs__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: #eaf6e8;
}

.it-cart-specs .it-listing-specs__icon img,
.it-pdp-listing-specs .it-listing-specs__icon img {
  width: 1.3rem;
  height: 1.3rem;
}

.it-cart-specs .it-listing-specs__text,
.it-pdp-listing-specs .it-listing-specs__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.it-cart-specs .it-listing-specs__label,
.it-pdp-listing-specs .it-listing-specs__label,
.it-cart-product-meta__label {
  color: var(--it-mute);
  font-size: 0.72rem;
  font-weight: 600;
}

.it-cart-specs .it-listing-specs__value,
.it-pdp-listing-specs .it-listing-specs__value {
  overflow-wrap: anywhere;
  color: var(--it-secondary);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Shop 5.8 startet Slick mit rows: 0 – die Klasse .slick-slide sitzt dann direkt
   auf der quadratischen Bildbox, und Slicks "display: block" schlaegt unser
   "display: flex". Die absolut positionierte .inner rutschte dadurch unter den
   Platzhalter (::before) und das grosse Produktbild war leer. Fest verankern: */
.square-image .inner {
  top: 0;
  left: 0;
}

/* Garantie-Kachel neben SSD (snippets/it_listing_specs.tpl):
   eigenes gruenes Icon + JTLs EU-Garantielabel.

   Die Kachel belegt genau eine Zelle wie die uebrigen Eckdaten. Rahmen,
   Innenabstand und Mindesthoehe erbt sie von .it-listing-specs__item; nur
   das Innenlayout ist hier eine Flex-Zeile statt des 2-Spalten-Rasters.
   Das Label ist 6,5:1 breit (viewBox 0 0 368.5 56.69) und schrumpft daher
   auf die Restbreite neben dem Icon - Hoehe folgt aus dem Verhaeltnis. */
.it-pdp-listing-specs .it-listing-specs__item--guarantee {
  display: block;
}

.it-listing-specs__item--guarantee .it-listing-specs__guarantee {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Icon-Box wie bei den Eckdaten: Groesse kommt aus .it-listing-specs__icon,
   hier nur gegen das Zusammendruecken durch das lange Label sichern. */
.it-listing-specs__item--guarantee .it-listing-specs__icon {
  flex: 0 0 auto;
}

.it-listing-specs__item--guarantee .it-guarantee-tile__label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 0;
}

.it-listing-specs__item--guarantee .guarantee-label,
.it-listing-specs__item--guarantee .guarantee-label svg {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  overflow: visible;
}

.it-listing-specs__item--guarantee .it-listing-specs__guarantee:focus-visible {
  outline: 2px solid var(--it-secondary);
  outline-offset: 2px;
  border-radius: 0.4rem;
}

/* Versandkostenermittlung: Logo und Name je Versandart
   (snippets/shipping_calculator.tpl im Child).

   NOVA blendet den Namen aus, sobald ein Logo vorhanden ist; hier stehen
   beide. {image fluid=true} setzt img-fluid, also Breite 100 % - im Warenkorb
   fuellte das Logo dadurch die halbe Tabellenbreite. Begrenzt wird deshalb
   die Hoehe, die Breite folgt dem Seitenverhaeltnis. */
.it-shipment-logo {
  display: block;
  margin-bottom: 0.4rem;
  line-height: 0;
}

.it-shipment-logo img {
  width: auto;
  max-width: 100%;
  max-height: 2rem;
}

.it-shipment-name {
  display: block;
  font-weight: 600;
}

/* Checkout: Artikelmerkmale je Position eingeklappt.
   Zeilen kommen unveraendert aus NOVA (checkout/inc_order_items.tpl) und
   tragen nur zusaetzlich .it-order-detail; Knopf und Klasse setzt
   js/custom.js. Der Knopf steht vor der <ul>, nicht darin - ein <button>
   direkt in einer <ul> waere ungueltiges Markup. */
.it-order-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--it-border);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--it-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.it-order-details-toggle::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-0.1rem, -0.1rem);
  transition: transform 0.15s ease;
}

.it-order-details-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translate(-0.1rem, -0.1rem);
}

.it-order-details-toggle:hover {
  border-color: var(--it-secondary);
}

.it-order-details-toggle:focus-visible {
  outline: 2px solid var(--it-secondary);
  outline-offset: 2px;
}

/* Eingeklappt: die Merkmalszeilen verschwinden, der Knopf bleibt. */
.it-order-details-collapsed .it-order-detail {
  display: none;
}

/* EU-Garantielabel in der Bestelluebersicht ausblenden -
   zusaetzlich zur Blockueberschreibung in
   templates/ITTradeport/checkout/inc_order_items.tpl.

   Grund fuer die Doppelung: Das Child-Template wurde bis jetzt nicht in die
   kompilierten Templates uebernommen (in templates_c gibt es keine
   extends.inc_order_items.tpl.php, die Datei dort stammt allein aus
   templates/NOVA). Diese Regel wirkt unabhaengig davon, sobald custom.css
   ausgeliefert wird.

   Bewusst eng gefasst: .checkout-items-item gibt es nur in
   checkout/inc_order_items.tpl. Der Warenkorb (.cart-items-body) behaelt
   sein Label, ebenso Artikelseite und Eckdaten-Kachel. */
.checkout-items-item .guarantee-label-wrapper {
  display: none;
}

/* Gesetzliches Gewaehrleistungs-Label (JTLs Warranty-Bild) ausblenden.

   Im DOM gefunden: <div class="warranty-label-checkout"> mit
   /media/image/warranty/warranty_de.jpg auf der Bestellbestaetigung. Das ist
   ein anderes Element als das EU-Garantielabel oben - es stammt aus
   NOVA/checkout/step5_confirmation.tpl, Zeilen 239-244, und wird ueber
   $Einstellungen.global.global_warranty_label_enabled gesteuert.

   Regel greift unabhaengig vom Template-Cache. Abschalten laesst sich das
   Label auch sauber im Backend (Einstellungen -> Global -> Warranty-Label);
   dann verschwindet es zusaetzlich von der Seite warranty/index.tpl. */
.warranty-label-checkout {
  display: none;
}

/* Bestelluebersicht: verschobene AGB-Checkbox
   (templates/ITTradeport/checkout/step5_confirmation.tpl).
   Sie sitzt jetzt in einer eigenen Spalte ueber der Buttonzeile; NOVAs
   formgroup-Breite laesst sie sonst unnoetig schmal umbrechen. */
.checkout-button-row .snippets-checkbox-wrapper {
  width: 100%;
  margin-bottom: 0.25rem;
}

/* Kommentarfeld in der Bestelluebersicht - exakt die Optik des Gutscheinfelds.

   NOVA rendert es als nacktes <textarea class="checkout-confirmation-comment">
   (checkout/step5_confirmation.tpl, Zeilen 124-134) ohne .form-control. Das
   Gutscheinfeld daneben entsteht ueber {input} als .form-control und hat
   seinen Rahmen aus themes/it-tradeport/it-tradeport.css, Zeile 7125:

       border: 1px solid #7F99A1;
       border-radius: 0.125rem;
       padding: 0.625rem 0.9375rem;
       font-size: 0.875rem;
       line-height: 1.5;
       color: #525252;
       background-color: #ffffff;

   Die frueheren Werte (--it-border #DDE4E6, Radius 0.4rem) waren zu hell und
   zu weich - der Rahmen war praktisch unsichtbar. Hier stehen jetzt dieselben
   Zahlen wie beim Gutscheinfeld, inklusive Fokus- und Placeholder-Farbe
   (it-tradeport.css Zeilen 7150 und 7157).

   box-shadow bewusst none: it-tradeport.css Zeile 21812 setzt beim
   .form-control ebenfalls den Bootstrap-Innenschatten ab, danach gilt nur
   noch der Fokusring. */
.checkout-confirmation-comment {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.625rem 0.9375rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #525252;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid #7F99A1;
  border-radius: 0.125rem;
  box-shadow: none;
  resize: vertical;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .checkout-confirmation-comment {
    transition: none;
  }
}

.checkout-confirmation-comment::placeholder {
  color: #6D7078;
  opacity: 1;
}

.checkout-confirmation-comment:focus {
  color: #525252;
  background-color: #ffffff;
  border-color: #3D8436;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(61, 132, 54, 0.25);
}

.checkout-confirmation-comment:disabled,
.checkout-confirmation-comment[readonly] {
  background-color: #e9ecef;
  opacity: 1;
}

/* Fehlerzustand wie .form-group.has-error .form-control (Zeile 21817) */
.checkout-confirmation-comment.is-invalid {
  border-color: #CF4538;
}

.it-order-details-toggle__count {
  color: var(--it-mute);
  font-weight: 400;
}

/* Volles Label im Reiter "Garantie-Label": SVG ist auf 100 % Breite gesetzt
   und waere auf dem Desktop fast so hoch wie breit */
#tab-guarantee svg {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
}

.it-cart-product-meta {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
}

@media (min-width: 992px) {
  .cart-items-body .it-cart-specs .it-listing-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* -------------------------------------------------------------------------- */
/* PDP – Tablet und Mobil                                                      */
/* -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  #result-wrapper .product-gallery {
    margin-bottom: 1.5rem;
  }

  .it-pdp-scales {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  #result-wrapper {
    --it-pdp-media: 100%;
  }

  #result-wrapper .product-gallery #gallery_preview:not(.slick-initialized) .js-gallery-images,
  #image_wrapper .product-thumbnails:not(.slick-initialized) div.js-gallery-images {
    width: calc(33.333% - 0.8rem);
    min-width: calc(33.333% - 0.8rem);
  }

  #result-wrapper .product-gallery #gallery_preview .slick-slide {
    margin-right: 0.3rem;
    margin-left: 0.3rem;
  }

  #result-wrapper .product-gallery #gallery_preview .slick-list {
    width: 100%;
    margin-right: -0.3rem;
    margin-left: -0.3rem;
  }

  #result-wrapper .product-gallery #gallery_preview .slick-arrow {
    display: none !important;
  }

  .it-pdp-listing-specs .it-listing-specs {
    gap: 0.45rem;
  }

  .it-pdp-listing-specs .it-listing-specs__item {
    min-height: 3.25rem;
    padding: 0.5rem 0.55rem;
    grid-template-columns: 1.9rem minmax(0, 1fr);
    gap: 0.5rem;
  }

  .it-pdp-listing-specs .it-listing-specs__icon {
    width: 1.9rem;
    height: 1.9rem;
  }

  .it-pdp-listing-specs .it-listing-specs__icon img {
    width: 1.15rem;
    height: 1.15rem;
  }

  .it-pdp-listing-specs .it-listing-specs__value {
    font-size: 0.8rem;
  }

  .it-pdp-facts {
    gap: 0.75rem 1.25rem;
  }

  .it-pdp-facts__item {
    flex: 1 1 9rem;
    min-width: 0;
  }

  .it-pdp-facts__text {
    min-width: 0;
  }

  .it-pdp-facts__text span {
    overflow-wrap: anywhere;
  }

  .it-pdp-scale__labels {
    font-size: 0.72rem;
  }

  .it-pdp-scale__labels span {
    flex: 0 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .it-pdp-specs__table th {
    width: 40%;
  }

  #result-wrapper .tab-navigation .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #result-wrapper .tab-navigation .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  #result-wrapper .tab-navigation .nav-tabs .nav-item {
    flex: none;
  }
}

@media (max-width: 575.98px) {
  /* NOVA blendet die Button-Beschriftung unter 576px aus – das Wireframe zeigt
     auch mobil den vollen Text auf dem breiten CTA */
  #result-wrapper #add-to-cart .btn .btn-basket-check span {
    display: inline-block;
  }

  #result-wrapper .it-pdp-variation .swatches-text {
    font-size: 0.82rem;
    padding: 0.35rem 0.7rem;
  }

  .it-pdp-specs__table th,
  .it-pdp-specs__table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.86rem;
  }

  .it-pdp-trustline {
    gap: 0.3rem 1rem;
  }

  .it-pdp-trust {
    padding: 0.85rem 0.9rem;
  }

  /* Download-Button rutscht unter Icon und Dateiname statt zu quetschen */
  .it-pdp-downloads__item {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }

  .it-pdp-downloads__body {
    flex: 1 1 60%;
  }

  .it-pdp-downloads__btn {
    margin-left: 2.75rem;
  }
}

/* ========================================================================== */
/* ARTIKELKACHELN UND PRODUKT-SLIDER                                          */
/* Eine Basis fuer alle Auftritte: Kategorie und Suche (item_box, item_list),  */
/* PDP-Empfehlungen, Startseite, Warenkorb-Crossselling, Sidebar-Boxen        */
/* (item_slider ueber snippets/product_slider.tpl).                           */
/* ========================================================================== */

:root {
  --it-card-radius: 0.75rem;
  --it-card-pad: 0.875rem;
  --it-card-shadow: 0 0.5rem 1.25rem rgba(41, 47, 45, 0.1);
}

/* -------------------------------------------------------------------------- */
/* 1) Karte                                                                    */
/* NOVA legt die weisse Flaeche als ::before hinter .productbox-inner und      */
/* blendet sie erst beim Hover ein (dabei springt sie auf -1rem auf). Wir      */
/* zeigen sie dauerhaft als Karte und lassen sie beim Hover in Kontur.         */
/* -------------------------------------------------------------------------- */

.productbox {
  height: 100%;
  transition: transform 0.2s ease-in-out;
}

/* item_box.tpl schiebt ein <form> zwischen Kachel und Innencontainer. Ohne
   Hoehe darauf greift height:100% weiter unten ins Leere und die Karten einer
   Zeile stehen unterschiedlich hoch. */
.productbox > form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.productbox .productbox-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  height: auto;
  padding: var(--it-card-pad);
}

.productbox .productbox-inner > .row {
  flex: 1 1 auto;
  min-width: 0;
}

.productbox .productbox-inner::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #fff;
  border: 1px solid var(--it-border);
  border-radius: var(--it-card-radius);
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Inhalt muss ueber der Kartenflaeche liegen. Sonst deckt das weisse
   ::before absolut positionierte Bilder zu. */
.productbox .productbox-inner > * {
  position: relative;
  z-index: 1;
}

/* Bootstrap-Gutter innerhalb der Karte aufheben, sonst laeuft der Inhalt
   ueber das Kartenpadding hinaus. Die Galeriekachel stapelt nur volle
   Spalten, die Listenkachel braucht weiter etwas Abstand zwischen Bild
   und Text. */
.productbox-column .productbox-inner > .row {
  margin-left: 0;
  margin-right: 0;
}

.productbox-column .productbox-inner > .row > [class*='col'] {
  padding-left: 0;
  padding-right: 0;
}

/* Kacheln einer Reihe werden auf die hoechste gestreckt. Als umbrechender
   Flex-Container verteilte .row den Rest auf ihre Zeilen (align-content:
   stretch) – Titel, Eckdaten und Preis rutschten je Karte unterschiedlich
   weit nach unten, sobald eine Karte weniger Eckdaten hatte. Deshalb als
   Spalte stapeln: Bild und Text oben, der Preis unten buendig. */
.productbox-column .productbox-inner > .row {
  flex-direction: column;
  flex-wrap: nowrap;
}

.productbox-column .productbox-inner > .row > [class*='col'] {
  flex: 0 0 auto; /* col-12 = flex-basis 100 %, in der Spalte waere das die volle Hoehe */
  max-width: 100%;
}

.productbox-column .productbox-inner > .row > [class*='col']:last-child {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.productbox-column .productbox-inner > .row > [class*='col']:last-child > :has(.price_wrapper) {
  margin-top: auto;
}

/* NOVA gibt jeder Kachel ausser der letzten 4rem Abstand nach unten. Der Abstand
   zaehlt in der Flex-Zeile mit, die letzte Kachel wurde dadurch um die Differenz
   hoeher gestreckt als ihre Nachbarn (z. B. TravelMate X4 als 4. von 4). */
#product-list .product-wrapper:last-child {
  margin-bottom: 4rem;
}

/* Im Flex-Container fallen Aussenabstaende nicht mehr zusammen – sonst stuenden
   die Eckdaten 5,6 px tiefer als bisher (Titel-unten + Eckdaten-oben addiert). */
.productbox-column .productbox-inner > .row > [class*='col']:last-child > .productbox-title {
  margin-bottom: 0;
}

.productbox-row .productbox-inner > .row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.productbox-row .productbox-inner > .row > [class*='col'] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (min-width: 768px) {
  .productbox.productbox-hover:hover .productbox-inner::before,
  .productbox.productbox-hover:focus .productbox-inner::before,
  .productbox.productbox-hover.focus .productbox-inner::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-color: var(--it-primary);
    box-shadow: var(--it-card-shadow);
  }

  .productbox.productbox-hover:hover {
    transform: translateY(-2px);
  }

  /* Clear-Gelb (#ffda5f) im Fokusring durch Brand-Gruen ersetzen */
  .productbox.productbox-hover:focus-visible .productbox-inner::before,
  .productbox.productbox-hover:focus-within .productbox-inner::before {
    outline: 2px solid var(--it-primary);
    border-radius: var(--it-card-radius);
  }
}

/* -------------------------------------------------------------------------- */
/* 2) Bildflaeche                                                              */
/* -------------------------------------------------------------------------- */

/* Nur das erste Quadrat bekommt die graue Flaeche. .second-wrapper liegt
   absolut darueber – mit eigenem Hintergrund waere das erste Bild weg und
   erst das Hover-Zweitbild sichtbar. Dessen square::before darf auch nicht
   mitlaufen, sonst schiebt die doppelte Hoehe den Preis aus der Karte. */
.productbox .list-gallery .first-wrapper.square.square-image,
.productbox .productbox-image.square.square-image:not(.second-wrapper) {
  background: var(--it-bg);
  border-radius: calc(var(--it-card-radius) - 0.25rem);
  overflow: hidden;
}

.productbox .list-gallery .second-wrapper {
  background: transparent;
}

.productbox .list-gallery .second-wrapper::before {
  content: none;
}

.productbox .productbox-image .square.square-image .inner {
  padding: 0.5rem;
}

.productbox .productbox-images {
  margin-bottom: 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* 3) Titel                                                                    */
/* -------------------------------------------------------------------------- */

.productbox .productbox-title {
  top: 0;
  margin-bottom: 0.35rem;
}

.productbox .productbox-title a {
  color: var(--it-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  /* zwei Zeilen reservieren, damit die Preise ueber alle Kacheln fluchten */
  min-height: 2.6em;
}

.productbox:hover .productbox-title a {
  color: var(--it-primary);
}

/* -------------------------------------------------------------------------- */
/* 4) Technische Eckdaten der Galerie-Kachel                                  */
/* -------------------------------------------------------------------------- */

.productbox-column .it-listing-specs {
  display: grid;
  gap: 0;
  margin: 0.55rem 0 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--it-border);
  border-bottom: 1px solid var(--it-border);
}

.productbox-column .it-listing-specs__item {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.32rem 0;
}

.productbox-column .it-listing-specs__item + .it-listing-specs__item {
  border-top: 1px solid rgba(41, 47, 45, 0.1);
}

.productbox-column .it-listing-specs__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  background: #eaf6e8;
}

.productbox-column .it-listing-specs__icon img {
  width: 1.1rem;
  height: 1.1rem;
}

.productbox-column .it-listing-specs__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.productbox-column .it-listing-specs__label {
  color: var(--it-mute);
  font-size: 0.68rem;
  font-weight: 600;
}

.productbox-column .it-listing-specs__value {
  display: -webkit-box;
  overflow: hidden;
  color: var(--it-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* -------------------------------------------------------------------------- */
/* 5) Preis                                                                    */
/* -------------------------------------------------------------------------- */

.productbox .price_wrapper {
  margin-top: auto;
}

.productbox .price.productbox-price {
  color: var(--it-secondary);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.productbox .price.productbox-price.special-price {
  color: var(--it-sale);
}

.productbox .price_label.pricestarting,
.productbox .price_label.nowonly {
  color: var(--it-mute);
  font-size: 0.8rem;
  font-weight: 400;
}

.productbox .footnote-reference {
  margin-left: 0.1rem;
  color: var(--it-mute);
  font-size: 0.8rem;
  font-weight: 400;
}

.productbox .price-note {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--it-mute);
}

.productbox .price-note .old-price del,
.productbox .price-note .instead-of del {
  color: var(--it-mute);
}

.productbox .price-note .discount .value {
  color: var(--it-sale);
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* 6) Ribbon als Pille statt Fahne                                             */
/* -------------------------------------------------------------------------- */

/* Reine Form - hier stehen bewusst KEINE Farben.

   Der Hover-Zustand steckt in dieser Selektor-Gruppe
   (.productbox.productbox-hover:hover .productbox-ribbon.ribbon = 4 Klassen).
   Eine background-color an dieser Stelle ueberstimmt im Hover die
   Farbregeln weiter unten (3 Klassen), weil Spezifitaet vor Reihenfolge geht.
   Genau das liess das rote "Ausverkauft"-Badge beim Ueberfahren gruen werden.
   Farben stehen deshalb ausschliesslich in den Regeln darunter. */
.productbox .productbox-ribbon.ribbon,
.productbox.productbox-hover:hover .productbox-ribbon.ribbon,
.productbox.productbox-hover:focus .productbox-ribbon.ribbon,
.productbox.productbox-hover.focus .productbox-ribbon.ribbon {
  top: calc(var(--it-card-pad) + 0.5rem);
  left: calc(var(--it-card-pad) + 0.5rem);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  box-shadow: none;
}

/* Grundfarbe fuer Badges ohne eigene Zuordnung (auch eigene Badges aus der
   Wawi). Gleiche Spezifitaet wie die Nummernregeln darunter, daher gewinnen
   diese durch die spaetere Position - im Hover bleibt die Farbe jetzt stabil. */
.productbox .productbox-ribbon.ribbon {
  background-color: var(--it-primary);
  color: #fff;
}

/* Listenansicht: rechts steht schon der Lieferstatus ("Sofort verfügbar") –
   die Pille "Auf Lager" sagte dasselbe noch einmal. In den Kacheln bleibt sie. */
.layout-list .productbox .productbox-ribbon.ribbon-8 {
  display: none;
}

/* Fahnen-Zipfel der NOVA-Ribbons entfernen */
.productbox .productbox-ribbon.ribbon::before,
.productbox .productbox-ribbon.ribbon::after {
  display: none;
}

/* Ausverkauf in Signalrot. Der Bestseller-Chip (Typ 1) bekommt eine eigene
   Regel und ist pink: vorher teilte er sich das Rot mit dem Vergriffen-Badge
   (Typ 7), ein Bestseller wirkte dadurch wie ausverkaufte Ware. */
.productbox .productbox-ribbon.ribbon-7 {
  background-color: var(--it-sale);
  color: #fff;
}

.productbox .productbox-ribbon.ribbon-1 {
  background-color: var(--it-bestseller);
  color: #fff;
}

.productbox .productbox-ribbon.ribbon-3,
.productbox .productbox-ribbon.ribbon-6 {
  background-color: var(--it-secondary);
  color: #fff;
}

/* Typ 2 (Sonderangebot) und Typ 4 (Top-Angebot) laufen ueber .ribbon-aktion:
   einheitlich lila, "Rabatt n%" oder "AKTION" entscheidet snippets/ribbon.tpl.
   Steht nach den Nummernregeln, damit bei gleicher Spezifitaet diese gewinnt. */
.productbox .productbox-ribbon.ribbon-aktion {
  background-color: var(--it-aktion);
  color: #fff;
}

/* NEU-Tag: rechts oben auf der Kachel, Gegenstueck zur Pille links.
   .productbox-image ist in NOVA bereits position:relative
   (clear.css, Zeile 20476), deshalb genuegt top/right.
   Weisse Flaeche, 1px schwarze Outline, schwarze Schrift. */
.productbox .it-neu-tag {
  position: absolute;
  top: calc(var(--it-card-pad) + 0.5rem);
  right: calc(var(--it-card-pad) + 0.5rem);
  z-index: 5;
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px solid #000;
  border-radius: 999px;
  background-color: #ffffff;
  color: #000000;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* 7) Bewertungssterne                                                         */
/* -------------------------------------------------------------------------- */

.productbox .rating,
.productbox .product-rating {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.productbox .fa-star,
.productbox .fa-star-half-alt,
.productbox .star,
.productbox .rating .fas {
  color: var(--it-primary);
}

/* -------------------------------------------------------------------------- */
/* 8) Quick-Actions (Wunschliste, Vergleich) als runde Buttons                 */
/* -------------------------------------------------------------------------- */

.productbox .productbox-quick-actions {
  right: calc(var(--it-card-pad) + 0.35rem);
  top: calc(var(--it-card-pad) + 0.35rem);
}

.productbox .productbox-quick-actions .btn {
  width: 2rem;
  height: 2rem;
  margin: 0 0 0 0.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--it-border);
  border-radius: 50%;
  background: #fff;
  color: var(--it-secondary);
  box-shadow: 0 1px 3px rgba(41, 47, 45, 0.08);
}

.productbox .productbox-quick-actions .btn:hover,
.productbox .productbox-quick-actions .btn:focus {
  border-color: var(--it-primary);
  background: var(--it-primary);
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* 9) Slider-Kachel                                                            */
/* item_slider.tpl packt Bild, Titel und Preis in ein einziges <a>. Genau      */
/* dieses <a> wird zur Karte, sonst faerbt der Link auch den Preis ein.        */
/* -------------------------------------------------------------------------- */

.product-wrapper-product {
  height: 100%;
  text-align: left;
}

.product-wrapper-product > a {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--it-card-pad);
  background: #fff;
  border: 1px solid var(--it-border);
  border-radius: var(--it-card-radius);
  color: var(--it-secondary);
  text-decoration: none;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}

.product-wrapper-product > a:hover,
.product-wrapper-product > a:focus {
  border-color: var(--it-primary);
  box-shadow: var(--it-card-shadow);
  color: var(--it-secondary);
  text-decoration: none;
}

@media (min-width: 768px) {
  .product-wrapper-product > a:hover {
    transform: translateY(-2px);
  }
}

.product-wrapper-product .item-slider.productbox-image {
  margin-bottom: 0.75rem;
  background: var(--it-bg);
  border-radius: calc(var(--it-card-radius) - 0.25rem);
}

.product-wrapper-product .item-slider.productbox-image .inner {
  padding: 0.5rem;
  border-radius: calc(var(--it-card-radius) - 0.25rem);
  overflow: hidden;
}

.product-wrapper-product .item-slider-desc {
  margin-bottom: 0.4rem;
  color: var(--it-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  /* zwei Zeilen reservieren, damit die Preise ueber alle Kacheln fluchten */
  min-height: 2.6em;
}

.product-wrapper-product > a:hover .item-slider-desc {
  color: var(--it-primary);
}

.product-wrapper-product .it-listing-specs,
.productbox-sidebar .it-listing-specs {
  display: grid;
  gap: 0;
  margin: 0.35rem 0 0.55rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--it-border);
  border-bottom: 1px solid var(--it-border);
}

.product-wrapper-product .it-listing-specs__item,
.productbox-sidebar .it-listing-specs__item {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.25rem 0;
}

.product-wrapper-product .it-listing-specs__item + .it-listing-specs__item,
.productbox-sidebar .it-listing-specs__item + .it-listing-specs__item {
  border-top: 1px solid rgba(41, 47, 45, 0.1);
}

.product-wrapper-product .it-listing-specs__icon,
.productbox-sidebar .it-listing-specs__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
  background: #eaf6e8;
}

.product-wrapper-product .it-listing-specs__icon img,
.productbox-sidebar .it-listing-specs__icon img {
  width: 0.95rem;
  height: 0.95rem;
}

.product-wrapper-product .it-listing-specs__text,
.productbox-sidebar .it-listing-specs__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.product-wrapper-product .it-listing-specs__label,
.productbox-sidebar .it-listing-specs__label {
  color: var(--it-mute);
  font-size: 0.62rem;
  font-weight: 600;
}

.product-wrapper-product .it-listing-specs__value,
.productbox-sidebar .it-listing-specs__value {
  display: -webkit-box;
  overflow: hidden;
  color: var(--it-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Auf der PDP entsprechen die Slider-Karten bewusst den kompakten
   Galerie-Kacheln von Neuheiten und Bestsellern. Sidebar-Slider bleiben
   kleiner, weil dort deutlich weniger Breite zur Verfuegung steht. */
#result-wrapper .recommendations .product-wrapper-product .it-listing-specs {
  margin: 0.55rem 0 0.75rem;
  padding: 0.45rem 0;
}

#result-wrapper .recommendations .product-wrapper-product .it-listing-specs__item {
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.32rem 0;
}

#result-wrapper .recommendations .product-wrapper-product .it-listing-specs__icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
}

#result-wrapper .recommendations .product-wrapper-product .it-listing-specs__icon img {
  width: 1.1rem;
  height: 1.1rem;
}

#result-wrapper .recommendations .product-wrapper-product .it-listing-specs__text {
  line-height: 1.2;
}

#result-wrapper .recommendations .product-wrapper-product .it-listing-specs__label {
  font-size: 0.68rem;
}

#result-wrapper .recommendations .product-wrapper-product .it-listing-specs__value {
  font-size: 0.8rem;
}

.productbox-sidebar .it-listing-specs {
  margin: 0.3rem 0 0.4rem;
}

.productbox-sidebar .it-listing-specs__label {
  display: none;
}

.product-wrapper-product .item-slider-rating {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--it-primary);
}

.product-wrapper-product .item-slider-price {
  margin-top: auto;
}

.product-wrapper-product .item-slider-price .price {
  color: var(--it-secondary);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.product-wrapper-product .item-slider-price .price.special-price {
  color: var(--it-sale);
}

.product-wrapper-product .item-slider-price .price_label {
  color: var(--it-mute);
  font-size: 0.8rem;
  font-weight: 400;
}

.product-wrapper-product .item-slider-price .footnote-reference {
  margin-left: 0.1rem;
  color: var(--it-mute);
  font-size: 0.8rem;
  font-weight: 400;
}

.product-wrapper-product .item-slider-price .price-note {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--it-mute);
}

/* Preisspannen sollen nicht mitten in einem Betrag umbrechen */
.product-wrapper-product .item-slider-price .first-range-price,
.product-wrapper-product .item-slider-price .second-range-price {
  white-space: nowrap;
}

/* Gleiche Kartenhoehen, auch bevor Slick initialisiert hat */
.carousel .slick-track {
  align-items: stretch;
}

.carousel .slick-slide {
  height: auto;
}

.carousel .slick-slide > div,
.carousel .product-wrapper {
  height: 100%;
}

/* -------------------------------------------------------------------------- */
/* 10) Slider-Ueberschriften                                                   */
/* .hr-sect kommt aus der Critical CSS: zentriert, mit duennen Linien links    */
/* und rechts sowie Rahmen oben und unten. Ersetzt durch denselben             */
/* linksbuendigen Stil wie .it-home__section-title.                            */
/* -------------------------------------------------------------------------- */

#result-wrapper .recommendations {
  width: 100%;
  max-width: 1250px;
  margin: clamp(2.75rem, 5vw, 4rem) auto 0;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* NOVAs aeusserer Wrapper beruecksichtigt weiterhin die abgeschalteten
   Cross-Selling-Quellen. Ohne einen echten Slider darf er keinen Leerraum
   unterhalb der Produktdetails erzeugen. */
#result-wrapper .recommendations:not(:has(.slick-slider-other)) {
  display: none;
}

.recommendations .hr-sect,
.slick-slider-other > .hr-sect {
  position: relative;
  display: block;
  margin: 0 0 2.25rem;
  padding: 0 0 0.45rem;
  border-top: 0;
  border-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--it-secondary);
  text-align: left;
}

.recommendations .hr-sect::before,
.slick-slider-other > .hr-sect::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  margin: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--it-primary), var(--it-soft));
}

.recommendations .hr-sect::after,
.slick-slider-other > .hr-sect::after {
  display: none;
}

/* Spannt der Slider ueber die volle Breite, klebt eine linksbuendige
   Ueberschrift am Viewport-Rand. Dort stehen Titel und Akzentbalken mittig.
   In begrenzten Containern (.container) bleibt es linksbuendig. */
.container-fluid .recommendations .hr-sect,
.container-fluid .slick-slider-other > .hr-sect {
  text-align: center;
}

.container-fluid .recommendations .hr-sect::before,
.container-fluid .slick-slider-other > .hr-sect::before {
  left: 50%;
  transform: translateX(-50%);
}

/* Box-Slider in der Sidebar nutzen eine eigene Ueberschrift */
.productlist-filter-headline {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--it-secondary);
}

/* -------------------------------------------------------------------------- */
/* 11) Pfeile und Dots                                                         */
/* NOVA blendet die Pfeile nur beim Hover ein (grauer Kasten, Hover in         */
/* Clear-Gelb). Sie sind jetzt dauerhaft sichtbar und im Brand-Look.           */
/* -------------------------------------------------------------------------- */

.carousel .slick-arrow,
.carousel:hover .slick-arrow {
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--it-border);
  border-radius: 50%;
  background-color: #fff;
  color: var(--it-secondary);
  box-shadow: 0 2px 8px rgba(41, 47, 45, 0.12);
}

.carousel .slick-arrow::after {
  font-size: 0.8rem;
  line-height: 1;
}

.carousel .slick-arrow:hover,
.carousel .slick-arrow:focus {
  background-color: var(--it-primary);
  border-color: var(--it-primary);
  color: #fff;
}

.carousel .slick-arrow.slick-disabled {
  opacity: 0.35;
  pointer-events: none;
  box-shadow: none;
}

/* NOVA setzt die Pfeile mitten auf die erste und letzte Kachel. Der Slider
   bekommt stattdessen seitliche Rinnen, in denen die Pfeile frei stehen.
   Slick rendert die Pfeile je nach Breakpoint gar nicht – ohne Pfeile darf
   auch keine Rinne entstehen, sonst fluchtet die erste Kachel nicht mit der
   Ueberschrift. */
.slick-slider-other > .carousel:has(> .slick-arrow) {
  padding-left: 4rem;
  padding-right: 4rem;
}

/* .carousel ist eine .row und ragt mit -1rem ueber den Container hinaus.
   left/right: 1rem stellt die Pfeile damit genau auf die Inhaltskante,
   statt sie an den Viewport-Rand zu kleben. */
.slick-slider-other > .carousel.carousel-arrows-inside .slick-prev {
  left: 1rem;
  transform: translate(0, -50%);
}

.slick-slider-other > .carousel.carousel-arrows-inside .slick-next {
  right: 1rem;
  transform: translate(0, -50%);
}

.carousel .slick-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.carousel .slick-dots li {
  line-height: 0;
}

.carousel .slick-dots li button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--it-border);
  font-size: 0;
  transition: background 0.2s ease-in-out, width 0.2s ease-in-out;
}

.carousel .slick-dots li.slick-active button {
  width: 1.25rem;
  border-radius: 999px;
  background: var(--it-primary);
}

/* -------------------------------------------------------------------------- */
/* 12) Kategorie- und Suchlisting                                              */
/* -------------------------------------------------------------------------- */

.product-list > .product-wrapper {
  display: flex;
  margin-bottom: 2rem;
}

.product-list > .product-wrapper > .productbox {
  width: 100%;
}

/* Listenansicht: gleiche Karte, nur horizontal */
.layout-list .productbox-row .list-gallery .first-wrapper.square.square-image {
  background: var(--it-bg);
  border-radius: calc(var(--it-card-radius) - 0.25rem);
}

.layout-list .productbox-row .productbox-title a {
  font-size: 1.05rem;
  /* in der Liste ist genug Platz, keine reservierte zweite Zeile noetig */
  min-height: 0;
}

.layout-list .productbox-row .productbox-details {
  font-size: 0.85rem;
  color: var(--it-mute);
}

/* -------------------------------------------------------------------------- */
/* 13) Kacheln auf schmalen Viewports                                          */
/* -------------------------------------------------------------------------- */

@media (max-width: 575.98px) {
  :root {
    --it-card-pad: 0.625rem;
  }

  .productbox .productbox-title a,
  .product-wrapper-product .item-slider-desc {
    font-size: 0.875rem;
  }

  .productbox .price.productbox-price,
  .product-wrapper-product .item-slider-price .price {
    font-size: 1.05rem;
  }

  .productbox-column .it-listing-specs {
    margin-top: 0.45rem;
  }

  .productbox-column .it-listing-specs__item {
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.28rem 0;
  }

  .productbox-column .it-listing-specs__icon {
    width: 1.6rem;
    height: 1.6rem;
  }

  .productbox-column .it-listing-specs__value {
    font-size: 0.75rem;
  }

  /* Mobil nur Display, Prozessor und Grafik, auch in der BMS-Listenansicht */
  .productbox-column .it-listing-specs__item--ram,
  .productbox-column .it-listing-specs__item--ssd,
  .productbox-column .it-listing-specs__item--os,
  #bms .productbox-row .it-listing-specs__item--ram,
  #bms .productbox-row .it-listing-specs__item--ssd,
  #bms .productbox-row .it-listing-specs__item--os {
    display: none;
  }

  .product-wrapper-product .it-listing-specs__item,
  .productbox-sidebar .it-listing-specs__item {
    grid-template-columns: 1.35rem minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0.22rem 0;
  }

  .product-wrapper-product .it-listing-specs__icon,
  .productbox-sidebar .it-listing-specs__icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .product-wrapper-product .it-listing-specs__value,
  .productbox-sidebar .it-listing-specs__value {
    font-size: 0.7rem;
  }

  #result-wrapper .recommendations {
    margin-top: 2.25rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .product-list > .product-wrapper {
    margin-bottom: 1.25rem;
  }

  /* Slick-Gutter halbieren, sonst bleibt kaum Platz fuer die Karte */
  .carousel .slick-slide {
    padding: 0 0.5rem;
  }

  .carousel .slick-arrow {
    width: 2rem;
    height: 2rem;
  }

  .slick-slider-other > .carousel:has(> .slick-arrow) {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .slick-slider-other > .carousel.carousel-arrows-inside .slick-prev {
    left: 0.5rem;
  }

  .slick-slider-other > .carousel.carousel-arrows-inside .slick-next {
    right: 0.5rem;
  }
}

/* ========================================================================== */
/* GRUPPIERTE PRODUKTFILTER                                                   */
/* Primärfilter bleiben offen, technische Detailfilter liegen in Fachgruppen. */
/* ========================================================================== */

.it-filter-primary__item > .btn-filter-box,
.it-filter-group > .btn-filter-box {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0;
  color: var(--it-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.it-filter-primary__item > .btn-filter-box:hover,
.it-filter-primary__item > .btn-filter-box:focus,
.it-filter-group > .btn-filter-box:hover,
.it-filter-group > .btn-filter-box:focus {
  color: var(--it-primary);
  text-decoration: none;
}

/* Abstand zum aufklappenden Kopf. Ohne padding-top klebten die Chips direkt
   unter dem Filtertitel (Screenshot "Aufloesung"). */
.it-filter-primary__content,
.it-filter-group__content {
  padding: 0.7rem 0 0.35rem;
}

.it-filter-characteristic--combined + .it-filter-characteristic--combined {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--it-border);
}

.it-filter-characteristic__label {
  margin-bottom: 0.25rem;
  color: var(--it-mute);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.it-filter-group__toggle {
  justify-content: flex-start;
  gap: 0.5rem;
}

.it-filter-group__count {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.35rem;
  margin-left: auto;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--it-bg);
  color: var(--it-mute);
  font-size: 0.68rem;
  font-weight: 700;
}

.it-filter-group.is-active > .it-filter-group__toggle,
.it-filter-mobile-group.is-active > a {
  color: var(--it-primary);
}

.it-filter-subfilter {
  border-top: 1px solid rgba(41, 47, 45, 0.1);
}

.it-filter-subfilter:first-child {
  border-top: 0;
}

.it-filter-subfilter__toggle {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.25rem;
  padding: 0.4rem 0.1rem;
  border: 0;
  background: transparent;
  color: var(--it-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.it-filter-subfilter__toggle:hover,
.it-filter-subfilter__toggle:focus,
.it-filter-subfilter.is-active > .it-filter-subfilter__toggle {
  color: var(--it-primary);
  text-decoration: none;
}

.it-filter-subfilter__content {
  padding: 0.7rem 0.15rem 0.45rem;
}

/* Preisslider minimaler halten (Box kommt aus NOVA/boxes/box_filter_pricerange.tpl,
   Slider-Markup aus NOVA/snippets/filter/price_slider.tpl:
   .price-range-inputs mit zwei input-groups, darunter .price-range-slide). */

/* Kopf wie die uebrigen Filterkoepfe, damit er nicht aus dem Raster faellt. */
.box-filter-price > .btn-filter-box {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0;
  color: var(--it-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.box-filter-price > .btn-filter-box:hover,
.box-filter-price > .btn-filter-box:focus {
  color: var(--it-primary);
  text-decoration: none;
}

.box-filter-price .box-filter-price-collapse {
  padding: 0.7rem 0 0.35rem;
}

/* Eingabefelder: schmal, flach, ohne zweiten Rahmen durch die input-group. */
.box-filter-price .price-range-inputs {
  margin-bottom: 0.55rem;
}

.box-filter-price .price-range-input {
  height: 1.9rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.125rem;
  font-size: 0.78rem;
}

/* Waehrungszeichen im Addon klein und ohne Fuellung. */
.box-filter-price .input-group-text {
  padding: 0.15rem 0.4rem;
  border-color: var(--it-border);
  background: transparent;
  color: var(--it-mute);
  font-size: 0.72rem;
}

/* Schiene: duenn und hell, damit der Slider nicht wie ein Formularelement wirkt. */
.box-filter-price .price-range-slide {
  margin: 0.9rem 0.35rem 1.1rem;
  height: 4px;
}

.box-filter-price .noUi-target {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--it-border);
  box-shadow: none;
}

.box-filter-price .noUi-connect {
  background: var(--it-primary);
}

.box-filter-price .noUi-horizontal .noUi-handle {
  top: -0.35rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--it-primary);
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  cursor: grab;
}

.box-filter-price .noUi-horizontal .noUi-handle::before,
.box-filter-price .noUi-horizontal .noUi-handle::after {
  content: none;
}

.box-filter-price .noUi-horizontal .noUi-handle:focus-visible {
  outline: 2px solid var(--it-primary);
  outline-offset: 2px;
}

/* Filter anklicken: Produktliste und Sidebar weich abblenden statt springen.

   Gesetzt wird .it-filter-busy per JS auf #content (js/custom.js, Block
   "Filter in der linken Spalte ohne Seitenwechsel"). #content bleibt beim
   Tausch bestehen, #result-wrapper nicht - deshalb haengt die Regel dort.

   Ohne diesen Uebergang ersetzt der Tausch das Markup schlagartig: die
   Produktliste springt, die Sidebar wirkte kurz leer. Mit Deckkraft 0.45
   und pointer-events: none bleibt die Flaeche ruhig, der Wechsel ist
   verdeckt und das Zurueckblenden ist der sichtbare Uebergang. */
#content #result-wrapper,
#content #sidepanel_left {
  transition: opacity 0.22s ease;
}

#content.it-filter-busy #result-wrapper,
#content.it-filter-busy #sidepanel_left {
  opacity: 0.45;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #content #result-wrapper,
  #content #sidepanel_left {
    transition: none;
  }
}

/* Preisslider als letzter Filter in der linken Spalte.

   Die Sidebar ist ein <aside id="sidepanel_left" class="sidepanel-left ...">,
   in das der Shop alle Boxen als EINE Zeichenkette einsetzt
   (NOVA/layout/footer.tpl, Zeile 11-12: {$boxes.left}). Einzelne Boxen lassen
   sich daher nicht per Template umhaengen - ihre Reihenfolge steckt in der
   Box-Konfiguration der Datenbank.

   Deshalb hier per Flex-Reihenfolge: die Spalte wird ein Flex-Container in
   Spaltenrichtung, die Preis-Box bekommt order: 999 und rutscht damit hinter
   alle Geschwister. Alle uebrigen Boxen behalten order: 0 und damit ihre
   bisherige Position.

   Alternativ ohne CSS: Backend -> Inhalte -> Boxen -> Preisbereich, Sortierung
   auf den hoechsten Wert setzen. Das ist der wartungsaermere Weg; diese Regel
   ist dann unnoetig. */
#sidepanel_left {
  display: flex;
  flex-direction: column;
}

#sidepanel_left > .box {
  order: 0;
}

/* Kein margin-top: auto - die Box bleibt direkt unter der letzten Box
   stehen, statt ans untere Ende der Spalte gedrueckt zu werden. */
#sidepanel_left > .js-price-range-box {
  order: 999;
}

.it-filter-primary .box-filter-hr,
.it-filter-groups .box-filter-hr {
  margin: 0;
  border-color: var(--it-border);
}

.it-filter-primary .filter-search-wrapper,
.it-filter-group .filter-search-wrapper,
.it-filter-mobile-primary .filter-search-wrapper,
.it-filter-mobile-group .filter-search-wrapper {
  margin-bottom: 0;
}

.it-filter-primary .box-link-wrapper,
.it-filter-group .box-link-wrapper,
.it-filter-mobile-primary .box-link-wrapper,
.it-filter-mobile-group .box-link-wrapper {
  min-height: 1.9rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

/* Chipansicht der Filterwerte (Desktop-Filter links) - Werte nebeneinander.

   Markup laut NOVA/snippets/filter/characteristic.tpl:
     <a class="filter-item">
         <div class="box-link-wrapper"> [checkbox] Text [Zaehler] </div>
     </a>

   Gestapelt wurde es nicht vom Wrapper, sondern vom Container: ab dem
   Limit rendert NOVA die Werte in
       <div class="nav flex-column">   (characteristic.tpl, Zeile 50)
   und .flex-column erzwingt eine Spalte. Deshalb hier der Container auf
   row + wrap, und die Pille sitzt auf dem <a class="filter-item"> - dem
   Element, das im Flex-Layout tatsaechlich ein Element ist. Der innere
   Wrapper wird dafuer auf transparent gesetzt.

   Trennzeichen: keins. Ein Komma war zwischenzeitlich als ::after am Chip
   gesetzt, wurde aber wieder entfernt - der Abstand zwischen den Pillen
   reicht zur Gliederung. */
.it-filter-primary__content .nav,
.it-filter-group__content .nav,
.it-filter-subfilter__content .nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}

.it-filter-primary__content .filter-item,
.it-filter-group__content .filter-item,
.it-filter-subfilter__content .filter-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 1.9rem;
  margin: 0 0.6rem 0.4rem 0;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--it-border);
  border-radius: 999px;
  background: #fff;
  color: var(--it-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

/* Innerer Wrapper liefert nur noch die Ausrichtung, keine eigene Flaeche. */
.it-filter-primary__content .filter-item .box-link-wrapper,
.it-filter-group__content .filter-item .box-link-wrapper,
.it-filter-subfilter__content .filter-item .box-link-wrapper {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
}

/* Abstand zwischen Kaestchen und Text im Chip. */
.it-filter-primary__content .filter-item .snippets-filter-item-icon-right,
.it-filter-group__content .filter-item .snippets-filter-item-icon-right,
.it-filter-subfilter__content .filter-item .snippets-filter-item-icon-right {
  margin-right: 0.35rem;
}

/* Zaehler-Badge im Chip klein halten, damit die Pille nicht ausbeult. */
.it-filter-primary__content .filter-item .badge,
.it-filter-group__content .filter-item .badge,
.it-filter-subfilter__content .filter-item .badge {
  margin-left: 0.35rem;
  font-size: 0.62rem;
}

.it-filter-primary__content .filter-item:hover,
.it-filter-group__content .filter-item:hover,
.it-filter-subfilter__content .filter-item:hover {
  border-color: var(--it-primary);
  background: #f4f9f3;
  color: var(--it-primary);
  text-decoration: none;
}

/* Aktiver Filterwert: gefuellte gruene Pille. NOVA setzt "active" an den Link
   (characteristic.tpl, Zeile 57/102). */
/* Aktiver Filterwert: gefuellte gruene Pille, Kaestchen und Haken in Weiss.

   NOVA setzt "active" an den Link (characteristic.tpl, Zeile 57/102) und
   schaltet das Icon zwischen far fa-square und far fa-check-square. Die
   Theme-Regel in it-tradeport.css, Zeile 24891 setzt fuer .filter-item.active
   color: #525252 - deshalb wird die Farbe hier fuer alle Kinder erzwungen,
   sonst blieben Kaestchen und Haken dunkel auf gruenem Grund. */
.it-filter-primary__content .filter-item.active,
.it-filter-group__content .filter-item.active,
.it-filter-subfilter__content .filter-item.active {
  border-color: var(--it-primary);
  background: var(--it-primary);
  color: #fff;
}

.it-filter-primary__content .filter-item.active .snippets-filter-item-icon-right,
.it-filter-group__content .filter-item.active .snippets-filter-item-icon-right,
.it-filter-subfilter__content .filter-item.active .snippets-filter-item-icon-right,
.it-filter-primary__content .filter-item.active .filter-item-value,
.it-filter-group__content .filter-item.active .filter-item-value,
.it-filter-subfilter__content .filter-item.active .filter-item-value,
.it-filter-primary__content .filter-item.active .badge,
.it-filter-group__content .filter-item.active .badge,
.it-filter-subfilter__content .filter-item.active .badge {
  color: #fff;
  border-color: #fff;
}

.productlist-filter-accordion .it-filter-mobile-primary > a,
.productlist-filter-accordion .it-filter-mobile-group > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.it-filter-mobile-primary__content,
.it-filter-mobile-group__content {
  padding: 0.35rem 0.75rem 0.55rem;
}

.it-filter-mobile-group__content .it-filter-subfilter__toggle {
  min-height: 2.5rem;
}

@media (max-width: 767.98px) {
  .it-filter-characteristic__label {
    font-size: 0.68rem;
  }

  .it-filter-mobile-primary__content,
  .it-filter-mobile-group__content {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
}

/* -------------------------------------------------------------------------- */
/* BMS-Suche: Kacheln an die Standard-Productbox angleichen                    */
/* -------------------------------------------------------------------------- */

#bms.it-bms .bms_article_item em,
#bms .bms_article_item em {
  color: inherit;
  font-style: normal;
  font-weight: 600;
}

#bms .bms_galleryContainer .bms_image,
#bms .productbox .bms_image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/* Nicht die gesamte Trefferliste als Bezug. height:100% auf den Spalten
   macht jede Kachel so hoch wie alle Zeilen zusammen – sie überlappen. */
#bms.nova .bms_article_item,
#bms .bms_article_item {
  height: auto !important;
}

#bms #bms_resultList.product-list {
  align-items: stretch;
}

#bms #bms_resultList.product-list > .product-wrapper {
  display: flex;
  height: auto;
  margin-bottom: 2rem;
}

#bms #bms_resultList.product-list > .product-wrapper > .productbox {
  width: 100%;
}

#bms .productbox-column .it-listing-specs[hidden],
#bms .productbox-row .it-listing-specs[hidden],
#bms .it-listing-specs--compact[hidden] {
  display: none;
}

#bms .productbox-row .it-listing-specs {
  display: grid;
  gap: 0;
  margin: 0.35rem 0 0;
  padding: 0.25rem 0;
}

#bms .productbox-row .it-listing-specs__item {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.28rem 0;
}

#bms .productbox-row .it-listing-specs__item + .it-listing-specs__item {
  border-top: 1px solid rgba(41, 47, 45, 0.1);
}

#bms .productbox-row .it-listing-specs__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  background: #eaf6e8;
}

#bms .productbox-row .it-listing-specs__icon img {
  width: 1.1rem;
  height: 1.1rem;
}

#bms .productbox-row .it-listing-specs__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

#bms .productbox-row .it-listing-specs__label {
  color: var(--it-mute);
  font-size: 0.68rem;
  font-weight: 600;
}

#bms .productbox-row .it-listing-specs__value {
  color: var(--it-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

#bms .it-bms-table {
  background: #fff;
  color: var(--it-secondary);
}

#bms .it-bms-table thead th {
  border-bottom: 1px solid var(--it-border);
  color: var(--it-mute);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#bms .it-bms-table .bms_title,
#bms .it-bms-table .bms_href {
  color: var(--it-secondary);
  font-weight: 600;
  text-decoration: none;
}

#bms .it-bms-table .bms_title:hover,
#bms .it-bms-table .bms_href:hover {
  color: var(--it-primary);
}

#bms .it-listing-specs--compact {
  margin-top: 0.2rem;
  color: var(--it-mute);
  font-size: 0.75rem;
  line-height: 1.35;
}

#bms .it-bms-table .bms_price {
  font-weight: 700;
}

#bms .it-bms-table .btn-primary {
  background-color: var(--it-primary);
  border-color: var(--it-primary);
}

#bms .it-bms-table .btn-outline-secondary {
  border-color: var(--it-border);
  color: var(--it-secondary);
}

#bms .it-bms-table .btn-outline-secondary:hover {
  background: var(--it-primary);
  border-color: var(--it-primary);
  color: #fff;
}

#bms .bms_view.active,
#bms a.bms_view.active {
  border-color: var(--it-primary) !important;
}

#bms a.bms_view.active svg {
  color: var(--it-primary);
}

/* -------------------------------------------------------------------------- */
/* Produktbewertungen                                                          */
/* -------------------------------------------------------------------------- */

#result-wrapper .it-reviews,
.reviews.it-reviews {
  margin-top: 0;
}

.it-reviews__overview {
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.it-reviews__summary,
.it-reviews__cta {
  height: 100%;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--it-border);
  border-radius: var(--it-card-radius, 0.75rem);
  background: #fff;
  box-shadow: var(--it-card-shadow, 0 0.5rem 1.25rem rgba(41, 47, 45, 0.08));
}

.it-reviews__score {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.it-reviews__score-value {
  color: var(--it-secondary);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.it-reviews__score-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.it-reviews__score-meta .rating {
  color: var(--it-primary);
  font-size: 1rem;
  line-height: 1;
}

.it-reviews__score-count {
  color: var(--it-mute);
  font-size: 0.85rem;
  font-weight: 600;
}

.it-reviews__bars {
  margin: 0;
  padding: 0;
  list-style: none;
}

.it-reviews__bar-row + .it-reviews__bar-row {
  margin-top: 0.35rem;
}

.it-reviews__bar-link {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) 1.4rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--it-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.it-reviews__bar-link:hover,
.it-reviews__bar-link:focus {
  color: var(--it-primary);
}

.it-reviews__bar-link.is-static {
  color: var(--it-mute);
  cursor: default;
}

.it-reviews__bar-row.is-active .it-reviews__bar-link {
  color: var(--it-secondary);
}

.it-reviews__bar {
  display: block;
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--it-bg);
}

.it-reviews__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--it-primary);
}

.it-reviews__bar-count,
.it-reviews__bar-label {
  font-variant-numeric: tabular-nums;
}

.it-reviews__reset {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--it-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.it-reviews__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.it-reviews__cta-title {
  margin: 0;
  color: var(--it-secondary);
  font-size: 1.05rem;
  font-weight: 700;
}

.it-reviews__cta-btn {
  align-self: flex-start;
  padding: 0.55rem 1.15rem;
  background-color: var(--it-primary);
  border-color: var(--it-primary);
  font-weight: 600;
}

.it-reviews__cta-btn:hover,
.it-reviews__cta-btn:focus {
  background-color: var(--it-green-deep);
  border-color: var(--it-green-deep);
}

.it-reviews__empty {
  margin: 0.25rem 0 0;
  color: var(--it-mute);
}

.it-reviews__featured {
  margin-bottom: 1.25rem;
}

.it-reviews__featured-label {
  margin: 0 0 0.65rem;
  color: var(--it-mute);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.it-reviews__list > .pagination-wrapper {
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.35rem 0;
  color: var(--it-mute);
  font-size: 0.82rem;
}

.it-reviews__list .pagination-selects .custom-select {
  min-height: 2.15rem;
  border-color: var(--it-field-border);
  color: var(--it-secondary);
  font-size: 0.82rem;
}

.it-reviews__items {
  display: grid;
  gap: 1rem;
}

.it-review {
  padding: 1.15rem 1.25rem 1.2rem;
  border: 1px solid var(--it-border);
  border-radius: var(--it-card-radius, 0.75rem);
  background: #fff;
  box-shadow: var(--it-card-shadow, 0 0.5rem 1.25rem rgba(41, 47, 45, 0.08));
}

.it-review.is-featured {
  border-color: #cfe8cc;
  background: #f7fbf6;
}

.it-review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.55rem;
}

.it-review__rating .rating,
.it-reviews .rating .fas,
.it-reviews .rating .far,
.it-reviews .rating .fa-star,
.it-reviews .rating .fa-star-half-alt {
  color: var(--it-primary);
}

.it-review__title {
  margin: 0;
  color: var(--it-secondary);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.it-review__text {
  margin: 0 0 0.85rem;
  color: var(--it-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.it-review__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  color: var(--it-mute);
  font-size: 0.82rem;
}

.it-review__author {
  color: var(--it-secondary);
  font-weight: 600;
}

.it-review__badge {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eaf6e8;
  color: var(--it-green-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.it-review__votes,
.it-review.review-comment .review-helpful {
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.it-review__votes > [class*="col"],
.it-review.review-comment .review-helpful > [class*="col"] {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  text-align: left;
}

.it-review__reply {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--it-primary);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--it-bg);
}

.it-review__reply-label {
  margin: 0 0 0.35rem;
  color: var(--it-secondary);
  font-size: 0.8rem;
  font-weight: 700;
}

.it-review__reply-text {
  margin: 0;
  color: var(--it-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.it-review__reply-date {
  display: block;
  margin-top: 0.4rem;
  color: var(--it-mute);
  font-size: 0.75rem;
}

.review-form h1 {
  color: var(--it-secondary);
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  font-weight: 700;
}

.review-form .btn-primary {
  background-color: var(--it-primary);
  border-color: var(--it-primary);
}

@media (max-width: 991.98px) {
  .it-reviews__summary,
  .it-reviews__cta {
    margin-bottom: 1rem;
  }

  .it-reviews__score-value {
    font-size: 2.25rem;
  }
}

/* ========================================================================== */
/* INHALTSSEITEN (CMS / OPC) UND BLOG                                          */
/* Die aus dem Live-Shop übernommenen Seiten (Rechtliches, Über uns, Team,     */
/* Standort, FAQ, Downloads, Hilfecenter-Formulare) und die News. Das Markup   */
/* stammt teils aus dem alten Template (.inhalt, .img3, .btn ohne Variante) –  */
/* es wird hier auf die Brand-Tokens gezogen statt im Inhalt umgeschrieben.    */
/* ========================================================================== */

.link-content,
.blog-details,
#content > .opc-Container.container {
  --it-content-measure: 52rem;
}

/* -- Seitentitel -------------------------------------------------------------- */
.index-heading-wrapper h1,
#content > .opc-Container.container h1,
.blog-details h1[itemprop='headline'],
#content > .container > h1 {
  margin: 0.5rem 0 1.25rem;
  color: var(--it-secondary);
  font-size: clamp(1.6rem, 2.4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: left !important;
}

/* -- Fliesstext ----------------------------------------------------------------- */
.link-content,
.blog-details-content,
#content > .opc-Container.container {
  color: var(--it-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.link-content {
  padding-bottom: 3rem;
}

/* Altes Template: .col-12.inhalt ohne .row – sonst doppelter Innenabstand */
.link-content > .inhalt,
.link-content > div > .inhalt,
#content > .opc-Container .inhalt {
  padding-left: 0;
  padding-right: 0;
}

.link-content > .inhalt:not(.team):not(.standort),
.link-content > div:not([class]),
.blog-details-content > [class*='col'] {
  max-width: var(--it-content-measure);
}

.link-content p,
.link-content li,
.blog-details-content p,
.blog-details-content li,
#content > .opc-Container.container p {
  font-size: 1rem;
  line-height: 1.65;
}

.link-content h2,
.blog-details-content h2,
#content > .opc-Container.container h2:not(.title) {
  margin: 2.25rem 0 0.75rem;
  color: var(--it-secondary);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.link-content h3,
.blog-details-content h3,
#content > .opc-Container.container h3 {
  margin: 1.75rem 0 0.5rem;
  color: var(--it-secondary);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.link-content h4,
.blog-details-content h4 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.link-content h2 b, .link-content h3 b,
.link-content h2 strong, .link-content h3 strong {
  font-weight: inherit;
}

.link-content > .inhalt > :first-child,
.link-content > div > :first-child,
.blog-details-content > [class*='col'] > :first-child {
  margin-top: 0;
}

.link-content ul,
.link-content ol,
.blog-details-content ul,
.blog-details-content ol,
#content > .opc-Container.container ul,
#content > .opc-Container.container ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.link-content li,
.blog-details-content li,
#content > .opc-Container.container li {
  margin-bottom: 0.4rem;
  padding-left: 0.2rem;
}

.link-content li::marker,
.blog-details-content li::marker,
#content > .opc-Container.container li::marker {
  color: var(--it-primary);
  font-weight: 700;
}

.link-content img,
.blog-details-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.link-content table,
.blog-details-content table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.link-content th,
.link-content td,
.blog-details-content th,
.blog-details-content td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--it-border);
  text-align: left;
  vertical-align: top;
}

.link-content th,
.blog-details-content th {
  color: var(--it-secondary);
  font-weight: 700;
  border-bottom: 2px solid var(--it-primary);
}

.link-content blockquote,
.blog-details-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--it-primary);
  border-radius: 0 0.75rem 0.75rem 0;
  background: #e7f4e5;
}

/* Buttons aus dem alten Template (.btn ohne Variante) als Brand-Pill */
.link-content a.btn:not([class*='btn-']),
.link-content .btn-primary,
#content > .opc-Container.container a.btn:not([class*='btn-']) {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--it-primary);
  color: #fff !important;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.link-content a.btn:not([class*='btn-']):hover,
.link-content a.btn:not([class*='btn-']):focus,
.link-content .btn-primary:hover,
.link-content .btn-primary:focus,
#content > .opc-Container.container a.btn:not([class*='btn-']):hover {
  background: var(--it-green-deep);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(47, 107, 62, 0.25);
}

.link-content .btn_action {
  margin-top: 1.5rem;
}

/* Hinweisbox (z. B. Anleitung auf der Downloads-Seite) */
.it-content-note {
  max-width: 40rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  background: var(--it-bg);
}

.link-content .it-content-note h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.it-content-note ul {
  margin-bottom: 0;
}

/* -- Über uns / Geschichte ------------------------------------------------------ */
.link-content > .inhalt > div > img {
  display: block;
  width: 100%;
  max-height: 28rem;
  margin-top: 1.5rem;
  object-fit: cover;
  border-radius: 1rem;
}

/* -- Team --------------------------------------------------------------------- */
.link-content .inhalt.team > .row:empty,
.link-content .inhalt.team > .row > .col-md-8:empty {
  display: none;
}

.link-content .inhalt.team > .row {
  row-gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Geschäftsführer: breite Karte mit Zitat */
.link-content .inhalt.team > .row.align-items-center {
  margin-left: 0;
  margin-right: 0;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #e7f4e5;
}

.link-content .inhalt.team > .row.align-items-center em {
  display: block;
  color: var(--it-secondary);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.6;
}

/* Mitarbeitende: Karten im Raster */
.link-content .inhalt.team > .row.text-center > [class*='col-'] {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.link-content .inhalt.team > .row.text-center > [class*='col-'] > * {
  width: 100%;
}

.link-content .inhalt.team > .row.text-center > [class*='col-']::before {
  content: '';
  position: absolute;
  inset: 0 15px;
  z-index: -1;
  border: 1px solid var(--it-border);
  border-radius: 1rem;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.link-content .inhalt.team > .row.text-center > [class*='col-'] {
  position: relative;
  z-index: 0;
  padding-top: 1.5rem;
  padding-bottom: 1.25rem;
}

.link-content .inhalt.team > .row.text-center > [class*='col-'] > * {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.link-content .inhalt.team > .row.text-center > [class*='col-']:hover::before {
  box-shadow: 0 0.5rem 1.25rem rgba(41, 47, 45, 0.1);
}

.link-content .inhalt.team img {
  width: 10rem !important;
  height: 10rem;
  padding: 0 !important;
  object-fit: cover;
  border-radius: 50%;
  background: var(--it-bg);
}

.link-content .inhalt.team > .row.align-items-center img {
  width: 13rem !important;
  height: 13rem;
}

.link-content .inhalt.team h2 {
  margin: 1rem 0 0.15rem;
  font-size: 1.25rem;
}

.link-content .inhalt.team > .row.align-items-center h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.link-content .inhalt.team h3 {
  margin: 0 0 0.75rem;
  color: var(--it-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.link-content .inhalt.team p {
  color: var(--it-mute);
  font-size: 0.9375rem;
}

/* -- Standort ----------------------------------------------------------------- */
.link-content .inhalt.standort > .row {
  row-gap: 1.5rem;
  align-items: center;
}

.link-content .inhalt.standort img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
}

.link-content .inhalt.standort h2 {
  margin-top: 0;
}

.link-content .inhalt.standort p {
  margin-bottom: 0.25rem;
}

.link-content .inhalt.standort p:has(.btn) {
  margin-top: 1.25rem;
}

/* „Zurück zum Team“ als ruhiger Sekundär-Button */
.link-content .inhalt.standort > .row > :last-child .btn {
  border: 1px solid var(--it-border);
  background: #fff;
  color: var(--it-secondary) !important;
}

.link-content .inhalt.standort > .row > :last-child .btn:hover {
  border-color: var(--it-primary);
  background: #fff;
  color: var(--it-primary) !important;
  box-shadow: none;
}

/* -- Batteriegesetz: Symbolraster -------------------------------------------- */
.link-content .inhalt > .row:has(.img3) {
  max-width: 40rem;
  margin-bottom: 1.5rem;
  row-gap: 1rem;
}

.link-content img.img3 {
  display: block;
  width: 100%;
  max-width: 8rem;
  margin: 0 auto;
  padding: 0.75rem;
  border: 1px solid var(--it-border);
  border-radius: 0.75rem;
  background: #fff;
}

/* -- Downloads ------------------------------------------------------------------- */
.it-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1.25rem;
  margin: 0.5rem 0 0;
}

.it-downloads__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid var(--it-border);
  border-radius: 1rem;
  background: #fff;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.it-downloads__item:hover {
  border-color: var(--it-soft-light);
  box-shadow: 0 0.5rem 1.25rem rgba(41, 47, 45, 0.1);
}

.it-downloads__item img {
  width: auto;
  max-width: 9rem;
  height: 9rem;
  object-fit: contain;
  border-radius: 0;
}

.link-content .it-downloads__item h2 {
  margin: 1rem 0 1rem;
  font-size: 1.0625rem;
}

.it-downloads__item .btn {
  margin-top: auto;
}

/* -- Eingebettete Formulare (Hilfecenter: Anfrage, Reparatur, Retoure) ------- */
.it-embed {
  overflow: hidden;
  max-width: 60rem;
  border: 1px solid var(--it-border);
  border-radius: 1rem;
  background: #fff;
}

.it-embed iframe {
  display: block;
  width: 100%;
  height: min(85vh, 60rem);
  min-height: 36rem;
  border: 0;
}

/* -- FAQ (OPC-Akkordeon) ------------------------------------------------------ */
#content > .opc-Container.st-faq > div > h1 {
  display: none; /* Seitentitel steht schon oben – das OPC-Heading wäre eine zweite, zentrierte H1 */
}

.st-faq h2.title {
  margin: 2.5rem 0 1rem;
  color: var(--it-secondary);
  font-size: 1.25rem;
  font-weight: 700;
}

.st-faq > div > h2.title:first-of-type {
  margin-top: 0;
}

.st-faq .opc-Accordion {
  max-width: var(--it-content-measure);
}

.st-faq .opc-Accordion .card {
  margin-bottom: 0.625rem;
  overflow: hidden;
  border: 1px solid var(--it-border) !important;
  border-radius: 0.75rem !important;
  background: #fff;
}

.st-faq .opc-Accordion .card-header {
  padding: 0;
  border: 0;
  background: transparent;
}

#content > .opc-Container .opc-Accordion .card-header h2 {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.st-faq .opc-Accordion-head {
  position: relative;
  display: block;
  width: 100%;
  padding: 1rem 3rem 1rem 1.25rem;
  color: var(--it-secondary) !important;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none !important;
  white-space: normal;
}

.st-faq .opc-Accordion-head::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: -0.4rem;
  border-right: 2px solid var(--it-primary);
  border-bottom: 2px solid var(--it-primary);
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin-top 0.2s ease;
}

.st-faq .opc-Accordion-head[aria-expanded='true']::after {
  margin-top: -0.1rem;
  transform: rotate(-135deg);
}

.st-faq .opc-Accordion-head:hover,
.st-faq .opc-Accordion-head[aria-expanded='true'] {
  color: var(--it-primary) !important;
}

.st-faq .opc-Accordion .card-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--it-secondary);
}

.st-faq .opc-Accordion .card-body p:last-child {
  margin-bottom: 0;
}

/* -- Blog: Übersicht ---------------------------------------------------------- */
.blog-overview .newsbox {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--it-border);
  border-radius: var(--it-card-radius, 0.75rem);
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-overview .newsbox:hover {
  box-shadow: 0 0.5rem 1.25rem rgba(41, 47, 45, 0.1);
  transform: translateY(-2px);
}

.blog-overview .newsbox-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--it-bg);
}

.blog-overview .newsbox-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-overview .newsbox-body {
  padding: 1rem 1.25rem 0.25rem;
  color: var(--it-mute);
  font-size: 0.8125rem;
}

.blog-overview .newsbox-headline {
  display: block;
  margin: 0.4rem 0 0.5rem;
  color: var(--it-secondary);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.blog-overview .newsbox-headline:hover {
  color: var(--it-primary);
}

.blog-overview .newsbox-body p {
  color: var(--it-secondary);
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-overview .newsbox-footer {
  padding: 0 1.25rem 1.25rem;
}

.blog-overview .newsbox-footer a {
  color: var(--it-primary);
  font-weight: 600;
  text-decoration: none;
}

.blog-overview-preview-item {
  margin-bottom: 1.5rem;
}

.blog-overview .custom-select {
  border-color: var(--it-field-border);
  border-radius: 999px;
}

/* -- Blog: Beitrag ------------------------------------------------------------ */
.blog-details {
  padding-bottom: 3rem;
}

.blog-details .author-meta {
  text-align: left;
  color: var(--it-mute);
  font-size: 0.875rem;
}

.blog-details .author-meta a {
  color: var(--it-primary);
  font-weight: 600;
}

.blog-details-content {
  margin-top: 1.5rem;
}

@media (max-width: 767.98px) {
  .link-content .inhalt.team > .row.align-items-center {
    text-align: center;
  }

  .link-content .inhalt.team > .row.align-items-center img {
    width: 10rem !important;
    height: 10rem;
    margin-bottom: 1rem;
  }

  .it-embed {
    border-radius: 0.75rem;
  }

  .it-embed iframe {
    min-height: 32rem;
  }
}

/* =============================================================================
   Registrierung: Geschaeftskunden-Strecke (Plugin itt_b2b)
   ============================================================================= */
.it-register-b2b {
  max-width: 52rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--it-primary);
  border-radius: .5rem;
  background: #e7f4e5;
  line-height: 1.5;
}

.it-register-b2b p {
  margin: 0;
}

.it-register-b2b .it-register-b2b__contact {
  margin-top: .5rem;
  color: var(--it-mute);
}

.it-register-b2b a {
  font-weight: 600;
  white-space: nowrap;
}

.it-register-b2b-switch {
  margin: -.25rem 0 1.5rem;
  color: var(--it-mute);
}

.it-register-b2b-switch a {
  font-weight: 600;
}

/* Rechnungsadresse: Schalter "Ich bestelle als Unternehmen" */
.it-company-fields {
  margin-bottom: 1rem;
}

.it-company-note {
  margin: -.25rem 0 0;
  color: var(--it-mute);
  font-size: .9rem;
}

/* -------------------------------------------------------------------------- */
/* Barrierefreiheit (WCAG 2.2 AA)                                             */
/* Nur Zustaende, die vorher unsichtbar oder zu kontrastarm waren – die       */
/* normale Darstellung bleibt unveraendert.                                    */
/* -------------------------------------------------------------------------- */

/* Sticky Header: per Tab fokussierte Elemente nicht darunter verstecken
   (2.4.11). --it-header-h setzt custom.js aus der gemessenen Headerhoehe. */
html {
  scroll-padding-top: calc(var(--it-header-h, 9rem) + 0.5rem);
}

/* Such- und Newsletter-Button hatten outline:none und nur einen Farbwechsel
   als Fokus (2.4.7). Ring nur bei Tastaturfokus. */
.it-search__btn:focus-visible,
.it-footer-newsletter__btn:focus-visible {
  outline: 2px solid var(--it-green-deep);
  outline-offset: 2px;
}

/* Auf der hellgruenen USP-Leiste waere der dunkelgruene Ring zu schwach. */
.it-usp-bar a:focus-visible {
  outline-color: var(--it-secondary);
}

/* Produktkachel: Der Fokus liegt jetzt auf dem Titel-Link (custom.js), die
   Kachel zeigt ihn ueber :focus-within wie bisher beim Hover. */
.productbox .productbox-title a:focus-visible {
  outline-offset: 2px;
}

/* Links im Fliesstext nur per Farbe erkennbar (1.4.1) - unterstreichen. */
#content p a:not([class]),
#content li p a:not([class]),
#content .well a:not([class]),
a.resetpw,
a.shipment,
.product-category a,
#footer.it-footer .it-footer-newsletter__consent a,
.newsletter-subscribe .info a,
form .info > a {
  text-decoration: underline;
}

/* ?-Button an Merkmalen: Optik bleibt 1.1rem, die Trefferflaeche wird
   unsichtbar auf 24x24px erweitert (2.5.8). */
.it-pdp-specs__hint::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
}

/* -- Vertrag widerrufen (layout/index.tpl) --------------------------------- */

.it-withdrawal__lead {
  max-width: 62ch;
  margin-bottom: 1.5rem;
  color: var(--it-secondary);
  line-height: 1.55;
}

/* -- Produktreihen-Landingpages (layout/index.tpl, SeriesLanding.php) ------ */

.it-series__hero {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 1;
  margin-bottom: 1.5rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.it-series__lead p {
  max-width: 70ch;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--it-secondary);
}

.it-series__count {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--it-mute);
}

.it-series__more {
  margin: 0.5rem 0 2.5rem;
}

.it-series__text {
  max-width: 75ch;
  padding-top: 2rem;
  border-top: 1px solid var(--it-border);
  line-height: 1.6;
}

.it-series__text h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.it-series__text h2:first-child {
  margin-top: 0;
}

/* Schmaler Desktop: mit Bannern blieb fuer die Kacheln so wenig Platz, dass
   "Notebooks" abgeschnitten wurde. Einleitung und Banner geben etwas ab. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .it-mega-flat {
    grid-template-columns: minmax(12rem, 14rem) minmax(0, 1fr);
    gap: 1.25rem;
  }

  .it-mega-flat--banners {
    grid-template-columns: minmax(12rem, 14rem) minmax(0, 1fr) minmax(0, 19rem);
  }
}

/* -- Seiten mit Unterseiten (layout/index.tpl, z. B. /Service) -------------- */

.it-link-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.it-link-hub__group,
.it-link-hub__tile {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--it-border);
  border-radius: 0.6rem;
  background: #fff;
}

.it-link-hub__title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--it-border);
  font-size: 1rem;
  font-weight: 600;
}

.it-link-hub__title a {
  color: var(--it-green-deep);
  text-decoration: none;
}

.it-link-hub__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.it-link-hub__list li + li {
  margin-top: 0.4rem;
}

.it-link-hub__list a {
  color: var(--it-secondary);
}

.it-link-hub__tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--it-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.it-link-hub__tile:hover,
.it-link-hub__tile:focus-visible {
  border-color: var(--it-primary);
  color: var(--it-secondary);
}

.it-link-hub__tile i {
  font-size: 0.75rem;
  color: var(--it-mute);
}

/* -- Merken / Vergleichen am Produktbild (NOVA: dunkelgraue btn-secondary) --
   Gleiche Optik wie die Galerie-Pfeile: weiss, dezenter Rand, beim Ueberfahren
   gruen. Sichtbar nur bei Artikeln ohne Variationen. */
#result-wrapper .product-gallery .product-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* !important: NOVAs badge-circle setzt Innenabstand und Mindestbreite */
  width: 2.5rem !important;
  min-width: 0 !important;
  height: 2.5rem !important;
  padding: 0 !important;
  border: 1px solid var(--it-border) !important;
  border-radius: 50%;
  background-color: #fff !important;
  color: var(--it-secondary) !important;
  box-shadow: 0 2px 8px rgba(41, 47, 45, 0.12);
}

#result-wrapper .product-gallery .product-actions .btn:hover,
#result-wrapper .product-gallery .product-actions .btn:focus-visible {
  border-color: var(--it-primary) !important;
  background-color: var(--it-primary) !important;
  color: #fff !important;
}

#result-wrapper .product-gallery .product-actions .on-list .wishlist-icon,
#result-wrapper .product-gallery .product-actions .on-list .comparelist-icon {
  color: var(--it-primary);
}

#result-wrapper .product-gallery .product-actions .on-list:hover .wishlist-icon,
#result-wrapper .product-gallery .product-actions .on-list:hover .comparelist-icon {
  color: #fff;
}

/* -- Kopfzeilen-Suche: Live-Vorschau ----------------------------------------- */
/* Absolute Lage am Formular: das Feld bleibt an seinem Platz, die Liste legt
   sich darueber. Hoehe gedeckelt, damit sie bei langen Namen nicht den halben
   Viewport fuellt. */
.it-search__form {
  position: relative;
}

.it-suggest {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  left: 0;
  z-index: 1050;
  max-height: min(60vh, 26rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.25rem;
  border: 1px solid var(--it-border);
  border-radius: 0.6rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(41, 47, 45, 0.14);
}

.it-suggest__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  color: var(--it-secondary);
  line-height: 1.3;
  text-decoration: none;
}

.it-suggest__item:hover,
.it-suggest__item.is-active {
  color: var(--it-secondary);
  background: var(--it-bg);
}

/* Fokusring nach innen, sonst schneidet der Overflow-Container ihn ab */
.it-suggest__item:focus-visible {
  outline: 2px solid var(--it-info);
  outline-offset: -2px;
}

/* Bild: feste Flaeche, damit alle Zeilen gleich hoch bleiben und das
   Nachladen der Bilder nichts verschiebt */
.it-suggest__img {
  display: flex;
  flex: 0 0 3rem;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 0.4rem;
  background: var(--it-bg);
}

.it-suggest__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Einzeilig: Name bekommt den Rest der Breite und kuerzt mit Ellipse */
.it-suggest__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.it-suggest__price {
  flex: 0 0 auto;
  color: var(--it-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .it-suggest__name {
    font-size: 0.875rem;
  }

  .it-suggest__price {
    font-size: 0.75rem;
  }

  .it-suggest__specs {
    gap: 0.25rem;
  }
}

/* -- Chips in der Suchvorschau ---------------------------------------------- */
/* Bild und Textblock nebeneinander, Name und Preis in einer Zeile darueber,
   die Chips darunter. So bleibt der Name einzeilig gekuerzt und die Zeile
   waechst nur, wenn tatsaechlich Merkmale vorhanden sind. */
.it-suggest__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.it-suggest__head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.it-suggest__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* Optik wie die Eckdaten-Kachel im Product-Stream, nur eine Nummer kleiner:
   helle Flaeche, runde Kante, Icon 14 px. */
.it-suggest__spec {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--it-border);
  border-radius: 999px;
  background: var(--it-bg);
  color: var(--it-mute);
  font-size: 0.6875rem;
  line-height: 1.5;
  white-space: nowrap;
}

.it-suggest__spec img {
  display: block;
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0.85;
}

.it-suggest__spec-value {
  color: var(--it-secondary);
  font-weight: 600;
}

/* -- "Letzte Suchen" ueber den Treffern ------------------------------------- */
.it-suggest__recent {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem 0.45rem;
  border-bottom: 1px solid var(--it-border);
  margin-bottom: 0.2rem;
}

.it-suggest__recent-label {
  color: var(--it-mute);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.it-suggest__recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* Als Button, nicht als Link: loest eine neue Suche aus, statt zu navigieren */
.it-suggest__recent-term {
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--it-border);
  border-radius: 999px;
  background: #fff;
  color: var(--it-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
  cursor: pointer;
}

.it-suggest__recent-term:hover,
.it-suggest__recent-term:focus-visible {
  border-color: var(--it-primary);
  background: var(--it-bg);
  outline: none;
}
