﻿/* Stylesheet für Hof Niederberger 
   Responsives Layout mit Grid Layout ab Z. 210 */

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

/* Alternatives Boxmodell (äusserster Rahmen) */
html { 
    box-sizing: border-box; 
    border-top-left-radius: 0.8em;
    border-top-right-radius: 0.8em;
    background: linear-gradient(#FFF4E6, burlywood);
} 

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

body {
	max-width: 75em;
	margin:0 auto;
	padding: 0;
	background: #fff;
	color: #777;
	font: normal 1em Tahoma, sans-serif;
}


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

header {
	position: relative;		
	height: 210px;
    border-top-left-radius: 0.8em;
    border-bottom-left-radius: 0.8em;
	margin: 2em  0  0 3em;
	background: burlywood url("../img/header/headerimg.jpg") no-repeat right;
	background-size: contain; 			 
	padding: 0 0 0.5em;
}

header div h1,
header div p {
	color: white; 
	border-left: 0;
	padding: 0;
    display: table;
}

.ribbon {
	display: inline-block;
	position: relative;	
    border-top-right-radius: 0.8em;
    border-bottom-right-radius: 0.8em;
	margin: 2em 0 2em -1.5em;
	padding: 0.5em 1em;
	background: #008816;
	box-shadow: 0px 1px 3px rgba(0,0,0,.8);
}
 
.ribbon::before{
	display: block;
	width: 1.5em;
	height: 0;
	position: absolute;
	bottom: -1.5em;
	left: 0em;
	content: "";
	border-bottom: 1.5em solid transparent;
	border-right: 1.5em solid rgb(0, 66, 11); 
}


/* ====================  CONTENT  ==================== */

main {
	margin: 0 0 1em;
	padding: 1em 1em 5em;
	background: #fff;
}

h1 {
	font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif; 
	padding-left: 1em;
    	margin: 10px 0px 20px;
	color: burlywood;
	text-transform: capitalize;
	border-left:5px solid #006010;
}

h2 {
	font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif; 
	padding-left: 1em;
    	margin: 10px 0px 20px;
	color: burlywood;
	text-transform: uppercase;
	border-left:5px solid #006010;
}
	
h2 span {
	font-size: 0.70em; 
	color: #006010;
	text-transform: none;
}

h3	{ 
	font-size: 1.25em; 
	font-weight: normal;
	margin-top: 2em;
	margin-bottom: 1em; 
	color: #006010;
}	

h3:first-of-type {
    margin-top: inherit
}

h4	{ 
	font-size: 1.1em; 
	font-weight: normal;
	margin-top: 2em;
    margin-bottom: 1em; 
	color: #006010;
}	

h4:first-of-type {
    margin-top: inherit
}

p {
	text-align: left; 
	line-height: 1.6em;
	padding: 0px 0px 0px;  /* 0 0 40 */
}

a 	{ 
	color: #008816; /* #4e7a92 */
	outline: none; 
	text-decoration: none; 
}
a:hover,
a:focus { 
	color: #008816;
	text-decoration: none; 
        border-radius: 0.8em;
	background-color: #D7FACF;
}

a.more	{ 
	float: right; 
	font-weight: bold; 
}

a.more:after{
	content:" \2192 ";
	font-size:1.2em;
	font-weight:bold;
}

ul.arrow {
    list-style-image: url("../img/svg/arrow.svg");
}

ul.arrow li {
    padding: 1px 0px;
}

ol li {
    padding: 1px 6px;
}

/*DL, DT, DD Datenliste*/
dl.grid { 
  display: grid; 
  grid-template-columns: 1fr 100%; 
}
dd { 
  margin: 0; 
  padding-left: 1em; 
}

dd span:first-child {
  display: inline-block;
  width: 4em;
}

dl.grid dd {
  margin-bottom: 1em;
}

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

ul#footer-nav li { 
	list-style-type: none;  
	displaY: inline;
	padding: 0 0.6em 0 0.3em; 
	border-right: 1px  solid #ACACAC; 
}

footer {
	display: grid;
    grid-template-columns: repeat(2, 1fr);	
	padding: 1em;
}

ul#footer-nav  li:last-child { 
	border: none; 
}	

ul#footer-nav img {
	width: 1.5em;
}

ul#footer-nav a:hover,
ul#footer-nav a:focus, 
ul#footer-nav a:active {
	background: white;
}

footer p {
	text-align: right;
}

footer a[aria-current=page]{
    background: #D7FACF;
    border-radius: 0.8em; 
}


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

nav#navigation {
}
	
#navigation ul {
    list-style-type: none;
    white-space: nowrap;
    width: 100%;
	margin-bottom:30px;
}

#navigation ul li.first-child {
    border-top: 1px #DBDBDB solid;
}

#navigation ul li a {
	display: block;
    border-radius: 0.8 em;
    font-size: 1.1em;
    line-height: 1.5em;
    padding: 1em 30px;
    text-decoration: none;
	width: 15em; 
}

#navigation ul li a:before{
	content:" ";
	display:inline-block;
	width:1em;
	height:1em;
	border-left:5px solid #006010;
}	
		
nav a[aria-current=page]{
    background: #D7FACF;
    border-radius: 0.8em; 
}


/* ====================  Repsonsives Grid-Layout  ==================== */

/* mobile first - auf schmalen Bildschirmen wird alles untereinander platziert. */ 
/* ab einer Breite von 30em haben zwei Spalten nebeneinander Platz: */

@media (min-width: 30em) { 
  main {
  	display: grid;	  
    grid-template-columns: repeat(2, 1fr);
	grid-gap: 1em;
  }

  nav {
    grid-column: 1 / 2;
  }
  
  #intro {
    grid-column: 2 / 3;
    grid-row:    1 / 2;					
  }

  article {
    grid-column: 2 / 3;
  }  
  
  .spalte img {
     width: 50%;
	 float: left;
	 margin-right: 0.5em;		
  }
}

@media (min-width: 50em) { 
  main {
    grid-template-columns: repeat(3, 1fr);
 }
 
  nav {
    grid-row: 1 / 4;
  } 

  #intro {
    grid-column: 2 / 4;
    grid-row:    1 / 2;					
  }

  article {
    grid-column: 2 / 4;
  }    
  
   aside {
    grid-column: 3 / 4;
    grid-row: 1 / 2;	
  }   
  
  .spalte {
    grid-row:    2 / 3;					
  }
    
  .spalte img {
     width: 33%;
  } 
}