/*
based on YAMB version 2.

primary styles 
   Author: www.prowebdesign.ro
*/

/* typography */

/* droid serif */
@font-face {
    font-family: 'Droid Serif';
    src: url('../fonts/DroidSerif.eot');
    src: url('../fonts/DroidSerif.eot?#iefix') format('embedded-opentype'),
        url('../fonts/DroidSerif.woff2') format('woff2'),
        url('../fonts/DroidSerif.woff') format('woff'),
        url('../fonts/DroidSerif.ttf') format('truetype'),
        url('../fonts/DroidSerif.svg#DroidSerif') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* lato-300 - latin_latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/lato-v14-latin_latin-ext-300.eot'); /* IE9 Compat Modes */
  src: local('Lato Light'), local('Lato-Light'),
       url('../fonts/lato-v14-latin_latin-ext-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/lato-v14-latin_latin-ext-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/lato-v14-latin_latin-ext-300.woff') format('woff'), /* Modern Browsers */
       url('../fonts/lato-v14-latin_latin-ext-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/lato-v14-latin_latin-ext-300.svg#Lato') format('svg'); /* Legacy iOS */
}
/* lato-regular - latin_latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/lato-v14-latin_latin-ext-regular.eot'); /* IE9 Compat Modes */
  src: local('Lato Regular'), local('Lato-Regular'),
       url('../fonts/lato-v14-latin_latin-ext-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/lato-v14-latin_latin-ext-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/lato-v14-latin_latin-ext-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/lato-v14-latin_latin-ext-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/lato-v14-latin_latin-ext-regular.svg#Lato') format('svg'); /* Legacy iOS */
}

body {
   background:#fff;
   color:#666;
   font-family:'Droid Serif', Times, 'Times New Roman', serif; 
   /* font-size: 13px; */
   font-size:1em;
   line-height:1.8em; 
   font-weight:normal;
   -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4, h5, h6{
   font-weight:normal;
   font-family:'Droid Serif', Times, 'Times New Roman', serif; 
   line-height:120%;
   margin:40px 0 0 0;
   padding:0;
   color:#222;
} 


/* links */
a,
a:visited,
a:active,
a:hover{color:#222;}
a:hover{ text-decoration:none;}

  
/* structure */   
.wrapper, #colophon {
   width: 96%; 
   margin: .75em auto 0;
   margin: 0 auto;
   padding: 0;
}

header { 
   padding: 10px 0 0 0;
   margin: 0;
}
#banner{ 
   text-align:center;
   padding: 12px 0 12px 6px;
}

#banner #logo a {
   opacity: 1;
   transition: opacity 0.3s;
   -moz-transition: opacity 0.3s; /* Firefox 4 */
   -webkit-transition: opacity 0.3s; /* Safari and Chrome */
   -o-transition: opacity 0.3s; /* Opera */
}

#banner #logo a:hover {
   opacity: 0.7;
   transition: opacity 0.3s;
   -moz-transition: opacity 0.3s; /* Firefox 4 */
   -webkit-transition: opacity 0.3s; /* Safari and Chrome */
   -o-transition: opacity 0.3s; /* Opera */
}

#banner #logo a img {width: 131px; height: 120px;}
	
#hero{
   background:#fff;
   padding: 20px 0 20px 0;
   padding: 0;
}

h1 {font-size:1.5em;}
h2, h3 {font-size:1em;}

p {margin: 1.8em 0; font-size: 0.875em;}

p {
   -webkit-hyphens: auto;
   -webkit-hyphenate-character: "\2010";
   -webkit-hyphenate-limit-after: 1;
   -webkit-hyphenate-limit-before: 3;
   -moz-hyphens: auto;
   orphans: 3;
   widows: 3;
}


/* Vorschaltseite */

.startseite .wrapper {
   height: 1000px;
}
.vorschaltseite {background: rgba(256,256,256,0.9); padding-bottom: .625em;}
.vorschaltseite #banner {padding-top: 3px;}
.vorschaltseite #spruch {clear: both;}
#spruch p {font-size: 1em; line-height: 1.5em; font-weight: 400; color: #222; margin: .5em 2em .5em .25em;}
#spruch p span {font-size: 0.5em; margin-left: 1em;}

