body {
  line-height: 1.7;
  background: #fff;
  font-family: 'Open Sans', sans-serif;
  color: #555;
}

a {
  color: #3E6E2D;
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: #5c5346;
  text-decoration: none;
}

.container.footer a:hover {
  color: #ccc;
  text-decoration: none;
}

.container.footer a {
  color: #fff;
}

.lightbox img,
.ce-media img {
  border: 1px solid #79976f;
}

/*------------------------------------*\
  #ÜBERSCHRIFTEN
\*------------------------------------*/
h1,
.h1,
h2,
.h2,
h3,
.h3 {
  clear: both;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  text-align: left;
}

h1,
.h1 {
  color: #006A87;
  font-family: 'Kalam';
  font-size: 36px;
  padding: 5px 0;
}

h2,
.h2 {
  color: #555;
  font-size: 24px;
  padding: 5px 0;

}

h3,
.h3 {
  font-size: 20px;
  font-weight: 600;
}

.footer h3 {
  color: #6D727A;
}

/*------------------------------------*\
  #TOP-BEREICH
\*------------------------------------*/
.top-wrapper {
  height: auto;
  background-color: #fff;
  background-image: url("/typo3conf/ext/biofarm_wachter_template/Resources/Public/Images/Template/bg02.png"), url("/typo3conf/ext/biofarm_wachter_template/Resources/Public/Images/Template/bg02.png"), url("/typo3conf/ext/biofarm_wachter_template/Resources/Public/Images/Template/bg01.png");
  background-position: left top, left top, left top;
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 100% 130px, 100% 130px, auto auto;
  clear: both;
  padding: 20px 0;
}

.navigation-wrapper {
  height: 75px;
  z-index: 99;
  border-bottom: 8px solid #006A87;
  clear: both;
  background-color: #74AA48;
}

.top-wrapper div.container {
  padding: 0;
}

.logo {
  position: absolute;
  z-index: 10;
}

.logo img {
  width: 230px;
  height: auto;
}

.scroll {
  position: fixed;
  top: 0;
  width: 100%;
  clear: both;
}

.scroll-2,
.scroll-3 {
  margin-top: 70px;
  clear: both;
}

.kontakt-top {
  padding: 0;
  display: flex;
  justify-content: right;
  align-items: center;
}

.kontakt-top .row {
  width: 100%;
}

.email {
  text-align: right;
}

.telefon {
  text-align: right;
}

.kontakt-top .email a.mail {
  color: #555;
}

/*------------------------------------*\
  #KOPFBILD / SLIDER
\*------------------------------------*/
.kopfslider,
.kopfbild {
  padding: 0;
  position: relative;
  clear: both;
  border-bottom: 8px solid #006A87;
}

.kopfslider,
.kopfbild {
  float: left;
  height: auto;
  max-height: 900px;
  overflow: hidden;
  width: 100%;
}

.kopfbild>img {
  padding-bottom: 0;
}

.kopfslider img,
.kopfbild img {
  width: 100%;
  height: auto;
}

.carousel-indicators {
  display: none;
}

.carousel-control.left {
  background-image: none;
}

.carousel-control.right {
  background-image: none;
}

.carousel-control-next i,
.carousel-control-prev i {
  font-size: 48px;
}

/*----- Patch für Firefox v.58 --------*/
.carousel-item {
  transition: -webkit-transform 0.5s ease;
  transition: transform 0.5s ease;
  transition: transform 0.5s ease, -webkit-transform 0.5s ease;
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
}

/*------------------------------------*\
  #CONTENT
\*------------------------------------*/
main {
  padding-top: 20px;
  clear: both;
}

.container.content-wrapper {
  margin: 20px auto 40px auto;
}

.content-wrapper {
  clear: both;
  background: #eee;
}

.content-wrapper .content .container {
  background: #fff;
  padding-top: 25px;
}

.content-wrapper .mediaconsent_element .container {
  padding-bottom: 25px;
}

