/* #######################
--> Fonts
####################### */

/* open-sans-regular - latin */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../webfonts/open-sans-v34-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../webfonts/open-sans-v34-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../webfonts/open-sans-v34-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../webfonts/open-sans-v34-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('../webfonts/open-sans-v34-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../webfonts/open-sans-v34-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
  }
  /* open-sans-600 - latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../webfonts/open-sans-v34-latin-600.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../webfonts/open-sans-v34-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../webfonts/open-sans-v34-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
         url('../webfonts/open-sans-v34-latin-600.woff') format('woff'), /* Modern Browsers */
         url('../webfonts/open-sans-v34-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../webfonts/open-sans-v34-latin-600.svg#OpenSans') format('svg'); /* Legacy iOS */
  }
  /* open-sans-700 - latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../webfonts/open-sans-v34-latin-700.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../webfonts/open-sans-v34-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../webfonts/open-sans-v34-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
         url('../webfonts/open-sans-v34-latin-700.woff') format('woff'), /* Modern Browsers */
         url('../webfonts/open-sans-v34-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../webfonts/open-sans-v34-latin-700.svg#OpenSans') format('svg'); /* Legacy iOS */
  }

/* #######################
--> Main
####################### */

*, *:before, *:after {
    box-sizing: border-box;
}
html {
    font-size: 1em;
    line-height: 1.4;
}
body {
    font-family: 'Open Sans', sans-serif;
    color: #484848;
    font-size: 14px;
}
::selection {
    background: #b3d4fc;
    text-shadow: none;
}
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}
audio, canvas, iframe, img, svg, video {
    vertical-align: middle;
}
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
textarea {
    resize: vertical;
}
h1 {
    font-size: 1.5em;
    font-weight: 600;
    text-transform: uppercase;
}
h2 {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.75em;
}
p {
    line-height: 2em;
}
a {
    color: #008bc5;
    text-decoration: none;
}
hr {
    height: 9px;
    width: 100%;
    display: inline-block;
    background: url(../img/hr.svg) no-repeat;
    background-position: center center;
    border: none;
}
li:before {
    content: "»";
    position: absolute;
    left: -18px;
    top: -1px;
}
li {
    list-style-type: none;
    position: relative;
}
.blue {
    color: #008bc5;
}
[class*="bg-"] {
    background-size: cover;
    background-position: center center;
}
.bg-grey {
    background: #f5f5f5;
}
.wrapper {
    overflow: hidden;
    position: relative;
}
/* #######################
--> animations
####################### */

.animate {
    opacity: 0;
}
 @keyframes slideInFromRight {
     0% {
         right: -100%;
    }
     100% {
         right: 0;
    }
}
/* #######################
--> invers
####################### */

.invers, .invers h1, .invers h2, .invers h3, .invers button, .invers p {
    color: #fff;
}
/* #######################
--> Nav
####################### */

.navigation {
    display: flex;
    align-items: center;
}
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
nav ul li {
    list-style-type: none;
}
nav ul li:before {
    content: "";
}
nav a {
    text-decoration: none;
    color: #484848;
}
nav li:hover > a {
    color: #008bc5 !important;
}
/* #######################
--> Sections
####################### */

section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}
section > *:not(.slider) {
    max-width: 600px;
    width: 100%;
    z-index: 2;
}
section.fullwidth > * {
    max-width: none; /* full width */
}
section h2 {
    margin: 0 0 25px;
}
/* #######################
--> Columns
####################### */
.flex {
    display: flex;
    flex-wrap: wrap;
}
[class*="col-"] > *:nth-of-type(n+2) {
    margin-top: 25px;
}
.col-2, .col-3 {
    justify-content: space-between;
}
#content .col-2 > *, footer .col-2 > * {
    flex: 0 0 100%;
    max-width: 100%;
}
#content .col-3 > *, footer .col-3 > * {
    flex: 0 0 100%;
    max-width: 100%;
}
/* #######################
--> Cards
####################### */

.cards > * {
    box-shadow: 0 0 5px #929292;
    border-bottom: 5px solid #008bc5;
    background: #fff;
}
.img-wrapper {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
}
/* #######################
--> Logo
####################### */

.logo {
    height: 50px;
    display: block;
    position: relative;
    z-index: 2;
}
.logo-img {
    height: 100%;
    padding: 0;
}
/* #######################
--> Header
####################### */

#header {
    position: absolute;
    width: 100%;
    z-index: 5;
    padding: 15px 0;
    background-color: #1d1d1d;
}
#header nav > ul > li a, #header nav > ul > li span {
    padding: 5px;
    display: inline-block;
    outline: none;
    width: 100%;
}
#header nav > ul > li span {
    color: #c1c1c1;
}
#header nav {
    max-width: 500px;
    width: 100%;
    position: absolute;
    top: 0;
    right: 0;
}
#header nav ul {
    position: relative;
    background: white;
    padding: 10px;
    right: -100%;
    transition: right ease-in-out .5s;
    box-shadow: 0 0 5px #888888;
    z-index: 3;
}
#header nav ul li ul {
    padding: 0px 15px;
    right: 0;
    box-shadow: none;
}
#header nav ul.is-active {
    right: 0;
}
.headerimg #header {
    background-color: transparent;
}
#nav-button {
    border: none;
    float: right;
    padding: 5px;
    -webkit-appearance: none;
    background: #fff;
    position: relative;
    z-index: 4;
    width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    cursor: pointer;
}
#nav-button span {
    height: 2px;
    width: 100%;
    margin: 4px;
    background: #2b2b2b;/* float: left; */
}
/* #######################
--> Content
####################### */

