@media screen
{

/*Vorher einzubindende Dateien:
	- default_global.css */ 

/*Globale Gestaltung (Überschreibende Inhalte von default-global.css)
--------------------------------------------------*/
#wrapper {
	background-image: url(../img/schule_n2.jpg);
    background-size: 100%;
    background-repeat: no-repeat;
	background-position: 0 6em;
	grid-template-columns:  repeat(4, 2fr) 3fr 1fr;
	grid-template-rows: 6em 180px auto 3em;
	grid-template-areas:  
		"header header header top-nav top-nav verein"
		"main-header main-header main-header main-header nav aside"
		"main main main main nav aside"
		"footer footer footer footer footer footer";
}

#main-header {
	background-image: none;
	text-align: right;
	overflow: visible;
}

main {
	position: relative;
	background-color: rgb(255 255 255 / 0);
	/*background-image: url(../img/waben_vertikal.svg);*/
	height: auto;
}

nav {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	min-height: 0;
	background-color: rgb(51 102 153 / 0.4);
	gap: 1em;
}

aside {
	background-color: rgb(51 102 153 / 0.7);
}

/*Inhalte Header, Top-Nav, Verein (Überschreibende Inhalte von default-global.css)
--------------------------------------------------*/


/*Inhalte Nav (neu)
--------------------------------------------------*/

p[title="Keine Termine"] {
	margin-top: 1em;
	margin-bottom: 2em;
	text-align: center;
}

#losungen, #news {
	display: block;
	width: calc(100% - 1em);
	margin-left: auto;
	margin-right: auto;
	padding: 0.5em;
	text-align: left;
	background-color: rgb(255 255 255 / 0.7);
	border-radius: 10px;
}

/*Inhalte Main-Header (neu)
--------------------------------------------------*/
#bookmark01{
	visibility: hidden;
	font-size: 0;
	margin:0;
	padding:0;
}

/*Inhalte Main (neu)
--------------------------------------------------*/

.hiddentext {
	display: block;
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

.waben-vertikal {
	display: block;
	height: 33em;
	min-height: 400px;
	max-height: 700px;
}

.waben-hochizontal, .waben-hochizontal2{
	display: none;
}

.waben-hochizontal2{
	width: calc(100vw - 1em);
	max-height: 15em;
}


/*Inhalte Nav (Überschreibende Inhalte von default-global.css)
--------------------------------------------------*/
#news {
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	padding-bottom: 4em;
}

#news iframe {
	display: block;
	width: 100%;
	height: 100%;
}


/*Inhalte Aside (Überschreibende Inhalte von default-global.css)
--------------------------------------------------*/


/*Inhalte Aside
--------------------------------------------------*/

.icon-gallery {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1em;
	opacity: 1;
}


	/*Slider
	 ---------------------*/
	
	#gallery-container {
		display: flex;
		margin-left: auto;
		margin-right: auto;
		flex-direction: row;
		flex-wrap: wrap;
		position: relative; 
		max-height: 74vh;
		overflow: hidden;
		width: 110px;
	}

	#gal-control{
		display: flex;
		position: absolute;
		padding-left: 15px;
		padding-right: 15px;
		bottom: 1em;
		left: 0;
		z-index: 20;
		opacity: 0.7;
	}
	
	#gal-control:hover, #gal-control:focus {
		opacity: 1;
	}

	#stopp, #go {
		flex: auto;
		width: 90%;
	}

	#stopp-control, #go-control {
		display: none;
	}
	
	#stopp:hover, #go:hover, #stopp:focus, #go:focus {
		cursor: pointer;
	}

	.img-gallery {
	flex-grow: 0;
	margin-bottom: 5px;
	animation: 30s verticalplay infinite ease-in-out;
	animation-direction: alternate;
	animation-delay: 0s;
	}

	#stopp-control:checked ~ .img-gallery{
	animation-play-state: paused;
	will-change: transform;
	}

	@keyframes verticalplay {
	0% {
		transform: translateY(0px);
	}
	10% {
		transform: translateY(0px);
	}
	20% {
		transform: translateY(-120px);
	}
	30% {
		transform: translateY(-120px);
	}
	40% {
		transform: translateY(-240px);
	}
	50% {
		transform: translateY(-240px);
	}
	60% {
		transform: translateY(-360px);
	}
	70% {
		transform: translateY(-360px);
	}
	80% {
		transform: translateY(-480px);
	}
	90% {
		transform: translateY(-480px);
	}
	100% {
	transform: translateY(-600px);
	}
	}

	
	/*Ende Slider*/
	
}