.schriftzug-rechts {
  padding: 0;
}

.schriftzug-rechts>img {
  float: right;
  height: auto;
  width: 70%;
}

/*------------------------------------*\
  #FOOTER
\*------------------------------------*/
.footer-wrapper {
  background-color: #74AA48;
  padding: 0;
  color: #6D727A;
  border-top: 8px solid #74AA48;
  clear: both;
  z-index: 99;
}

.container.footer {
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  padding: 20px 0 10px 0;
}

.footer header h3 {
  font-size: 20px;
  color: #fff;
}

.footer a:hover {
  color: #3E6E2D !important;
}

.footer .ce-column div.ce-media {
  margin: 0;
}

.footer .ce-column div.ce-media img {
  border: none;
  width: 190px;
}

#c4,
#c4 h3 {
  text-align: right;
}

footer .footer-wrapper .footer .gridelement-3-spalten-33-33-33-mittlere-spalte #c5 .ce-textpic .ce-gallery .ce-outer .ce-inner .ce-row {
  display: flex;
  align-items: center;
}

footer .footer-wrapper .footer .gridelement-3-spalten-33-33-33-mittlere-spalte #c5 .ce-textpic .ce-gallery .ce-outer .ce-inner .ce-row img {
  width: 100%;
  height: auto;
}

footer .footer-icons {
  display: flex;
  justify-content: space-between;
}

footer .footer-icons img {
  width: auto;
  height: 80px;
}

.footer-logos {
  margin-bottom: 30px;
}

.footer-logos .logo-3 {
  text-align: right;
}

.footer-logos .logo-2 {
  text-align: center;
}

.footer-logos .logo-1 {
  text-align: left;
}

.footer-logos .logo-3 {}

.footer-logos img {
  width: auto;
  height: 90px;
}

footer .footer-wrapper img {
  width: auto;
  height: 60px;
}

/*------------------------------------*\
  #BOOTSTRAP-ICONS
\*------------------------------------*/
.kontakt-top i {
  background-color: #006A87;
  border-radius: 100%;
  box-shadow: 0 0 0 7px white, 0 0 0 8px #e0e0e0;
  color: #fff;
  cursor: default;
  display: inline-block;
  height: 2em;
  line-height: 2em;
  margin: 0 11px 0 0;
  padding: 0;
  text-align: center;
  width: 2em;
}

/*------------------------------------*\
  #TYPO3
\*------------------------------------*/
.lightbox>img {
  height: auto;
  width: 100%;
}

.ce-textpic {
  clear: both;
  padding: 0 0 10px 0;
}

.ce-media {
  margin-top: 8px;
  margin-left: 10px;
}

.ce-gallery {
  margin-top: 0 !important;
}

.ce-gallery img {
  display: block;
  height: auto;
  width: 100%;
  margin-bottom: 10px;
}

.ce-gallery-bootstrap img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.ce-intext.ce-right .ce-gallery {
  margin-left: 10px;
}

.align-center {
  text-align: center;
}

.ce-bodytext>div {
  margin: 0 0 15px;
}

figcaption {
  font-size: 12px;
  height: 30px;
  margin-top: 0;
  text-align: center;
}

#c51>p {
  margin-top: -10px;
  text-align: center;
}

a.mail img {
  margin-top: -6px;
}

hr {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(148, 0, 49, 0.75), rgba(0, 0, 0, 0));
  border: 0 none;
  float: left;
  height: 2px;
  width: 100%;
}

.bildspalte {
  margin-bottom: 30px;
}

.bildspalte p {
  margin-bottom: 25px;
}

/*------------------------------------*\
  #MASK
\*------------------------------------*/
.mask-bildergalerie div.mask-bildergalerie-wrapper {
  margin-bottom: 15px;
  -webkit-box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.5);
  box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.5);
}

.mask-bildergalerie div.bildspalte img {
  width: 100%;
  height: auto;
}

/********************* BILD-LINK-BOX *********************************/
.mask-bild-box-wrap {
  padding-bottom: 30px;
}

