/* =========================================================
   Astra Child – Custom CSS
   Aufbau: Variablen → Bereiche → Media Queries (groß → klein)
   Seiten-CSS (Startseite, Über uns, Datenschutz, Cookie-Richtlinie):
   Spectra → Seiteneinstellungen → Custom CSS
   ========================================================= */

/* ===== Variablen ===== */
:root {
  /* Farben */
  --oel-sand: #e1d4a8;
  --oel-muted: #6b6b6b;
  --oel-input-text: #444;
  --oel-notice: #990000;

  /* Schrift */
  --oel-fs-note: 0.8em;
  --oel-fs-small: 14px;
  --oel-fs-meta: 16px;
  --oel-fs-input: 18px;
  --oel-fs-label: 16px;
  --oel-lh-heading: 1.25;
  --oel-lh-tight: 1.3;
  --oel-lh-text: 1.5;

  /* Layout */
  --oel-max: 1240px;
  --oel-gutter: 32px;
  --oel-top: 48px;
  --oel-cell-x: 22px;
  --oel-radius: 4px;

  /* Übergänge */
  --oel-ease: 0.2s linear;
  --oel-ease-card: 0.25s ease;
}


/* ===== Basis ===== */
body div.site {
  background-color: #fff;
}
#primary {
  margin-top: 0;
  margin-bottom: var(--oel-top);
}
#primary:has(.entry-content > .uagb-is-root-container:last-child) {
  margin-bottom: 0;
}
.entry-content > .uagb-is-root-container:last-child {
  padding-bottom: var(--oel-top) !important;
}
.ast-archive-description p {
  font-weight: 400;
}
/* Überschriften: Zeilenhöhen */
#content h1 {
  line-height: 1.2;
}
#content :is(h2, h3, h4) {
  line-height: var(--oel-lh-heading);
}


/* ===== Links ===== */
.entry-content a:where(:not(.wp-element-button, .wp-block-button__link, .button)),
.woocommerce-Tabs-panel a,
.woocommerce-breadcrumb a,
.wc-gzd-additional-info a,
.shipping-costs-cart-info a,
.woocommerce-mini-cart-item a,
.link,
.uagb-infobox__content-wrap a,
[class*='wp-elements-'] a:where(:not(.wp-element-button)) {
  text-decoration: underline;
}
:is(.entry-content, .woocommerce-Tabs-panel, .woocommerce-breadcrumb, .wc-gzd-additional-info, .shipping-costs-cart-info, .woocommerce-mini-cart-item) a:hover {
  text-decoration-color: transparent;
}
.link,
.uagb-infobox__content-wrap a,
[class*='wp-elements-'] a:where(:not(.wp-element-button)) {
  color: var(--ast-global-color-5);
}
.link:hover,
[class*='wp-elements-'] a:where(:not(.wp-element-button)):hover,
.uagb-infobox__content-wrap a:hover {
  color: var(--ast-global-color-0) !important;
  text-decoration-color: transparent;
}


/* ===== Übergänge ===== */
/* Spectra-Icon-Listen */
.uagb-icon-list__label,
.uagb-icon-list__source-wrap,
.uagb-icon-list__source-wrap svg,
.uagb-icon-list__source-wrap svg path {
  transition:
    color var(--oel-ease),
    fill var(--oel-ease),
    background-color var(--oel-ease),
    border-color var(--oel-ease);
}
/* Buttons */
button,
input[type='submit'],
input[type='button'],
input[type='reset'] {
  transition:
    color var(--oel-ease),
    background-color var(--oel-ease),
    border-color var(--oel-ease),
    box-shadow var(--oel-ease);
}
/* Header-Warenkorb, „Auswahl löschen“, Spectra-Buttons */
.ast-site-header-cart .ast-site-header-cart-li a.cart-container,
.ast-site-header-cart .ast-site-header-cart-li a.cart-container *,
.woocommerce-js div.product form.cart .reset_variations,
a.reset_variations,
a.wp-block-button__link .uagb-inline-editing,
a.wp-block-button__link svg {
  transition: all var(--oel-ease);
}
a.wp-block-button__link:hover .uagb-inline-editing,
a.wp-block-button__link:hover svg {
  color: #fff !important;
}


