/* Global settings for responsiveness */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Make the body responsive to different screen sizes */
body {
    font-family: Arial, sans-serif;
}

/* Main image styling - height adjusted */
#MainImg {
    width: 100%;
    height: 70vh; /* Höhe des Bildes reduziert */
    object-fit: cover;
    object-position: center;
    margin-bottom: -4px;
    border-bottom: 1px solid var(--Aqua);
    box-shadow: 0px 0px 10px black;
}

/* Main content container */
#Main {
    margin: 50px auto; /* Larger margin-top */
    width: 90%; /* Reduced to make it fit on smaller screens */
    max-width: 1200px; /* Limit max width on larger screens */
    padding: 30px;
    background-color: var(--Dunkelgrau);
    font-size: 1.5em;
    text-align: justify;
    color: var(--Aqua);
    border: 1px solid var(--Aqua);
    border-radius: 50px;
    box-shadow: 0px 0px 50px black;
}

/* Title styling */
#MainUeberschrift {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: left;
}

/* Main text styling */
#MainText {
    font-size: 1.2em; /* Smaller text for readability on smaller screens */
}

@media (min-width: 1500px) {
    #MainImg {
        object-position: center -300px;
    }
}

/* Media query for smaller screens (mobile devices) */
@media (max-width: 768px) {
    #Main {
        width: 95%; /* Make the main content take more space on small screens */
        padding: 20px;
    }
    
    #MainUeberschrift {
        font-size: 1.5em; /* Adjust font size for mobile */
    }
    
    #MainText {
        font-size: 1em; /* Adjust font size for better readability */
    }
}

/* Media query for very small screens (portrait mode, smaller phones) */
@media (max-width: 480px) {
    #Main {
        width: 95%;
        padding: 15px;
    }
    
    #MainUeberschrift {
        font-size: 1.3em;
    }
    
    #MainText {
        font-size: 0.9em;
    }
}
