/* heimo24 – WooCommerce- und WordPress-Anpassungen (ergänzt app.css aus der Design-Vorschau) */

/* Bilder in Karten/Galerie wie die SVG-Illustrationen der Vorschau */
.product-media img.heimo-img,
.pdp-gallery img.heimo-img { width: 78%; height: 78%; object-fit: contain; }
.cart-thumb img.heimo-img { width: 80%; height: 80%; object-fit: contain; }
.drawer-item .cart-thumb { width: 72px; height: 72px; }
.product-media img.heimo-img[src*="placeholder"] { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery img.heimo-img { max-height: 470px; }

/* Preis-HTML von WooCommerce */
.price .woocommerce-Price-amount, .price bdi { white-space: nowrap; }
.price .old .woocommerce-Price-amount { font: inherit; color: inherit; }
.price del, .price ins { text-decoration: none; }
.pdp-price .old { font-size: 16px; font-weight: 600; color: var(--muted-2); text-decoration: line-through; }
.pdp-price .vat { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.product-card .woocommerce-loop-product__link { display: contents; }
.add-mini.added::after, .added_to_cart { display: none !important; }
.add-mini.loading { opacity: .6; pointer-events: none; }
.add-mini.added { background: var(--success); }
.product-card, .pdp { list-style: none; }
.product-legal, .pdp-legal { font-size: 12px; color: var(--muted-2); margin-top: 8px; line-height: 1.4; }
.product-legal p, .pdp-legal p { margin: 2px 0; }
.product-legal a, .pdp-legal a { color: var(--muted); text-decoration: underline; }
.pdp-legal { font-size: 13px; margin: 0 0 8px; }

/* Drawer */
.heimo-drawer-inner { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.drawer-item strong { color: var(--navy-dark); font-weight: 800; white-space: nowrap; }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  list-style: none; margin: 18px 0; padding: 14px 18px; border-radius: 14px; background: var(--navy-softer);
  border: 1px solid var(--line); color: var(--navy-dark); font-weight: 600; font-size: 14.5px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.woocommerce-message { background: #E5F6EE; border-color: #CBEBDC; }
.woocommerce-error { background: #FBECEA; border-color: #F2D1CC; color: var(--danger); display: block; }
.woocommerce-error li { margin: 2px 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; font-weight: 800; color: var(--navy); }

/* Shop-Archiv */
.shop-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.shop-cats a { padding: 8px 14px; border-radius: 999px; background: white; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--navy-dark); }
.shop-cats a:hover { border-color: var(--navy); }
.shop-cats a.is-active { background: var(--navy); border-color: var(--navy); color: white; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--muted); font-size: 14px; font-weight: 600; }
.shop-toolbar p { margin: 0; }
.shop-toolbar select, .woocommerce-ordering select { height: 40px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: white; padding: 0 14px; font-weight: 700; color: var(--navy-dark); }
.archive-desc { color: var(--muted); margin-top: 8px; max-width: 720px; }
.woocommerce-pagination ul, .heimo-pagination .nav-links { display: flex; gap: 8px; justify-content: center; margin: 28px 0 0; }
.woocommerce-pagination a, .woocommerce-pagination span, .heimo-pagination .page-numbers {
  min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: white; border: 1px solid var(--line); font-weight: 800; padding: 0 10px;
}
.woocommerce-pagination .current, .heimo-pagination .current { background: var(--navy); color: white; border-color: var(--navy); }
.page-title + .shop-cats { margin-top: 18px; }
.archive .product-grid, .search .product-grid, .post-type-archive-product .product-grid { margin-bottom: 8px; }

/* Produktseite */
.pdp-desc > *:first-child { margin-top: 0; }
.pdp-desc p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.pdp-desc h2, .pdp-desc h3 { font-size: 16px; font-weight: 800; color: var(--navy-dark); margin: 16px 0 8px; }
.pdp-desc ul { padding-left: 0; display: grid; gap: 6px; margin: 8px 0 10px; }
.pdp-desc li { display: flex; gap: 10px; color: var(--muted); font-size: 15px; }
.pdp-desc li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-top: 8px; flex-shrink: 0; }
.heimo-cart-form { margin: 0; }
.qty input[type=number]::-webkit-outer-spin-button, .qty input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input[type=number] { -moz-appearance: textfield; }
.single_add_to_cart_button.loading { opacity: .7; }
.heimo-wc-add .quantity input { height: 48px; border-radius: 999px; border: 1.5px solid var(--line-strong); width: 80px; text-align: center; font-weight: 800; }
.heimo-wc-add .single_add_to_cart_button, .heimo-wc-add button.button { height: 52px; padding: 0 26px; border-radius: 999px; background: var(--orange); color: var(--navy-deep); font-weight: 800; }
.heimo-wc-add form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 18px; }
.heimo-wc-add .variations td, .heimo-wc-add .variations th { padding: 4px 8px 4px 0; text-align: left; }
.heimo-wc-add select { height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong); padding: 0 12px; background: white; }

