/* Grundlegende Stil-Einstellungen */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.header {
    background-color: #007BFF;
    color: white;
    padding: 30px 20px;
    text-align: center;
    font-size: 24px;
}

/* Stile für Filterbereich */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.filters label, .filters select, .filters input {
    font-size: 14px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    outline: none;
    min-width: 150px;
    max-width: 100%;
    flex-grow: 1;
}

/* Stile für Produktanzahl und Preisinformationen */
.products-count, .price-info {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
}

/* Layout für das Produktraster */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
}

/* Stil der Produktkarten */
.product-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-info {
    line-height: 1.5;
    flex-grow: 1;
}

/* Stile für Detailschaltflächen */
.details-button {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 8px;
    outline: none;
}

.details-button:hover {
    background-color: #003a75;
}

/* Lightbox und Details-Lightbox Stile */
.lightbox, .details-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img, .details-content {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 5px;
    
}

.details-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    width: 50%;
    max-height: 70%;
    overflow-y: auto;
}

.details-close {
    float: right;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

/* Styling für das umgebende DIV-Element */
#colorFilter {
    height: 150px; /* Maximalhöhe für die Checkbox-Container */
    overflow-y: auto; /* Scrollbar hinzufügen, wenn Inhalt zu groß wird */
    padding: 5px; /* Innenabstand für den Container */
    border: 1px solid #ccc; /* Rahmen um den Container */
    border-radius: 5px; /* Abgerundete Ecken für den Container */
}

/* Gestaltet das Label ohne sichtbaren Rahmen, nur Text */
.color-checkbox + label {
    cursor: pointer;
    padding: 5px 10px;
    margin: 2px;
    background-color: transparent;
    color: #666; /* Leichte graue Textfarbe */
    transition: color 0.3s, background-color 0.3s; /* Füge eine Übergangsanimation hinzu */
    display: block; /* Ändere das Display auf block, um die Elemente untereinander anzuordnen */
}

/* Stil, wenn die Checkbox aktiviert ist - Textfarbe ändern und Hintergrundfarbe hinzufügen */
.color-checkbox:checked + label {
    color: #007BFF; /* Blaue Textfarbe */
    background-color: #f0f0f0; /* Hintergrundfarbe für aktivierten Zustand */
}

/* Hover-Effekt für das Label */
.color-checkbox + label:hover {
    color: #333; /* Dunklere Textfarbe beim Hover */
    background-color: #e0e0e0; /* Hintergrundfarbe beim Hover */
}

/* Ändere den Mauszeiger, wenn über das Label gehovert wird */
.color-checkbox + label:hover {
    cursor: pointer;
}



.filters select:focus, .filters input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
    }

    .filters label, .filters select, .filters input {
        width: 100%;
        margin-bottom: 10px;
    }
}
/* Versteckt die Standard-Checkbox, aber bleibt funktional */
.color-checkbox {
    display: none;
}

/* Gestaltet das Label ohne sichtbaren Rahmen, nur Text */
.color-checkbox + label {
    cursor: pointer;
    padding: 5px 10px;
    margin: 2px;
    background-color: transparent;
    color: #666; /* Leichte graue Textfarbe */
    transition: color 0.3s;
}

/* Stil, wenn die Checkbox aktiviert ist - Textfarbe ändern */
.color-checkbox:checked + label {
    color: #1120f1; /* Blaue Textfarbe */
}

/* Hover-Effekt für das Label */
.color-checkbox + label:hover {
    color: #333; /* Dunklere Textfarbe beim Hover */
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.details-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.details-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
}
.color-option-button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: pointer;
}

.color-option-button:hover {
    background-color: #e0e0e0;
}

/* Grundlegende Stil-Einstellungen */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Erhöht die Sichtbarkeit des Suchfelds */
#colorSearch {
    width: 100%; /* Nutzt die gesamte Breite des Containers */
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Stile für das umgebende DIV-Element der Checkboxen */
#colorFilter {
    height: 200px; /* Erhöht die Höhe für eine bessere Sichtbarkeit */
    overflow-y: scroll; /* Ermöglicht das Scrollen */
    padding: 10px;
    border: 2px solid #007BFF; /* Stärkerer und farbiger Rahmen */
    border-radius: 8px;
}

/* Gestaltet das Label mit besserer Sichtbarkeit und Interaktivität */
.color-checkbox + label {
    cursor: pointer;
    padding: 8px 12px;
    margin: 5px;
    background-color: #f9f9f9;
    color: #666;
    transition: background-color 0.3s, color 0.3s;
    display: block;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.color-checkbox:checked + label {
    color: #0056b3;
    background-color: #e6f0ff;
}

.color-checkbox + label:hover {
    background-color: #e0e0e0;
    color: #333;
}

@media (max-width: 768px) {
    .filters, #colorFilter {
        width: 100%;
    }
}
/* Stile für die Farboption-Buttons */
.color-option-button {
    padding: 8px 12px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: #666;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    outline: none;
}

.color-option-button.active, .color-option-button:hover {
    background-color: #007BFF;
    color: white;
}

/* Grundstil für das Modal */
.modal {
    display: none; /* Versteckt das Modal standardmäßig */
    position: fixed; /* Bleibt fest im Blickfeld */
    z-index: 1001; /* Stellt sicher, dass es über anderen Elementen liegt */
    left: 0;
    top: 0;
    width: 100%; /* Volle Breite */
    height: 100%; /* Volle Höhe */
    overflow: auto; /* Ermöglicht das Scrollen bei Bedarf */
    background-color: rgba(0,0,0,0.4); /* Abdunkelnder Hintergrund */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% vom oberen Rand und zentriert horizontal */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Breite des Modal-Inhalts */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Stile für die Schließen-Schaltfläche */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

button#clearFiltersButton {
    background-color: #0056b3; /* Rote Hintergrundfarbe */
    color: white; /* Weiße Textfarbe */
    padding: 10px 20px; /* Innenabstand */
    border: none; /* Kein Rand */
    border-radius: 5px; /* Abgerundete Ecken */
    cursor: pointer; /* Zeige Handcursor beim Überfahren */
}

/* Hover-Effekt */
button#clearFiltersButton:hover {
    background-color: #d32f2f; /* Dunklere rote Hintergrundfarbe */
}

#detailsTags {
    list-style: none; /* Entfernt die Bulletpoints */
    padding: 0;
}

#detailsTags li {
    display: inline-block;  /* Macht die Tags nebeneinander */
    background: #e9e9e9;  /* Hintergrundfarbe der Tags */
    padding: 5px 10px;  /* Innenabstand der Tags */
    margin-right: 5px;  /* Abstand zwischen den Tags */
    border-radius: 5px;  /* Abgerundete Ecken */
}
