/* ===========================================
   HERO SECTION
=========================================== */
.herosection {
    display: flex;
    flex-direction: column; /* Inhalte von oben nach unten */
    justify-content: flex-start; /* startet oben */
    align-items: flex-start; /* linksbündig */
    position: relative;
    width: 100%;
    min-height: 80vh; /* responsive Höhe, mindestens 80% der Viewport-Höhe */
    padding: 5% 6%; /* Innenabstand für Text */
    background: linear-gradient(
        to bottom right,
        rgba(0, 0, 0, 1),
        rgba(18, 3, 19, 0.5),
        rgba(61, 35, 111, 0.5),
        rgba(140, 82, 255, 1)
    );
    overflow: hidden; /* überschüssige Inhalte verstecken */
}

/* Hero Überschrift */
.herosection p:nth-child(2) {
    font-size: clamp(2rem, 2vw, 2rem); /* responsive Schriftgröße */
    font-family: 'Belleza', sans-serif;
    margin: 12rem 0 1rem 0;
}

/* Hero Header fett */
.heroheader b {
    font-size: clamp(3rem, 6vw, 5.5rem);
}

/* Hero Text */
.herosection p:nth-child(3) {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

/* Buttons */
.herosection button:nth-child(4),
.herosection button:nth-child(5) {
    width: clamp(200px, 18vw, 250px);
    margin-bottom: 1rem;
}

/* Zusätzlicher Text */
.herosection p:nth-child(6) {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* ===========================================
   HERO IMAGE CONTAINER
=========================================== */
.imgcontainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none; /* verhindert Klicks auf die Bilder */
}

.imgcontainer img {
    position: absolute;
    object-fit: contain; /* proportional skalieren */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Vordergrundbild */
.imgcontainer img:nth-child(1) {
    z-index: 1;
    width: 70%;
    height: auto;
    left: -7.5%;
    top: 0%;
}

/* Hintergrundbild */
.imgcontainer img:nth-child(2) {
    width: 100%;
    height: auto;
    z-index: -1;
    filter: grayscale(100%);
    opacity: 0.6;
    left: 20%;
    top: 0;
}

/* ===========================================
   RESPONSIVE DESIGN
=========================================== */
@media (min-width: 1024px) {
   
    .imgcontainer img:nth-child(1) {
        width: 48%;
        left: -3%;
        top: 0%;
    }
    .herosection p:nth-child(2) {
        margin-top: 18rem;
    }
   
}
@media (max-width: 1280px) {
    .herosection {
        padding: 5% 4%;
    }
.herosection p:nth-child(2) {
        margin-top: 6.5rem;
    }
    .imgcontainer img:nth-child(1) {
        width: 50%;
        left: -5%;
        top: 5%;
    }

    .imgcontainer img:nth-child(2) {
        width: 100%;
        left: 10%;
    }
}

@media (max-width: 768px) {
    .herosection p:nth-child(2),
    .herosection p:nth-child(3),
    .herosection p:nth-child(6),
    .heroheader b {
        text-align: center;
        margin-left: 0;
        width: 100%;
    }

    .herosection {
        align-items: center;
    }

    .imgcontainer img:nth-child(1) {
        width: 50%;
        top: 0%;
        left: -5%;
    }

    .imgcontainer img:nth-child(2) {
        width: 120%;
        left: -10%;
    }

    .herosection button:nth-child(4),
    .herosection button:nth-child(5) {
        width: 80%;
    }
}
