/*
Theme Name: Storefront Michel Minimal
Theme URI: https://www.der-deutsche-michel.de/
Description: Schlankes blau-weißes Child Theme für Storefront / WooCommerce. Reine Produktübersicht ohne Startseiten-Gedöns, 3 Artikel pro Reihe, Checkout-Sicherheitsversion, Produktseiten bereinigt.
Author: 3DCapo
Author URI: https://www.der-deutsche-michel.de/
Template: storefront
Version: 2.8.0
Text Domain: storefront-michel-minimal
*/

:root {
    --michel-blue: #4a9bdd;
    --michel-blue-button: #294fbd;
    --michel-blue-dark: #173b8f;
    --michel-white: #ffffff;
    --michel-text: #101828;
    --michel-muted: #667085;
    --michel-border: #dbe7f4;
    --michel-radius: 12px;
    --michel-shadow: 0 8px 22px rgba(0, 45, 120, 0.10);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--michel-blue);
    color: var(--michel-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

a {
    color: var(--michel-blue-button);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--michel-blue-dark);
    text-decoration: underline;
}

.col-full {
    max-width: 1280px;
    padding-left: 24px;
    padding-right: 24px;
}

/* Header */
.site-header {
    background: var(--michel-white);
    border-bottom: 1px solid var(--michel-border);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    padding-top: 16px;
    padding-bottom: 16px;
}

.site-header .site-branding { margin-bottom: 0; }

.site-title,
.site-title a {
    color: var(--michel-blue-dark);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-decoration: none;
}

.site-description {
    color: var(--michel-muted);
    font-size: 14px;
    margin-top: 4px;
}

.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
    color: var(--michel-text);
    font-weight: 800;
    padding: 12px 14px;
}

.site-header-cart .cart-contents {
    background: var(--michel-blue-button);
    color: var(--michel-white);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 900;
}

.site-header-cart .cart-contents:hover {
    background: var(--michel-blue-dark);
    color: var(--michel-white);
    text-decoration: none;
}

/* Alte Kartenreiter */
.capo-shop-tabs { display: none !important; }

/* Inhalt */
.site-content { padding-top: 42px; }

.content-area,
.right-sidebar .content-area,
.left-sidebar .content-area {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
}

.widget-area,
.storefront-breadcrumb,
.woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-pagination,
ul.page-numbers {
    display: none !important;
}

/* Normale Seiten bleiben lesbar */
.hentry,
.page .entry-content,
.woocommerce-products-header,
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content {
    background: var(--michel-white);
    border: 1px solid var(--michel-border);
    border-radius: var(--michel-radius);
    box-shadow: var(--michel-shadow);
    padding: 28px;
}

.page-title,
.entry-title,
.woocommerce-products-header__title {
    color: var(--michel-blue-dark);
    font-weight: 900;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
}

/* Startseite: keine weiße WordPress-Seitenbox, kein Titel, nur Produktkarten */
.home.page .hentry,
.home.page .entry-content,
.home.page .site-main,
.front-page .hentry,
.front-page .entry-content {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.home.page .entry-title,
.home.page .page-title,
.home.page .edit-link,
.home.page .entry-header,
.home .customize-partial-edit-shortcut,
.home .storefront-product-section,
.home .section-title,
.home h2:not(.woocommerce-loop-product__title) {
    display: none !important;
}

.michel-front-products,
.woocommerce.archive .site-main,
.post-type-archive-product .site-main {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}


/* Shop-Seite als Startseite: keine weiße Innenbox, keine Überschrift */
body.home .hentry,
body.home .entry-content,
body.home .site-main,
body.page-id-0 .hentry,
body.post-type-archive-product .site-main,
body.woocommerce-shop .site-main {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.home .entry-header,
body.home .entry-title,
body.home .page-title,
body.woocommerce-shop .woocommerce-products-header,
body.woocommerce-shop .woocommerce-products-header__title {
    display: none !important;
}

/* Marken-/Brand-Blöcke ausblenden, aber Produktlisten NICHT anfassen */
.product-brands,
.woocommerce-product-brands,
.wc-brand-thumbnails,
.wc-brands,
.pwb-all-brands,
.pwb-brand-banner,
.pwb-carousel,
.brands_index,
.brand-thumbnails,
.widget_brand_nav,
.widget_woocommerce_brand_nav,
.widget_layered_nav_filters,
.wc-block-product-categories,
.wp-block-woocommerce-product-categories,
.wp-block-woocommerce-product-best-sellers,
.wp-block-woocommerce-product-new,
.wp-block-woocommerce-product-on-sale,
.wp-block-woocommerce-handpicked-products,
.storefront-product-categories,
.storefront-recent-products,
.storefront-featured-products,
.storefront-popular-products,
.storefront-on-sale-products,
.storefront-best-selling-products {
    display: none !important;
}

/* WooCommerce Produktgrid */
.woocommerce .products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product,
ul.products li.product {
    width: auto !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    background: var(--michel-white) !important;
    border: 1px solid var(--michel-border) !important;
    border-radius: var(--michel-radius) !important;
    box-shadow: var(--michel-shadow) !important;
    overflow: hidden !important;
    padding: 16px !important;
    text-align: left !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex !important;
    flex-direction: column !important;
    height: 535px !important;
}

.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 45, 120, 0.18) !important;
}

.woocommerce ul.products li.product img,
ul.products li.product img {
    width: 100% !important;
    height: 230px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin-bottom: 14px !important;
    flex-shrink: 0 !important;
}

.woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
    color: var(--michel-text) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.28 !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    overflow: hidden !important;
}

.price,
ul.products li.product .price {
    color: var(--michel-blue-dark) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    margin: 0 0 8px !important;
    min-height: 32px !important;
}

