/* pt-serif-regular - latin */
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('../fonts/pt-serif-v17-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/pt-serif-v17-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* pt-serif-italic - latin */
@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 400;
  src: local(''),
       url('../fonts/pt-serif-v17-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/pt-serif-v17-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* pt-serif-700 - latin */
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  src: local(''),
       url('../fonts/pt-serif-v17-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/pt-serif-v17-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* pt-serif-700italic - latin */
@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 700;
  src: local(''),
       url('../fonts/pt-serif-v17-latin-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/pt-serif-v17-latin-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}



/*
	* Gridless version 2.0

	* Credit is left inline and big thanks to Nicolas Gallagher and Jonathan Neal

	* Across this document we use safe CSS hacks: http://mathiasbynens.be/notes/safe-css-hacks
	* Selectors beggining with an underscore (_selector: property) target only IE6
	* Selectors beggining with an asterisk (*selector: property) target only IE6 and IE7
*/

/* HTML5 display definitions
---------------------------------------- */

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, dialog {
	display: block;
}

/* Corrects inline-block not defined in IE6/7/8 and FF3 */
audio, canvas, video {
	display: inline-block;
	*display: inline;
	*zoom: 1;
}

audio:not([controls]) {
	display: none;
}

/* Ensures content is hidden from all presentations, including screenreaders */
[hidden] {
	display: none;
	visibility: hidden;
}

/* Base structure
---------------------------------------- */

/*
	* The body will work like a 'div#wrapper' (for this to work, the 'body' needs to have a set width)

	* To add a background to the PAGE, set it in the 'html' element
	* To add a background to the WRAPPER, set it in the 'body' element
*/
html {
	height: 100%;
	font-size: 100%;
	overflow-y: scroll; /* Force a scrollbar in non-IE */
	-webkit-text-size-adjust: 100%; /* Prevent iOS text size adjust on orientation change without disabling user zoom */
	-ms-text-size-adjust: 100%;
}

body {
	margin: 0 auto;
	min-height: 100%;
	background:#f4f4f4 url(../bilder/hg_verlauf.png) center top repeat-x;
}

/* Fonts settings based on the 100E2R standard: http://www.informationarchitects.jp/en/100e2r/ */
body, button, input, select, textarea {
	font: 1em/1.625 Verdana, sans-serif;
	color: #000; /* Full black on white is too much contrast, #222 is a better default */
}

/* Add and/or remove tags as your baseline grid needs */
p, blockquote, q, pre, address, hr, code, samp, dl, ol, ul, form, table, fieldset, menu, h4, h5, h6, img, figure, figcaption, button, hr {
	margin: 0 0 1.625em;
}

*::selection {
        background: #e5111f;
		color:#fff;
}
*::-moz-selection {
        background: #e5111f;
		color:#fff;
}

/* Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7 */
table button, table input {
	*overflow: auto;
}

/* Headings/small
---------------------------------------- */

/*
	* Font sizes are based on the golden ratio of 16
	* See this for the modular scale: ow.ly/5jGl6
	* Line-heights and margins are adjusted to keep a 26px (1.625em) vertical rhythm across elements
*/

h1, h2, h3, h4, h5, h6 {
	font-family: Verdana, sans-serif;
	font-size: 1em;
	font-weight: bold;
}

h1 {
	font-size: 1.25em; /* 24px */
	line-height: 1.625em;
	margin: 0 0 0.619em;
}

h2 {
	font-size: 1em; /* 16px */
	line-height: 1.625em;
	margin: 0 0 1em;
}

h3 {
	font-size: 1em; /* 16px */
	line-height: 1.625em;
	margin: 0 0 1em;
}

small {
	font-size: 0.625em; /* 10px */
	margin: 0 0 2.6em;
}

/* Preformatted text and code
---------------------------------------- */

/* Allows line wrapping of 'pre' */
pre {
	white-space: pre;
	white-space: pre-wrap;
	word-wrap: break-word;
}

pre, code, kbd, samp {
	font: 1em/1.625em Menlo, Consolas, 'DejaVu Sans Mono', Monaco, 'Courier New', Courier, monospace;
}

/* Tables
---------------------------------------- */

table {
	border-collapse: collapse;
	border-spacing: 0;
}

th {
	text-align: left;
}
td{
	vertical-align:top;
}
tr, th, td {
	padding-right: 1.625em;
}

/* Forms
---------------------------------------- */

form {
	margin: 0;
}

fieldset {
	border: 0;
	padding: 0;
}

textarea {
	overflow: auto;
	vertical-align: top;
}

legend {
	border: 0;
	*margin-left: -7px;
}

button, input, select, textarea {
	vertical-align: baseline;
	*vertical-align: middle;
}

button, input {
	line-height: normal;
	*overflow: visible;
}

button, input[type="button"], input[type="reset"], input[type="submit"] {
	cursor: pointer;
	-webkit-appearance: button;
}

input[type="checkbox"], input[type="radio"] {
	box-sizing: border-box;
}

input[type="search"] {
	-webkit-appearance: textfield;
	-moz-box-sizing: content-box;
	-webkit-box-sizing: content-box;
	box-sizing: content-box;
}

input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

button::-moz-focus-inner, input::-moz-focus-inner {
	border: 0;
	padding: 0;
}


/* Quotes
---------------------------------------- */

blockquote, q {
	quotes: none;
	color:#666;
	font-family: "PT Serif", serif;
}

blockquote:before, q:before{
	content: '\201E';
}
blockquote:after, q:after {
	content: '\201C';
}

blockquote, q, cite {
	font-style:normal;
}

blockquote > p {
	padding: 0;
}

*+html blockquote,
*+html q{
  /* creates before <i>a</i> */
  /* creates after <i>z</i> */
  zoom: expression( this.runtimeStyle.zoom="1", this.insertBefore( document.createElement("span") , this.firstChild ).innerHTML="„", this.appendChild( document.createElement("span") ).innerHTML="“" );
}




/* Lists
---------------------------------------- */

ul, ol {
	list-style-position:outside;
	padding: 0 0 0 1em;
}

li ul, li ol {
	margin: 0 1.625em;
}

dl dd {
	margin-left: 1.625em;
}

/* Links
---------------------------------------- */

a, a:visited {
	text-decoration: none;
	color: #444;
  -webkit-transition: all 0.3s ease-in-out;
     -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
       -o-transition: all 0.3s ease-in-out;
          transition: all 0.3s ease-in-out;
}

a:hover {
	color:#e5111f;
}

a:focus {
	outline: thin dotted;
}

/* Better CSS outline suppression: people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active {
	color:#e5111f;
}

/* Figures
---------------------------------------- */

figure {
	margin: 0;
}

/* Embedded content
---------------------------------------- */

img, object, video {
	max-width: 100%; /* Automatically scales images larger than the container. Consider this first: http://unstoppablerobotninja.com/entry/fluid-images/ */
	/* _width: 100%; /* IE6 doesn't support max-width, so we just use width. If the image is larger than the container, just uncomment this. If it is smaller than the container, uncomment and change the 100% value to an absolute one */
}

img {
	border: 0;
	-ms-interpolation-mode: bicubic; /* Improve IE's resizing of images: css-tricks.com/ie-fix-bicubic-scaling-for-images */
}

/* Corrects overflow displayed oddly in IE9 */
svg:not(:root) {
	overflow: hidden;
}

/* Abbreviations
---------------------------------------- */

abbr[title], dfn[title] {
	border-bottom: 1px dotted;
	cursor: help;
}

/* Marked/inserted/deleted text
---------------------------------------- */

mark {
	background: #ff0;
}

ins {
	text-decoration: none;
	background: #ff9;
}

del {
	text-decoration: line-through;
}

/* Others
---------------------------------------- */

hr {
	display: block;
	height: 1px;
	border: 0;
	border-bottom: 1px solid #ddd;
}

strong, b, dt {
	font-weight: bold;
}

dfn {
	font-style: italic;
}

var, address {
	font-style: normal;
}

/* Position 'sub' and 'sup' without affecting line-height: gist.github.com/413930 */
sub, sup {
	font-size: 0.625em;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

/* Helper classes
---------------------------------------- */

/*
	* Micro clearfix hack, more semantically titled with 'group'
	* Source: nicolasgallagher.com/micro-clearfix-hack/
*/
.group:before, .group:after {
	content: "";
	display: table;
}

.group:after {
	clear: both;
}

.group {
	*zoom: 1;
}

/* Primary styles
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

body > div {
	width:100%;
	min-width:320px;
	max-width:1020px;
	margin:0 auto;
	position:relative;
	overflow:hidden;
	background:#fff;
}

h1 {
	font-weight:normal;
	color:#e5111f;
}

h2 {
	color:#e5111f;
}

h3 {
	color:#000;
}
section {
	position:relative;
}
.nomobile{
	display:none;
}
.logo{
	float:left;
	width:14.375em;
	line-height:0;
}

.menu{
	float:right;
	width:3.75em;
	line-height:0;
}
.logo img, .menu img{
	margin:0;
}
nav ul, navi li{
	list-style:none;
	margin:0;
	padding:0;
}
.image{
	line-height:0;
	border-bottom:0.625em solid #444;
  -webkit-transition: all 0.3s ease-in-out;
     -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
       -o-transition: all 0.3s ease-in-out;
          transition: all 0.3s ease-in-out;
}
.image img{
	margin:0;
}
.image ul{
	visibility:hidden;
	display:none;
	background:#fff;
	position:absolute;
	top:33%;
	right:0;
	padding:1% 3%;
	margin:0;
	width:26%;
	list-style:none;
	border-right:2em solid #fff;
}
.image.links ul{
	left:0;
	right:auto;
}

.image li{
	font-family: "PT Serif", serif;
	list-style:none;
	padding:0;
	margin:0;
	font-size:1.625em;
	line-height:1.313em;
	color:#666;
	white-space:nowrap;
}
.image li:first-child{
	display:block;
}
.hauptnavi{
	position:relative;
}
.hauptnavi.mobile{
	background:#444;
	overflow:hidden;
}
.hauptnavi.mobile ul{
	overflow:hidden;
}
.hauptnavi.mobile .level1{
	margin:.25em 1em;
}
.hauptnavi.mobile .level1 > li{
	border-top:.0625em solid #666;
}
.hauptnavi.mobile .level1 > li:first-child{
	border-top:none;
}
.hauptnavi.mobile a{
	display:block;
	padding:.25em;
	margin:.5em 0;
	text-align:center;
	-webkit-border-radius: .5em;
	-moz-border-radius: .5em;
	border-radius: .5em;
}
.hauptnavi.mobile .level1 a{
	background:#222;
}
.hauptnavi.mobile .level2 a{
	background:#f5f5f5;
}
.hauptnavi.mobile .level2 li:first-child a{
	margin-top:0;
}
.hauptnavi.mobile .level2{
	margin:0 1em;
}

.hauptnavi a {
	font-size: 1.25em; /* 24px */
}
.hauptnavi .level1{
		background:#444;
}
.hauptnavi .level1 a{
	color:#fff;
	background:#444;
}
.hauptnavi .level1 a.selected{
	background:#e5111f; /* rot */
}
.hauptnavi .level1 a:hover, .hauptnavi .level1 a:active {
	color:#e5111f;
}
.hauptnavi .level1 a.selected:hover, .hauptnavi .level1 a.selected:active {
	color:#fff;
}
.hauptnavi .level2 a{
	background:#f5f5f5;
	color:#444;
}
.hauptnavi .level2 a.selected{
	color:#e5111f; /* rot */
	background:#f5f4f5;
}
.hauptnavi .level2 a.selected:hover, .hauptnavi .level2 a.selected:active {
	color:#e5111f; /* rot */
}
article{
	width:auto;
	margin:1em;
	position:relative;
}
header{
	border-bottom:0.0625em solid #e5111f;
	margin-bottom:1em;
}
aside{
	padding-top:0.625em;
}
.footernavi{
	background:#f4f4f4;
	margin-bottom:1em;
}
.footernavi ul{
	text-align:center;
}
.footernavi li {
	display:block;
}
.footernavi a, .footernavi span{
	color:#9c9c9c;
	text-transform:uppercase;
	padding-left:0.625em;
	padding-right:0.625em;
}
.footernavi a:hover {
	color:#e5111f; /* rot */
}

/* taken from https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/ */
.dont-break-out, p > a[target="_blank"][href^="http"] {

	/* These are technically the same, but use both */
	overflow-wrap: break-word;
	word-wrap: break-word;

	-ms-word-break: break-all;
	/* This is the dangerous one in WebKit, as it breaks things wherever */
	word-break: break-all;
	/* Instead use this non-standard one: */
	word-break: break-word;

	/* Adds a hyphen where the word breaks, if supported (No Blink) */
	-ms-hyphens: auto;
	-moz-hyphens: auto;
	-webkit-hyphens: auto;
	hyphens: auto;

}


/* Media queries
---------------------------------------- */

/* The media queries included in here are only placeholder. Modify them as your content requires */

@media only screen and (min-width: 480px) {
	/* Wide mobile (480px+) styles go here */

	p, pre, address, hr, td, code, samp, dl, input, select, textarea, article li {
		font-size: 0.75em;
	}
	blockquote{
		padding-left:2em;
	}
	h1 {
		font-size: 1.125em; /* 16px */
	}
	h2 {
		font-size: 1em; /* 16px */
	}
	h3 {
		font-size: 0.75em; /* 12px */
	}
	.hauptnavi.mobile a{
		font-size: 1em; /* 16px */
		display:inline-block;
		padding-left:.5em;
		padding-right:.5em;
	}
	*+html .hauptnavi.mobile a{display:inline}/* ie7 inline block fix - keep separate from other rules and follow original - not before it*/
	.hauptnavi.mobile .level2{
		margin:0;
	}
	.hauptnavi.mobile .level2 li{
		display:inline-block;
	}
	.hauptnavi.mobile .level2 a{
		margin:.25em .25em .25em 0;
	}
	.hauptnavi.mobile .level2{
		margin-bottom:.375em;
	}
	*+html .hauptnavi.mobile .level2 li{display:inline}/* ie7 inline block fix - keep separate from other rules and follow original - not before it*/
	article{
		margin:2em;
	}
	.footernavi li{
		display:inline-block;
	}
	*+html .footernavi li{display:inline}/* ie7 inline block fix - keep separate from other rules and follow original - not before it*/
	.footernavi li:before {
		content: '|\a0';
		color:#9c9c9c;
		font-size:0.625em;
	}
	.footernavi li:first-child:before {
		content: '';
		content:none;
	}
	.footernavi a, .footernavi span{
		font-size:0.75em; /* 12px */
	}


}

@media only screen and (min-width: 800px) {
	/* Tablets/netbooks (768px+) styles go here */

	.nomobile{
		display:block;
	}
	.image{
		border-bottom-width:0em;
	}
	nav li, nav a {
		display:inline-block;
	}
	p, address{
		position:relative;
	}
	*+html nav li, *+html nav a{display:inline}/* ie7 inline block fix - keep separate from other rules and follow original - not before it*/

	.hauptnavi {
		height:4em;
		background:#f5f5f5 url(../bilder/textur.gif) 0 0;
	}
	.hauptnavi a {
		font-size: 1em; /* 16px */
		line-height:2em;
		padding-left:1em;
		padding-right:1em;
	}
	.hauptnavi .level2 a {
		font-size: .9375em; /* 15px */
		line-height:2em;
		padding-left:.5em;
		padding-right:.5em;
		height:2.25em;
	}
	.hauptnavi ul {
		padding-left:2em;
	}
	.hauptnavi .level2 {
		padding-left:2.5625em;
		display:none;

	}
	.hauptnavi .selected .level2{
		display:block;
		position:absolute;
		left:0;
		top:2em;
		width:100%;
	}
	.hauptnavi .level2 li{
		background:#f5f5f5;
	}
	.hauptnavi .level2 li:before{
		content: '|';
		font-size: 1em; /* 16px */
		color:#e5111f; /* rot */
	}

	.hauptnavi .level2 li:first-child:before{
		content: '';
		content:none;
	}
	*+html .level2 li span{ /* just for IE7 */
		font-size: 1em; /* 16px */
		color:#e5111f; /* rot */
		position:relative;
		top:-2px;
	}
	*+html .level2 li:first-child span{ /* just for IE7 */
		display:none;
	}
	*+html .level2 li{
	  /* creates before <span>|</span> */
	  zoom: expression( this.runtimeStyle.zoom="1", this.insertBefore( document.createElement("span") , this.firstChild ).innerHTML="|" );
	}

	header{
		position:absolute;
		left:-33%;
		top:0;
		width:30%;
		text-align:right;
		border-bottom:none;
	}
	aside{
		position:absolute;
		left:-36%;
		top:0;
		width:30%;
		text-align:right;
		padding-top:0;
	}
	article{
		width:55%;
		margin:2em auto;
		border-left:0.0625em solid #e5111f;
		padding-left:1em;
	}
	.mobile {
		display:none !important;
	}

}

@media only screen and (min-width: 1024px) {
	/* Desktops (1024px+) styles go here */



}

/* Print styles
---------------------------------------- */

/* Print styles inlined to avoid extra HTTP connection */

@media print {
	* {
		background: transparent !important;
		color: black !important; /* Black prints faster: sanbeiji.com/archives/953 */
		text-shadow: none !important;
		filter: none !important;
		-ms-filter: none !important;
	}

	a, a:visited {
		text-decoration: underline;
	}

	a[href]:after {
		content: " (" attr(href) ")";
	}

	abbr[title]:after {
		content: " (" attr(title) ")";
	}

	/* Do not show javascript and internal links */
	a[href^="javascript:"]:after, a[href^="#"]:after {
		content: "";
	}

	/* Printing Tables: css-discuss.incutio.com/wiki/Printing_Tables */
	thead {
		display: table-header-group;
	}

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

	@page {
		margin: 0.5cm;
	}

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

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