@media (max-width: 576px) {
    #sticky-duplicate-wrapper {
      position: fixed;
      top: 52px;
      left: 0;
      right: 0;
      z-index: 999;
      display: block;
      text-align: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease-out;
    }
  
    #sticky-duplicate-wrapper.visible {
      pointer-events: auto;
      opacity: 1;
    }
  
    #sticky-duplicate-backdrop {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: calc(100% + 15px);
      background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.95) calc(100% - 5px),
        rgba(0, 0, 0, 0) 100%
      );
      z-index: 0;
      pointer-events: none;

    }
  
    #sticky-duplicate {
      width: 60%;
      max-height: 140px;
      object-fit: contain;
      margin-top: 10px;
      position: relative;
      border: none;
      transform: scale(1);
      transform-origin: center center;
      transition: transform 0.5s ease, width 0.5s ease, max-height 0.5s ease;
    }
  
    #sticky-duplicate.zoomed {
      width: 95vw !important;
      max-height: 50vh !important;
      
      transform: scale(1);
    }
  
    #sticky-duplicate-close,
    #sticky-duplicate-zoom,
    #sticky-duplicate-3d {
      position: absolute;
      top: 8px;
      background: none;
      border: none;
      color: white;
      font-size: 26px;
      font-weight: bold;
      z-index: 1000;
      cursor: pointer;
      line-height: 1;
      padding: 4px 8px;
      filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 1));
      pointer-events: auto;
      outline: none;
      box-shadow: none;
      appearance: none;
      border-radius: 0;
      margin-top: 0;
    }
  
    #sticky-duplicate-close:focus,
  #sticky-duplicate-zoom:focus,
  #sticky-duplicate-3d:focus {
    outline: none;
    box-shadow: none;
  }
  
    #sticky-duplicate-close {
      left: 12px;
      font-size: 32px;
    }
  
    #sticky-duplicate-zoom {
      right: 10px;
    }
    #sticky-duplicate-3d {
      right: 7px;
      top: 50px;
    }


    #sticky-duplicate-close,
  #sticky-duplicate-zoom,
  #sticky-duplicate-3d {
    transition: opacity 0.2s ease;
    
  }
  
  #sticky-duplicate-wrapper.inactive-buttons #sticky-duplicate-close,
  #sticky-duplicate-wrapper.inactive-buttons #sticky-duplicate-zoom,
  #sticky-duplicate-wrapper.inactive-buttons #sticky-duplicate-3d {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }
  }

@keyframes customFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Sanftes Ausblenden */
@keyframes customFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/*NEW GENERAL STYLES*/
#blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999; /* unterhalb des Dropdowns */
  backdrop-filter: blur(5px); /* hier passiert der Blur */
  background: rgba(255, 255, 255, 0.1); /* optional leichtes Overlay */
  pointer-events: none; /* verhindert, dass es Klicks blockiert */
}

.fancyLineFadeOut{
    position:relative; 
    top:-10px; 
    width:100%; 
    height:3px; 
    background-image: linear-gradient(to right,  grey, #343a40); 
    opacity:0.5;
}

/* Slimselect Anpassungen */
.dropdown-image{
    height:40px;
    width:40px;
    margin-right:8px;
    border-radius:3px; 
    float: left;
    border:#979797 1px solid;
    }
.dropdown-subtext{
    opacity: 0.6; 
    line-height: 0.5em; 
    position: relative; 
    top: -3px;
    font-size: 0.85em;
    }
.dropdown-subtext-sameline{
    opacity: 0.6; 
    font-size: 0.85em;
    }    
.dropdown-maintext{
    position: relative; 
    top: 1px;
    font-weight: 600;
    }
.dropdown-maintext-sameline{
 
    }    
:root {
    --ss-primary-color: rgba(0,69,59,1) !important;
    --ss-focus-color: rgba(0,69,59,1) !important;
    }
.ss-content {
    max-height: 500px !important; /* oder z. B. 70vh */
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 1) !important; /* Schatten */
    z-index: 9999; /* sicherstellen, dass es über anderen Elementen liegt */
}    
.ss-single {
    width: 100% !important;

    }