/* ===== Formulare ===== */
/* Eingabefelder: Kontakt, Kasse, Warenkorb, Mein Konto, Shop, Produktseite */
.wpcf7 form :is(input:not([type='submit'], [type='checkbox'], [type='radio'], [type='hidden']), textarea, select),
.woocommerce form .form-row :is(input.input-text, textarea, select),
.woocommerce-cart #coupon_code,
.woocommerce .woocommerce-ordering select,
.woocommerce div.product form.cart .quantity input.qty,
#secondary :is(.wp-block-search__input, .wc-block-product-filter-price-slider__content input[type='text']) {
  background-color: var(--ast-comment-inputs-background);
  border: 1px solid #bbb;
  border-radius: var(--oel-radius);
  padding: 0.5em;
  line-height: var(--oel-lh-text);
}
.wpcf7 form :is(input:not([type='submit']), textarea, select):focus,
.woocommerce form .form-row :is(input.input-text, textarea, select):focus,
.woocommerce form .form-row #order_comments:focus,
.woocommerce-cart #coupon_code:focus,
.woocommerce .woocommerce-ordering select:focus,
.woocommerce div.product form.cart .quantity input.qty:focus,
#secondary :is(.wp-block-search__input, .wc-block-product-filter-price-slider__content input[type='text']):focus {
  border: 1px solid var(--ast-global-color-0);
  outline: none;
}
/* Preis-Slider (Shop) */
.wc-block-product-filter-price-slider__range,
.wc-block-product-filter-price-slider__range .range-bar {
  height: 2px;
}
/* Preis-Slider: Hintergrundspur */
.wc-block-product-filter-price-slider__range::before {
  opacity: 1;
}
.wc-block-product-filter-price-slider__range input[type='range'] {
  top: -1px;
}
/* Preis-Slider: Spur */
.wc-block-product-filter-price-slider__range input[type='range']::-webkit-slider-runnable-track,
.wc-block-product-filter-price-slider__range input[type='range']:focus::-webkit-slider-runnable-track {
  background: transparent;
  box-shadow: none;
  border: 0;
}
.wc-block-product-filter-price-slider__range input[type='range']::-moz-range-track,
.wc-block-product-filter-price-slider__range input[type='range']:focus::-moz-range-track {
  background: transparent;
  box-shadow: none;
  border: 0;
}
/* Preis-Slider: Griffe */
.wc-block-product-filter-price-slider__range input[type='range']::-webkit-slider-thumb {
  box-shadow: none;
}
.wc-block-product-filter-price-slider__range input[type='range']::-moz-range-thumb {
  box-shadow: none;
}
/* Dropdowns */
.wpcf7 form select,
.woocommerce form .form-row select,
.woocommerce .woocommerce-ordering select {
  padding-right: 2em;
}
select,
.woocommerce select,
.woocommerce-page select,
.wpcf7 form select,
.woocommerce form .form-row select,
.woocommerce .woocommerce-ordering select,
.woocommerce .select2-container .select2-selection--single,
.woocommerce-page .select2-container .select2-selection--single {
  background-position: right 12px center;
}
/* Schrift aller Felder (ohne Buttons) */
body :is(input:not([type='checkbox'], [type='radio'], [type='submit'], [type='button'], [type='reset'], [type='range'], [type='hidden'], [type='image']), select, textarea),
body .select2-container .select2-selection,
#secondary :is(input:not([type='checkbox'], [type='radio'], [type='submit'], [type='button'], [type='reset'], [type='range'], [type='hidden'], [type='image']), select, textarea) {
  font-size: var(--oel-fs-input);
  font-weight: 400;
  color: var(--oel-input-text);
}
body .select2-container .select2-selection .select2-selection__rendered {
  color: var(--oel-input-text);
}
body :is(input, textarea)::placeholder {
  color: var(--oel-input-text);
  font-weight: 400;
  opacity: 0.5;
}
/* Eckenradius aller Felder (ohne Radios) */
body :is(input:not([type='radio'], [type='range'], [type='hidden'], [type='image'], [type='submit'], [type='button'], [type='reset']), select, textarea),
:is(.woocommerce, .woocommerce-page) :is(select, .select2-container .select2-selection--single, .quantity input.qty) {
  border-radius: var(--oel-radius);
}
/* Checkboxen und Radios */
input[type='checkbox']:not(.wc-block-components-checkbox__input),
input[type='radio']:not(.wc-block-components-radio-control__input) {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  accent-color: var(--ast-global-color-0);
}
/* Kontaktformular */
.wpcf7 form label,
.wpcf7 form p.caption {
  font-weight: 700;
  font-size: var(--oel-fs-label);
}