#spruch p a {
   -webkit-hyphens: none;
   -moz-hyphens: none;
   word-wrap: normal !important;
   text-decoration: none;
   color: #222;
   transition: color 0.3s;
   -moz-transition: color 0.3s; /* Firefox 4 */
   -webkit-transition: color 0.3s; /* Safari and Chrome */
   -o-transition: color 0.3s; /* Opera */
}
#spruch p a:hover {
   color: rgb(134,162,11);
   transition: color 0.3s;
   -moz-transition: color 0.3s; /* Firefox 4 */
   -webkit-transition: color 0.3s; /* Safari and Chrome */
   -o-transition: color 0.3s; /* Opera */
}




/* MODALFENSTER STARTSEITE */

#modal {
    position: fixed;
    font-family: 'Lato';
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    height: 100%;
    width: 100%;
}
.modalcontent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 80%;
    max-width: 700px;
    padding: 20px;
	overflow: scroll;
}

.modalcontent-inner {
	width: 100%;
	height: 80vh;
	overflow: scroll;
}

.modalcontent h2 {font-size: 1.5em; margin: 20px 20px;}
.modalcontent ul {text-align: left; margin: 20px 20px;}
.modalcontent p {margin: 0 20px;}
.modalcontent img {width: 100%; height auto; margin: 20px 0;}

.modalcontent #button {float: right;}
.modalcontent #button a {text-decoration: none; color: #222; font-family: 'Lato'; font-weight: bold; font-size: 1.5em; padding: 5px;}








.startmenu {text-transform: uppercase; font-family: 'Lato', Arial, Helvetica, sans-serif; font-weight: 400; font-size: 1.75em; line-height: 2.25em;}
a.startmenu {
   color: rgb(134,162,11);
   text-decoration: none;
   margin-right: 2em;
   transition: color 0.3s;
   -moz-transition: color 0.3s; /* Firefox 4 */
   -webkit-transition: color 0.3s; /* Safari and Chrome */
   -o-transition: color 0.3s; /* Opera */
}
a.startmenu:hover {
   color: #666;
   transition: color 0.3s;
   -moz-transition: color 0.3s; /* Firefox 4 */
   -webkit-transition: color 0.3s; /* Safari and Chrome */
   -o-transition: color 0.3s; /* Opera */
}



/* RESPONSIVE IMAGES IN CONTENT AREA. */
#content img {max-width:100%; height:auto;}


/*MAIN MENU*/

.menu-toggle{
	display:block;
	padding:10px;
	margin:20px 0 0;
	background:#666;
	color:#fff;
	cursor:pointer;
	text-transform:uppercase;
	font-size:20px;
}
.menu-toggle.toggled-on{
	background: rgb(134,162,11);
}
.sf-menu{
	display:none;
}	
.sf-menu.toggled-on{
	display:block;
}

.sf-menu{
	clear:both;
	margin-bottom:60px;
	
}
.sf-menu li a {
	background:#dadada;
	display:block;
	margin:1px 0; 
	padding:10px;
	text-decoration:none;
}
.sf-menu li a:hover{
	background: rgb(134,162,11);
	color:#fff;
}
.sf-menu li li a {
	background:#e8e8e8;
	padding-left:40px;
}
.sf-menu li li li a {
	background:#efefef;
	padding-left:80px;
}

/*SECONDARY MENU*/
#secondary-navigation{
	margin-bottom:60px;
}
#secondary-navigation ul{
	margin:0;
	padding:0;
}
#secondary-navigation ul li a{ 
	background:#E6E6E6;
	display:block;
	margin:5px 0; 
	padding:10px;
	text-decoration:none;
}
#secondary-navigation ul li a:hover{
	background:#0099ff;
	color:#fff;
}