ul.products li.product .tax-info,
ul.products li.product .shipping-costs-info,
ul.products li.product .wc-gzd-additional-info,
ul.products li.product .woocommerce-de_price_taxrate,
ul.products li.product .woocommerce_de_versandkosten {
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin: 0 0 8px !important;
}

.woocommerce ul.products li.product .button,
ul.products li.product .button {
    margin-top: auto !important;
    align-self: flex-start !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
button,
.button,
.wp-element-button {
    background: var(--michel-blue-button) !important;
    color: var(--michel-white) !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 12px 20px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
button:hover,
.button:hover,
.wp-element-button:hover {
    background: var(--michel-blue-dark) !important;
    color: var(--michel-white) !important;
    text-decoration: none !important;
}

/* Einzelprodukt */
.single-product div.product {
    background: var(--michel-white);
    border: 1px solid var(--michel-border);
    border-radius: var(--michel-radius);
    box-shadow: var(--michel-shadow);
    padding: 28px;
}

.single-product div.product .product_title {
    color: var(--michel-blue-dark);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.single-product div.product .woocommerce-product-gallery img { border-radius: 14px; }



/* Einzelprodukt: verwandte Produkte / Upsells sauber wie normale Karten formatieren */
.single-product .related.products,
.single-product .up-sells,
.single-product .upsells {
    clear: both;
    width: 100%;
    max-width: 1280px;
    margin: 42px auto 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.single-product .related.products > h2,
.single-product .up-sells > h2,
.single-product .upsells > h2 {
    color: var(--michel-white) !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    text-align: center !important;
    margin: 0 0 24px !important;
    letter-spacing: -0.03em;
}

/* Gerade bei verwandten Produkten haut Storefront gern eigene Spaltenbreiten rein.
   Das wird hier sauber überschrieben. */
.single-product .related.products ul.products,
.single-product .up-sells ul.products,
.single-product .upsells ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    align-items: stretch !important;
}

.single-product .related.products ul.products li.product,
.single-product .up-sells ul.products li.product,
.single-product .upsells ul.products li.product {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    height: 535px !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--michel-white) !important;
    border: 1px solid var(--michel-border) !important;
    border-radius: var(--michel-radius) !important;
    box-shadow: var(--michel-shadow) !important;
    padding: 16px !important;
    overflow: hidden !important;
    text-align: left !important;
}

.single-product .related.products ul.products li.product img,
.single-product .up-sells ul.products li.product img,
.single-product .upsells ul.products li.product img {
    width: 100% !important;
    height: 230px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin-bottom: 14px !important;
    flex-shrink: 0 !important;
}

.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
.single-product .up-sells ul.products li.product .woocommerce-loop-product__title,
.single-product .upsells ul.products li.product .woocommerce-loop-product__title {
    min-height: 92px !important;
    max-height: 92px !important;
    overflow: hidden !important;
}

.single-product .related.products ul.products li.product .button,
.single-product .up-sells ul.products li.product .button,
.single-product .upsells ul.products li.product .button {
    margin-top: auto !important;
}

@media (max-width: 768px) {
    .single-product .related.products ul.products,
    .single-product .up-sells ul.products,
    .single-product .upsells ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .single-product .related.products ul.products li.product,
    .single-product .up-sells ul.products li.product,
    .single-product .upsells ul.products li.product {
        height: 500px !important;
    }

    .single-product .related.products ul.products li.product img,
    .single-product .up-sells ul.products li.product img,
    .single-product .upsells ul.products li.product img {
        height: 190px !important;
    }
}

@media (max-width: 480px) {
    .single-product .related.products ul.products,
    .single-product .up-sells ul.products,
    .single-product .upsells ul.products {
        grid-template-columns: 1fr !important;
    }

    .single-product .related.products ul.products li.product,
    .single-product .up-sells ul.products li.product,
    .single-product .upsells ul.products li.product {
        height: auto !important;
        min-height: 480px !important;
    }
}



/* =========================================================
   Einzelproduktseiten sauber machen
   ========================================================= */

/* Alle Links auf weißem Hintergrund klar sichtbar */
.single-product .site-main a,
.single-product .entry-content a,
.single-product div.product a,
.woocommerce-cart .entry-content a,
.woocommerce-checkout .entry-content a {
    color: var(--michel-blue-button) !important;
    text-decoration: none !important;
}

.single-product .site-main a:hover,
.single-product .entry-content a:hover,
.single-product div.product a:hover,
.woocommerce-cart .entry-content a:hover,
.woocommerce-checkout .entry-content a:hover {
    color: var(--michel-blue-dark) !important;
    text-decoration: underline !important;
}

/* SKU, Kategorien und Schlagwörter unter dem Button ausblenden.
   Das sieht im Screenshot kaputt aus und bringt dem Kunden nichts. */
.single-product .product_meta {
    display: none !important;
}

/* Admin-Hinweis von WP Armour optisch weniger störend.
   Kunden sehen den Hinweis ohnehin nicht, aber beim Bearbeiten nervt er. */
.single-product .wpa-test-msg,
.single-product .wp-armour-message,
.single-product [class*="wp-armour"],
.single-product [class*="wpa-"] {
    max-width: 680px;
    border-radius: 10px;
}

/* Produktbox auf der Einzelproduktseite */
.single-product div.product {
    background: var(--michel-white) !important;
    border: 1px solid var(--michel-border) !important;
    border-radius: var(--michel-radius) !important;
    box-shadow: var(--michel-shadow) !important;
    padding: 32px !important;
    overflow: hidden !important;
}

/* Galerie und Zusammenfassung ordentlich nebeneinander */
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
    margin-bottom: 28px !important;
}

.single-product div.product .woocommerce-product-gallery img {
    border-radius: 12px !important;
    border: 1px solid var(--michel-border) !important;
}

.single-product div.product .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-top: 14px !important;
}

