/* .... LAZY BLOCKS.... */

:root {
    --primary-clr: #093f61;
    --light-primary-clr: #63a1df;
    --light-grey: #f3f3f3;
    --cta-clr: #fb5c18;
	--darker-cta-clr: #9f0703;
    --status-green: #00881f;
    --status-yellow: #ffb100;
    --status-red: #ff2c00;
    --font-headlines: 'Montserrat', Helvetica, sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* .... ABSTAENDE .... */

.lazy-margin {
    margin-top: 6rem;
    margin-bottom: 6rem;
}
.lazy-top-margin {
    margin-top: 6rem;
}
.lazy-bottom-margin {
    margin-bottom: 6rem;
}


/* .... FULLWIDTH SECTION .... */
.fullwidth {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-color: #f3f3f3;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.fullwidth.fullwidth-dark {
    background-color: var(--primary-clr);
    color: #fff;
}
.fullwidth.fullwidth-light {
    background-color: var(--light-primary-clr);
}
.fullwidth.fullwidth-cta {
    background-color: var(--cta-clr);
    color: #fff;
}

.fullwidth .fullwidth-content {
    max-width: 1400px;
    padding: 0px 40px;
    margin: 0 auto;
}
.fullwidth.fullwidth-padding .fullwidth-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.entry-content > .wp-block-lazyblock-fullwidth-section:last-child {
    margin-bottom: -8rem;
}
.fullwidth.fullwidth-padding .lazyblock-inner-blocks > .wp-block-heading:first-child {
    margin-top: 0;
}

/* dark */
.fullwidth.fullwidth-dark h2,
.fullwidth.fullwidth-dark h3 {
    color: #fff;
}
/* parallax */
.fullwidth-parallax {
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.fullwidth.parallaxonly .fullwidth-content {
    height: 600px;
}

/* ios hack (hier funktioniert der parallax effekt nicht */
@supports (-webkit-hyphens:none){
    .fullwidth-parallax {
        background-attachment: local;
        background-size: auto;
    } 
}


/*
.wp-block-lazyblock-fullwidth-section + .wp-block-lazyblock-fullwidth-section {
    margin-top: -6rem;
}
*/

/* .... SLIDESHOW (Hero und Content) .... */
.slideshow {
    position: relative;
}
.slideshow img {
    width: 100%;
    height: auto;
}
.slideshow .slide {
    position: relative;
}
.slideshow .slide img.line {
    position: absolute;
    top:0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
}
.slideshow .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 2rem;
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}
.slideshow .slick-arrow {
    position: absolute;
    z-index: 1;
    top: 50%;
    margin-top: -25px;
    width: 50px;
    height: 50px;
    background-position: left center;
    background-size: 50px 50px;
    background-repeat: no-repeat;
    background-color: transparent;
    transition: all 0.5s;
}
.slideshow .slick-arrow:hover {
    transform: scale(1.1);
}
.slideshow .slick-arrow::before {
    display: none;
}
.slideshow .slick-prev { 
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg height='100px' width='100px' fill='%2321b5ea' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' style='enable-background:new 0 0 24 24;'%3E%3Cg%3E%3Cpath d='M250.326 364.429L408.983 462.355C416.542 467.028 426 461.187 426 451.858L426 335.995C426 331.659 423.835 327.658 420.325 325.49L326.274 267.438C318.708 262.773 318.708 251.1 326.274 246.435L420.325 188.383C423.835 186.215 426 182.214 426 177.878L426 60.1465C426 50.8094 416.542 44.9766 408.983 49.6415L250.326 147.567L91.6695 245.501C84.1102 250.165 84.1102 261.831 91.6695 266.503L250.326 364.429Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
}
.slideshow .slick-next {
    right: 0;
    background-image: url("data:image/svg+xml,%3Csvg height='100px' width='100px' fill='%2321b5ea' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' style='enable-background:new 0 0 24 24;'%3E%3Cg%3E%3Cpath d='M261.674 147.571L103.017 49.6446C95.4577 44.9724 86 50.8126 86 60.1424V176.005C86 180.341 88.1646 184.342 91.6746 186.51L185.726 244.562C193.292 249.227 193.292 260.9 185.726 265.565L91.6746 323.617C88.1646 325.785 86 329.786 86 334.122V451.854C86 461.191 95.4577 467.023 103.017 462.359L261.674 364.433L420.331 266.499C427.89 261.835 427.89 250.169 420.331 245.497L261.674 147.571Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
}

@media (min-width:768px) {
    .slideshow .slick-arrow {
        margin-top: -30px;
        width: 60px;
        height: 60px;
        background-size: 60px 60px;
    }
}
@media (min-width:1000px) {
    .slideshow .slick-arrow {
        margin-top: -35px;
        width: 70px;
        height: 70px;
        background-size: 70px 70px;
    }
}
@media (min-width:1400px) {
    .slideshow .slick-arrow {
        margin-top: -40px;
        width: 80px;
        height: 80px;
        background-size: 80px 80px;
    }
}

/* Dots */
.slick-dots {
    position: absolute;
    bottom: 20px;
    display: block;
    width: 100%;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0;
    list-style: none;
    text-align: center;
}
.slick-dots li {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 5px;
    padding: 0;
    cursor: pointer;
}
.slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 20px;
    height: 20px;
    padding: 5px;
    cursor: pointer;
    color: transparent;
    border: 0;
    outline: none;
    background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
    outline: none;
    background: none !important;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
    opacity: 1;
}
.slick-dots li button:before {
    font-size: 70px;
    line-height: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    content: '•';
    text-align: center;
    opacity: 1;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.slick-dots li.slick-active button:before {
    opacity: 1;
    color: var(--ag-midnight);
}



/* .... ACCORDION .... */
.wp-block-lazyblock-accordion {
    margin-top: 2em;
    margin-bottom: 2em;
    padding-bottom: 2em;
}
/*
.accordion-container,
.accordion-wrap {
    max-width: 920px;
    margin: 0 auto;
}
    */
.wp-block-lazyblock-accordion .grid-container {
    padding-left: 0;
}
button.accordion,
h3.accordion {
    background-color: var(--primary-clr);
    color: #fff;
    cursor: pointer;
    margin: 0;
    padding: 13px 25px 12px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
    font-size: 1.2rem;
    font-family: var(--font-body);
    border-radius: 15px;
}
button.accordion:hover,
button.accordion:focus,
h3.accordion:hover,
h3.accordion:focus {
    background-color: var(--primary-clr);
}
.wp-block-lazyblock-accordion button.accordion.active,
h3.accordion.active {
    background-color: var(--primary-clr);
    border-radius: 15px 15px 0 0 ;
}
button.accordion:after,
h3.accordion:after {
    content: '\002B';
    color: #fff;
    font-weight: normal;
    float: right;
    margin-left: 5px;
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 0;
    line-height: .5em;
}
button.accordion.active:after,
h3.accordion.active:after {
    content: "\2212";
}

button.accordion i,
h3.accordion i {
    width: 22px;
    text-align: center;
    margin-right: 7px; 
}


button.accordion + .panel,
h3.accordion + .panel {
    padding: 0;
    max-height: 0;
    width: 100%;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    margin-bottom: 15px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.accordion + .panel .panel-content {
    padding: 2rem 0;
    padding: 20px 20px 20px;
    background: #f3f3f3;
}
.accordion + .panel p {
    margin: 0 0 20px;
    max-width: 100% !important;
}






/* .... TEAM .... */
.team-card {
    background: transparent;
}
/* bild rechts */
.team-card.img-right:not(.noimage) {
    display: grid;
    grid-template-columns: 66.66666% 33.33333%;    
}
.team-card.img-right .image {
    order: 2; 
}
.team-card.img-right .text {
    order: 1; 
}
/* bild links */
.team-card.img-left {
    display: flex;
}
/* bild rechts */
.team-card.img-left {
    display: flex;
}
.team-card.img-right img {
    float: right;
}
/* kachel */
.team-tiles .tiles {
    display: flex;
    flex-direction: column; 
    background: var(--light-grey);
}
.team-tiles .tiles .image {
    display: flex;
    justify-content: center;
}
.team-tiles .tiles .text {
    text-align: center;
}
/* bild und text */
.team img {
    display: block;
    max-height: 400px;
}
.team .text {
    padding: 15px 20px 20px;
}
.team .text p.name {
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-family: var(--font-headlines);
    font-size: 1.8rem;
    color: var(--primary-clr);
}
.team .text .title {
    margin-bottom: 10px;
    font-weight: 600;
}
.team .address {
    margin-top: 1.5rem;
}

/* MULTIPLE */
.team-multiple .image {
    position: relative;
}
.team-tiles.team-multiple .image {
    display: block;
    position: relative;
    margin-bottom: 1.3rem;
    padding-bottom: 70%;
    height: 0;
}
.team-multiple img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}


/* .... KONTAKT .... */
.entry-content .contact {
    margin-bottom: 2em;
}
.contact img {
    max-width: 250px;
    margin-bottom: 1rem;
}
.contact .title {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.15rem;
}
.contact i {
    width: 25px;
    margin-right: 10px;
    margin-top: 3px;
    color: var(--primary-clr);
    font-size: 20px;
    text-align: center;
}
main.site-main .contact p {
    margin-left: 0;
}
.contact div.address,
.contact div.phone,
.contact div.whatsapp,
.contact div.email {
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
}




/* .... TEASER .... */
.teaser {
    position: relative;
}
.wp-block-heading + .wp-block-lazyblock-teaser .teaser.lazy-margin {
    margin-top: 3rem;
}
.teaser.teaser-more {
    padding-top: 1rem;
}
.teaser a.button-more {
    position: absolute;
    top: -4rem;;
    right: 0;
}


/* .... TEASERBOX .... */
.teaserbox {
    padding: 0;
    color: #555;
}
.fullwidth .teaserbox {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background: #fff;
    border: none;
}
.teaserbox h3 {
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    text-align: center;
    color: var(--primary-clr) !important;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2em;
}
.teaserbox .textbox {
    text-align: center;
}
.teaserbox .text {
    margin-bottom: 15px;
    text-align: center;
}
.teaserbox .text p {
    margin-bottom: 0;
}
.teaserbox a.button {
    text-align: center;
}


/* teaser tiles */
.teaser-tiles .teaserbox {
    position: relative;
    min-height: 300px;
}
.teaser-tiles .teaserbox .inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.teaser-tiles .teaserbox .image {
    position: absolute;
    z-index: 1;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.teaser-tiles .teaserbox .image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.teaser-tiles .teaserbox .textbox {
    position: relative;
    z-index: 10;
    max-height: 100px;
    background: rgb(0, 0, 0, 0.6);
    padding: 1rem;
    transition: all 0.5s ease-in-out;
}
.teaser-tiles .teaserbox .textbox h3 {
    margin: 0;
    color: #fff !important;
}
.teaser-tiles .teaserbox .textbox h3::after {
    display: none;
}
.teaser-tiles .teaserbox .textbox .text {
    height: 0;
    overflow: hidden;
    margin: 0;
    color: #fff;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}
.teaser-tiles .teaserbox:hover .textbox {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.teaser-tiles .teaserbox:hover .text {
    height: auto;
    opacity: 1;
}
.teaser-tiles .teaserbox .textinner {
    padding-top: 15px;
}
.teaser-tiles .button {
    padding: 5px 15px 4px;   
    font-size: 0.9em;
}


/* ... BILD MIT TEXT .... */
.bild-text {
    background: transparent;
}
.bild-text:not(.fullwidth) {
    margin: 3rem 0;
}
.bild-text.img-right .text {
    order: -1;
    padding-left: 0;
}
.bild-text .img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bild-text .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 40px;
}
.bild-text .text p {
    margin-left: 0;
}
@media (min-width:1001px) {
    .bild-text {
        display: grid;
        grid-template-columns: 50% 50%;
    }
    .bild-text .text .inner  {
        max-width: 100%;
        width: 620px;
        margin-right: 0;
        margin-left: auto;
    }
    .bild-text.img-left .text .inner  {
        margin-right: auto;
        margin-left: 0;
    }
}

.bild-text .gallery a {
    display: block;
    position: relative;
}
.bild-text .gallery a::after {
    content: "\f002";
    position: absolute;
    z-index: 10;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    padding: 5px 8px 8px 8px;
    background: var(--cta-clr);
    color: #fff;
    font-family: "Font Awesome 6 Pro";
    display: inline-block;
    text-align: center;
    font-weight: 400;
    font-size: 20px;
    opacity: 0.9;
}
.bild-text .gallery a:hover::after {
    opacity: 1;
}


/* .... DOWNLOAD .... */
.downloads {
    margin: 2rem 0;
}
.download {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}
.download .fas {
    font-size: 1.4rem;
    color: var(--primary-clr);
    margin-right: 10px;
}
.download a {
    line-height: 1.2em;
    font-size: 1.1rem;
}


/* .... EVENTS .... */


/* termine */
.event .dates ol {
    margin: 0;
}
.event .dates li {
    display: grid;
    grid-template-columns:190px 110px 1fr;
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 9px 10px 7px;
    font-size: 1rem;
}
.event .dates li span:first-child {
    text-align: left;
}
.event .dates li span:last-child {
    grid-column: 1/4;
}
@media (max-width: 799px) {
    .events .event .dates li {
        grid-template-columns: 220px 110px 50px 1fr;
    }
    .events .event .dates li span:last-child {
        grid-column: inherit;
    }
}
@media (max-width: 600px) {
    .events .event .dates li {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .events .event .dates li span:last-child {
        grid-column: 1/4;
    }
}

@media (min-width:800px) {
    .event .dates li {
        grid-template-columns: 195px 90px 40px 1fr;
    }   
    .event .dates li span:last-child {
        grid-column: inherit;
    }
}
@media (min-width:1100px) {
    .event .dates li {
        grid-template-columns: 210px 130px 50px 1fr;
    }  
}
.event .dates li:nth-child(odd) {
    background: #f3f3f3;
}
.event .dates .date {
    text-align: center;
    font-weight: 600;
}
.event .dates .price {
    text-align: center;
}
.event .dates .status {
    text-align: center;
    max-height: 15px;
}
.event .dates .status span {
    display: inline-block;
    width: 21px;
    height: 21px;
    border-radius: 100%;
    background: var(--status-green);
}
.event .dates .status span.soldout {
    background: var(--status-red);
}
.event .dates .status span.fewplaces {
    background: var(--status-yellow);
}


/* übersicht */
.events {
    margin: 4rem 0;
}
.events .event {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.events .event .dates {
    order: 1;
    margin-top: 0.5rem;
}


@media (min-width:650px) {
    .events .event {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .events .event .dates {
        grid-column: 1 / 3;
    }
}
@media (min-width:800px) {
    .events .event {
        grid-template-columns: 1.5fr 3fr;
        gap: 1.5rem;
    }
    .events .event .image {
        grid-row: 1 / 3;
    }
    .events .event .dates {
        order: inherit;
        grid-column: inherit;
    }
}
@media (min-width:1001px) {
    .events .event {
        grid-template-columns: 1.5fr 3fr 1fr;
    }
    .events .event .image {
        grid-row: inherit;
    }
}


.wp-block-lazyblock-event-block + .wp-block-lazyblock-event-block {
    margin-top: 3rem;
}
.events .event .image {
    display: block;
}
.events .event .image .inner {
    position: relative;
}
.events .event .image img {
    width: 100%;
}
.events .event .image .title {
    display: none;
    position: absolute;
    top: 0 ;
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1.4em;
    font-weight: 600;
    text-shadow: 1px 1px 1px #000;
}
@media (max-width:450px) {
    .events .event .image .title {
        display: flex;
        font-size: 1.8rem;
    }
}
@media (min-width: 801px) {
    .events .event .image .title {
        display: flex;
    }
}

.events .event .text {
    display: none;
}
.events .event .dates li {
    display: none;
}
.events .event .dates li:nth-child(1),
.events .event .dates li:nth-child(2),
.events .event .dates li:nth-child(3),
.events .event .dates li:nth-child(4) {
    display: grid !important;
}
.events .event .dates.open li {
    display: grid;
}
.events .event .more .button {
    margin-top: 0;
    padding: 5px 15px 4px;
    font-size: 0.95rem;
}
.events .event .more-note {
    font-size: 0.9rem;
    line-height: 1.3em;
}
.events .event .more .title {
    display: none;
}
@media (max-width: 1000px) {
    .events .event .more {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
    }
    .events .event .more-note {
        order: -1;
        margin-top: 0;
    }
}
@media (max-width: 800px) {
    .events .event .more-note {
        order: inherit;
    }
    .events .event .more a {
        order: 1;
    }
    .events .event .more .title {
        display: block;
        margin-bottom: 10px;
        font-weight: 700;
        font-size: 1.3rem;
        line-height: 1.3em;
    }
}
@media (max-width: 450px) {
    .events .event .more .title {
        display: none;
    }
}

.events .event .dates .button {
    display: none;
    text-align: center;
    color: var(--cta-clr);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 auto;
}
.events .event .dates.morethanfour .button {
    display: inline-block;
}

.events .event .dates .button:before {
    content: "\2b";
    font-family: "Font Awesome 6 Pro";
    position: relative;
    display: inline-block;
    font-weight: 600;
    font-size: 1em;
    margin-right: 9px;
    margin-left: 0px;
}
.events .event .dates .button.de::after {
    content: 'Alle Termine anzeigen';
}
.events .event .dates.open .button.de::after {
    content: 'Schließen';
}
.events .event .dates .button.en::after {
    content: 'Show all dates';
}
.events .event .dates.open .button.en::after {
    content: 'Close';
}
.events .event .more {
    display: block;
}

/* detail */
.event .image {
    display: none;
}
.event .text {
    margin-bottom: 2rem;
}
.event .more {
    display: none;
}

/* .... STECKBRIEF .... */
dl.factsheet dd,
dl.factsheet dl {
    margin: 0 0 15px;
}

@media (min-width:1100px) {
    dl.factsheet {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 0.5rem 0rem;
    }
    dl.factsheet dt,
    dl.factsheet dd {
        border-top: 1px solid #ccc;
        padding-top: 15px;
    }
    dl.factsheet dt {
        padding-left: 10px;
    }
    dl.factsheet dd {
        padding-right: 10px;
    }
}

/* .... ICON LIST .... */
ul.icon-list {
    list-style-type: none;
    margin: 2rem 0 !important;
    padding: 0;
}
ul.icon-list li {    
    font-size: 1.1em;
    font-weight: 500; 
}
ul.icon-list li i {
    width: 30px;
    text-align: center;
    margin-right: 7px; 
    color: var(--primary-clr);
    font-size: 1.6rem;
}
