:root {
	--weiss:        #FFFFFF;
	--schwarz: 	    #3f3f3f;
	--grau:         #c7c5bf;
	--dunkelblau:	#003399;
	--blassblau:    #DEF9D1;
	--gruen:        #1D8C21;
	--blassgruen:   #DEF9D1;
	--tuerkis:      #00808E;
	--dunkelrot:    #9B2A20;
	--ocker:        #BF7105;
}

html { 
	height: 100%; 
}

body {
  	background-color: var(--weiss);
	color: var(--schwarz);
  	display: grid;
	min-height: 100%;
	margin: 0;
	padding: 0;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15px;
	line-height: 135%;
	grid-template-rows: auto 1fr auto;
	grid-template-areas: 
	"header" 
	"main"
	"logs"
	"footer";
}

header {
	grid-area: header;
}

#main {
	grid-area: main;
}

footer {
	grid-area: footer;
}

input[type='checkbox'] {
	zoom: 1.5;
}

span[class^='spacer'] {
	display: inline-block;
	overflow: hidden;
	max-height: 20px;
	box-sizing: border-box;
	padding-left: 5px;
}

span.spacer10 {
	width: 10px;
}

span.spacer20 {
	width: 20px;
}

span.spacer30 {
	width: 30px;
}

span.spacer40 {
	width: 40px;
}

span.spacer50 {
	width: 50px;
}

#totop {
	display: none;
}

header {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 50px;
	padding-bottom: 20px;
	position: relative;
	margin: 0 auto;
	background-color: var(--blassgruen);
}

header #topnavi {
	width: 100%;
	padding: 2px 0;
	background-color: var(--schwarz);
	color: var(--weiss);
	text-align: center;
}

header #topnavi a,
header #topnavi a:visited {
	color: var(--weiss);
}

header #logo {
	width: 70%;
	max-width: 500px;
	position: absolute;
	margin-top: 50px;
	margin-left: 30px;
	cursor: pointer;
	z-index: 10;
}

#mobile_menu {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 80px;
	height: 80px;
	background-image: url("/img/menu.png");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 100;
}

nav {
	position: absolute;
	width: 80%;
	height: auto;
	text-align: left;
	padding: 0 0 0 20px;
	z-index: 1000;
	left: 0;
	top: 0;
	display: none;
	z-index: 100;
}

nav ul {
	position: relative;
	margin: 0;
	padding: 0;
}

nav ul li {
	width: 250px;
	margin: 0;
	padding: 5px;
	background-color: var(--dunkelblau);
	color: var(--weiss);
	cursor: pointer;
	border-top: solid 2px var(--weiss);
	list-style: none;
}

nav ul li a,
nav ul li a:visited {
	color: var(--weiss);
	display: block;
	padding: 10px;
	width: 100%;
}

#main article figure {
	min-width: 100%;
	margin: 10px 0;
}

@media only screen and (min-width: 700px) {

	header {
		min-height: 50px;
	}

	#mobile_menu {
		display: none;
	}

	nav {
		display: table-cell;
		width: auto;
		right: 0;
		left: auto;
	}

	nav ul {
		display: inline-block;
	}

	nav ul li {
		background: none;
		margin: 0;
		color: var(--schwarz);
		float: left;
		padding: 0;
		width: auto;
		float: left;
		list-style: none;
		margin-left: 2px;
		border: none;
	}

	nav ul li:first-child {
		margin-left: 0;
	}

	nav li:hover {
		color: var(--dunkelblau);
		text-decoration: underline;
	}

	nav ul li a,
	nav ul li a:visited {
		color: var(--dunkelblau);
		padding: 5px 10px;
	}

	#main article figure.bildrechts {
		float: right;
		padding: 10px 0 10px 20px;
	}

	#main article figure.bildlinks {
		float: left;
		padding: 10px 20px 10px 0;
	}

	#main article figure.bildzentriert {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}

}

h1, h2, h3, h4, p {
	width: 100%;
	height: auto;
}

table {
	border: none;
	border-collapse: collapse;
	border-color: transparent;
}

table tr td:first-child {
	padding-right: 10px;
}

small {
	font-size: 70%;
}