.single-product div.product .flex-control-thumbs li {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

.single-product div.product .flex-control-thumbs img {
    width: 100% !important;
    height: 74px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

/* Titel, Preis, Bestand */
.single-product div.product .product_title {
    color: var(--michel-blue-dark) !important;
    font-size: clamp(30px, 3vw, 48px) !important;
    line-height: 1.08 !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    margin-bottom: 18px !important;
}

.single-product div.product p.price,
.single-product div.product span.price {
    color: var(--michel-blue-dark) !important;
    font-size: 24px !important;
    font-weight: 900 !important;
}

.single-product div.product .stock {
    font-weight: 800 !important;
}

/* Menge + Button */
.single-product div.product form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 24px !important;
}

.single-product div.product form.cart .quantity {
    margin: 0 !important;
}

.single-product div.product form.cart .quantity input.qty {
    width: 82px !important;
    height: 48px !important;
    border-radius: 8px !important;
    text-align: center !important;
}

/* Tabs / Beschreibung / Rezensionen */
.single-product .woocommerce-tabs {
    clear: both !important;
    background: var(--michel-white) !important;
    border: 1px solid var(--michel-border) !important;
    border-radius: var(--michel-radius) !important;
    box-shadow: var(--michel-shadow) !important;
    padding: 26px !important;
    margin-top: 34px !important;
}

.single-product .woocommerce-tabs ul.tabs {
    margin: 0 0 20px !important;
    padding: 0 !important;
    border: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li {
    border: 0 !important;
    background: transparent !important;
    margin-right: 8px !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
    background: var(--michel-blue-button) !important;
    color: var(--michel-white) !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    font-weight: 900 !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
    background: var(--michel-blue-dark) !important;
    color: var(--michel-white) !important;
    text-decoration: none !important;
}

.single-product .woocommerce-Tabs-panel {
    color: var(--michel-text) !important;
}

.single-product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-Tabs-panel h3 {
    color: var(--michel-blue-dark) !important;
}

/* Verwandte Produkte / Upsells: behalten, aber sauber als Karten */
.single-product .related.products,
.single-product .up-sells,
.single-product .upsells {
    clear: both !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 42px auto 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.single-product .related.products > h2,
.single-product .up-sells > h2,
.single-product .upsells > h2 {
    color: var(--michel-white) !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    text-align: center !important;
    margin: 0 0 24px !important;
    letter-spacing: -0.03em !important;
}

.single-product .related.products ul.products,
.single-product .up-sells ul.products,
.single-product .upsells ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    align-items: stretch !important;
}

.single-product .related.products ul.products li.product,
.single-product .up-sells ul.products li.product,
.single-product .upsells ul.products li.product {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    height: 535px !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--michel-white) !important;
    border: 1px solid var(--michel-border) !important;
    border-radius: var(--michel-radius) !important;
    box-shadow: var(--michel-shadow) !important;
    padding: 16px !important;
    overflow: hidden !important;
    text-align: left !important;
}

.single-product .related.products ul.products li.product img,
.single-product .up-sells ul.products li.product img,
.single-product .upsells ul.products li.product img {
    width: 100% !important;
    height: 230px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin-bottom: 14px !important;
    flex-shrink: 0 !important;
}

.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
.single-product .up-sells ul.products li.product .woocommerce-loop-product__title,
.single-product .upsells ul.products li.product .woocommerce-loop-product__title {
    color: var(--michel-text) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.28 !important;
    min-height: 92px !important;
    max-height: 92px !important;
    overflow: hidden !important;
}

.single-product .related.products ul.products li.product .price,
.single-product .up-sells ul.products li.product .price,
.single-product .upsells ul.products li.product .price {
    color: var(--michel-blue-dark) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
}

.single-product .related.products ul.products li.product .button,
.single-product .up-sells ul.products li.product .button,
.single-product .upsells ul.products li.product .button {
    margin-top: auto !important;
    align-self: flex-start !important;
}

@media (max-width: 768px) {
    .single-product div.product {
        padding: 20px !important;
    }

    .single-product .related.products ul.products,
    .single-product .up-sells ul.products,
    .single-product .upsells ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .single-product .related.products ul.products li.product,
    .single-product .up-sells ul.products li.product,
    .single-product .upsells ul.products li.product {
        height: 500px !important;
    }

    .single-product .related.products ul.products li.product img,
    .single-product .up-sells ul.products li.product img,
    .single-product .upsells ul.products li.product img {
        height: 190px !important;
    }
}

@media (max-width: 480px) {
    .single-product .related.products ul.products,
    .single-product .up-sells ul.products,
    .single-product .upsells ul.products {
        grid-template-columns: 1fr !important;
    }

    .single-product .related.products ul.products li.product,
    .single-product .up-sells ul.products li.product,
    .single-product .upsells ul.products li.product {
        height: auto !important;
        min-height: 480px !important;
    }
}

/* Warenkorb / Checkout: bewusst sehr zurückhaltend.
   Hier darf das Theme keine WooCommerce-Block-Skripte oder Layouts kaputtstylen. */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-order-received .entry-content {
    background: var(--michel-white) !important;
    border: 1px solid var(--michel-border) !important;
    border-radius: var(--michel-radius) !important;
    box-shadow: var(--michel-shadow) !important;
    padding: 28px !important;
}

.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-order-received .entry-title {
    color: var(--michel-blue-dark) !important;
}

body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-order-received {
    background: var(--michel-blue) !important;
}

/* Formularfelder nur optisch, ohne Layout-Tricks */
.woocommerce-cart input,
.woocommerce-checkout input,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    max-width: 100%;
}



/* Checkout-Sicherheit: Nichts im Checkout verstecken, was WooCommerce braucht. */
body.woocommerce-checkout .woocommerce,
body.woocommerce-checkout form.checkout,
body.woocommerce-checkout #payment,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .wp-block-woocommerce-cart {
    display: block;
    visibility: visible;
}

