.filter-and-products-wrapper {
    position: relative;
    padding-bottom: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.range-slider output[type="range"] {
    color: #ffffff !important;
}

.filter-header {
    position: sticky !important;
    top: 0;
    background-color: #f9f9f9;
	max-width: 1200px;
    z-index: 1000;
    display: flex;
    box-sizing: border-box;
    border-radius: 0 0 7px 7px;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
}

.filter-header button {
    flex: 1;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #cac8c8;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    outline: none;
}

.sort-button-wrapper {
    position: relative;
	width: 100%;
}

/* Sortier-Container */
.sort-container {
    position: relative;
    display: flex;
    border-radius: 0 0 0 7px;
    box-sizing: border-box;
}

/* Styling für das Sortier‑Dropdown */
.sort-dropdown {
    position: absolute;
    top: 60px;
    left: 10px;
    background-color: #fff;
    border: 1px solid #cac8c8;
    border-radius: 4px;
    padding: 5px;
    z-index: 1100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sort-dropdown select {
    padding: 5px;
    font-size: 14px;
    width: 100%;
}

/* Container für Filter-Button und Sortier-Button */
.filter-and-products-wrapper .filter-header {
	border: none;
	box-shadow: none;
	background-color: transparent !important;
	margin: 0 0 10px 0;
	display: flex;
	justify-content: space-between;
	gap: 10px; /* Abstand zwischen den beiden Buttons */
	padding: 0;
}

/* Beide Button-Wrapper sollen gleich breit sein */
.sort-container,
.filter-and-products-wrapper .filter-header .accordion {
	width: calc(50% - 5px); /* 10px Gesamtabstand = 5px pro Seite abziehen */
}

/* Sortierbutton */
.filter-header .sort-button {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 0;
	font-size: 16px;
	font-family: Open Sans, Arial, sans-serif;
	font-weight: 600;
	border: none;
	border-radius: 11px 0 0 11px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

/* Filterbutton */
.filter-and-products-wrapper .filter-header .accordion {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 0;
	font-size: 16px;
	font-family: Open Sans, Arial, sans-serif;
	font-weight: 600;
	border: none;
	border-radius: 0 11px 11px 0;
}

/*Icon-Container im Filter-header*/
.filter-header .sort-button .sort-button-tsicon,
.filter-header .accordion .accordion-tsicon {
    display: flex;
    margin: 0 5px 0 0;
    padding: 0;
}

/* Dropdown-Container */
.sort-menu {
  	position: absolute;
  	top: 110%;
  	right: 0;
  	background-color: white;
  	border: 1px solid #ccc;
  	z-index: 10;
  	display: none;
  	flex-direction: column;
  	width: 100%;
  	min-width: 180px;
  	border-radius: 12px 0 0 12px;
  	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Erste Option runde obere Ecken */
.sort-menu .sort-option:first-child {
    border-top-left-radius: 11px;
    border-top-right-radius: 0px;
}

/* Letzte Option runde untere Ecken */
.sort-menu .sort-option:last-child {
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 0px;
}

/* Sortieroptionen */
.filter-header .sort-menu .sort-option {
    padding: 10px;
    font-size: 14px;
    font-family: Open Sans, Arial, sans-serif;
    text-align: center;
    color: #000;
    background: #fff;
    box-sizing: border-box;
    border-bottom: none !important;
    cursor: pointer;
    width: 100%;
    min-width: 220px;
    transition: background-color 0.3s ease;
}

/* Beim Hover */
.filter-header .sort-menu .sort-option:hover {
    background-color: #f1f1f1;
}

/* Hintergrundfarbe der aktiven Option */
.filter-header .sort-menu .sort-option.active {
    background-color: #e2e2e2;
    color: #000;
    font-weight: 500;
}

.filter-container {
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    box-sizing: border-box;
    justify-content: flex-start;
}

.filter-header button:hover,
.sort-button:hover,
.filter-and-products-wrapper .filter-header .accordion:hover {
    filter: brightness(0.82);
    color: #000;
}

.filter-and-products-wrapper .accordion-content {
    padding: 20px 13px 13px 13px;
    display: none;
    border: solid 1px #eeeeee;
	margin-top: 15px;
    overflow: visible !important;
    position: relative; /* Für das absolute Positionieren des Kreuzes */
    z-index: 999; /* Sicherstellen, dass es über dem Inhalt liegt */
	border-radius: 12px;
}

.filter-and-products-wrapper .accordion-content.show {
    display: block;
}

.deal-filter-container {
    margin-left: 5px;
    margin-bottom: 25px;
}

.filter-and-products-wrapper .deal-filter-container label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 5px 5px 1px;
    margin: 0;
    transition: background-color 0.3s ease;
    font-weight: 400;
    font-family: Open Sans, Arial, sans-serif;
    box-sizing: border-box;
    height: 23px;
    user-select: none;
}

.filter-checkbox:focus,
.deal-filter-checkbox:focus {
    outline: none !important;
}

.deal-filter-checkbox {
    margin: 0 8px 0 0 !important;
    width: 16px;
    height: 16px;
    padding: 8px !important;
    appearance: none;
    border: 1px solid #aaa;
    border-radius: 2px;
    position: relative;
    box-sizing: border-box;
}

.deal-filter-container label:hover .deal-filter-checkbox {
    cursor: pointer;
}

.slider-container {
    display: flex;
    margin-left: 5px;
    flex-direction: column;
    width: 230px;
    gap: 10px;
}

.range-slider {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 3px;
    overflow: visible;
}

.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    padding: 2px 0 0 0;
    border: transparent;
    height: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    cursor: pointer;
    border-radius: 50%;
}

.range-label {
    /* Slider-Zahlenwertbereiche Min und Max */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 1px 5px;
    height: 22px;
    border: 1px solid #afafaf;
    border-radius: 5px;
    background-color: #ffffff;
    padding: 1px 5px;
	color: #20282f;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    margin-top: -5px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
}

.range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    margin-top: -5px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
}

.range-slider input[type="range"]::-ms-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    margin-top: -5px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
}