.btn {
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	width: 25px;
	height: 25px;
	cursor: pointer;
}

th {
	text-align: left;
}

label {
	display: block;
	width: 100%;
	position: relative;
}

textarea {
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 16px;
	line-height: 160%;	
	color: var(--schwarz);
}

#HyphenatorToggleBox {
	display: none;
}

#cookiezustimmung {
	position: fixed;
	box-sizing: border-box;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 30px;
	margin: 0;
	background-color: rgba(0, 0, 0, 0.8);
	text-align: center;
	color: #FFF;
	z-index: 4000;
	transition: all 0.5s ease-in-out;
}

#cookiezustimmung.show {
	bottom: 0;
	right: 0;
}

#cookiezustimmung p {
	color: #FFF;
}

#allowcookies {
	border: none;
	border-radius: 10px;
	color: #000;
	background-color: var(--gruen);
	padding: 10px 40px;
	transition: all 0.3s ease-in-out;
}

#allowcookies:hover {
	cursor: pointer;
	background-color: var(--gruen);
	background-image: url("/img/checked.png");
	background-size: auto 80%;
	background-position: 95% center;
	background-repeat: no-repeat;
}

.clearfix {
	clear:both;
	width: 100%;
	height: 0;
	overflow: hidden;
	position: relative;
	padding: 0;
	margin: 0;
}

p {
	color: var(--schwarz);
	margin: 0 0 5px 0;
	padding: 0;
}

a {
	color:var(--dunkelblau);
	font-weight: bold;
	text-decoration: none;
}

a:hover {
	color:var(--schwarz);
	text-decoration: underline;
}

h1 {
	font-size: 180%;
	color: var(--gruen);
	margin: 10px 0 20px 0;
	line-height: 100%; 
	font-weight: 400;
}

h2 {
	font-size: 140%;
	color: var(--tuerkis);
	margin: 10px 0 0 0;
	padding: 0;
	font-weight: 600;
	font-size: 110%;
}

h3 {
	font-size: 120%;
	margin: 10px 0;
	font-weight: 300;
	line-height: 130%;
}

#main {
	box-sizing: border-box;
	width: 100%;
	position: relative;
	display: block;
	margin: 0 auto;
	padding: 30px 20px 20px 20px;
}

#main article {
	box-sizing: border-box;
}

#main article figure {
	min-width: 0;
	margin: auto;
}

#main article p {
	margin-bottom: 10px;
}

footer {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	background-color: var(--blassgruen);
	color: var(--dunkelblau);
	margin: 0;
	padding: 20px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 20px;
	z-index: 1001;
	position: relative;
}

footer article {
	min-width: 300px;
}

footer h2 {
	color: var(--dunkelblau);
	margin-top: 0;
}

footer h3 {
	margin-top: 0;
}

footer p {
	color: var(--dunkelblau);
	margin: 5px 0 0 0;
	line-height: 110%;
}

footer a,
footer a:visited {
	color: var(--dunkelblau);
	font-size: 90%;
}

footer a:hover {
	color: var(--gruen);
	text-decoration: underline;
}

footer article {
	flex: 1;
	padding: 0;
}

footer article p {
	text-align: left;
}

#logoideenquelle {
	position: absolute;
	right: 10px;
	bottom: 20px;
	width: 100px;
}

.error {
	color: red;
}

@media only screen and (min-width: 1200px) {

	#totop {
		display: block;
		opacity: 0;
		position: fixed;
		bottom: 150px;
		right: calc(50% - 590px);
		width: 0px;
		height: 40px;
		border-bottom: solid 40px var(--gruen);
		border-left: solid 30px transparent;
		border-right: solid 30px transparent;
		cursor: pointer;
		z-index: 2000;
		transition: all 0.3s ease-in-out;
	}
	
	#totop.show {
		opacity: 1;
	}

	nav {
		right: calc(50% - 600px);
	}

	#main {
		max-width: 1200px;
		margin-left: calc(50% - 600px);
		margin-right: calc(50% - 600px);
	}

	header,
	footer {
		padding-left: calc(50% - 600px);
		padding-right: calc(50% - 600px);
	}

	#logoideenquelle {
		right: calc(50% - 600px);
	}

}