body.woocommerce-checkout .blockUI,
body.woocommerce-checkout .blockOverlay {
    pointer-events: none;
}

/* Footer */
.site-footer {
    background: var(--michel-blue-dark);
    color: var(--michel-white);
    border-top: 0;
    padding: 28px 0;
    margin-top: 42px;
}

.site-footer a {
    color: var(--michel-white);
    font-weight: 700;
}

.footer-widgets {
    padding-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.storefront-michel-footer-credit {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .woocommerce .products,
    ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }

    .woocommerce ul.products li.product,
    ul.products li.product {
        height: 520px !important;
    }

    .woocommerce ul.products li.product img,
    ul.products li.product img {
        height: 210px !important;
    }
}

@media (max-width: 768px) {
    body { font-size: 16px; }

    .site-header {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .site-title,
    .site-title a { font-size: 25px; }

    .hentry,
    .page .entry-content,
    .woocommerce-products-header,
    .woocommerce-cart .entry-content,
    .woocommerce-checkout .entry-content,
    .single-product div.product {
        padding: 20px;
    }

    .home.page .hentry,
    .home.page .entry-content {
        padding: 0 !important;
    }

    .woocommerce .products,
    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .woocommerce ul.products li.product,
    ul.products li.product {
        height: 500px !important;
    }

    .woocommerce ul.products li.product img,
    ul.products li.product img {
        height: 190px !important;
    }
}

@media (max-width: 480px) {
    .col-full {
        padding-left: 14px;
        padding-right: 14px;
    }

    .woocommerce .products,
    ul.products {
        grid-template-columns: 1fr !important;
    }

    .woocommerce ul.products li.product,
    ul.products li.product {
        height: auto !important;
        min-height: 480px !important;
    }
}


/* =========================================================
   WARENKORB SAUBER STYLEN – CLASSIC WOOCOMMERCE CART
   ========================================================= */

.woocommerce-cart .entry-content {
    background: #f7f7f7 !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    padding: 28px !important;
}

.woocommerce-cart .entry-title {
    color: #243c96 !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    margin-bottom: 24px !important;
}

.woocommerce-cart table.shop_table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.woocommerce-cart table.shop_table th {
    background: #5b98dc !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    padding: 16px !important;
    border: 0 !important;
}

.woocommerce-cart table.shop_table td {
    background: #ffffff !important;
    color: #1f2937 !important;
    padding: 16px !important;
    border-top: 1px solid #e5edf7 !important;
    vertical-align: middle !important;
}

.woocommerce-cart table.shop_table td.product-name a {
    color: #243c96 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.woocommerce-cart table.shop_table td.product-name a:hover {
    color: #1a2d72 !important;
    text-decoration: underline !important;
}

.woocommerce-cart table.shop_table td.product-thumbnail img {
    border-radius: 10px !important;
    border: 1px solid #d9e2ef !important;
}

.woocommerce-cart a.remove {
    color: #c62828 !important;
    font-weight: 700 !important;
    background: transparent !important;
}

.woocommerce-cart a.remove:hover {
    color: #ffffff !important;
    background: #c62828 !important;
    border-radius: 50% !important;
}

.woocommerce-cart input.qty {
    width: 72px !important;
    height: 42px !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 8px !important;
    text-align: center !important;
    background: #ffffff !important;
    color: #111827 !important;
}

.woocommerce-cart .coupon .input-text {
    min-width: 180px !important;
    height: 44px !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 999px !important;
    padding: 0 14px !important;
    background: #ffffff !important;
    color: #111827 !important;
}

.woocommerce-cart .button,
.woocommerce-cart button.button,
.woocommerce-cart input.button,
.woocommerce-cart .coupon button.button {
    background: #334fc4 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 12px 20px !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.woocommerce-cart .button:hover,
.woocommerce-cart button.button:hover,
.woocommerce-cart input.button:hover,
.woocommerce-cart .coupon button.button:hover {
    background: #243c96 !important;
    color: #ffffff !important;
}

.woocommerce-cart .button:disabled,
.woocommerce-cart button.button:disabled,
.woocommerce-cart input.button:disabled,
.woocommerce-cart .button[disabled],
.woocommerce-cart button.button[disabled],
.woocommerce-cart input.button[disabled] {
    background: #6f8cf0 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

.woocommerce-cart button[name="update_cart"] {
    float: right !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    max-width: 520px !important;
    margin-left: auto !important;
    background: #ffffff !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
    padding: 20px !important;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
    color: #243c96 !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
}

.woocommerce-cart .cart-collaterals .shop_table th,
.woocommerce-cart .cart-collaterals .shop_table td {
    background: #ffffff !important;
    color: #111827 !important;
    border-top: 1px solid #e5edf7 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart a.checkout-button.button.alt.wc-forward {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: #334fc4 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 16px 24px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-indent: 0 !important;
    letter-spacing: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart a.checkout-button.button.alt.wc-forward:hover {
    background: #243c96 !important;
    color: #ffffff !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::before,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::after {
    display: none !important;
}

/* =========================================================
   KASSE SAUBER STYLEN – CLASSIC WOOCOMMERCE CHECKOUT
   ========================================================= */

.woocommerce-checkout .entry-content {
    background: #f7f7f7 !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    padding: 30px !important;
}

.woocommerce-checkout .entry-title {
    color: #243c96 !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    margin-bottom: 24px !important;
}

/* Gutschein-Hinweis */
.woocommerce-checkout .woocommerce-info {
    background: #5b98dc !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    font-weight: 700 !important;
}

.woocommerce-checkout .woocommerce-info a {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-decoration: underline !important;
}

/* Checkout-Formular zweispaltig sauber halten */
.woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr) !important;
    gap: 32px !important;
    align-items: start !important;
}

/* Linke Seite: Rechnungsdetails */
.woocommerce-checkout #customer_details,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    background: #ffffff !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05) !important;
    padding: 24px !important;
}

.woocommerce-checkout #customer_details h3,
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 {
    color: #243c96 !important;
    font-size: 1.7rem !important;
    font-weight: 900 !important;
    margin-bottom: 18px !important;
}

/* Felder */
.woocommerce-checkout label {
    color: #111827 !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-selection {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 10px !important;
    min-height: 46px !important;
    padding: 10px 12px !important;
    box-shadow: none !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #334fc4 !important;
    outline: 2px solid rgba(51,79,196,0.15) !important;
}

.woocommerce-checkout .form-row {
    margin-bottom: 16px !important;
}

/* Rechte Seite: Bestellung und Zahlung */
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    grid-column: 2 !important;
}

