.dynamic-bg-container {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Fixed háttérkép */
    background-repeat: no-repeat;
    color: white;
    width: 100vw;
    height: 100vh;
    text-align: center;
    transition: background-image 1.5s ease-in-out;
    overflow: hidden;
}

.background {
    position: absolute; /* absolute helyett fixed */
    top: 0;
    left: 0;
    right: 0; /* right: 0 hozzáadása */
    bottom: 0; /* bottom: 0 hozzáadása */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.background h1 {
    color: white;
    margin-bottom: 4rem;
    margin-top: 0;
    letter-spacing: 0.6em;
}

.background p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Mobilra optimalizálás */
@media (max-width: 768px) {
    .dynamic-bg-container {
        background-attachment: scroll; /* Mobilon scroll */
        background-size: cover; /* Biztosítja hogy mobilon is jó legyen */
    }
    
    .bg-content {
        padding: 30px 20px;
        margin: 0 15px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .dynamic-bg-container {
        background-size: cover; /* Ismételjük meg a kis képernyőkön is */
    }
    
    .bg-content {
        padding: 25px 15px;
        font-size: 0.9em;
    }
}