/*
 * HTML5 Boilerplate
 *
 * 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,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * 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 images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

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



.errFullpage {
	width: 100%;
	height: 100%;
	background-color: #c81416;
	z-index: 10000;
	position: fixed;
}

.errFullpage p {
	margin: 30px;
	padding: 0;
	font-weight: 900;
	font-size: 3em;
	line-height: 0.9em;
	color: #fff;
}

html, body {
	width: 100%;
	height: 100%;
	display: block;
	margin: 0;
	padding: 0;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 20px;
	color: #2e2e2e;
	background: none;
}





/* Header */

header {
	width: 100%;
	height: auto;
	position: fixed;
	margin: 0;
	padding: 0;
	background: none;
	display: block;
}

#logo {
	position: absolute;
	width: 200px;
	height: 54px;
	display: block;
	overflow: hidden;
	margin: 0;
	padding: 0;
	background-image: url('../img/logo.svg');
	-webkit-background-size: 200px 54px;
	-moz-background-size: 200px 54px;
	-o-background-size: 200px 54px;
	background-size: 200px 54px;
	cursor: pointer;
	top: 20px;
	left: 23px;
}

nav {
	position: absolute;
	top: 32px;
	right: 20px;
}

nav ul {
	margin: 0;
	padding: 0;
}

nav ul li {
	display: inline-block;
	font-weight: 400;
	font-size: 0.9em;
	line-height: 1em;
	text-transform: uppercase;
	color: #2e2e2e;
	margin: 0 0 0 20px;
	padding: 0;
}

nav ul li a {
	padding: 5px 10px;
	background-color: rgba(255,255,255,0.5);
	color: #2e2e2e;
	text-transform: uppercase;
	text-decoration: none;
	-webkit-transition: all 500ms ease-in-out;
    -moz-transition: all 500ms ease-in-out;
    -o-transition: all 500ms ease-in-out;
    transition: all 500ms ease-in-out;
}

nav ul li a:hover {
	background-color: #c81416;
	color: #fff;
}

.linkActive, #headerMobileNav a.linkActive {
	color: #c81416;
}

#headerMobile {
	display: none;
	width: 100%;
	height: 50px;
	overflow: hidden;
	position: fixed;
	top: 0;
	left: 0;
	background-color: #fff;
	z-index: 500;
}

#logoMobile {
	width: 76px;
	height: 50px;
	display: block;
	position: absolute;
	top:0;
	left: 0;
}

#logoMobile img {
	width: 100%;
	height: 100%;
}

#headerMobileNav {
	position: absolute;
	right: 0;
	top: 0;
}

#headerMobileNav a {
	float: left;
	display: block;
	padding: 17px 7px 50px 7px;
	overflow: hidden;
	font-weight: 400;
	font-size: 0.8em;
	line-height: 1em;
	text-transform: uppercase;
	color: #2e2e2e;
	text-decoration: none;
	-webkit-transition: all 500ms ease-in-out;
    -moz-transition: all 500ms ease-in-out;
    -o-transition: all 500ms ease-in-out;
    transition: all 500ms ease-in-out;
}

#headerMobileNav a:hover {
	background-color: #c81416;
	color: #fff;
}




/* Startseite */

section#headlineHome {
	width: 100%;
	top: 25%;
	position: absolute;
}

section#headlineHome h1 {
	margin: 0;
	padding: 0;
	text-align: center;
	font-weight: 900;
	font-size: 3.8em;
	line-height: 1em;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	display: none;
	color: #2e2e2e;
	text-shadow: 0px 0px 10px rgba(255,255,255,1);
}

section#headlineHome h2 {
	margin: 0;
	padding: 0px 0 0 0;
	text-align: center;
	font-weight: 100;
	font-size: 3em;
	line-height: 1.4em;
	display: none;
	color: #2e2e2e;
	text-shadow: 0px 0px 10px rgba(255,255,255,1);
}

#slideshow {
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	height: 100%;
	overflow: hidden;
	width: 100%;
	position: fixed;
	z-index: -2;
	top: 0;
	left: 0;
}





/* Work */

section#work {
	width: 1260px;
	margin: 0 auto;
	padding: 134px 0 0 10px;
}

