/* -- Components
 * 
 * 1 Standard-Components
 * 2 Special-Components
 *
 */



/* -- 1 Standard-Components
 * 
 * typo3 content-elements – Abstand
 * divided
 * copyright
 * form
 * text-wrapper
 * image-wrapper
 * Abstand bei Element mit eingeschränkter Breite
 * box
 * accordion
 * breadcrumb
 * slider
 * multislider
 *
 */

/* -- typo3 content-elements – Abstand
--------------------------------------------------------- */
.frame.frame-type-text,
.frame.frame-type-textpic,
.frame.frame-type-textmedia,
.frame.frame-type-uploads,
.tx-solr-search-form,
.search-results {
    padding-left: 1em;
    padding-right: 1em;
    max-width: 1130px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
	.frame.frame-type-text,
    .frame.frame-type-textpic,
    .frame.frame-type-textmedia,
    .frame.frame-type-uploads,
    .tx-solr-search-form,
    .search-results {
        padding-left: 2em;
        padding-right: 2em;
    }
}
@media (min-width: 992px) {
    .frame.frame-type-text,
    .frame.frame-type-textmedia header,
    .frame.frame-type-textmedia.frame-layout-1,
    .frame.frame-type-textmedia .ce-bodytext,
    .frame.frame-type-uploads,
    .tx-solr-search-form,
    .search-results {
        max-width: 810px;
        padding-left: 0;
        padding-right: 0;
        margin-left: auto;
        margin-right: auto;
    }
}
.col-wrapper .frame.frame-type-text,
.col-wrapper .frame.frame-type-textpic,
.col-wrapper .frame.frame-type-textmedia {
    padding-left: 0;
    padding-right: 0;
}

