/* =============================================
   HOLZQUISIT.CH – CUSTOM CSS (bereinigt v4)
   ============================================= */

/* ── PREISE ── */
span.hikashop_product_price_with_discount,
span.hikashop_product_price.hikashop_product_price_0 {
    font-size: 22px !important;
    color: #fa7500 !important;
    font-family: helvetica;
    text-decoration: none;
    font-style: normal;
}
span.hikashop_product_price_per_unit {
    display: none;
}
span.hikashop_product_price_full {
    color: #696969;
    pointer-events: none;
}
span.hikashop_product_price_before_discount {
    color: #696969 !important;
    text-decoration: line-through !important;
    font-size: 16px !important;
}
span.hikashop_product_discount_label {
    font-size: 14px !important;
    color: #fa7500 !important;
}
/* Preis mit Optionen — gilt für alle Bildschirmgrössen */
span.hikashop_option_price_value {
    color: #fa7500 !important;
    font-size: 22px !important;
    font-weight: bold !important;
    font-style: normal;
    font-family: helvetica;
}
/* Hinweis: font-size 18px greift nur bei ..._price_full.
   ..._with_discount (22px) und ..._before_discount (16px) werden
   oben durch die span.-Regeln mit höherer Spezifität gesetzt. */
.hikashop_product_price_full,
.hikashop_product_price_with_discount,
.hikashop_product_price_before_discount {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    font-size: 18px !important;
}

/* ── LAGERBESTAND ── */
span.hikashop_product_stock_count {
    color: #696969;
    font-weight: bold;
    font-size: 16px;
}

/* ── PRODUKTNAME ── */
span#hikashop_product_name_main {
    color: #696969;
    font-size: 22px;
}
span.hikashop_product_name {
    color: #696969;
    font-weight: bold;
    pointer-events: none;
}

/* ── WARENKORB (klein, Header) ── */
span.hikashop_small_cart_total_title {
    color: #696969;
    font-size: 14px;
    font-weight: bold;
}
span.hikashop_small_cart_total_title:hover {
    color: #ffa500;
}

/* ── WARENKORB-BUTTON (hikacart) ──
   Einheitlich für Listing- und Detailseite, inkl. "Wählen Sie Optionen aus"
   (läuft ebenfalls über die Klasse .hikacart). */
a.hikabtn.hikacart.hikashop_aligned_btn,
a.hikacart.hikashop_aligned_btn,
.hikacart{
    width: 100% !important;
    box-sizing: border-box !important;
    color: #fff !important;
    background-color: #146B4D !important;
    border-color: #0d4a35 !important;
    font-size: 18px !important;
    font-weight: normal !important;
    font-family: helvetica;
    font-style: normal;
    line-height: 1.3 !important;
    white-space: normal !important;
    padding: 6px 10px !important;
    margin: 0;
}
/* ── WARTELISTE-BUTTON ── */
a.hikabtn.hika_waitlist_btn {
    font-size: 18px !important;
    padding: 6px 10px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}
/* Checkout-Button — im selben Grün und derselben Schriftgrösse wie der Warenkorb-Button */
a.hikabtn.hikabtn.hikashop_cart_proceed_to_checkout {
    background-color: #146B4D !important;
    border-color: #0d4a35 !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: normal !important;
}

/* ── CHECKOUT ── */
span.hikashop_checkout_payment_name {
    color: #696969;
}
h2#hika_registration_type {
    display: none;
}
span.hikashop_checkout_shipping_price,
span.hikashop_checkout_shipping_cost,
span.hikashop_checkout_cart_subtotal,
span.hikashop_checkout_cart_shipping,
span.hikashop_checkout_cart_final_total {
    color: #fa7500;
    font-size: 20px;
    font-family: helvetica;
    font-style: normal;
}
span.hikashop_checkout_cart_coupon {
    color: #198754;
    font-size: 20px;
    font-family: helvetica;
}
span.label.label-info {
    color: #fa7500;
}
a.hikashop_no_print {
    font-size: 18px;
    font-weight: bold;
}
span#hikashop_banktransfer_end_message {
    color: #696969;
    pointer-events: none;
}

/* Checkout-Buttons/-Felder: alle nur font-size 20px, daher gruppiert */
button.hikabtn.active.hikabtn-checkout-login.hikaradio-label,
button.hikabtn.hikaradio-label,
button.hikabtn.hikabtn_checkout_login_form,
button.btn.btn-primary.hikabtn_checkout_coupon_add,
button#hikabtn_checkout_next,
#hikashop_checkout_shopping_button {
    font-size: 20px;
    font-weight: normal;
}
#hikashop_checkout_shopping_button {
    float: left;
}
input#hikashop_checkout_coupon_input_1_5 {
    font-size: 20px;
    min-block-size: 60px;
    min-inline-size: 400px;
}

