﻿* {
	box-sizing: border-box;
}

body {
	font-family: OpenSans;
	padding: 0;
	margin: 0;
	min-width: 300px;
}

header {
	color: rgb(23,144,68);
	display: grid;
}

	header a {
		color: inherit;
		text-decoration: none;
	}

	header p {
		margin: auto 0px;
		padding: 10px;
	}

		header p.header-left {
			font-size: 44px;
		}

		header p.header-right {
			padding-top: 0px;
		}


.separator {
	border-bottom: 1px solid black;
	box-shadow: 0px 1px 3px #000;
	margin-bottom: 10px;
}

nav {
	background-color: #555;
	color: white;
	padding: 0;
	box-shadow: 0px 1px 3px #555;
}

	nav a {
		display: inline-block;
		color: white;
		padding: 10px;
		text-decoration: none;
	}

		nav a:nth-child(n+2) {
			border-left: 1px solid #888;
		}

		nav a.active, nav a:hover {
			background-color: rgb(23,144,68)
		}

		nav a:hover {
			background-color: rgba(23,144,68, 0.5);
		}

main {
	padding: 10px;
	margin-bottom: 100px;
}

	main a {
		color: rgb(23,144,68);
	}

div.img-decor {
	position: relative;
	padding: 0;
}

div.img-decor-bottom {
	position: absolute;
	background-color: rgba(255,255,255, 0.5);
	bottom: 0;
	left: 0;
}

div.img-decor-gallery {
	position: absolute;
	background-color: rgba(0,0,0, 0.5);
	bottom: 4px;
	left: 0;
	right: 0;
	height: 30px;
	color: white;
	padding: 4px;
}

div.img-decor-banner {
	position: absolute;
	background-color: rgba(255,255,255, 0.5);
	bottom: 0;
	left: 0;
	right: 0;
	height: 35px;
	padding: 5px;
}

span.initial {
	background-color: rgb(23,144,68);
	color: white;
	width: 1.25em;
	display: inline-block;
	text-align: center;
}

.col-2, .col-2-xl, .col-2-img {
	display: grid;
}


img {
	max-width: 100%;
	height:auto;
}

#frontpage article {
	min-height: 160px;
}

@media (max-width:899px) {
	/* Handy / Tablet. Alles untereinander */
	div.in-text {
		width: 100%;
	}

		div.in-text img {
			width: 100%;
		}

	div.img-decor-bottom {
		right: 0;
		height: 30px;
	}

	nav {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}

		nav a {
			border-bottom: 1px solid #888;
		}

	footer nav {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}

	section h3 {
		position: initial;
		margin-bottom:-20px;
		margin-top:0;
	}
}

@media (min-width:900px) {
	/* größeres Tablet oder kleiner PC. Fast alles nebeneinander */
	header {
		grid-template-columns: 1fr 1fr;
	}

		header p.header-right {
			text-align: center;
			padding-top: 10px;
		}

	.col-2 {
		grid-template-columns: 1fr 1fr;
		grid-column-gap: 20px;
	}

	.col-2-img {
		grid-template-columns: fit-content(1000px) fit-content(800px);
		grid-column-gap: 20px;
	}

		.col-2-img h2 {
			grid-column-start: 1;
			grid-column-end: 3;
		}

	main {
		padding: 10px 20px;
		min-height: 500px;
		text-align: justify;
	}

	.in-text {
		float: right;
		margin-left: 20px;
		margin-bottom: 20px;
		min-width: 400px;
		max-width: 40%;
	}

		.in-text img {
			max-width: 100%;
		}

	div.img-decor-bottom {
		top: 0;
		width: 20px;
	}

	p, ul, article, h2 {
		max-width: 1000px;
	}

	section h3 {
		position: absolute;
		bottom: 0px;
		left: 0px;
		right: 0px;
		margin-bottom: 0px;
	}
}


@media (min-width:1200px) {
	/* Großer PC-Bildschirm. Startseite dreispaltig */
	#frontpage {
		display: grid;
		grid-template-columns: 2fr 1fr;
		grid-column-gap: 20px;
	}

	.col-2-xl {
		grid-template-columns: 1fr 1fr;
		grid-column-gap: 20px;
	}
}


section {
	position: relative;
	background-color: #F8F8F8;
	box-shadow: 3px 3px 3px #AAA;
	padding: 0;
	grid-template-columns: min-content auto;
	margin-bottom: 10px;
	padding-bottom: 20px;
}

	section h2 {
		margin-top: 10px;
	}

	section h3 {
		padding: 10px;
		background-color: rgb(23,144,68);
		color: white;
		
		font-size: 1em;
	}
	section h3 a {
		color:white;
	}
	section li {
		text-align:left;
	}

	section img.portrait {
		float:right;
		margin-left:10px;
		margin-bottom:10px;
	}


article {
	background-color: #F8F8F8;
	box-shadow: 3px 3px 3px #AAA;
	margin-bottom: 25px;
	padding: 10px;
}

	article h3 {
		background-color: rgb(23,144,68);
		color: white;
		margin-top: -10px;
		margin-left: -10px;
		margin-right: -10px;
		padding: 10px;
	}

		article h3:nth-child(n+2) {
			margin-top: 20px;
		}



footer {
	clear: both;
	background-color: #555;
	color: white;
	width: 100%;
}

@media (prefers-color-scheme: dark) {
	body {
		background-color: black;
		color: white;
	}

	article, section {
		background-color: #444;
		box-shadow: 3px 3px 3px #444;
	}

	div.img-decor-bottom, div.img-decor-banner {
		background-color: rgba(0,0,0, 0.5);
	}
}
