
body {
    font-family: Arial, sans-serif;
    color: #C9E298;
    margin: 0;
    padding: 0;
    background-color: #131C2A;
    font-size: 25px;
}

h1 {
    color: white;
    border-radius: 20px;
    margin: 0; 
    text-align: center;
    padding: 10px;
    flex-grow: 1;
    background-color: inherit; /* Erbt die Hintergrundfarbe von header */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #299a1c;
}

.language-selection {
    display: flex;
    gap: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
    flex-wrap: wrap;
}

.language-flag, .language-selection img {
    width: 40px;
    height: auto;
    cursor: pointer;
}

.language-flag {
    border: 2px solid #217618;
    border-radius: 5px;
}

.projects-link {
    position: absolute;
    top: 60px;
    right: 10px;
    color: #00BFFF;
    text-decoration: none;
    font-weight: bold;
}

.projects-link:hover, a:hover {
    color: #7CFC00; /* Hellgrün beim Hover */
}

/* Link Style */
a {
    color: #00BFFF;
    text-decoration: none;
    font-weight: bold;
}

.about-me, .text-section {
    padding: 10px;
    text-align: center;
}

h2, p {
    text-align: center;
    margin: 15px auto;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    body {
        font-size: 18px; 
        padding: 10px;
    }

    header {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 1.4em;
        padding: 5px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 1.4em; 
        margin-top: 20px;
    }

    p {
        font-size: 1em; 
        padding: 0 10px;
    }

    .language-selection {
        justify-content: center;
        margin-top: 10px;
        position: static;
    }

    .language-selection img {
        width: 24px;
    }

    .projects-link {
        position: static;
        font-size: 0.9em;
        margin-top: 10px;
    }

    .text-section {
        padding: 20px 10px;
    }
}
