/*
Theme Name:     Layout
Version:        1.0.0
Description:    Theme for amuel.ch
Author:         artesmedia.ch
Author URI:     https://artesmedia.ch/
Template:       enfold
*/


/* rough & ready
--------------------------------------------------------------*/

.header-wave-section .header_content,
.header-wave-section .container {
  position: relative;
  z-index: 10;
}

.tax-product_cat .page-thumb {
    display: none !important;
}

.avia-image-container-inner,
.avia_image,
.av-image-caption-overlay {
    border-radius: 0 !important;
}
.image-overlay {
    display: none !important;
}


/* =========================================================
   WIDGETS – SCHRIFTGRÖSSE
   ========================================================= */

#top #main .widget {
    font-size: 1rem;
    line-height: 1.55;
}

#top #main .widget ul li,
#top #main .widget ul li a {
    font-size: 1.1rem !important;
	padding:0 0 5px 0;
}
#top #main .widget_product_categories .count {
    font-size: 0.85em;
    opacity: 0.7;
}
/* Listenpunkte in Widgets entfernen */
#top #main .widget ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

#top #main .widget ul li {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

/*
body,
.post-entry p,
.entry-content-wrapper p {
    font-size: 16px;
    line-height: 1.6;
}*/

/* etwas grösser auf Mobile-Ansicht, falls es dort noch zu klein wirkt 
@media (max-width: 767px) {
    body,
    .post-entry p,
    .entry-content-wrapper p {
        font-size: 15px;
    }
}*/




/* Standardlinks */
#top #main .main_color a:link,
#top #main .main_color a:visited {
    color: #678f69;
    text-decoration: none;

    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;

    transition:
        color 0.25s ease,
        background-size 0.3s ease;
}

/* Weicher Hover */
#top #main .main_color a:hover,
#top #main .main_color a:active {
    color: #678f69;
    text-decoration: none;
    background-size: 100% 1px;
}



/* =========================================================
   KATEGORIEN-WIDGET (Seitenleiste auf den Kategorie-Seiten)
   ========================================================= */

/* Titel «Kategorien» etwas kleiner */
#top #main .widget.widget_product_categories .widgettitle {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

/* Einträge kleiner */
#top #main .widget.widget_product_categories ul.product-categories li,
#top #main .widget.widget_product_categories ul.product-categories li a {
    font-size: 0.95rem !important;
    line-height: 1.5;
    padding: 0 0 0.35rem;
}

/* Anzahl: nicht kursiv, klein und dezent */
#top #main .widget.widget_product_categories .count {
    font-size: 0.85em;
    font-style: normal;
    opacity: 0.6;
    margin-left: 0.25em;
}

/* Aktive Kategorie fett (Seite → Kategorie) */
#top.page-id-17433 #main .cat-item-116 > a,   /* Ackerbegleitflora */
#top.page-id-17282 #main .cat-item-33 > a,    /* Getreide */
#top.page-id-17436 #main .cat-item-17 > a,    /* Hülsenfrüchte */
#top.page-id-17439 #main .cat-item-58 > a,    /* Mais */
#top.page-id-17442 #main .cat-item-60 > a,    /* Weiteres Saatgut */
#top.page-id-17445 #main .cat-item-130 > a {  /* Merchandise */
    font-weight: 700;
    color: #334434 !important;
}










/* =========================================================
   SORTENGARTEN ERSCHMATT
   Fluid Typography für Enfold
   Merriweather = Überschriften
   Open Sans = Fliesstext
   ========================================================= */


/* ---------------------------------------------------------
   1. BASIS / FLIESSTEXT
   16 px auf kleineren Screens → 18 px auf grossen Screens
   --------------------------------------------------------- */

html {
    font-size: 100%;
}

body,
body p,
.avia_textblock,
.entry-content,
.entry-content p {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: clamp(1rem, 0.955rem + 0.18vw, 1.125rem);
    line-height: 1.68;
}


/* ---------------------------------------------------------
   2. ÜBERSCHRIFTEN
   --------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
.av-special-heading-tag {
    font-family: "Merriweather", Georgia, serif;
}


/* H1
   ca. 34 px → 54 px
*/

h1,
.template-page .entry-content-wrapper h1,
.av-special-heading-h1 .av-special-heading-tag {
    font-size: clamp(2.125rem, 1.72rem + 1.3vw, 3.375rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
}


/* H2
   ca. 28 px → 40 px
*/

h2,
.template-page .entry-content-wrapper h2,
.av-special-heading-h2 .av-special-heading-tag {
    font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2rem);
    line-height: 1.22;
    letter-spacing: -0.015em;
}


/* H3
   ca. 23 px → 30 px
*/

h3,
.template-page .entry-content-wrapper h3,
.av-special-heading-h3 .av-special-heading-tag {
    font-size: clamp(1.4375rem, 1.3rem + 0.45vw, 1.875rem);
    line-height: 1.3;
}


/* H4 */

h4,
.template-page .entry-content-wrapper h4 {
    font-size: clamp(1.2rem, 1.13rem + 0.2vw, 1.375rem);
    line-height: 1.35;
}


/* ---------------------------------------------------------
   3. ABSÄTZE / LESEABSTAND
   --------------------------------------------------------- */

