@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
:root {
    --mainColor: #ffd700;
    --mainTransp: rgba(134,166,223, 0.3);

    --dark: #324e7b;
    --normal: #86a6df;
    --light: #f8f8f8;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

nav {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    z-index: 5;
}

nav .icon {
    padding: 1rem 15px .8rem 0;
    font-size: x-large;
    color: var(--dark);
    text-shadow: -2px 2px var(--normal);
    width: 3rem;
    text-align: right;
    float: right;
    height: 2rem;
}

nav .icon i {
    vertical-align: middle;
}

nav ul {
    display: none;
    padding: 0 1rem 0 0;
    margin: 0;
    width: 85%;
}

nav ul li {
    margin: 0;
    padding: 1.3rem 1rem .5rem;
    list-style: none;
    height: 2rem;
    text-align: center;
    border-style: solid;
    border-color: var(--normal) var(--dark);
    border-width: 0px 0px 0px 1px;
    background-color: var(--light);
}

nav ul li:hover {
    border-width: 1px 0px 1px 0px;
    color: var(--normal);
    background-color: var(--dark);
    border-width: 1px 0px;
}

nav ul a {
    width: 100%;
    color: black;
    text-decoration: none;
    font-size: .9rem;
}

nav ul a:hover {
    color: var(--normal);
}

img {
    padding: 8rem 20% 6rem;
    width: 60%;
}

/*#logo::before {
    content: '§';
    color: gray;
    width: 20px;
    height: 30px;
    position: absolute;
    float: left;
    top: 3em;
    left: 5em;
    z-index: 2;
    background-color: black;
}*/

.kontakt {
    text-align: center;
    position: relative;
}

.kontakt a {
    text-decoration: none;
    margin: 1em 1em;
    color: var(--dark);
    font-size: 2rem;
    text-shadow: -2px 2px var(--light);
}

.buttn {
    border: 1px solid var(--dark);
    border-radius: 15px;
    background-color: var(--dark);
    color: var(--light);
    text-decoration: none;
    padding: .6rem .8rem;
    margin: 1em 25% 2rem;
    text-align: center;
    display: block;
    box-shadow: -3px 3px var(--light);
}

.leistungen {
    display: grid;
    text-align: center;
}

.leistungen h2 {
    position: relative;
}

.leistungen h2::before {
    content: ' ';
    background-color: var(--normal);
    width: 7rem;
    height: .6rem;
    position: absolute;
    bottom: 0;
    margin-left: -4px;
    z-index: -2;
}

.leistungen article {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    margin: 2rem 1rem 2rem 4rem;
    width: 80%;
    -moz-hyphens: auto;
    -o-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.leistungen article:nth-child(even) {
    display: flex;
    flex-wrap: wrap;
    margin: 2rem 3rem 2rem 1rem;
}

.leistungen i {
    position: absolute;
    margin-top: 3rem;
    width: 80%;
    font-size: 8rem;
    color: var(--mainTransp);
    z-index: -1;
}

.leistungen h3 {
    flex-basis: 80%;
    text-align: left;
    padding-left: 2rem;
}

.leistungen ul {
    text-align: left;
    list-style-position: outside;
}

.leistungen li {
    padding: .3rem 1rem;
}

.leistungen li::marker {
    content: '§';
    color: var(--normal);
}

footer {
    width: 100%;
    background-color: var(--dark);
    color: var(--light);
}

.stdFooter {
    display: none;
}

.mobileFooter {
    width: 100%;
    display: inline-block;
    font-size: .7rem;
    vertical-align: middle;
}

.mobileFooter img {
    max-width: 2rem;
    padding: 1rem;
}

.mobileFooter p {
    box-sizing: border-box;
    width: 50%;
    display: inline-block;
    margin: 0;
    float: left;
    padding: .6rem 0 .6rem 1rem;
}

.mobileFooter a {
    box-sizing: border-box;
    float: right;
    display: inline-block;
    padding: .6rem 1rem;
    text-decoration: solid;
    color: var(--light);
    line-height: 1.2rem;
}

@media only screen and (min-width:800px) {
    .icon{
        display: none;
    }
    nav #navbar{
        display: flex;
        justify-content: center;
        margin:0;
        padding: 0;
        width: 100%;
    }
    nav #navbar li{
        width: 100%;
        padding: 0;
        height: 3rem;
        border-style: none;
        position: relative;
    }
    nav #navbar li::before{
        content: '';
        position: absolute;
        bottom: 0;
        left: 10%;
        background-color: var(--normal);
        width: 80%;
        height: .3rem;

    }
    nav #navbar li a{
        display: block;
        height: 100%;
        line-height: 3rem;
        font-weight: bold;
    }
    
    #logo{
        display: inline-block;
        text-align: center;
        width: 100%
    }

    img{
        display: block;
        margin: 7rem auto;
        padding:0;
        width: 50%;
        max-width: 400px;
    }

    main{
        display: flex;
        flex-direction: column;
    }
    .leistungen{ order: 1;}
    .kontakt{order: 2;}
    .buttn{ order:3;}
    #double{ display: none; }
    
    .leistungen .items{
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
    }

    .leistungen .items article{
        width: 30%;
        margin: 2rem 1rem 2rem 2rem;
        position: relative;
    }
    .leistungen .items article i{
        display: block;
        width: 100%;
        text-align: center;
    }
    
    footer{
        margin-top: 2rem;
    }
    .mobileFooter{
        font-size: .8rem;
        line-height: 1.2rem;
    }
    .mobileFooter img{
        display: inline-block;
        margin: 0;
    }
}