/*
 * Kompatibilitäts-Stylesheet für das Update auf Contao 5.
 *
 * Contao 5 rendert Inhaltselemente mit neuen CSS-Klassen (content-* statt ce_*)
 * und ohne die Klasse "img-responsive" aus dem alten ce_image-Template.
 * Diese Datei bildet die alten Regeln aus main.css, design.css und resetbs.css
 * auf die neuen Klassennamen ab.
 */

/* Contao 5 vergibt die Klasse "media" an Text-mit-Bild-Elemente. Das kollidiert
   mit der gleichnamigen Bootstrap-3-Komponente (margin-top: 15px). */
.content-text.media {
    margin-top: 0;
}

/* Contao 4 rendert Text-mit-Bild als figure.image_container.float_above mit
   Bildabstand (imagemargin) - in Contao 5 kommt ein nacktes <figure>. */
.content-text.media--above > figure,
.content-image > figure {
    margin: 0 0 20px;
}

/* Alte .image_container-Regeln (design.css / styleIn) auf neue figure-Struktur */
.ContentStripe .content-image > figure {
    display: inline-block;
    margin-bottom: 20px;
}
#willkommen .content-image > figure {
    background-color: #FFEABF;
}
.InsideOut .content-image > figure:hover {
    background: none !important;
}

/* === Ersatz für .img-responsive aus dem alten ce_image-Template === */
.content-image img,
.content-gallery img,
.content-text img {
    max-width: 100%;
    height: auto;
}
.text-center .content-image img {
    margin: auto;
}
.logo img {
    max-width: 600px;
    margin-top: 20px;
    margin-bottom: 20px;
}
@media screen and (max-width: 700px) {
    .logo img {
        max-width: 90%;
    }
}

/* === aus files/theme/css/main.css === */
#main .content-text a {
    color: #fdc23e;
    font-weight: 500;
}
#main .content-text a:hover {
    color: #000000 !important;
    font-weight: 500;
}
#main .content-text a.btn {
    color: #fff !important;
}
.content-gallery ul:after {
    clear: both;
    content: "";
    display: block;
}
#products .content-text {
    margin-bottom: 50px;
}
.content-accordion .active {
    background: #fdc23e !important;
    border-color: #fdc23e;
    color: #ffffff !important;
    outline: none !important;
    margin-bottom: -2px;
    border-radius: 0px;
    border: none;
}
.content-accordion > div {
    color: #ffc108 !important;
}
.content-accordion .accordion {
    padding: 20px 20px;
}
section.content-accordion {
    margin-top: 30px;
}
.container section.content-accordion:first-child {
    margin-top: 0px;
}
.content-accordion .toggler {
    border: none;
    border-radius: 0px;
}
.rsts-view .content-image img {
    width: 100%;
}

/* === aus files/570-Interiordesign/css/design.css === */
.fullwidth .content-text {
    color: white;
    font-size: 16px;
}
header .content-form input.text {
    background: none;
    font-size: 14px;
    text-shadow: 0 none;
}
header .content-form input.text:hover,
header .content-form input.text:focus {
    background: white;
    color: #666;
}
.mod_login,
.content-comments {
    padding-top: 20px;
    padding-bottom: 20px;
}
.multicell .content-text {
    padding: 10px 0;
    margin: 10px 0;
    border-bottom: 1px solid #ccc;
}
.fullwidth .content-slider .content-text {
    padding: 200px 0;
}
.fixedTop .content-form {
    margin-top: 0px !important;
}
.content-gallery a.cboxElement:before,
.content-accordion .toggler:after {
    font-family: FontAwesome;
    padding-right: 5px;
}
.content-accordion .toggler:hover:after {
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
}
.content-accordion .toggler:hover:after,
.content-accordion .toggler.active:after {
    content: "\f068";
}
.content-accordion .toggler:after {
    content: "\f067";
    float: right;
}
.content-accordion .toggler:after {
    padding: 0 5px 0;
    font-size: 14px;
    -moz-transition: all .5s;
    -webkit-transition: all .5s;
    transition: all .5s;
}
.content-gallery figure {
    line-height: 0;
}
.content-gallery figure img {
    -webkit-transform: scale(1.3);
    transform: scale(1.3);
    -webkit-transition: all 0.7s ease;
    transition: all 0.7s ease;
}
#projekte .content-image {
    float: left;
    width: 25%;
}
#projekte .content-image figure {
    border-radius: 0;
}
#projekte .content-image .caption::after,
#projekte .content-image figcaption::after {
    display: block;
    padding-top: 20px;
}
#projekte .content-image .caption,
#projekte .content-image figcaption {
    opacity: 0;
}
#projekte .content-image .caption:hover,
#projekte .content-image figcaption:hover {
    background: none repeat scroll 0 0 rgba(250, 250, 250, 0.8);
    color: #2D2D2D;
    height: 100%;
    left: 0;
    padding-top: 50px;
    position: absolute;
    text-align: center;
    top: 0;
    transition: all 0.5s ease 0s;
    width: 100% !important;
    opacity: 1;
}

/* === aus files/570-Interiordesign/css/resetbs.css === */
.content-gallery ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
.content-gallery li {
    display: block;
    float: left;
}
#main .content-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #cbcbcb;
}
#main .content-table th {
    text-align: left;
}
#main .content-table th,
#main .content-table td {
    padding: 5px;
    border-bottom: 1px dotted #e7e7e7;
}
#main .content-table tr {
    -moz-transition: background .2s;
    -webkit-transition: background .2s;
    transition: background .2s;
}
#main .content-table tr:hover {
    background: #e7e7e7;
}
.content-accordion .toggler {
    cursor: pointer;
    padding: 10px;
    margin: 1px 0;
    color: white;
    border-top: 2px solid #cbcbcb;
    font-size: 18px;
    -moz-transition: background .5s;
    -webkit-transition: background .5s;
    transition: background .5s;
}
.content-accordion .accordion {
    padding: 10px 0px;
}
.content-downloads ul {
    padding-left: 0;
}
.content-downloads ul li {
    padding: 5px 0;
    border-bottom: 1px solid #e7e7e7;
    overflow: hidden;
}
.content-downloads ul li span.size {
    font-size: 12px;
}
.content-gallery img {
    opacity: 1;
    -moz-transition: all .5s;
    -webkit-transition: all .5s;
    transition: all .5s;
}
.content-gallery img:hover {
    -webkit-transform: scale(1.0);
    -moz-transform: scale(1.0);
    -ms-transform: scale(1.0);
    -o-transform: scale(1.0);
    transform: scale(1.0);
}
@media screen and (max-width: 980px) {
    header .content-form {
        clear: both;
    }
}
.content-downloads li img {
    display: block;
    margin: auto;
}
.content-downloads li {
    display: block;
    padding: 10px;
    margin: 10px;
    text-align: center;
    width: 23%;
    float: left;
}
.content-downloads span {
    color: #666;
    display: block;
}
@media screen and (max-width: 450px) {
    .fullwidth .content-slider .content-text {
        padding: 80px 0 !important;
    }
}
.content-swiper {
    position: relative;
}

/* Contao 5 rendert keine first/last-Klassen mehr in der Navigation */
#header .mainnavi ul.level_2 li:last-child a {
    border-bottom: 0;
}

/* Galerie-Bildunterschriften: figcaption hat keine .caption-Klasse mehr */
.content-gallery figcaption,
.content-image figcaption {
    line-height: 1.4;
}
