/*
  target ÷ context = result
  context = body of 16px
  target = the disired size
  result in em
*/

html { height: 101%; }

body{
  background: #eee;
  font-family: 'Open Sans', sans-serif;
  font-size: 100%; 
  line-height: 1;
  color: #333333;
}


::selection { background: #a2ec39; color: #323232; }
::-moz-selection { background: #a2ec39; color: #323232; }
::-webkit-selection { background: #a2ec39; color: #323232; }

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
ol, ul { list-style: none; }

blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
strong { font-weight: bold; } 

table { border-collapse: collapse; border-spacing: 0; }
img { border: 0; max-width: 100%; }

h1 { color: #000000;font-family: 'Open Sans Condensed',sans-serif; font-size: 2em;line-height: 1.45em; margin-bottom: 0.8em;} 

h2 { display: inline-block; font-size: 2em;padding: 0.4em 0.2em; color: #666; font-weight: normal; font-family: 'Open Sans Condensed', sans-serif;}

p {  font-family: 'Open Sans',sans-serif;font-size: 1em;line-height: 1.65em;margin-bottom: 0.4em; padding: 0.4em 0 0 0.2em;}

p > span{clear: both;display: block;margin: 0.8em 0; text-align: justify;}

p > b {font-weight: bold;}
/* top navigation */

#navigation {  
  display: block;
  position: fixed;
  top: 0px;
  width: 100%;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

#topnav {  
  max-width: 920px;
  margin: 0 auto;
  font-family: 'Open Sans Condensed', sans-serif;
}

#topnav li { }

#topnav li a { 
  display: block;
  float: left;
  color: #53574d;
  padding: 0px 0.6875em;
  margin-right: 0.9375em;
  font-size: 1em;
  line-height: 4.222em;
  font-weight: bold;
  text-decoration: none;
  -webkit-transition: all 0.5s linear;
  -moz-transition: all 0.5s linear;
  transition: all 0.5s linear;
}
#topnav li a:hover { 
  color: #3369E8;
  background: rgba(255,255,255,0.65);
}

#topnav li.current a { 
  background: rgba(255,255,255,0.7);
  color: #3369E8;
  border-bottom: 4px solid #3369E8;
}

#home{font-size: 2em;line-height: 3.5625em;}

/* main content sections */
#content { display: block; width: 100%; font-size: 0.875em; }

.wrapper { 
  display: block;
  max-width: 920px;
  margin: 0 auto;
}

  .drop-shadow {
      position: relative;
      background-color: white;

  }
  .drop-shadow:before, .drop-shadow:after {
      bottom: 1em;
      box-shadow: 0 1em 1em rgba(0, 0, 0, 0.7);
      content: "";
      height: 20%;
      left: 0.625em;
      position: absolute;
      transform: rotate(-2deg);
      width: 50%;
      z-index: -1;
  }
  .drop-shadow:after {
      left: auto;
      right: 0.625em;
      transform: rotate(2deg);
  }

#home { 

    padding-bottom: 1.5em;
    padding-top: 3.5em;
}


#about, #impressum, #branchenbuch-desc {
  padding: 1em 0.375em;
  padding-top: 4.75em;
  margin-bottom: 2.5em;

}

#branchenbuch{
  padding-top: 7em;
}

#testangebot{
  padding-top: 7em;
}

#portfolio {
  min-height: 500px;
  padding-top: 4.75em;
}

#contact {
  padding-top: 4.75em;
  margin-bottom: 2.5em;
}


/* footer */
#foot {padding-bottom: 3.0em; background-color: #000;min-height: 300px; }

#foot h1{
  color: #fff;
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 2.25em;  
  width: 100%;
  margin:1em auto;
  -webkit-border-radius: 24px 2px 24px 2px;
   -moz-border-radius: 24px 2px 24px 2px;
   border-radius: 24px 2px 24px 2px;
   background-color:#3369E8;
}

#footnav, #beschwerde {  
  font-family: 'Open Sans', sans-serif;
  text-align: left;
}

#footnav li, #beschwerde li { }

#footnav li a, #beschwerde li a { 
  display: block;
  clear:both;
  color: #53574d;
  padding: 0px 0.625em;
  font-size: 0.75em;
  line-height: 1.625em;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 4px solid #000;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
#footnav li a:hover, #beschwerde li a:hover { 
  color: #3369E8;
  border-bottom: 4px solid #3369E8;
}


address{
  font-size: 1em;
  line-height: 1.25em;
}

/* social media icons*/
.social-bar a {text-decoration: none;font-size: 2.5em;margin-right:0.5em;}


/* Section divider */
.section-divider{
  text-align: center;
  /*margin:125px 0 0 0;*/
  color:#666;

  font-family: 'Droid Serif', Georgia, serif;
}