/* ===== Hinweistexte ===== */
/* Datenschutz (Kontakt, Kasse), Mini-Warenkorb, Grundpreis, Lieferzeit */
.oel-cf7-privacy p,
.oel-checkout-privacy p,
.woocommerce-js .widget_shopping_cart_content p.total.wc-gzd-total-mini-cart,
.wc-gzd-cart-info.unit-price-cart,
.wc-gzd-cart-info.delivery-time-info {
  font-size: var(--oel-fs-note);
  line-height: var(--oel-lh-text);
  color: var(--oel-muted);
}
.wc-gzd-cart-info.unit-price-cart,
.wc-gzd-cart-info.delivery-time-info {
  line-height: var(--oel-lh-tight);
}
.woocommerce-js .widget_shopping_cart_content p.total.wc-gzd-total-mini-cart *,
.wc-gzd-cart-info.unit-price-cart * {
  font-weight: 400;
}
.oel-cf7-privacy p,
.wc-gzd-cart-info.delivery-time-info {
  margin: 0;
}
.oel-checkout-privacy p {
  margin: 0 0 1em;
}
/* Pflichtfeld- und Datenschutzhinweis (Kontakt, Kasse) */
:is(.oel-cf7-privacy, .oel-checkout-privacy) p {
  font-weight: 400;
}
/* Pflichtfeld-Hinweis (Kontakt, Kasse) */
:is(.oel-cf7-privacy, .oel-checkout-privacy) p.oel-required-note {
  margin-bottom: 0.5em;
}
/* Shop: Preishinweis über der Pagination */
.oel-shop-price-note {
  margin: 20px 0;
  font-size: var(--oel-fs-small);
  color: var(--oel-muted);
  font-weight: 400;
}
.oel-shop-price-note a,
.woocommerce ul.products li.product .wc-gzd-additional-info-loop a {
  color: inherit;
}


/* ===== Header ===== */
.ast-above-header-wrap .ast-builder-html-element div:last-child {
  padding-left: 24px;
}
.ast-builder-grid-row .site-header-primary-section-right {
  min-width: 165px;
}
.ast-site-header-cart .ast-woo-header-cart-info-wrap {
  white-space: nowrap;
}


/* ===== Mobile-Menü ===== */
.ast-mobile-popup-drawer .ast-mobile-popup-header {
  padding-right: 5px;
  background-color: var(--oel-sand);
}
/* Schließen-Button */
.ast-mobile-popup-drawer .menu-toggle-close .ahfb-svg-iconset svg {
  width: 24px;
  height: 24px;
}
body .ast-mobile-popup-drawer.active .menu-toggle-close:focus {
  border: 0;
}
body .ast-mobile-popup-drawer.active .menu-toggle-close:focus-visible {
  outline: thin solid var(--ast-global-color-0);
  outline-offset: -4px;
}
/* Untermenüs */
.ast-header-break-point .ast-builder-menu-1 .main-header-menu .sub-menu .menu-item > .menu-link {
  padding-left: 40px;
}
.ast-header-break-point .ast-builder-menu-1 .main-header-menu .sub-menu .sub-menu .menu-item > .menu-link {
  padding-left: 60px;
}
body .ast-mobile-popup-content .ast-submenu-expanded > .ast-menu-toggle {
  transform: none;
}
body .ast-mobile-popup-content .ast-submenu-expanded > .ast-menu-toggle .ast-arrow-svg {
  transform: rotate(180deg);
}


/* ===== Layout ===== */
#content > .ast-container {
  max-width: var(--oel-max);
  padding-left: var(--oel-gutter);
  padding-right: var(--oel-gutter);
}
.entry-content > .uagb-is-root-container.alignfull {
  padding-left: 0;
  padding-right: 0;
}
.entry-content > .uagb-is-root-container.alignfull > .uagb-container-inner-blocks-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
  padding-left: max(calc(var(--oel-gutter) + var(--oel-sbw, 0px) / 2), calc((100% - var(--oel-max)) / 2 + var(--oel-gutter)));
  padding-right: max(calc(var(--oel-gutter) + var(--oel-sbw, 0px) / 2), calc((100% - var(--oel-max)) / 2 + var(--oel-gutter)));
}
/* Abstand Header → Inhalt */
body:not(.home) .entry-content > .uagb-is-root-container:first-child {
  padding-top: var(--oel-top);
}
body:is(.single-product, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #content > .ast-container,
.page .entry-header:has(.entry-title) {
  padding-top: var(--oel-top);
}
/* Tabellen- und Icon-Listen-Blöcke */
.entry-content .wp-block-table > table {
  margin-bottom: 0;
}
.wp-block-uagb-icon-list:last-child .wp-block-uagb-icon-list-child:last-child {
  margin-bottom: 0;
}


/* ===== Bildergalerie (Karussell) ===== */
.wp-block-uagb-image-gallery .spectra-image-gallery__control-arrows--carousel {
  width: 52px;
  height: 52px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
  opacity: 1;
}
.wp-block-uagb-image-gallery .spectra-image-gallery__control-arrows--carousel.slick-prev {
  left: 12px;
}
.wp-block-uagb-image-gallery .spectra-image-gallery__control-arrows--carousel.slick-next {
  right: 12px;
}
.wp-block-uagb-image-gallery .spectra-image-gallery__control-arrows--carousel svg {
  width: 28px;
  height: 28px;
  fill: var(--ast-global-color-3);
}
.wp-block-uagb-image-gallery .spectra-image-gallery__control-arrows--carousel:is(:hover, :focus-visible) {
  background-color: #fff !important;
}


/* ===== Shop: Seitenleiste ===== */
#secondary .wc-block-product-categories {
  font-size: var(--oel-fs-meta);
  font-weight: 400;
}
#secondary .wc-block-product-categories-list-item {
  line-height: var(--oel-lh-text);
  margin-bottom: 8px;
}
#secondary .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item {
  padding-left: 0;
}
.oel-filter-toggle {
  display: none;
}