/* TABS */
   .etabs {margin: 10px 0 0 0; padding: 0;}
   .tab {display: inline-block; zoom:1; *display:inline; background: #fff; padding: 0 0;}
   .tab a {
      line-height: 2em;
      display: inline-block;
      outline: none;
      text-decoration: none;
      transition: color 0.3s;
      -moz-transition: color 0.3s; /* Firefox 4 */
      -webkit-transition: color 0.3s; /* Safari and Chrome */
      -o-transition: color 0.3s; /* Opera */
   }
   .tab a:hover {
      color: rgb(134,162,11);
      transition: color 0.3s;
      -moz-transition: color 0.3s; /* Firefox 4 */
      -webkit-transition: color 0.3s; /* Safari and Chrome */
      -o-transition: color 0.3s; /* Opera */
   }
   .tab.active {background: #fff; position: relative;}
   .tab a.active {color: rgb(134,162,11);}
   .tab span {margin: 0 10px;}
   .tab-container .panel-container { background: #fff;  margin: 0px;}
   .panel-container {padding-bottom: 40px; }
   .panel-container img {margin-top: 28px;}
   .grid_8 img {max-width:100%; height:auto;}

   .panel-container a {color: rgb(134,162,11); text-decoration: none;
      transition: color 0.3s;
      -moz-transition: color 0.3s; /* Firefox 4 */
      -webkit-transition: color 0.3s; /* Safari and Chrome */
      -o-transition: color 0.3s; /* Opera */
   }
   .panel-container a:hover {color: #222;
      transition: color 0.3s;
      -moz-transition: color 0.3s; /* Firefox 4 */
      -webkit-transition: color 0.3s; /* Safari and Chrome */
      -o-transition: color 0.3s; /* Opera */
   }


/* IMPRESSUM AGB ETC. */

.panel-container ul {
   padding:0;
   margin: 0;
   line-height: 1.8em;
   font-size: 0.875em;
   list-style-type: none;
}

.panel-container li {margin-bottom: .5em;}



/* TEASER UND FOOTER */
footer {
   width: 100%;  
   clear: both;
   font-size: 1em;
   line-height: 1.25em;
   padding: 0;
   background: #f0f4e7;
   color:#222;
}

#colophon h3, #colophon p, #colophon a {font-family: 'Lato', Arial, Helvetica, sans-serif;}

.linie, .linie-top {height: 1px; border-bottom: 1px solid #fff;}
.linie-top {margin-top: 30px;}

.teaser h1,
.teaser h2,
.teaser h3,
.teaser h4,
 footer h1, footer h2, footer h3, footer h4 { 
   color:#222; 
   margin:10px 0;
}

.teaser p, footer p {margin-top: 1em;}

.teaser a, footer a {text-decoration: none;}
.teaser a h2, footer a h2{
   color: #222;
   transition: color 0.3s;
   -moz-transition: color 0.3s; /* Firefox 4 */
   -webkit-transition: color 0.3s; /* Safari and Chrome */
   -o-transition: color 0.3s; /* Opera */
}
.teaser a:hover,
.teaser a:hover h2,
footer a:hover,
footer a:hover h2 {
   color: rgb(134,162,11);
   transition: color 0.3s;
   -moz-transition: color 0.3s; /* Firefox 4 */
   -webkit-transition: color 0.3s; /* Safari and Chrome */
   -o-transition: color 0.3s; /* Opera */
}

.teaser h2 {font-size: 1em; padding-top: 1.25em;}
footer h2 {font-size: 0.875em; padding-top: 1.25em;}
.teaser h3, footer h3 {font-size: 0.875em;}

.teaser img, footer img {
   max-width:100%; 
   height:auto;
     -moz-box-shadow:    3px 3px 5px 3px #afafaf;
     -webkit-box-shadow: 3px 3px 5px 3px #afafaf;
     box-shadow:         3px 3px 5px 3px #afafaf;
   opacity: .7;
   transition: opacity 0.3s;
   -moz-transition: opacity 0.3s; /* Firefox 4 */
   -webkit-transition: opacity 0.3s; /* Safari and Chrome */
   -o-transition: opacity 0.3s; /* Opera */
}

.teaser a:hover img,
footer a:hover img {
   opacity: 1;
   transition: opacity 0.3s;
   -moz-transition: opacity 0.3s; /* Firefox 4 */
   -webkit-transition: opacity 0.3s; /* Safari and Chrome */
   -o-transition: opacity 0.3s; /* Opera */
}

footer ul {
   margin:0;
   padding:0;
   margin:0 0 0 8%;
}

#footernav {list-style-type: none; margin-left: 0; padding-left: 0;}
#footernav li {margin-bottom: .75em;}
#footernav li a:after {content: ' >';}





/* ==|== non-semantic helper classes ========================================
   ========================================================================== */

/* For image replacement */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden, .none { display: none !important; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* Contain floats: h5bp.com/q */ 
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }

.rightfloat {float:right;}
.leftfloat {float:left;}





#banner{
   float:left;
   text-align:left;
}
.menu-toggle{/*make menu float right, instead of sitting under the logo*/
   margin-top: 90px; /*this depends on the height of the logo*/
   float:right;
}




/*
LARGER MOBILE DEVICES
This is for mobile devices with a bit larger screens.
*/
@media only screen and (min-width: 641px) {
.wrapper, #colophon {
   max-width: 1200px; 
   margin: 0 auto;
   padding: 0;
}

#banner { 
   float:left; 
   text-align:left;
   padding-right:2%;
   width:190px;
}

#banner #logo a img {width: 170px; height: 155px;}

.startseite .wrapper {width: 92.6666666666667%; max-width: 1160px;}

#hero {padding: 0;}

#content {  
   float:left;
   width:100%;
   margin:0 0 40px 0;
}

.teaser:nth-child(odd) {clear: both;}


/*** MAIN MENU - ESSENTIAL STYLES ***/

.menu-toggle{display:none;}
#menu-main-navigation{display:block;}

.sf-menu, .sf-menu * {
   margin: 0;
   padding: 0;
   list-style: none;
}
.sf-menu ul {
   position: absolute;
   top: -999em;
   width: 10em; /* left offset of submenus need to match (see below) */
}
.sf-menu ul li {width:100%;}
.sf-menu li:hover {visibility: inherit; /* fixes IE7 'sticky bug' */}
.sf-menu li {float: left; position: relative;}
.sf-menu a {display: block; position: relative;}
.sf-menu li:hover ul,
.sf-menu li.sfHover ul {
   left: 0;
   top: 45px; /* match top ul list item height */
   z-index: 99;
   -webkit-box-shadow:  2px 3px 2px 0px rgba(00, 00, 00, .3);
   box-shadow:  2px 3px 2px 0px rgba(00, 00, 00, .3);
}
ul.sf-menu li:hover li ul,
ul.sf-menu li.sfHover li ul {top: -999em;}
ul.sf-menu li li:hover ul,
ul.sf-menu li li.sfHover ul {left: 10em; /* match ul width */ top: 0;}
ul.sf-menu li li:hover li ul,
ul.sf-menu li li.sfHover li ul {top: -999em;}
ul.sf-menu li li li:hover ul,
ul.sf-menu li li li.sfHover ul {left: 10em; /* match ul width */ top: 0;}

/*** MY SKIN ***/
#topnav, .sf-menu {
   float: left;
   margin: 71px 0 0 0;
}

