

.ms-wrapper {  
    background-color: var(--color-hero);
    color: var(--color-lightest);
    overflow-x: hidden;
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.ms-wrapper * {
    box-sizing: border-box;
}

.ms-wrapper a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}


/* --- HERO SECTION --- */
.ms-hero {
    /* min-height: 100vh; */
    display: flex;
    flex-direction: column; /* Mobile First: Stacked */
    padding: 100px 20px 50px 20px;
    position: relative;
}

/* BILD: Mobile Styling (Zentriert, Oben) */
.ms-hero__img-container {
    order: -1; /* Visuell nach oben */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 30px;
}

.ms-hero__img-container img {
    width: 85%; 
    /* max-width: 320px; */
    /* margin-top: 80px; */
    height: auto;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* TEXT: Mobile Styling (Zentriert, kein Border) */
.ms-hero__content {
    z-index: 2;
    text-align: center; /* Zentriert auf Mobile */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ms-hero__text-wrapper {
    border-left: none; /* Kein Strich auf Mobile */
    padding-left: 0;
    margin-bottom: 30px;
}

.ms-hero__title {
    /* Clamp sorgt dafür, dass nowrap nicht den Screen sprengt */
    font-size: clamp(1.8rem, 5vw, 2.5rem); 
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 10px;
    white-space: nowrap; /* WICHTIG: Immer einzeilig */
}

.ms-hero__subtitle {
    color: var(--color-light);
    font-size: 1rem;
    font-weight: 300;
}

.ms-btn {
    display: inline-block;
    border: 1px solid var(--color-accent);
    color: var(--color-light);
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 40px;
    transition: 0.3s;
    margin-left: 24px;
}

.ms-btn:hover {
        background: var(--color-accent);
        color: #fff;
}

.ms-view-projects {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: auto; 
    padding-top: 20px;
}

.ms-circle-arrow {
    width: 30px; height: 30px;
    border: 1px solid #444;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
}

.ms-scroll-indicator { display: none; }


/* --- TABLET & INTERMEDIATE (ab ca. 680px) --- 
    Hier versuchen wir das Desktop-Design zu halten, 
    aber skaliert (Images kleiner, Fonts kleiner) 
*/
@media (min-width: 680px) {
    .ms-hero {
        flex-direction: row; /* Nebeneinander */
        align-items: center;
        justify-content: space-between;
        padding: 0 40px; /* Weniger Padding als Desktop, mehr als Mobile */
        overflow: hidden;
    }

    .ms-hero__img-container {
        order: 0; /* Zurück nach rechts */
        margin-bottom: 0;
        flex: 1;
        justify-content: flex-end;
        height: 100%;

        /* Bild etwas kleiner als bei Full-Desktop */
        max-width: 50%; 
    }
    
    .ms-hero__img-container img {
        width: 100%;
        max-width: 450px;
        margin-top: 0px;
    }


    .ms-hero__content {
        flex: 1;
        text-align: left; /* Zurück auf Links */
        align-items: flex-start;
        padding-right: 20px;
    }

    .ms-hero__text-wrapper {
        border-left: 2px solid #444; /* Strich wieder da */
        padding-left: 20px;
    }

    .ms-hero__title {
        /* Schrift etwas größer, aber noch responsive */
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    /* .ms-view-projects {
        position: absolute;
        bottom: 40px;
        left: 40px;
        margin-top: 0;
    } */
}


/* --- FULL DESKTOP (ab 992px) --- 
    Hier kommt das "echte" Design mit voller Größe,
    Navigationsleiste statt Burger, etc.
*/
@media (min-width: 992px) {
    .ms-navbar { padding: 40px 60px; }
    .ms-logo img { height: 40px; } 
    
    /* Burger weg, normale Nav her */
    .ms-hamburger { display: none; } 
    .ms-nav-overlay { display: none; } /* Overlay komplett weg */
    
    .ms-nav-links-desktop {
        display: flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        gap: 40px;
    }
    .ms-nav-links-desktop a {
            font-size: 1rem;
            color: var(--color-lightest);
            font-weight: 300;
            position: relative;
    }
    .ms-nav-links-desktop a.active::after {
        content: ''; display: block; width: 100%; height: 1px; background: #fff; margin-top: 5px;
    }

    .ms-search-icon { display: block; font-size: 1.2rem; cursor: pointer; color: var(--color-lightest); } 

    /* .ms-hero {
        padding: 0 0 0 10%;
    } */

    .ms-hero__img-container {
        /* top: 50px; */
        position: relative;
        max-width: unset; /* Limit aufheben */
    }
    
    .ms-hero__img-container img {
        max-width: 650px;
    }

    .ms-hero__title {
        font-size: 3rem; /* Volle Größe */
    }

    /* .ms-view-projects {        bottom: 50px; left: 10%;    } */

    /* Scroll Indicator rechts */
    .ms-scroll-indicator {
        display: flex; flex-direction: column; gap: 15px;
        position: absolute; right: 30px; top: 50%;
        transform: translateY(-50%);
    }
    .ms-bar { width: 2px; height: 30px; background-color: #444; }
    .ms-bar.active { background-color: var(--color-accent); }
}