.range-slider input[type="range"]:focus::-webkit-slider-thumb {
    outline: none;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
}

.range-slider input[type="range"]:focus::-moz-range-thumb {
    outline: none;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
}

.range-slider input[type="range"]:focus::-ms-thumb {
    outline: none;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
}

.listen-container,
.slider-container-group {
    display: flex;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
    width: 100%;
}

.filter-and-products-wrapper .listen-liste {
    display: block;
    min-width: 120px;
    min-height: 55px;
    max-height: 160px;
}

/* Filter-Titel */
.filter-and-products-wrapper .listen-liste strong {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-family: Open Sans, Arial, sans-serif;
    border-radius: 5px 5px 0 0;
    padding: 2px 11px 1px 5px;
    margin: 0 0 4px 0;
    height: 24px;
}

/* Auflistung/Labels */
.listen-liste ul {
    display: block;
    margin: 0 !important;
    padding: 3px 13px 3px 1px !important;
    list-style: none !important;
    padding-inline-start: 0 !important;
    margin-inline-start: 0 !important;
    min-height: 35px;
    max-height: 130px;
    min-width: 110px;
    max-width: 240px;
    overflow-y: auto;
    scrollbar-gutter: stable;
    overflow-x: hidden;
    border-radius: 4px;
    border: none;
    scrollbar-width: thin;
    scrollbar-color: darkgray lightgray;
    box-sizing: border-box !important;
}

.listen-liste ul li {
    margin: 0 !important;
    padding: 0 !important;
    font-family: Open Sans, Arial, sans-serif;
}

.listen-liste ul::-webkit-scrollbar {
    width: 10px;
}

.listen-liste ul::-webkit-scrollbar-thumb {
    background-color: darkgray;
    border-radius: 5px;
}