.woocommerce-checkout #order_review_heading {
    background: #5b98dc !important;
    color: #ffffff !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 18px 22px !important;
    margin: 0 !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    text-align: center !important;
}

.woocommerce-checkout #order_review {
    background: #ffffff !important;
    border: 1px solid #d9e2ef !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05) !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Bestell-Tabelle */
.woocommerce-checkout table.shop_table {
    background: #ffffff !important;
    border: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    background: #ffffff !important;
    color: #111827 !important;
    border-top: 1px solid #e5edf7 !important;
    padding: 14px 18px !important;
}

.woocommerce-checkout table.shop_table thead th {
    background: #f0f5fb !important;
    color: #111827 !important;
    font-weight: 900 !important;
}

.woocommerce-checkout table.shop_table tfoot th,
.woocommerce-checkout table.shop_table tfoot td {
    font-weight: 900 !important;
}

/* Zahlungsarten */
.woocommerce-checkout #payment {
    background: #ffffff !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    background: #ffffff !important;
    border: 0 !important;
    padding: 18px !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    background: #f7f9fc !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    padding: 14px 16px !important;
    color: #111827 !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    color: #111827 !important;
    font-weight: 900 !important;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    margin-right: 8px !important;
}

.woocommerce-checkout #payment div.payment_box {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 10px !important;
    margin-top: 12px !important;
    padding: 14px !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

/* AGB / Datenschutz */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    background: #f7f9fc !important;
    border-top: 1px solid #d9e2ef !important;
    padding: 18px !important;
    color: #111827 !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a,
.woocommerce-checkout #payment a {
    color: #243c96 !important;
    font-weight: 800 !important;
    text-decoration: underline !important;
}

/* Kaufen-Button */
.woocommerce-checkout #place_order,
.woocommerce-checkout button#place_order,
.woocommerce-checkout .button.alt {
    width: 100% !important;
    background: #334fc4 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 16px 24px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    margin: 18px !important;
    max-width: calc(100% - 36px) !important;
}

.woocommerce-checkout #place_order:hover,
.woocommerce-checkout button#place_order:hover,
.woocommerce-checkout .button.alt:hover {
    background: #243c96 !important;
    color: #ffffff !important;
}

/* Fehler / Pflichtfeld-Hinweise */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message {
    border: 0 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    font-weight: 700 !important;
}

.woocommerce-checkout .woocommerce-error {
    background: #fff1f1 !important;
    color: #8a1111 !important;
}

.woocommerce-checkout .woocommerce-message {
    background: #eef8f0 !important;
    color: #155724 !important;
}

/* Mobile */
@media (max-width: 900px) {
    .woocommerce-checkout form.checkout {
        display: block !important;
    }

    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        grid-column: auto !important;
        margin-top: 22px !important;
    }
}

@media (max-width: 768px) {
    .woocommerce-cart .entry-content,
    .woocommerce-checkout .entry-content {
        padding: 18px !important;
    }

    .woocommerce-cart .entry-title,
    .woocommerce-checkout .entry-title {
        font-size: 2.2rem !important;
    }

    .woocommerce-cart .cart-collaterals .cart_totals {
        max-width: 100% !important;
    }
}



/* =========================================================
   KASSE FIX v2.4 – klassisches WooCommerce-Layout erzwingen
   Kein Grid-Experiment mehr. Stabil und lesbar.
   ========================================================= */

.woocommerce-checkout .entry-content {
    background: #f7f7f7 !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    padding: 30px !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.woocommerce-checkout .entry-title {
    color: #243c96 !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    margin-bottom: 24px !important;
}

/* Ganz wichtig: Das kaputte Grid wieder abschalten */
.woocommerce-checkout form.checkout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Linke Spalte */
.woocommerce-checkout #customer_details {
    float: left !important;
    width: 58% !important;
    max-width: 58% !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Innerhalb links alles untereinander, keine schmalen Spalten */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 22px 0 !important;
    padding: 24px !important;
    background: #ffffff !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05) !important;
}

/* Rechte Spalte */
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    float: right !important;
    clear: right !important;
    width: 38% !important;
    max-width: 38% !important;
    min-width: 360px !important;
}

.woocommerce-checkout #order_review_heading {
    background: #5b98dc !important;
    color: #ffffff !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 18px 22px !important;
    margin: 0 !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    text-align: center !important;
}

.woocommerce-checkout #order_review {
    background: #ffffff !important;
    border: 1px solid #d9e2ef !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05) !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Clearfix nach Checkout */
.woocommerce-checkout form.checkout::after {
    content: "";
    display: table;
    clear: both;
}