/* -- divided
--------------------------------------------------------- */
.divided {
    border-top: 1px solid #efefef;
}
#teaser + .divided {
    margin-top: 0;
}
.divided .frame {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
@media (min-width: 768px) {
    .divided {
        margin-top: 2.5em;
    }
}
@media (min-width: 992px) {
    .divided {
        margin-top: 4.333%;
    }
    .divided .col-12.col-lg-6 > .text-wrapper {
        padding: 6.333%;
    }
}
@media (min-width: 1200px) {
    .divided {
        margin-top: 6.333%;
    }
    .divided .col-12.col-lg-6 > .text-wrapper {
        padding: 8.333% 16.666%;
    }
}

/* -- copyright-list
--------------------------------------------------------- */
.copyright-list {
	border: 1px solid #dcdcdc;
    overflow-y: auto;
    max-height: 600px;
}
.copyright-list > a {
	display: inline-block;
    padding: 1em;
    background-color: #e0e0e0;
    width: 100%;
}
.copyright-list > a:hover {
	background-color: #d8d8d8;
}
.copyright-list ol {
	padding: 0;
    list-style-type: none;
    margin: 0;
}
.copyright-list ol li {
	padding: 1em;
    border-bottom: 1px solid #efefef;
}
.copyright-list ol li .file-title {
	white-space: pre-wrap;
	word-break: break-all;
	font-size: .875em;
	color: #A0A0A0;
}


/* -- form
--------------------------------------------------------- */
fieldset {
    padding: 1em;
    border: 1px solid #dcdcdc;
    margin-bottom: 2em;
}
fieldset legend {
    width: auto;
    padding: 0 .25em;
}
.form-control {
    font-weight: 400;
    height: auto;
    padding: .75rem 1rem;
    border-radius: 0;
}
.form-check .add-on.form-check-label .add-on {
    position: absolute;
    left: 0;
    top: .375em;
}


/* -- text-wrapper
--------------------------------------------------------- */
.text-wrapper {
    position: relative;
    padding: 1em;
}
.text-wrapper > *:first-child,
.text-wrapper > *:first-child > *:first-child,
.text-wrapper > *:first-child > *:first-child > *:first-child {
	margin-top: 0;
}
.text-wrapper > *:last-child {
	margin-bottom: 0;
}

/* -- image-wrapper
--------------------------------------------------------- */
.image-wrapper {
    position: relative;
    display: inline-block;
}

/* -- media-wrapper
--------------------------------------------------------- */
.media-wrapper {
    position: relative;
    display: inline-block;
}

/* -- Abstand bei Element mit eingeschränkter Breite
--------------------------------------------------------- */
hr.ce-div,
.news,
.multi-boxes,
.breadcrumb-wrapper,
.media-carousel,
.copyright-list-wrapper,
.accordion-wrapper,
main > .box,
main > .contact-box,
main > .quote-box,
main > .media,
.col-wrapper,
.imagetext-carousel {
    margin: 3em 1.5em;
}
main > .frame:last-child {
    margin-bottom: 5em;
}
@media (min-width: 768px) {
	hr.ce-div,
    .news,
    .multi-boxes,
    .breadcrumb-wrapper,
    .media-carousel,
    .copyright-list-wrapper,
    .accordion-wrapper,
    main > .box,
    main > .contact-box,
    main > .quote-box,
    main > .media,
    .col-wrapper,
    .imagetext-carousel {
        margin: 4em 2em;
    }
}
@media (min-width: 992px) {
	hr.ce-div,
    .news,
    .multi-boxes,
    .breadcrumb-wrapper,
    .media-carousel,
    .copyright-list-wrapper,
    .accordion-wrapper,
    main > .box,
    main > .contact-box,
    main > .quote-box,
    main > .media,
    .col-wrapper,
    .imagetext-carousel {
        margin: 4.333%;
    }
}
@media (min-width: 1200px) {
	hr.ce-div,
    .news,
    .multi-boxes,
    .breadcrumb-wrapper,
    .media-carousel,
    .copyright-list-wrapper,
    .accordion-wrapper,
    main > .box,
    main > .contact-box,
    main > .quote-box,
    main > .media,
    .col-wrapper,
    .imagetext-carousel {
        margin: 6.333% 8.333%;
    }
}
.multi-boxes.multi-boxes-slider {
    margin-left: 0;
    margin-right: 0;
}
/* Kein Abstand bei zweispaltigem Layout */
.col-wrapper hr.ce-div,
.col-wrapper .news,
.col-wrapper .multi-boxes,
.col-wrapper .breadcrumb-wrapper,
.col-wrapper .media-carousel,
.col-wrapper .copyright-list-wrapper,
.col-wrapper .accordion-wrapper,
.divided hr.ce-div,
.divided .news,
.divided .multi-boxes,
.divided .breadcrumb-wrapper,
.divided .media-carousel,
.divided .copyright-list-wrapper,
.divided .accordion-wrapper {
    margin-left: 0;
    margin-right: 0;
}


/* -- box
--------------------------------------------------------- */
.box {
    max-width: 810px;
    margin-bottom: 2em;
    position: relative;
}
a.box {
    margin-bottom: 2em;
}
a.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 20px rgba(160, 160, 160, .3);
}
a.box .media-wrapper {
    border-bottom: 0;
}
.box .text-wrapper {
    position: relative;
    z-index: 2;
}
.box .text-wrapper::before {
	position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    content: '';
    height: 0;
    min-height: 1.5em;
    padding-top: 7.5%;
    margin-bottom: -.75em;
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    background-image: url(../gfx/box-himmel-bordertop.svg);
}
.box.bg-primary .text-wrapper::before {
    background-image: url(../gfx/box-gold-bordertop.svg);
}
.box.bg-secondary .text-wrapper::before {
    background-image: url(../gfx/box-grauschwarz-bordertop.svg);
}
.slider .box .text-wrapper::before {
	background-position: top;
}
.box .icon-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3em;
    height: 3em;
    border-radius: 3em;
    line-height: 3em;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(239,179,10,.3);
}
.carousel .slider-item {
    overflow: hidden;
}
@media (min-width: 576px) {
    .multi-boxes .box {
        margin-bottom: 0;
        min-height: 100%;
    }
    .multi-link-boxes .row .col-12.col-sm-6,
    .multi-boxes .row .col-12.col-sm-6 {
        margin-bottom: 2em
    }
}
@media (min-width: 992px) {
    .carousel .box {
        height: 100%;
    }
    .carousel .box .text-wrapper {
        min-height: 100%;
        padding: 2em;
    }
    .carousel .box .text-wrapper::before {
        position: absolute;
        bottom: -1px;
        left: 100%;
        margin-left: -1px;
        right: auto;
        content: '';
        height: 102%;
        min-height: none;
        min-width: 2em;
        padding-top: 0;
        margin-bottom: 0;
        background-size: 100%;
        background-position: right;
        background-image: url(../gfx/carousel-border.svg);
    }

}
@media (min-width: 992px) {
    main > .box {
        margin-left: auto;
        margin-right: auto;
    }
    .slider .box .text-wrapper::before {
       height: 3em;
    }
}

