/* Stylesheet für Selfhtml Design 04 
  responsives Layout mit Flexbox ab Z. 262   */

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

/* alternatives Boxmodell */
html { 
  box-sizing: border-box; 
} 

*, ::before, ::after {
    box-sizing: content-box;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
}

body {
    max-width: 90em;
    margin: 0 auto;
    padding: 0;
    font: normal 1em "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
    color: #99BCD8;
    background: #fff;
    position: relative;
}

/* ===== header ===== */

header.banner {
    background: #fff;
    padding: 0em 0em;
    box-shadow: 0 0 0px rgba(0,0,0,0.2);
    border-radius: 0px 0 0 0;
}

#logo {
    margin: 1% 0 0 2%;
    color: #005292;
    font-size: 1em;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
}

header a#navlink {
    display: inline-block;
    float: left;
    color: #5593C4;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: lighter;
    padding-left: 3%;
}
		
/* ===== content / Inhalt ===== */
	
main {
    padding-top: 3%;
    padding-right: 3%;
    padding-left: 2%;
    padding-bottom: 1%;
    background: #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
    border-radius: 0em;
}

a {
    color: #EA9728;
}

a:hover,
a:focus {
    background-color: rgba(211,211,211,0.95);
    color: #CC0000;
}

a.button{
    background-color: #F4D7D7;
    font-weight: normal;
    box-shadow: 0 0 20px #c3d34e inset, 0 2px 1px rgba(0,0,0,0.2);
    color: #fff;
    padding: 0.5em;
    border-radius: .5em;
    text-decoration: none;
}
a.button:hover,
a.button:focus {
	background: #CD4168;
}

h1 {
    border-bottom: 0px solid #A6A5A5;
}

h1 span,
.akzentfarbe1 {
    color: #609AC7;
    font-weight: lighter;
}

h1 a:hover span {
    color: #fff;
    font-size: small;
    border-bottom-width: 1px;
}

h2 {
    color: #609AC7;
    font-size: large;
	font-weight: lighter;
    border-bottom-width: 1px;
}

.akzentfarbe2 {
	color: orange;
}

aside,
section {
	box-shadow: 0 0 80px rgba(0,0,0,0.1) ;
	border-radius: 0em;
	position: relative;
	padding: 0 0 0em;     /* Platz für abslout positionierte Buttons */
}

aside h2,
section h2 {
    color: #fff;
    padding: 0;
    margin: 0;
    background: rgba(195,214,106,0.95);
    border-radius: 0;
    box-shadow: 0 0px 0 #708900;
}

section p {
    padding-top: 0em;
    padding-right: 1em;
    padding-left: 1em;
    padding-bottom: 0em;
}

section p:first-of-type {
    font-weight: normal;
    color: #91B0DC;
}

section img {
    width: calc(100% - 1em);
    margin-top: 0.5em;
    margin-right: 0.5em;
    margin-left: 0.5em;
    margin-bottom: 0.5em;
}

aside {
}

section a.button {			
	position: absolute;	/* So werden Buttons immer an der gleichen Stelle, unabhängig vom vorhandenen Inhalt, positioniert */
	right: 1em;
	bottom: 1em;
}

form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap:.5em; 
	padding: 1em; 
}

form input {
	background: #555;
	border-radius: 0px;
	border: none;
	color: #fff;
	padding: 0.75em 0.75em 0.75em 2.5em;
	font-weight: bold;
}

form#search{ 
	position:relative;
}	

form#search input {
	width: 15em;
	margin: 0 1em;
}		

#search i {
	position: absolute;
	top: 1.2em;
	left: 1.75em;
	color: #bebebe;
}

section ul {
	margin: 1em 0 0 3em;
}
		
section li {
    font-weight: normal;
    margin: 0.5em 0 1em 2em;
}
section li i {
	color: #97b314; 
}

dl.grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr);
  padding: 0.5em;
}
dd { 
  margin: 0; 
  padding-left: 1em; 
}
dl.grid dd {
  margin-bottom: 1em;
}

a[href^="tel"] { white-space: nowrap; }

foto {
	display: contents
}

/* ===== Navigation ===== */

#navigation li {
	display: block;
	list-style: none;
	margin-right: 1em; 
	width: 90%;
}

#navigation a {
    display: block;
    text-decoration: none;
    padding: em 0.1em;
    background-color: #fff;
    border-radius: 0em 0em 0 0;
    border-left: 0px solid #D1D1D1;
}

#navigation a[aria-current=page] {
	font-weight:;
    background: #fff;
}

#navigation a:,
#navigation a:focus, 
#navigation a:active  {
    color: #D25658;
    background-color: #EAEAEA;
}		

/* ===== Footer ===== */
	
#social {
	float: left;
}

#social li {
	margin: 0 20px 0 0;
	display:inline-block;;
}
	

	

	
#yt {
	background: url("file:///C|/Users/User/Documents/Internetseite/selfhtml/design04/design04/img/yt.png") no-repeat;
	float: left;
	width: 16px;
	height: 16px;
}
	
footer #copyright {
	float: right;
}

/* ===== responsives Layout ===== */

/* Mobile first! 1-Spaltenlayout  */


/* 2-Spaltenlayout, sobald der Platz es erlaubt  */

@media only screen and (min-width: 40em) {
  main {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap:1em;
	position: relative;
	margin: 1em auto 1em;
  }
  
  article {
	grid-column: span 3;
  }
  
 
	
  header a#navlink {
	display: none;
  }

  #navigation  {
    position: absolute;
    top: -1em;
  }
  
  #navigation li {
	display: inline-block;
	width: auto;
}

#navigation a {
	display: inline-block; 
}

/* 3-Spaltenlayout, sobald der Platz es erlaubt  */
@media only screen and (min-width: 60em) {
  main {
	grid-template-columns: repeat(3, 1fr);
  }

	main header,
	main footer {
	  grid-column: span 3;
	}

	article{
	  grid-column: span 3;		
	}
	

	
}

/* Flexbox Fallback wenn der  Browser kein display:grid unterstützt. */
@supports not (display: grid) {
  main {
    display: flex;
    flex-flow: row wrap;
  }

main > * {
  flex: 1 100%;      /* Alle Elemente werden über die volle Breite dargestellt */
} 

article {
  flex: 1 90%;      
  margin: 1%;
}
	

	
section,
aside {
  flex: 1 31%;      /* Diese Elemente erhalten eine Breite von 1/3.  */
  margin: 1%;
}
}

	------------------