.sf-menu a {
   text-decoration:none; font-size: 0.875em;
}

.sf-menu li:hover ul,
.sf-menu li.sfHover ul {
   left: 0;
   top: 35px; /* match top ul list item height */
   z-index: 99;
   -webkit-box-shadow:  none;
   box-shadow:  none;
}

.sf-menu li a {
   background:#fff;
   margin:0; 
   padding: 5px 14px;
   height: 25px;
   color: #222;
   transition: color 0.3s;
   -moz-transition: color 0.3s; /* Firefox 4 */
   -webkit-transition: color 0.3s; /* Safari and Chrome */
   -o-transition: color 0.3s; /* Opera */
}
.sf-menu a, .sf-menu a:visited  { /* visited pseudo selector so IE6 applies text colour*/
   color: #222;	
}
.sf-menu li li a {
   border-top: 0 none;
   background: rgba(256,256,256,0.5);
   padding-left: 14px;
}

.sf-menu li:hover, .sf-menu li.sfHover,
.sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active {
   background: #fff;
   background: rgba(256,256,256,0.3);
   background: transparent;
   outline: 0;
   color:#fff;
   transition: color 0.3s;
   -moz-transition: color 0.3s; /* Firefox 4 */
   -webkit-transition: color 0.3s; /* Safari and Chrome */
   -o-transition: color 0.3s; /* Opera */
}
.sf-menu li.current li a,
.sf-menu li:hover, .sf-menu li.sfHover,
.sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active {
   background: rgba(256,256,256,0.3);
   outline: 0;
   color:#222;
   transition: color 0.3s;
   -moz-transition: color 0.3s; /* Firefox 4 */
   -webkit-transition: color 0.3s; /* Safari and Chrome */
   -o-transition: color 0.3s; /* Opera */
}