/* aktiver Filter (Checkbox checked) wird über JS gesteuert */
.filter-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    margin: 0;
    transition: background-color 0.3s ease;
    font-size: 13px;
    box-sizing: border-box;
    height: 23px;
    user-select: none;
}

/* Gemeinsames Styling: Produkt-Labels */
.produkt-label-tsboxes {
    --r: 0.8em;
    position: absolute;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    left: -0.5px;
    padding: 2px 9px 2px 6px;
    line-height: 1.6em;
    color: #fff;
    width: auto;
    height: 22px;
    font-family: Open Sans, Arial, sans-serif;
    font-size: ' . esc_attr( $tslabels_vergleich_boxen_labels_fontsize ) . 'px;
    font-weight: 400;
    text-align: center;
    border-radius: 0 10px 10px 0;
    z-index: 999;
}

/* Fall 1: Kein Dealband, vordefinierte Labels vorhanden */
/* Erstes vordefiniertes Label (label22-first) */
.produkt-box:not(:has(.produkt-deal-ribbon)) .label22-first {
    top: 10px;
}

/* Zweites vordefiniertes Label (label22-second) */
.produkt-box:not(:has(.produkt-deal-ribbon)) .label22-second {
    top: 36px;
}

/* Fall 1a: Kein Dealband, KEINE vordefinierten Labels – nur Custom-Label (label33) */
.produkt-box:not(:has(.produkt-deal-ribbon)):not(:has(.label22-first)):not(:has(.label22-second)) .label33 {
    top: 10px;
}

/* Fall 1b: Kein Dealband, aber es gibt bereits ein vordefiniertes Label (z. B. label22-first) UND ein Custom-Label (label33) -> Custom-Label unterhalb des vordefinierten Labels */
.produkt-box:not(:has(.produkt-deal-ribbon)):has(.label22-first) .label33 {
    top: 36px;
}

/* Fall 2: Dealband vorhanden, vordefinierte Labels vorhanden */
/* Erstes vordefiniertes Label (label22-first) */
.produkt-box:has(.produkt-deal-ribbon) .label22-first {
    top: 36px;
}

/* Zweites vordefiniertes Label (label22-second) */
.produkt-box:has(.produkt-deal-ribbon) .label22-second {
    top: 62px;
}

/* Fall 2a: Dealband vorhanden, KEINE vordefinierten Labels – nur Custom-Label (label33) */
.produkt-box:has(.produkt-deal-ribbon):not(:has(.label22-first)):not(:has(.label22-second)) .label33 {
    top: 36px;
}

/* Fall 2b: Dealband vorhanden, EIN vordefiniertes Label (label22-first) UND ein Custom-Label (label33)
   -> Custom-Label soll unter dem vordefinierten Label stehen */
.produkt-box:has(.produkt-deal-ribbon):has(.label22-first):not(:has(.label22-second)) .label33 {
    top: 62px;
}

.filter-checkbox {
    margin: 0 8px 0 0 !important;
    width: 16px;
    height: 16px;
    padding: 8px !important;
    appearance: none;
    border: 1px solid #aaa;
    border-radius: 2px;
    position: relative;
    box-sizing: border-box;
}

.filter-label:hover .filter-checkbox {
    cursor: pointer;
}

.filter-checkbox:checked::after,
.deal-filter-checkbox:checked::after {
    content: "";
    position: absolute;
    top: 42%;
    left: 50%;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg); /* Zentriert das Häkchen exakt */
}

.filter-text {
    font-weight: 400;
}

.tsfilter-count {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 400;
    background-color: #edecec;
    border-radius: 22px;
    width: 14px;
    height: 15px;
    padding: 1px 4px !important;
    margin: 0 0 0 5px;
}

.slider-label {
    margin-right: 10px;
}

.filter-and-products-wrapper .slider-label strong {
    font-weight: 600;
    font-family: Open Sans, Arial, sans-serif;
}

.suche-container {
    width: 100%;
    margin: 40px 0 30px 0;
}