.avia_textblock p,
.entry-content p {
    margin-bottom: 1.25em;
}


/* Keine überlangen Textzeilen */

.avia_textblock {

}


/* ---------------------------------------------------------
   4. HERO / EINLEITUNGSBEREICH
   Etwas grosszügiger als normaler Fliesstext
   --------------------------------------------------------- */

#top .avia-section:first-of-type .avia_textblock,
#top .avia-section:first-of-type .avia_textblock p {
    font-size: clamp(1.0625rem, 0.99rem + 0.3vw, 1.25rem);
    line-height: 1.65;
}


/* ---------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------- */

#top .avia-button,
#top a.avia-button {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: clamp(0.9375rem, 0.91rem + 0.1vw, 1rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
	border-radius: 0;
}

/* Etwas mehr Luft im Button */

#top .avia-button .avia_iconbox_title {
    font-size: inherit;
}

/* Hover-Unterstreichung der Standardlinks bei Buttons entfernen */
#top #main .main_color a.avia-button,
#top #main .main_color a.avia-button:hover {
    background-image: none !important;
    text-decoration: none !important;
}

/* ---------------------------------------------------------
   6. PRODUKT-/KATEGORIEÜBERSCHRIFTEN
   --------------------------------------------------------- */

#top .products h2,
#top .product h2,
#top .woocommerce-loop-product__title,
#top .av-masonry-entry-title {
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.45rem);
    line-height: 1.32;
}


/* ---------------------------------------------------------
   7. FOOTER
   Footer bewusst kleiner als Haupttext
   --------------------------------------------------------- */

#footer,
#footer p,
#footer li,
#socket,
#socket p {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: clamp(0.875rem, 0.85rem + 0.08vw, 0.9375rem);
    line-height: 1.6;
}

#footer h3,
#footer h4 {
    font-family: "Merriweather", Georgia, serif;
}


/* ---------------------------------------------------------
   8. MOBILE FEINSCHLIFF
   --------------------------------------------------------- */

@media only screen and (max-width: 767px) {

    body,
    body p,
    .avia_textblock,
    .entry-content,
    .entry-content p {
        line-height: 1.65;
    }

    h1,
    .template-page .entry-content-wrapper h1,
    .av-special-heading-h1 .av-special-heading-tag {
        letter-spacing: -0.015em;
    }

    .avia_textblock {
        max-width: none;
    }
}

/* =========================================================
   HEADER / LOGO AREA
   ========================================================= */

/* Seitliche Rahmen der Header-Fläche entfernen */
.av_minimal_header_shadow {
    box-shadow: none !important;
}


/* Logo bekommt oben und unten Luft */
#top #header .logo {
    padding-top: 8px;
    padding-bottom: 8px;
    box-sizing: border-box;
}

#top #header .logo img {
    max-height: calc(100% - 16px);
    width: auto;
}


/* Hauptnavigation etwas grösser */
#top #header .av-main-nav > li > a {
    font-size: 1rem !important;       /* 16px */
    font-weight: 400;
}

/* Gleichmässige Abstände zwischen Navigationselementen */
#top #header .av-main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
/* Shop-Button */
#top #header .av-main-nav > li.av-menu-button > a {
    padding-left: 12px !important;
    padding-right: 12px !important;
}
/* Keine zusätzlichen horizontalen Abstände */
#top #header .av-main-nav > li > a {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Shop-Button ebenfalls 16px */
#top #header .av-main-nav > li.av-menu-button > a {
    font-size: 1rem !important;
}

/* Kundenkonto-Icon im Header ausblenden */
#menu-item-wc-account-icon {
    display: none !important;
}




/* Produktkategorie-Titel */
.shop-category-header {
    margin-bottom: 2rem;
}

.shop-category-title {
    margin: 0;
}



/* =========================================
   Kategorienübersicht Shop
   ========================================= */

.shop-kategorien {
    max-width: 100%;
    margin: 0 auto;
}


/* WooCommerce-Standardlayout neutralisieren */
.shop-kategorien ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 3vw, 3.5rem);
    margin: 0 !important;
    padding: 0 !important;
}

.shop-kategorien ul.products::before,
.shop-kategorien ul.products::after {
    display: none !important;
}

.shop-kategorien ul.products li.product-category {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
}


/* Bild */
.shop-kategorien ul.products li.product-category img {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin: 0 0 1rem 0 !important;

    transition: transform 0.8s ease;
}

/* Leichter Zoom beim Hover */
.shop-kategorien ul.products li.product-category:hover img {
    transform: scale(1.04);
}


/* Titel */
.shop-kategorien ul.products li.product-category h2 {
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(1.25rem, 1.08rem + 0.45vw, 1.7rem);
    line-height: 1.25;
    margin: 0;
}


/* Produktanzahl */
.shop-kategorien ul.products li.product-category .count {
    display: none;
}


/* Links */
.shop-kategorien ul.products li.product-category a {
    text-decoration: none;
}

/* Kategorienraster: komplette Kachel ist Link,
   soll aber nicht wie ein Textlink aussehen */
