/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}



body {
    line-height: 1;
}


ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Our CSS */

html {
	background-color: #fafafa;
    font-family: 'Roboto Slab', serif;
    height: 100%;
    width: 100%;
}



#header {
    box-sizing: border-box;
    display: table;
    height: 50px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: #0073e5;
	font-family: 'Open Sans', sans-serif;
}


.portfolio-header {
    display: none;
}

.navlink, #logolink {
    color: #fff;
    display: table-cell;
    font-weight: 400;
    height: 100%;
    text-align: center;
    text-decoration: none;
	position: relative;
    vertical-align: middle;
}


.activeaboutme #aboutme, .activeportfolio #portfolio, .activecontact #contact {
    color: #fff;
    font-weight: 600;
}

.navlink:hover {
    text-shadow: 0px 0px 2px #fff;
}

#logolink:hover{
	transform:rotate(-10deg);
}

#logolink {
    background-image: url("../img/mklogo.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 70% auto;
    transition: all 0.1s ease 0s;
    width: 50px;
}

#logo {
    height: 50px;
    max-height: 80%;
    vertical-align: middle;
}

#main {
    box-sizing: border-box;
    display: block;
    line-height: 1.3em;
    margin: 50px auto 0;
	max-width:670px;
	padding:0px 20px 20px 20px;
    overflow: hidden;
    position: relative;
	min-height:calc(100vh - 50px);
}

	
.calltoaction {
    clear: both;
    color: #fff;
    font-size: 0.9em;
    font-weight: 700;
    margin: 0 10px 15px 10px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease 0s;
    border-radius: 4px;
    background-color: #0073e5;
    padding: 7px 15px;
	white-space: nowrap;
	display: inline-block;
	font-family: 'Open Sans', sans-serif;
}

.calltoaction:hover {
    background-color: #0382ff;
	box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12);
}

.calltoaction:focus {
    background: #0257ab none repeat scroll 0 0;
}

.center {
    text-align: center;
}

.references {
    display: block;
    text-align: left;
}

.referencepic {
    clear: both;
    display: block;
    margin: 15px 5px 0 0;
    max-width: 193px;
    vertical-align: middle;
    width: 100%;
}


#title {
	display: table;
	height: 100%;
	position: absolute;
	right: calc((100% - 330px - 720px) / 2);
	top: 0;
	width: 720px;
}


/* ---------- Content styling ---------- */
h1{
	border-bottom: 1px solid #97cbff;
	box-sizing: border-box;
	color: #000;
	font-size: 1.4em;
	font-weight: 600;
	line-height: 39px;
	width: 100%;
	margin: 25px 0 15px 0;
}


h2 {
    border-bottom: 1px solid #97cbff;
    display: block;
    font-size: 1.4em;
    font-weight: 400;
    line-height: 1.8em;
    margin: 0 0 15px 0;
	width: 100%;
}

h3 {
    display: block;
	font-size: 1.1em;
	font-weight: 600;
    line-height: 1.8em;
    margin: 0 0 15px;
	width: 100%;
}

p {
	hyphens: auto;
	display: block;
	font-size: 1.2em;
	font-weight: 300;
	line-height: 1.4em;
    margin: 0 0 15px 0;
}

.setup {
    border: 1px solid #0073e5;
    background-color: #e4f0fc;
    font-size: 0.75em;
    padding: 10px;
    font-weight: 300;
	font-family: 'Open Sans', sans-serif;
}

strong{
	font-weight:700;
}

a{
    color: #0073e5;	
}

iframe {
    max-width: 100%;
    width: 100%;
    margin: 0 0 15px 0;
}

ol > li {
    list-style: decimal;
}

li > ul li {
    font-size: 1em;
}

li {
	list-style: disc outside;
	margin: 5px 5px 0 20px;
	position: relative;
	font-size: 1.2em;
	font-weight: 300;
	line-height: 1.4em;
}