.section-divider.graded{
  background: url("../img/graded2.png") no-repeat scroll center bottom rgba(0, 0, 0, 0);
  padding-bottom: 7em;
}


.section-divider hr{
  border-top-color:#CCCCCC;
  border-top-style:solid;
  border-width:1px 0 0;
  display:block;
  height:1px;
  padding:0;
  width:450px;
  margin:2em auto;
}

/* basic contact inputs */
.cform { 
  display: block;
  width: 400px;
  padding: 6px 5px;
  color: #636363;
  font-size: 0.875em;
  margin-bottom: 0.75em;
}

.txtarea {
  display: block;
  width: 550px;
  height: 90px;
  padding: 0.375em;
  font-family: Arial, Helvetica, sans-serif;
  color: #636363;
  font-size: 0.875em;
  line-height: 1.2em;
  margin-bottom: 1em;
}

.submit-beschwerde
{
  clear:both;
  display: block;
  margin-top:1em;
}

/* --------------- */

.clear:before, .clear:after {
  content:"";
  display:table
}

.clear:after {
  clear:both
}

.clear {
  zoom:1
}    


/* rows */

.row {
    margin-left: 1.25em;
}
.row:before, .row:after {
    content: "";
    display: table;
}
.row:after {
    clear: both;
}

.row div{
    float: left;
    margin-left: 0.25em;
    max-width: 67%;
    padding: 0.55em;
  }

.row div>i{
  font-size: 12.5em;
}

.row3 {
    width:30%;
    float:left;
    text-align: center;
    margin-left: 1.25em;
}
.row3:before, .row3:after {
    content: "";
    display: table;
}
.row3:after {
    float:left;
}
/* Angebot */

div#angebot{
    display: block;
    min-height: 280px;
    padding: 1em 1.625em 1.625em 1.625em;
}

div.frage{
    display:none;
}

div.frage:first-of-type{
    min-height: 200px;
    display:block;
}


div.frage input[type="checkbox"]{
  display:none;
}

div.frage label {
  display: block;
  width: 50%;
  
  padding: 0.375em 0 0 1em;
  margin: 0 0.375em;
  
  float:left;

  color:#666;
  font-size: 1.25em;
  cursor: pointer;
}

div.frage label:before
{
  font-family:'FontAwesome';
  content: "\f096";
  padding-right:0.5em;
}

div.frage label:hover:before
{
  font-family:'FontAwesome';
  content: "\f046";
  padding-right:0.375em;
  color:#009925;

}

div.frage .frage-icon{
    float: right;
    font-size: 12.5em;
    margin: -0.25em 0.125em 0 0;
}

p#auswahl span:first-of-type:after{
  padding-right:0.375em;
  content : " / ";
}

p#auswahl span{
    clear: inherit;
    display: inline-block;
    margin: 0;
}

#reload{
  cursor:pointer;
}

/* Modal */

.pop-up {position:absolute; top:0; left:-500em}
.pop-up:target {position:static; left:0;}

.popBox {
  background:#ffffff;

  /* alternatively fixed width / height and negative margins from 50% */
  position:absolute; left:30%; right:30%; top:25%; bottom:25%;

  z-index:9999;
  /* padding:1%; removed 17/07/2012 */
  border:1px solid #666;

  opacity:0;

  -webkit-transition: opacity 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out;
  -o-transition: opacity 0.5s ease-in-out;
  -ms-transition: opacity 0.5s ease-in-out;
  transition: opacity 0.5s ease-in-out;
}
:target .popBox {position:fixed; opacity:1;}

