html {
    scroll-behavior: smooth;
    background-color: #000000;
}

body {
    padding: 0;
    margin: 0;
    transition: background 0.3s ease;

    background-image: url(image/Moritz-Malik_Hintergrund-Startseite.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: right center;
    background-size: cover;
}

h3 {
    font-family: "Reddit Sans", sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #EFEDE4;
    margin: 0
}

h4 {
    font-family: "Reddit Sans", sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #000;
    margin: 0;
}

p {
    font-family: "Reddit Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    color: #EFEDE4;
}

button {
    font-family: 'Reddit Sans', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 15px;
    color: #000000;

    background-color: #ffffff;
    padding: 8px 15px;
    border-radius: 100px;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;

    line-height: normal;
    text-align: center;
}

button:hover {
    background-color: #f0f0f0;
}

.material-symbols-outlined {
    font-size: 50px !important;
}

#p5-canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    display: block;
}

/* - - - - - Landing - - - - - */

#landingpage {
    min-height: 100vh;
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    margin-top: -100px;


    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    padding: 0 5%;
    box-sizing: border-box;
}

#landingpage p {
    max-width: 600px;
    line-height: 1.6;
}

#landing-h1 {
    font-family: "Reddit Sans", sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #EFEDE4;
    margin: 0;
}

#landing-h2 {
    font-family: "Reddit Sans", sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #EFEDE4;
    margin: 0 0 -15px -5px;
}

@media (max-width: 768px) {
    #landingpage {
        padding: 0 30px;
        align-items: flex-start;
    }

    #landing-h2 {
        font-size: 4rem;
        letter-spacing: 2px;
    }
}

#about {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 100px;
    padding: 50px 5%;
}

.about-content {
    max-width: 700px;
}

.intro-text {
    max-width: 555px;
    margin-bottom: 20px;
}

.schwerpunkte {
    margin-top: 80px;
    margin-left: 50px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    padding-top: 20px;
}

.card {
    background-color: #fff;
    border-radius: 25px;
    padding: 25px;
    aspect-ratio: 2 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: scale(1.02);
}

.about-image {
    display: flex;
    justify-content: center;
}

#profilbild {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
    #about {
        flex-direction: column-reverse;
        text-align: left;
        padding: 40px 20px;
        gap: 40px;
    }

    .intro-text {
        margin: 0 0 20px 0;
        max-width: 100%;
    }

    .schwerpunkte {
        margin-top: 40px;
        margin-left: 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0;
    }

    .card {
        aspect-ratio: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        padding: 15px 20px;
    }

    .card h4 {
        margin: 0;
    }

    #profilbild {
        width: 100%;
    }
}

/* - - - - - Projekte - - - - - */

#projekte {
    padding: 350px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#projekte-uebersicht {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card-projekte {
    position: relative;
    height: 300px;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;

    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    border: 4px solid #ffffff;
}

.card-projekte::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 1;
}

.card-projekte:hover {
    transform: scale(1.03);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    text-align: left;
    width: 100%;
}

.card-content h4 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.card-content .kategorie {
    font-family: "Reddit Sans", sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}