ul,ol {
    margin: 0 0 15px 15px;
}
.other table {
	margin: 20px auto;
	position: relative;
	table-layout: fixed;
	width: 100%;
}

.other tr {
	margin: 10px;
}

.other th,.other  td {
	border-right: 1px solid rgb(255, 255, 255);
	padding: 10px;
	text-align: left;
}

.other th {
	font-weight: 600;
	text-align: left;
}

.other th:last-of-type,.other  td:last-of-type {
	border: medium none;
}

.other th {
	background-color: rgba(0, 0, 0, 0.14);
	font-weight:600;
}

.other tr:nth-child(2n+1) th,.other  tr:nth-child(2n+1) td {
	background-color: rgba(0, 0, 0, 0.01);
}

.other tr:nth-child(2n) th,.other  tr:nth-child(2n) td {
	background-color: rgba(0, 0, 0, 0.04);
}

.other th:first-child{
	border-top-left-radius:10px;
}
.other th:last-child{
	border-top-right-radius:10px;
}
.other tr:last-child th,.other  tr:last-child td:nth-child(1){
	border-bottom-left-radius:10px;
}
.other tr:last-child td:last-child{
	border-bottom-right-radius:10px;
}

.video-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	margin: 0 0 15px 0;
}

.youtube {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.offertable {
    border-collapse: collapse;
    border-spacing: 0;
    overflow: hidden;
}

.offertable tr {
    display: block;
}

.offertable th {
    display: block;
    font-weight: 600;
    margin: 10px 0;
    text-align: left;
}

.offertable td {
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;
    display: block;
	line-height: 1.4em;
    margin: 10px 0 20px 0;
    text-align: justify;
}

.offertable tr:last-of-type td {
    margin-bottom: 0;
}



.activeportfolio img,.imgbild {
    display: block;
	margin: 15px 0 15px -20px;
	max-width: calc(100% + 40px);
    width: calc(100% + 80px);
}
.caption {
    font-size: 0.8em;
    line-height: 1.2em;
    margin: -15px 0 15px 0;
    padding: 5px;
    text-align: center;
    width: 100%;
	font-family: 'Open Sans', sans-serif;
}

.defaultlink {
    color: #0073e5;
    text-decoration: none;
}

.defaultlink:hover {
    text-decoration: underline;
}


.activeportfolio img.teaserpic {
	clear: both;
	float: left;
	width: 100%;
	margin: -15px 0 15px -15px;
	width: calc(100% + 30px);
	max-width: calc(100% + 30px);
}

.teaserbox p a {
    float: none;
    font-size: unset;
    font-weight: 500;
    margin: 0;
    text-transform: none;
}

.contactbox{
    box-sizing: border-box;
    color: #333;
    float: left;
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease 0s;
    width: 100%;
}
.contactbox h2{
    border: medium none;
    float: left;
    font-size: 1.8em;
    font-weight: 400;
    line-height: 1.1em;
    margin: 15px;
}
.contactbox p{
	line-height: 1.4em;
	margin: 0 15px 15px 15px;
	clear: both;
	float: left;
	text-align:left;
}
.contactbox a{
    color: #08a6ff;
	transition: all 0.2s ease 0s;
}
.contactbox a:hover {
    color: red;
}

.teaserbox {
	background-color: #fff;
	box-sizing: border-box;
	color: #333;
	margin: 20px auto;
	padding: 15px;
	position: relative;
	text-decoration: none;
	transition: all 0.2s ease 0s;
	width: 100%;
	box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),0px 1px 1px 0px rgba(0, 0, 0, 0.14),0px 1px 3px 0px rgba(0,0,0,.12);
	border-radius: 10px;
	overflow: hidden;
	max-width: 320px;	
	font-family: 'Open Sans', sans-serif;
}

.teaserbox h2 {
    border: medium none;
    float: left;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.1em;
    margin: 0 0 15px 0;
	max-width: calc(100% - 30px);
}

.teaserbox span,.chips {
    margin: 0 5px 15px 0;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 0.7em;
    display: inline-block;
	background-color: #e4f0fc;
	color: #0073e5;
	font-family: 'Open Sans', sans-serif;
}