#top #main .main_color .shop-kategorien li.product-category > a,
#top #main .main_color .shop-kategorien li.product-category > a:link,
#top #main .main_color .shop-kategorien li.product-category > a:visited,
#top #main .main_color .shop-kategorien li.product-category > a:hover,
#top #main .main_color .shop-kategorien li.product-category > a:active {
    color: #334434;
    text-decoration: none;
}

.main_content .shop-kategorien a:hover .category-short-description {
    color: inherit;
    text-decoration: none;
}
#top #main .main_color .shop-kategorien li.product-category > a {
    background-image: none !important;
}

/* Tablet */
@media (max-width: 989px) {
    .shop-kategorien ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Mobile */
@media (max-width: 600px) {
    .shop-kategorien ul.products {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* =========================================================
   PRODUKT-KACHELN (Kategorie-Seiten)
   ========================================================= */

/* ---------- Raster: alle Kacheln einer Reihe gleich hoch ---------- */

#top #main .avia-product-slider-container ul.products {
    display: flex;
    flex-wrap: wrap;
}

#top #main .avia-product-slider-container ul.products::before,
#top #main .avia-product-slider-container ul.products::after {
    display: none;
}

#top #main .avia-product-slider-container ul.products li.product {
    float: none;
    clear: none;
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
}

/* Kachel füllt die ganze Höhe, Links stehen immer unten */
#top #main .main_color ul.products .inner_product {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    background: transparent;
}

#top #main .main_color ul.products .woocommerce-LoopProduct-link {
    flex: 1 1 auto;
    background-image: none !important;   /* keine grüne Hover-Linie unter Titel/Preis */
}



/* ---------- Titel und Preis: bündig mit dem Bild, ohne Einzug ---------- */

#top #main .main_color ul.products .inner_product_header,
#top #main .main_color ul.products .inner_product_header_table,
#top #main .main_color ul.products .inner_product_header_cell {
    padding: 0;
    margin: 0;
    background: transparent;
    text-align: left;
}

#top #main .main_color ul.products .inner_product_header {
    padding-top: 1rem;
}

#top #main .main_color ul.products .inner_product_header .avia-arrow {
    display: none;
}

#top #main .main_color ul.products .woocommerce-loop-product__title {
    padding: 0;
    margin: 0;
}

/* Preis direkt unter dem Namen */
#top #main .main_color ul.products .price {
    display: block;
    margin-top: 0.35rem;
    line-height: 1.5;
}


/* ---------- Link-Zeile: In den Warenkorb | Details anzeigen → ---------- */

#top #main .main_color .avia_cart_buttons {
    opacity: 1;
    background: transparent;
    border: 0;
    padding: 1rem 0 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    overflow: visible;
}

#top #main .main_color .avia_cart_buttons a,
#top #main .main_color .avia_cart_buttons a:link,
#top #main .main_color .avia_cart_buttons a:visited {
    float: none;
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    margin: 0;
    opacity: 1 !important;
    text-decoration: none;
    background-image: none !important;
}

/* Enfold-Icons ausblenden */
#top #main .main_color .avia_cart_buttons .avia-svg-icon {
    display: none;
}


/* «In den Warenkorb»: Text mit feiner gelber Linie */
#top #main .main_color .avia_cart_buttons a.add_to_cart_button,
#top #main .main_color .avia_cart_buttons a.add_to_cart_button:link,
#top #main .main_color .avia_cart_buttons a.add_to_cart_button:visited {
    order: 1;
    display: inline-block;
    padding: 0 0 3px;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    color: #334434 !important;

    background-image: linear-gradient(#edc928, #edc928) !important;
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 2px;

    font-size: 0.9rem !important;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;

     transition: color 0.25s ease;
}

/* Mouse-over: keine Veränderung */
#top #main .main_color .avia_cart_buttons a.add_to_cart_button:hover,
#top #main .main_color .avia_cart_buttons a.add_to_cart_button:active,
#top #main .main_color .avia_cart_buttons a.add_to_cart_button:focus-visible {
    background-color: transparent;
    background-size: 100% 2px;
    color: #334434 !important;
}

/* Trennstrich ausblenden */
#top #main .main_color .avia_cart_buttons .button-mini-delimiter {
    display: none;
}


/* «Details anzeigen →» */
#top #main .main_color .avia_cart_buttons a.show_details_button,
#top #main .main_color .avia_cart_buttons a.show_details_button:link,
#top #main .main_color .avia_cart_buttons a.show_details_button:visited {
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0 3px;
    background: none !important;
    font-size: 0 !important;   /* Originaltext ausblenden */
    line-height: 1.3;
    color: #334434 !important;
    transition: color 0.25s ease;
}

#top #main .main_color .avia_cart_buttons a.show_details_button::before {
    content: "Details anzeigen";
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.3;
    color: inherit !important;
}

#top #main .main_color .avia_cart_buttons a.show_details_button::after {
    content: "→";
    font-size: 0.9rem;
    line-height: 1.3;
}

#top #main .main_color .avia_cart_buttons a.show_details_button:hover {
    color: #678f69 !important;
}
/* ---------- Ausverkaufte Produkte ---------- */