#produktSuche::placeholder {
    font-size: 15px;
}

#produktSuche {
    width: 100%;
    padding: 8px;
    margin: 0 0 15px 0;
    font-size: 16px;
	line-height: 1.5em;
    border: 1px solid #d6d6d6;
    box-sizing: border-box;
}

.filter-and-products-wrapper .button-group {
    display: flex;
    gap: 10px;
    margin: 15px 0 0 0;
    font-family: Open Sans, Arial, sans-serif;
}

/* Button-Group: Schließen-/Zurücksetzen-Button */
.reset-filter-button,
.filter-and-products-wrapper .button-group .close-filter-button {
    display: flex;
    align-items: center;
    padding: 5px 11px;
    font-size: 14px;
	line-height: 1.5em;
	min-height: 0 !important;
    cursor: pointer;
    border: none;
    border-radius: 6px;
	text-transform: none;
}

.reset-filter-button {
    /* Filter zurücksetzen */
    background-color: #807e7e;
    color: #ffffff;
}

.produkt-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
    gap: 2px 10px;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

.produkt-box {
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    position: relative;
    margin-top: 10px;
}

.produkt-box:hover {
    box-shadow: rgba(0, 0, 0, 0.18) 0px 0px 9px;

	border: none;
}

/* Gemeinsame Zeile für Farb‑Score + Sterne */
.produkt-box .produkt-rating-row {
	display: flex;
	align-items: flex-start;
	gap: 14px;              /* Abstand zwischen Farbzahl und Sternegruppe */
	flex-wrap: nowrap;      /* kein Umbruch nötig, da Gruppe jetzt innerhalb */
	margin: 10px 0 15px 0;
}

/* Farbige Bewertung – links */
.produkt-box .produkt-bewertung-zahl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 0 !important;
	padding: 5px 1px;
	border-radius: 9px 9px 9px 2px;
	font-size: 17px;
	font-weight: 600;
	font-family: Open Sans, Arial, sans-serif;
	line-height: 1.35em;
	color: #000;
}

/* Gruppe: Sterne + Zahl /5 – rechts */
.produkt-box .produkt-bewertung-gruppe {
	display: flex;
	flex-direction: column;
	line-height: 1.6;
}

/* Sterne (erste Zeile in der Gruppe) */
.produkt-box .produkt-bewertung-sterne {
	color: #000;
	font-size: 12px;
	line-height: 1;
	padding: 2px 0 0 0;
	margin: 0;
}

/* Wert: z. B. 4,4 / 5 (zweite Zeile in der Gruppe) */
.produkt-box .produkt-bewertung-wert {
	text-align: left;
	font-size: 13px;
	color: #000;
	margin: 5px 0 0 0; /* feinjustierter Abstand zur oberen Zeile */
}

/* Das alte absolute Element NICHT mehr nutzen */
.produkt-box .produkt-farb-bewertung-produktboxvergleich {
	display: none;
}

.filter-header .sort-button svg {
    width: 25px;
    height: 25px;
    margin: 0;
    padding: 0;
    visibility: visible !important;
    opacity: 1;
}

.filter-and-products-wrapper .filter-header .accordion svg {
    width: 20px;
    height: 20px;
    margin: 0 3px 0 0;
    padding: 0;
    visibility: visible !important;
    opacity: 1;
}

.produkt-box svg {
    margin: 0 0 0 4px;
    visibility: visible !important;
    opacity: 1;
}

.produkt-deal-ribbon svg {
    width: 15px;
    height: 15px;
    margin: 1px 5px 0 0;
    padding: 0;
    visibility: visible !important;
    opacity: 1;
}

.filter-and-products-wrapper .produkt-box .produkt-ranking-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 5px;
    width: auto;
    height: 23px;
    right: 5px;
    padding: 2px 9px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 400;
    z-index: 999;
}

