* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior:smooth;
}
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #f8f8f8;
    line-height: 1.6;
}

header {
    background-color: #fff;
    padding: 20px 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
}

    .nav-links li {
        margin-left: 20px;
    }

    .nav-links a {
        text-decoration: none;
        color: #333;
        font-weight: 300;
        transition: color 0.3s ease;
    }

        .nav-links a:hover {
            color: #007acc;
        }

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('hero-bg.jpg') no-repeat center center/cover;
    color: #000;
    padding: 0 20px;
}

.hero-text h2 {
    font-size: 48px;
    font-weight: 600;
}

.hero-text p {
    font-size: 20px;
    margin-top: 10px;
    font-weight: 300;
}

.about, .work, .contact {
    padding: 100px 40px;
    text-align: center;
}

    .about .content, .contact p, .work h2 {
        max-width: 800px;
        margin: 0 auto;
    }
.projects {
    display: grid;
    gap: 20px; /* Abstand zwischen den Karten */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 40px;
    max-width: 900px; /* Optional: Maximale Breite des Grids */
    margin: 40px auto 0; /* Zentriert das Grid */
}

.project-card {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}

    .project-card:hover {
        transform: translateY(-5px); /* Leichter Hover-Effekt */
    }

    .project-card img {
        width: 100%;
        height: auto;
        display: block;
    }

    .project-card h3 {
        font-size: 20px;
        font-weight: 600;
        padding: 15px;
    }

    .project-card p {
        padding: 0 15px 15px;
        font-weight: 300;
    }

.contact-button {
    background-color: #007acc;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

    .contact-button:hover {
        background-color: #005c99;
    }

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    display: flex;
    padding: 20px 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 36px;
    }

    .projects {
        grid-template-columns: 1fr;
        align-items: center;
    }

    .project-card {
        width: 90%;
        margin-bottom: 20px;
    }
}
