/*
 * Contao 4 -> Contao 5 DOM mapping for Glaserei Lerch.
 * Loaded before custom.css so existing project overrides keep priority.
 */

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  src: url("../../assets/fonts/raleway-v22-latin-regular.eot");
  src:
    local(""),
    url("../../assets/fonts/raleway-v22-latin-regular.eot?#iefix") format("embedded-opentype"),
    url("../../assets/fonts/raleway-v22-latin-regular.woff2") format("woff2"),
    url("../../assets/fonts/raleway-v22-latin-regular.woff") format("woff"),
    url("../../assets/fonts/raleway-v22-latin-regular.ttf") format("truetype"),
    url("../../assets/fonts/raleway-v22-latin-regular.svg#Raleway") format("svg");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 500;
  src: url("../../assets/fonts/raleway-v22-latin-500.eot");
  src:
    local(""),
    url("../../assets/fonts/raleway-v22-latin-500.eot?#iefix") format("embedded-opentype"),
    url("../../assets/fonts/raleway-v22-latin-500.woff2") format("woff2"),
    url("../../assets/fonts/raleway-v22-latin-500.woff") format("woff"),
    url("../../assets/fonts/raleway-v22-latin-500.ttf") format("truetype"),
    url("../../assets/fonts/raleway-v22-latin-500.svg#Raleway") format("svg");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #e4e4e4;
}

a,
body,
div,
em,
input,
label,
legend,
li,
ol,
p,
select,
span,
strong,
td,
th,
textarea,
u,
ul {
  font-family: "Raleway", sans-serif;
}

a,
body,
div,
input,
label,
li,
legend,
ol,
p,
select,
td,
th,
textarea,
u,
ul {
  font-size: 16px;
}

h1 {
  margin: 0 0 12px;
  padding: 0;
  font: 14px "Raleway", sans-serif;
  font-weight: bold;
  color: #75b844;
}

h2 {
  margin: 30px auto 40px;
  padding: 0;
  text-align: center;
  font: 36px "Raleway", sans-serif;
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
}

h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font: 16px "Raleway", sans-serif;
  color: #2a2225;
  text-transform: uppercase;
  font-weight: 500;
}

p {
  font-size: 16px;
  line-height: 1.5;
  color: #2a2225;
  font-weight: 300;
}

a {
  text-decoration: none;
  color: #f00b77;
}

a:hover {
  text-decoration: underline;
  color: #f00b77;
}

img {
  vertical-align: middle;
  border: 0;
}

p,
pre,
form,
figure {
  margin: 0;
  padding: 0;
}

table {
  border-spacing: 0;
}

:focus {
  outline: 0;
}

strong {
  font-weight: bold;
}

#main .inside ul {
  margin-bottom: 0;
  margin-left: 15px;
  color: #2a2225;
  list-style-type: disc;
}

#main .inside p {
  hyphens: auto;
}

.toggler span {
  display: inline-block;
  margin-bottom: 0;
}

#wrapper,
#header .inside,
#main .inside,
#footer .inside {
  margin-right: auto;
  margin-left: auto;
}

#header .inside,
#main .inside,
#footer .inside {
  max-width: 1200px;
}

#top_image {
  top: 3px;
  position: fixed;
  z-index: 5000;
  left: 50%;
  transform: translate(-50%, 0);
}

#leistungen {
  margin-bottom: 40px;
}

#main .inside .mod_article {
  min-height: 300px;
}

.mod_article.home {
  padding-top: 0;
}

#adresse {
  width: 100%;
  left: 0;
  top: 121px;
  position: fixed;
  z-index: 2000;
}

.ce_text,
.content-text {
  max-width: 880px;
  margin-right: auto;
  margin-bottom: 50px;
  margin-left: auto;
}

.ce_text,
.content-text,
.teaser {
  line-height: 1.5;
}

.ce_text .image_container,
.content-text figure {
  margin-right: 30px;
}

.ce_text img,
.content-text img {
  max-width: 400px;
}

#footer {
  background-color: #f10b77;
  box-shadow: 0 10px 5px 0 rgba(0, 0, 0, 0.11);
}

#footer .inside {
  padding-top: 4px;
}

.footercontent {
  clear: both;
  margin-top: 50px;
  margin-right: auto;
  margin-left: auto;
}

.footercontent p {
  color: #2a2225;
}

#footer p {
  font-size: 16px;
}

.ce_gallery .caption,
.content-gallery figcaption {
  color: #999;
}

#main .inside .ce_gallery ul,
#main .inside .content-gallery ul {
  margin-left: 0;
  list-style-type: none;
}

#main .inside .ce_gallery h3,
#main .inside .content-gallery h3 {
  margin-bottom: 10px;
}

.ce_gallery ul li,
.content-gallery ul li {
  list-style-type: none;
}

.content-gallery figure {
  margin-right: 10px;
  margin-bottom: 10px;
}

.ce_accordion {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 40px;
  padding-left: 40px;
}

.ce_accordion.ce_text,
.ce_accordion.content-text {
  margin-bottom: 20px;
}

