/**
 * HWT – Metallpreise Tabelle (Elementor)
 * Widget-Styles
 */

.hwt-metallpreise-widget {
    font-family: inherit;
    color: #333333;
}

/* Überschrift */
.hwt-metallpreise-widget .hwt-mp-heading {
    margin-bottom: 1rem;
}


/* Hinweise & Fehlermeldungen */
.hwt-metallpreise-widget .hwt-mp-error,
.hwt-metallpreise-widget .hwt-mp-warning {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.hwt-metallpreise-widget .hwt-mp-error {
    background-color: #fbeaea;
    color: #7d1414;
    border: 1px solid #f0c2c2;
}

.hwt-metallpreise-widget .hwt-mp-warning {
    background-color: #fff7e6;
    color: #7a5a00;
    border: 1px solid #f2e0b5;
}

.hwt-metallpreise-widget .hwt-mp-no-rows {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #777777;
}

/* Tabs Wrapper */
.hwt-metallpreise-widget .hwt-mp-tabs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Allgemeine Tabs */
.hwt-metallpreise-widget .hwt-mp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.25rem;
    align-items: center;
}

/* Tab-Button-Style */
.hwt-metallpreise-widget .hwt-mp-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    text-align: center;
    width: 7.5rem;
    border-radius: 2px;
    border: 1px solid #95886B;
    background-color: #ffffff;
    color: #95886B;
    font-size: 1.063rem;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
    font-family: 'SpecialGothic SemiExpanded';
    font-weight: 500;
}

.hwt-metallpreise-widget .hwt-mp-tab:hover {
    background-color: #CCBC99;
    color: #FFF;
}

.hwt-metallpreise-widget .hwt-mp-tab.is-active {
    background-color: #95886b; /* Gold */
    border-color: #95886b;
    color: #ffffff;
}

/* Fokus-Styles für Tastaturnutzung */
.hwt-metallpreise-widget .hwt-mp-tab:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(149, 136, 107, 0.7);
}

/* Tabellen-Wrapper */
.hwt-metallpreise-widget .hwt-mp-table-wrapper {
    font-family: 'SpecialGothic SemiExpanded';
    font-weight: 400;
}

/* Fade-Animation beim Tabwechsel */
.hwt-metallpreise-widget .hwt-mp-table-wrapper {
    transition: opacity 0.2s ease;
}

.hwt-metallpreise-widget .hwt-mp-table-wrapper.hwt-mp-fade {
    opacity: 0.4;
}

/* Tabelle */
.hwt-metallpreise-widget .hwt-mp-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    min-width: 100%;
    font-size: 0.9rem;
}

.hwt-metallpreise-widget .hwt-mp-table thead {
    background-color: #6c7380; 
    color: #ffffff;
}

.hwt-metallpreise-widget .hwt-mp-table th,
.hwt-metallpreise-widget .hwt-mp-table td {
    padding: 1.25rem;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    position: relative;
}

.hwt-metallpreise-widget .hwt-mp-table th[data-sort-key]::after {
    content: '↓';
    display: inline-block;
    position: relative;
    margin-left: 0.5rem;
    font-weight: 400;
    opacity: 0.4;
}


/* Aufsteigend sortiert: Pfeil nach oben ▲ */
.hwt-metallpreise-widget .hwt-mp-table th[data-sort-key].is-sorted-asc::after {
    content: '↑';
    opacity: 1;
}

/* Absteigend sortiert: Pfeil nach unten ▼ */
.hwt-metallpreise-widget .hwt-mp-table th[data-sort-key].is-sorted-desc::after {
    content: '↓';
    opacity: 1;
}
.hwt-mp-row td {
    transition: background-color 0.3s ease;
}

/* Zebra-Striping basierend auf JS-Klassen */
.hwt-metallpreise-widget .hwt-mp-row.hwt-mp-row--odd td {
    background-color: #F7F7F5;
}