/* Überschriften links */
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 {
    color: #243c96 !important;
    font-size: 1.7rem !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    margin: 0 0 18px 0 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* Felder */
.woocommerce-checkout label {
    color: #111827 !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
}

.woocommerce-checkout .form-row {
    margin-bottom: 16px !important;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 48% !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-selection {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 10px !important;
    min-height: 46px !important;
    padding: 10px 12px !important;
    box-shadow: none !important;
    width: 100% !important;
}

.woocommerce-checkout textarea {
    min-height: 120px !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #334fc4 !important;
    outline: 2px solid rgba(51,79,196,0.15) !important;
}

/* Gutschein-Hinweis */
.woocommerce-checkout .woocommerce-info {
    background: #5b98dc !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    font-weight: 700 !important;
}

.woocommerce-checkout .woocommerce-info a {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-decoration: underline !important;
}

/* Bestell-Tabelle */
.woocommerce-checkout table.shop_table {
    background: #ffffff !important;
    border: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    width: 100% !important;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    background: #ffffff !important;
    color: #111827 !important;
    border-top: 1px solid #e5edf7 !important;
    padding: 14px 18px !important;
}

.woocommerce-checkout table.shop_table thead th {
    background: #f0f5fb !important;
    color: #111827 !important;
    font-weight: 900 !important;
}

.woocommerce-checkout table.shop_table tfoot th,
.woocommerce-checkout table.shop_table tfoot td {
    font-weight: 900 !important;
}

/* Zahlung */
.woocommerce-checkout #payment {
    background: #ffffff !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    background: #ffffff !important;
    border: 0 !important;
    padding: 18px !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    background: #f7f9fc !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    padding: 14px 16px !important;
    color: #111827 !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    color: #111827 !important;
    font-weight: 900 !important;
}

.woocommerce-checkout #payment div.payment_box {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 10px !important;
    margin-top: 12px !important;
    padding: 14px !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

/* AGB / Datenschutz */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    background: #f7f9fc !important;
    border-top: 1px solid #d9e2ef !important;
    padding: 18px !important;
    color: #111827 !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a,
.woocommerce-checkout #payment a {
    color: #243c96 !important;
    font-weight: 800 !important;
    text-decoration: underline !important;
}

/* Kaufen-Button */
.woocommerce-checkout #place_order,
.woocommerce-checkout button#place_order,
.woocommerce-checkout .button.alt {
    width: calc(100% - 36px) !important;
    max-width: calc(100% - 36px) !important;
    background: #334fc4 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 16px 24px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    margin: 18px !important;
    display: block !important;
}

.woocommerce-checkout #place_order:hover,
.woocommerce-checkout button#place_order:hover,
.woocommerce-checkout .button.alt:hover {
    background: #243c96 !important;
    color: #ffffff !important;
}

/* Mobile: alles sauber untereinander */
@media (max-width: 980px) {
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .woocommerce-checkout #order_review_heading {
        margin-top: 24px !important;
    }
}

@media (max-width: 768px) {
    .woocommerce-checkout .entry-content {
        padding: 18px !important;
    }

    .woocommerce-checkout .entry-title {
        font-size: 2.2rem !important;
    }

    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        float: none !important;
        width: 100% !important;
    }

    .woocommerce-checkout #customer_details .col-1,
    .woocommerce-checkout #customer_details .col-2 {
        padding: 18px !important;
    }
}



/* =========================================================
   KASSE FEINSCHLIFF v2.5
   AGB-Zeile sauberer, Bestellübersicht nicht mehr gequetscht
   ========================================================= */

/* Rechte Bestellspalte etwas breiter machen, damit Produktnamen nicht zerhackt werden */
.woocommerce-checkout #customer_details {
    width: 54% !important;
    max-width: 54% !important;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    width: 42% !important;
    max-width: 42% !important;
    min-width: 430px !important;
}

/* AGB-Zeile: Checkbox und Text mit Luft nach innen */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    padding: 20px 24px !important;
    background: #f7f9fc !important;
    border-top: 1px solid #d9e2ef !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions,
.woocommerce-checkout .woocommerce-privacy-policy-text {
    margin-bottom: 12px !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text {
    display: inline !important;
    color: #111827 !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text a {
    color: #243c96 !important;
    font-weight: 900 !important;
    text-decoration: underline !important;
}

.woocommerce-checkout label.woocommerce-form__label-for-checkbox,
.woocommerce-checkout label.checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    line-height: 1.55 !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout label.woocommerce-form__label-for-checkbox input[type="checkbox"],
.woocommerce-checkout label.checkbox input[type="checkbox"] {
    flex: 0 0 auto !important;
    margin: 6px 0 0 0 !important;
    width: 16px !important;
    height: 16px !important;
}

/* Bestellübersicht: Produktspalte besser lesbar */
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    table-layout: auto !important;
    width: 100% !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-name,
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name {
    width: 68% !important;
    max-width: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    line-height: 1.45 !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total {
    width: 32% !important;
    white-space: nowrap !important;
    text-align: right !important;
}

/* Produktnamen nicht künstlich zerstückeln */
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name,
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name *,
.woocommerce-checkout .woocommerce-checkout-review-order-table td,
.woocommerce-checkout .woocommerce-checkout-review-order-table th {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

/* Produktbild und Entfernen-X in der Checkout-Bestellübersicht ausblenden.
   Im Checkout braucht das keiner, es macht nur die Spalte kaputt. */
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-thumbnail,
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-remove,
.woocommerce-checkout .woocommerce-checkout-review-order-table a.remove,
.woocommerce-checkout #order_review a.remove {
    display: none !important;
}

/* Falls Woo/Germanized das Produktbild innerhalb der Produktzelle ausgibt */
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name img,
.woocommerce-checkout #order_review td.product-name img {
    display: none !important;
}

/* Mengenangabe sauber klein neben oder unter dem Namen */
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-quantity {
    color: #667085 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

/* Mehr Luft in der Bestellbox */
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 16px 18px !important;
    vertical-align: top !important;
}

/* Payment-Box direkt unter der Tabelle, nicht gequetscht */
.woocommerce-checkout #payment {
    clear: both !important;
}

/* Mobile / schmalere Ansicht: alles untereinander, aber nicht zerquetschen */
@media (max-width: 1100px) {
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .woocommerce-checkout #order_review_heading {
        margin-top: 24px !important;
    }
}



