/*
Theme Name: Teppich Online
Theme URI: https://nach-druck.de
Template: Divi
Author: Marcel Grewe
Author URI: https://nach-druck.de
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 4.27.3.1732300002
Updated: 2024-11-22 19:26:42

*/

/* Ermöglicht das Scrollen im mobilen Menü */
.et_mobile_menu {
    max-height: 80vh;
    /* Beschränkt die maximale Höhe des Menüs */
    overflow-y: auto;
    /* Aktiviert vertikales Scrollen */
    -webkit-overflow-scrolling: touch;
    /* Für sanftes Scrollen auf mobilen Geräten */
}

/* Optional: Verhindert Überlagerungen durch Menüelemente */
.et_mobile_menu li {
    word-wrap: break-word;
}

.et_pb_menu--with-logo .et_pb_menu__menu>nav>ul>li>a {
    padding: 20px 0;
}

/* Rahmen und Abstand für Produkte */
.woocommerce ul.products li.product {
    border: 1px solid #ddd;
    /* Rahmenfarbe */
    border-radius: 8px;
    /* Abgerundete Ecken */
    padding: 15px;
    /* Innenabstand */
    margin: 15px;
    /* Außenabstand zwischen den Produkten */
    background-color: #fff;
    /* Hintergrundfarbe */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Leichter Schatten */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Animation */
}

/* Hover-Effekt für Produkte */
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    /* Produkt hebt sich leicht an */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    /* Stärkerer Schatten */
}

/* Titel-Hover-Effekt */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title:hover {
    color: #0073aa;
    /* Farbe beim Hover */
}


/* Stil für den Warenkorb-Button */
.woocommerce ul.products li.product .button {
    display: block;
    background-color: #0073aa;
    /* Hintergrundfarbe */
    color: #fff;
    /* Textfarbe */
    text-align: center;
    padding: 10px 15px;
    /* Innenabstand */
    border-radius: 5px;
    /* Abgerundete Ecken */
    margin: 10px auto 0;
    /* Zentrierung und Abstand */
    transition: background-color 0.3s ease;
    /* Animation */
}

/* Hover-Effekt für den Button */
.woocommerce ul.products li.product .button:hover {
    background-color: #005a8c;
    /* Dunklere Farbe beim Hover */
}

/* Hover-Effekt für Produktbilder */
.woocommerce ul.products li.product img {
    transition: transform 0.3s ease;
    /* Animation */
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
    /* Vergrößern */
}

.product p.wc-gzd-additional-info {
    clear: left;
    font-size: 10px;
    line-height: 12px;
    margin: 0px !important;
}

.custom-teppich-fields {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background: #fff;
    padding: 5px 10px;
    margin-bottom: 15px;
}

h4.konfigUeberschrift {
    color: #179746;
}

.custom-teppich-fields-inner {
    margin-bottom: 10px;
}

.custom-teppich-fields-inner label {
    display: block;
}

.custom-teppich-fields-inner input {
    padding: 7px;
    border: 1px solid #ccc;
    width: 100%;
}

.custom-teppich-fields-minmax {
    font-size: 10px;
}

/* Muster bestellen */

/* Formular-Styling */
.sample-order-section {
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.sample-order-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.sample-order-section form {}

.sample-order-section form div {
    margin-bottom: 15px;
}

.sample-order-section form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.sample-order-section form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.sample-order-section form button {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sample-order-section form button:hover {
    background-color: #005580;
}

/* Fehlermeldungen */
#sample-order-error,
#sample-order-success {
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

#sample-order-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#sample-order-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.z-index-io .et_pb_column:hover {
    position: relative;
    z-index: 50;
}

.z-index-io .et_pb_column .et_pb_module:hover {
    position: relative;
    z-index: 50;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    width: 15% !important;
    margin-right: 2% !important;
    margin-bottom: 2% !important;
}

.woocommerce div.product .woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) {
    clear: none !important;
}

.woocommerce div.product div.images .flex-control-thumbs li:nth-of-type(6n) {
    margin-right: 0px !important;
}

.woocommerce div.product .woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(6n+1) {
    clear: left !important;
}

.musterbestellung {
    cursor: pointer;
}

/*

individuellONLINE
Shop Zeile
Spalten 2
 */

.io-kat-zeile ul.columns-2 li.product {
    width: 48% !important;
    margin-right: 1% !important;
    margin-left: 1% !important;
}

.io-kat-zeile ul.columns-2 .woocommerce-loop-product__title {
    height: 50px !important;
}

.woocommerce a.button.alt,
.woocommerce-page a.button.alt {
    border-color: #139944 !important;
}

/* Remove arrows from number inputs */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.woocommerce a.button:hover,
.woocommerce-page a.button:hover {
    color: #139944 !important;
}

