/* reset */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


/* general */
body {
    background-color: #2c3e50;
    font-family: Calibri, Verdana, Helvetica, sans-serif;
}

img {
    max-height: 200px;
    max-width: 100%;
}

/* page */
.page-wrapper {
    margin: 0 auto;
    padding: 0;
    width: 1500px;
    max-width: 100%;
}

/* sections */
section {
    position: relative;
    color: #FAFAFA;
}

section a {
    color: #FAFAFA;
}

section#home {
    padding: 200px 30px 50px 30px;
    text-shadow: 2px 1px 1px #333;
    min-height: 500px;
}

section#home .background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/homeBG.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.3;
    z-index: 1;
}

section#home .content {
    position: relative;
    z-index: 2;
}

section#office, section#references {
    background-color: #34495E;
    padding: 50px 30px 30px 30px;
}

section#knowledge, section#contact {
    padding: 50px 30px 30px 30px;
}


/* title */
h1 {
    font-size: 40px;
}

h1 span {
    white-space: nowrap;
}

h2 {
    margin-top: -20px;
    margin-bottom: 40px;
}

h2 span {
    position: relative;
}

h2 span:before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -3px;
    border-bottom: #3498DB solid 3px;
    width: 2000px;
}


h3 {
    text-transform: uppercase;
}

h3 .fa {
    font-size: 11px;
}

.title-top {
    color: #CCC;
    font-size: 24px;
}

.title-bottom {
    color: #EFEFEF;
    font-size: 20px;
}


/* form */
form .form-item {
    margin-bottom: 10px;
}

form .form-item:last-child {
    margin-bottom: 0;
}

form .form-item label {
    display: none;
}

form .form-item input, form .form-item textarea {
    padding: 10px 15px;
    background-color: #34495E;
    border: none;
    color: #FAFAFA;
    font-size: 16px;
    outline: none;
    width: 100%;
}

form .form-item textarea {
    min-width: 100%;
    max-width: 100%;
    min-height: 100px;
    height: 100px;
    max-height: 500px;
}

form .form-item input[type="email"] {
    display: none;
}

form .form-item input[type="submit"] {
    float: right;
    border: #FFF solid 1px;
    width: auto;
}

form .form-item.is-error, form .form-item.is-success {
    border-left: #3498DB solid 2px;
    padding-left: 5px;
    color: #D6D4D4;
}

form .form-item.is-error {
    border-left-color: red;
}

form .form-item.is-success {
    border-left-color: green;
}


/* nav */
.nav-primary {
    position: fixed;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
    list-style: none;
    z-index: 99;
}

.nav-primary li {
    display: block;
    float: left;
}

.nav-primary li a {
    display: block;
    padding: 20px 20px;
    border-bottom: #000 solid 3px;
    color: #FAFAFA;
    text-decoration: none;
    text-shadow: 0 1px 1px #000;
}

.nav-primary li.is-current a, .nav-primary li a:hover {
    background-color: rgba(0, 0, 0, 0.4);
    border-bottom-color: #3498DB;
}

/* list */
.list {
    margin-bottom: 30px;
    list-style: none;
}

.list li {
    display: block;
    padding: 10px;
    float: left;
    opacity: 0.7;
    -webkit-transition: opacity 0.4s;
    -moz-transition: opacity 0.4s;
    -o-transition: opacity 0.4s;
    transition: opacity 0.4s;
    width: 25%;
}

.list li:hover {
    opacity: 1;
}

.list li#twitter a {
    background-color: #1da1f2;
}

.list li#github a {
    background-color: #4078c0;
}

.list li#linkedin a {
    background-color: #0077b5;
}

.list li#xing a {
    background-color: #026466;
}

.list li a {
    display: block;
    padding: 20px;
    background-color: #22313F;
    text-decoration: none;
    text-align: center;
}

.list li a .fa {
    display: block;
    margin-bottom: 20px;
    font-size: 40px;
}


/* imprint */
#imprint {
    margin-top: 50px;
    font-size: 90%;
}


