/*=============================================== GLOBAL DEFINITION ===============================================*/

html {
	box-sizing: border-box;
	background: #d5d5d5;
}

*, ::before, ::after {
	box-sizing: inherit;
}

body {
	max-width: 80em;
	margin: 0 auto;
	padding: 0;
	background: #fff;
	color: #333;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: normal;
	font-size: 1.0em;
}

/*==================================================== HEADER ====================================================*/

header {
	position: relative;
	height: 200px;
	margin: 1em 0 0 3em;
	background: #898989 url("../img/head6.jpg") no-repeat right;
	background-size: auto;
	padding: 0 0 0.5em;
}

header a h1,
header a p { /*Die Angaben fuer h1 muessen mit einem genauen Selektor ueberschrieben werden.*/
	color: white;
	border-left: 0;
	padding: 0;
	display: table; /*Ueberschriften und Absaetze sind sonst immer 100% breit, durch display:table und display: inline-block; fuer das Elternelement a.ribbon wird das Banner nur so breit wie noetig.*/
}

.ribbon {
	display: inline-block;
	position: relative;
	margin: 1.5em 0 2em -1.5em;
	padding: 0.5em 1em;
	background: #4e7a92;
	box-shadow: 0px 1px 3px rgba(0,0,0,1.8);
}

.ribbon::before {
	display: block;
	width: 1.5em;
	height: 0;
	position: absolute;
	bottom: -1.5em;
	left: 0em;
	content: "";
	border-bottom: 1.5em solid transparent;
	border-right: 1.5em solid rgb(0, 80, 116);
}

/*==================================================== MAIN ====================================================*/

main {
	padding: 0.8em;
	padding-top: 2em;
	padding-bottom: 0em;
	background: #fff;
	display: grid;
	grid-template-columns: 16em 1fr;
	grid-gap: 2em;
}

.center {
	text-align: center;
}

h1,
h2 {
	clear: both;
	padding-left: 1em;
	color: #666;
	text-transform: none;
	border-left:5px solid #4e68AD;
}

h2 span {
	clear: both;
	font-size: 0.7em;
	color: #818181;
	text-transform: none;
}

h3 {
	clear: both;
	font-size: 1.2em;
	padding: 0px;
	margin-bottom: 10px;
	color: #4E68AD;
}

p {
	clear: both;
	text-align: left;
	line-height: 1.6em;
}

a {
	color: #4e7a92;
	outline: none;
	text-decoration: none;
}

a:hover, /*Durch Maus oder Tastatur angewaehlte Verweise werden sichtbar gemacht*/
a:focus {
	color: white;
	text-decoration: none;
	background-color: #4e7a92;
}

a.weatherscreen span {
	display: none;
}

a.weatherscreen:hover span {
	display: block;
	position: absolute;
	top: 15em;
	left: 2em;
}

img.right {
	float: right;
	margin-left: 10px;
	margin-bottom: 15px;
	transition: transform 0.2s;
}

img.right:hover {
	transform: scale(3.0, 3.0);
}

img.left {
	float: left;
	margin-right: 10px;
	margin-bottom: 15px;
	transition: transform 0.2s;
}

img.left:hover {
	transform: scale(3.0, 3.0);
}

/*==================================================== Navigation ====================================================*/

nav ul {
	list-style-type: none;
}

nav ul li a {
	display: block;
	border-bottom: 1px solid #4e7a92;
	line-height: 1.1em;
	padding: 0.8em 30px;
	text-decoration: none;
}

nav ul li a:before {
	content: " ";
	display: inline-block;
	width: 1em;
	height: 1em;
	border-left: 5px solid #4e7a92;
}

nav a.selected {
	background: #aaa;
}

nav a.extern {
	font-size: 0.9em;
	line-height: 0;
	padding: 0.3em 10px;
}

nav a.extern:before {
	border-left: none;
}

nav a.extern2 {
	font-size: 0.9em;
	line-height: 0;
	padding: 0.3em 10px;
	color: #FF6347;
}

nav a.extern2:before {
	border-left: none;
}

/*==================================================== Footer ====================================================*/

footer {
	display: grid;
	grid-template-columns: 5em 1fr;
}

footer ul li {
	list-style-type: none;
	display: inline;
	padding: 0 0.5em;
}

footer ul img {
	width: 1.5em;
}

footer ul a:hover,
footer ul a:focus,
footer ul a:active {
	background: white;
}

footer p {
	text-align: right;
	padding-right: 1.5em;
	font-size: 0.8em;
}

/*======================================= Mobile Version fuer schmale Bildschirme =======================================*/
/*Ueberschreiben bzw. Neudefinition der relevanten Parameter*/

@media (max-width: 50em) {
	main {
		grid-template-columns: 1fr;
	}

	nav ul li a {
		display: table;
		min-width: 16em;
		padding: 0.3em 30px;
	}

	nav a.extern {
		display: table;
		min-width: 17.8em;
	}

	nav a.extern2 {
		display: table;
		min-width: 17.8em;
	}
}