.workHeader {
	width: 240px;
	height: 135px;
	display: block;
	float: left;
	margin: 0 10px 10px 0;
	background-color: #9d9d9d;
	background-image: url(../img/workedge.png);
	background-repeat: no-repeat;
	background-position: bottom right;
	background-size: 18px 18px;
	overflow: hidden;
}

.workHeaderFirst {
	background-color: #c81416;
}

.workHeader h2 {
	color: #fff;
	font-size: 1.1em;
	line-height: 1em;
	font-weight: 100;
	margin: 15px 10px 0 10px;
	padding: 0;
}

.workDescription {
	float: left;
	width: 245px;
	overflow: hidden; 
	margin: 5px 0 0 0;
	padding: 0;
}

.workDescription p {
	color: #fff;
	font-size: 0.7em;
	line-height: 1.2em;
	font-weight: 100;
	padding: 0 9px 0 10px;
	margin: 5px 0 0 0;
}

.workDescriptionItem {
	font-weight: 400;
}

.workItem {
	float: left;
	width: 240px;
	height: 135px;
	margin: 0 10px 10px 0;
	overflow: hidden;
	display: block;
	background-color: #000;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.workItemHover {
	width: 240px;
	height: 135px;
	background-image: url(../img/enlarge.png);
	background-position: center center;
	background-size: 89px 89px;
	background-repeat: no-repeat;
	background-color: #c81416;
	opacity: 0;
	-webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;
	z-index: 40;
	position: relative;
	top: 0;
}

.workItemHover:hover {
	opacity: 1;
}

.vimeo {
	width: 240px;
	height: 135px;
}





/* About */

section#about {
	width: 1270px;
	margin: 0 auto;
	padding: 134px 0 0 0;
}

section#about h1 {
	display: none;
	margin: 0 0 0 10px;
	padding: 0;
	font-weight: 900;
	font-size: 3.3em;
	line-height: 1em;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	color: #2e2e2e;
}

section#about p {
	display: none;
	margin: 5px 0 0 10px;
	padding: 0;
	font-weight: 100;
	font-size: 1.3em;
	line-height: 1em;
	text-transform: uppercase;
	color: #2e2e2e;
}

section#about h2 {
	display: none;
	margin: 50px 0 0 10px;
	padding: 0;
	font-weight: 900;
	font-size: 2em;
	line-height: 1em;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	color: #2e2e2e;
}

section#about ul {
	margin: 10px 0 0 10px;
	padding: 0;
	list-style: none;
}

section#about li {
	display: none;
	margin: 0;
	padding: 0 0 5px 0;
	line-height: 1em;
	font-size: 1.8em;
	font-weight: 100;
	color: #2e2e2e;
	text-transform: uppercase;
}




/* Contact */
section#contact {
	width: 1270px;
	margin: 0 auto;
	padding: 134px 0 0 0;
}

section#contact p {
	display: none;
	margin: 0;
	padding: 0 0 0 10px;
	font-weight: 100;
	font-size: 2.6em;
	line-height: 1em;
	text-transform: uppercase;
	color: #2e2e2e;
}

section#contact b {
	font-weight: 900;
}

section#contact p a {
	text-decoration: none;
	color: #c81416;
	-webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;
}

section#contact p a:hover {
	background-color: #c81416;
	color: #fff;
}






/* Imprint */

section#imprint {
	width: 1270px;
	margin: 0 auto;
	padding: 134px 0 0 0;
}

section#imprint h1 {
	margin: 0 0 0 10px;
	padding: 0;
	font-weight: 900;
	font-size: 3.3em;
	line-height: 1em;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	color: #2e2e2e;
}

section#imprint p {
	margin: 5px 0 0 10px;
	padding: 0;
	font-weight: 100;
	font-size: 1.1em;
	line-height: 1.3em;
	color: #2e2e2e;
}

section#imprint h2 {
	margin: 50px 0 0 10px;
	padding: 0;
	font-weight: 900;
	font-size: 2em;
	line-height: 1em;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	color: #2e2e2e;
}

