﻿@charset "utf-8";
/* CSS Document */

/* klassisches Layout für SELFHTML-Beispiele */

@import url(https://fonts.googleapis.com/css?family=Playball);

html {
  background: #fda;
  color: #500;
}

body {
	margin: 1em auto;
	max-width: 65em;  
   font-family: 'Playball', sans-serif;
}
button a{color:#fed; padding:0;margin:0}
h1 a {color:#500;text-decoration:none;font-size:50%;}
h1, main, aside, main svg {
	border-radius: 0 .3em .3em;
	border: 1px none;
	padding: .1em .3em;
	margin: 0;
}

h1, h2 {
	color: #500;
	font-family: Playball;
	font-size: 2.4rem;
}

h2 {
	font-size: 2rem;
  margin:.1rem
}

h3 {margin:0;}
aside h2 {
	font-size: 1.8rem;	
}

header {
  border-color: transparent;
}

h1::after {
  content: '';
}


article img {
	max-width:100%; height:auto;
}

figure {
  display: inline-block;
  width: 30%;
  margin: 0.2em;
}
figure img {
  width: 100%;
}
figure figcaption {
  font-style: italic;
}

section {
  border-color: transparent;
}
article {
  border-color: transparent; 
  text-align:center;
}
aside {
  border-color: transparent;
}
footer {
  border-color:transparent;
}

#styleswitcher  ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

#styleswitcher button {
  margin-bottom: 0.1em;
  padding: 0.1em 1em;;
  border-radius: .4em;
  text-align: left;
  min-width:140px;
}

nav a, #styleswitcher button {
  background: #500;
  color: #fda;
}
/*
nav li:first-child a{ border-radius: .5em; }
nav li:last-child  a{ border-radius: .5em; }
*/
nav li  a{ border-radius: .5em; }
nav a:hover, nav a:focus, #styleswitcher  button:hover, #styleswitcher  button:focus {
  background: orange;
  border-color: #500;
  color:  #500;
}

nav a[aria-current=page] {
	color:orange;
	font-weight:bold;
}
nav a[aria-current=page]:hover,nav a[aria-current=page]:focus {
	color:#500;

}

a {
  color: blue;
}

/* responsives Layout */

body {
  display: flex;
  flex-flow: row wrap;
}

/* Mobile first - alle Dokument-Blöcke bekommen 100% Breite */
header, nav, article, section, aside, footer {
  border-radius: 0px 0.5em 0.5em;
  border: 1px none;
  padding: 0.5em;
  margin: 0.5em;
  flex: 1 100%;
}
footer {
  font-size:70%;
  padding: .1em;
  margin: 2em;
  flex: 1 100%;
  margin-bottom:0;
}

header {
  display: flex;
  flex-flow: row wrap;
}
header * {
  flex: 1 1 0%;
}
header img {
  flex: 0 0 150px;
  margin-right: 20px;
}
header nav {
  flex: 1 1 100%;
}
nav, nav ul, nav li{
  margin: 0;
  padding: 0;
  border: none;
}
nav ul {
  display: flex;
  flex-direction: column;
}
nav li {
  list-style-type: none;
  margin: 0.1em .1em;
  padding:0;
  flex: 1 1 100%;
}
nav a {
  display: inline-block;
  margin: 0;
  width:92%;
  padding: 0.1em 2%;
  text-decoration: none;
  text-align: center;
}

footer {
  display: flex;
  flex-flow: row wrap;
}
footer * {
  flex: 1 1 0%;
  justify-content: space-between;
}
footer p:last-child {
  text-align: right;
}
/* Smart Phones und Tablets mit mittlerer Auflösung */
@media all and (min-width: 35em) {
  header img {
    margin-right: 50px;
  }
  nav ul {
    flex-direction: row;
  }
  nav li {
    flex: 1 1 0%;
  }
  article {
    order: 2;
  }

  #news {
    flex: 1 auto;
    order: 3;
    line-height:2.1
  }

  aside {
    /* durch auto werden die beiden asides in eine Zeile gesetzt */
    flex: 1 auto;
    order: 4;
  }
  
  footer {
    order: 5;
  }
}

     /* Large screens */
@media all and (min-width: 50em) {
  article {
    /* Der Article wird 2.5x so breit wie die beiden asides! */
    order: 3;
    flex: 5 1 0%;
  }
  
  aside {
    flex: 2 1 0%;
  }
  
  #news {
    flex:1.5 1 0%;
    order: 2;
    height: 12em;
  }
}

caption {
	caption-side: bottom;
	padding-top: 2em;
	font-style: italic;
}