/* Back to Top Button Styles */
.back-to-top-wrapper {
    position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  max-width: 100vw;
  overflow-x: hidden;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.back-to-top-wrapper.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top {
    width: 50px;
    height: 50px;
    background-color: var(--color--primary-3);
    color: var(--color--primary-2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    /* box-shadow: var(--shadow--primary); */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.back-to-top:hover {
    background-color: var(--color--secondary-2);
    color: var(--color--primary-3);
    transform: translateY(-2px);
    box-shadow: var(--shadow--primary);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:focus {
    outline: none;
    /* box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3); */
}

/* Responsive Design */
@media (max-width: 768px) {
    .back-to-top-wrapper {
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Alternative Pfeil-Icon Stil */
.back-to-top::before {
    content: "";
    background: url('data:image/svg+xml,<svg width="16" height="19" viewBox="0 0 16 19" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 19L8 2" stroke="black" stroke-width="1.63635"/><path d="M15 7.65332L7.97821 1.54742L0.956429 7.65332" stroke="black" stroke-width="1.63635"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    /* background-size: 24px 24px; */
    line-height: 1;
    width: 24px;
    height: 24px;
    display: inline-block;
}

/* Wenn Sie ein SVG-Icon verwenden möchten, können Sie diesen Stil verwenden: */
/*
.back-to-top {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.back-to-top::before {
    content: "";
}
*/