/* columns */
.column-2 {
    margin-top: 20px;
    float: left;
    width: 50%;
}


/* box */
.box-office-outer, .box-knowledge-outer {
    float: left;
    margin: 0 0 20px 0;
    padding-right: 10px;
    width: 50%;
}

.box-knowledge-outer {
    width: 33.3333%;
}

.box-office-outer:nth-child(2n), .box-knowledge-outer:nth-child(3n) {
    padding: 0 0 0 10px;
    float: right;
}

.box-knowledge-outer:nth-child(3n-1) {
    padding: 0 10px 0 10px;
    float: left;
}

.box-office-outer:last-child:after, .box-knowledge-outer:last-child:after {
    content: "";
    clear: both;
}

.box-knowledge-outer.github h3 {
    margin-bottom: 20px;
    font-size: 25px;
    text-align: center;
}

.box-knowledge-outer.github .box-knowledge {
    border-top-color: #3c73a9;
}

#knowledge .box-knowledge {
    position: relative;
    height: 170px;
}

#knowledge .box-knowledge label {
    display: block;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
}


.box-office, .box-knowledge {
    display: block;
    background-color: #22313F;
    border-top: 5px solid #EFEFFE;
    text-decoration: none;
}

.box-office {
    padding: 30px 20px;
    min-height: 135px;
}

.box-knowledge {
    padding: 30px;
    text-align: center;
}

.box-knowledge img {
    max-width: 200px;
    max-height: 80px;
}

.box-office h3, .box-knowledge h3 {
    float: left;
    font-size: 25px;
    width: 50%;
}

.box-office h3 img {
    max-height: 120px;
}

.box-knowledge-cover {
    margin-bottom: 10px;
}

.box-knowledge h3 {
    float: none;
    text-align: center;
    text-transform: initial;
    width: auto;
}

.box-office ul {
    float: right;
    width: 35%;
}

.box-knowledge ul {
    margin: 10px 10px;
}

.box-office ul li {
    margin-top: 10px;
    color: #CCC;
    font-size: small;
    list-style: none;
}

.box-knowledge ul li {
    margin: 5px;
    display: inline-block;
    *display: inline;
    list-style: none;
}

.box-office ul li .fa {
    display: inline-block;
    *display: inline;
    margin-right: 10px;
    width: 20px;
}

.box-office .logo {
    padding: 0 20px 20px 20px;
    height: 100px;
    text-align: center;
}
.box-office .logo img {
    max-height: 100px;
    max-width: 300px;
}

.box-office-description {
    margin-top: 10px;
    float: left;
    font-size: small;
    width: 50%;
}
.box-office-url {
    margin-top: 10px;
    clear: both;
    float: left;
    font-size: small;
}


/* office colors */
.box-office#evalea {
    border-color: #27AAE1;
}

.box-office#webfashion {
    border-color: #2C3E50;
}

.box-office#interact {
    border-color: #2c5c88;
}

.box-office#nvision {
    border-color: #03a7e5;
}

/* references colors */
.box-office#kschneider {
    border-color: #000;
}

.box-office#kschneider .btn-1:hover {
    background-color: #000;
    border-color: #000;
}

.box-office#drk {
    border-color: #E60005;
}

.box-office#wfcms {
    border-color: #3498db;
}

.box-office#drk .btn-1:hover {
    background-color: #E60005;
    border-color: #E60005;
}

.box-office#mywebby {
    border-color: #044B8A;
}

.box-office#mywebby .btn-1:hover {
    background-color: #044B8A;
    border-color: #044B8A;
}

.box-office#dingdong {
    border-color: #52B4AC;
}

.box-office#dingdong .btn-1:hover {
    background-color: #52B4AC;
    border-color: #52B4AC;
}


/* technologies colors */
.box-knowledge#php {
    border-color: #767ab7;
}

.box-knowledge#mysql {
    border-color: #e18f00;
}

.box-knowledge#javascript {
    border-color: #d3ba01;
}

.box-knowledge#jquery {
    border-color: #1368af;
}

