/* ---- | Custom Properties | ---- */

:root {
    --primary: #989acf;
    --secondary: #514FBA;
    --accent1: #98cbcf;
    --textcolor: #5C5552;
}

/* ---- | Grundsätzlich | ---- */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: grid;
    grid-template-areas:
        "landing-main landing-aside";
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    place-content: space-evenly;
    position: relative;
    background-image: linear-gradient(rgba(152, 203, 207, 0), rgba(152, 203, 207, 0.6));
}

h1{
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 10px;
}

ul, a {
    color: var(--primary);
    letter-spacing: 3px;
    text-decoration: none;
    list-style-type: none;
}

a:hover {
    color: #98cbcf;
    text-decoration: none;
}

li {
    margin-top: 10px;
}

i {
    padding: 4px;
}

/*---- | Landing Page | ---- */

.landing-main {
    display: grid;
    grid-area: landing-main;
    grid-column: 1 / span 1;
    place-content: center;
}

.landing-aside{
    display: grid;
    grid-area: landing-aside;
    grid-column: 2 / span 1;
}

.landing-aside img{
    max-width: 100%;
}

footer{
    display: none;
}

/*---- | Bildanimation | ----*/

@keyframes pictureChange {
    0% {
        opacity: 1;
    }
    45% {
        opacity: 1;
    }
    55% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.landing-aside img.top {
    position: absolute;
    grid-area: 1 / 2;
    left: 0;
    animation-name: pictureChange;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 10s;
    animation-direction: alternate;
}

.landing-aside img.bottom{
    position: relative;
}

/*---- | Layout auf kleineren Bildschirmen | ----*/

@media screen and (max-width:950px)  {
    body{
        display: grid;
        grid-template-areas:
                "landing-aside"
                "landing-main";
        grid-template-columns: 100%;
        grid-template-rows: 1fr 1fr;
        min-height: 100vh;
        place-content: space-evenly;
        position: relative;
    }

    .landing-main, .landing-aside {
        display: grid;
        align-items: center;
    }

    .landing-main {
        grid-row: 2 / span 1;
    }

    .landing-aside {
        grid-row: 1 / span 1;
    }

    .landing-aside img{
        width:80%;
    }

    .landing-aside img.top {
        position: absolute;
        grid-area: 1 / 1;
        left: 10%;
    }

    .landing-aside img.bottom {
        position: absolute;
        grid-area: 1 / 1;
        left: 10%;
    }
}