/* =========================================================
   KASSE FEINSCHLIFF v2.6
   Radio-Buttons sichtbar, AGB-Checkbox nicht mehr an der Kante
   ========================================================= */

/* Zahlungsarten: Radio-Buttons größer und klar erkennbar */
.woocommerce-checkout #payment ul.payment_methods li {
    position: relative !important;
    padding: 18px 18px 18px 58px !important;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    position: absolute !important;
    left: 20px !important;
    top: 22px !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    opacity: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 3px solid #111827 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08) !important;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked {
    border-color: #334fc4 !important;
    background:
        radial-gradient(circle at center, #334fc4 0 42%, #ffffff 44% 100%) !important;
    box-shadow: 0 0 0 4px rgba(51, 79, 196, 0.18) !important;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked + label,
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked ~ label {
    color: #243c96 !important;
}

.woocommerce-checkout #payment ul.payment_methods li:has(input[type="radio"]:checked) {
    border-color: #334fc4 !important;
    background: #eef3ff !important;
    box-shadow: 0 0 0 2px rgba(51, 79, 196, 0.12) !important;
}

/* Fallback für Browser ohne :has(): Label bleibt trotzdem deutlich */
.woocommerce-checkout #payment ul.payment_methods li label {
    display: inline-block !important;
    color: #111827 !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
}

/* Zahlungslogos rechts ordentlich halten */
.woocommerce-checkout #payment ul.payment_methods li img {
    float: right !important;
    max-height: 26px !important;
    width: auto !important;
    margin-left: 8px !important;
}

/* AGB-Block bekommt innen Luft, nicht mehr links angeklebt */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    padding: 22px 28px !important;
    background: #f7f9fc !important;
    border-top: 1px solid #d9e2ef !important;
}

/* AGB Checkbox-Zeile als saubere Box */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p.form-row {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    align-items: start !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #111827 !important;
    line-height: 1.55 !important;
}

/* Checkbox selbst klar sichtbar */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"],
.woocommerce-checkout input#terms {
    grid-column: 1 !important;
    position: static !important;
    float: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin: 4px 0 0 0 !important;
    opacity: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 3px solid #111827 !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08) !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:checked,
.woocommerce-checkout input#terms:checked {
    border-color: #334fc4 !important;
    background:
        linear-gradient(135deg, transparent 0 35%, #ffffff 36% 46%, transparent 47% 100%),
        linear-gradient(45deg, transparent 0 42%, #ffffff 43% 53%, transparent 54% 100%),
        #334fc4 !important;
}

/* Text rechts neben Checkbox */
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text {
    grid-column: 2 !important;
    display: block !important;
    color: #111827 !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text a {
    color: #243c96 !important;
    font-weight: 900 !important;
    text-decoration: underline !important;
}

/* Pflichtstern nicht an den Rand drücken */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .required {
    color: #c62828 !important;
    margin-left: 4px !important;
    text-decoration: none !important;
}

/* Rechtsbox innen generell etwas mehr Luft */
.woocommerce-checkout #order_review {
    overflow: hidden !important;
}

.woocommerce-checkout #payment .place-order {
    padding: 0 0 18px 0 !important;
}

/* Kleine Displays */
@media (max-width: 768px) {
    .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
        padding: 18px !important;
    }

    .woocommerce-checkout #payment ul.payment_methods li {
        padding-left: 54px !important;
    }
}



/* =========================================================
   KASSE FEINSCHLIFF v2.7
   Aktivierte Zahlungsart schwarz, AGB-Checkbox wirklich einrücken
   ========================================================= */

/* Zahlungsarten: Aktiv = schwarz, inaktiv = blau/hell */
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    border: 3px solid #334fc4 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(51, 79, 196, 0.12) !important;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked {
    border-color: #111827 !important;
    background:
        radial-gradient(circle at center, #111827 0 42%, #ffffff 44% 100%) !important;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.18) !important;
}

.woocommerce-checkout #payment ul.payment_methods li:has(input[type="radio"]:checked) {
    border-color: #111827 !important;
    background: #f1f3f6 !important;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.14) !important;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked + label,
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked ~ label {
    color: #111827 !important;
}

/* AGB-Bereich: WooCommerce/Germanized-Positionierung brutal neutralisieren */
.woocommerce-checkout #payment .place-order {
    padding: 0 18px 18px 18px !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    box-sizing: border-box !important;
    width: calc(100% - 36px) !important;
    margin: 0 18px 18px 18px !important;
    padding: 20px 22px !important;
    background: #f7f9fc !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 14px !important;
}

/* Die eigentliche AGB-Zeile */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p.form-row,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .validate-required {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* Label als Grid: links Checkbox, rechts Text */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    gap: 0 12px !important;
    align-items: start !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    color: #111827 !important;
    line-height: 1.55 !important;
}

/* Checkbox nicht absolut, nicht float, nicht an den Rand */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"],
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input.woocommerce-form__input-checkbox,
.woocommerce-checkout input#terms {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: static !important;
    float: none !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    margin: 5px 0 0 0 !important;
    padding: 0 !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 3px solid #334fc4 !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(51, 79, 196, 0.12) !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:checked,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input.woocommerce-form__input-checkbox:checked,