/* Checkout-Tabelle: alle nur font-size 18px, daher gruppiert */
td#hikashop_checkout_cart_total2_title,
td#hikashop_checkout_cart_shipping_title,
td#hikashop_checkout_cart_final_total_title,
th#hikashop_cart_product_image_title,
th#hikashop_cart_product_name_title,
th#hikashop_cart_product_price_title,
th#hikashop_cart_product_quantity_title,
th#hikashop_cart_product_total_title {
    font-size: 18px;
}

/* Sidebar auf Kasse/Checkout ausblenden */
.view-checkout #sp-left,
.view-cart #sp-left,
.layout-checkout #sp-left,
.task-checkout #sp-left {
    display: none !important;
}

/* ── PRODUKTKARTEN / LISTING ── */
.hikashop_subcontainer.thumbnail {
    background-color: #FFA500;
}
a.hikabtn.product_details_button.hikashop_aligned_btn {
    font-size: 16px;
}
/* Reiterleiste komplett ausblenden, Beschreibung steht direkt da */
li#hikashop_show_tabular_description_li,
li#hikashop_show_tabular_specification_li,
#hikashop_show_tabular_specification {
    display: none !important;
}


th.hikashop_product_image.title.hk_center,
th.hikashop_product_name.title.hk_center,
th.hikashop_product_price.title.hk_center {
    display: none;
}
.hikashop_category_information img {
    display: inline;
}

.hikashop_container a {
    color: #696969 !important;
    font-size: 22px;
    font-weight: bold;
}
.hikashop_container a:hover {
    background-color: #ffffff;
    color: #FFA500 !important;
}

/* ── SIDEBAR LAYOUT ── */
#sp-left {
    width: 25% !important;
    min-width: 25% !important;
    max-width: 25% !important;
    flex: 0 0 25% !important;
    display: block !important;
    visibility: visible !important;
}
#sp-component {
    flex: 1 !important;
    min-width: 0 !important;
}
#sp-left .sp-column {
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    padding: 8px 0;
}
#sp-left .sp-module-title {
    display: none !important;
}


/* ── KATEGORIEN SIDEBAR ── */
#hikashop_module_145 a:not(.hikashop_category_list_item_link) {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #696969 !important;
    display: block !important;
    padding: 6px 9px !important;
    border-left: 3px solid transparent !important;
    text-decoration: none !important;
    transition: all 0.2s;
}
#hikashop_module_145 .hikashop_category_list_item_link {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #696969 !important;
    padding: 4px 10px 4px 20px !important;
    display: block !important;
    text-decoration: none !important;
    transition: all 0.2s;
}
#hikashop_module_145 a:not(.hikashop_category_list_item_link):hover {
    color: #FFA500 !important;
    border-left: 3px solid #FFA500 !important;
    background: rgba(250,117,0,0.06) !important;
}
#hikashop_module_145 .hikashop_category_list_item_link:hover {
    color: #FFA500 !important;
    background: rgba(250,117,0,0.06) !important;
}
#hikashop_module_145 .hikashop_container {
    border-bottom: 1px solid #e8e0d5 !important;
    background-color: transparent !important;
}
#hikashop_module_145 .accordion-inner:not(:has(a)) {
    display: none !important;
}
#hikashop_module_145 a.active,
#hikashop_module_145 a[class*="active"],
#hikashop_module_145 .active > a,
#hikashop_module_145 .hikashop_category_list_item_selected a,
#hikashop_module_145 .hikashop_category_list_item_selected {
    color: #FFA500 !important;
    font-size: 20px;
    font-weight: 700 !important;
}
.hikashop_category_list:not(:has(li a)) {
    display: none !important;
}

/* ── Phoca Gallery ── */
svg.ph-si.ph-si-feed {
    display: none;
}

svg.ph-si.ph-si-back-medium.pg-image.c-Image.c-Image--shaded {
  background-color: transparent;
}
.pagination.pagination-centered {
    display: none;
}
/* Ordner- und Bild-Symbol auf den Vorschaukacheln ausblenden
   (Zurück-Pfeil, Lupe und Download bleiben sichtbar) */
svg.ph-si.ph-si-category,
svg.ph-si.ph-si-image,
.pg-item-box-title > svg.ph-si {
    display: none !important;
}
/* ── ALLGEMEINES LAYOUT ── */
legend {
    display: none;
}
.sp-module-content-top.clearfix {
    display: none;
}
span.pg-category-box-count {
    display: none;
}

.titlelink {
    color: #696969;
}
.titlelink:hover {
    color: #FFA500;
    transition: color 0.3s;
}
span.contact-name {
    color: #fa7500;
}
h2[id], h3[id] {
    scroll-margin-top: -180px;
}
a.btn-shop {
    transition: background 0.2s, transform 0.2s !important;
}
a.btn-shop:hover {
    background: #5c6b2e !important;
    transform: translateY(-2px) !important;
    transition: all 0.2s !important;
    color: #fff !important;
}

