/* Stylesheet für Selfhtml Design 02 
  responsives Layout mit Flexbox ab Z. 248   */

/* ====================================================   GLOBAL DEFINITION   ==================================================== */

/* alternatives Boxmodell */

html {
  box-sizing: border-box;
}

*,
::before,
::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font: normal 1em Verdana, sans-serif;
  /* Keine Mindestschriftgröße! Dies wird dem Browser, bzw. dem Nutzer überlassen! */
  color: #333;
}

#page-container {
	position: relative;
	min-height: 100vH;
}

/* ====================================================   HEADER   ==================================================== */

[role="banner"] {
  background: url("../img/Design02.svg") no-repeat right, 
  #000 repeating-linear-gradient(-90deg, grey, #d0d0d0 25em); 
  
  background-size: contain, auto;
  padding: 0 0 0.5em;
}

@media screen and (max-width: 40em) {
  /* Normalerweise werden solche responsiven Layout-Einstellungen gesondert am Schluss notiert. Hier sollen die mulitple backgrounds aber gleich anfangs gezeigt werden. Auf zu kleinen Bildschirmen wird das Bild jedoch ausgeblendet.  */
  [role="banner"] {
    background-image: none;
  }
}

[role="banner"] h1,
[role="banner"] p {
  max-width: 60em;
  margin: 0 auto;
  padding-left: 10%;
  font-family: 'Roboto', sans-serif;
  font-variant: small-caps;
  font-weight: lighter;
  font-size: 1.7em;
  color: #eee;
}

[role="banner"] p {
  padding: 1em 10%;
  color: black;
}

[role="banner"] img {
  float: right;
  height: 15em;
}


/* ====================================================  NAV   ==================================================== */

nav {
  max-width: 30em;
  margin: 0 auto;
}

nav ul {
  text-align: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

nav a {
  background: #28729a;
  color: white;
  text-decoration: none;
  display: inline-block;
  padding: 1em 0 1em 1em;
}

nav a:hover,
nav a:focus {
  background: #28729a;
  color: white;
}

nav a:hover::after,
nav a:focus::after {
  color: transparent;
}



/* ==================================== content ===========================  */

a,
.akzentfarbe1 {
  color: #28729a;
}

.akzentfarbe2 {
  color: #ccc;
}

h1,
h2 {
  color: #28729a;
  font-size: 1.50em;
  font-weight: normal;
  font-family: 'Tauri', serif;
  text-transform: uppercase;
}

.smallteaser {
  background: #eee;
  padding: 0.5em;
}

.smallteaser h2 {
  display: flex;
  border-bottom: 2px solid;
  align-items: flex-end;
}

.smallteaser h2 img {
  margin-left: auto;
}

/* ==================================== smallteaser mitte ===========================  */

.smallteaser_m {
  background: #eee;
  padding-top: 1.8em;
}

.smallteaser_m h2 {
  display: flex;
  border-bottom: 2px solid;
  align-items: flex-end;
}

.smallteaser_m h2 img {
  margin: auto;
}


/* ==================================== smallteaser mitte ende ===========================  */


.bigteaser > img {
  float: left;
  margin: .5em;
  width: 8.0em;
}

.bigteaser_P > img {
  float: right;
  margin: .5em;
  width: 8.0em;
}
.smallteaser header p {
  border-bottom: 1px #D1D1D1 solid;
}

.smallteaser_m header p {
  border-bottom: 1px #D1D1D1 solid;
}

a.more {
  float: right;
  padding: .25em 0.5em;
  margin-top: 1em;
  background: #28729a;
  color: white;
}

a.more:hover,
a.more:focus {
  background-color: #909090;
}

aside,
.bigteaser {
  background: #28729a;
  padding: 0.5em;
  color: #FFFFFF;
}

aside a,
.bigteaser a {
  color: white;
}

.bigteaser a.more {
  background: white;
  color: #28729a;
}

/* neu von Petra dazugenommen*/
aside,
.bigteaser_P {
  background: #28729a;
  padding: 0.5em;
  color: #FFFFFF;
}

aside a,
.bigteaser_P a {
  color: white;
}

.bigteaser_P a.more {
  background: white;
  color: #28729a;
}

/* ==================================== footer ===========================  */

footer {
  background: #666 repeating-linear-gradient(-90deg, grey, #d0d0d0 8em);
  padding: 0.5em 1em 0;
  margin-top: 1em;
  color: white;
  bottom: 0;
  position: relative;
  width: 100%;
}

.footer-text-box {
  max-width:1200px;
  margin:0 auto;
}

.footer-left {
  display: inline-block;
  float: left;
}

.footer-right {
  display: inline-block;
  float: right;
}

footer > * {
  flex:  1 1 20em;
}

footer .branding {
  text-align: right;
}


/* ====================================================   LAYOUT   ==================================================== */

/* Mobile first ! alle Blöcke haben 100%, Navigation unten*/

body {
  padding: 0 1em;
}

main {
  max-width: 65em;
  margin: 0 auto;
  padding: 1em 0;
}

/* Navigationselemente werden untereinander angezeigt */

nav ul {
  display: flex;
  flex-direction: column;
}

nav li {
  margin: .3em 0;
  flex: 1 1 100%;
}

nav a {
  width: 95%;
  margin: 0 5%;
  border-radius: .5em;
}

[aria-current=page] {
  color: black;
  font-weight: bold;
}

[aria-current=page]:hover,
[aria-current=page]:focus {
  color: black;
}

/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 40em) {

/* Navigation wird nebeneinander ausgerichtet. */	

body {
  padding: 0;
}

/* Navigation wird nebeneinander ausgerichtet. */

nav ul {
  flex-direction: row;
  background: transparent;
}

nav li {
  margin: 0;
  flex: 1 1 0%;
}

nav a {
  background: transparent;
}

[aria-current=page] {
  color: #28729a;
}
}