/* ===== Shop: Liste und Pagination ===== */
.woocommerce .woocommerce-result-count {
  font-size: var(--oel-fs-input);
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li {
  border-radius: var(--oel-radius);
}
.woocommerce .ast-woocommerce-container .woocommerce-pagination ul.page-numbers li a:focus {
  border-width: 0;
}
.woocommerce .ast-woocommerce-container .woocommerce-pagination ul.page-numbers li a:focus-visible {
  outline: 1px solid var(--ast-global-color-0);
}


/* ===== Shop: Produktkarten ===== */
.woocommerce-js ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  line-height: var(--oel-lh-heading);
  font-size: 22px;
  color: var(--ast-global-color-5);
  transition: color var(--oel-ease);
}
.woocommerce-js ul.products li.product .woocommerce-loop-product__title:hover,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title:hover {
  color: var(--ast-global-color-0);
}
.woocommerce-js ul.products li.product .ast-woo-product-category,
.woocommerce-page ul.products li.product .ast-woo-product-category {
  opacity: 1;
  font-weight: 400;
  font-size: var(--oel-fs-meta);
}
.woocommerce-page ul.products li.product {
  border-radius: var(--oel-radius);
  overflow: hidden;
  transition:
    border-color var(--oel-ease-card),
    box-shadow var(--oel-ease-card),
    transform var(--oel-ease-card),
    background-color var(--oel-ease-card);
}
.woocommerce-page ul.products li.product:hover {
  transform: scale(1.02);
  background-color: var(--ast-global-color-6);
}
/* Varianten-Labels (Karten und Produktseite) */
ul.products li.product .cfvsw-swatches-container,
.cfvsw-shop-variations tr td {
  justify-content: center;
}
ul.products li.product .cfvsw-swatches-container .cfvsw-swatch-inner,
.single-product div.product form.variations_form .cfvsw-swatches-container .cfvsw-swatch-inner {
  font-weight: 400;
}
/* „inkl. MwSt.“ / „zzgl. Versandkosten“ */
.woocommerce ul.products li.product .wc-gzd-additional-info-loop {
  margin: 0;
  font-size: var(--oel-fs-small);
  line-height: 1.4;
  color: var(--oel-muted);
}
.woocommerce ul.products li.product .wc-gzd-additional-info-loop.tax-info {
  margin-top: 10px;
}
.woocommerce ul.products li.product .wc-gzd-additional-info-loop:last-of-type {
  margin-bottom: 10px;
}


/* ===== Produktseite ===== */
.woocommerce-js .woocommerce-breadcrumb {
  font-size: var(--oel-fs-meta);
  line-height: var(--oel-lh-heading);
  font-weight: 400;
}
.product_title.entry-title {
  color: var(--ast-global-color-2);
}
.product_title.entry-title::first-line {
  color: var(--ast-global-color-3);
}
.woocommerce-product-details__short-description {
  margin-top: 10px;
}
/* Galerie-Lupe */
.woocommerce-js div.product div.images .woocommerce-product-gallery__trigger {
  background: var(--ast-global-color-2);
}
.woocommerce-js div.product div.images .woocommerce-product-gallery__trigger:hover {
  background: var(--ast-global-color-0);
}
.woocommerce-js div.product div.images .woocommerce-product-gallery__trigger::before {
  border-color: var(--ast-global-color-secondary);
}
.woocommerce-js div.product div.images .woocommerce-product-gallery__trigger::after {
  background: var(--ast-global-color-secondary);
}
.woocommerce-js div.product form.cart .reset_variations:hover,
.woocommerce-js div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--ast-global-color-0);
}
/* Grundpreis, Lieferzeit, MwSt.-/Versandhinweis */
.woocommerce div.product .summary :is(.price-unit, .delivery-time-info, .legal-price-info, .legal-price-info p) {
  line-height: var(--oel-lh-text);
  margin-top: 0;
  margin-bottom: 0.5em;
}
.woocommerce div.product .summary :is(.price-unit, .delivery-time-info, .legal-price-info) {
  font-size: var(--oel-fs-note);
}
.woocommerce div.product .summary .price-unit {
  font-weight: 400;
}
.woocommerce div.product .summary .price-unit:not(.wc-gzd-additional-info-placeholder)::before {
  content: "Grundpreis: ";
}
.woocommerce div.product .summary .legal-price-info {
  color: var(--oel-muted);
}
.woocommerce div.product .summary .legal-price-info p {
  font-size: inherit;
  margin-bottom: 0;
}
/* Mengenfeld */
.woocommerce div.product form.cart :is(.quantity, .quantity input.qty) {
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
}
.woocommerce div.product form.cart .quantity input.qty {
  padding-top: 0;
  padding-bottom: 0;
}
/* Tab „Produktsicherheit“ */
.woocommerce-Tabs-panel .wc-gzd-product-safety-heading {
  display: none;
}


