/*
Theme Name: A-DUR Child
Template: generatepress
Version: 1.0.0
*/

* {
  font-family: Inter;
}

h1 {
    font-weight: 600;
}

h2 {
    font-weight: 600;
}

body {
  background-color: #f4f4f4;
}

div.site {
  background-color: white;
}


a {
  color: #437515;
}

.category a {
    text-decoration: none!important;
}

h2.woocommerce-loop-product__title {
    text-align: center!important;
}

.wc-block-product, .products .product  {
          transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 10px;
      display: flex;
      flex-direction: column;
  justify-content: center;
  align-items: center;
}

.wc-block-product, .products .product {
    background-color: white!important;
    border-radius: 20px!important;
    padding: 20px 0!important;
    border: 1px solid #6e6e6e!important;
}

.wc-block-product:hover, .products  .product:hover {
  transform: translateY(-4px)!important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12)!important;

}

.products  .product a {
          display: flex!important;
      flex-direction: column;
  justify-content: center;
  align-items: center;
}

.products  .product a span.price {
margin-top: 10px!important;
}

.wc-block-product h2 a, .products  .product h2 a, .products  .product a h2 {
color: black!important;
font-size: 17px!important;
}

.wc-block-product bdi, .products  .product bdi, .products  .product span {
color: black!important;
font-size: 17px;
}

.wc-block-product button span, .products  .product button span, .products  .product .button {
    font-size: 17px!important;
    color: #437515!important;
    border-radius: 50px;
    margin: 10px auto!important;

}

button.wp-block-button__link {
    padding-top: 0!important;
    padding-bottom: 0!important;
}

.wc-gzd-additional-info {
    display: none!important;
}

.category-overview {
    padding: 0;
    border: 1px solid #6e6e6e;
    border-radius: 25px;
    overflow: hidden;
    text-decoration: none!important;
      transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    background: radial-gradient(
  circle at bottom,
  rgba(233, 233, 233, 1) 0%,
  rgba(0, 0, 0, 0) 70%
);
}

.category-overview:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.category-overview img {
    padding: 30px;
}

.category-name {
    margin-top: -30px;
    display: block;
    display: flex;
    justify-content: center;
}

a .category-overview .category-name p {
        background-color: #daf4c2;
    color: #437515;
    text-align: center;
    font-weight: 600;
    text-decoration: none!important;
    font-size: 25px;
    border-radius: 50px;
    padding: 10px 20px;
    display: inline;
    margin: 10px;
}

.related {
    padding-top: 60px;
}

.single_add_to_cart_button, .add_to_cart_button  {
  background-color: #daf4c2!important;
  color: black!important;
  font-weight: 600!important;
}

input[type=number] {
  background-color: white;
  border-radius: 10px;
  border: 1px solid #6e6e6e;
  width: 100px!important;
}

.tier-pricing-summary-table__top {
  border-top: none;
}

.tier-pricing-summary-table span, .tier-pricing-summary-table div {
  font-weight: 400!important;
}

bdi {
  color: #437515;
}

.price {
    margin-top: 20px!important;
    margin-bottom : 10px!important;
}

.animation,
.animation-2,
.animation-3 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate {
  opacity: 1;
  transform: translateY(0);
}


.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .one-container .container, .separate-containers .paging-navigation, .inside-page-header {
  background-color: rgba(255,255,255,0);
}

.woocommerce img {
    max-width: none!important;
}

/* AT/DE Anfrage: Verstecke Versand auch per CSS als Fallback */
body.at-de-inquiry .woocommerce-shipping-totals,
body.at-de-inquiry .shipping,
body.at-de-inquiry .order-shipping,
body.at-de-inquiry .woocommerce-shipping-fields,
body.at-de-inquiry h3:contains("Versandoptionen") {
    display: none !important;
}

.woocommerce-product-attributes-item__value {
  padding-left: 5px!important;
  font-style: normal!important;
}

.woocommerce div.product form.cart {
  display: flex!important;
  gap: 10px!important;
  align-items: center!important;
  margin-bottom: 10px!important;
}

.single_add_to_cart_button {
  border-radius: 50px!important;
}