.produkt-box .produkt-farb-bewertung-produktboxvergleich {
    position: absolute;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    top: 136px;
    left: 10px;
    margin-left: 7px;
    width: 38px;
    height: 26px;
    box-sizing: border-box;
    padding: 4px 6px !important;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    font-family: Open Sans, Arial, sans-serif;
    z-index: 999;
}
		
.boxyfy-rating-green {
	background-color: rgba(12,179,3,0.61);
}

.boxyfy-rating-yellow {
	background-color: rgba(242, 242, 7, 0.68);
}

.boxyfy-rating-red {
	background-color: rgba(244, 122, 122, 0.41);
}

.produktvergleich-bild {
    position: relative;
    margin: 5px;
    z-index: 1;
}

.produktvergleich-bild img {
    width: 150px !important;
    height: 150px !important;
    object-fit: cover;
	position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: -1;
    opacity: 1;
}

/* Hover-Effekt */
.produktvergleich-bild img:hover {
    transform: scale(1.1); /* Leichtes Zoomen */
    opacity: 1;
}

/* Entferne mögliche Overlays */
.produktvergleich-bild::after {
    content: none; /* Deaktiviert Pseudo-Elemente */
    background: none !important; /* Entfernt mögliche Hintergründe */
}

.filter-and-products-wrapper .produkt-box .produkt-details {
    margin: 10px 0 0 0 !important;
}
.filter-and-products-wrapper .produkt-box .produkt-titel {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Max. 2 Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word; /* Erlaubt Zeilenumbruch mitten im Wort */
    hyphens: auto; /* Trennt Wörter automatisch (Silben), falls vom Browser unterstützt */
    font-family: Open Sans, Arial, sans-serif;
    line-height: 1.35em;
    text-align: left;
    margin: 10px 0 0 0;
    min-height: calc(1.35em * 2); /* Mindesthöhe für 2 Zeilen */
    color: #000 !important;
}


.produkt-box .price-container {
    display: flex;
    align-items: baseline;
    font-weight: 400;
}

.filter-and-products-wrapper .produkt-titel a {
    font-weight: 500;
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    color: #000 !important;
}

.filter-and-products-wrapper .produkt-titel a:hover {
    color: #0173ab;
}

/* Container: Angebote,ab,..Preis */
.filter-and-products-wrapper .produkt-box .produkt-preis {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    height: 58px;
    box-sizing: border-box;
    padding: 5px 5px 5px 10px;
    color: #0b6a39;
    background-color: rgba(11, 106, 57, 0.05);
    border-radius: 5px;
    font-size: 14px;
	line-height: 1.6em;
    text-align: left;
    margin: 0;
    gap: 4px; /* Abstand zwischen Angebotsanzahl und Preis */
}

/* Angebot(e)-Ausgabe */
.filter-and-products-wrapper .produkt-box .tsboxes-compare-offercount {
    font-size: 11px;
    font-weight: 500;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-align: left;
    padding: 0;
}

/* Sterne-Bewertung */
.boxyfy-rating-container {
	display: flex;
	margin: 10px 0;  
	align-items: center; 
	gap: 8px;
}
		
.boxyfy-rating-stars {
	color: #000; 
	font-size: 14px;
}
		
.boxyfy-rating-star-bewertung {
	font-size: 14px; 
	color: #000;
}

/* Preis-Ausgabe */
.filter-and-products-wrapper .produkt-box strong {
    display: flex !important;
    align-items: center;
    padding: 0 0 0 1px;
    margin: -3.5px 2px 0 0;
    font-size: 18px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 600;
}

.filter-and-products-wrapper .produkt-box ul {
    margin: 15px 0 0 0 !important;
    padding-left: 0;
    color: #000;
}

.filter-and-products-wrapper .produkt-box .box-pro-item,
.filter-and-products-wrapper .produkt-box .box-kontra-item {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0 0 8px 0;
    font-family: Open Sans, Arial, sans-serif;
}

.filter-and-products-wrapper .box-pro-item img {
    width: 12px;
    height: 12px;
    margin: 0 0 0 2px;
    visibility: visible !important;
    opacity: 1;
}