/* ===== Mini-Warenkorb ===== */
/* Hintergrund */
.widget_shopping_cart_content :is(.shipping-costs-cart-info, .total) {
  padding: 0.75rem 1.25rem !important;
  border-top: 0 !important;
}
.widget_shopping_cart_content .total {
  margin-bottom: 0.5rem !important;
}
/* Hinweiszeilen unter der Zwischensumme */
.woocommerce-js .widget_shopping_cart_content p.total.wc-gzd-total-mini-cart {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  margin-bottom: 0 !important;
}
.woocommerce-js .widget_shopping_cart_content p.total.wc-gzd-total-mini-cart:has(+ p.wc-gzd-total-mini-cart) {
  border-bottom: 0;
  padding-bottom: 0 !important;
}
.woocommerce-js .widget_shopping_cart_content p.total.wc-gzd-total-mini-cart + p.wc-gzd-total-mini-cart {
  padding-top: 0 !important;
}
.wc-gzd-cart-info.unit-price-cart {
  display: block;
  margin-top: 0;
}


/* ===== Warenkorb ===== */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  font-size: 0.818182rem;
  line-height: 1;
  padding: 17px 34px;
}
.woocommerce-cart-form__cart-item :is(td.product-name, td.product-price, td.product-subtotal) {
  line-height: var(--oel-lh-tight);
}
.woocommerce-cart table.shop_table.cart :is(th, td):is(.product-price, .product-subtotal),
.woocommerce-cart .cart_totals table td {
  text-align: right;
}
/* Warenkorb-Summe */
.woocommerce-cart .cart_totals table th {
  width: 1%;
  white-space: nowrap;
  overflow-wrap: normal;
}
.woocommerce-cart .cart_totals ul#shipping_method li:not(.elementor-widget-woocommerce-cart #shipping_method li) {
  padding-top: 0;
  padding-bottom: 0;
}
.woocommerce-cart .cart_totals table :is(th, td) {
  padding-left: 11px;
  padding-right: 11px;
}


