@media screen
{

/*Globale Gestaltung
--------------------------------------------------*/

* {
	margin:0;
	padding:0;
	border:0;
}

body {
    font-family: Helvetica, Arial, Geneva, sans-serif;
	font-style: normal;
	font-weight: normal;
	font-size: 1.1em;
	color: #1A334D;
	background-size: cover;
	background-image: linear-gradient(#5C85AD, #fff, #5C85AD);
}

#wrapper {
	margin: 0 auto 0 auto;
	background-color: #336699;
	max-width: 1920px;
	min-height: 100vh;
	display: grid;
	gap: 0;
	grid-template-columns: repeat(5, 2fr) 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";
	z-index: 0;
}

#header-graphic{
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	margin-inline: auto;
	width: 100%;
	max-width: 1920px;
	height: 6em;
	background-color: rgb(255 255 255 / 0.2);
	background-image: url(img/waben.svg);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: 45% top;
	z-index: 1;
}

header {
	grid-area: header;
	display: flex;
	gap: 0.5em;
	z-index: 2;
}

#top-nav {
	grid-area: top-nav;
	padding-top: 2.5em;
	padding-right: 2em;
	text-align: right;
	z-index: 3;
}

#verein {
	grid-area: verein;
	text-align: right;
	z-index: 4;
}

#main-header {
	grid-area: main-header;
	height: 180px;
	text-align: left;
}

main {
	grid-area: main;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

nav {
	grid-area: nav;
	display: flex;
	min-height: 0;
	flex-direction: column;
	padding: 1em;
	background-color: rgb(255 255 255 / 0.4);
	text-align: center;
}

aside {
	grid-area: aside;
	display: table;
	min-height: 0;
	padding: 1em;
	background-color: rgb(255 255 255 / 0.3);
}

footer {
	grid-area: footer;
	margin: 0;
	padding: 0;
	text-align: center;
	background-color: rgb(51 102 153 / 0.8);
}



h1 {
	display: block;
	width: 100%;
	font-size: 170%;
	text-align: left;
	font-weight: bold;
	margin-top: 1em;
	margin-bottom: 0.5em;
}

h2 {
	margin-bottom: 0.3em;
	margin-top: 0.5em;
	text-align: left;
	font-size: 140%;
}

h3 {
	margin-bottom: 0.1em;
	margin-top: 1em;
	text-align: left;
	font-size: 120%;
}

h4 {
	margin-bottom: 0.1em;
	margin-top: 1em;
	text-align: left;
	font-size: 100%;
	font-weight: bold;
}

div h2, div h3, div h4 {
	margin-top: 0;
}

hr {
	width: 80%;
	height: 2px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 1em;
	margin-bottom: 1em;
	background-image: linear-gradient(to left, transparent, #1A334D, transparent);
}

a {
	color: #D96D00;
	font-weight: bolder;
	text-decoration: none;
}

p {
	margin-bottom: 0.5em;
}

p:last-of-type {
	margin-bottom: 0;
}

b {
	font-weight: 900;
}

i {
	font-style: italic;
}

u {
	text-decoration: underline;
}

ul {
	margin: 1em 0 1em 1em;
}

li {
	list-style-position: inside;
}

strong {
	text-decoration: underline;
}

.external-link, .save-link {
	display:inline-block;
	background-repeat: no-repeat;
	background-position: center right;
	padding-right: 1.2em;
	background-size: 0.8em;
}

[aria-current] {
	border-bottom: 2px solid ;
	border-image: linear-gradient(90deg, transparent,  #1A334D, transparent) 2;
	color: #1A334D;
}

/*Inhalte Header, Top-Nav, Verein
--------------------------------------------------*/

#logo-banner {
	flex: 1;
	margin: 0.5em;
	text-align: center;
	opacity: 0.8;
	}
	
#logo-banner img {
	margin-left: 1em;
	height: 100%;
}

#text-banner {
	flex: 3;
	text-align: left;
}

#text-banner img {
	margin-top: 1.5em;
	height: calc(100% - 1.7em);
}
	
#top-nav ul{
	margin: 0;
}

#top-nav li{
	display: inline;
	max-width: 100%;
	list-style-type: none;
}

#top-nav a{
	display: inline-block;
	padding: 0.2em 0.5em 0.2em 0.5em;
	width: auto;
	text-align: center;
	color: #1A334D;
	border-bottom: 2px solid transparent;
}

#top-nav #link-verein {
	display: none;
}

#top-nav img{
	height: 1.5em;
}

#img-logo-verein {
	margin-top: 2%;
	margin-right: 2em;
	max-height: 96%;
}


/*Inhalte Main-Header
--------------------------------------------------*/
#firstline {
	display: inline-block;
	margin-top: 1em;
	margin-bottom: 0em;
	margin-right: 1em;
	padding: 0.1em 0.5em 0.1em 0.5em;
	max-width: 81vw;
	background-color: rgb(255 255 255 / 0.6);
	font-size: clamp(1.3em, 80vw, 2em);
	font-weight: bold;
	white-space: nowrap;
	border-radius: 10px;
}

#secondline {
	display: inline-block;
	margin-right: 3em;
	padding: 0.1em 0.5em 0.1em 0.5em;
	max-width: 100vw;
	background-color: rgb(255 255 255 / 0.6);
	font-size: clamp(1.3em, 3vw, 2em);
	font-weight: bold;
	white-space: nowrap;
	border-radius: 10px;
}