.teaserbox p {
	line-height: 1.4em;
	margin: 0 0 15px 0;
	clear: both;
	float: left;
	text-align:left;
	font-size: 1em;
	font-weight: 400;
}

.teaserbox a {
    clear: both;
    color: #fff;
    float: left;
    font-size: 0.9em;
    font-weight: 700;
    margin: 0;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease 0s;
    border-radius: 4px;
    background-color: #0073e5;
    padding: 7px 15px;
}

.teaserbox a:hover {
    background-color: #0382ff;
	box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12);
}

.teaserbox ul {
    clear: both;
    float: left;
    list-style: outside url("dot.png") disc;
    margin-left: 30px;
}

.teaserbox li {
    line-height: 1.4em;
    margin-bottom: 5px;
}



@media only screen and (min-width: 600px) {	
	.references {
		display: table;
		margin: 20px 0 0 ;
		white-space: nowrap;
		width: 100%;
	}
	.referencecell {
		display: table-cell;
	}
	.referencepic {
		clear:unset;
		display: inline-block;
		margin: 0;
		max-width: 193px;
		vertical-align: middle;
		width: 90%;
	}
	.referencecell:nth-child(2) {
		text-align: center;
	}
	.referencecell:nth-child(3) {
		text-align: right;
	}

	.references {
		margin: 30px 0 0 0;
	}
	#header {
		text-align: right;
		overflow:hidden;
	}
	
	.navlink {
		display: inline-block;
		height: auto;
		margin: 0 40px 0 0;
		padding: 17px 0;
	}
	#main{
		max-width:670px;
		padding:20px 50px 50px 50px;
	}
	
	.activeportfolio img,.imgbild {
		margin: 0 0 15px 0px;
		max-width: 100%;
		width: 100%;
	}
}

		
@media only screen and (min-width: 871px) {
		
	#header {
		position: fixed;
		display: block;
		min-height: 100vh;
		width: 150px;
		overflow-y: auto;
		overflow-x: hidden;
	}

	.navlink {
		border: medium none;
		clear: both;
		display: block;
		font-size: 1em;
		height: auto;
		padding: 15px 10px 15px 35px;
		text-align: left;
		width: 100px;
		margin:0;
	}

	#logolink {
		background-size: 100% auto;
		display: block;
		height: 100px;
		margin: 25px;
		width: 100px;
	}
	#main {
		margin: 0 auto;
		transform: translateX(75px);
		width: calc(100% - 330px);
	}

}


#mainportfolio {
    display: block;
    margin: 50px auto 40px;
    line-height: 1.3em;
    overflow: auto;
}

@media only screen and (min-width: 720px) {
	#mainportfolio {
		display: flex;
		margin: 50px auto;
		padding: 0;
		width: calc(2 * 360px);
		flex-direction: column;
		height: 2350px;
		flex-wrap: wrap;
	}


	.teaserbox:nth-child(2n+1) { order: 1; }
	.teaserbox:nth-child(2n)   { order: 2; }
}

@media only screen and (min-width: 871px) {
	#mainportfolio {
		display: flex;
		margin: 20px auto;
		padding: 0;
		width: calc(2 * 360px);
		flex-direction: column;
		height: 2350px;
		flex-wrap: wrap;
		transform: translateX(75px);
	}
}



@media only screen and (min-width: 1260px) {
	#mainportfolio {
		display: flex;
		margin: 20px auto;
		padding: 0;
		width: calc(3 * 360px);
		transform: translateX(75px);
		flex-direction: column;
		height: 1560px;
		flex-wrap: wrap;
	}


	.teaserbox:nth-child(3n+1) { order: 1; }
	.teaserbox:nth-child(3n+2) { order: 2; }
	.teaserbox:nth-child(3n)   { order: 3; }
}
/*
#mainportfolio {
  columns: 6 200px;
  column-gap: 1rem;
}*/