.wc-block-mini-cart__badge {
  background-color: #daf4c2!important;
  color: black;
  font-weight: 400!important;
}

.woocommerce-breadcrumb {
    font-weight: 600!important;
}

.woocommerce-breadcrumb a {
  font-weight: 400!important;
  text-decoration: none!important;
}


/* Summary Container (deine zwei Spalten) breiter machen */
.woocommerce div.product div.summary {
    width: 60%;
    float: right;
}

/* Clearfix für Float */
.woocommerce div.product::after {
    content: "";
    display: table;
    clear: both;
}

.product_title {
    font-weight: 600!important;
    font-size: 36px!important;
}



/* Produktfoto Container */
.woocommerce div.product div.images.woocommerce-product-gallery {
    width: 40% !important;
    float: left;
    margin-right: 30px;
}

@media (max-width: 1400px) { 
/* Produktfoto Container */
.woocommerce div.product div.images.woocommerce-product-gallery {
    width: 100% !important;
    float: left;
    margin-right: 0;
}
}

.woocommerce-product-gallery {
    width: 100%;
}

.woocommerce-product-gallery__wrapper {
    width: 100%;
}

.woocommerce-product-gallery__image {
    width: 100%;
    display: block;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
}

/* Summary Container breiter machen - mit höherer Spezifität */
.woocommerce div.product div.summary.entry-summary {
    width: 55% !important;
    max-width: 55% !important;
    float: right;
}

/* Clearfix für Float */
.woocommerce div.product::after {
    content: "";
    display: table;
    clear: both;
}

.product_title {
    font-weight: 600!important;
    font-size: 32px!important;
}

/* Produkttitel */
.custom-product-title {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.3;
}

/* Zwei-Spalten Container */
.custom-two-column-layout {
    display: flex !important;
    gap: 50px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px 0;
}

/* Linke Spalte - flexibel */
.custom-left-column {
    flex: 1 !important;
    width: auto !important;
    min-width: 0;
}

.custom-left-column h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.custom-left-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-left-column li {
    padding: 8px 0;
    color: #666;
}

/* Rechte Spalte - flexibel */
.custom-right-column {
    flex: 1.7 !important;
    width: auto !important;
    min-width: 0;
}

/* Preis und Logo Section */
.custom-price-logo-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.custom-price-area {
    flex: 1;
}

.custom-price-area .price {
    font-weight: 600;
    color: #437515!important;
    line-height: 1;
    margin-top: 0!important;
}

.custom-price-area .woocommerce-Price-amount {
  font-size: 30px;
  }

.custom-manufacturer-logo {
    flex: 0 0 auto;
    max-width: 180px;
    margin-left: 30px;
}

.woocommerce .custom-manufacturer-logo img {
      object-fit: contain!important;
          max-width: 180px!important;
}

/* Warenkorb Wrapper */
.custom-cart-wrapper {
    display: block;
    width: 100%;
}