/* «Weiterlesen» durch «Zurzeit ausverkauft» ersetzen, nicht klickbar */
#top #main .main_color ul.products li.outofstock .avia_cart_buttons a.button:not(.show_details_button),
#top #main .main_color ul.products li.outofstock .avia_cart_buttons a.button:not(.show_details_button):link,
#top #main .main_color ul.products li.outofstock .avia_cart_buttons a.button:not(.show_details_button):visited {
    order: 1;
    display: inline-block;
    padding: 0 0 3px;
    background: none !important;
    font-size: 0 !important;
    line-height: 1.3;
    pointer-events: none;
    cursor: default;
}

#top #main .main_color ul.products li.outofstock .avia_cart_buttons a.button:not(.show_details_button)::before {
    content: "Zurzeit ausverkauft";
    font-size: 0.9rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(51, 68, 52, 0.6) !important;
}

#top #main .main_color ul.products li.outofstock .avia_cart_buttons a.show_details_button {
    order: 3;
}
/* ---------- Schmalere Bildschirme ---------- */

/* Lange Produktnamen sauber trennen statt über den Rand ragen */
#top #main ul.products .woocommerce-loop-product__title {
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

/* Bis 1400px: Kategorien als Zeile über den Produkten statt Seitenleiste */
@media (max-width: 1400px) {

    #top #main .entry-content-wrapper:has(> .flex_column .widget_product_categories) {
        display: flex;
        flex-direction: column;
    }

    #top #main .entry-content-wrapper:has(> .flex_column .widget_product_categories) > .flex_column {
        width: 100%;
        margin-left: 0;
        float: none;
    }

    /* Kategorien-Spalte nach oben, mit feiner Linie darunter */
    #top #main .entry-content-wrapper > .flex_column:has(.widget_product_categories) {
        order: -1;
        margin: 0 0 2.5rem;
        padding: 0 0 1rem;
        border-bottom: 1px solid rgba(51, 68, 52, 0.15);
    }

    #top #main .widget.widget_product_categories {
        margin: 0;
        padding: 0;
    }

    /* Titel «Kategorien» ausblenden, Einträge nebeneinander */
    #top #main .widget.widget_product_categories .widgettitle {
        display: none;
    }

    #top #main .widget.widget_product_categories ul.product-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.75rem;
        margin: 0;
    }

    #top #main .widget.widget_product_categories ul.product-categories li {
        margin: 0;
        padding: 0 !important;
        border: 0;
    }
}

/* Bis 1150px: «Details anzeigen» unter «In den Warenkorb» */
@media (max-width: 1150px) {
    #top #main .main_color .avia_cart_buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
}
/* =========================================================
   FOOTER – MENÜS
   ========================================================= */

/* Menü-Grundstruktur */
#top #footer-page .widget_nav_menu ul.menu {
    margin: 0;
    padding: 0;
    border-top: 0;
}
/* Menüeinträge + feine Trennlinie */
#top #footer-page .widget_nav_menu ul.menu > li {
    margin: 0;
    padding: 0;
    border-top: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
	transition: border-color 0.4s ease;
    
}

/* Menülinks: gleich viel Luft oben und unten = Text mittig */
#top #footer-page .widget_nav_menu ul.menu > li > a,
#top #footer-page .widget_nav_menu ul.menu > li > a:link,
#top #footer-page .widget_nav_menu ul.menu > li > a:visited {
    display: block;
    padding: 0.5rem 0;

    font-size: 1rem !important;
    line-height: 1.4;
    font-weight: 400;

    color: inherit;
    background: transparent !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
	
}

/* Hover: Linie wird langsam weiss */
#top #footer-page .widget_nav_menu ul.menu > li:hover {
    border-bottom-color: rgba(255, 255, 255, 0.85);
}

#top #footer-page .widget_nav_menu ul.menu > li > a:hover,
#top #footer-page .widget_nav_menu ul.menu > li > a:focus {
    background: transparent !important;
    text-decoration: none !important;
}

/* Aktuelle Seite im Footer nicht hervorheben */
#top #footer-page .widget_nav_menu li.current_page_item,
#top #footer-page .widget_nav_menu li.current-menu-item,
#top #footer-page .widget_nav_menu .current_page_item > a,
#top #footer-page .widget_nav_menu .current-menu-item > a {
    background: transparent !important;
    color: inherit !important;
}

.woocommerce .sidebar,
.woocommerce-page .sidebar {
    display: none !important;
}
.woocommerce .content.av-content-small,
.woocommerce-page .content.av-content-small {
    width: 100% !important;
}


/* =========================================================
   WOOCOMMERCE – TYPOGRAFIE
   Keine absurd kleinen Standardschriften
   ========================================================= */

/* Grundschrift in Warenkorb und Kasse */
#top.woocommerce-cart .woocommerce,
#top.woocommerce-checkout .woocommerce {
    font-size: 1rem;
    line-height: 1.55;
}


/* Labels, Tabellen, Versand, Bestellübersicht */
#top.woocommerce-cart .woocommerce label,
#top.woocommerce-cart .woocommerce table,
#top.woocommerce-cart .woocommerce .cart_totals,

#top.woocommerce-checkout .woocommerce label,
#top.woocommerce-checkout .woocommerce table,
#top.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order {
    font-size: 0.95rem !important;
}


/* Tabellenüberschriften */
#top.woocommerce-cart table.shop_table th,
#top.woocommerce-checkout table.shop_table th {
    font-size: 0.85rem !important;
}


