/* Make HTML 5 elements display block-level for consistent styling */
article, aside, canvas, details, embed, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
  display: block;
}
command, datalist, keygen, mark, meter, progress, rp, rt, ruby, time, wbr {
  display: inline;
}
*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
  line-height: 1.2;
}
body, body.htmlarea-content-body {
  background: #F5F5F5;
  font-family: 'Ubuntu', Tahoma, Arial, sans-serif;
  color: #003f7d;
  text-align: center;
}
body.htmlarea-content-body {
  font-size: 1.4rem;
  text-align: left;
}

/* flexible Medien*/
img, embed, object, video {
 max-width: 100%;
 height: auto;
 width: auto;
}

.responsive-video {
  position: relative;
  padding-bottom: 56.25%; /* Default for 1600x900 videos 16:9 ratio*/
  padding-top: 0px;
  height: 0;
  overflow: hidden;
}

.responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ----------------------- Container ---------------------- */

.wrapper {
  position: relative;
  z-index: 1;
  max-width: 980px;
  min-width: 320px;
  margin: 0 auto;
  text-align: left;
}

header {
  position: relative;
  z-index: 10;
  background: url("gfx/bg_header_small.png") top center no-repeat;
  background-size: contain;
  margin-bottom: 18px;
}

nav {
  float: right;
  margin-top: 9%;
}

#buehne {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}


#content {
  position: relative;
  z-index: 2;
  font-size: 1.4rem;
  line-height: 1.2;
}


footer {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 20px !important;
}


.boxed-background-wrap {position: fixed; width: 100%; height: auto; left: 0; top: 0; overflow: hidden; z-index: -50; background: url(../images/bg.jpg) no-repeat top left; background-size: cover;}
.boxed-background-wrap img {max-width: 100%; display: block; opacity: 0;}


/* ----------------------- Navigation ---------------------- */

nav ul {
  margin: 0;
}
nav li {
  float: left;
  display: inline;
  position: relative;
}
nav li > a {
  float: left;
  display: block;
  padding: 5px 15px 6px 16px;
  font-size: 1.4rem;
  line-height: 20px;
  height: 31px;
  color: #FFF;
  text-transform: uppercase;
  text-decoration: none;
}
nav li:hover > a {
  color: #FFF;
}

li.leistungen > a:active, li.leistungen > a:focus,
li.service > a:active, li.service > a:focus,
li.kontakt > a:active, li.kontakt > a:focus,
li.impressum > a:active, li.impressum > a:focus {
  text-decoration: underline;
}

/* Icon on hover */
li.home { background: url("gfx/icon_home.png") center center no-repeat; }
li.leistungen:hover { background: url("gfx/icon_leistungen.png") center center no-repeat; }
li.service:hover { background: url("gfx/icon_service.png") center center no-repeat; }
li.kontakt:hover { background: url("gfx/icon_kontakt.png") center center no-repeat; }
li.impressum:hover { background: url("gfx/icon_impressum.png") center center no-repeat; }

li.home > a,
li.leistungen > a:hover,
li.service > a:hover,
li.kontakt > a:hover,
li.impressum > a:hover {
  opacity: 0;
}


/* 2.Ebene */
nav li > ul {
  position: absolute;
  top: 25px;
  left: 0;
  display: none;
  min-width: 100%;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all .30s ease;
     -moz-transition: all .30s ease;
      -ms-transition: all .30s ease;
       -o-transition: all .30s ease;
          transition: all .30s ease;
}
nav li:hover > ul {
  top: 30px;
  opacity: 1;
  visibility: visible;
}
nav li li {
  float: none;
  display: block;
}
nav li li > a {
  float: none;
  padding: 3px 15px;
}
nav li li.active > a {
  color: #af0917;
}


#nav_button {
  position: absolute;
  top: 45px;
  right: 10px;
  width: 50px;
  height: 42px;
  cursor: pointer;
  overflow: hidden;
  text-indent: -100000px;
  display: none;
}
/* burger menu */
#nav_button .btn-toggle {
  position: absolute;
  display: block;
  background-color: #FFF;
  top: 50%;
  left: 50%;
  margin-top: -1px;
  margin-left: -15px;
  z-index: 1;
  width: 30px;
  height: 3px;
}
#nav_button .btn-toggle:before,
#nav_button .btn-toggle:after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transform: rotate(0);
  -moz-transform: rotate(0);
  -ms-transform: rotate(0);
  -o-transform: rotate(0);
  background-color: #FFF;
  -webkit-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
}
#nav_button .btn-toggle:before { top: -9px; }
#nav_button .btn-toggle:after { bottom: -9px; }

/* open */
#nav_button.open {

}
#nav_button.open .btn-toggle,
#nav_button.open .btn-toggle:before,
#nav_button.open .btn-toggle:after {
  background-color: #83c142;
}



/* ---------------------- Slideshow -------------------------- */

#buehne {
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

p#slogan {
  position: absolute;
  z-index: 10;
  top: 4%;
  left: 3%;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}


/* ----------------------- Boxen ---------------------- */

.col-2, .col-3 {
  float: left;
  margin-right: 2%;
  margin-bottom: 2%;
  background: rgba(0,63,125,0.9);
  padding: 15px 18px;
  color: #FFF;
}
.col-2 a, .col-3 a { color: #FFF; }

.col-2:nth-child(2n),
.col-3:nth-child(3n) {
  margin-right: 0;
}

.col-2 { width: 49%; }
.col-3 { width: 32%; padding: 0; }


#kontakt {
  background: rgba(255,255,255,0.9);
  color: #003f7d;
  text-align: center;
  padding-bottom: 24px;
}
#kontakt p {
  margin-bottom: 10px;
  line-height: 1.4;
}

#kontakt a {
  color: #003f7d;
}