.filter-and-products-wrapper .box-kontra-item img {
    width: 12px;
    height: 12px;
    margin: 0 0 0 2px;
    visibility: visible !important;
    opacity: 1;
}

.box-pro-item span,
.box-kontra-item span {
    display: flex;
    line-height: 1.4em;
    text-align: left;
}

.filter-and-products-wrapper div .range-output {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    line-height: 1.4em;
    margin: 0 0 13px 0;
    padding: 0;
}

.filter-and-products-wrapper .produkt-box .produkt-deal-ribbon {
    --r: 0.8em;
    position: absolute;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    left: -0.5px;
    top: 10px;
    padding: 2px 9px 2px 6px;
    line-height: 1.6em;
    background-color: #d40606;
    color: #fff;
    width: auto;
    height: 22px;
    font-family: Open Sans, Arial, sans-serif;
    font-weight: 400;
    text-align: center;
    border-radius: 0 10px 10px 0;
    z-index: 999;
}

.close-filter-button,
.filter-and-products-wrapper .close-cross {
    display: none;
}

.tspagination-container {
    margin: 20px 0 0 0;
    text-align: center;
    font-family: Open Sans, Arial, sans-serif;
}

@media (max-width: 855px) {
    .produkt-box {
        max-width: 400px;
    }
}

