/* styles.css */

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: white;
    color: white;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box; /* Sicherstellen, dass die Polsterung in der Breite enthalten ist */
}

.logo img {
    max-height: 100px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px; /* Weniger Abstand zwischen den Menüpunkten */
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: red; /* Dunkelpink */
    text-decoration: none;
    font-size: 0.9em; /* Kleinere Schriftgröße */
    padding: 5px 10px; /* Weniger Polsterung */
    border-radius: 5px;
    transition: color 0.3s, background-color 0.3s, transform 0.3s;
}

nav ul li a:hover {
    color: black;
    background-color: red;
    transform: scale(1.1);
}

header {
    position: relative;
    height: 100vh;
    background: linear-gradient(to bottom, white, white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 150px; /* Platz unter der Navbar und dem Logo */
}

header h1 {
    margin: 0;
    font-size: 2em; /* Kleinere Schriftgröße */
    color: red; /* Dunkelpink */
    text-transform: uppercase;
}

.section {
    padding: 80px 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.section:nth-child(even) {
    background-color: #aaaaaa;
}

.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
    color: black;
}

h2 {
    margin-bottom: 20px;
    font-size: 2.5em;
    color: red; /* Dunkelpink */
}

p {
    margin: 0 auto;
    max-width: 800px;
    font-size: 1.1em;
}

.service-list {
    display: flex;
    justify-content: space-around;
}

.service {
    text-align: center;
    width: 30%;
}

.service i {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: red; /* Dunkelpink */
}

.portfolio-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.portfolio-item {
    width: 30%;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: red;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.portfolio-item button:hover {
    background-color: red;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form label {
    margin-bottom: 5px;
    width: 100%;
    max-width: 500px;
}

form input, form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 100%;
    max-width: 500px;
    background-color: #1e1e1e;
    color: #ffffff;
}

form input {
    height: 40px;
}

form button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: red;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: brown;
}

footer {
    background-color: grey;
    text-align: center;
    padding: 20px 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: #aaaaaa;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.modal-content h2 {
    color: red;
}

.modal-content p {
    color: #ffffff;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: red;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: red;
}

#codeImg {
    width: 70%;
    height: 70%;
}

.buttonCV {
    margin-top: 50px;
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
    color: red;
    background-color: white;
    border-color: red;
}

.gitlab {
    text-decoration: none;
    color: white;
}

.picture1 {
    height: 45%;
}

.picture2 {
    height: 45%;
}

.cc {
    font-size: large;
    padding-top: 5%;
}

/* Mobile Styles */
@media only screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px;
    }

    .logo img {
        max-height: 60px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    nav ul li a {
        font-size: 1em;
        padding: 10px;
    }

    .welcome-container {
        margin-top: 100px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .container {
        width: 90%;
    }

    h2 {
        font-size: 2em;
    }

    p {
        font-size: 1em;
    }

    .service-list {
        flex-direction: column;
        gap: 20px;
    }

    .service {
        width: 100%;
    }

    .portfolio-grid {
        flex-direction: column;
        gap: 20px;
    }

    .portfolio-item {
        width: 100%;
    }

    .modal-content {
        width: 90%;
    }

    #codeImg, .picture1, .picture2 {
        width: 100%;
        height: auto;
    }

    .buttonCV {
        width: 100%;
        margin-top: 20px;
    }

    form label, form input, form textarea {
        width: 90%;
    }
}
