
.headlines-container {
    position: relative;
    width: 100%;
}

.headlines {
    width: 50%;
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 0;
}

.headline {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    height: 100vh; /* Each headline takes full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;
    font-family: 'MunkenSansWeb-Bold',sans-serif;
    padding: 10%;
    position: relative;
}

.scroll-hint {
    transition: opacity 0.5s ease-in-out;
}

/* Scroll hint styles */
.scroll-hint::after {
    content: "↓ Hier geht's weiter";
    position: absolute;
    font-weight: normal;
    font-family: sofia-sans, sans-serif;
    bottom: 20px;
    font-size: 1.2rem;
    animation: fadeIn 0.5s ease-in-out 2.5s forwards, bounce 2s infinite 2.5s, fadeInOut 2s infinite 3s;
    opacity: 0; /* Initially hidden */
    text-align: center;
    z-index: 10000;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.7;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
    .headlines {
        width: 100%; /* Full width on smaller screens */
        position: relative; /* Change from absolute positioning */
        right: auto;
    }

    .headline {
        font-size: 2rem; /* Smaller font size on mobile */
        padding: 5%; /* Less padding */
        height: 100svh; /* Use svh for better mobile support */
    }

    .scroll-hint::after {
        font-size: 1rem; /* Smaller hint text */
        bottom: 10px; /* Position closer to bottom */
    }
}

/*@media screen and (max-width: 480px) {*/
/*    .headline {*/
/*        font-size: 1.5rem; !* Even smaller font for very small screens *!*/
/*    }*/
/*}*/

/* For landscape orientation on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .headline {
        height: auto; /* Allow content to define height */
        min-height: 100vh; /* Ensure minimum full height */
        padding: 10% 5%; /* Adjust padding for landscape */
    }
}

/* Support for older browsers that don't understand svh */
@supports not (height: 100svh) {
    @media screen and (max-width: 768px) {
        .headline {
            height: 100vh; /* Fallback to vh */
            /* Add extra padding to ensure content is visible on mobile browsers */
            padding-bottom: 15%;
        }
    }
}