/* general layout */

html {
	background: #fff url(img/noise.png);
	font-size: 62.5%;
	line-height: 1.4;
	overflow-y: scroll;
}

@media (min-width: 1095px) {
	html {
		font-size: 71.25%;
	}
}

@media (min-width: 1230px) {
	html {
		font-size: 80%;
	}
}

body {
	padding: 0 0 3rem;
}

body > header, body > footer, .content { /* content nodes */
	box-sizing: border-box;
	overflow: hidden; /* avoid collapsing margins from descendants as e.g. <h1> */
	padding: 0 1.2rem 1rem;
	position: relative;
}

body > header {
	padding-bottom: 0;
}

.full {
	display: table;
	margin-left: auto;
	margin-right: auto;
	max-width: 96rem;
	table-layout: fixed;
	width: 100%;
}

.half {
	display: table-cell;
	width: 50%;
}

@media (max-width: 800px) {
	.half {
		display: block;
		width: auto;
	}
}

.with-more-link {
	padding-bottom: 6em;
}

/* replacing content */

img {
	border: 1px solid #d6e0e4;
	margin: 0 0 1.1rem;
}

img.full-width {
	width: 100%;
}

/* typography */

body {
	font-family: "Lato", sans-serif;
}

/* typography > block */

h2, h3 {
	color: #003f54;
	font-weight: 400;
	padding: 0;
}

h2 {
	font-size: 2rem;
	margin: 0.5em 0;
	position: relative;
}

h2 small {
	color: #4c7887;
	font-size: inherit;
	font-weight: 300;
}

h2:before {
	background: #a9e800;
	border-radius: 50%;
	content: '\00a0';
	display: inline-block;
	height: 1.4em;
	left: -0.2em;
	position: absolute;
	top: 0;
	transition: 0.3s;
	width: 1.4em;
	z-index: -1;
}

.content:hover h2:before, footer:hover h2:before {
	height: 1.6em;
	width: 1.6em;
	top: -0.1em;
	left: -0.3em;
}

h2.bare:before {
	background: none;
	content: '';
	display: none;
	height: auto;
	margin: 0;
	width: auto;
}

h3 {
	font-size: 1.6rem;
	margin: 0 0 0.5em;
}

blockquote {
	margin: 0 0 1em;
	padding: 0;
}

blockquote p {
	color: #668c98;
	display: inline;
	font-size: 2rem;
	font-style: normal;
}

blockquote.pane {
	background-color: #003f54;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 100% auto;
	position: relative;
	margin: 1.5rem 0 2.5rem;
}

#it blockquote.pane {
	background-image: url(img/bg.it.jpg);
}

#photo blockquote.pane {
	background-image: url(img/bg.photo.jpg);
}

blockquote.pane:before {
	content: "";
	display: block;
	padding-top: 37.5%;
	width: 100%;
}

blockquote.pane p {
	bottom: 0;
	color: #fff;
	left: 0;
	margin: 0;
	position: absolute;
	right: 0;
	top: 0;
}

blockquote.pane span {
	position: absolute;
}

#it blockquote.pane span:first-child {
	left: 1em;
	top: 0.3em;
}

#it blockquote.pane span + span {
	right: 1em;
	bottom: 0.3em;
}

#photo blockquote.pane span:first-child {
	right: 1em;
	top: 0.3em;
}

#photo blockquote.pane span + span {
	left: 1em;
	bottom: 0.3em;
}

p, ul {
	color: #333;
	font-size: 1.6rem;
	font-weight: 300;
	margin: 0 0 1.1rem;
	padding: 0;
	max-width: 70rem;
}

ul {
	list-style: none;
}

li {
	padding-left: 1em;
	text-indent: -1em;
}

li:before {
	color: #4c7887;
	content: "·";
	font-weight: 400;
	padding-right: 0.4em;
}

/* typography > table */

table.bare {
	border-collapse: collapse;
	max-width: 70rem;
	margin: 0 0 1.1rem;
}

table.bare th, table.bare td {
	color: #333;
	font-size: 1.6rem;
	font-weight: 300;
	padding: 0 0.5em 0.5em;
	text-align: left;
	vertical-align: top;
}

table.bare.slim td, table.bare.slim th {
	padding-bottom: 0;
}

table.bare th:first-child, table.bare td:first-child {
	padding-left: 0;
}

table.bare th:last-child, table.bare td:last-child {
	padding-right: 0;
}

table.protect-th th {
	white-space: nowrap;
}

table.protect-a a {
	white-space: nowrap;
}

table th.right, table td.right {
	text-align: right;
}

/* typography > inline */

a {
	color: #38f;
	text-decoration: none;
}