@media (max-width: 585px) and (min-width: 385px) {
    .filter-and-products-wrapper .listen-liste strong {
        font-size: 15px;
        margin: 0 0 7px 0;
    }

    .filter-and-products-wrapper .slider-label strong {
        font-size: 15px;
    }

    .filter-label {
        margin: 0 0 6px 0;
    }

    .filter-label:hover {
        background-color: none !important;
    }

    .filter-text,
    .deal-filter-container label {
        font-size: 15px;
    }

    .filter-checkbox,
    .deal-filter-checkbox {
        width: 22px !important;
        height: 22px !important;
    }

    .produkt-deal-ribbon svg {
        width: 13px !important;
        height: 13px !important;
    }
	
	.produkt-box {
		padding: 12px 7px !important;
	}

    /* Fall 1: Kein Dealband, vordefinierte Labels vorhanden */
    /* Erstes vordefiniertes Label (label22-first) */
    .produkt-box:not(:has(.produkt-deal-ribbon)) .label22-first {
        top: 10px;
    }

    /* Zweites vordefiniertes Label (label22-second) */
    .produkt-box:not(:has(.produkt-deal-ribbon)) .label22-second {
        top: 32px;
    }

    /* Fall 1a: Kein Dealband, KEINE vordefinierten Labels – nur Custom-Label (label33) */
    .produkt-box:not(:has(.produkt-deal-ribbon)):not(:has(.label22-first)):not(:has(.label22-second)) .label33 {
        top: 10px;
    }

    /* Fall 1b: Kein Dealband, aber es gibt bereits ein vordefiniertes Label (z. B. label22-first) UND ein Custom-Label (label33) -> Custom-Label unterhalb des vordefinierten Labels */
    .produkt-box:not(:has(.produkt-deal-ribbon)):has(.label22-first) .label33 {
        top: 32px;
    }

    /* Fall 2: Dealband vorhanden, vordefinierte Labels vorhanden */
    /* Erstes vordefiniertes Label (label22-first) */
    .produkt-box:has(.produkt-deal-ribbon) .label22-first {
        top: 32px;
    }

    /* Zweites vordefiniertes Label (label22-second) */
    .produkt-box:has(.produkt-deal-ribbon) .label22-second {
        top: 54px;
    }

    /* Fall 2a: Dealband vorhanden, KEINE vordefinierten Labels – nur Custom-Label (label33) */
    .produkt-box:has(.produkt-deal-ribbon):not(:has(.label22-first)):not(:has(.label22-second)) .label33 {
        top: 32px;
    }

    /* Fall 2b: Dealband vorhanden, EIN vordefiniertes Label (label22-first) UND ein Custom-Label (label33)
       -> Custom-Label soll unter dem vordefinierten Label stehen */
    .produkt-box:has(.produkt-deal-ribbon):has(.label22-first):not(:has(.label22-second)) .label33 {
        top: 54px;
    }

    .filter-checkbox:checked::after,
    .deal-filter-checkbox:checked::after {
        width: 5px;
        height: 11px;
    }

    .produkt-container {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .produktvergleich-bild img {
        width: 120px;
        height: 120px;
    }

    .filter-and-products-wrapper .produkt-box .produkt-farb-bewertung-produktboxvergleich {
        font-size: 13px;
        width: 34px;
        top: 104px !important;
        left: 5px !important;
        padding: 4px;
    }

    .filter-and-products-wrapper .produkt-box .produkt-titel {
        margin: 0;
    }

    .filter-and-products-wrapper .produkt-box .produkt-details {
        margin: 0;
    }

    /* Preis-container */
    .produkt-box .produkt-preis {
        font-size: 14px;
        display: block;
        padding: 2px 3px;
        margin: 0;
    }

    /* Preis-Ausgabe */
    .filter-and-products-wrapper .produkt-box strong {
        font-size: 18px;
    }

    .anbieter-mindestpreis-tsproduktvergleich {
        display: block;
        margin: -5px 0 0 0;
    }

    .produkt-box svg {
        width: 18px;
        height: 18px;
    }

    .box-pro-item span,
    .box-kontra-item span {
        font-size: 12px;
    }

    .box-kontra-item img,
    .box-pro-item img {
        padding: 0;
    }

    .filter-and-products-wrapper .produkt-box .produkt-deal-ribbon,
    .filter-and-products-wrapper .produkt-box .produkt-label-tsboxes {
        font-size: 12px;
        padding: 2px 10px 2px 6px;
        height: 19px;
    }

    .tsprodukt-singleseite-produktbutton {
        font-size: 13px;
    }
}

@media (max-width: 824px) {
    .slider-container {
        flex-grow: 1;
    }
}

@media (max-width: 750px) {
    .listen-liste {
        flex-grow: 1 !important;
        min-width: 200px;
        box-sizing: border-box;
    }

    .listen-liste ul {
        max-width: 100%;
        box-sizing: border-box;
    }

    .listen-liste strong {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (min-width: 471px) {
    .close-filter-button {
        display: inline-block;
    }
}

@media (max-width: 520px) {
    .filter-header .sort-button .sort-tslabel,
    .filter-header .accordion .accordion-tslabel {
        font-size: 13.5px;
    }

    .filter-and-products-wrapper .filter-container {
        margin-top: 20px;
    }

    .filter-and-products-wrapper .close-cross {
        display: block; /* Zeige das Kreuz */
        position: absolute;
        top: 35px;
        right: 14px;
        padding: 4px 12px;
        background: #f4f4f4;
        border: none;
        font-size: 19px;
        border-radius: 999px;
        cursor: pointer;
        color: #474747;
        z-index: 1001; /* Stelle sicher, dass das Kreuz oben liegt */
    }

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        cursor: pointer;
        border-radius: 50%;
    }

    .range-slider input[type="range"]::-webkit-slider-thumb {
        pointer-events: all;
        width: 23px;
        height: 23px;
        border-radius: 50%;
        cursor: pointer;
        position: relative;
        margin-top: -5px;
        box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
    }

    .range-slider input[type="range"]::-moz-range-thumb {
        pointer-events: all;
        width: 23px;
        height: 23px;
        border-radius: 50%;
        cursor: pointer;
        position: relative;
        margin-top: -5px;
        box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
    }

    .range-slider input[type="range"]::-ms-thumb {
        pointer-events: all;
        width: 23px;
        height: 23px;
        border-radius: 50%;
        cursor: pointer;
        position: relative;
        margin-top: -5px;
        box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
    }
}