.hwt-metallpreise-widget .hwt-mp-row.hwt-mp-row--even td {
    background-color: #FFFFFF;
}

th.hwt-mp-col-product, th.hwt-mp-col-weight, th.hwt-mp-col-price-net, th.hwt-mp-col-price-gross {
    cursor: pointer;
}
td.hwt-mp-col-price-gross {
    color:#95886B;
    font-weight: 600;
}
.hwt-metallpreise-widget .hwt-mp-table th:not(.hwt-mp-col-product) {
    
    text-align: right;
}
.hwt-metallpreise-widget .hwt-mp-table th {
    font-weight: 500;
}
.hwt-mp-row {
    font-family: 'Roboto Mono';
}
.hwt-mp-col-product {
    font-family: 'SpecialGothic SemiExpanded';
    font-weight: 400;
}
.hwt-metallpreise-widget .hwt-mp-table td:not(.hwt-mp-col-product) {
    text-align: right;
}
/* Zebra-Striping */
.hwt-metallpreise-widget .hwt-mp-table tbody tr:nth-child(odd) {
    background-color: #f7f7f7;
}

.hwt-metallpreise-widget .hwt-mp-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}



/* Spalten-spezifische Anpassungen */
.hwt-metallpreise-widget .hwt-mp-col-product {
    min-width: 40%;
}

.hwt-metallpreise-widget .hwt-mp-col-weight,
.hwt-metallpreise-widget .hwt-mp-col-price-net,
.hwt-metallpreise-widget .hwt-mp-col-vat,
.hwt-metallpreise-widget .hwt-mp-col-price-gross {
    min-width: 15%;
}

.hwt-mp-breadcrumb {
   
    font-size: 0.75rem;
    
    color: #2D313C;
    margin-bottom: 1.25rem;
    margin-top: 4.688rem;
}

.hwt-mp-multi-hint {
    font-size: 0.75rem;
    color: #2D313C;

}
.elementor-widget-hwt_metallpreise_tabelle {
    width: 100%;
}

@media (min-width: 1050px) {

.hwt-mp-row:hover td {
    background-color: #E6EBF2 !important;
}

}
/* ------------------------------- */
/*   Responsive Stacked Layout     */
/*   Aktiv bis 1050px Breite       */
/* ------------------------------- */

@media (max-width: 1050px) {
    .hwt-metallpreise-widget .hwt-mp-table thead {
        display: none; 
    }

    .hwt-metallpreise-widget .hwt-mp-table,
    .hwt-metallpreise-widget .hwt-mp-table tbody,
    .hwt-metallpreise-widget .hwt-mp-table tr,
    .hwt-metallpreise-widget .hwt-mp-table td {
        display: block;
        width: 100%;
        text-align: left !important;
    }

    .hwt-metallpreise-widget .hwt-mp-row {
        
        padding: 1rem 0;
    }

    .hwt-metallpreise-widget .hwt-mp-table th, .hwt-metallpreise-widget .hwt-mp-table td  {
        white-space: inherit;
    }

    .hwt-metallpreise-widget .hwt-mp-table td {
        padding: 0.2rem 1.25rem;
    }
    .hwt-mp-col-price-gross {
        padding-bottom: 1.25rem !important;
    }


    .hwt-metallpreise-widget .hwt-mp-col-weight::before {
        content: "Gewicht: ";
        font-weight: 500;
    }
    .hwt-metallpreise-widget .hwt-mp-col-price-net::before {
        content: "Netto: ";
       
    }
    .hwt-metallpreise-widget .hwt-mp-col-vat::before {
        content: "MwSt: ";
        font-weight: 500;
    }
    .hwt-metallpreise-widget .hwt-mp-col-price-gross::before {
        content: "Brutto: ";
        font-weight: 500;
    }
    .hwt-mp-col-product {
        background-color: #6c7380 !important;
        color: #FFF;
    }


}