/* Eingabefelder */
#top.woocommerce-checkout input,
#top.woocommerce-checkout select,
#top.woocommerce-checkout textarea {
    font-size: 1rem !important;
}


/* Zusatztexte wie "(optional)" */
#top.woocommerce-checkout .optional {
    font-size: 0.85em !important;
}


/* Platzhaltertexte */
#top.woocommerce-checkout input::placeholder,
#top.woocommerce-checkout textarea::placeholder {
    font-size: 0.9rem !important;
    opacity: 0.65;
}


/* Versandarten und Bestellsumme */
#top.woocommerce-cart .woocommerce-shipping-methods,
#top.woocommerce-checkout .woocommerce-shipping-methods,
#top.woocommerce-checkout .order-total,
#top.woocommerce-checkout .cart-subtotal {
    font-size: 0.95rem !important;
}


/* Produktzeilen in "Deine Bestellung" */
#top.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    font-size: 0.95rem !important;
}


/* =========================================================
   CHECKOUT – FORMULARFELDER
   ========================================================= */

/* Textfelder, Selects und Textarea */
#top.woocommerce-checkout .woocommerce input.input-text,
#top.woocommerce-checkout .woocommerce textarea,
#top.woocommerce-checkout .woocommerce select {
    background: transparent !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(51, 68, 52, 0.45) !important;
    border-radius: 0 !important;

    padding: 0.55rem 0.4rem !important;

    color: #334434 !important;
    box-shadow: none !important;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}

/* Aktiviertes Feld */
#top.woocommerce-checkout .woocommerce input.input-text:focus,
#top.woocommerce-checkout .woocommerce textarea:focus,
#top.woocommerce-checkout .woocommerce select:focus {
    background: #fff !important;
    border-bottom-color: #334434 !important;
    box-shadow: 0 1px 0 #334434 !important;
    outline: none !important;
}


/* Textarea "Bestellhinweise" */
#top.woocommerce-checkout .woocommerce textarea {
    min-height: 8rem;
    resize: vertical;
}


/* Placeholder */
#top.woocommerce-checkout .woocommerce input::placeholder,
#top.woocommerce-checkout .woocommerce textarea::placeholder {
    color: rgba(51, 68, 52, 0.55);
    opacity: 1;
}



/* =========================================================
   EINZELPRODUKT – Kategorien, Tags
   ========================================================= */
.template-shop .product_meta {
	font-size:1.1rem!important;
}
#top.single-product .avia-post-nav {
    display: none !important;
}

/* =========================================================
   VARIABLE PRODUKTE – VARIANTENAUSWAHL
   ========================================================= */

#top.single-product .variations_form table.variations {
    width: 100% !important;
    margin: 1.5rem 0 !important;
    border: 0 !important;
}

/* Label "Grösse" */
#top.single-product .variations_form table.variations th.label {
    width: 100px !important;
    padding: 0 1.25rem 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
    vertical-align: middle !important;
}

#top.single-product .variations_form table.variations th.label label {
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: #334434 !important;
}

/* rechte Spalte */
#top.single-product .variations_form table.variations td.value {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    vertical-align: middle !important;
}

/* Select */
#top.single-product .variations_form table.variations td.value select {
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 8px 36px 8px 10px !important;

    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;

    color: #334434 !important;
    background-color: #fff !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(51, 68, 52, 0.5) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#top.single-product .variations_form table.variations td.value select:focus {
    border-bottom-color: #334434 !important;
    box-shadow: 0 1px 0 #334434 !important;
    outline: none !important;
}

/* Optionen */
#top.single-product .variations_form table.variations td.value select option {
    font-size: 1rem !important;
}

/* Produkt-Tabs – gleiche Schriftgrösse wie Grössenauswahl */
#top.single-product .woocommerce-tabs ul.tabs li a {
    font-size: 1rem !important;
    line-height: 1.4;
}


/* =========================================================
   WARENKORB – PREISE UND SUMMEN
   ========================================================= */

/* Preis und Zwischensumme in der Produktzeile */
#top.woocommerce-cart .shop_table .product-price,
#top.woocommerce-cart .shop_table .product-subtotal,
#top.woocommerce-cart .shop_table .product-price .amount,
#top.woocommerce-cart .shop_table .product-subtotal .amount {
    font-size: 1rem !important;
    line-height: 1.5 !important;
}


/* Warenkorb-Summe: Werte */
#top.woocommerce-cart .cart_totals table td,
#top.woocommerce-cart .cart_totals table td .amount {
    font-size: 1rem !important;
    line-height: 1.5 !important;
}
/* =========================================================
   WOOCOMMERCE – WARENKORB
   Zweispaltig: Produkte links, Bestellübersicht rechts
   ========================================================= */

/* ---------- Meldungen (überall: Produktseite, Warenkorb, Kasse) ---------- */

#top div.woocommerce-message,
#top div.woocommerce-info,
#top div.woocommerce-error {
    margin: 0 0 2.5rem;
    padding: 1.25rem 14rem 1.25rem 1.5rem;   /* rechts Platz für den Button */
    border: 1px solid rgba(51, 68, 52, 0.18);
    border-radius: 0;
    background: rgba(51, 68, 52, 0.05);
    background-image: none;
    color: #334434;
    font-size: 1rem;
    line-height: 1.5;
}

