/* ------------------------------------------------------------ */
/* GRUNDLAYOUT */
/* ------------------------------------------------------------ */

.hwt-edr-wrapper {
    background: #F7F7F5;
    padding: 2.5rem 10rem;;
    box-sizing: border-box;
    font-family: 'SpecialGothic';
}

/* Zwei Spalten: 50 / 50 */
.hwt-edr-columns {
    display: flex;
    gap: 1.25rem;
    width: 80rem;
}

.hwt-edr-column {
    width: 50%;
}

/* ------------------------------------------------------------ */
/* HEADER-BEREICH: Titel kommt aus Theme → keine Styles */
/* ------------------------------------------------------------ */


/* ------------------------------------------------------------ */
/* TABELLENHEADER */
/* ------------------------------------------------------------ */

/* Grundstruktur */
.hwt-edr-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.75rem;
    color: #ffffff;
    margin-bottom: 1.688rem;
    border-radius: 0.313rem;
}

/* Gold-Header */
.hwt-edr-header-gold .hwt-edr-table-header {
    background: #95886B;
}

/* Silber-Header */
.hwt-edr-header-silver .hwt-edr-table-header {
    background: #6C7380;
}

/* Spaltennamen */
.hwt-edr-table-header .hwt-edr-col-feingehalt,
.hwt-edr-table-header .hwt-edr-col-gewicht {
    font-size: 1.063rem;
    font-family: 'SpecialGothic SemiExpanded';
    font-weight: 500;
}
.hwt-edr-table-header .hwt-edr-col-gewicht  {
    text-align: right;
}
/* ------------------------------------------------------------ */
/* ZEILEN-BASIS (noch ohne Design, nur Struktur) */
/* ------------------------------------------------------------ */

.hwt-edr-row {
    display: grid;
    grid-template-columns: 1fr auto;
    padding-left: 0.75rem;
    align-items: center;
    margin-bottom: 0.438rem;
    border-radius: 0.313rem;
}


.hwt-edr-fein-label {
  font-weight: 500;
  font-size: 1.125rem;
}

.hwt-edr-karat-label {
    font-size: 1.125rem;
}

/* ------------------------------------------------------------ */
/* INPUT-BEREICH BASIS */
/* ------------------------------------------------------------ */

.hwt-edr-input-wrapper {
    position: relative;
    padding: 0.313rem;
    padding-right: 2.5rem;
    border-radius: 0.313rem;
}

.hwt-edr-input {
    width: 9.375rem;
    padding: 0.75rem;
    font-size: 1.063rem;
    box-sizing: border-box;
    font-weight: 500;
    text-align: right;
    border: 0 !important;
    font-family: 'Roboto Mono';
    font-weight: 400;
}
.hwt-edr-subtotal-value, .hwt-edr-sum-total {
   
    padding: 0.8rem 2.5rem;
    width: 12.2rem;
    font-size: 1.188rem;
    box-sizing: border-box;
    font-weight: 500;
    text-align: center;
    color: #FFF;
    border-radius: 0.313rem;
}
.hwt-edr-sum-total {
    color: #95886B;
    background-color: #FFF;
    border: 0.2rem solid #95886B;
    padding: 0.6rem 2.5rem;
    float:right;
    font-family: 'SpecialGothic SemiExpanded';
    font-weight: 500;
}
.hwt-edr-sum-gold {
    background-color: #95886B;
}
.hwt-edr-sum-silver {
    background-color: #6C7380;
}
.hwt-edr-unit {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
   
    font-size: 1.313rem;
    font-family: 'SpecialGothic SemiExpanded';
    font-weight: 500;
    color: #FFF;
}

/* ------------------------------------------------------------ */
/* SUBTOTALS — nur Struktur */
/* ------------------------------------------------------------ */

.hwt-edr-subtotal {
    display: flex;
    justify-content: space-between;
    margin-top: 2.188rem;
    align-items: center;
    font-family: 'SpecialGothic SemiExpanded';
    font-weight: 500;
}

.hwt-edr-subtotal-label {
    font-size: 1.375rem;
    font-weight: 500;
    align-items: center;
    padding-left: 0.75rem;
}


/* ------------------------------------------------------------ */
/* FOOTER — Struktur */
/* ------------------------------------------------------------ */

.hwt-edr-footer {
    display: flex;
    flex-direction: row;     
    align-items: center;      
    justify-content: space-between; 
    width: 100%;
    gap: 1.25rem;
    padding-top: 1.5rem;

}
.hwt-edr-footer-left {
    display: flex;
    flex-direction: row;      
    align-items: center;    
    justify-content: space-between; 
    width: 50%;
}

