/*Animation*/

@-webkit-keyframes slideInRight {
    0% {
        -webkit-transform: translate3d(250px, 0, 0);
        transform: translate3d(250px, 0, 0);
        visibility: visible;
    }
    100% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    0% {
        -webkit-transform: translate3d(250px, 0, 0);
        transform: translate3d(250px, 0, 0);
        visibility: visible;
    }
    100% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@-webkit-keyframes slideOutRight {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(250px, 0, 0);
        transform: translate3d(250px, 0, 0);
        visibility: hidden;
    }
}

@keyframes slideOutRight {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(250px, 0, 0);
        transform: translate3d(250px, 0, 0);
        visibility: hidden;
    }
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}


/*Animation*/

body:after {
    background: ;
    content: '';
    height: 100%;
    right: 0;
    opacity: 0;
    overflow: auto;
    padding: 0;
    position: absolute;
    top: 0;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    width: 100%;
}


/*
body.open {
  overflow: hidden; 
}
*/

body.open:after {
    opacity: 1;
    visibility: visible;
}

.b-nav {
    position: fixed;
    z-index: 100;
    right: 3%;
    top: 6em;
}

.b-nav:not(.open) {
    visibility: hidden;
}

.b-nav li {
    color: #444444;
    list-style-type: none;
    padding-top: 10px;
    text-align: right;
    -webkit-transform: translateX(-250px);
    transform: translateX(-250px);
}

.b-nav li:not(.open) {
    -webkit-animation-duration: 0.4s;
    animation-duration: 0.4s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: slideOutRight;
    animation-name: slideOutRight;
}

.b-nav li:first-child {
    padding-top: 0px;
}

.b-nav.open {
    visibility: visible;
}

.b-nav.open li {
    -webkit-animation-duration: 0.4s;
    animation-duration: 0.4s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: slideInRight;
    animation-name: slideInRight;
}

.b-link {
    background: transparent;
    border-left: rgba(68, 68, 68, 0) solid 2px;
    /*  Schrift Farbe;*/
    color: #000000;
    margin-left: 30px;
    text-decoration: none;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    width: auto;
}


/*kleine Balken neben Links*/

.b-link:hover,
.b-link--active {
    border-left: #000000 solid 4px;
    padding-left: 30px;
}

.b-link-projekte {
    background: transparent;
    border-left: rgba(68, 68, 68, 0) solid 2px;
    /*  Schrift Farbe;*/
    color: #000000;
    margin-left: 30px;
    text-decoration: none;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    width: auto;
}

.b-link-projekte:hover,
.b-link-projekte--active {
    border-left: #333333 solid 4px;
    padding-left: 30px;
}


/*  Kreis schwarz;*/

.b-menu {
    /*  background: white;*/
/*    background: #ffffff;*/
/*    border: #ffffff solid 2px;*/
    border-radius: 50%;
    cursor: pointer;
    /*  display: inline-block;*/
    height: 40px;
    width: 40px;
    padding-left: 12px;
    padding-top: 9px;
    /*  position: fixed;*/
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 30;
    /*   right: 40px;*/
    float: right;
}

.b-menu:hover {
/*    border: #000000 solid 2px;*/
}


/*  Kreuz Burger;*/

.b-bun {
    /*  background: #444444;d7453d*/
    /*    background: #d7453d;*/
    background: #000000;
    position: relative;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.b-bun--top {
    height: 2px;
    top: 0;
    width: 20px;
}

.b-bun--mid {
    height: 2px;
    top: 6px;
    width: 20px;
}

.b-bun--bottom {
    height: 2px;
    top: 13px;
    width: 20px;
}

.b-brand {
    /*  color:#d7453d;*/
    color: #000000;
    /*  font-family: Helvetica-Neue, Helvetica, Arial, sans-serif;*/
    /*
  font-size: 24px;
  font-weight: 300;
*/
    margin-left: 30px;
    position: relative;
    text-decoration: none;
    top: -21.4285714286px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    z-index: 100;
}

.b-container:hover:not(.open) .bun-top,
.b-container:hover:not(.open) .bun-mid,
.b-container:hover:not(.open) .bun-bottom {
    background: white;
}

.b-container.open .b-main {
    /*  border: #444444 solid 2px;d7453d*/
    border: #d7453d solid 2px;
}

.b-container.open .b-bun--top {
    background: #000000;
    top: 9px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.b-container.open .b-bun--mid {
    opacity: 0;
}

.b-container.open .b-bun--bottom {
    background: #000000;
    top: 5px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.b-container.open .b-brand {
    color: #000000;
}

.b-container {
    height: 60px;
    margin: 0 auto;
    width: 100%;
    /*  right: 30px;*/
    /* position: absolute;*/
    top: 30px;
    z-index: 100;
}

.pfeil {
    position: fixed;
    width: 94%;
    bottom: 1em;
    text-decoration: none;
    z-index: 40;
    margin: 0 auto;
}

#navileiste {
    position: fixed;
    width: 100%;
    z-index: 200;
    top: 1em;
}

#pfeil {
    float: right;
    z-index: 2000;
}

#bildpfeil {
    max-width: 10%;
    float: right;
    z-index: 2000;
}


.email {
    position: fixed;
    width: 50%;
    bottom: 1em;
    text-decoration: none;
    z-index: 30;
    margin: 0 auto;
}


/* responsiveness
--------------------------------------------- */


/* Custom, iPhone Retina */

@media only screen and (min-width: 320px) {
    .pfeil {
        position: fixed;
        width: 94%;
        bottom: 1em;
        text-decoration: none;
        z-index: 10;
        margin: 0 auto;
    }
    
.b-menu {
    padding-left: 20px;
}
    
    
    
}

/* Small Devices, Tablets */

@media only screen and (min-width: 768px) {
    #navileiste {
        position: fixed;
        width: 100%;
        z-index: 200;
        top: 1em;
    }
    .b-menu {
        padding-left: 16px;
      
    }
    .b-bun--top {
        height: 2px;
        top: 0;
        width: 22px;
    }
    .b-bun--mid {
        height: 2px;
        top: 8px;
        width: 22px;
    }
    .b-bun--bottom {
        height: 2px;
        top: 16px;
        width: 22px;
    }
    .pfeil {
        bottom: 1em;
        position: fixed;
        width: 98%;
    }
    #bildpfeil {
        max-width: 15%;
    }
    .b-nav {
        position: fixed;
        z-index: 100;
        right: 4%;
        top: 8em;
    }
}


/* Medium Devices, Desktops */

@media only screen and (min-width:992px) {
    #navileiste {
        position: fixed;
        width: 100%;
        z-index: 200;
        top: 2em;
    }
    .b-nav {
  position: fixed;
  z-index: 100;
  right: 4%;
  top:8em;
}
}