section#imprint h3 {
	margin: 25px 0 0 10px;
	padding: 0;
	font-weight: 900;
	font-size: 1.5em;
	line-height: 1em;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	color: #2e2e2e;
}








/* 404 / errpage */

section#errpage {
	width: 1270px;
	margin: 0 auto;
	padding: 134px 0 0 0;
}

section#errpage h1 {
	margin: 0 0 0 10px;
	padding: 0;
	font-weight: 900;
	font-size: 3.3em;
	line-height: 1em;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	color: #2e2e2e;
}

section#errpage p {
	margin: 5px 0 0 10px;
	padding: 0;
	font-weight: 100;
	font-size: 1.3em;
	line-height: 1em;
	text-transform: uppercase;
	color: #2e2e2e;
}

section#errpage p a {
	color: #c81416;
	text-decoration: none;
}




/* Impressum */
#imprintLink {
	position: fixed;
	bottom: 2px;
	right: 2px;
	z-index: 101;
}

#imprintLink p {
	color: #2e2e2e;
	font-size: 0.7em;
	line-height: 0.7em;
	font-weight: 100;
	margin: 0;
	padding: 2px;
	display: block;
}

#imprintLink p a {
	text-decoration: none;
	color: #2e2e2e;
}




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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

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

/* geringere auflösung */
@media only screen and (max-width: 1300px) {
 
 	section#work, section#about, section#contact, section#imprint {
	 	width: 1010px;
 	}
 	
 	section#contact p {
		font-size: 2.3em;
	}

    
}

@media only screen and (max-width: 1050px) {
 
 	section#work, section#about, section#contact, section#imprint {
	 	width: 760px;
 	}
 	
 	section#about {
	 	padding: 120px 0 0 0;
 	}
 	
 	section#about h1, section#imprint h1 {
		font-size: 3em;
	}
	
	section#about p, section#imprint p {
		font-size: 1em;
	}
	
	section#about h2, section#imprint h2 {
		font-size: 1.9em;
	}
	
	section#imprint h3 {
		font-size: 1.4em;
	}
	
	section#about li {
		font-size: 1.4em;
	}
	
	section#contact {
		padding: 120px 0 0 0;
	}
	
	section#contact p {
		font-size: 2.2em;
	}


    
}

@media only screen and (max-width: 800px) {
 
 	section#work, section#about, section#contact, section#imprint {
	 	width: 510px;
 	}
 	
 	section#headlineHome h1 {
		font-size: 2em;
	}
	
	section#headlineHome h2 {
		font-size: 1.5em;
	}
 	
 	section#about p {
	 	line-height: 1.2em;
 	}
 	
 	section#about h2 {
		font-size: 1.8em;
		margin: 30px 0 0 10px;
	}
    
}

@media only screen and (max-width: 550px) {
 	
 	header {
	 	display: none;
 	}
 	
 	#headerMobile {
	 	display: block;
 	}
 	
 	section#work, section#about, section#contact, section#imprint {
	 	width: 90%;
	 	padding-left: 0;
	 	padding-top: 80px;
 	}
 	
 	section#headlineHome h1 {
		font-size: 1.5em;
	}
	
	section#headlineHome h2 {
		font-size: 1.5em;
	}
 	
 	.workHeader {
	 	width: 100%;
	 	margin-right: 0;
	 	float: none;
 	}
 	
 	.workItem {
	 	width: 100%;
	 	margin-right: 0;
	 	float: none;
	 	height: 220px;
 	}
 	
 	.workItemHover  {
	 	width: 100%;
	 	height: 220px;
 	}
 	
 	.vimeo {
		width: 100%;
		height: 100%;
	}
	
	section#about h1, section#imprint h1 {
		font-size: 2em;
	}
	
	section#about li {
		font-size: 1em;
	}
	
	section#contact p {
		font-size: 1.5em;
	}
	
	section#imprint img {
	 	width: 75%;
 	}
 	
 	section#imprint h2 {
	 	font-size: 1.5em;
 	}
 	
 	section#imprint h3 {
	 	font-size: 1.2em;
 	}
 	
 	section#imprint p {
	 	font-size: 0.9em;
 	}
    
}



/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

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

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