/*Inhalte Main
--------------------------------------------------*/
#at-work {
	margin: 2em;
	padding: 4em 2em 2em 12em;
	width: calc(100% - 18em);
	min-height: 3em;
	background-image: url(img/at_work.svg);
	background-repeat: no-repeat;
    background-size: auto 100%;
	background-position: left top;
	text-align: center;
	border: 2px dashed  #1A334D;
	border-radius: 10px;
}

/*Inhalte Nav
--------------------------------------------------*/

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

.icon-info {
	display: inline-block;
	vertical-align: middle;
	margin-left: 1em;
	margin-right: 1em;
	height: 1em;
}

#top-nav .external-link, nav .external-link{
	background-image: url("img/ext-link2.svg");
}

#top-nav .save-link, nav .save-link{
	background-image: url("img/save-link2.svg");
}

nav a{
	border-bottom: 2px solid transparent;
}

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

.gallery-cell {
	display: table-cell;
	padding: 0;
	vertical-align: top;
	text-align: center;
	border-collapse: collapse;
}


/*Inhalte Footer
--------------------------------------------------*/

footer ul{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1em;
	margin: 0 auto 0 auto;
	padding: 0.5em 0 0.5em 0;
	width: 100%;
	justify-content: center;
}

footer li {
	display: inline-block;
	list-style-type: none;
}

footer li a{
	flex: auto;
	display: block;
	margin-right: 1em;
	margin-left: 1em;
	padding: 0.4em;
	text-align: center;
	font-weight: normal;
	color: #1A334D;
}

/*Hovers
--------------------------------------------------*/

.img-link:hover, .img-link:focus{
	border-bottom: 0px solid transparent;
	border-image: linear-gradient(90deg, transparent, #1A334D, transparent) 2;
}

#top-nav a:hover,
#top-nav a:focus,
nav a:hover,
nav a:focus,
footer a:hover, 
footer a:focus {
	background-color: rgb(255 255 255 / 0.5);
	color: #1A334D;
	border-radius: 10px;
	border-image: linear-gradient(90deg, transparent, #1A334D, transparent) 2;
}

#top-nav a[aria-current]:hover, 
#top-nav a[aria-current]:focus ,
nav a[aria-current]:hover,
nav a[aria-current]:focus,
footer a[aria-current]:hover, 
footer a[aria-current]:focus {
		background-color: transparent;
		border-bottom: 2px solid transparent;
		border-image: linear-gradient(90deg, transparent, #1A334D, transparent) 2;
		cursor: default;
}

/*Spamvorbeugung Mailadresse per css
--------------------------------------------------*/
/*Verein*/
.post-verein::before {
	content:'kontakt';
}
.post-verein::after {
	content:'evsv-gaussig.de';
}
/*Ansprechpartner 1*/
.post-kontakt1::before {
	content:'kotto';
}
.post-kontakt1::after {
	content:'evsz-gaussig.de';
}

/*Schulleitung Gym*/
.post-gym::before {
	content:'schulleitung-gym';
}
.post-gym::after {
	content:'evsz-gaussig.de';
}

/*Sekretariat MS*/
.post-sekms::before {
	content:'sekretariat';
}
.post-sekms::after {
	content:'evsz-gaussig.de';
}

}

/*Anpassung Viewport
--------------------------------------------------*/
@media (max-width: 110em) {

#header-graphic{
	background-position: 50% top;
}

}


@media (max-width: 95em) {

#header-graphic{
	background-position: center top;
}

}

@media (max-width: 85em) {

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

#header-graphic{
	background-position: 65% top;
}

#logo-banner {
	flex: none;
}

#logo-banner img{
	height: 5em;
}

#text-banner {
	flex: none;
}

#text-banner img{
	height: 4em;
}

#verein {
	display: none;
}

#img-logo-verein {
	display: none;
}

#top-nav {
	padding-top: 0.3em;
	padding-right: 0;
	text-align: center;
	background-color: rgb(255 255 255 / 0.4);
}

#top-nav #link-verein {
	display: inline-block;
}

nav {
	flex-direction: row;
	gap: 1em;
}

nav ul {
	margin: 0 1em;
}

.icons-side{
	display: none;
}

}

@media (max-width: 70em) {

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

#header-graphic{
	background-position: 80% top;
}

}

@media (max-width: 55em) {

#header-graphic{
	background-position: 95% top;
}

}

@media (max-width: 45em) {

#logo-banner{
	display: none;
}

#text-banner {
	width: 100%;
	text-align: center;

}

}

@media (max-width: 40em) {

body {
	font-size: 1em;
}

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

#header-graphic{
	background-image: none;
}

#verein {
	display: none;
}

#text-banner img{
	margin-top: 1em;
	height: 4.5em;

}

#top-nav li a{
	padding: 0.2em;
	width: auto;
}

nav {
	flex-direction: column;
}

#at-work {
	padding: 2em 2em 2em 2em;
	width: calc(100% - 8em);
	background-image: none;
}


}

@media (max-width: 30em) {

#main-header {
	text-align: center;
}

#firstline {
	margin-right: 0em;
	font-size: 200%;
	white-space: normal;
}

#secondline{
	margin-right: 0em;
	font-size: 130%;
	white-space: normal;
}

table #table-img{
	display: none;
}

footer li a{
	width: auto;
}

}