/* -- .accordion
--------------------------------------------------------- */
.accordion-wrapper {
    max-width: 1088px;
}
.accordion .accordion-element {
    margin-bottom: .125em
}
.accordion .btn-secondary {
    position: relative;
    padding-right: 3em;
    border-radius: 0;
    margin: 0;
}
.accordion .btn-secondary .icon-wrapper {
	position: absolute;
	right: 1.875rem;
	transform: rotate(180deg);
    transition: all .15s ease-in-out;
    -webkit-transition: all .15s ease-in-out;
    -moz-transition: all .15s ease-in-out;
    -o-transition: all .15s ease-in-out;
}
.accordion .btn-secondary.collapsed .icon-wrapper {
	transform: rotate(0deg);
}
@media (min-width: 1200px) {
    .accordion-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
    .accordion-wrapper .text-wrapper {
        padding: 2em;
    }
}

/* -- .ce-uploads
--------------------------------------------------------- */
.ce-uploads {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.ce-uploads .input-group {
    box-shadow: 0 3px 6px rgba(0,0,0,.16);
    border-radius: 1em;
}
.ce-uploads .file-size {
    display: inline-block;
    min-width: 64px;
    text-align: right;
}

/* -- .breadcrumb
--------------------------------------------------------- */
.breadcrumb-wrapper {
    margin-top: 1em;
    direction: rtl;
    overflow-x: auto;
    display: block;
    padding: 0;
}
.breadcrumb {
    direction: ltr;
    background-color: transparent;
    padding: 0;
    margin: 0 0 .5em;
    white-space: nowrap;
    display: inline-block;
}
.breadcrumb li {
    display: inline-block;
    white-space: nowrap;
}
.breadcrumb-item+.breadcrumb-item::before {
    content: '›';
	opacity: .75;
}

/* -- Slider
--------------------------------------------------------- */
.carousel {
    margin-bottom: 3em;
}
.carousel-control-prev.btn-primary,
.carousel-control-next.btn-primary {
    padding: 0;
    display: block;
    width: 2.5em;
    height: 2.5em;
    line-height: 2.5em;
    text-align: center;
    opacity: 1;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 0;
    z-index: 4;
}
.carousel-control-prev.btn-primary:hover,
.carousel-control-next.btn-primary:hover {
    opacity: 1;
}
.carousel-control-next.btn-primary {
    left: auto;
    right: 0;
    transform: translate(50%,-50%);
}
.carousel-indicators {
    top: auto;
    bottom: -2em;
}
.carousel-indicators li {
    display: block;
    width: .5em;
    height: .5em;
    background-color: #fff;
    border-radius: 50%;
    opacity: 1;
}
/* indicators with text */
.w-text .carousel-inner {
    overflow: visible;
}
.w-text .carousel-indicators {
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    position: relative;
    margin: 0 1em;
    justify-content: flex-start
}
.w-text .carousel-indicators li {
    text-indent: 0;
    width: 20%;
    border: 0;
    border-radius: 0;
    height: auto;
}
.w-text .carousel-indicators li span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: .5em;
    font-size: .875rem;
}
@media (min-width: 992px) {
    .carousel-control-prev.btn-primary,
    .carousel-control-next.btn-primary {
        width: 3.5rem;
        height: 3.5rem;
        line-height: 3.5rem;
    }
}
@media (min-width: 1400px) {
    .media-carousel {
        margin-left: auto;
        margin-right: auto;
        max-width: 1364px;
    }
}

/* -- Multi-Slider
--------------------------------------------------------- */
.imagetext-carousel {
    margin-left: 0;
    margin-right: 0;
}
.slick-prev,
.slick-next {
    position: absolute;
    top: 25%;
    display: block;
    width: 2.5em;
    height: 2.5em;
    line-height: 2.5em;
    text-align: center;
    padding: 0;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    z-index: 89;
}
.slick-prev.slick-disabled,
.slick-next.slick-disabled {
    opacity: .25;
}
.slick-prev {
    left: .25em;
}
.slick-next {
    right: .25em;
}
@media (min-width: 768px) {
    .slick-prev,
    .slick-next {
        top: 35%;
    }
    .slick-prev {
        left: 6.333%;
    }
    .slick-next {
        right: 6.333%;
    }
}
@media (min-width: 992px) {
    .slick-prev,
    .slick-next {
        width: 3.5rem;
        height: 3.5rem;
        line-height: 3.5rem;
    }
    .slick-prev {
        left: 14.333%;
    }
    .slick-next {
        right: 14.333%;
    }
}
@media (min-width: 1200px) {
    .slick-prev {
        left: 23%;
    }
    .slick-next {
        right: 23%;
    }
}
/* Dots */
.slick-dotted.slick-slider {
    margin-bottom: 4em;
}
.slick-dots {
    position: absolute;
    bottom: -3em;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}