#content {
    overflow: hidden;
    position: relative;
    min-height: 600px;
}
#content section {
    padding: 50px 20px;
}
#content section.entry {
    padding: 100px 20px 50px;
}
#content section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
/* #######################
--> Slider
####################### */
.slider {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.slider:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.slides > * {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.slides > * > img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    height: auto;
    width: auto;
}
.slider-text {
    position: relative;
    z-index: 9;
}
/* #######################
--> Text
####################### */

.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.uppercase {
    text-transform: uppercase;
}
.line-height-small p {
    line-height: 1.5em;
}
/* #######################
--> Buttons
####################### */

.btn {
    text-decoration: none;
    border: 2px solid white;
    padding: 12px 40px;
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
}
.btn i {
    color: #008bc5;
    margin-right: 5px;
}
/* #######################
--> Footer
####################### */

footer {
    background-image: url(../img/bg-home.jpg);
    background-position: center center;
    background-size: cover;
    position: relative;
    padding: 85px 0;
}
footer:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
footer .col-3 {
    align-items: flex-end;
}
footer .btn {
    margin: 0 0 20px 0;
    width: 100%;
    padding: 12px 5px;
    font-weight: normal;
    text-transform: none;
}
footer .btn:hover {
    border-color: #018bc5;
}
footer .btn i {
    color: #fff;
}
footer nav ul {
    text-align: right;
    margin: 0 0 20px 0;
}
footer nav a {
    color: #fff;
}
/* #######################
--> Helpers
####################### */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}
.hidden {
    display: none !important;
}
.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}
.invisible {
    visibility: hidden;
}
.clearfix:before, .clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}
.clearfix:after {
    clear: both;
}
/* #######################
--> Site: Images
####################### */

[class*="img-"] {
    background-size: cover;
    background-position: center center;
}
#leistungen .img-1 {
    background-image: url("../img/cards/dreh-und-fraesteile.jpg");
}
#leistungen .img-2 {
    background-image: url("../img/cards/moderne-cnc-maschinen.jpg");
}
#leistungen .img-3 {
    background-image: url("../img/cards/erfahrene-dienstleister.jpg");
}

@media screen and (min-width: 1000px) {
    .logo {
        height: 67px;
    }
    h1 {
        font-size: 2em;
    }
    #content section.entry {
        padding: 200px 20px 150px;
    }
    #content section {
        padding: 75px 20px;
    }
    body {
        font-size: 16px;
    }
    section > *:not(.slider) {
        max-width: 1000px;
    }
    .flex {
        flex-wrap: nowrap;
    }
    #content .col-2 > *,  footer .col-2 > * {
        flex: 0 0 47.5%;
        max-width: 47.5%;
    }
    #content .col-3 > *,  footer .col-3 > * {
        flex: 0 0 31%;
        max-width: 31%;
    }
    [class*="col-"] > *:nth-of-type(n+2) {
        margin-top: 0;
    }
    #nav-button {
        display: none;
    }
    #header nav {
        max-width: none;
        width: 100%;
        position: relative;
    }
    #header nav ul {
        background: none;
        right: 0;
        box-shadow: none;
        display: inline-block;
        padding: 0;
        float: right;
        position: relative;
        animation: 1s ease-out 0s slideInFromRight;
    }
    #header nav > ul:before {
        content: "";
        position: absolute;
        width: 2400px;
        height: 2px;
        background: #008bc5;
        left: 0;
        bottom: 0;
    }
    #header nav > ul > li {
        float: left;
        position: relative;
    }
    #header nav > ul > li > a, #header nav > ul > li > span {
        padding: 10px 20px;
        color: #fff;
    }
    #header nav > ul > li > span {
        cursor: default;
    }
    #header nav ul li ul {
        display: none;
        position: absolute;
        background: #fff;
        right: 0;
        top: 42px;
        width: 100%;
        min-width: 250px;
        padding: 0px;
        animation: .5s ease-out 0s slideInFromRight;
    }
    #header nav ul li ul li {
        border-bottom: 1px solid #c3c3c3;
        font-size: .9em;
    }
    #header nav > ul > li:hover ul {
        display: block;
    }
    nav li:hover > span {
        color: #008bc5 !important;
    }
}

@media screen and (min-width: 320px) {
   .logo {
        height: 60px;
    }
}

@media print,  (-webkit-min-device-pixel-ratio: 1.25),  (min-resolution: 1.25dppx),  (min-resolution: 120dpi) {
}

@media print {
*,  *:before,  *:after {
    background: transparent !important;
    color: #000 !important; /* Black prints faster */
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
a,  a:visited {
    text-decoration: underline;
}
a[href]:after {
    content: " (" attr(href) ")";
}
abbr[title]:after {
    content: " (" attr(title) ")";
}
a[href^="#"]:after,  a[href^="javascript:"]:after {
    content: "";
}
pre {
    white-space: pre-wrap !important;
}
pre,  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
}
thead {
    display: table-header-group;
}
tr,  img {
    page-break-inside: avoid;
}
p,  h2,  h3 {
    orphans: 3;
    widows: 3;
}
h2,  h3 {
    page-break-after: avoid;
}
}
