﻿* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--fontcol: #333333;
	--menucol: #116C5B;
	--backcol: #A1E8A1;
	--linecol: #33CC00;
	font-family: Arial, Helvetica, sans-serif;
}

/* Code allgemein und für kleine Bildschirme */
body {
	padding-bottom: 2.5em;
	padding-left: 2%;
	padding-right: 2%;
	color: var(--fontcol);
	background-color: var(--backcol);
	/*background-image: url(../B/Nordisch.png);*/
	overflow: auto;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.header{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: var(--backcol);
	border-bottom: 1px solid var(--linecol);
}

li {list-style: none;}

a {text-decoration: none;}

.navbar {
	height: 4rem;
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 0.5rem 0.5rem;
	background-color: var(--backcol);
}

.nav-menu {
	position: fixed;
	left: -100%;
	top: 5rem;  /* Oberkante eingeblendetes Menue */
	flex-direction: column;
	background-color: #fff;
	width: 100%;
	border-radius: 5px;
	text-align: left;
	transition-duration: 0.4s;
	/*box-shadow:
		0 10px 27px rgba(0, 0, 0, 0.05);*/
}

.nav-menu.active {
	left: 0;
}

.nav-item {margin: 1.2rem 1.5rem;}

.nav-link{
	font-weight: 400;
	color: #475569;
}

.nav-link:hover{
	color: #482ff7;
	font-weight: bold;
}

.nav-aktuell {
	color:#0000FF;
	font-weight: bold;
	margin: 1.2rem 1.5rem;
	}

.hamburger {
	display: block;
	cursor: pointer;
}

.hamburger.active .bar:nth-child(2) {
	opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
	-webkit-transform: translateY(8px) rotate(45deg);
	transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
	-webkit-transform: translateY(-8px) rotate(-45deg);
	transform: translateY(-8px) rotate(-45deg);
}

.bar {
	display: block;
	width: 25px;
	height: 3px;
	margin: 5px auto;
	-webkit-transition: all 0.1s linear;
	transition: all 0.1s linear;
	background-color: #101010;
}

.kopfzeile {
	margin: 0 auto;
	text-align: center;
	font-size: 1.1rem;
	font-weight: bold;
	color: var(--fontcol);
	-webkit-hyphens: none;
	hyphens: none;
}

h1 {
	font-size: 1.4em;
	padding: 0.5em 0;
	text-align: center;
	-webkit-hyphens: none;
	hyphens: none;
}

h2 {									/* nur Impressum */
	font-size: 1.2em;
	font-weight: normal;
	padding: 1em 0 0.7em 0;
	-webkit-hyphens: none;
	hyphens: none;
}

h3 {
	padding: 0.2em 0;
}

.content {
	margin-top: 3.2rem;
}

.impressum {
	margin-top: 3.2rem;
	font-size: 0.9rem;
}

/* neue Bilddarstellung https://werner-zenk.de/javascript/bilder_bei_klick_in_originalgroesse_oeffnen.php */
img[data-modal] {
/*	border: solid 3px steelblue;*/
	cursor: zoom-in;
	transition: 0.8s;
	width: 150px;
	&:hover {
		filter: brightness(112%);
	}
}

.modal-content {
	align-items: center;
	background: rgba(0, 0, 0, 0.8);
	cursor: zoom-out;
	display: flex;
	height: 100vh;
	justify-content: center;
	left: 0;
	opacity: 0;
	position: fixed;
	top: 0;
	transition: all 1.8s;
	width: 100vw;
	z-index: -100;
}

.modal-content img {
	min-width: 50vw;
	height: auto;
}

.grid-container {
	margin-top: 3.2rem;
  align-items: start;
  display: grid;
  grid-gap: 3px 3px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  justify-items: center;
}
/* neue Bilddarstellung */

/* Swiper */
.swip-cont{
	margin: 3.2rem auto 0 auto;
	width: 90%;
}

.spalten1 {									/* Beschreibung */
	-moz-column-count:1;
	-webkit-column-count: 1;
	column-count: 1;
	padding-bottom: 0.5em;
}

.spalten2 {									/* Umgebung */
	display: grid;
	grid-template-columns: 65% 33%;
	gap: 2%;
	padding-bottom: 0.5em;
}

footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 0.7rem 1rem 0.5rem 0;
	background-color: var(--backcol);
	font-size: 0.8rem;
	text-align: right;
	-webkit-hyphens: none;
	hyphens: none;
}

footer a {
	text-decoration: none;
	color: var(--fontcol);
}

.error {
	position: absolute; top: 95px; left:10%; right: 10%;
	padding:15%;
	font-size: 120%; font-weight: bold; color: #FF0000;
	line-height: 2em;
}

.error a {text-decoration: underline; color: #FF0000;}

iframe.aspect {
	width: 300px;
	aspect-ratio: 4/3;
}


@media only screen and (min-width: 45em) {
/* Optimierter Code für etwas größere Bildschirme wie Tablets */

	html {
		max-width: 60rem;
		margin: 0 auto;
		font-size: 115%;
		align-items: center;
		justify-content: center;
	}

	body {
		max-width: 60rem;
 		padding-left: 4%;
 		padding-right: 4%;
	}

	header {
		max-width: 60rem;
		margin: 0 auto;
 		padding: 0 4%;
	}

	.nav-menu {
		position: absolute;
		left: 0;
		top: 4.1rem;  /* Oberkante Menue */
		max-width: 60rem;
		margin: 0 auto;
 		padding: 0 4%;
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		align-items: center;
		background-color: var(--backcol);
		border-bottom: 1px solid var(--linecol);
	}

	.nav-menu li {
		padding-right: 0.8rem;
		border-right: 2px solid #888888;
	}

	.nav-menu li:last-child {
		padding-right: 0;
		border-right: none;
	}

	.nav-item {margin: 0.15rem 0 0.15rem 0.3rem;}

	.nav-aktuell {
		color:#0000FF;
		font-weight: bold;
		margin: 0.15rem 0 0.15rem 0.3rem;
		}

	.hamburger {display: none;}

	.kopfzeile {
		font-size: 1.5em;
	}

	h1 {
		font-size: 1.6em;
		padding: 0.8rem 0;
	}

	.content {
		margin-top: 5.5rem;
	}
	.grid-container {
		margin-top: 5.5rem;
	}
	.swip-cont {
		margin: 5.6rem  auto 0 auto;
	}

	.impressum {
		font-size: 1rem;
		margin-top: 5.5rem;
}

	.spalten1 {
		-moz-column-count:2;
		-webkit-column-count: 2;
		column-count: 2;
		padding-bottom: 0.8em;
	}

	.bild:hover {
		transform: scale(190%);
	}

	footer {
		max-width: 60rem;
		margin: 0 auto;
 		padding: 0.8rem 2rem;
	}

	iframe.aspect {
		width: 600px;
		aspect-ratio: 4/3;
	}

}

@media only screen and (min-width: 52em){

	.spalten1 {
		-moz-column-count:3;
		-webkit-column-count: 3;
		column-count: 3;
		padding-bottom: 0.8em;
	}

}