/* ----------------------- Klappinhalte ---------------------- */

.klappbox {
  color: #003f7d;
  text-align: center;
  cursor: pointer;    
}
.klappbox a {
  color: #003f7d;
}

.klappbox .wrap {
  position: absolute;
  z-index: 10;
}
.col-2.klappbox .wrap { width: 49%; }
.col-3.klappbox .wrap { width: 32%; }

.klappbox .head {
  background: rgba(255,255,255,0.9);
  padding: 10px 15px;
  margin-bottom: 0;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
}
.klappbox .head:hover,
.klappbox.open .head {
  background: #FFF;
}
/*
.klappbox .head:after {
  content: '  \2192';
  float: right;
  position: relative;
  top: -1px;
}
.klappbox.open .head:after {
  content: '  \2193';
  top: -3px;
}
*/

.klappbox .info {
  background: rgba(255,255,255,0.9);
  padding: 0 15px;
  font-size: 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.klappbox.open .info {
  padding: 10px 15px;
  max-height: 2000px;
  transition: max-height 0.5s ease;
}

.klappbox img {
  position: relative;
  z-index: 1;
  display: block;
}



#impressum {
  border-top: 3px solid #003f7d;
  font-size: 1.3rem;
}
#impressum .wrap {
  position: relative;
}
#impressum .head {
  background: none;
  color: #003f7d;
}

#impressum.open .wrap {
  background: rgba(0,63,125,0.9);
  color: #FFF;
}
#impressum.open .head,
#impressum.open a {
  color: #FFF;
}
#impressum .info {
  text-align: left;
  background: none;
  font-size: 1.3rem;
}
#impressum.open .info {
  padding: 0 15px 10px;
}
#impressum h3 {
  margin-top: 10px;
}


/* ----------------------- verschiedenes ---------------------- */

div.csc-textpic.csc-textpic-left.csc-textpic-above .csc-textpic-imagewrap,
div.csc-textpic.csc-textpic-left.csc-textpic-below .csc-textpic-imagewrap {
  float: none;
}
div.csc-textpic .csc-textpic-imagewrap figure,
div.csc-textpic figure.csc-textpic-imagewrap {
  display: block;
}
figcaption.csc-textpic-caption {
  display: block;
}

.csc-uploads > div {
  margin-bottom: 10px;
}

.left {
  float: left;
}
.right {
  float: right;
}
.clear {
  clear: both;
}

.align-left {
  text-align: left;
}
.align-center {
  text-align: center;
}
.align-right {
  text-align: right;
}
.align-justify {
  text-align: justify;
}

p {
  margin: 0 0 4px;
}

blockquote {
  display: inline-block;
  background: #F8F8F8;
  border-radius: 10px;
  padding: 2% 4%;
  margin: 0 0 15px !important;
  font-style: italic;
  text-align: left;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.4;
  margin-bottom: 10px;
}
h1 {
  font-size: 2.0rem;
}
h2 {
  font-size: 1.6rem;
  text-transform: uppercase;
}
h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 20px 0 5px;
}

a {
  color: #003f7d;
  text-decoration: underline;
}
a:hover {
  color: #85c242;
  text-decoration: underline;
}
a:active, a:focus {outline: none;}
a img { border: 0; }

a.external:before {
  content: '';
  background: url(gfx/arrow.png) 0 0 no-repeat;
  width: 17px;
  height: 17px;
  display: inline-block;
  position: relative;
  top: 4px;
  padding: 0 10px;
}
a.external:hover {
  color: #ffd700;
}

*:focus {
  outline: 0;
}

ol, ul {
  padding-left: 0;
  margin: 0 0 5px;
}
#service ul {
  margin-bottom: 0;
}

ul, li {
  list-style: none;
}
#content li, .htmlarea-content-body li {
  padding-left: 1em;
  text-indent: -.7em;
  padding-bottom: 5px;
}

#content li:before, .htmlarea-content-body li:before {
    content: "• ";
    padding-right: 5px;
}

#content li.csc-uploads-element,
#content li.csc-textpic-image {
  padding-left: 0;
  text-indent: 0;
}
#content li.csc-uploads-element:before,
#content li.csc-textpic-image:before {
  display: none;
}

ul.csc-uploads span.csc-uploads-fileName {
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0 0;
  font-size: 1em;
}
table p {
  padding-bottom: 0;
}
.contenttable th, .htmlarea-content-body th,
.contenttable td, .htmlarea-content-body td {
  background: #FCFCFC;
  padding: 5px 10px;
  vertical-align: top;
  border: 2px solid #FFF;
}
.contenttable th, .htmlarea-content-body th {
  background: #EEE;
}
.contenttable tr:nth-child(even) td {
  background: #F5F5F5;
}

fieldset {
  border: 0;
}
select,
textarea,
input {
  background: #FFF;
  border: 1px solid #DDD;
  padding: 5px;
  width: 70%;
  font-family: 'Ubuntu', Tahoma, Arial, sans-serif;
  font-size: 1.4rem;
  margin-bottom: 2%;
}
input[type="radio"] {
  width: 20px;
}
form textarea:focus,
form input[type="text"]:focus,
form select:focus {
  border-color: #777;
}

input[type="radio"] {
  width: 20px;
}
input[type="checkbox"] {
  width: 30px;
}
input[type="submit"] {
  background: #c00;
  width: 70%;
  margin: 10px 0 0 20%;
  text-transform: uppercase;
  cursor: pointer;
  color: #FFF;
}
input[type="submit"]:hover {
  box-shadow: 0 0 5px #333;
}


/* GoogleMaps */

input#saddr,
input#addr_submit {
  float: left;
  width: 40%;
  margin: 10px 5px 10px 0;
}
input#addr_submit {
  width: 55%;
  padding: 4px 5px;
}