@media (min-width: 981px) {
    .io-shop-zeilen ul.columns-2 li.product {
        width: 22% !important;
        margin-right: 1% !important;
    }
}

@media (min-width: 1042px) {
    .io-shop-zeilen ul.columns-2 li.product {
        margin-right: 1.2% !important;
    }
}

@media (min-width: 1250px) {
    .io-shop-zeilen ul.columns-2 li.product {
        width: 22% !important;
        margin-right: 1.4% !important;
    }
}

/*
individuellONLINE
Shop Zeile
Spalten 3
 */

.io-kat-zeile ul.columns-3 li.product {
    width: 31% !important;
    margin-right: 1.15% !important;
    margin-left: 1.15% !important;
}

.io-kat-zeile ul.columns-3 .woocommerce-loop-product__title {
    height: 50px !important;
}

@media (min-width: 981px) {
    .io-shop-zeilen ul.columns-3 li.product {
        width: 22% !important;
        margin-right: 1% !important;
    }
}

@media (min-width: 1042px) {
    .io-shop-zeilen ul.columns-3 li.product {
        margin-right: 1.2% !important;
    }
}

@media (min-width: 1250px) {
    .io-shop-zeilen ul.columns-3 li.product {
        width: 22% !important;
        margin-right: 1.4% !important;
    }
}

/*
individuellONLINE
Shop Zeile
Spalten 4
 */

.io-kat-zeile ul.columns-4 li.product {
    width: 31% !important;
    margin-right: 1.15% !important;
    margin-left: 1.15% !important;
}

.io-kat-zeile ul.columns-4 .woocommerce-loop-product__title {
    height: 50px !important;
}

@media (min-width: 981px) {
    .io-shop-zeilen ul.columns-4 li.product {
        width: 22% !important;
        margin-right: 1% !important;
    }
}

@media (min-width: 1042px) {
    .io-shop-zeilen ul.columns-4 li.product {
        margin-right: 1.2% !important;
    }
}

@media (min-width: 1250px) {
    .io-shop-zeilen ul.columns-4 li.product {
        width: 22% !important;
        margin-right: 1.4% !important;
    }
}

/* Checkout Optimierung */

/* Container für Bestellübersicht und Zahlung */
/* Wir nutzen :has(), um zu prüfen, ob der Container relevanten Inhalt hat (Tabelle ODER Zahlung) */
#order_review:has(.woocommerce-checkout-review-order-table),
#order_review:has(#payment),
.woocommerce-checkout-review-order:has(.woocommerce-checkout-review-order-table),
.woocommerce-checkout-review-order:has(#payment) {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

/* Fallback: Leere Container ausblenden (wenn weder Tabelle noch Zahlung enthalten ist) */
#order_review:not(:has(.woocommerce-checkout-review-order-table)):not(:has(#payment)) {
    display: none;
}

/* Tabelle "Deine Bestellung" */
.woocommerce-checkout-review-order-table {
    border: none !important;
    margin-bottom: 30px !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 15px 10px !important;
}

.woocommerce-checkout-review-order-table thead th {
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    font-size: 14px;
    border-bottom: 2px solid #333 !important;
}

.woocommerce-checkout-review-order-table tfoot th {
    color: #555;
    font-weight: 600;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    border-top: 2px solid #333 !important;
    font-size: 1.2em;
    font-weight: bold;
    color: #179746;
}

/* Zahlungsarten Box */
#payment {
    background-color: #f9f9f9 !important;
    border-radius: 6px !important;
    padding: 20px !important;
}

#payment ul.payment_methods {
    border-bottom: 1px solid #e0e0e0 !important;
    padding-bottom: 20px !important;
}

#payment ul.payment_methods li {
    margin-bottom: 10px !important;
}

#payment ul.payment_methods li label {
    font-weight: 600;
    color: #333;
    padding-left: 10px;
    cursor: pointer;
}

#payment div.payment_box {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    padding: 15px !important;
    margin-top: 15px !important;
    font-size: 14px;
    color: #666;
    position: relative;
}

/* Pfeil für Payment Box wiederherstellen */
#payment div.payment_box::before {
    content: "";
    display: block;
    border: 10px solid transparent;
    border-bottom-color: #ddd !important;
    position: absolute;
    top: -20px;
    left: 30px;
}

#payment div.payment_box::after {
    content: "";
    display: block;
    border: 10px solid transparent;
    border-bottom-color: #fff !important;
    position: absolute;
    top: -19px;
    left: 30px;
}


/* Platz order button */
#place_order {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: #139944 !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

#place_order:hover {
    background-color: #10803a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Widerrufsbestimmung / AGB Checkbox - Layout verbessern */
.woocommerce-terms-and-conditions-wrapper {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.woocommerce-privacy-policy-text {
    margin-bottom: 15px;
    font-size: 13px;
    color: #777;
    font-style: italic;
}