@media screen
{

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

/*Allgemeines Layout
--------------------------------------------------*/

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

#main-header[title="Portalbild Schule"] { 
	background-image: url(img/panorama.jpg);
	background-size: cover;
	background-position: left top;
}

#main-header[title="Portalbild Schueler"] { 
	background-image: url(img/gemeinschaft-textur.jpg);
	background-size: cover;
	background-position: left top;
}

main {
	background-image: url(img/schweif.svg);
    background-repeat: no-repeat;
    background-size: cover;
	background-position: center top;
	background-color: rgb(255 255 255 / 0.5);
}

nav {
	background-color: rgb(255 255 255 / 0.4);
}

aside {
	background-color: rgb(255 255 255 / 0.3);
}

footer {
	background-color: rgb(255 255 255 / 0.1);
}

table {
	width: 100%;
	border-collapse: collapse;
}

tr:nth-of-type(odd) {
	background-color: rgb(186 200 214 / 0.8);
}

tr:nth-of-type(even) {
	background-color: rgb(255 255 255 / 0.8);
}

th {
	padding: 0.3em;
	color: #fff;
	background-color: #1A334D;
}

td {
	padding: 0.3em;
}

blockquote {
	display: block;
	min-height: 3em;
	text-align: left;
	background-size: 2.5em;
	background-position: 0.2em 0.2em;
	background-repeat: no-repeat;
	background-image: url("img/icon_bubble_q1.svg");
	background-color: rgb(255 255 255 / 0.8);
	font-style: italic;
	border: 2px solid #1A334D;
	border-radius: 10px;
}

blockquote p {
	margin: 1em;
}

blockquote p:last-of-type {
	margin-bottom: 1em;
}

blockquote[title="Zitat Q1"]{
	border: 2px solid transparent;
}

blockquote[title="Zitat Q2"]{
	min-height: 3em;
	background-position: 0.2em 0.2em;
	background-size: 2.5em;
	background-repeat: no-repeat;
	background-image: url("img/icon_bubble_q2.svg");
	background-color: rgb(186 200 214 / 0.8);
	font-weight: bold;
	border: 2px solid transparent;
}

iframe {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-height: 48vh;
	border: 2px solid  #1A334D;
	border-radius: 10px;
}

/*Inhalte Main-Header
--------------------------------------------------*/

#firstline {
	margin-right: 0;
}


/*Inhalte Main
--------------------------------------------------*/
.textarea {
	display: block;
	height: 100%;
	margin: 1em;
	padding: 1em;
	font-size: 100%;
	text-align: justify;
	background-color: rgb(255 255 255 / 0.7);
	border-radius: 10px;
}

.div-center{
	text-align: center;
}

.textarea .external-link {
	background-image: url("img/ext-link2.svg");
}

.textarea .save-link{
	background-image: url("img/save-link2.svg");
}

.textarea img {
	margin: 1em 1em 0.5em 1em;
	opacity: 0.75;
	border-radius: 10px;
	width: clamp(6em, 12em, 18vw);
}

.textarea figure img {
	display: block;
	margin: 1em 0.5em;
}

.textarea .img-maximum {
	margin: 1em;
	width: 80vw;
	max-width: 450px;
}

section {
	display: flex;
	flex-direction: column;
	margin-bottom: 1em;
}

section > .meaning-section{
	flex: 1;
}

.meaning-section {
	display: block;
	margin-left: 1em;
	margin-right: 1em;
	padding: 0.5em 1em 0.5em 1em;
	background-color: rgb(255 255 255 / 0.6);
	border: solid 2px #1A334D;
	border-radius: 10px;
	hyphens: auto;
}

.meaning-section img {
	display: inline-block;
	width: auto;
	padding: 0;
	margin: 0 0.5em 0 0;
	border-radius: 0;
}

.main-gallery {
	display: flex;
	margin: 1em auto;
	flex-direction: row;
	max-width: 90vw;
	overflow-y: hidden;
	background-color: rgb(255 255 255 / 0.8);
	scroll-snap-type: x mandatory;
	scrollbar-color: #1A334D rgb(186 200 214 / 0.8);
	scrollbar-width: auto; 
}

.main-gallery img {
	width: 400px;
	height: auto;
}

.main-gallery figure {
	flex: 1;
	position: relative;
	scroll-snap-align: center;
}