/* Warenkorb */
.heimo-wc-page { padding-bottom: 8px; }
.cart-collaterals { position: sticky; top: 24px; }
.cart-collaterals .cart-summary { position: static; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--navy-softer); }
.cart-row:last-of-type { border-bottom: 0; }
.cart-actions .coupon { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.cart-actions .coupon input { flex: 1; height: 40px; border-radius: 999px; border: 1.5px solid var(--line-strong); padding: 0 16px; background: white; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.heimo-update { display: none; }
.no-js .heimo-update { display: inline-flex; }
.cart-row .qty { height: 40px; }
.cart-row .qty button { height: 40px; width: 38px; font-size: 18px; }
.cart-row .qty input { width: 38px; padding: 0; }
.cart-row .variation { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.cart-row .variation dt, .cart-row .variation dd { display: inline; margin: 0; }
.cart-summary .sum-line span:last-child, .cart-summary .sum-total span:last-child { text-align: right; }
.sum-note { font-size: 13px; color: var(--muted); margin: 8px 0 18px; }
.cart-summary .wc-proceed-to-checkout { padding: 0; }
.blockUI.blockOverlay { border-radius: 20px; }
.cart-summary small.includes_tax { display: none; }
.cart-layout { padding-top: 20px; }

/* Kasse */
.woocommerce-checkout .heimo-wc-page form.checkout { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 28px; align-items: start; padding: 20px 0 40px; }
.woocommerce-checkout #customer_details { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; }
.heimo-checkout-main, .heimo-order-col { min-width: 0; }
.heimo-order-col { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 24px; position: sticky; top: 24px; }
.heimo-order-col h3 { font-size: 18px; margin: 0 0 12px; }
.heimo-order-col #payment + h3, .heimo-order-col h3#order_review_heading { margin-top: 20px; }
.heimo-order-col > h3:first-child { margin-top: 0; }
.woocommerce-checkout .shop_table .product-thumbnail img, .woocommerce-checkout .wc-gzd-cart-item-thumbnail img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: var(--navy-softer); }
.woocommerce-checkout .shop_table ul#shipping_method li { margin: 0 0 4px; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.wc-gzd-checkbox-placeholder, .woocommerce-gzd-legal-checkbox-text { font-size: 13px; }
.heimo-order-col .form-row.legal, .heimo-order-col .checkbox-legal { margin: 14px 0; font-size: 13.5px; }
.woocommerce-checkout h3 { font-size: 20px; font-weight: 800; color: var(--navy-dark); margin: 0 0 16px; letter-spacing: -0.02em; }
.woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-dark); margin-bottom: 6px; }
.woocommerce form .form-row .required { color: var(--danger); text-decoration: none; border: 0; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 7px); float: left; }
.woocommerce form .form-row-last { float: right; }
.woocommerce form .form-row-wide, .woocommerce .clear { clear: both; }
.woocommerce-billing-fields__field-wrapper::after, .woocommerce-shipping-fields__field-wrapper::after, .woocommerce-address-fields__field-wrapper::after { content: ""; display: table; clear: both; }
.woocommerce form .input-text, .woocommerce form select, .woocommerce form textarea, .select2-container .select2-selection--single {
  width: 100%; height: 48px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: white; padding: 0 14px; font: inherit; color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s;
}
.woocommerce form textarea { height: 110px; padding: 12px 14px; }
.woocommerce form .input-text:focus, .woocommerce form select:focus, .woocommerce form textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 4px var(--navy-soft); }
.select2-container .select2-selection--single { display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.woocommerce form .woocommerce-invalid .input-text { border-color: var(--danger); }
.woocommerce-checkout .shop_table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.woocommerce-checkout .shop_table th, .woocommerce-checkout .shop_table td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.woocommerce-checkout .shop_table td:last-child, .woocommerce-checkout .shop_table th:last-child { text-align: right; }
.woocommerce-checkout .shop_table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.woocommerce-checkout .shop_table .order-total th, .woocommerce-checkout .shop_table .order-total td { font-size: 18px; font-weight: 800; color: var(--navy-dark); border-bottom: 0; }
.woocommerce-checkout .shop_table .product-name { color: var(--navy-dark); font-weight: 700; }
.woocommerce-checkout .shop_table ul#shipping_method { list-style: none; padding: 0; margin: 0; }
#payment { margin-top: 16px; }
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
#payment ul.payment_methods li { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 700; }
#payment .payment_box { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-top: 8px; }
#payment .payment_box p { margin: 0; }
#place_order, .woocommerce button.button.alt, .woocommerce-checkout button[type=submit].button {
  width: 100%; height: 54px; border-radius: 999px; background: var(--orange); color: var(--navy-deep); font-weight: 800; font-size: 16px; border: 0; cursor: pointer; box-shadow: 0 10px 26px rgba(244,164,24,.32); transition: background .2s;
}
#place_order:hover { background: var(--orange-hover); }
.woocommerce-terms-and-conditions-wrapper, .woocommerce-privacy-policy-text { font-size: 13px; color: var(--muted); margin: 12px 0; }
.woocommerce-form-coupon-toggle .woocommerce-info { background: white; }
.woocommerce form.checkout_coupon, .woocommerce form.login { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 0 0 18px; }
.woocommerce-checkout .woocommerce-form__label-for-checkbox { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600 !important; }
.woocommerce-checkout input[type=checkbox], .woocommerce-checkout input[type=radio] { accent-color: var(--navy); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.woocommerce-shipping-fields, .woocommerce-additional-fields { margin-top: 18px; }
.woocommerce .button:not(.btn):not(.add-mini) { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--navy); color: white; font-weight: 800; border: 0; cursor: pointer; }