/* ===== Warenkorb und Kasse: Summen ===== */
:is(.woocommerce-checkout-review-order-table tfoot, .cart_totals table) tr.order-total :is(th, td) {
  font-size: 1.2em;
  font-weight: 700;
}
:is(.woocommerce-checkout-review-order-table tfoot, .cart_totals table) tr.order-total .amount {
  font-weight: 700;
}
:is(.woocommerce-checkout-review-order-table tfoot, .cart_totals table) tr:not(.order-total) :is(th, td, td *, ul#shipping_method .amount),
:is(.woocommerce-checkout-review-order-table tfoot, .cart_totals table) tr:not(.order-total) td::before {
  font-weight: inherit;
}
:is(.woocommerce-checkout-review-order-table tfoot, .cart_totals table) tr.order-tax :is(th, td) {
  font-size: var(--oel-fs-note);
  color: var(--oel-muted);
}


/* ===== Kasse ===== */
.woocommerce .woocommerce-checkout-review-order {
  padding: 1rem !important;
  border-width: 1px !important;
}
/* Überschriften */
.woocommerce-checkout :is(#customer_details h3, h3#order_review_heading) {
  font-size: 1.63636rem !important;
  font-weight: 600 !important;
}
.woocommerce-checkout-review-order h3#order_review_heading {
  line-height: var(--oel-lh-heading);
  margin-bottom: 20px !important;
  width: 100% !important;
  border: 0 !important;
  padding: 0 !important;
}
.woocommerce-checkout-review-order-table {
  margin-top: 1rem !important;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 9px 12px !important;
}
.woocommerce-checkout #order_comments {
  min-height: 176px;
}
/* Feldbezeichnungen */
.woocommerce-checkout form .form-row label:not(.checkbox) {
  font-size: var(--oel-fs-label);
}
/* Zahlungsarten: Icons */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 11px;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label img {
  float: none;
  order: 1;
  margin: 0 0 0 auto;
  max-height: 24px;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > .payment_box {
  flex-basis: 100%;
}
/* Bestellübersicht: Produktzeilen */
.woocommerce-checkout form #order_review table.woocommerce-checkout-review-order-table tr.cart_item td.product-name {
  display: table-cell;
}
.woocommerce-checkout form #order_review table.woocommerce-checkout-review-order-table tr.cart_item :is(td.product-name, td.product-total) {
  vertical-align: top;
  line-height: var(--oel-lh-tight);
}
table.woocommerce-checkout-review-order-table tr.cart_item td.product-name .wc-gzd-cart-item-name-wrapper {
  display: block;
}
table.woocommerce-checkout-review-order-table tr.cart_item td.product-name .product-quantity {
  display: inline;
}
/* Checkboxen: Text neben der Box */
.woocommerce-checkout form label.checkbox {
  position: relative;
  display: block;
  padding-left: 32px;
  line-height: var(--oel-lh-text);
}
.woocommerce-checkout form label.checkbox > input[type='checkbox'] {
  position: absolute;
  top: calc((1lh - 20px) / 2);
  left: 0;
  margin: 0;
  font: inherit;
  line-height: inherit;
}
/* Rechtliche Checkboxen */
.woocommerce .legal {
  padding-top: 1rem !important;
}
.woocommerce .legal,
.woocommerce .legal * {
  line-height: var(--oel-lh-text) !important;
}
#order_review .wc-gzd-checkbox-placeholder p.form-row.legal label.checkbox {
  display: block;
}
/* Erinnerungs-Einwilligung, Gewährleistungs-Hinweis */
.woocommerce-js form .form-row.oel-ca-consent {
  margin-top: 24px;
}
.woocommerce-js form .form-row.oel-ca-consent label {
  display: block;
  font-size: var(--oel-fs-meta);
  font-weight: 400;
  line-height: var(--oel-lh-text);
}
form.woocommerce-checkout .wc-gzd-legal-guarantee {
  margin-top: 36px;
}


/* ===== Bestellbestätigung ===== */
.woocommerce-order-details h2,
.woocommerce-customer-details h2 {
  font-size: 2.25rem !important;
}
.woocommerce-Address h2,
.woocommerce-column--billing-address h2,
.woocommerce-column--shipping-address h2 {
  font-size: 1.75rem !important;
  margin-bottom: 0.25rem !important;
}
.woocommerce-order-details h2.woocommerce-order-details__title,
.woocommerce-customer-details h2.woocommerce-column__title {
  padding: 16px var(--oel-cell-x) !important;
}
/* Summenzeilen „Gesamt“ und MwSt. */
.woocommerce-order-details tfoot tr:has(.oel-total--order_total) :is(th, td, td *),
.woocommerce-order-details tfoot tr:has(.oel-total--order_total) td .woocommerce-Price-amount {
  font-weight: 700;
}
.woocommerce-order-details tfoot tr:has(.oel-total[class*="oel-total--tax_"]) :is(th, td) {
  font-size: var(--oel-fs-note);
  padding: 0.875em 1.25em !important;
}


/* ===== Mein Konto ===== */
/* Anmeldung */
.woocommerce-form-login .woocommerce-form-login__rememberme,
.woocommerce-form-login .woocommerce-LostPassword {
  margin-bottom: 16px;
}
/* Bestellungen */
.woocommerce-account .woocommerce-orders-table :is(th, td) {
  font-size: var(--oel-fs-meta);
}
.woocommerce-account .woocommerce-orders-table .woocommerce-button.button {
  font-size: var(--oel-fs-meta);
  line-height: 1.2;
  padding: 10px 18px;
  margin: 3px 6px 3px 0;
}
/* Kontodetails */
.woocommerce-account .woocommerce form #account_display_name_description {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: #757575;
}
.woocommerce-account .woocommerce form #account_display_name_description em {
  font-style: normal;
  font-weight: 400;
}
.woocommerce-account .woocommerce-EditAccountForm fieldset {
  margin-top: 48px;
}
.woocommerce-account .woocommerce-EditAccountForm fieldset legend {
  font-size: 24px;
  font-weight: 700;
  padding-bottom: 8px !important;
  margin-bottom: 16px;
}


/* ===== Footer ===== */
.site-footer .ast-builder-grid-row-container-inner {
  padding-left: 20px;
  padding-right: 20px;
}
body:has(.ast-sticky-add-to-cart.bottom) .site-below-footer-wrap {
  padding-bottom: 80px;
}
/* Zahlungslogos */
#block-32 {
  margin-bottom: 20px;
}
.site-footer .wp-block-group:has(> .zm) {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.site-footer .zm img {
  max-width: 100%;
  height: auto;
}
#astra-footer-menu li a:hover {
  text-decoration: underline;
}