.toggler {
  margin-top: 0;
  margin-bottom: 0;
  padding: 7px 10px;
  background-color: #a76b84;
  font-size: 24px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
}

.toggler::before {
  content: "+";
}

.toggler.active::before {
  content: "-";
}

.accordion div {
  padding: 40px 0 20px 30px;
}

span {
  display: block;
  margin-bottom: 1em;
}

.nofloat {
  display: block;
}

#toplink {
  bottom: 36px;
  right: 30px;
  position: absolute;
}

.twocols {
  max-width: 880px;
  padding-right: 40px;
  padding-left: 40px;
  column-count: 2;
  column-gap: 30px;
  orphans: 3;
  widows: 3;
}

.image_container,
.content-image figure {
  position: relative;
}

.ce_image .caption,
.content-image figcaption {
  left: 0;
  right: 0;
  top: 20px;
  position: absolute;
  text-align: center;
  font-size: 16px;
  color: #2a2225;
}

.content-image figcaption {
  color: #000;
}

.bottlogo {
  text-align: center;
}

.gmap {
  float: left;
}

.konwrapper,
.rs-columns {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 40px;
  padding-left: 40px;
}

.rs-columns {
  display: block;
}

.rs-column {
  margin-top: 0;
  margin-right: 30px;
  margin-bottom: 18px;
}

.video-container {
  height: 0;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 56.25%;
}

.video-container iframe,
.video-container object,
.video-container embed {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  position: absolute;
}

.nav-mobile {
  width: 100%;
  display: none;
  padding-left: 35px;
  background-image: url("../../files/layout/mbar.png");
  background-position: left center;
  background-repeat: no-repeat;
  font-size: 25px;
}

.nav {
  width: 100%;
  height: 114px;
  left: 0;
  top: 0;
  position: fixed;
  text-align: center;
  z-index: 1000;
  transition: background-color 300ms;
  box-shadow: 0 10px 5px 0 rgba(0, 0, 0, 0.11);
}

.transno {
  background-color: #fff;
}

.trans {
  background-color: rgba(238, 235, 246, 0.8);
}

.nav ul {
  width: 840px;
  left: 50%;
  position: absolute;
  margin-top: 84px;
  margin-right: auto;
  margin-left: auto;
  transform: translate(-50%, 0);
}

.nav ul li {
  float: left;
  margin-right: 45px;
}

.nav ul li.last {
  margin-right: 0;
}

.nav ul li a {
  display: block;
  padding-bottom: 9px;
  font-size: 16px;
  text-decoration: none;
  color: #493e43;
  text-rendering: optimizeLegibility;
}

.nav ul li a:hover,
.nav ul li a.active {
  text-decoration: none;
  color: #f00b77;
}

.navfooter {
  width: 100%;
  height: 72px;
  position: absolute;
  text-align: center;
  border-bottom: 2px solid #e6e8ea;
  z-index: 1000;
}

#footer ul {
  width: 680px;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 10px;
  padding-left: 10px;
}

#footer ul li {
  float: left;
  margin-right: 15px;
}

#footer ul li.last {
  margin-right: 0;
}

#footer ul li a {
  display: block;
  font-size: 18px;
  font-weight: normal;
  text-decoration: none;
  color: #fff;
}

@media screen and (max-width: 768px) {
  #top_image {
    left: 40px;
    transform: none;
  }

  .nav {
    border-bottom: 0;
    z-index: 4000;
  }

  .nav-mobile {
    width: auto;
    right: 30px;
    top: 13px;
    position: absolute;
    display: inline-block;
    color: #a76b84;
    cursor: pointer;
  }

  .nav ul {
    width: 100%;
    max-width: 100%;
    top: 114px;
    position: absolute;
    display: none;
    margin-top: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .nav ul li {
    float: none;
    margin-right: 0;
  }

  .nav ul li a {
    width: 100%;
    display: block;
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: #cba0b3;
    font-size: 24px;
    color: #fff;
  }

  .nav ul li a:hover,
  .nav ul li a.active {
    background-color: #a76b84;
    border-bottom: 0;
    color: #fff;
  }

  .nav ul li a.navhome {
    width: auto;
    height: auto;
    padding-top: 15px;
    padding-bottom: 15px;
    background-image: none;
    font-size: 20px;
  }

  .navfooter {
    display: none;
  }

  .rs-column.-large-first-row {
    margin-top: 0;
  }

  .content-image figcaption {
    top: 5px;
  }

  .ce_accordion,
  .rs-columns {
    padding-right: 20px;
    padding-left: 20px;
  }

  .footernav {
    display: none;
  }
}

@media screen and (max-width: 550px) {
  .nav-mobile {
    right: 20px;
    top: 80px;
  }

  #top_image p {
    margin-top: 25px;
    font-size: 20px;
    line-height: 26px;
  }

  .twocols {
    column-count: 1;
    column-gap: 0;
  }

  .footernav {
    display: none;
  }

  td {
    display: block;
    text-align: left !important;
  }

  #top_image {
    max-width: 230px;
    left: 20px;
  }

  .mobiletd {
    font-weight: bold;
  }
}

@media screen and (min-width: 769px) {
  .nav ul {
    display: block !important;
  }
}