.slick-dots li {
    position: relative;
    display: inline-block;
    margin: 0 .125rem;
    padding: 0;
}
.slick-dots li button {
    display: block;
    width: .75rem;
    height: .75rem;
    padding: 0;
    cursor: pointer;
    outline: none;
    background-color: transparent;
    border-radius: 50%;
    text-indent: -9999px;
    border: 2px solid #ccc;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
    background-color: #ccc;
}
.slick-dots li.slick-active button {
    background-color: #333;
    border-color: #333;
}
/* Items centered */
.slider .slick-slide {
    outline: 0;
}
.slider .slick-slide > * {
    margin: 1em;
    opacity: 0.8;
    transition: all 300ms ease;
} 
.slider .slick-center.slick-current > * {
    -moz-transform: scale(1.08);
    -ms-transform: scale(1.08);
    -o-transform: scale(1.08);
    -webkit-transform: scale(1.08);
    opacity: 1;
    transform: scale(1.08);
}
.slider .slider-item .box {
    margin: 0;
    max-width: none;
    opacity: 0;
    pointer-events: 0;
    transition: all 300ms ease;
}
.slider .slick-center.slick-current .box {
    opacity: 1;
    pointer-events: all;
}
@media (min-width: 992px) {
    .slider .slider-item .box .text-wrapper {
        padding: 2em;
    }
}
/* align vertically */
.image-carousel-logos .slick-track {
  display: flex;
}
.image-carousel-logos .slick-track .slick-slide {
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
}
/* reposition prev next buttons */
.image-carousel-logos .slick-prev,
.image-carousel-logos .slick-next {
    top: 50%;
}
.image-carousel-logos .slick-prev {
    left: 2em;
}
.image-carousel-logos .slick-next {
    right: 2em;
}


/* -- 2 Special-Components
 * 
 * header / teaser
 *  contact-box
 *
 */


/* -- copyright-hint
--------------------------------------------------------- */
.copyright-hint {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: .75rem;
    font-weight: 400;
    display: inline-block;    
    padding: .25em .5em;
    letter-spacing: .25px;
    z-index: 3;
}
.imagetext-carousel .copyright-hint {
    bottom: 4em;
}
.box .copyright-hint {
    bottom: auto;
    top: 0;
}
@media (max-width: 767px) {
    .teaser.teaser-with-bg .copyright-hint {
        bottom: 2em;
    }
}

/* -- teaser
--------------------------------------------------------- */
.teaser {
    position: relative;
    margin-bottom: 3em;
}
.teaser > .text-wrapper:first-child,
.teaser > .image-wrapper:not(.vh-100) + .text-wrapper {
    margin: 7em auto 0;
    text-align: center;
    max-width: 1100px;
}
.teaser > .image-wrapper:not(.vh-100) + .text-wrapper {
    margin-top: 2em;
}
.teaser .teaser-text {
    max-width: 810px;
    margin: 0 auto;
}
.teaser .image-wrapper.vh-100,
.teaser .image-wrapper.vh-lg-100 {
    position: relative;
    background-size: cover;
    background-position: top center;
}
.teaser .image-wrapper.vh-100::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}
.teaser .image-wrapper.vh-100 + .text-wrapper {
    position: absolute;
    bottom: 3em;
    color: #fff;
    text-align: center;
    z-index: 2;
}
.teaser .image-wrapper.vh-100 + .text-wrapper h1 {
    /*text-transform: uppercase;*/
    color: #fff;
}
.teaser .image-wrapper.vh-100 + .text-wrapper h1 span {
    color: #fff;
    text-transform: none;
}
/* Variante 2 teaser-with-bg */
.teaser .outer-text-wrapper {
    position: relative;
}
.teaser .outer-text-wrapper::before {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;    
    content: '';
    height: 0;
    min-height: 1.5em;
    padding-top: 7.5%;
    margin-bottom: -.75em;
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    background-image: url(../gfx/box-lightgrey-bordertop.svg);
    z-index: 2;
}
.teaser .outer-text-wrapper h1 {
    transform: none;
    text-align: center;
}
@media (min-width: 768px) {
    .teaser.teaser-with-bg {
        overflow: hidden;
    }
    .teaser > .image-wrapper:not(.vh-100) + .text-wrapper {
        margin-top: 3em;
    }
    .teaser .image-wrapper.vh-100 + .text-wrapper {
        text-align: left;
        padding-left: 2em;
        max-width: 800px;
        bottom: 8.333%;
    }
    .teaser .image-wrapper.vh-100 + .text-wrapper h1 {
        font-size: 2.25em;
        text-align: left;
    }
    .teaser .outer-text-wrapper {
        min-height: 100%;
        padding: 3em 2em 4em;
    }
    .teaser .outer-text-wrapper::before {
        bottom: -1px;
        left: 100%;
        height: 102%;
        min-width: 3.5em;
        padding-top: 0;
        margin-bottom: 0;
        background-position: right;
        background-image: url(../gfx/teaser-border.svg);
    }
    .teaser .outer-text-wrapper h1 {
        font-size: 2em;
        text-align: left;
    }
    .vh-md-100 {
        height: 100% !important;
        height: 100vh !important;
        height: calc(var(--vh-100,1vh) * 100) !important;
    }
}
@media (min-width: 992px) {
    .vh-lg-100 {
        height: 100% !important;
        height: 100vh !important;
        height: calc(var(--vh-100,1vh) * 100) !important;
    }
    .teaser .outer-text-wrapper .text-wrapper {
        padding-top: 8em;
    }

}
@media (min-width: 1200px) {
    .teaser .image-wrapper.vh-100 + .text-wrapper {
        padding-left: 8.333%;
        bottom: 8.333%;
    }
    .teaser .image-wrapper.vh-100 + .text-wrapper h1 {
        font-size: 2.75em;
    }
    .teaser .outer-text-wrapper .text-wrapper {
        padding-left: 3em;
        padding-right: 0;
    }
}

