.elovis-calc-header {
  font-weight: 600 !important;
  text-shadow: 2px 2px 2px grey;
}

.elovis-popup-close {
  background-color: #da2724;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.popup-close {
  position: absolute;
  right: 30px;
  font-size: larger;
  font-weight: 900;
  cursor: pointer;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.ldcv .inner {
  padding: 20px !important;
}

.ldcv .base {
  overflow-y: auto !important;
}

.elovis-calc .mt-20 {
  margin-top: 20px !important;
}

.elovis-calc {
  max-width: 1000px;
  margin: 0 auto;
}

.elovis-calc .elovis-info {
  text-align: center;
  padding-bottom: 20px;
  font-weight: bold;
}
.elovis-calc h1 {
  color: #da2724;
  text-align: center;
  padding-bottom: 20px;
}

.elovis-calc .slider-result {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
}

.elovis-calc .card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.elovis-calc .card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Sorgt dafür, dass das Input-Feld nach unten wandert */
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.elovis-calc .card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.elovis-calc .sub-card {
  background-color: #f2f2f2;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.elovis-calc .sub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.elovis-calc .sub-card-header h3 {
  color: #7d8286;
  margin: 0;
}

.elovis-calc .material-icon {
  position: relative;
}

.elovis-calc .material-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background-color: #da2724;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 5px;
  position: relative;
  margin-top: -25px;
  margin-right: -10px;
}

.elovis-calc label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #7d8286;
}

.elovis-calc input,
.elovis-calc select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #7d8286;
  border-radius: 5px;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease-in-out;
}

.elovis-calc input:focus,
.elovis-calc select:focus {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  outline: none;
  border-color: #bfbfbf;
}

.elovis-calc button {
  background-color: #da2724;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

.elovis-calc button:hover {
  background-color: #bf2020;
}

.elovis-calc h2 {
  color: #7d8286;
  text-align: center;
}

.elovis-calc .result-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 240px;
}

.elovis-calc .result-card td {
  padding: 10px;
  font-weight: bold;
  color: #666666;
}

.elovis-calc .slider-output {
  font-weight: bold;
  margin-left: 10px;
  color: #da2724;
}

.elovis-calc .grid-sidebar-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0px;
}

/* Grid Layout */
.elovis-calc .lw-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0px;
}

.elovis-calc .grid-item {
  background-color: #f2f2f2;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Anpassung */
@media (max-width: 1100px) {
  .elovis-calc .lw-grid-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .elovis-calc .grid-sidebar-container {
    grid-template-columns: 1fr;
  }
}

#elovissnackbar {
  visibility: hidden;
}

@media (max-width: 768px) {
  /* The snackbar - position it at the bottom and in the middle of the screen */
  #elovissnackbar {
    visibility: hidden;
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #da2724; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 99999999; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    top: 30px; /* 30px from the bottom */
    font-weight: bold;
    border-radius: 5px;
    height: 60px;
  }

  #elovissnackbar .snackbar-logo {
    background: url("../img/logo_small_white.png");
  }

  /* Show the snackbar when clicking on a button (class added with JavaScript) */
  #elovissnackbar.show {
    visibility: visible !important; /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
  }

  /* Animations to fade the snackbar in and out */
  @-webkit-keyframes fadein {
    from {
      bottom: 0;
      opacity: 0;
    }
    to {
      bottom: 30px;
      opacity: 1;
    }
  }

  @keyframes fadein {
    from {
      bottom: 0;
      opacity: 0;
    }
    to {
      bottom: 30px;
      opacity: 1;
    }
  }

  @-webkit-keyframes fadeout {
    from {
      bottom: 30px;
      opacity: 1;
    }
    to {
      bottom: 0;
      opacity: 0;
    }
  }

  @keyframes fadeout {
    from {
      bottom: 30px;
      opacity: 1;
    }
    to {
      bottom: 0;
      opacity: 0;
    }
  }
}

.elovis-calc .card-result {
  justify-content: center !important;
  flex-direction: row !important;
}

.elovis-calc .slider-logo {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: opacity 0.15s ease-in-out;
  transition: opacity 0.15s ease-in-out;
}

.elovis-calc .slider-logo:hover {
  opacity: 1;
}

.elovis-calc .slider-logo::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 23px;
  height: 24px;
  border-radius: 50%;
  background: url("../img/logo_small.png");
  cursor: pointer;
}

.elovis-calc .slider-logo::-moz-range-thumb {
  width: 23px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: url("../img/logo_small.png");
  cursor: pointer;
}

.elovis-calc .flex {
  display: flex !important;
}

.elovis-calc .result-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.elovis-calc .result-item {
  margin-bottom: 15px;
}

.elovis-calc .result-item label {
  font-weight: bold;
  color: #7d8286;
  margin-bottom: 5px;
  display: block;
}

.elovis-calc .result-item div {
  font-weight: bold;
  color: #666666;
  padding-left: 15px;
  font-size: 18px; /* Größerer Text für die berechneten Werte */
}

.elovis-calc .result-item-logo {
  background: url("../img/logo_small.png");
  width: 24px;
  height: 24px;
  display: block;
  float: left;
  margin-right: 5px;
  background-repeat: no-repeat;
}

.elovis-calc .important-result label {
  font-weight: bold;
  font-size: 20px; /* Größeres Label für wichtige Ergebnisse */
}

.elovis-calc .important-result div {
  font-weight: bold;
  font-size: 24px; /* Größere Schriftgröße für den wichtigsten Wert */
  color: #da2724; /* Verwende die gleiche Farbe wie das Label */
}

.elovis-calc-flex {
  display: flex !important;
}

.elovis-calc input[type="radio"] {
  height: 35px !important;
  min-height: 35px !important;
  width: 35px !important;
  min-width: 35px !important;
  margin-right: 10px;
}

.elovis-calc input[type="radio"]:checked + .radio-label {
  border-color: #da2724; /* Farbe des Rahmens bei Auswahl */
  color: #da2724; /* Textfarbe bei Auswahl */
}

.elovis-calc input[type="radio"]:checked + .radio-label i {
  color: #da2724; /* Iconfarbe bei Auswahl */
}

.elovis-calc fieldset {
  display: flex;
  align-items: center !important;
}
.elovis-calc fieldset label {
  align-items: center !important;
  display: flex;
}
.elovis-calc .pointer {
  cursor: pointer;
}

.elovis-calc .w-50 {
  width: 50% !important;
}

.elovis-calc .w-100 {
  width: 100% !important;
}

.elovis-calc .card-result button {
  min-height: 75px !important;
}

.elovis-calc .hidden-important {
  display: none !important;
}
/* Zentriert die Ladeanimation in der Mitte des Containers */
.elovis-loader-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 25px;
}

/* Erzeugt das rotierende Logo */
.elovis-loader {
  width: 35px; /* Breite des Logos */
  height: 35px; /* Höhe des Logos */
  border-radius: 50%; /* Macht die Form rund */
  background-image: url("../img/logo_small.png"); /* Setzt das Logo als Hintergrund */
  background-size: cover; /* Deckt den gesamten Bereich mit dem Logo ab */
  background-position: center; /* Zentriert das Logo */
  animation: rotate 2s linear infinite; /* Rotiert das Logo kontinuierlich */
}

/* Stellt den Text ein */
.elovis-loader-text {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* Keyframes für die Rotations-Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