/*Anpassung Viewport (neu)
--------------------------------------------------*/

@media (max-width: 110em) {
header {
	background-position: clamp(5em, 35vw, 700px) top;
}

}

@media (max-width: 96em) {
header {
	background-image: none;
}

}

/*Anpassung Viewport (Überschreibende Inhalte von default-global.css)
--------------------------------------------------*/
@media (max-width: 85em) {

#wrapper {
	height: auto;
	max-height: none;
	min-height: 100vh;
	grid-template-columns: auto;
	grid-template-rows: 6em 3em 180px auto auto auto 3em;
	grid-template-areas:  
		"header"
		"top-nav"
		"main-header"
		"main"
		"nav"
		"aside"
		"footer";
}

#verein {
	padding-left: 1em;
	background-image: none;
}

main {
	background-image: none;
}

nav {
	display: flex;
	align-items: stretch;
}

#losungen {
	min-height: 50vh;
}

#news {
	min-height: 50vh;
	padding-bottom: 0.5em;
}

#news iframe {
	height: calc(100% - 3.5em);
}

	/*------------neu------------*/
		#img-logo-verein {
		display: none;
		}

		main{
			margin-top: 15vw;
		}
		
		.waben-vertikal{
			display: none;
		}

		.waben-hochizontal{
			display: block;
		}

		.textarea {
			margin: 0 1em 0 1em;
			display: block;
			border-radius: 0;
		}


			/*Slider------------*/
			
		#gallery-container {
			height: 110px;
			width: calc(100% - 10px);
			flex-direction: column;
			flex-wrap: wrap;
			overflow: hidden;
		}
	
		#gal-control{
			bottom: 30px;
		}
	
		.img-gallery {
			animation: 30s horizontalplay infinite ease-in-out;
			animation-direction: alternate;
			animation-delay: 0s;
			margin-right: 5px;
		}
			
			@keyframes horizontalplay {
	0% {
		transform: translateX(0px);
	}
	10% {
		transform: translateX(0px);
	}
	20% {
		transform: translateX(-120px);
	}
	30% {
		transform: translateX(-120px);
	}
	40% {
		transform: translateX(-240px);
	}
	50% {
		transform: translateX(-240px);
	}
	60% {
		transform: translateX(-360px);
	}
	70% {
		transform: translateX(-360px);
	}
	80% {
		transform: translateX(-480px);
	}
	90% {
		transform: translateX(-480px);
	}
	100% {
	transform: translateX(-600px);
	}
	}
	
}

@media (max-width: 70em) {

#wrapper {
	grid-template-rows: 6em 3em 180px auto auto auto auto;
}

}
			

		@media (max-width: 60em) {

		main{
			margin-top: 8vw;
		}
		
		}
		/*------------Ende neu------------*/

@media (max-width: 40em) {

#wrapper {
	grid-template-columns: 1fr;
	grid-template-rows: 6em 3em 180px auto auto auto auto;
	grid-template-areas:  
		"header"
		"top-nav"
		"main-header"
		"main"
		"nav"
		"aside"
		"footer";
}

header {
	background-image: none;
}

#losungen {
	min-height: 0;
}

	/*------------neu------------*/

		main{
			margin-top: -2em;
		}

		.waben-hochizontal{
			display: none;
		}

		.waben-hochizontal2 {
			display: block;
		}
	/*------------Ende neu------------*/
}

@media (max-width: 30em) {

	/*------------neu------------*/

		main{
			margin-top: -4em;
		}
	/*------------Ende neu------------*/
}