.woocommerce-checkout input#terms:checked {
    border-color: #111827 !important;
    background:
        linear-gradient(135deg, transparent 0 36%, #ffffff 37% 47%, transparent 48% 100%),
        linear-gradient(45deg, transparent 0 42%, #ffffff 43% 54%, transparent 55% 100%),
        #111827 !important;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.18) !important;
}

/* Text sicher in die zweite Spalte */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions-checkbox-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label span {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111827 !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: #243c96 !important;
    font-weight: 900 !important;
    text-decoration: underline !important;
}

/* Pflichtstern sauber im Textfluss */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .required {
    color: #c62828 !important;
    margin-left: 4px !important;
    text-decoration: none !important;
}

/* Falls Storefront/Germanized den Stern absolut setzt */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper abbr.required {
    position: static !important;
    float: none !important;
}

/* Button mit gleicher Innenkante wie AGB-Box */
.woocommerce-checkout #place_order,
.woocommerce-checkout button#place_order,
.woocommerce-checkout .button.alt {
    width: calc(100% - 36px) !important;
    max-width: calc(100% - 36px) !important;
    margin: 18px !important;
}



/* =========================================================
   KASSE v2.8 – EIGENE RADIO- UND CHECKBOX-DARSTELLUNG
   Diese Regeln zeichnen die Punkte/Kästchen über Labels.
   Aktiv = schwarz.
   ========================================================= */

/* Zahlungsarten: echte Radio-Felder optisch verstecken */
.woocommerce-checkout #payment ul.payment_methods li {
    position: relative !important;
    padding: 18px 18px 18px 64px !important;
}

.woocommerce-checkout #payment ul.payment_methods li input.input-radio,
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    position: absolute !important;
    left: 22px !important;
    top: 22px !important;
    width: 22px !important;
    height: 22px !important;
    opacity: 0 !important;
    z-index: 3 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

/* Label ist die sichtbare Fläche */
.woocommerce-checkout #payment ul.payment_methods li label {
    position: relative !important;
    display: block !important;
    color: #111827 !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    cursor: pointer !important;
}

/* sichtbarer Radiokreis */
.woocommerce-checkout #payment ul.payment_methods li label::before {
    content: "" !important;
    position: absolute !important;
    left: -42px !important;
    top: 1px !important;
    width: 22px !important;
    height: 22px !important;
    border: 3px solid #334fc4 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(51, 79, 196, 0.12) !important;
    box-sizing: border-box !important;
}

/* innerer Punkt, erst unsichtbar */
.woocommerce-checkout #payment ul.payment_methods li label::after {
    content: "" !important;
    position: absolute !important;
    left: -35px !important;
    top: 8px !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: transparent !important;
}

/* Aktiv = schwarz */
.woocommerce-checkout #payment ul.payment_methods li input.input-radio:checked + label::before,
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked + label::before {
    border-color: #111827 !important;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.18) !important;
}

.woocommerce-checkout #payment ul.payment_methods li input.input-radio:checked + label::after,
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked + label::after {
    background: #111827 !important;
}

.woocommerce-checkout #payment ul.payment_methods li input.input-radio:checked + label,
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked + label {
    color: #111827 !important;
}

/* Aktive Zahlungsbox, wenn Browser :has unterstützt */
.woocommerce-checkout #payment ul.payment_methods li:has(input.input-radio:checked),
.woocommerce-checkout #payment ul.payment_methods li:has(input[type="radio"]:checked) {
    border-color: #111827 !important;
    background: #f1f3f6 !important;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.12) !important;
}

/* Zahlungslogos nicht stören lassen */
.woocommerce-checkout #payment ul.payment_methods li img {
    float: right !important;
    max-height: 26px !important;
    width: auto !important;
    margin-left: 8px !important;
}

/* AGB-Box mit sauberem Innenabstand */
.woocommerce-checkout #payment .place-order {
    padding: 0 18px 18px 18px !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    box-sizing: border-box !important;
    width: calc(100% - 36px) !important;
    margin: 0 18px 18px 18px !important;
    padding: 20px 22px !important;
    background: #f7f9fc !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 14px !important;
}

/* Formrow neutralisieren */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p.form-row,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .validate-required {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Label kontrolliert aufbauen */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 0 36px !important;
    color: #111827 !important;
    line-height: 1.55 !important;
    cursor: pointer !important;
}

/* echte Checkbox unsichtbar, aber klickbar */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input.input-checkbox,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"],
.woocommerce-checkout input#terms {
    position: absolute !important;
    left: 0 !important;
    top: 4px !important;
    width: 22px !important;
    height: 22px !important;
    opacity: 0 !important;
    z-index: 3 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

/* sichtbare Checkbox */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox::before,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label::before,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 4px !important;
    width: 22px !important;
    height: 22px !important;
    border: 3px solid #334fc4 !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(51, 79, 196, 0.12) !important;
    box-sizing: border-box !important;
}

/* Haken */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox::after,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label::after,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox::after {
    content: "" !important;
    position: absolute !important;
    left: 7px !important;
    top: 8px !important;
    width: 7px !important;
    height: 12px !important;
    border: solid transparent !important;
    border-width: 0 3px 3px 0 !important;
    transform: rotate(45deg) !important;
}

/* Aktivierte Checkbox = schwarz mit weißem Haken */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label:has(input[type="checkbox"]:checked)::before,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label:has(input.input-checkbox:checked)::before {
    border-color: #111827 !important;
    background: #111827 !important;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.18) !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label:has(input[type="checkbox"]:checked)::after,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label:has(input.input-checkbox:checked)::after {
    border-color: #ffffff !important;
}

/* AGB-Text */
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text {
    display: inline !important;
    color: #111827 !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text a,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: #243c96 !important;
    font-weight: 900 !important;
    text-decoration: underline !important;
}

/* Falls ein Plugin den Pflichtstern absolut setzt */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .required,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper abbr.required {
    position: static !important;
    float: none !important;
    color: #c62828 !important;
    margin-left: 4px !important;
    text-decoration: none !important;
}

/* Kaufen-Button mit gleicher Innenkante wie die AGB-Box */
.woocommerce-checkout #place_order,
.woocommerce-checkout button#place_order,
.woocommerce-checkout .button.alt {
    width: calc(100% - 36px) !important;
    max-width: calc(100% - 36px) !important;
    margin: 18px !important;
}

@media (max-width: 768px) {
    .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
        width: 100% !important;
        margin: 0 0 18px 0 !important;
    }
}