.ss-selected {
    --ss-primary-color: rgb(0, 44, 37) !important;
    border-radius:.25rem!important;
    }
.ss-option {
    border-radius:.25rem!important;
    }
.ddwrapper{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    margin-left: -2px;
    margin-top: 1px;
    } 
.ss-main{
    background-color: #e7e7e7 !important; /* Hintergrundfarbe */

}   

.ss-option.ss-disabled{
    background-color: white !important; /* Hintergrundfarbe */ 
    opacity: 0.3;
    text-decoration: line-through;
}

.ss-option.divider-option {
  pointer-events: none;
  cursor: default; 
  color: transparent; /* Text ausblenden */
  border-top: 2px solid #777;
  height: 0;  
  padding: 0;
  margin-top: 3px !important;
  margin-bottom: 0px !important;
  padding-bottom: 3px !important;
  padding-top: 0px !important;
  margin-left: 5px !important;
  margin-right: 5px !important;
}


/* SweetAlert2 Anpassungen */
.swal-wide-modal {
    max-width: 1400px;
    padding: 0; 
    margin: 4vh auto 4vh auto; 
    z-index: 99999;
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}

.swal-scroll-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem; 
}


.swal-wide-modal-full {
    max-width: 1400px;
    padding: 0; 
    margin: 1hv auto 1vh auto; 
    z-index: 99999;
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}
.swal-scroll-container-full {
    max-height: 95vh;
    overflow-y: auto;
    padding: 0.5em; 

}

.swal-wide-modal-full .swal2-html-container {
  --swal2-html-container-padding: 0.0em;
    padding: 0em;


  
}

/* Mobilanpassung */
@media (max-width: 768px) {
    .swal-scroll-container {
        max-height: 65vh;
        padding: 0.1rem;
    }
    .swal-scroll-container-full {
        max-height: 90vh;
        padding: 0.0rem;
    }
    .swal-wide-modal {
        width: 95vw;
        max-width: 95vw;
        margin: 1vh auto 8vh auto;
        box-shadow: 0 0px 15px rgba(0, 0, 0, 0.8);
        border-radius: 12px;
    }
    .swal-wide-modal-full {
        width: 96vw;
        max-width: 96vw;
        margin: 1vh auto 9vh auto;
        box-shadow: 0 0px 15px rgba(0, 0, 0, 0.8);
        border-radius: 12px;
    }
}

.swal2-html-container{
    padding-left: 0rem;
    padding-right: 0rem;
}
.swal2-container.swal-backdrop-blur {
  background-color: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}




/*Zusatzrand und Zusatzrand Dropdown*/
#zusatzrand-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
}

#zusatzrand-select-wrapper {
  min-width: 100%;
  transition: min-width 0.3s ease;
}

#zusatzrand-select-wrapper.shrinked {
  min-width: 49%;
}

#menu_zusatzrand_farbe {
  flex-basis: 51%;
  max-width: 51%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#menu_zusatzrand_farbe.visible {
  opacity: 1;
  visibility: visible;
}
.clr-field button:after{
    width: 24px !important;
    height: 24px !important;
}
.clr-field button{
    width: 24px !important;
    height: 24px !important;
    margin-right: 3px;
    border-radius: 3px;
}

/* Zierrahmen Grafik Anpassungen*/
.rahmen-container {
  width: 100%;
  height: 150px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.rahmen-img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

#zierrahmengrafik {
  position: relative;
  display: inline-block;
  overflow: hidden;
  cursor: pointer;
}

#zierrahmengrafik img {
  max-height: 100%;
  max-width: 100%;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#zierrahmengrafik:hover img {

  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

/* Overlay-Text */
#zierrahmengrafik::after {
  content: attr(data-label);
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.3);
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Hover: immer anzeigen */
#zierrahmengrafik:hover::after {
  opacity: 1;
}

/* Immer sichtbar, wenn "none.png" */
#zierrahmengrafik.none-selected::after {
  opacity: 1;
}


