/* =========================================================
   Diakonie Shop – safe polish
   Kein erzwungenes Classic-Checkout-Grid.
   ========================================================= */

/* Startseite */
.home .entry-header,
.home .entry-title {
    display: none !important;
}

.home.ast-plain-container.ast-no-sidebar #primary {
    margin-top: 0;
}

.ib-diakonie-home-hero {
    padding: 48px 0 34px;
}

.ib-diakonie-home-hero h1 {
    max-width: 900px;
    margin-bottom: 18px;
    font-size: 42px;
    line-height: 1.18;
}

.ib-diakonie-home-hero p {
    max-width: 820px;
    font-size: 18px;
    line-height: 1.65;
}

.ib-diakonie-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.ib-diakonie-home-actions .wp-block-button__link {
    border-radius: 4px;
}

.ib-diakonie-customer-groups {
    margin-top: 48px;
}

.ib-diakonie-customer-groups .wp-block-column {
    padding: 24px;
    border: 1px solid #d9e2ec;
    background: #ffffff;
}

.ib-diakonie-customer-groups h3 {
    margin-top: 0;
}

/* Woo Blocks: vorhandenes professionelles Layout nicht überschreiben */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Checkout-/Cart-Hinweise */
.ib-diakonie-block-contract-notice,
.ib-diakonie-contract-notice {
    margin: 18px 0 20px;
    padding: 16px 18px;
    background: #f7f9fc;
    border: 1px solid #d9e3ee;
    border-radius: 4px;
    line-height: 1.55;
    font-size: 15px;
}

/* Couponbereiche zuverlässig ausblenden */
.wc-block-components-totals-coupon,
.wc-block-components-totals-coupon__form,
.wc-block-components-totals-coupon-link,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block,
.wp-block-woocommerce-cart-order-summary-coupon-form-block,
.woocommerce-form-coupon-toggle,
form.checkout_coupon,
.coupon,
.coupon-code,
[class*="coupon"] {
    display: none !important;
}

/* Mein Konto: Downloads ausblenden */
.woocommerce-MyAccount-navigation-link--downloads {
    display: none !important;
}

/* Mein Konto: Anzeigename optisch ausblenden */
.woocommerce-edit-account #account_display_name,
.woocommerce-edit-account label[for="account_display_name"],
.woocommerce-edit-account #account_display_name + span,
.woocommerce-edit-account #account_display_name + em,
.woocommerce-edit-account .form-row:has(#account_display_name) {
    display: none !important;
}

/* Kleine optische Glättung */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    line-height: 1.55;
}

/* Startseite: Produktteaser nur so breit wie sinnvoll darstellen */
.home .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 34px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

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

.home .woocommerce ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
}

.home .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.home .woocommerce ul.products li.product img {
    max-width: 100%;
}

.home .woocommerce ul.products li.product .button {
    width: 100%;
    text-align: center;
}