/* Warenkorb Form */
.custom-cart-wrapper form.cart {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Staffelpreis-Tabelle (vom Plugin) */
.custom-cart-wrapper .tpt__tiered-pricing {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    order: 1 !important;
}

.custom-cart-wrapper .clear:first-of-type {
    order: 2;
}

/* Quantity und Button */
.custom-cart-wrapper .quantity {
    display: inline-block;
    margin-right: 10px;
    order: 4;
}

.custom-cart-wrapper .single_add_to_cart_button {
    display: inline-block;
    order: 4;
}

.custom-cart-wrapper form.cart > * {
    order: 3;
}

/* Styling der Staffelpreis-Tabelle */
.custom-cart-wrapper .tiered-pricing-table {
    width: 100%;
    margin-bottom: 20px;
}

.tiered-pricing-table td, .tiered-pricing-table th{
  border: 1px solid #6e6e6e;
}

/* Legal Price Info nach unten verschieben */
.custom-two-column-layout + .legal-price-info {
    display: none; /* Verstecken, da es schon oben im Preis-Bereich ist */
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce div.product div.images.woocommerce-product-gallery,
    .woocommerce div.product div.summary.entry-summary {
        width: 100% !important;
        max-width: 100% !important;
        float: none;
        margin-right: 0;
    }
    
    .custom-two-column-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .custom-left-column,
    .custom-right-column {
        width: 100% !important;
    }
    
    .custom-price-logo-section {
        flex-wrap: wrap;
    }
    
    .custom-manufacturer-logo {
        margin-left: 0;
        margin-top: 15px;
    }
}

.custom-price-logo-section {
  border-bottom: none;
  margin-bottom: 0;
}

.tiered-pricing-table td {
  padding: 5px 10px!important;
}

.woocommerce table.shop_table {
  border-radius: 0;
}

/* Überschreibe die aktive Zeile - mehrere Varianten für maximale Kompatibilität */
.custom-cart-wrapper table[data-tiered-pricing-table] tr.tiered-pricing--active td,
table.shop_table.tiered-pricing-table tr.tiered-pricing--active td,
[id][data-tiered-pricing-table] tr.tiered-pricing--active td .woocommerce-Price-amount amount {
    background-color: #daf4c2 !important;
    color: black!important;
}

.tiered-pricing--active .amount {
      color: black!important;
}

form.cart {
  display:flex;
  flex-direction: row!important;
  justify-content: start;
    flex-wrap: wrap;
}

form.cart .tier-pricing-summary-table {
  flex-basis: 100%;
  padding: 0 10px;
  border-top: 1px solid #6e6e6e;
  border-bottom: 1px solid #6e6e6e;
}/* Produktbeschreibung unter dem Foto - LINKS */

.custom-product-description-below-image {
    width: 60%; /* 60% Breite */
    float: left; /* Links floaten */
    padding-right: 30px; /* Abstand zum Download-Bereich */
    clear: both;
}

.custom-product-description-below-image h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    margin-top: 0;
}

.description-content {
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.description-content ul {
    margin-bottom: 0;
}

.description-content h2 {
    margin-top: 20px!important;
}

/* Download Section neben Produktbeschreibung - RECHTS */
.custom-product-downloads {
    width: 32.5%; /* 35% Breite */
    float: right; /* Rechts floaten */
    border-radius: 5px;
}

@media (max-width: 900px) {
.custom-product-downloads {
    margin-top: 30px;
}
}

.custom-product-downloads h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.download-item:hover {
    border-color: #437515;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-icon {
    color: #437515;
    flex-shrink: 0;
}

.download-link {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.download-link:hover {
    color: #437515;
}

.file-type {
    font-size: 11px;
    color: #666;
    background: #e8f4e8;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
}

/* Clearfix - damit der Float aufgehoben wird */
.woocommerce-tabs::before,
.custom-product-downloads::after {
    content: "";
    display: table;
    clear: both;
}

/* Oder falls das nicht funktioniert, füge ein Clearfix nach beiden Elementen hinzu */
.woocommerce div.product {
    overflow: auto; /* Alternative Clearfix-Methode */
}

/* Responsive */
@media (max-width: 768px) {
    .custom-product-downloads,
    .custom-product-description-below-image {
        width: 100%;
        float: none;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}

.wpforms-submit {
  color: #437515 !important;
  background-color: #daf4c2 !important;
  border: 2px solid #daf4c2 !important;
  padding: 15px 25px !important;
  border-radius: 50px !important;
  font-size: clamp(0.875rem, 2vw, 1.125rem) !important;
  margin-top: 20px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background-color 0.3s !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  outline: none !important;
}

.gb-accordion__item {
    border-top: none!important;
    border-left: none!important;
    border-right: none!important;
}

ul.wc-block-product-template__responsive {
    margin: 0!important;
}

.wp-block-separator {
    height: 1px;
    border: none;
    background-color: #bebebe;
    max-width: 300px;
    margin: 0 auto;
}

select.orderby {
    background-color: white;
    border-radius: 50px;
    border: 1px solid #6e6e6e!important;
}

ul.products {
    background-color: #f9f9f9;
    margin: 0 -40px 0 -40px!important;
    padding: 40px 40px 0 40px!important;
}

.related ul.products {
    margin: 0!important;
    padding: 0!important;
    background-color: white;
}

.footer-links a {
    color: black;
    text-decoration: none!important;
}