/* Basis-Styling */

/* Container für Suche */
.pb-search-container {
    margin-bottom: 15px;
}
.pb-search-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #ec4205;
}
.pb-search-input {
    width: 200px;
    padding: 5px;
}

/* Filtercontainer: max. 2 Gruppen pro Zeile */
.pb-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}
.pb-filter-group {
    width: 48%;
}
.pb-label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #ec4205;
}

/* Farb-Buttons */
.pb-farbe-button {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 5px;
    border: 1px solid #ccc;
    text-decoration: none;
    vertical-align: middle;
    transition: border-radius 0.3s, border 0.3s;
}
.pb-farbe-button.active {
    border-radius: 5px;
    border: 1px solid #ec4205;
}

/* Lamellenbreiten-, Transparenz- und Stoffart-Buttons */
.pb-lamellen-button,
.pb-transparenz-button,
.pb-stoffart-button {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ccc;
    margin-right: 5px;
    text-decoration: none;
    color: #000;
    background: #f9f9f9;
    transition: background-color 0.3s, border 0.3s, border-radius 0.3s;
    border-radius: 5px;
}
.pb-lamellen-button:hover,
.pb-lamellen-button.active,
.pb-transparenz-button:hover,
.pb-transparenz-button.active,
.pb-stoffart-button:hover,
.pb-stoffart-button.active {
    background-color: #ec4205;
    color: #fff;
    border: 1px solid #ec4205;
}

/* Produktart-Buttons */
.pb-produktart-button {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ccc;
    margin-right: 5px;
    text-decoration: none;
    color: #000;
    background: #f9f9f9;
    transition: background-color 0.3s, border 0.3s, border-radius 0.3s;
    border-radius: 5px;
}
.pb-produktart-button:hover,
.pb-produktart-button.active {
    background-color: #ec4205;
    color: #fff;
    border: 1px solid #ec4205;
}

/* Preiskategorie-Buttons */
.pb-preiskategorie-button {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ccc;
    margin-right: 5px;
    text-decoration: none;
    color: #000;
    background: #f9f9f9;
    transition: background-color 0.3s, border 0.3s, border-radius 0.3s;
    border-radius: 5px;
}
.pb-preiskategorie-button:hover,
.pb-preiskategorie-button.active {
    background-color: #ec4205;
    color: #fff;
    border: 1px solid #ec4205;
}

/* Produkt-Grid */
.pb-produkt-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pb-produkt-item {
    width: 150px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 5px;
}
.pb-produkt-titel {
    font-size: 12px;
    background: #eee;
    margin-bottom: 5px;
    padding: 2px;
    height: 2.4em;
    line-height: 1.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}
.pb-produkt-thumbnail img {
    max-width: 100%;
    height: auto;
}

/* Warenkorb-Button */
.pb-warenkorb-button {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    font-size: 12px;
    margin-top: 5px;
}
.pb-warenkorb-button i {
    margin-right: 5px;
}

/* Responsive Anpassungen */

/* Tablets und kleinere Bildschirme */
@media (max-width: 768px) {
    .pb-search-input {
        width: 100%;
        box-sizing: border-box;
    }
    .pb-filter-container {
        flex-direction: column;
    }
    .pb-filter-group {
        width: 100%;
        margin-bottom: 10px;
    }
    .pb-produkt-grid {
        justify-content: center;
    }
    .pb-produkt-item {
        width: 45%;
        margin-bottom: 10px;
    }
}

/* Mobile Geräte */
@media (max-width: 480px) {
    .pb-search-input {
        width: 100%;
    }
    .pb-produkt-item {
        width: 100%;
        margin-bottom: 15px;
    }
    .pb-lamellen-button,
    .pb-transparenz-button,
    .pb-stoffart-button,
    .pb-farbe-button,
    .pb-produktart-button,
    .pb-preiskategorie-button {
        margin-bottom: 5px;
    }
}