/* Fehlermeldungen mit leicht rötlichem Rahmen */
#top div.woocommerce-error {
    border-color: rgba(160, 50, 40, 0.4);
}

/* Button «Warenkorb anzeigen» in der Meldung */
#top div.woocommerce-message a.button,
#top div.woocommerce-info a.button,
#top .avia-wc-notice-box.main_color .woocommerce-message a.button {
    right: 1.5rem;
    margin-top: 0;
    transform: translateY(-50%);
    padding: 0.7rem 1.25rem;
    border: 1px solid #334434;
    border-radius: 0;
    background: #334434 !important;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
}

#top div.woocommerce-message a.button:hover,
#top div.woocommerce-info a.button:hover,
#top .avia-wc-notice-box.main_color .woocommerce-message a.button:hover {
    background: #678f69 !important;
    border-color: #678f69;
    color: #fff !important;
}

/* Handy: Button unter den Text statt daneben */
@media (max-width: 767px) {
    #top div.woocommerce-message,
    #top div.woocommerce-info,
    #top div.woocommerce-error {
        padding-right: 1.5rem;
    }

    #top div.woocommerce-message a.button,
    #top div.woocommerce-info a.button {
        position: static;
        float: none;
        display: inline-block;
        transform: none;
        margin: 1rem 0 0;
    }
}


/* ---------- Grundraster ---------- */

#top.woocommerce-cart .entry-content > .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem);
    column-gap: 1.5rem;
    align-items: start;
    color: #334434;
}

#top.woocommerce-cart .woocommerce > .cart-header,
#top.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
#top.woocommerce-cart .woocommerce > .cart-empty,
#top.woocommerce-cart .woocommerce > .return-to-shop,
#top.woocommerce-cart .woocommerce > .wc-empty-cart-message {
    grid-column: 1 / -1;
}

#top.woocommerce-cart .woocommerce-cart-form {
    grid-column: 1;
    margin: 0;
}

#top.woocommerce-cart .cart-collaterals {
    grid-column: 2;
    width: auto;
    margin: 0;
}


/* ---------- Titel «Warenkorb» + Anzahl Artikel ---------- */

#top.woocommerce-cart .cart-header {
    margin: 0 0 1.5rem;
}

#top.woocommerce-cart .cart-header h1 {
    margin: 0;
}

#top.woocommerce-cart .cart-header .cart-count {
    margin: 0.25rem 0 0;
    font-size: 1rem;
}


/* ---------- Produkttabelle als Karte ---------- */

#top.woocommerce-cart table.shop_table.cart {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    background: #f7f5f0;
}

#top.woocommerce-cart table.shop_table.cart thead,
#top.woocommerce-cart table.shop_table.cart tbody {
    display: block;
}

/* Jede Zeile als Raster: Bild | Name | Anzahl | Summe */
#top.woocommerce-cart table.shop_table.cart tr {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr) auto 6.5rem;
    grid-template-areas:
        "thumb name   qty sub"
        "thumb price  qty sub"
        "thumb remove qty sub";
    column-gap: 1.25rem;
    align-items: center;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(51, 68, 52, 0.12);
    background: transparent !important;
}

#top.woocommerce-cart table.shop_table.cart th,
#top.woocommerce-cart table.shop_table.cart td {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

/* Kopfzeile */
#top.woocommerce-cart table.shop_table.cart thead tr {
    grid-template-areas: "name name qty sub";
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

#top.woocommerce-cart table.shop_table.cart thead th {
    color: #334434;
    font-size: 0.75rem !important;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#top.woocommerce-cart table.shop_table.cart thead .product-remove,
#top.woocommerce-cart table.shop_table.cart thead .product-thumbnail,
#top.woocommerce-cart table.shop_table.cart thead .product-price {
    display: none;
}

/* Kopfzeile «Zwischensumme» → «Summe» */
#top.woocommerce-cart table.shop_table.cart thead th.product-subtotal {
    font-size: 0 !important;
    text-align: right;
}

#top.woocommerce-cart table.shop_table.cart thead th.product-subtotal::before {
    content: "Summe";
    font-size: 0.75rem;
}

#top.woocommerce-cart table.shop_table.cart .product-name     { grid-area: name; }
#top.woocommerce-cart table.shop_table.cart .product-thumbnail { grid-area: thumb; }
#top.woocommerce-cart table.shop_table.cart .product-price    { grid-area: price; }
#top.woocommerce-cart table.shop_table.cart .product-remove   { grid-area: remove; }
#top.woocommerce-cart table.shop_table.cart .product-quantity { grid-area: qty; }
#top.woocommerce-cart table.shop_table.cart .product-subtotal { grid-area: sub; text-align: right; }

/* Produktbild */
#top.woocommerce-cart table.shop_table.cart .product-thumbnail img {
    width: 5.25rem;
    height: 5.25rem;
    max-width: none;
    object-fit: cover;
    display: block;
}

/* Produktname */
#top.woocommerce-cart table.shop_table.cart td.product-name,
#top.woocommerce-cart table.shop_table.cart td.product-name a {
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.1rem !important;
    font-weight: 700;
    line-height: 1.35;
    color: #334434 !important;
    background-image: none !important;
}