.mask-linkbox-wrap .mask-linkbox-zoom {
  overflow: hidden;
  position: relative;
}

.mask-linkbox-wrap .mask-linkbox-ueberschrift h2 {
  background: url(/typo3conf/ext/biofarm_wachter_template/Resources/Public/Images/Template/trans-60-schwarz.png);
  color: #fff;
  font-size: 20px;
  position: absolute;
  width: 100%;
  bottom: 20px;
  padding: 5px 10px;
  text-align: center;
}

.mask-linkbox-wrap .mask-linkbox-zoom .mask-linkbox-bild img {
    width: 100%;
  height: auto;
  transition: all 0.5s ease-in-out;
}

.mask-linkbox-wrap .mask-linkbox-zoom:hover .mask-linkbox-bild img {
  width: 100%;
  height: auto;
  transform: scale(1.1);
}

/**************************** GRIDELEMENTS *************************
************************************************************************/
.gridelement-4-spalten {
  margin-bottom: 30px;
}

.gridelement-2-spalten-50-50 {
  clear: both;
  float: left;
  margin-bottom: 20px;
  width: 100%;
}

.gridelement-3-spalten {
  float: left;
  width: 100%;
}

.gridelement-2-spalten-66-33 .linke-spalte {
  padding-left: 0;
}

/*--------------------------- FORMULAR -------------------------
---------------------------------------------------------------*/
#kontaktformular-17 .form-group {
  margin-bottom: 15px;
}

#kontaktformular-17 #c15 .form-check {
  padding-left: 0;
}

#kontaktformular-17 textarea {
  min-height: 250px;
}

#kontaktformular-17 .btn-primary {
  color: #fff;
  background-color: #3E6E2D;
  border-color: #3E6E2D;
}