.main-gallery figcaption {
	position: absolute;
	margin: 1em 0.5em 1em 0.5em;
	padding: 0.5em 0 0.5em 0;
	bottom: 0;
	width: calc(100% - 1em);
	text-align: center;
	background-color: rgb(186 200 214 / 0.8);
	border-radius: 0 0 10px 10px;
}

.float-left {
	float: left;
}

.float-right {
	float: right;
}

.flex-container {
	display: flex;
	margin-left: auto;
	margin-right: auto;
	list-style: none;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	width: calc(100% - 2em);
	gap: 1em;
}

.flex-item {
	flex: 1 1 calc(50% - 1rem);
}

.flex-item:last-of-type {
	max-width: calc(50% - 0.5rem);
}

.flex-item a {
	display: block;
	padding: 0.5em 0.5em 0.5em 2.5em;
	background-color: rgb(255 255 255 / 0.8);
	background-position: 0.5em center;
	background-repeat: no-repeat;
	background-size: 1.2em;
	color:#1A334D;
	text-align: left;
	font-size: 120%;
	border: 2px solid #1A334D;
	border-radius: 10px;
}

.flex-item a[title$="PDF"]{
	background-image: url(img/file_pdf.svg);
}

.flex-item a[title^="Link:"]{
	background-image: url(img/play.svg);
}

.flex-item a[title^="Link extern:"]{
	background-image: url("img/ext-link2.svg");
}

.flex-item a[title^="Gehe zu:"]{
	display: inline;
	padding: 0;
	background-color: transparent;
	background-image: none;
	color: #D96D00;
	text-align: left;
	font-size: 100%;
	border: none;
	border-radius: 0;
}


.notes {
	margin: 1em;
	padding: 1em;
	border: 1px solid #1A334D;
	border-radius: 10px;
}
	

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

#nav-content {
	display: block;
	width: auto;
	height: 100%;
	padding: 1em 1em 1em 0.5em;
	background-color: rgb(255 255 255 / 0.7);
	border-radius: 10px;
	text-align: left;
	line-height: 200%;
}

#nav-content img{
	display: block;
	margin-bottom: 1em;
	margin-left: auto;
	margin-right: auto;
}

#nav-content ul {
	margin-left: 1em;
	list-style: none;
}

#nav-content a {
	color: #1A334D;
}

#nav-content li{
	padding-left: 2em;
	background-image: url(img/list1.svg);
	background-size: 1em auto;
	background-repeat: no-repeat;
	background-position: left 0.5em;
}

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

.img-gallery {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 5px;
	opacity: 0.75;
}

.img-gallery:last-of-type {
	margin-bottom: 0;
}

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

.textarea a:hover, .textarea a:focus {
	text-decoration: underline;
	border-bottom: 0px solid;
	border-image: none;

}

.flex-item a:hover, .flex-item a:focus {
	background-color: rgb(186 200 214 / 1);
	border: 1px solid #1A334D;
	text-decoration: none;
	border: 2px solid #D96D00;
}

.flex-item a[title^="Gehe zu:"]:hover, .flex-item a[title^="Gehe zu:"]:focus {
	background-color: transparent;
	border: none;
	text-decoration: underline;
	border: none;
}

}

/*Anpassung Viewport
--------------------------------------------------*/

@media (max-width: 85em) {

.flex-container {
	flex-direction: column;
}

.flex-item {
	max-width: 100%;
	margin: 0.5em
}

.flex-item:last-of-type {
	max-width: 100%;
	margin: 0.5em 0.5em 0 0.5em;
}

.flex-item a {
	display: block;
}

.side-pic {
	display:none;
}

#nav-content .icons-side {
	display: none;
}

#nav-content{
	height: auto;
	width: calc(100% - 1em);
	padding: 0.2em 0.5em 0.2em 0.5em;
}

#nav-content ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	margin-left: 1em;
	margin-right: 1em;
	white-space: normal;
}

#nav-content ul li{
	flex: auto;
	display: inline;
	width: auto;
	padding: 0.2em;
	text-align: center;
	background-image: none;
}

#nav-content a{
	white-space: nowrap;
	display: inline-block;
}

.img-gallery {
	display: inline-block;
}

.img-gallery:last-of-type {
	margin-bottom: 5px;
}

}

@media (max-width: 60em) {

#main-header[title="Portalbild Schule"] { 
	background-image: url(img/panorama_small.jpg);
}

}


@media (max-width: 45em) {

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

#firstline {
	margin-right: 1em;
}

.float-left, .float-right {
	float: none;
}

}