/* Banner Betriebsruhe (Holiday Mode) */
body > :is(.woocommerce-info, .woocommerce-error) {
  margin: 0;
  border-top: 0;
  background-color: var(--oel-notice);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: var(--oel-lh-text);
}
body > :is(.woocommerce-info, .woocommerce-error)::before {
  color: #fff;
}


/* =========================================================
   Media Queries
   ========================================================= */

/* ===== ab 922px (Desktop) ===== */
@media (min-width: 922px) {
  /* Shop: Seitenleiste */
  body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #secondary {
    margin-top: 32px;
  }

  /* Kasse: Bestellübersicht */
  .woocommerce-checkout-review-order-table thead th {
    font-size: var(--oel-fs-input);
  }
  .woocommerce-checkout-review-order-table :is(th, td).product-total {
    width: 1%;
    white-space: nowrap;
  }
  .woocommerce-checkout form #order_review table.woocommerce-checkout-review-order-table tr.cart_item td.product-name {
    position: relative;
    height: 78px;
    padding-left: 84px !important;
    font-size: var(--oel-fs-input);
  }
  table.woocommerce-checkout-review-order-table tr.cart_item td.product-name .wc-gzd-cart-item-thumbnail {
    position: absolute;
    top: 9px;
    left: 12px;
    margin-right: 0;
  }

  /* Kasse: Gewährleistungs-Hinweis */
  form.woocommerce-checkout > .wc-gzd-legal-guarantee {
    float: right;
    clear: right;
    width: 40%;
  }
}

/* ===== 545–921px (Tablet) ===== */
@media (min-width: 545px) and (max-width: 921px) {
  /* Bestellbestätigung: Übersicht, Bankverbindung */
  .woocommerce-order ul.order_details > li {
    margin-bottom: 16px;
  }
}

/* ===== bis 921px (Tablet und Handy) ===== */
@media (max-width: 921px) {
  :root {
    --oel-top: 40px;
    --oel-fs-label: 15px;
  }

  /* Shop: Seitenleiste einklappbar */
  .ast-woocommerce-container > #secondary {
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
  }
  .oel-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    color: var(--ast-global-color-2);
    background-color: var(--ast-global-color-6);
    border: 1px solid var(--ast-border-color);
  }
  .oel-filter-toggle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }
  .oel-filter-open .oel-filter-toggle::after {
    transform: rotate(-135deg);
  }
  #secondary .ast-filter-wrap {
    display: none;
    padding-top: 16px;
  }
  #secondary.oel-filter-open .ast-filter-wrap {
    display: block;
  }

  /* Warenkorb */
  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    padding: 12px 25px;
  }
  .woocommerce-cart .cart_totals table :is(th, td) {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Kasse */
  .woocommerce-checkout :is(#customer_details h3, h3#order_review_heading) {
    font-size: 30px !important;
  }
  .woocommerce-shipping-fields {
    margin-top: 32px;
  }
  form.woocommerce-checkout {
    display: flex;
    flex-direction: column;
  }
  form.woocommerce-checkout :is(#customer_details, #customer_details > .col-1, #customer_details > .col-2, .woocommerce-additional-fields) {
    display: contents;
  }
  form.woocommerce-checkout .woocommerce-billing-fields {
    order: 1;
  }
  form.woocommerce-checkout .woocommerce-shipping-fields {
    order: 2;
    margin-bottom: 36px;
  }
  form.woocommerce-checkout :is(.woocommerce-additional-fields > h3, .woocommerce-additional-fields__field-wrapper) {
    order: 3;
  }
  form.woocommerce-checkout #order_review {
    order: 4;
    margin-top: 36px;
  }
  form.woocommerce-checkout .wc-gzd-legal-guarantee {
    order: 5;
  }
  /* Kasse: Bestellübersicht randlos */
  form.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table {
    width: calc(100% + 2 * var(--oel-cell-x));
    margin-left: calc(-1 * var(--oel-cell-x));
    margin-right: calc(-1 * var(--oel-cell-x));
  }
  form.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table :is(th, td):first-child {
    padding-left: var(--oel-cell-x) !important;
  }
  form.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table :is(th, td):last-child {
    padding-right: var(--oel-cell-x) !important;
  }

  /* Mein Konto */
  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 32px;
  }
  .woocommerce-account table.woocommerce-orders-table.shop_table {
    border: 0;
  }
  .woocommerce-account .woocommerce-orders-table tbody tr {
    border: 1px solid var(--ast-border-color);
    margin-bottom: 24px;
  }
  .woocommerce-account .woocommerce-orders-table tbody tr:last-child {
    margin-bottom: 0;
  }
  .woocommerce-account .woocommerce-orders-table tbody tr > :first-child {
    border-top: 0;
  }
  .woocommerce-account .woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number {
    display: block;
    text-align: right;
  }
  .woocommerce-account .woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number::before {
    content: attr(data-title) ": ";
    float: left;
    font-weight: 700;
  }

  /* Footer */
  #block-32 p.has-text-align-left {
    text-align: center;
  }
  /* Zahlungslogos zentriert */
  .site-footer .wp-block-group:has(> .zm) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
  }
}

