body:has(.el-scrolling-text:not(.bhe-state-content-hidden)) {
    --start-info-height: calc(75px + 48px);
    --content-height: calc(100vh - var(--start-info-height));
}

:root .bh-bemode:has(.el-scrolling-text:not(.bhe-state-content-hidden)) {
    --content-height: calc(788px - var(--start-info-height));
}

body[data-doktype="60"]:has(.el-scrolling-text:not(.bhe-state-content-hidden)) .bh-touch-language {
    top: 60px;
}

body[data-doktype="60"]:has(.el-scrolling-text:not(.bhe-state-content-hidden)) .bh-touch-start-logo {
    top: 50px;
}

@media only screen and (max-width: 767px) {
    body[data-doktype="60"]:has(.el-scrolling-text:not(.bhe-state-content-hidden)) .bh-touch-language {
        top: 45px;
    }
    body[data-doktype="60"]:has(.el-scrolling-text:not(.bhe-state-content-hidden)) .bh-touch-start-logo {
        top: 0px;
    }
}

.bhe-state-dragging .bh-touch-start-logo {
    pointer-events: none;
}

.scrolling-text {
    background: #bfb0a4;
    overflow: hidden;
    white-space: nowrap;
    color: #ffffff;
}

.bhe-state-editing .scrolling-text {
    overflow: visible;
    white-space: wrap;
}

.scrolling-text__text {
    display: inline-block;
    min-width: 100%;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    color: #ffffff;
}

.scrolling-text--scrolling .scrolling-text__text {
    animation: marquee 10s linear infinite;
    transition: animation-duration 0.3s;
}

.scrolling-text:hover .scrolling-text__text {
    animation-play-state: paused;
}

.bhe-state-editing .scrolling-text__text {
    width: 100%;
    animation: none;
}

.bhe-state-editing .scrolling-text__text--copy,
.scrolling-text:not(.scrolling-text--scrolling) .scrolling-text__copy {
    display: none;
}

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}