/*------------------------------ MAP ---------------------------
---------------------------------------------------------------*/
.map {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.map .privacy-msg.privacy-map-msg {
  background-image: url(/typo3conf/ext/biofarm_wachter_template/Resources/Public/Images/Template/Mapdummy.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100% !important;
}


.map .privacy-msg.privacy-map-msg::after {
  content: "© OpenStreetMap contributors";
  position: absolute;
  left: 15px;
  bottom: 0;
}

.map .privacy-msg.privacy-map-msg p {
  background-image: url(/typo3conf/ext/biofarm_wachter_template/Resources/Public/Images/Template/trans-80-schwarz.png);
  width: 990px;
  position: absolute;
  left: 50%;
  margin-top: 50px;
  margin-left: -495px;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
}

.map iframe {
  width: 100%;
  margin-bottom: -6px;
}

.privacy-msg.privacy-script-msg a,
.privacy-msg.privacy-map-msg a {
  color: #3E6E2D;
}

.privacy-msg a.btn {
  background: #3E6E2D;
  border-color: #3E6E2D;
  color: #fff;
  margin-top: 20px;
  margin-bottom: 20px;
}

.privacy-msg.privacy-script-msg p a,
.privacy-msg.privacy-map-msg p a {
  color: #fff;
  text-decoration: underline;
}

.privacy-map-msg p a.btn {
  text-decoration: none;
}

/*-------------------- BELEGUNGSKALENDER ----------------------
---------------------------------------------------------------*/
[data-eobp-media="desktop"] .eobp {
  border: 1px solid rgba(112, 112, 112, 0.3);
  border-radius: 7px;
  padding: 45px 15px 0px 15px;
  margin: 15px 0 0 0 !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
}

.privacy-msg.privacy-calendar-msg {
  height: auto !important;
}

.mediaconsent_wrapper {
  padding: 0 15px 15px 15px;
  background: #eee;
}

/*-------------------- MEDIA-QUERIES ----------------------
---------------------------------------------------------------*/
@media (min-width: 1599px) {
  .carousel-caption {
    bottom: auto;
    top: 20px;
  }
}

@media (max-width: 1599px) {
  .kopfslider,
  .kopfbild {
    max-height: 600px;
  }
}

@media (max-width: 1199px) {
  .kontakt-top {
    justify-content: normal;
  }
}

@media (max-width: 991px) {
  .kopfslider,
  .kopfbild {
    max-height: 480px;
  }
  
  .top-wrapper {
    height: auto;
  }

  .top-wrapper div.container {
    width: 100%;
  }

  .navigation-wrapper {
    display: none;
  }

  .container {
    min-width: 100%;
  }

  .row {
    margin: 0;
  }

  .mask-bildergalerie .row,
  .frame-type-gridelements_pi1 .row,
  .mask-bild-box-wrap .row {
    margin-left: -15px;
    margin-right: -15px;
  }

  #c5 .row {
    margin-left: 0;
    margin-right: 0;
  }

  .content {
    padding: 0;
  }

  .logo {
    text-align: center;
  }

  .logo img {
    height: auto;
    padding-top: 0;
  }

  .kontakt-top {
    justify-content: center;
  }

  .footer .ce-column div.ce-media img {
    width: 140px;
  }

  .email,
  .telefon {
    text-align: center;
  }

  .icon.major {
    margin: 20px 15px 20px 0;
  }

  .scroll {
    position: relative;
    top: 0;
    width: 100%;
    clear: both;
  }

  .scroll-2,
  .scroll-3 {
    margin-top: 0;
    clear: both;
  }

  .kontakt-top {
    margin: 0 0 25px 0;
    padding: 0;
    text-align: center;
  }

  .gridelement-4-spalten div.col-md-3.col-sm-6.col-xs-12,
  .gridelement-2-spalten-50-50 div.col-sm-6.col-xs-12 {
    margin-bottom: 30px;
  }

  .logo {
    position: relative;
    z-index: 1;
  }
  
  .map .privacy-msg.privacy-map-msg p {
    width: calc(100% - 30px);
    left: unset;
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 767px) {
  .logo {
    margin-bottom: 10px;
  }
  
  .ce-gallery img {
    margin-bottom: 10px;
  }

  .ce-intext.ce-right .ce-gallery {
    margin-left: 0;
  }

  .ce-media {
    margin: 0;
  }

  .ce-row {
    margin-bottom: 0;
  }

  .top-wrapper {
    height: 270px;
  }

  .container.footer {
    font-size: 15px;
    padding: 15px;
  }

  .ce-right .ce-gallery {
    float: none;
    width: 100%;
  }

  .ce-column {
    width: 100%;
  }

  .email {
    text-align: center;
  }

  .powermail_input.form-control,
  .powermail_country.form-control,
  .powermail_date.form-control,
  .powermail_select.form-control,
  .powermail_textarea,
  .powermail_submit.btn.btn-primary {
    float: left;
    width: 100%;
  }

  .top-wrapper {
    background-image: none;
    height: auto;
  }

  .telefon {
    text-align: center;
  }

  .fa {
    margin: 30px 11px 0 0;
  }

  .row.mask-bildergalerie {
    margin: 0;
  }

  #c4,
  #c4 h3 {
    text-align: left;
  }

  .footer-wrapper .gridelement-3-spalten-33-33-33-linke-spalte,
  .footer-wrapper .gridelement-3-spalten-33-33-33-mittlere-spalte,
  .footer-wrapper .gridelement-3-spalten-33-33-33-rechte-spalte {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .kopfslider,
  .kopfbild {
    display: none;
  }

  .ce-textpic {
    margin: 0;
  }

  .logo {
    padding: 20px 0 0 0;
  }

  .logo img {
    width: 90%;
  }

  .container.content {
    margin: 0;
    padding: 0;
  }

  .icon.major {
    margin: 10px 15px 20px 0;
  }

  #c6 .row {
    margin-left: -15px;
    margin-right: -15px;
  }

  .footer-logos .logo-3 {
    margin-top: 0;
  }

  .footer-logos img {
    width: 100%;
    height: auto;
  }
}