/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
	color: #aaa;
	font-family: 'PT Sans', sans-serif;
	font-size: 1.05em;
	font-weight: 400;
}

h1, h2, h3 {
	text-transform: uppercase;
	font-weight: 700;
	padding: 0;
}

.parallax-window {
	min-height: 650px;
	background: transparent;
}

.float-left {
	float: left;
}

.float-right {
	float: right;
}

.col {
	float: left;
}
.col-3 {
	width: 33.33%;
}
.col-4 {
	width: 25%;
}

.clear {
	clear: both;
}

#header {
	background: #fff;
	font-size: 1.15em;
	position: fixed;
	margin: 0;
	padding: 0;
	top: 0;
	z-index: 99;
	width: 100%;
	transition: all 1s ease-in-out 0s;
}
#header .inside {
	margin: 0 auto;
	max-width: 1280px;
	padding: 25px 0;
}
#header a {
	color: #2a4798;
	text-decoration: none;
}
#header .mmenu-btn {
	color: #2a4798 !important;
	text-align: center;
	width: 100%;
}

#header #header-logo {
	float: left;
}

#header #main-menu {
	float: right;
}
#header #main-menu ul {
	display: table;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	padding-top: 40px;
}
#header #main-menu ul li {
	display: table-cell;
	padding: 0 30px;
	text-transform: uppercase;
	vertical-align: bottom;
}
#header #main-menu ul li.start {
	padding: 0 75px 0 0;
}
#header #main-menu.mobile {
	display: inline-block;
}

#header #mobile-menu ul {
	position: absolute;
	top: -9999px;
	display: table;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	background: #dbdbdb;
	left: 0;
}
#header #mobile-menu a {
	color: #2a4798;
}
#header #mobile-menu ul li {
	padding: 7px 15px;
	text-transform: uppercase;
}
#header #mobile-menu ul.open {
	min-width: 100%;
	top: 100%;
	padding: 25px 0;
}
#header #mobile-menu div.mmenu-btn {
	color: #ababab;
	cursor: pointer;
	display: inline-block;
	text-transform: uppercase;
}
#header #mobile-menu.mobile {
	display: none;
}

#start a {
	border: none;
}
#start article {
	color: #fff;
	width: 100%;
	padding: 200px 0;
	text-align: center;
}
#start article h1 {
	font-size: 6em;
	font-weight: 400;
	text-transform: none;
}

#labor {
	background: #fff;
	padding: 120px 0;
}
#labor article .inner {
	margin: 0 auto;
	max-width: 1280px;
}
#labor article h2 {
	color: #000;
	font-size: 2em;
	font-weight: 400;
}
#labor article p {
	line-height: 1.85em;
}
#labor article .text {
	display: table-cell;
	vertical-align: top;
}
#labor article .labor-img {
	display: table-cell;
}

#leistungen-teaser {
	background-image: url(../img/leistungen-bg.jpg);
	background-position: 50% 0;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	height: 650px;
}

#leistungen {
	background: #2a4798;
	color: #fff;
}
#leistungen article .text {
	margin: 0 auto;
	max-width: 1280px;
	padding: 120px 0;
}
#leistungen article .text h2 {
	color: #fff;
	font-size: 2em;
	font-weight: 400;
}
#leistungen article .text p {
	line-height: 1.85em;
}
#leistungen article .text .col ul {
	line-height: 1.85em;
	list-style-type: circle;
	padding: 0 20px;
}
#leistungen article .text .col ul li {
	padding: 0;
	margin: 0;
}
#leistungen article .text .col.col-3 {
	max-width: 400px;
	margin-right: 40px;
}
#leistungen article .text .col-3.last {
	margin-right: 0px;	
}

#referenzen-teaser {
	background-image: url(../img/referenzen-bg.jpg);
	background-position: 50% 0;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	height: 650px;
}

#referenzen {
	background: #fff;
}
#referenzen article .text {
	margin: 0 auto;
	max-width: 1280px;
	padding: 120px 0;
}
#referenzen article .text h2 {
	color: #000;
	font-size: 2em;
	font-weight: 400;
}
#referenzen article .text p {
	line-height: 1.85em;
}
#referenzen article .text ul {
	line-height: 1.85em;
	list-style-type: circle;
	padding: 0 20px;
}
#referenzen article .text ul li {
	padding: 0;
	margin: 0;
}
#referenzen article .text .col.col-4 {
	max-width: 290px;
	margin-right: 40px;
}
#referenzen article .text .col-4.last {
	margin-right: 0px;	
}
#referenzen article .text .col.col-4 img {
	width: 100%;
}

#kontakt-teaser {
	background-image: url(../img/kontakt-bg.jpg);
	background-position: 50% 0;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	height: 650px;
}

#kontakt {
	background: #2a4798;
	color: #fff;
	padding: 120px 0;
}
#kontakt article .inner {
	margin: 0 auto;
	max-width: 1280px;
}
#kontakt article h2 {
	color: #fff;
	font-size: 2em;
	font-weight: 400;
}
#kontakt article p {
	line-height: 1.85em;
}
#kontakt article a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid #fff;
}
#kontakt article .directions #map {
	background: #3c3c3b;
	min-height: 500px;
}

#footer {
	background: #fff;
	padding: 70px 0;
}
#footer article .inner {
	margin: 0 auto;
	max-width: 1280px;
	text-align: center;
}
#footer article h2 {
	font-size: 1.05em;
	font-weight: lighter;
	letter-spacing: 0.15em;
}
#footer article h2 img {
	display: block;
	padding-bottom: 10px;
	margin: 0 auto;
}
#footer article p {
	line-height: 1.85em;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
#footer article a {
	color: #2a4798;
}
#footer #footer-logo a {
	color: #bbb;
}
#footer .social-links p {
	display: table;
	margin: 0 auto;
}
#footer .social-links p a {
	color: #bbb;
	display: table-cell;
	padding: 0 2px;
	border: none;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.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 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 800px) {
	
	.col {
		float: none;
	}
	.col-3 {
		width: 100%;
	}
	
	#header {
		box-shadow: 0 4px 5px 0 rgba(50,50,50,.15);
		line-height: 1em;
	}
	#header .inside {
		padding: 10px;
	}
	
	#header #main-menu.mobile {
		display: none;
	}
	
	#header #mobile-menu.mobile {
		display: inline-block;
		text-align: center;
		float: right;
		margin-top: 8px;
	}
	
	#header #header-logo {
		float: left;
		text-align: center;
	}
	#header #header-logo img {
		max-height: 35px;
	}
	
	#start article {
		top: 200px;
	}
	
	#labor article .inner {
		padding: 0 25px;
	}	
	#labor article .text {
		display: block;
	}
	#labor article .labor-img {
		display: block;
		text-align: center;
	}
	
	#leistungen article .text {
		padding: 120px 25px;
	}
	#leistungen article .text .col.col-3 {
		max-width: 100%;
		margin-right: 0;
	}
	
	#referenzen article .text {
		padding: 120px 25px;
	}
	
	#kontakt article .inner {
		padding: 0 25px;
	}

}

@media only screen and (max-width: 640px) {
	
	#start article h1 {
		font-size: 4em;
	}
	
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@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) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
