/* Stylesheet für Selfhtml Design 02 
  responsives Layout mit Flexbox ab Z. 248   */

/* ====================================================   GLOBAL DEFINITION   ==================================================== */

/* alternatives Boxmodell */

html {
  box-sizing: border-box;
  background-color:#2a5a74;
}

*,
::before,
::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font: normal 1em Arial, sans-serif;
  /* Keine Mindestschriftgröße! Dies wird dem Browser, bzw. dem Nutzer überlassen! */
  color: #333;
}


/* ====================================================   HEADER   ==================================================== */

[role="banner"] {
  background: url("../img/Design02.svg") no-repeat right,
  #000 repeating-linear-gradient(-45deg, black, #151515 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;  
  font-family: 'Roboto', sans-serif;
  font-variant: small-caps;
  font-weight: lighter;
  font-size: 2em;
  color: #eee;
}

[role="banner"] p {
  padding: 1em 0;
  color: white;
}

[role="banner"] img {
  float: right;
  height: 15em;
}

.header, 
.landkarte {
  margin-top:1em;
  width: 100%;
  max-width: 65em;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1em;
  padding-right: 1em;
}

.landkarte img {
  width: 100%;
}
/* für Karte Mittelmeer oder hochkant*/
.landkarte_1{
  margin-top:1em;
  width: 100%;
  max-width: 35em;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1em;
  padding-right: 1em;
}
.landkarte_1 img{
  width: 100%;
}

.breadcrumb {
  width:100%;
  background-color:  rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ====================================================  NAV   ==================================================== */

nav {
  max-width: 46em;
  margin: 0 auto;
  padding-top:1em;
}

nav ul {
  text-align: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

nav a {
  background: #28729a;
  color: white;
  text-decoration: none;
  display: flex;
  justify-content: center;
  padding: 1em .5em 1em .5em;
}

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-left: 1em;
  padding-right: 1em;
  position: relative;
  padding-bottom: 4em;
}

.smallteaser h2 {
  display: flex;
  border-bottom: 2px solid;
  text-align: center;
  justify-content: center;
}

.smallteaser h2 img {
  margin-left: auto;
  max-width: 120px;
  max-height: 80px;
  align-items: center;
}
/*.smallteaser img {
    max-width: 200px;
    max-height: 120px;
   align-items: center;
  
}*/
.smallteaser img {
  object-fit: cover;
  height: 15vh;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.smallteaser p {
  text-align: justify;
  hyphens:auto;
}

.smallteaser header p {
  border-bottom: 1px #D1D1D1 solid;
}


@media (min-width: 640px) {
  .smallteaser {
    max-width: calc(50% - 2em);
  }
}

@media (min-width: 960px) {
  .smallteaser {
    max-width: calc(33.3333333% - 2em);
  }
}




a.more, 
a.more-left {
  float: right;
  padding: .25em 0.5em;
  margin-bottom: 1em;
  background: #28729a;
  color: white;
  position: absolute;
  bottom: 0.5em;
  left: calc(100% - 8em);
}

a.more-left {
  left: 1.4rem;
}

a.more:hover,
a.more:focus,
a.more-left:hover,
a.more-left:focus {
  background-color: #909090;
}


/* ==================================== 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 {  
  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;
}