/* -- btn-scroll-down
--------------------------------------------------------- */
.btn-scroll-down {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 1.5em;
    padding: 0;
}
@media (min-width: 768px) {
    .teaser .outer-text-wrapper .btn-scroll-down {
        left: 2em;
        transform: translateX(0);
    }
}
@media (min-width: 992px) {
    .teaser .outer-text-wrapper .btn-scroll-down {
        left: 3em;
    }
}

/* -- contact-box / quote-box
--------------------------------------------------------- */
.contact-box,
.quote-box {
    position: relative;
    text-align: center;
    max-width: 810px;
    margin-bottom: 1em;
}
.contact-box img,
.quote-box img {
    display: block;
    border-radius: 50%;
    margin: 0 auto 1.5em;
    max-width: 250px;
    width: 100%;
    border-width: 10px;
    border-style: solid;
}
.contact-box h3 {
    margin: 0 0 1em;
}
@media (min-width: 576px) {
    main > .w-image .text-wrapper {
        -ms-flex-align: center;
        align-items: center;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin-right: -15px;
        margin-left: -15px;
        padding: 2em;
    }
    main > .w-image .text-wrapper .image-wrapper,
    main > .w-image .text-wrapper .text {
        position: relative;
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    main > .w-image .text-wrapper .image-wrapper img {
        margin-bottom: 0;
    }
}
@media (min-width: 992px) {
    main > .contact-box,
    main > .quote-box {
        margin-left: auto;
        margin-right: auto;
    }
}

/* -- dropdown-menu
--------------------------------------------------------- */
.dropdown-menu {
    padding: 0;
    border: 0;
    overflow: hidden;
    box-shadow: 0 20px 20px rgba(160,160,160,.3);
}
.dropdown-menu .dropdown-item {
    padding: .5rem 1rem;
}

/* -- title
--------------------------------------------------------- */
.title {
    position: relative;
    display: inline-block;
    margin: 1em;
    font-weight: bold;
}
.title::before {
    content: '';
    position: absolute;
    width: 4em;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* -- solr
--------------------------------------------------------- */
#tx-solr-search-form-pi-results .input-group {
    border-radius: 2em;
    box-shadow: 0 3px 6px rgba(0,0,0,.16);
    overflow: hidden
}
#tx-solr-search-form-pi-results .input-group .form-control {
    border-radius: 2em 0 0 2em; 
    border: 0;
    box-shadow: none;
    transition: .15s all
}
.results-highlight {
    display: inline-block;
    padding: 0 .125em;
}
.search-result p {
    font-weight: 400;
}

/* -- figure
--------------------------------------------------------- */
figure figcaption {
    font-size: .75em;
    font-style: italic;
    margin: .5em 0 1.25em;
    line-height: 130%;
}