/* Stückpreis unter dem Namen */
#top.woocommerce-cart table.shop_table.cart td.product-price {
    margin-top: 0.15rem;
    font-size: 0.95rem !important;
}

#top.woocommerce-cart table.shop_table.cart td.product-price .amount::after {
    content: " / Stück";
}

/* «Entfernen» statt × */
#top.woocommerce-cart table.shop_table.cart td.product-remove {
    margin-top: 0.35rem;
}

#top.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
    display: inline;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none !important;
    font-size: 0 !important;
    line-height: 1;
    opacity: 1 !important;
}

#top.woocommerce-cart table.shop_table.cart td.product-remove a.remove::before {
    content: "Entfernen";
    font-size: 0.85rem;
    color: #678f69;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#top.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover::before {
    color: #334434;
}

/* Summe rechts */
#top.woocommerce-cart table.shop_table.cart td.product-subtotal,
#top.woocommerce-cart table.shop_table.cart td.product-subtotal .amount {
    font-size: 1rem !important;
}

/* Mengenauswahl: − 4 + als Kasten */
#top.woocommerce-cart .quantity {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid rgba(51, 68, 52, 0.45);
    border-radius: 3px;
    overflow: hidden;
    background: transparent;
}

#top.woocommerce-cart .quantity input.qty,
#top.woocommerce-cart .quantity .minus,
#top.woocommerce-cart .quantity .plus {
    width: 2.6rem !important;
    height: 2.4rem !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #334434 !important;
    font-size: 1rem !important;
    line-height: 2.4rem !important;
    text-align: center;
    -moz-appearance: textfield;
}

#top.woocommerce-cart .quantity input.qty {
    border-left: 1px solid rgba(51, 68, 52, 0.25) !important;
    border-right: 1px solid rgba(51, 68, 52, 0.25) !important;
}

#top.woocommerce-cart .quantity input.qty::-webkit-outer-spin-button,
#top.woocommerce-cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#top.woocommerce-cart .quantity .minus:hover,
#top.woocommerce-cart .quantity .plus:hover {
    background: rgba(51, 68, 52, 0.07) !important;
}


/* ---------- Zeile unter der Tabelle: Weiter einkaufen / Aktualisieren ---------- */

#top.woocommerce-cart table.shop_table.cart tr:has(td.actions) {
    display: block;
    padding: 1.75rem 0 0;
    border: 0;
    background: #f1efe9 !important;
}

#top.woocommerce-cart table.shop_table.cart td.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
}

/* Gutschein-Feld (falls aktiviert) nicht anzeigen */
#top.woocommerce-cart td.actions .coupon {
    display: none;
}

/* «Weiter einkaufen» mit feiner gelber Linie */
#top.woocommerce-cart td.actions a.continue-shopping,
#top.woocommerce-cart td.actions a.continue-shopping:link,
#top.woocommerce-cart td.actions a.continue-shopping:visited {
    padding: 0 0 3px;
    color: #334434 !important;
    font-size: 0.95rem;
    text-decoration: none;
    background-image: linear-gradient(#edc928, #edc928) !important;
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 2px !important;
}

/* «Warenkorb aktualisieren» erscheint erst, wenn eine Menge geändert wurde */
#top.woocommerce-cart button[name="update_cart"]:disabled {
    display: none;
}

#top.woocommerce-cart button[name="update_cart"] {
    order: 2;
    margin: 0 0 0 auto !important;
    padding: 0.6rem 1.1rem !important;
    border: 1px solid #334434 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #334434 !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
}

#top.woocommerce-cart button[name="update_cart"]:hover {
    background: #334434 !important;
    color: #fff !important;
}


/* ---------- Bestellübersicht (rechte Box) ---------- */

#top.woocommerce-cart .cart-collaterals .cart_totals {
    float: none;
    width: 100%;
    margin: 0;
    padding: 1.25rem 1.5rem 1.5rem;
    border: 1px solid rgba(51, 68, 52, 0.12);
    background: #f7f5f0;
}

#top.woocommerce-cart .cart_totals h2 {
    margin: 0 0 1rem;
    font-size: 1.6rem !important;
    color: #334434;
}

#top.woocommerce-cart .cart_totals table.shop_table {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
}

#top.woocommerce-cart .cart_totals table.shop_table tbody {
    display: block;
}

#top.woocommerce-cart .cart_totals table.shop_table tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(51, 68, 52, 0.12);
    background: transparent !important;
}

#top.woocommerce-cart .cart_totals table.shop_table th,
#top.woocommerce-cart .cart_totals table.shop_table td {
    display: block;
    width: auto;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #334434;
    font-size: 0.95rem !important;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    text-align: right;
}

#top.woocommerce-cart .cart_totals table.shop_table th {
    text-align: left;
}

/* WooCommerce-Beschriftung für Handy («Zwischensumme» doppelt) ausblenden */
#top.woocommerce-cart .cart_totals table.shop_table td::before {
    display: none !important;
}

/* Lieferung: Titel oben, Optionen darunter über die ganze Breite */
#top.woocommerce-cart .cart_totals table.shop_table tr.woocommerce-shipping-totals {
    display: block;
}