.box-knowledge#typescript {
    border-color: #007ACB;
}

.box-knowledge#nodejs {
    border-color: #689F63;
}

.box-knowledge#python {
    padding: 46px 0;
    border-color: #3c73a9;
}

.box-knowledge#git {
    border-color: #EA5229;
}

.box-knowledge#bash {
    border-color: #3e474a;
}


#contactInfo {
    padding: 0 20px 0 0;
    margin-top: 20px;
    font-size: 18px;
}

/* btn */
.btn-1 {
    display: inline-block;
    *display: inline;
    margin: 10px;
    padding: 10px 15px;
    background-color: #000;
    background-color: rgba(0, 0, 0, 0.3);
    border: #FAFAFA solid 1px;
    color: #FAFAFA;
    cursor: pointer;
    text-decoration: none;
    -webkit-transition: 0.4s linear;
    -moz-transition: 0.4s linear;
    -o-transition: 0.4s linear;
    transition: 0.4s linear;
}

.btn-1:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: #000;
    border-color: rgba(0, 0, 0, 0.5);
}

.btn-1.right {
    margin: 40px 0 10px 10px;
    float: right;
}

a.btn-1:after {
    margin-left: 5px;
    content: "\25ba";
    font-size: small;
}


/* text */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* fix */
.clearfix {
    clear: both;
}


/* mobile navigation */
.mobile-nav {
    display: none;
}

button.burger, button.cross {
    position: fixed;
    top: 0;
    right: 0;
    display: block;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    color: #FFF;
    font-size: 20px;
    height: 48px;
    width: 48px;
    z-index: 99999;
}


/* large screens */
@media all and (min-width: 2000px) {

    h1 {
        font-size: 60px;
    }

    .title-top {
        font-size: 40px;
    }

    .title-bottom {
        font-size: 30px;
    }


    section#home {
        padding-top: 400px;
        min-height: 1000px;
    }

    section#office, section#knowledge, section#references {
        padding: 100px 50px 50px 50px;
    }


    .box-office ul li {
        font-size: 16px;
    }
}


/* smaller screens */
@media all and (max-width: 1024px) {

    .box-office-outer, .box-office-outer:nth-child(2n) {
        margin: 0 0 20px 0;
        padding: 0;
        float: none;
        width: auto;
    }

    .box-knowledge-outer, .box-knowledge-outer:nth-child(3n), .box-knowledge-outer:nth-child(3n-1) {
        float: left;
        margin: 0 0 20px 0;
        padding: 0 10px 0 0;
        width: 50%;
    }

    .box-knowledge-outer:nth-child(2n) {
        float: right;
        padding-left: 10px;
    }

}


/* smartphones */
@media all and (max-width: 800px) {

    .list li {
        width: 50%;
    }

}

@media all and (max-width: 600px) {

    section#home {
        padding: 90px 11px 50px 30px;
        min-height: 0;
    }

    h1 {
        font-size: 20px;
    }

    .title-bottom {
        font-size: 14px;
    }

    .box-knowledge-outer, .box-knowledge-outer:nth-child(2n), .box-knowledge-outer:nth-child(3n), .box-knowledge-outer:nth-child(3n-1) {
        float: none;
        margin: 0 0 20px 0;
        padding: 0;
        width: auto;
    }

    .box-office h3, .box-office-description, .box-office ul {
        display: block;
        float: none;
        text-align: center;
        width: auto;
    }

    .box-office ul {
        margin: 10px 20px;
    }

    .box-office ul li {
        font-size: 17px;
    }


    .list li {
        display: block;
        float: none;
        width: auto;
    }

    .column-2 {
        display: block;
        float: none;
        width: auto;
    }


    /* mobile navigation */
    .mobile-nav {
        display: initial;
    }

    button.cross {
        display: none;
    }

    .nav-primary {
        display: none;
        position: fixed;
        top: 60px;
        left: 20px;
        right: 20px;
    }

    .nav-primary li {
        display: block;
        background-color: rgba(0, 0, 0, 0.8);
        float: none;
    }

}