

/* ====================================================   GLOBAL DEFINITION   ==================================================== */

/* alternatives Boxmodell */

html {
  box-sizing: border-box;
}

*,
::before,
::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font: normal 1em Arial, sans-serif;
  min-height: 100vh;
  /* Keine Mindestschriftgröße! Dies wird dem Browser, bzw. dem Nutzer überlassen! */
  color: #333;
}


/* ====================================================   HEADER   ==================================================== */

[role="banner"] {
  background: url("../img/sonnenaufgangbank.jpg") no-repeat right,
  #000 repeating-linear-gradient(-45deg, #009900, #333 8em);
  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: 5%;
  padding-top: 5%;
  padding-bottom: 5%;
  font-family: 'Roboto', sans-serif;
  font-variant: small-caps;
  font-weight: lighter;
  font-size: 2em;
  color: #8db243;
}

[role="banner"] p {
  padding: 1em 10%;
  color: white;
}

[role="banner"] img {
  float: right;
  height: 15em;
}


/* ====================================================  NAV   ==================================================== */

nav {
  max-width: 30em;
  margin: 0 auto;
}

nav ul {
  text-align: center;
  margin: 0;
  background:#8db243; 
  padding: 0;
  list-style-type: none;
}


nav a {
  background:#8db243; 
  color: white;
  text-decoration: none;
  display: inline-block;
  padding: 1em 0 1em 1em;
}

nav a:hover,
nav a:focus {
  background: #8db243;
  color: white;
}

nav a:hover::after,
nav a:focus::after {
  color: white;
}




/* ==================================== content ===========================  */

a,
.akzentfarbe1 {
  color: #8db243;
}

.akzentfarbe2 {
  color: #ccc;
}

h1,
h2 {
  color: currentColor;
  font-size: 1.50em;
  font-weight: normal;
  font-family: 'Tauri', serif;
  text-transform: uppercase;
}

h3 {
  color: currentColor;
  font-size: 1.20em;
  font-weight: normal;
  font-family: 'Tauri', serif;	
}

.smallteaser {
  background: #eee;
  padding: 0.5em;
}

.smallteaser h2,
.bigteaser h2 {
  display: flex;
  color: #333;
  border-bottom: 2px solid #8db243;
  align-items: flex-end;
}

.smallteaser h2 img,
.bigteaser h2 img {
  margin-left: auto;
}

.bigteaser > img {
  float: right;
  margin: .5em;
  width: 2.5em;
}

.smallteaser header p {
  border-bottom: 1px #D1D1D1 solid;
}

a.more {
  float: right;
  padding: .25em 0.5em;
  margin-top: 1em;
  background: #8db243;
  color: white;
}

a.more:hover,
a.more:focus {
  background-color: #909090;
}
a.weiter {
  margin-left: 2em;
  background: #8db243;
  color: white;
}

a.weiter:hover,
a.weiter:focus {
  background-color: #909090;
}
aside{
mkax-height:40em;
float: left;
}


aside,
.bigteaser {
  background: #8db243;
  padding: 0.5em;
  color: #FFFFFF;
}


aside a,
.bigteaser a {
  color: white;
}

.bigteaser a.more {
  background: white;
  color: #8db243;
}

 ul.termine li{
	margin-bottom: 0.5em;
	
}

sup {
	text-decoration: underline;
    text-size:80%;
}


/* ==================================== footer ===========================  */

footer {
  background: #666 repeating-linear-gradient(-45deg, black, #151515 8em);
  padding: 0.5em 1em 0;
  margin-top: 1em;
  color: white;
}

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: #8db243;
}

[aria-current=page] {
  color: #8db243;
  background: transparent;
}
}


/* 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 */
}