/* ── FANCYBOX (Bildpopup) ── */
.fancybox-container, .fancybox-overlay, .fancybox-wrap {
    z-index: 999999 !important;
}
.fancybox-bg {
    z-index: 999998 !important;
}
header, .sticky-header, #sp-header.header-sticky {
    z-index: 1000 !important;
}

/* ── BILD-HOVER SWAP ── */
.image-swap {
    position: relative;
    display: inline-block;
    overflow: hidden;
}
.image-swap img {
    display: block;
}
.image-swap .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.image-swap:hover .img-hover {
    opacity: 1;
}
.image-swap:hover .img-default {
    opacity: 0;
}

/* ── OVERLAY (Kategoriebilder Hover) ── */
.overlay-link {
    position: relative;
    display: inline-block;
    overflow: hidden;
}
.bg-image {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.overlay-link:hover .overlay {
    opacity: 1;
}
.overlay-link:hover .bg-image {
    transform: scale(1.1);
}
.overlay-text {
    color: white;
    font-size: 1.5rem;
}

/* ── FAQ ACCORDION ── */
.accordion {
    --bs-accordion-active-bg: #ffa500;
    --bs-accordion-active-color: #ffffff;
    --bs-accordion-btn-focus-box-shadow: none;
}
.accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(31%) sepia(94%) saturate(4156%) hue-rotate(211deg) brightness(95%) contrast(105%);
}
button.accordion-button.collapsed,
button.accordion-button:not(.collapsed) {
    font-size: 22px;
}
.accordion-collapse {
    background-color: #eeeee0;
}
.accordion-item {
    scroll-margin-top: 140px;
}
.accordion-button:focus {
    scroll-margin-top: 140px;
}

/* ── VIDEOS RESPONSIV ── */
.accordion-body video {
    width: 100%;
    height: auto;
    max-width: 100%;
}
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── LISTEN (global, kompakt) ── */
ul {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}
li {
    margin: 0;
    padding: 0;
}

/* ── MODUL-LAYOUTS ── */
.modul-bg-custom {
    padding: 20px;
    background-color: #ffffff;
    width: 100%;
    border-collapse: collapse;
}
.modul-tab-custom {
    padding: 20px;
    background-color: #ffffff;
    border-collapse: separate;
    width: 25%;
}
/* ── NEUERSCHEINUNGEN (Startseite, Modul 141) ──
   Lange Produktnamen trennen statt über den Rand ragen lassen */
#hikashop_module_141 .hikashop_product_name,
#hikashop_module_141 .hikashop_product_name a {
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: anywhere;
}
/* ── DEKO-HOBELSPÄNE NEBEN DEN TITELN (Startseite) ── */
.hq-spaene {
    float: right;
    width: auto;
    max-width: 300px;
    height: auto;
    margin: 0 0 30px 30px;
}

/* =============================================
   MOBILE & TABLET (max-width: 1100px)
   ============================================= */
@media (max-width: 1100px) {
    /* Sidebar oben, volle Breite */
    #sp-left {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    #sp-component {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Kategorien nebeneinander */
    #hikashop_module_145 .hikashop_category_information {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    #hikashop_module_145 .hikashop_container {
        width: auto !important;
        padding: 2px 8px !important;
        border-bottom: none !important;
        border-right: 1px solid #e8e0d5 !important;
    }
    #hikashop_module_145 a:not(.hikashop_category_list_item_link) {
        font-size: 18px !important;
        padding: 4px 6px !important;
        white-space: nowrap !important;
    }
    #hikashop_module_145 .hikashop_category_list_item_link {
        font-size: 18px !important;
        color: #696969;
        padding: 4px 6px 4px 16px !important;
    }
}

/* =============================================
   SMARTPHONE (max-width: 767px)
   ============================================= */
/* =============================================
   SMARTPHONE (max-width: 767px)
   ============================================= */
@media (max-width: 767px) {
    /* Hobelspäne kleiner, neben Titel/Text */
    .hq-spaene {
        width: 40%;
        max-width: 140px;
        margin: 0 0 10px 12px;
    }

    /* Gutscheinfeld im Checkout nicht breiter als der Bildschirm */
    input#hikashop_checkout_coupon_input_1_5 {
        min-inline-size: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Warenkorb/Checkout: Beschriftung links, Wert rechts, keine Überlappung */
    .hikashop_checkout_cart td[data-title],
    [id^="hikashop_checkout_cart"] td[data-title],
    #hikashop_cart td[data-title] {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        padding-left: 8px !important;
        text-align: right;
    }
    .hikashop_checkout_cart td[data-title]::before,
    [id^="hikashop_checkout_cart"] td[data-title]::before,
    #hikashop_cart td[data-title]::before {
        position: static !important;
        width: auto !important;
        margin-right: auto;
        text-align: left;
    }
}

