/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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
   ========================================================================== */

/* Fonts */

/* playfair-display-regular - latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/playfair-display-v13-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'),
       url('../fonts/playfair-display-v13-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/playfair-display-v13-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/playfair-display-v13-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/playfair-display-v13-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/playfair-display-v13-latin-regular.svg#PlayfairDisplay') format('svg'); /* Legacy iOS */
}

/* lato-300 - latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/lato-v14-latin-300.eot'); /* IE9 Compat Modes */
  src: local('Lato Light'), local('Lato-Light'),
       url('../fonts/lato-v14-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/lato-v14-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/lato-v14-latin-300.woff') format('woff'), /* Modern Browsers */
       url('../fonts/lato-v14-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/lato-v14-latin-300.svg#Lato') format('svg'); /* Legacy iOS */
}

/* lato-300italic - latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/lato-v14-latin-300italic.eot'); /* IE9 Compat Modes */
  src: local('Lato Light Italic'), local('Lato-LightItalic'),
       url('../fonts/lato-v14-latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/lato-v14-latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/lato-v14-latin-300italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/lato-v14-latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/lato-v14-latin-300italic.svg#Lato') format('svg'); /* Legacy iOS */
}

/* lato-regular - latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/lato-v14-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('Lato Regular'), local('Lato-Regular'),
       url('../fonts/lato-v14-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/lato-v14-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/lato-v14-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/lato-v14-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/lato-v14-latin-regular.svg#Lato') format('svg'); /* Legacy iOS */
}

/* lato-italic - latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/lato-v14-latin-italic.eot'); /* IE9 Compat Modes */
  src: local('Lato Italic'), local('Lato-Italic'),
       url('../fonts/lato-v14-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/lato-v14-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/lato-v14-latin-italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/lato-v14-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/lato-v14-latin-italic.svg#Lato') format('svg'); /* Legacy iOS */
}

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

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
	font-family: 'Lato', Arial, Helvetica, sans-serif;
	font-size: 1.125em;
    line-height: 1.444444444;
	font-weight: 300;

	-webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets 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: 0.055555556em;
    border: 0;
    border-top: 0.055555556em solid #42515a;
	margin-top: -1.111111111em;
	margin-bottom: 60px;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

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

/* === STYLES */

/* = SCHRIFTEN */

h1, h2, h3 { font-family: "Playfair Display", "Times New Roman", Times, serif; }
.logo h1, .logo h2, input, textarea, button { font-family: 'Lato', Arial, Helvetica, sans-serif; }

h1 { font-size: 5em; line-height: 1em; }
h2 { font-size: 2em; line-height: 1.277777778; }
h3 { font-size: 1.5em; line-height: 1.296296296; }
small, .bildbeschreibung, footer p, .impressum, .datei a, .link, footer input, button, .download { font-size: 0.833333333em; }
.logo h1 { font-size: 2.5em; }
.logo h2 { font-size: 1.5em; }
input, textarea { font-size: 1em; }

h1, h2, .logo h1, strong { font-weight: 400; }
.logo h2, textarea, input, h3, h4, button { font-weight: 300; }
footer li { font-style: italic; }

.logo, nav, h1, .sprache, .newsletter, h4 { text-transform: uppercase; }
.logo, nav, h1, .bilder a, .download, .pressearchiv, .toplink, .newsarchiv { text-align: center; }
label, .infos, .impressum { text-align: right; }
a { text-decoration: none; }
h1 { letter-spacing: 0.1em; }
.logo h2 { letter-spacing: 0.2em; }
footer li { list-style: none; }

