

:root {
    /* Whole color palette */
    --color-palette-1: #77B41B;
    --color-palette-2: #A7DB42;
    --color-palette-3: #D0F0C0;
    --color-palette-4: #EFEEDE;
    --color-palette-5: #96B83D;

    /* chosen colors */
    --color-header: #96b83d;
    --color-content: #fff;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PT Sans', serif, sans-serif;
    overflow-x: hidden;
}

header {
    grid-area: head;
    font-family: 'Ubuntu';
    background: var(--color-header);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
}


nav {
    grid-area: nav;
}

main {
    grid-area: content;
}

aside {
    grid-area: side;
}

footer {
    grid-area: foot
}

#nav-fill {
    grid-area: nav-fill;
}


nav,
#nav-fill {
    background: linear-gradient(var(--color-header), var(--color-content));
    min-height: 5vh;
}

footer,
main {
    background: var(--color-content);
}


.container {
    padding: 30px;
}

aside .container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.sidebar-element {
    padding: 10px;
}

aside li {
    padding: 6px 0;
}


.title {
    text-align: right;
    padding-right: 10px;
    width: 90vw;
}

.title h1 {
    font-size: 40px;
    padding: 15px 0px;
}

.title h5 {
    padding-bottom: 20px;
}

nav {
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    height: 100%;
    width: 100vw;
    position: absolute;
    z-index: 1;
    left: -110%;
    transition: all 0.5s ease;
}


nav a {
    text-decoration: none;
    list-style: none;
    padding: 15px 2vw;
    border-radius: 30px 30px 0 0;
    color: black;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: black;
}


nav .selected {
    background-color: var(--color-content);
}

header .button {
    height: 100%;
}


#nav-button {
    font-size: 30px;
    cursor: pointer;
    color: black;
    padding: 5vh 5vw;
}


main h2 {
    padding: 10px 0;
}



main p {
    padding: 8px 0;
}

main .vertretung {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.vertretung-element {
    width: 280px;
    margin: 20px;
    padding: 20px;
    border: 3px solid var(--color-palette-2);
    border-radius: 10px;
    text-decoration: none;
    color: black;
    background-color: var(--color-palette-4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
}

.vertretung-element h4 {
    font-size: 20px;
}

#Aktuelles h4 {
    font-size: 15px;
}

.highlight {
    border: 2px solid black;
    padding: 10px;
    margin: 15px;
    display: inline-block;
}
.red {
    color: red;
}

#Termine table,
#Aktuelles table {
    border: 2px solid var(--color-palette-2);
    padding: 10px;
    margin: 10px;
    width: 300px;
}

#Termine table,
#Aktuelles table {
    text-align: left;
}

.two-column-min-1000 {
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    width: 100%; 
    justify-content: space-around;
}


.top-align {
    align-items: flex-start;
}



.content-no-display {
    display: none;
}

main ul {
    margin-left: 15px;
}


main ol[type="1"] {
    margin-left: 15px;
    margin-top: 15px;
}

img.team {
    width: 300px;
}

.team-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

#Kontakt-text > h3 {
    margin-top: 15px;
}

@media screen and (max-width: 1200px) {
    #Kontakt-text {
        max-width: 100%;
    }

    nav a {
        font-size: 1.5vw;
    }

}
@media screen and (max-width: 1500px) {        
    .team-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }
}

@media screen and (max-width: 1000px) {
    .two-column-min-1000 {
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        width: 100%; 
        justify-content: space-around;
    }
}

@media screen and (max-width: 800px) {


    nav .selected {
        background-color: var(--color-palette-4);
        border-radius: 10px;
        padding: 10px 70px
    }

    nav a {
        text-decoration: none;
        list-style: none;
        padding: 2vh 2vw;
        border-radius: 30px 30px 0 0;
        color: black;
        font-size: 5vw;
    }


    aside .container {
        flex-direction: row;
        justify-content: space-around;
    }

    aside .sidebar-element {
        width: 80%;
    }

    #nav-fill {
        display: none;
    }

    img {
        width: 100%;
        height: auto;
    }

    .team-wrapper {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
    }

}


@media screen and (min-width: 800px) {

    #body {
        display: grid;
        grid-template-columns: 1fr 3fr;
        grid-template-areas:
            "head head"
            "nav-fill nav"
            "side content"
            "foot foot";
    }

    #nav-button {
        display: none;
    }

    header .button {
        display: none;
    }

    header .title {
        width: 100vw;
        padding-right: 3vw;
    }

    nav {
        flex-direction: row;
        position: static;
        width: 100%;
        height: 5vh;
        justify-content: space-around;
    }

}

@media screen and (max-width: 900px) {
    .team-wrapper {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
    }
}


@media screen and (max-width: 500px) {

    .title h1 {
        font-size: 8vw;
    }

    .title h3 {
        font-size: 5vw;
    }

    .title h5 {
        font-size: 3vw;
    }

    aside .container {
        flex-direction: column;
    }

    .sidebar-element {
        width: 100%;
    }

}
