html,body{
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
}
a, a:visited{  
    color: #000;
    text-decoration: none;
    border-bottom: 3px solid #999;
}
a:hover{
    border-bottom: 3px solid #59f;
}

#main{
    display: grid;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    grid-template-columns: 1fr 3fr;
    grid-auto-rows: 1fr 1fr 1fr;
    gap: 0px 0px;
    grid-template-areas:    "image content content content"
                            "info content content content"
                            "links content content content";
}
#imagebox{
    grid-area: image;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}
#avatar{
    height:150px;
    border-radius: 50%;
}
#avatar:hover{
    border: 10px solid #59f;
}

#info{
    grid-area: info;
    align-content: center;
    padding: 15px;
    border-left: 25px solid #59f;
}
#links{
    grid-area: links;
    align-content: center;
}
.content{
    grid-area: content;
    background-color: lightpnk;
    align-content: center;
    padding: 15%;
    border-left: 3px solid #999;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
}
ul{
    list-style: none;
    padding: 15px;
}
li{
    padding: 15px;
    width: 80%;
}
.link, .link:visited{
    color: #000;
    text-decoration: none;
    border-bottom: 3px solid #999;

}
.link:hover{
    cursor: pointer;
    border-bottom: 3px solid #59f;
}
.contentbox{
    border-bottom: 3px solid #59f;
    margin-bottom: 50px;
    box-shadow: 0px 0px 25px #aaa;
    padding:15px;
    border-radius: 15px 0 15px 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 3fr;
    grid-template-areas:    "Bild Überschrift Überschrift Überschrift"
                            "Bild Text Text Text"
                            "Bild Text Text Text";
}
.contentpic{
    grid-area: Bild;
    width:70%;
    border-radius: 10px;
}
.contentheader{
    grid-area: Überschrift;
}
.contenttext{
    grid-area: Text;
}


.contactlist{
    display: flex;
    justify-content: space-around;
}
.contactlistitem{
    font-size: small;
}
#mobilefooter{
    display: none;
}
@media screen and (max-width: 768px) {
    #main {
        display: block;
        padding: 10px;
    }

    #imagebox,
    #info,
    #links,
    .content {
        width: 100%;
        padding: 10px;
        border: none;
        display: block;
    }
    .content{
        display: none;
    }
    #avatar {
        height: 100px;
    }

    .contentbox {
        display: block;
        box-shadow: none;
        border-radius: 0;
        margin-bottom: 30px;
        padding: 10px;
    }

    .contentpic {
        width: 50px;
        margin-bottom: 10px;
    }

    .contactlist {
        flex-direction: column;
        align-items: center;
    }

    li {
        width: 100%;
        padding: 10px;
    }

    .content {
        padding: 10px;
        overflow: visible;
    }
    #mobilefooter{
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 10px;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        justify-content: space-around;
    }
}
