
.hint-box {
     position: fixed;
    top: 40%;
    right: -545px;
    width: 600px;
    height: 50%;
    background: #fff;
    display: flex;
    transition: right 0.6s ease-in-out;
    z-index: 1002;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.3);
}
.hint-box:not(.open) .hint-label:before,.hint-box:not(.open) .hint-label:after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid #fff;
    margin: 1rem 0;
    animation: flash 1.5s infinite; 
}
.hint-box.open .hint-label:before,.hint-box.open .hint-label:after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 20px solid #fff;
    margin: 1rem 0;
    animation: flash 3s infinite; 
}

.hint-box.open {
  right: 0; /* fährt komplett rein */
}

.hint-label {
     writing-mode: sideways-rl;
    transform: rotate(180deg);
      background: var(--e-global-color-accent);
    justify-content: center;
    color: white;
    font-weight: bold;
    padding: 1rem;
    display: flex;
    align-items: center;
    font-size: 2rem;
        cursor: pointer;
}

.hint-content {
  flex: 1;
  padding: 1rem 2rem;
  overflow-y: auto;
}
.hint-content p {
    margin-bottom: 10px;
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hint-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  padding: 10px !important;
}
button.hint-close:hover {
    background: var(--e-global-color-accent) !important;
}

/*Mobile*/
    @media (max-width: 768px) {
      #hintBox {
          left: 0;
          bottom: -43%;
          top: unset;
          right: 0;
          flex-direction: column;
          width: 100%;
          transition: bottom 0.6s ease-in-out;
      }
      .hint-label {
          writing-mode: unset;
          transform: rotate(0deg);
          padding: 0;
      }
      .hint-box:not(.open) .hint-label:before, .hint-box:not(.open) .hint-label:after {
          content: "";
          display: inline-block;
          width: 0;
          height: 0;
          border-left: 10px solid transparent;
          border-right: 10px solid transparent;
          border-bottom: 15px solid #fff;
          margin: 10px;
          animation: flash 1.5s infinite;
          position: relative;
          bottom: 5px;
      }
      .hint-box.open .hint-label:before, .hint-box.open .hint-label:after {
          content: "";
          display: inline-block;
          width: 0;
          height: 0;
          border-left: 10px solid transparent;
          border-right: 10px solid transparent;
          border-top: 15px solid #fff;
          margin: 10px;
          animation: flash 3s infinite;
          top: 5px;
          position: relative;
      }
      .hint-box.open {
          right: 0;
          bottom: 0 !important;
      }

    }