/* ===== bis 781px ===== */
@media (max-width: 781px) {
  /* Footer */
  .site-footer .ast-builder-grid-row-container-inner {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ===== bis 767px ===== */
@media (max-width: 767px) {
  :root {
    --oel-top: 32px;
  }

  /* Seiten: gestapelte Spalten */
  .entry-content > .uagb-is-root-container {
    padding-bottom: 40px;
  }
  .entry-content > .uagb-is-root-container > .uagb-container-inner-blocks-wrap {
    row-gap: 30px !important;
  }
  .entry-content > .uagb-is-root-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container {
    padding-left: 0;
    padding-right: 0;
  }
  .wp-block-uagb-container .wp-block-embed {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .wp-block-uagb-info-box.uagb-infobox-icon-above-title:not(.uagb-block-f401b2d4) .uagb-ifb-image-content {
    margin-bottom: 20px;
  }
}

/* ===== bis 544px (Handy) ===== */
@media (max-width: 544px) {
  :root {
    --oel-gutter: 24px;
    --oel-fs-label: 14px;
  }

  /* Footer */
  #block-32 p.has-text-color {
    font-size: 24px !important;
  }

  /* Shop: Pagination */
  .woocommerce nav.woocommerce-pagination ul.page-numbers {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
  }
  .woocommerce nav.woocommerce-pagination ul.page-numbers li {
    flex: 1 1 0;
    min-width: 0;
    max-width: 44px;
    margin: 0;
  }
  .woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0;
    font-size: var(--oel-fs-meta);
  }

  /* Produktseite: Button und Tabs */
  .woocommerce div.product form.cart .button.single_add_to_cart_button {
    width: auto;
  }
  .woocommerce-js div.product .woocommerce-tabs ul.tabs li {
    border-bottom: 1px solid var(--ast-global-color-0) !important;
  }
  .woocommerce-js div.product .woocommerce-tabs ul.tabs li.product_safety_tab {
    display: block !important;
  }
  .woocommerce-js div.product .woocommerce-tabs ul.tabs li a {
    padding-left: 12px;
    padding-right: 12px;
  }
  .woocommerce-js div.product .woocommerce-tabs ul.tabs li.active,
  .woocommerce-js div.product .woocommerce-tabs ul.tabs li a:hover {
    background-color: var(--ast-global-color-6);
  }
  .woocommerce-js div.product .woocommerce-tabs ul.tabs li.active::before {
    display: none;
  }
  .woocommerce-js div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--ast-global-color-0);
  }

  /* Warenkorb */
  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    font-size: 0.727273rem;
    padding: 12px 20px;
  }
  .woocommerce-cart .cart_totals table :is(th, td) {
    padding-left: 9px;
    padding-right: 9px;
  }

  /* Kasse */
  .woocommerce-checkout :is(#customer_details h3, h3#order_review_heading) {
    font-size: 24px !important;
  }
  table.woocommerce-checkout-review-order-table tr.cart_item td.product-name .wc-gzd-cart-item-thumbnail {
    margin: 0 0 8px;
  }
  form.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table :is(th, td):first-child {
    padding-right: 0 !important;
  }
  form.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table :is(th, td):last-child {
    padding-left: 0 !important;
  }

  /* Bestellbestätigung */
  .woocommerce-order ul.order_details > li {
    float: none;
    width: 100%;
    margin: 0;
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px dashed var(--ast-border-color);
  }
  .woocommerce-order ul.order_details > li:first-child {
    padding-top: 0;
  }
  .woocommerce-order ul.order_details > li:last-child {
    border-bottom: 0;
  }
  .woocommerce-order-details h2.woocommerce-order-details__title {
    font-size: 30px !important;
  }
  .woocommerce-customer-details h2.woocommerce-column__title {
    font-size: 24px !important;
  }

  /* Banner Betriebsruhe */
  body > :is(.woocommerce-info, .woocommerce-error) {
    font-size: var(--oel-fs-small);
    line-height: var(--oel-lh-tight);
  }
}