.hwt-edr-reset {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    color: #0F121A;
    opacity: 0.5;
    transition: opacity 0.2s ease;
   
}
.hwt-edr-reset:hover {
    opacity: 1;
}
.hwt-edr-footer-right {
     margin-top: -1.8rem;
     width: 50%;
     text-align: right;
}
/* ------------------------------------------------------------ */
/* ROW BACKGROUNDS */
/* ------------------------------------------------------------ */

.hwt-edr-row {
    transition: background-color 0.3s ease;
}
.hwt-edr-column-gold .hwt-edr-row {
    background: rgba(149, 136, 107, 0.10); /* #95886B - 10% */
}

.hwt-edr-column-silver .hwt-edr-row {
    background: rgba(108, 115, 128, 0.10); /* #6C7380 - 10% */
}

.hwt-edr-column-gold .hwt-edr-row:hover {
    background: rgba(149, 136, 107, 0.20); /* #95886B - 10% */
}

.hwt-edr-column-silver .hwt-edr-row:hover {
    background: rgba(108, 115, 128, 0.20); /* #6C7380 - 10% */
}

/* ------------------------------------------------------------ */
/* FEINGEHALT + KARAT IN EINER REIHE */
/* ------------------------------------------------------------ */

.hwt-edr-col-feingehalt {
    display: flex;
    align-items: center;

}

.hwt-edr-fein-label {
    white-space: nowrap;
}

.hwt-edr-karat-label {
    white-space: nowrap;
    text-align: right;
    width: 40%;
}

.hwt-edr-column-silver .hwt-edr-input-wrapper {

    background-color: rgba(108, 115, 128, 0.7);
}
.hwt-edr-column-gold .hwt-edr-input-wrapper {

    background-color: rgba(149, 136, 107, 0.7);
}



.hwt-edr-date {
    display: flex;
    justify-content: flex-end; 
    font-family: 'Roboto Mono';
}

.hwt-edr-date-inner {
    text-align: center;
    width: 12.5rem;
    font-size: 0.75rem;
}
.hwt-edr-column-gold .hwt-edr-date-inner {
    color: #95886B;
}
.hwt-edr-column-silver .hwt-edr-date-inner {
    color: #6C7380;
}

.hwt-edr-footer-outer {
    background-color: #CCBC99;
    font-family: 'SpecialGothic';
    background-image: url(../images/Metallorum-M.svg);
    background-repeat: no-repeat;
    background-position: 4% 50%;
}
.hwt-edr-footer {
    width: 80rem;
    margin: 0 auto;
   
}

.hwt-edr-total-label {
    font-size: 1.375rem;
    font-weight: 500;
    align-items: center;
    padding-left: 0.75rem;
    margin-top: -1.8rem;
}
.hwt-total-date {
    width: 12.5rem;
    font-size: 0.75rem;
    color: #FFF;
    text-align: center;
    font-family: 'Roboto Mono';
}
/* ------------------------------------------------------------ */
/* RESET BUTTON ICON (AFTER) */
/* ------------------------------------------------------------ */
.hwt-edr-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem; 
}

/* Icon */
.hwt-edr-reset::after {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  background-image: url("../images/Metallorum-Icon-Reset.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;

  /* Animation */
  transition: transform 0.25s ease;
}


.hwt-edr-reset:hover::after {
  transform: rotate(90deg);
}

@media (max-width: 1400px) {



  .hwt-edr-columns {
    flex-direction: column;   
    width: 100%;
  }

  .hwt-edr-column {
    width: 100%;
  }
  .hwt-edr-wrapper {
    padding: 2.5rem 1rem;
  }
  .hwt-edr-footer {
    width: 100%;
  }
  .hwt-edr-subtotal {
    flex-direction: column; 
    width: 100%;
}
.hwt-edr-subtotal>div {
    width: 100%;
}
 .hwt-edr-subtotal-value {
    margin-top: 1.25rem;
 }
 .hwt-edr-date-inner {
    width: 100%;
 }
 .hwt-edr-footer {
    flex-direction: column;
 }
  .hwt-edr-footer>div {
    width: 100%;
  }
  .hwt-edr-footer-left {
    flex-direction: column;
 }
  .hwt-edr-footer-left>div {
    width: 100%;
  }
  .hwt-edr-footer {
    padding: 2.5rem 1rem;
  }
  .hwt-edr-sum-total {
    margin-top: 1.25rem;
    width: 100%;
  }
  .hwt-total-date {
    width: 100%;
  }
  .hwt-edr-footer-outer {
    background:none;
    background-color: #CCBC99;
    }
.hwt-edr-footer-right {
     text-align: center;
     margin-top: 1.25rem;
}
.elementor-widget-hwt_edelmetall_rechner {
    width: 100%;
}

}