.sf-menu li:hover > a { 
   color: rgb(134,162,11);
   background: transparent;
}
.sf-menu li.current li.current,
.sf-menu li.current a {color: rgb(134,162,11); background: rgba(256,256,256,0.5);}

.sf-menu li li.current a,
.sf-menu li li:hover > a{ 
   color: rgb(134,162,11);
   background: rgba(256,256,256,0.5);
}


/*GRID*/
/*
 & Columns : 12 

 */
.grid_1 { width: 5%; }
.grid_2 { width: 13.333333333333%; }
.grid_3 { width: 21.666666666667%; }
.grid_4 { width: 30%; }
.grid_5 { width: 38.333333333333%; }
.grid_4 { width: 46.666666666667%; }
.grid_7 { width: 55%; }
/* .grid_8 { width: 63.333333333333%; } */
.grid_9 { width: 71.666666666667%; }
.grid_10 { width: 80%; }
.grid_11 { width: 88.333333333333%; }
.grid_12 { width: 96.666666666667%; }

.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12 {
	margin-left: 1.6666666666667%;
	margin-right: 1.6666666666667%;
	float: left;
	display: block;
}

.alpha{margin-left:0px;}
.omega{margin-right:0px;}
/* @
 * tinyfluidgrid.com
 & girlfriendnyc.com
 */

/* footer */
#footernav li {float: left; margin-right: 1em; margin-bottom: 0;}

.logobanner {width: 96.666666666667%;}

} 

/*
TABLET & SMALLER LAPTOPS
The average viewing window and preffered media query for those is 768px.
But I think that some more breathing space is good:)
*/
@media only screen and (min-width: 820px) {

.vorschaltseite #banner {padding-top: 3px; padding-left: 0; margin-left: -12px;}
.grid_8 { width: 63.333333333333%; }
.grid_4 { width: 30%; }
.teaser:nth-child(odd) {clear: none;}
.teaser:nth-child(3n) {clear: both;}
.none {display: block !important; visibility: visible; }

}

/*
DESKTOP
This is the average viewing window. So Desktops, Laptops, and
in general anyone not viewing on a mobile device. Here's where
you can add resource intensive styles.
*/
@media only screen and (min-width: 1030px) {

} 

/*
LARGE VIEWING SIZE
This is for the larger monitors and possibly full screen viewers.
*/
@media only screen and (min-width: 1240px) {

} 

/*
RETINA (2x RESOLUTION DEVICES)
This applies to the retina iPhone (4s) and iPad (2,3) along with
other displays with a 2x resolution.
*/
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min--moz-device-pixel-ratio: 1.5),
       only screen and (min-device-pixel-ratio: 1.5) {


} 

/*
iPHONE 5 MEDIA QUERY
iPhone 5 or iPod Touch 5th generation styles (you can include your own file if you want)
*/
@media (device-height: 568px) and (-webkit-min-device-pixel-ratio: 2) { 

  
}

/*
PRINT STYLESHEET
*/
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}