/* Styling für den WooCommerce-Konfigurator */
.wc-configurator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
}

.wc-configurator .config-step {
    margin-bottom: 20px;
    cursor: pointer;
    border: 2px solid #ddd;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.wc-configurator .config-step:hover {
    border-color: #007cba; /* WooCommerce Blau */
    background-color: #f9f9f9;
}

.wc-configurator .config-step img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.wc-configurator .config-step.selected {
    border-color: #007cba;
    background-color: #e6f7ff;
}

.wc-configurator button {
    background-color: #007cba;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wc-configurator button:hover {
    background-color: #005a87;
}

/* Styling für die gesamte Konfigurator-Komponente */
.wc-configurator {
    margin: 20px auto;
    padding: 20px;
    max-width: 1200px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Styling für jeden Schritt */
.wc-configurator .config-step {
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 15px;
}

.wc-configurator .config-step h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

/* Produkte in einer Reihe anzeigen */
.wc-configurator .product-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Abstand zwischen Produkten */
    justify-content: flex-start;
}

/* Styling für jedes Produkt */
.wc-configurator .product {
    flex: 0 1 calc(25% - 20px); /* 4 Produkte pro Reihe */
    box-sizing: border-box;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wc-configurator .product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.wc-configurator .product p {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
    color: #333;
}

.wc-configurator .product button {
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wc-configurator .product button:hover {
    background-color: #005177;
}

/* Hover-Effekt */
.wc-configurator .product:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Fehleranzeige für ungültige Produkte */
.wc-configurator .product-error {
    color: red;
    font-style: italic;
    padding: 10px;
    background-color: #ffe5e5;
    border: 1px solid #ffaaaa;
    border-radius: 5px;
}

/* Styling für auswählbare Produkte */
.wc-configurator .product.selectable {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s ease, transform 0.3s ease;
}

.wc-configurator .product.selectable:hover {
    border-color: #0073aa; /* WooCommerce Blau */
    transform: scale(1.05);
}

/* Hervorhebung der ausgewählten Produkte */
.wc-configurator .product.selected {
    border-color: #28a745; /* Grün */
    background-color: #e6ffe6;
    transform: scale(1.05);
}

/* Styling für das Ergebnis */
.wc-configurator .config-result {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 5px;
}

/* Ergebnis-Produkt: größere und breitere Darstellung */
.wc-configurator .result-product {
    text-align: center;
    margin: 30px auto;
    max-width: 600px; /* Maximale Breite des Ergebnisses */
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Schatten */
    background-color: #fff;
    transition: transform 0.3s ease;
}

.wc-configurator .result-product:hover {
    transform: scale(1.05); /* Vergrößerung beim Hover */
}

.wc-configurator .result-product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.wc-configurator .result-product h4 {
    font-size: 24px; /* Größerer Produktname */
    font-weight: bold;
    margin: 10px 0;
}

.wc-configurator .result-product p {
    font-size: 18px; /* Größere Beschreibung */
    color: #0073aa;
}

.wc-configurator .result-product .add-to-cart-button button {
    padding: 12px 20px; /* Größerer Button */
    font-size: 16px;
    background-color: #007cba;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wc-configurator .result-product .add-to-cart-button button:hover {
    background-color: #005a99;
}

/* Optimierung für Tablets und Mobilgeräte */
@media (max-width: 1024px) {
    /* Produkt: 2 Produkte pro Reihe auf Tablets */
    .wc-configurator .product {
        flex: 0 1 calc(50% - 20px); /* 2 Produkte pro Reihe */
    }
}

@media (max-width: 768px) {
    /* Produkt: 1 Produkt pro Reihe auf Mobilgeräten */
    .wc-configurator .product {
        flex: 0 1 calc(100% - 20px); /* 1 Produkt pro Reihe */
    }

    /* Zentrierung der Produkte */
    .wc-configurator .product {
        margin: 0 auto; /* Zentriert die Produkte */
    }

    /* Schriftgröße der Produkte auf Mobilgeräten */
    .wc-configurator .product p {
        font-size: 14px; /* Kleinere Schriftgröße für Produktnamen */
    }

    .wc-configurator .product button {
        font-size: 12px; /* Kleinere Schriftgröße für Button */
        padding: 8px 10px; /* Kompakterer Button */
    }
}

/* Optimierung für sehr kleine Bildschirme (unter 480px) */
@media (max-width: 480px) {
    .wc-configurator .product img {
        max-width: 90%; /* Verkleinert das Bild für kleine Bildschirme */
    }

    .wc-configurator .product p {
        font-size: 13px; /* Noch kleinere Schriftgröße für sehr kleine Bildschirme */
    }

    .wc-configurator .product button {
        font-size: 11px; /* Sehr kompakte Buttons */
        padding: 6px 8px; /* Kompaktere Buttons auf sehr kleinen Bildschirmen */
    }
}

.wc-configurator .product-price-result p {
    font-size: 24px;
    color: #000000!important;
    margin: 5px 0;
}