a:hover, a:focus {
	text-decoration: underline;
}

a.kind-of-prominent {
	color: #a9e800;
	text-decoration: underline;
}

a.kind-of-prominent span {
	color: #333;
}

a.kind-of-prominent span > u {
	color: transparent;
	text-decoration: underline;
}

a.kind-of-prominent u u {
	color: #333;
	text-decoration: none;
}

abbr[title] {
	cursor: help;
	text-decoration: inherit;
}

b {
	background: #e9f9bf;
	font-weight: 300;
	padding: 0 0.2rem;
}

code {
	font: inherit;
}

strong {
	color: #003f54;
	font-weight: 400;
}

em {
	color: #003f54;
	font-weight: 300;
	font-style: italic;
}

::-moz-selection {
	background: #a9e800;
	color: #333;
}

::selection {
	background: #a9e800;
	color: #333;
}

/* shared modules > read more */

div.read-more {
	position: absolute;
	left: 1rem;
	bottom: 0;
}

div.read-more a {
	background: #4894ff url(img/noise.png);
	color: #fff;
	display: inline-block;
	font-size: 1.6rem;
	margin-bottom: 1rem;
	padding: 0.1em 0.5em 0.2em;
	text-decoration: none;
	transition: 0.2s;
}

div.read-more a:hover, div.read-more a:focus {
	background-color: #38f;
	color: #fff;
}

div.read-more a:after {
	content: ' ‣';
}

/* #title */

h1 {
	float: left;
	font-size: 3.3rem;
	font-weight: 400;
	line-height: 1;
	margin: 1.6rem 0 0.8rem;
	padding: 0;
}

h1 a, h1 a:hover, h1:focus {
	color: #a9e800;
	text-decoration: none;
}


@media (max-width: 580px) {
	h1 {
		float: none;
	}
}

/* nav (see section definition, too) */

nav {
	float: right;
	margin: 2.27rem 0 0.8rem;
}

nav ul {
	max-width: none;
	overflow: hidden;
	padding: 0.5rem 0 0;
}

nav li {
	float: left;
	margin: 0 0.5em 0.4em 0;
	padding: 0;
	text-indent: 0;
}

nav li:last-child {
	margin-right: 0;
}

nav li:before {
	color: #99b2bb;
}


@media (max-width: 580px) {
	nav ul {
		font-size: 1.5rem;
	}
}

nav li.active a {
	color: #003f54;
}

nav li:first-child:before {
	content: '';
	padding-right: 0;
}

@media (max-width: 580px) {
	nav {
		float: none;
		margin-top: 0;
	}
}

/* #error-404 */

#error-404 h2 {
	color: #c11;
}

/* #contact */

li[data-icon=location] a,
li[data-icon=phone] a {
	color: #333;
}

#contact > p a:after {
	content: ' ‣';
}

/* icon font (generated through fontello.com) */

@font-face {
	font-family: 'filchosicon';
	src: url('fontello/font/filchosicon.eot?66970942');
	src: url('fontello/font/filchosicon.eot?66970942#iefix') format('embedded-opentype'),
		url('fontello/font/filchosicon.woff2?66970942') format('woff2'),
		url('fontello/font/filchosicon.woff?66970942') format('woff'),
		url('fontello/font/filchosicon.ttf?66970942') format('truetype'),
		url('fontello/font/filchosicon.svg?66970942#filchosicon') format('svg');
	font-weight: normal;
	font-style: normal;
}

li[data-icon] {
	padding: 0 0 0 1.7rem;
	position: relative;
	text-indent: 0;
}

li[data-icon=none] {
	padding: 0;
}

li[data-icon]:before {
	content: "";
	padding: 0;
}

li[data-icon] i:before {
	color: #38f;
	font-family: filchosicon;
	font-size: 80%;
	font-style: normal;
	left: 0;
	position: absolute;
	top: 0.25em;
	vertical-align: 0.1em;
}

li[data-icon=mail]     i:before { content: "\e800"; }
li[data-icon=phone]    i:before { content: "\e801"; }
li[data-icon=file-pdf] i:before { content: "\e802"; }
li[data-icon=linkedin] i:before { content: "\e803"; }
li[data-icon=xing]     i:before { content: "\e804"; }
li[data-icon=globe]    i:before { content: "\e805"; }
li[data-icon=location] i:before { content: "\e806"; }
li[data-icon=facebook] i:before { content: "\e807"; }
li[data-icon=github]   i:before { content: "\e808"; }
li[data-icon=vcard]    i:before { content: "\e809"; }

/* smaller text (for privacy policy) */

section.smaller p {
	font-size: 120%;
}