/* Main wird zum Flex-Container */

main,
footer {
  display: flex;
  flex-flow: row wrap;
}

main > * {
  flex: 1 1 18em;
  margin: 1em;
}

.bigteaser {
  flex: 1 1 18em;
}

/* Alle Unterseiten (nicht die Startseite also :not(.home)) */

:not(.home) h1 {
  flex: 0 0 100%; /* Überschrift über dem Hauptbereich über die gesamte Breite */
}

:not(.home) article {
  flex: 2 2 30em;   /* Hauptartikel zur Seitenspalte im Verhältnis 2:1 */
  max-width: 40em;  /* Begrenzt die Zeilen auf eine gut lesbare Länge */
}

:not(.home) article + aside {
  flex: 1 1 15em;   /* Seitenleiste zum Hauptartikel im Verhältnis 1:2 */
  max-width: 40em;  /* Begrenzt die Zeilen auf eine gut lesbare Länge */
}





/* image lightbox - w3schools example */
.row > .column {
  padding: 0 8px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.row_img-preview {
  text-align: center;
}

.row_lightbox-img-preview {
  text-align: center;
  margin-top: 10px;
}

/* Create four equal columns that floats next to eachother */
.column_img-preview {
  width: 24%;
  display: inline-block;
  vertical-align: middle;
  min-width: 120px;
}

.column_lightbox-img-preview {
  width: 20%;
  display: inline-block;
  vertical-align: middle;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0 0 0 / 95%);
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: transparent;
  margin: auto;
  padding: 0;
  width: 100%;
  max-width: 1200px;
}

@media screen and (max-width: 830px) {
	.modal-content {
		top: 10%;
	}
}

@media screen and (max-width: 675px) {
	.modal-content {
		top: 20%;
	}
}

@media (orientation: landscape) {
	.modal-content {
		top: 0% !important;
	}
}

.photos_small {
  width: 100%;
}

.photos_small-lightbox {
  width: 95%;
  max-height: 15vH;
}

.img-lightbox-big {
  max-width: 90%;
  max-height: 70vh;
  margin: 0 auto;
  display: block;
  padding-top: 10px;
}

/* The Close Button */
.close-button-lightbox {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 55px;
  font-weight: bold;
}

.close-button-lightbox:hover,
.close-button-lightbox:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
  display: none;
  /* height: 70vH; */
}

/* Next & previous buttons */
.slideshow-nav {
    position: fixed;
    bottom: 10%;
    width: 90%;
    max-width: 800px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  /* top: 50%; */
  width: auto;
  padding: 16px;
  /* margin-top: -50px; */
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
	color: #f2f2f2;
	font-size: 12px;
	position: fixed;
	bottom: 5%;
	left: 0;
	right: 0;
	margin: 0 auto;
	width: 50px;
	text-align: center;
}

/* Caption text */
.caption-container {
  text-align: center;
  background-color: transparent;
  padding: 2px 16px;
  color: white;
}

img.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