/* Danke-Seite / Konto */
.woocommerce-order, .woocommerce-MyAccount-content, .woocommerce-MyAccount-navigation { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin: 20px 0; }
.woocommerce-account .heimo-wc-page > .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.woocommerce-MyAccount-navigation ul { display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--navy-soft); }

/* Seiten & Ratgeber */
.entry-card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); margin: 20px 0 0; max-width: 860px; }
.entry-content { color: var(--text); font-size: 16.5px; line-height: 1.7; }
.entry-content > * + * { margin-top: 14px; }
.entry-content h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy-dark); margin-top: 30px; }
.entry-content h3 { font-size: 19px; font-weight: 800; color: var(--navy-dark); margin-top: 24px; }
.entry-content ul, .entry-content ol { padding-left: 22px; list-style: revert; }
.entry-content li + li { margin-top: 6px; }
.entry-content a { color: var(--navy-mid); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 18px 0; padding: 14px 20px; border-left: 4px solid var(--orange); background: var(--orange-soft); border-radius: 0 12px 12px 0; }
.entry-content .heimo-placeholder, .heimo-placeholder { background: var(--orange-soft); border: 1.5px dashed var(--orange); border-radius: 14px; padding: 16px 18px; font-weight: 700; color: var(--navy-dark); }
.journal-list { margin-top: 22px; }
.post-single { background: white; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-top: 8px; }
.post-hero.journal-art { aspect-ratio: auto; height: 340px; }
.post-hero svg, .post-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: clamp(24px, 4vw, 48px); max-width: 820px; margin: 0 auto; }
.post-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; color: var(--navy-dark); margin: 6px 0 8px; }
.post-meta { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 26px; }
.single-post .related .journal-grid { margin-bottom: 0; }
.journal-art svg, .journal-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Custom Logo (Customizer) */
.logo-custom img { height: 44px; width: auto; }

/* Admin-Bar */
.admin-bar .drawer, .admin-bar .mobile-panel { top: 32px; height: calc(100% - 32px); }

@media (max-width: 900px) {
  .woocommerce-checkout .heimo-wc-page form.checkout { grid-template-columns: 1fr; }
  .cart-collaterals { position: static; }
  .heimo-order-col { position: static; }
  .woocommerce-account .heimo-wc-page > .woocommerce { grid-template-columns: 1fr; }
  .post-hero.journal-art { height: 220px; }
}
@media (max-width: 560px) {
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
}

/* Versteckte Panels werfen keinen Schatten */
.drawer, .mobile-panel { visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s linear 0.35s; }
.drawer.show, .mobile-panel.show { visibility: visible; transition: transform 0.35s var(--ease), visibility 0s; }
/* Germanized-Hinweise kompakt in einer Zeile */
.product-legal > * { display: inline; margin: 0; }
.product-legal > * + *::before { content: " · "; }
.product-legal .wc-gzd-additional-info, .pdp-legal .wc-gzd-additional-info { margin: 0; }
.pdp-legal > * { display: inline; margin: 0; }
.pdp-legal > * + *::before { content: " · "; }

.sum-small { font-size: 13px; margin: 2px 0; }
.qty input.input-text, .woocommerce form .qty input.input-text { border: 0; height: 100%; width: 38px; padding: 0; box-shadow: none; background: transparent; border-radius: 0; text-align: center; font-weight: 800; }
.heimo-order-col .shop_table, .heimo-order-col .shop_table tr, .heimo-order-col .shop_table td, .heimo-order-col .shop_table th, .heimo-order-col .shop_table tbody, .heimo-order-col .shop_table tfoot { background: transparent !important; }
