/*
 * Theme entry point for www.co2-druckminderer.de (Plenty webstore 20, plentyId
 * 51628 «BODE»; stand stage-24, owner Oleg 2026-11-12). The source runs the
 * co2-flasche.de template (Ceres + ichzapfetheme, plugin set 317 vs 313): its
 * main.css differs from co2-flasche's only by the primary colour #538b21 (green
 * instead of blue), the benefit icons and a commented-out menu icon (diff of
 * both main.css files, 2026-11-12). Brand chrome (logo, favicon, hero, tiles,
 * benefits) is committed here; catalog images stay in the shared `tappetarn`
 * volume. Keep overrides here, not behind theme conditionals in shared files.
 */
:root {
  --site-language: de;
}

/* Phones: the compact category card of the Ceres template, as co2-flasche.de
   and zapfkopf.de (same template; copied from the co2-flasche theme). */
@media (max-width: 575.98px) {
  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .cmp-product-thumb {
    padding: 11.2px;
    overflow: hidden;
    line-height: 21px;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .product-card__frame {
    width: 100%;
    height: auto;
    min-height: 120px;
    line-height: 21px;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .thumb-image,
  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .thumb-image .prop-1-1,
  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .thumb-image a {
    width: 120px;
    height: 120px;
    aspect-ratio: auto;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .thumb-image {
    float: left;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .thumb-image img {
    width: 120px;
    height: 120px;
    margin: 0;
    padding: 0;
    object-fit: contain;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .thumb-image__nav,
  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .reference-carousel-dots {
    display: none;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .thumb-content {
    display: inline-block;
    width: calc(100% - 120px);
    min-height: 120px;
    padding: 0 11.2px;
    vertical-align: top;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .thumb-title {
    width: 100%;
    min-height: 0;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .thumb-meta {
    width: 70%;
    margin-top: 7px;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .thumb-meta:has(.price-view-port) {
    margin-top: 8.75px;
  }

  /* Карточка без отзывов приходит с ПУСТЫМ блоком звёзд (общий шаблон,
     2026-09-24), а не с нулевой заливкой: признак — отсутствие заливки. */
  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .feedback-stars-average:not(:has(.feedback-stars-overlay-wrap)) {
    display: none;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .prices {
    width: 100%;
  }

  /* In the captured Ceres card the stock mark is painted to the right of the
     price column and therefore does not make the crossed-price row wrap. */
  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .thumb-meta .has-availability {
    position: relative;
    display: block;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .thumb-meta .price-view-port {
    height: 21px;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .thumb-meta .has-availability > .availability {
    position: absolute;
    top: 50%;
    right: auto;
    left: calc(100% + 23px);
    width: 28px;
    height: 30px;
    transform: translateY(-50%);
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .prices .price {
    font-size: 29.4px;
    line-height: 44.1px;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .product-card__mobile-link,
  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .vat {
    width: 100%;
  }

  body[data-theme="co2-druckminderer-de"] .legacy-category-grid .product-card__mobile-link {
    margin-top: 5px;
    border: 0;
    font-size: 14px;
    line-height: 17.5px;
  }
}

/* Category price 29.4px at every width, as on the co2-flasche.de template. */
body[data-theme="co2-druckminderer-de"] .legacy-category-grid .prices .price {
  font-size: 29.4px;
  line-height: 44.1px;
}

/*
 * Primary colour #538b21 of the source (ichzapfetheme main.css of set 317,
 * 25 rules; `--primary` of its Ceres config). The shared stylesheet paints the
 * captured Ceres orange #f29400 in 85 rules, most of them literal values, so
 * each is repeated here under this theme with the green — derived mechanically
 * from public/css/storefront.css on 2026-11-12 (every rule with #f29400,
 * #d97700 or rgba(242,148,0,…); rules of other themes skipped). Hover shade
 * #456f1b is the same darkening as #f29400 → #d97700. When the shared
 * stylesheet gains a new orange rule, this list has to follow.
 */
body[data-theme="co2-druckminderer-de"]{--orange:#538b21;--orange-dark:#456f1b}
html body[data-theme="co2-druckminderer-de"] .legacy-address-box__button{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-modal__save{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-checkout-line__name{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-checkout-line__bundle a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-gtc-check .legacy-legal-link{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-place-order{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .service-bar__inner b,html body[data-theme="co2-druckminderer-de"] .service-bar__inner a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .account-tools{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .account-tools .cart-link{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .cookie-switches a{color:#538b21}
@media(max-width:991.98px){
  html body[data-theme="co2-druckminderer-de"] .service-bar__inner .service-phone{color:#538b21}
}
html body[data-theme="co2-druckminderer-de"] .product-card__quick:hover:before{border-color:transparent #538b21 transparent transparent}
html body[data-theme="co2-druckminderer-de"] .thumb-title:hover{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .feedback-stars{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .prices .price{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-breadcrumb .fa{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-pagination a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-pagination a.active{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-bundle a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-product-tabs a.is-active{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .withdraw-link{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .service-links a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .service-menu:hover>button{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .service-menu>ul a:hover{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .reference-header .header-tools .search button{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .reference-header .account-tools>a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .reference-header .account-tools .cart-link{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .reference-header .main-nav__item>a:hover{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .main-nav__groups .level1>a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .main-nav__groups a:hover{color:#538b21}
@media(max-width:900.98px){
  html body[data-theme="co2-druckminderer-de"] .legacy-products .prices .price{color:#538b21}
}
@media(min-width:901px){
  html body[data-theme="co2-druckminderer-de"] .legacy-products .prices .price{color:#538b21}
}
html body[data-theme="co2-druckminderer-de"] .legacy-seo a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-footer-grid h5,html body[data-theme="co2-druckminderer-de"] .footer-payment h5{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .withdraw-link{border:1px solid #538b21;background:#538b21}
html body[data-theme="co2-druckminderer-de"] .footer-privacy{border:1px solid #538b21;background:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-search-products .prices .price{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-coupon button{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-checkout-button{background:#538b21}
@media(min-width:901px){
  html body[data-theme="co2-druckminderer-de"] .legacy-product-buybox .buy-row .button{border:1px solid #538b21;background:#538b21}
}
html body[data-theme="co2-druckminderer-de"] .legacy-product-tabs a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-product-recommendations .prices .price{color:#538b21}
@media(max-width:900.98px){
  html body[data-theme="co2-druckminderer-de"] .legacy-product-tabs a{color:#538b21}
}
@media(max-width:900.98px){
  html body[data-theme="co2-druckminderer-de"] .legacy-product-buybox .buy-row .button{border:1px solid #538b21;background:#538b21}
}
html body[data-theme="co2-druckminderer-de"] .reference-page-breadcrumb .fa{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .reference-content-page a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .reference-content-page .btn-primary,html body[data-theme="co2-druckminderer-de"] .reference-content-page .btn-appearance{border-color:#538b21;background:#538b21}
html body[data-theme="co2-druckminderer-de"] .reference-content-page .btn-link{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .reference-content-page .widget-title-bar.widget-primary>.widget-inner{background:#538b21!important}
html body[data-theme="co2-druckminderer-de"] .reference-content-page .widget-accordion .card-header{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-hero-carousel__indicators li{border:1px solid #538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-hero-carousel__indicators li.is-active{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-hero-carousel__control{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-hero-carousel__control:hover{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .header-navigation .main-nav .main-nav__groups a:hover{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .header-navigation .main-nav .main-nav__groups .level1>a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-not-found__home{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .reference-page-breadcrumb a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .account-access-form input:focus{box-shadow:0 0 0 3px rgba(83,139,33,.16)}
html body[data-theme="co2-druckminderer-de"] .pilot-orders-table a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .konto-order-back:hover{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .konto-order-status-card{border-left:4px solid #538b21}
html body[data-theme="co2-druckminderer-de"] .konto-order-status-card__icon{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .wishlist-item-card__add{border:1px solid #538b21;background:#538b21}
html body[data-theme="co2-druckminderer-de"] .cookie-switches .custom-control-input:checked~.custom-control-label:before{background:#538b21;border-color:#538b21}
@media(max-width:575.98px){
  html body[data-theme="co2-druckminderer-de"] .reference-header .account-tools .cart-link{background:#538b21}
}
html body[data-theme="co2-druckminderer-de"] .selected-filter.reset-all{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .mobile-navigation{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-confirmation__facts dd a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-confirmation__pay{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-confirmation__home .button{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-confirmation__crumbs a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-vat__link{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-confirmation__document .button{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .product-lightbox__buy-price{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .product-lightbox__buy-actions .button--outline{border:2px solid #538b21;color:#538b21}
html body[data-theme="co2-druckminderer-de"] .product-lightbox__thumbs button.is-active{border-color:#538b21}
html body[data-theme="co2-druckminderer-de"] .search-suggest__price{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-breadcrumb .breadcrumb-item a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .reference-header .account-tools .language-toggle:hover,html body[data-theme="co2-druckminderer-de"] .reference-header .account-tools .language-toggle:focus-visible,html body[data-theme="co2-druckminderer-de"] .reference-header .account-tools .language-toggle[aria-expanded="true"]{background:#538b21}
html body[data-theme="co2-druckminderer-de"] .language-settings{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .language-settings__title strong{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .language-settings__list a{color:#538b21}
html body[data-theme="co2-druckminderer-de"] .legacy-legal-guarantee__link{color:#538b21}
body[data-theme="co2-druckminderer-de"]{--method-accent:#538b21}