h1, h2, .logo, button {
	-webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

/* = FARBEN */

footer, .newsletter, .link, .download { background: #42515a; } /* Anthrazit */
#kunden, .bildbeschreibung, .datei a { background: #b3bdc4; } /* Anthrazit 35% */
#newsarchiv, #news, #kontakt, #services, .datum, #presse form input, #presse form textarea, #pressearchiv, #impressum, #datenschutz, #http404, #newsseite { background: #dae0e3; } /* Anthrazit 15% */
.sprache, #submit, .dateiicon, .more, .less, button, #presse form #submit { background: #501a41; } /* Violett */
.kunde, #agentur, #presse { background: #fff; }

a { color: #942977; } /* Violett */
h1 { color: #42515a; } /* Anthrazit */
.infos a, #submit, footer, footer a, a.readmore, button, a.download, .bildbeschreibung a { color: #fff; }
.telefon, .mail a { color: #777; } /* Schwarz 50% */
.bildbeschreibung, a .logo h1, a .logo h2, nav a, .datei a, .pressearchiv, .newsarchiv a, .newshead a { color: #000; }

header { border-top: 0.555555556em solid #42515a; } /* Anthrazit */
nav li a { border-top: 0.055555556em solid #42515a; } /* Anthrazit */
.footinfo { border-top: 0.055555556em solid #fff; }

/* = ABSTÄNDE */

ol { margin-left: 1em; }

article + article { margin-top: 5.555555556em; } /* 100/18 */
nav, #slider, #impressum, #datenschutz, #http404, #pressearchiv, #newsarchiv, #newsseite { margin-top: 2.777777778em; } /* 50/18 */
p + p, p + ul, ul + p, h2 + p, p + .datei, .bilder + .bilder, form div + div, h4 + p, h4 + ul, footer form, h3 + p, h3 + ol, div + form, .download + img, p + .pressearchiv, p + h2, ul + h2 { margin-top: 1.444444444em; } /* 26/18 */
.datei + .datei, footer li + li, footer form div + div { margin-top: 0.555555556em; } /* 10/18 */

section h1 { margin-bottom: 1.111111111em; } /* 100/90 */
.infos { margin-bottom: 2.777777778em; } /* 50/18 */

/* === GRUNDGERÜST */

.wrap {
	width: 90%;
	max-width: 990px;
	margin: 0 auto;
	position: relative;
}

.relative { position: relative; }

header, section, #pressearchiv img, footer img { width: 100%; }

section {
	padding: 5.555555556em 0;
	position: relative;
}

footer { padding: 2.777777778em 0; }

section img, footer img { max-width: 100%; }

/* === HEADER */

.infos { margin-top: 0.166666667em; }
.newsletter, .sprache { padding: 0.277777778em 0.555555556em; }
.sprache { margin-left: 0.277777778em; }

.telefon {
	position: absolute;
	left: 0;
	bottom: 0;
}

.mail {
	position: absolute;
	right: 0;
	bottom: 0;
}

/* === NAVIGATION */

nav li { list-style: none; }

nav li a {
	display: block;
	padding-top: 0.833333333em;
}

nav li a:hover {
	border-top: 0.277777778em solid #942977;
	padding-top: 0.611111111em;
}

/* === CONTENT */

.raute {
	position: relative;
	width: 2.222222222em;
	height: 2.222222222em;
	margin: -6.666666667em auto 4.444444444em;
	background: url(../images/raute.png);
	z-index: 2;
}

section h1:after {
	content: ".";
	color: #501a41; /* Violett */
}

/* = NEWS */

.newshead {
	margin-top: -2.222222222em;
	position: relative;
}

.datum {
	float: left;
	display: inline;
	padding: 0.277777778em 0.555555556em;
	border: 0.055555556em solid #42515a;
}

.MarkupSocialShareButtons { float: right; display: block; }

.mssb-item {
	display: inline-block;
	padding: 0.277777778em 0.555555556em;
	border: 0.055555556em solid #42515a;
}

.mssb-item + .mssb-item { margin-left: 0.277777778em; }

.newsarchiv a {
	display: block;
	padding: 0.277777778em 0.555555556em;
	border: 0.055555556em solid #42515a;
}

.text, .text-full { margin-top: 0.277777778em; }

.text img.align_left, .text-full img.align_left {
	float: left;
	margin: 0 1.444444444em 0.555555556em 0;
}

.text img.align_right, .text-full img.align_right {
	float: right;
	margin: 0 0 0.555555556em 1.444444444em;
}

.readmore {	margin-top: 1.444444444em; }

.dateiicon, .more, .less {
	width: 1.666666667em;
	height: 1.666666667em;
	margin-right: 0.111111111em;
	float: left;
}

.more { background-image: url(../images/more.png); }
.less { background-image: url(../images/less.png); }

.datei a, .link {
	line-height: 2em;
	height: 2em;
	display: inline-block;
}

.datei a { padding: 0 0.555555556em; float: left; margin-right: 0.555555556em; }
.link { padding: 0 1.444444444em; }

/* = KUNDEN */

#kunden h2 { margin-bottom: 0.722222222em; }

.kunde {
	border: 0.055555556em solid #42515a;
	padding: 1em;
	height: 7em;
	display: block;

	background-position: center;
	background-repeat: no-repeat;

	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

article .kunde:nth-child(n+7) { margin-top: 3%; }

/* = PRESSEARCHIV */

.pressearchiv {
	display: block;
	padding: 0.277777778em 0.555555556em;
	border: 0.055555556em solid #42515a;
}

.datei small { line-height: 2em; display: block; }

.download {
	display: block;
	padding: 0.277777778em 0.555555556em;
}

.bildbeschreibung { padding: 0.555555556em 0.833333333em; }

/* === FORMULAR */

input, textarea, button {
	border: 0.055555556em solid #42515a; /* Anthrazit */
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
}

input:hover, textarea:hover { border: 0.055555556em solid #942977; }

footer input, footer input:hover { border: 0; }

input, textarea, button {
	padding: 0.277777778em 0.555555556em;
	display: block;
	width: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

#submit, button {
	cursor: pointer;
	border: 0;
}

/* === FOOTER */

footer li img {
	width: auto;
	margin-right: 0.555555556em;
}

.footinfo { padding-top: 1.111111111em; }

.toplink { margin-top: 1.444444444em; }

.toplink img { width: auto; display: inline-block; }

.impressum {
	position: absolute;
	right: 0;
	bottom: 0;
}

/* ==========================================================================
   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: 150%;
}

/*
 * 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: 0.055555556em;
    margin: -0.055555556em;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 0.055555556em;
}

/*
 * 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.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 900px) {

	/* === ALLGEMEINES */

	h2 { font-size: 1.5em; }

	.infos, .telefon, .mail { text-align: center; }

	/* === HEADER */

	.telefon {
		margin-top: 1.38889em;
		position: relative;
	}

	.mail { position: relative; }

	/* === NAVIGATION */

	nav li + li { margin-top: 0.833333333em; }

	/* === KUNDEN */

	article .kunde:nth-child(n+6) { margin-top: 3%; }

	/* === PRESSEARCHIV */

	.datei a { float: none; }

}

@media only screen and (max-width: 700px) {

	/* === ALLGEMEINES */

	h1 { font-size: 2.5em; }

	article .m-all + .m-all, article * .m-all + .m-all { margin-top: 1.444444444em; }

	/* === NEWS */

	.newshead { margin-top: 0; }

	/* === SLIDER */

	.sliderbox h3 { font-size: 1em; }
	.sliderbox p { font-size: 0.833333333em; }

	/* === FORMULAR */

	#kontakt .m-all + .m-all, #presse .m-all + .m-all { margin-top: 1.444444444em; }

	label { text-align: left; }

	/* === KUNDEN */

	article a.kunde:nth-child(n+4) { margin-top: 1em; }

	/* === PRESSEARCHIV */

	.datei a { float: left; }

	#pressearchiv * .p1 + .p2 { margin-top: 0; }

	/* === FOOTER */

	footer .p-all + .p-all { margin-top: 1.444444444em; }

	.impressum {
		padding-top: 2.777777778em;
		position: relative;
		text-align: center;
		clear: left;
	}

}

@media only screen and (max-width: 450px) {

	/* === NEWS */

	.datum, .MarkupSocialShareButtons { float: none; }

	.MarkupSocialShareButtons { margin-top: 0.555555556em; }

	.newshead { margin-bottom: 1.444444444em; }

	hr { display: none; }

	.morefix { margin-top: 0; }

	.text img.align_left, .text img.align_right { float: none; margin: 0 0 1.444444444em; }

	.text img.align_left + p, .text p + img.align_left, .text img.align_right + p, .text p + img.align_right { margin: 1.444444444em 0 0 0; }

	.text img { display: block; }

	/* === KUNDEN */

	article a.kunde:nth-child(n+3) { margin-top: 1em; }

	/* === PRESSEARCHIV */

	#pressearchiv * .m-all + .m-all { margin-top: 1.444444444em; }

	/* === FOOTER */

	footer { text-align: center; }

	footer * .m-all + .m-all { margin-top: 1.444444444em; }

}


/* ==========================================================================
   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: 0.055555556em 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;
    }
}