.popBox:hover {box-shadow:0.25em 0.25em 0.375em #5a5a5a;}


.close {
  position:absolute; top:-0.75em; right:-0.75em; display:block; width:1em; height:1em;
  font:bold large/1 arial, sans-serif; text-align:center; text-decoration:none;
  background:#000; border:3px solid #fff; color:#fff;
  -moz-border-radius: 1em;
  -webkit-border-radius: 1em;
  border-radius: 1em;
  -moz-box-shadow: 0 0 1px 1px #3a3a3a;
  -webkit-box-shadow: 0 0 1px 1px #3a3a3a;
  box-shadow: 0 0 1px 1px #3a3a3a;
}
.close:before {content:"X"}
.close:hover {box-shadow:0 0 1px 1px #c00; background:#c00;}
.close span {text-indent:-200em; display:block;}

.lightbox {display:none;z-index:999; text-indent:-200em; background:#000; opacity:0.4; width:100%; height:100%; position:fixed; top:0; left:0; bottom:0; right:0;}
:target .lightbox {display:block}

.popScroll {position:absolute; top:9%; left:3%; right:3%; bottom:9%; overflow-y:auto; *overflow-y:scroll; padding-right:0.5em}


/* Content More */
.content-more label{
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    cursor: pointer;
}
.content-more label:after{
  cursor: pointer;
  font-family:'FontAwesome';
  content: "\f138";
  padding:0 0 0 5px;
}

.content-more label:hover:after{
  font-family:'FontAwesome';
  content: "\f13a";
  padding:0 0 0 5px;
}

.content-more input[type=checkbox] {
    display: none;
}
.content-more input:checked + div {
    display: block !important;

}

/* branchenbuch*/
.animated img.branchenbuch{
  width: 250px;
  top: 50%;
  left: 50%;
  margin-top: 50px;
}


.branchenbuch-logos{
  display: table;
  width: 100%;
  margin: 30px 0;
}

.branchenbuch-logos li {
width: 20%;
display: table-cell;
text-align: center;
}

.branchenbuch-logos img{
  width:128px;
   -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  filter: grayscale(100%);

  -webkit-transition: all 0.1s linear;
  -moz-transition: all 0.1s linear;
  -ms-transition: all 0.1s linear;
  -o-transition: all 0.1s linear;
  transition: all 0.1s linear;

}

.branchenbuch-logos img:hover{
  -webkit-filter: grayscale(0%);
  -moz-filter: grayscale(0%);
  -ms-filter: grayscale(0%);  
  filter: grayscale(0%);
}


/* testangebot */
.testangebot{
  display: table;
  width: 100%;
  margin: 30px 0 -55px 0;
}

.testangebot li {
width: 20%;
display: table-cell;
text-align: center;
}

.testangebot li span{
  font-family: 'Open Sans Condensed',sans-serif;
  font-size:2em;
  padding-bottom:1em;
  display:block;
}

.testangebot li i{
  color: #c1c1c1;
  font-size: 6em;
  text-decoration: none;
}

.vid_scroll i{
  float: left;
  font-size: 2em;
  padding: 0.5em;
  text-decoration: none;
  color: #c3c3c3; 
}
/* MISC */

  /*g star colors */
  .gBlue{color:#3369E8;}
  .gRed{color:#D50F25;}
  .gYellow{color:#EEB211;}
  .gGreen{color:#009925;}

  /* Validation error */
.errorbox{
     background: none repeat scroll 0 0 #FAD3C4;
    border: 1px solid #A75B4E;
    border-radius: 0.375em;
    color: #444444;
    display: none;
    font-size: 0.875em;
    margin: 0 0 1em;
    padding: 0.5em;
    max-width: 400px;
}

.only-mobile{display:none;}
.only-desktop{display: block;}
.mobile-menu {display:none;}
#resp_menu {display: none;}

  /* Media Queries Adjustments */


  @media all and (max-width: 1160px) {
       .only-mobile{display: block;}
    .only-desktop{display: none;} 
  }
  @media all and (max-width: 770px) {

    .wrapper iframe{height: auto;width: 100%;}
    .row div {
      max-width:inherit;
      }
    .animated i.icon-bullhorn {margin:0px;}
    .row div > i {display: none !important;}
    .animated{width:100%;text-align: center;}
    .row3{margin:inherit;width: 98%;}
    #foot{display: inline-table;}
    .only-mobile{display: block;}
    .only-desktop{display: none;}

    #contact [class^="icon-"],#contact [class*=" icon-"] {display:none;}
    .cform{width: 100%;}
    div#angebot {min-height: 180px;}
    div.frage label { width: 100%;}

    p{font-size: 1em !important;}
    h2{font-size: 2em !important;}
    h1{font-size: 1.5em !important;}

    #foot{background:none;}
    #reload{display: inline-block;margin: 1em 0;}


    /*responsive menu */
    #topnav{display: none;}
    #navigation {float:right;display: block;float:right;}
    #navigation input{display: none;}
    #navigation label { background: none repeat scroll 0 0 #3369E8;display: block;height: 18px;width: 30px;padding: 13px 13px 11px;float: right;}
    #navigation label span{background: none repeat scroll 0 0 #FFFFFF;display: block;height: 3px;margin-top: 3px;}
    #navigation input:checked ~ nav #topnav {display:inline-block;width: 100%;}
    #topnav li a{width:100%;display: inline-block;font-size: 1.5em; line-height: 2.7em;}

    img{max-width: 90%;}

    .section-divider.graded{width: 98%;}
    #foot{padding-left: 2%;width: 99%;}
    

    #footnav li a, #beschwerde li a {border-bottom:0px;padding: 1em 0.625em;}
  }

  /* Media Queries Adjustments */
  @media all and (max-width: 480px) {
    #topnav {
      font-size: 0.5em;
      margin: 0 auto;
    }
    #topnav i {font-size: 1em !important;}
    #foot{background:none;}
  }