#top.woocommerce-cart .cart_totals table.shop_table tr.woocommerce-shipping-totals th,
#top.woocommerce-cart .cart_totals table.shop_table tr.woocommerce-shipping-totals td {
    width: 100%;
    text-align: left;
}

#top.woocommerce-cart .cart_totals table.shop_table tr.woocommerce-shipping-totals th {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

#top.woocommerce-cart #shipping_method {
    margin: 0;
    padding: 0;
    list-style: none;
}

#top.woocommerce-cart #shipping_method li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.6rem;
    padding: 0;
}

#top.woocommerce-cart #shipping_method li:last-child {
    margin-bottom: 0;
}

#top.woocommerce-cart #shipping_method li input[type="radio"] {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    accent-color: #334434;
}

#top.woocommerce-cart #shipping_method li label {
    display: flex;
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    font-size: 0.95rem !important;
    font-weight: 400;
}

#top.woocommerce-cart #shipping_method li label .amount {
    margin-left: auto;
    font-size: inherit !important;
    font-weight: 400;
}

/* Hinweis «Versandoptionen werden … aktualisiert» und Rechner ausblenden */
#top.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
#top.woocommerce-cart .cart_totals .woocommerce-shipping-calculator {
    display: none;
}

/* Gesamt */
#top.woocommerce-cart .cart_totals tr.order-total {
    border-bottom: 0;
    padding-top: 1.25rem;
}

#top.woocommerce-cart .cart_totals tr.order-total th,
#top.woocommerce-cart .cart_totals tr.order-total td,
#top.woocommerce-cart .cart_totals tr.order-total .amount {
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
}

/* MwSt.-Hinweis unter dem Total (falls vorhanden) */
#top.woocommerce-cart .cart_totals tr.order-total small {
    display: block;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
}


/* ---------- Gelber Button «Zur Kasse →» ---------- */

#top.woocommerce-cart .wc-proceed-to-checkout {
    margin: 0;
    padding: 0.5rem 0 0;
}

#top.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 1rem 1.25rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #edc928 !important;
    color: #334434 !important;
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    background-image: none !important;
    transition: background-color 0.25s ease;
}

#top.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #e0bb17 !important;
    color: #334434 !important;
}


/* ---------- Tablet & Handy ---------- */

@media (max-width: 989px) {

    /* Übersicht unter die Produkte */
    #top.woocommerce-cart .entry-content > .woocommerce {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2rem;
    }

    #top.woocommerce-cart .cart-collaterals {
        grid-column: 1;
    }
}

@media (max-width: 600px) {

    #top.woocommerce-cart table.shop_table.cart thead {
        display: none;
    }

    #top.woocommerce-cart table.shop_table.cart tr {
        grid-template-columns: 4.5rem minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb name   name"
            "thumb price  price"
            "thumb remove remove"
            "qty   qty    sub";
        row-gap: 0.25rem;
    }

    #top.woocommerce-cart table.shop_table.cart .product-thumbnail img {
        width: 4.5rem;
        height: 4.5rem;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-quantity {
        margin-top: 0.75rem;
    }

    /* WooCommerce-Beschriftungen («Preis:», «Anzahl:») ausblenden */
    #top.woocommerce-cart table.shop_table.cart td::before {
        display: none !important;
    }
}

/* =========================================================
   ÜBERSCHRIFTEN – FETTER UND ETWAS GRÖSSER
   ========================================================= */

/* Alle Titel fett */
#top h1,
#top h2,
#top h3,
#top h4,
#top h5,
#top h6,
#top .av-special-heading-tag,
#top .products h2,
#top .woocommerce-loop-product__title,
#top .shop-kategorien ul.products li.product-category h2 {
    font-weight: 700 !important;
}

/* H1: ca. 36 px → 58 px */
#top h1,
#top .av-special-heading-h1 .av-special-heading-tag {
    font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3.625rem);
}

/* H2: ca. 30 px → 42 px (z. B. "Saatgut aus dem Sortengarten") */
#top h2,
#top .av-special-heading-h2 .av-special-heading-tag {
    font-size: clamp(1.875rem, 1.6rem + 0.9vw, 2.625rem);
}

/* H3: ca. 24 px → 32 px */
#top h3,
#top .av-special-heading-h3 .av-special-heading-tag {
    font-size: clamp(1.5rem, 1.35rem + 0.5vw, 2rem);
}

/* Kategorien-Titel unter den Bildern (Ackerbegleitflora, Getreide …) */
#top .shop-kategorien ul.products li.product-category h2 {
    font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.9rem);
}

/* Produkttitel in Listen */
#top .products h2,
#top .woocommerce-loop-product__title {
    font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.6rem);
}

/* =========================================================
   FOOTER – LOGO KLEINER
   ========================================================= */

#footer-page .avia-image-container img.avia_image {
    width: 180px !important;   /* vorher ca. 290px */
    height: auto !important;
}

@media (max-width: 767px) {

    /* Logo kleiner */
    #footer-page .avia-image-container img.avia_image {
        width: 140px !important;
    }

    /* Logo linksbündig */
    #footer-page .avia-image-container,
    #footer-page .avia-image-container.avia-align-center {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #footer-page .avia-image-container-inner,
    #footer-page .avia-image-overlay-wrap {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


