/* Elementor Widgets (Accordion, Flip-Card, Termin) */

/* Accordion */
.lbh-accordion {
    background: #EEF;
    border: 2px solid var(--e-global-color-primary);
    padding: 20px;
    display: flex;
    margin: 40px 20px 0 20px;
    position: relative;
    cursor: pointer;
    min-height: 200px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.lbh-bild-block {
    display: block;
    width: 280px;
    height: 150px;
}

.lbh-accordion * {
    pointer-events: none;
}

.lbh-accordion a {
    pointer-events: all !important;
}

.lbh-bild {
    width: 320px;
    height: 180px;
    display: block;
    position: absolute;
    top: -20px;
    left: -60px;
    box-shadow: 3px 3px 8px rgba(200, 200, 200, 0.2);
    background-size: cover;
    background-position: center;
    z-index: 2;
    background-color: var(--e-global-color-primary);
}

.lbh-titel {
    color: var(--e-global-color-primary);
    font-size: 22px;
    font-weight: 700;
    display: block;
}

.lbh-thema {
    font-size: 18px;
    display: block;
}

.lbh-accordion-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    color: var(--e-global-color-primary);
}

.title-block {
    display: block;
    flex: 1 1 100%;
    min-width: 100%;
}

.lbh-accordion-details.on {
    display: block;
    max-height: 100%;
    opacity: 1;
    overflow: visible;
    width: 100%;
}

.lbh-accordion-details > p {
    line-height: 24px;
}

.lbh-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    justify-content: flex-start;
    float: left;
    width: 100%;
    margin: 10px 60px 0 -20px;
}

.lbh-buttons > a,
.lbh-buttons > .toggle-button {
    align-self: center;
    position: relative;
    padding: 0;
    margin: 0 0 0 -120px;
    text-align: center;
    width: calc(100% - 60px);
    height: 60px;
    line-height: 60px;
    background: var(--e-global-color-primary) !important;
    color: #FFF !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    display: block;
    top: 0;
    border: 0;
}

.lbh-accordion-cta {
    width: 100%;
    margin: 50px 60px 0 -20px;
}

.lbh-accordion-toggle {
    align-self: center;
    position: relative;
    padding-left: 50px;
    margin: 0 0 0 -120px;
    text-align: center;
    width: calc(100% - 60px);
    max-width: 260px;
    background: var(--e-global-color-primary) !important;
    color: #FFF !important;
    height: 60px;
    line-height: 60px;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
}

.lbh-accordion-toggle::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--e-global-color-primary);
    transform: skewX(-45deg);
}

.lbh-accordion-toggle::after {
    display: none !important;
}

.lbh-accordion-toggle:hover {
    background: var(--e-global-color-secondary) !important;
    color: #FFF !important;
}

.lbh-accordion-toggle:hover::before {
    background: var(--e-global-color-secondary);
}

.lbh-buttons .toggle-button.is-open {
    background: var(--e-global-color-secondary) !important;
    color: #FFF !important;
}

.lbh-buttons > .toggle-button.is-open::before {
    background: var(--e-global-color-secondary) !important;
}

.lbh-buttons > .toggle-button.is-open:hover,
.lbh-buttons > .toggle-button.is-open:hover::before {
    background: var(--e-global-color-primary) !important;
    color: #FFF !important;
}

.lbh-contact {
    align-self: center;
    width: calc(100% - 60px);
    margin: 0 0 0 -120px;
    padding: 22px 18px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    pointer-events: all;
    color: var(--e-global-color-primary);
}

.lbh-contact__image {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}

.lbh-contact__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.lbh-contact--portrait .lbh-contact__image img {
    max-width: 200px;
}

.lbh-contact--landscape .lbh-contact__image img {
    max-width: 240px;
}

.lbh-contact__name {
    margin: 4px 0 2px;
    font-size: 20px;
    font-weight: 700;
    width: 100%;
    color: var(--e-global-color-primary);
}

.lbh-contact__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.lbh-contact__action {
    width: 80%;
    max-width: 220px;
    height: 45px;
    line-height: 45px;
    border-radius: 8px;
    background: var(--e-global-color-primary);
    color: #FFF !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
    text-align: center;
    margin: 0 auto;
    font-size: 16px;
    pointer-events: all;
    transition: background 0.2s ease;
    position: relative;
}

.lbh-contact__action::after {
    display: none !important;
}

.lbh-contact__action:hover {
    background: var(--e-global-color-secondary);
    color: #FFF;
}

.lbh-contact__shared-hint {
    font-size: 14px;
    color: var(--e-global-color-primary);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lbh-contact--shared {
    background: #fff;
    color: var(--e-global-color-primary);
}

.lbh-contact__shared-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lbh-contact--shared .lbh-contact__actions {
    width: 100%;
}

.toggle-button {
    cursor: pointer;
}

.lbh-contact.show {
    display: flex !important;
}

.show {
    display: block;
}

.hide {
    display: none !important;
}

.lbh-titel,
.lbh-thema {
    color: var(--lbh1);
    padding: 10px 0;
}

.lbh-buttons > a.noHover,
.lbh-buttons > .toggle-button.noHover {
    cursor: default;
}

.lbh-buttons > a::before,
.lbh-buttons > .toggle-button::before {
    right: -30px;
    content: '';
    position: absolute;
    transform: skewX(45deg);
    width: 60px;
    height: 60px;
    background: var(--e-global-color-primary) !important;
    z-index: -1;
}

.lbh-buttons > a:not(.noHover):hover::before,
.lbh-buttons > .toggle-button:not(.noHover):hover::before {
    top: 0;
    background-color: var(--e-global-color-secondary) !important;
    color: #FFF;
    border: 0;
    z-index: -1;
}

.lbh-buttons > a:not(.noHover):hover,
.lbh-buttons > .toggle-button:not(.noHover):hover {
    background-color: var(--e-global-color-secondary) !important;
    color: #FFF;
    border: 0;
}

.lbh-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 10px 0 0 50px;
}

.lbh-main-content {
    display: block;
    float: left;
    width: 100%;
    margin: 10px 0 0 50px;
}

.lbh-info-card {
    background: #FFF;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lbh-info-card__label {
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--e-global-color-secondary);
}

.lbh-info-card__value {
    font-size: 16px;
    line-height: 1.5;
    color: var(--lbh1);
}

.lbh-info-card__value p {
    margin: 0 0 10px 0;
}

@media only screen and (min-width: 768px) {
    .title-block {
        flex: 1 1 calc(100% - 280px);
        min-width: calc(100% - 280px);
    }

    .lbh-accordion-details.on {
        display: flex;
        flex-wrap: wrap;
    }

    .lbh-accordion {
        margin: 40px 0 0 50px;
    }

    .lbh-accordion .top {
        margin-top: 0;
    }

    .lbh-buttons {
        margin: 10px 0 0 -80px;
        flex: 0 0 280px;
        gap: 15px;
        width: 280px;
    }

    .lbh-buttons > a,
    .lbh-buttons > .toggle-button {
        margin: 0 0 0 -20px;
        width: 260px !important;
    }

    .lbh-accordion-cta {
        margin: 50px 0 0 0;
    }

    .lbh-accordion-cta .lbh-accordion-toggle {
        margin: 0 0 0 -20px;
        width: 260px !important;
    }

    .lbh-main-content {
        flex: 1 1 calc(100% - 280px);
        min-width: calc(100% - 280px);
    }

    .lbh-contact {
        width: 260px;
        margin: 0;
    }
}

/* Flip Card */
.px-card-list {
    display: flex;
    flex-wrap: wrap;
}

.px-card {
    position: relative;
    min-height: 300px;
    width: calc(50% - 20px);
    min-width: 400px;
    margin: 50px 20px 50px 0;
    color: var(--e-global-color-primary);
    perspective: 1200px;
    transform-style: preserve-3d;
}

.px-card {
    width: calc(50% - 120px);
    float: left;
}

.px-card.w-25 {
    width: calc(25% - 20px);
}

.px-card.w-50 {
    width: calc(50% - 20px);
}

.px-card.w-75 {
    width: calc(75% - 20px);
}

.px-card.w-100 {
    margin: 50px 0;
    width: 100%;
}

.px-card:nth-of-type(2n) {
    float: right;
}

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

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

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

.px-card .left {
    position: relative;
    flex: 0 1 320px;
    min-width: 240px;
    max-width: 360px;
    min-height: 280px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.px-card .left.topper {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 200px;
    order: -1;
    margin-bottom: 20px;
}

.px-card .left.no-image {
    display: none;
}

.px-card .right {
    padding: 0 15px 15px;
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.px-card .right.full-width {
    flex-basis: 100%;
    min-width: 100%;
    width: 100%;
    padding: 0 15px 15px;
}

.px-card:nth-of-type(2n) {
    margin: 50px 0 50px 20px;
}

.px-card:nth-of-type(2n).w-75 {
    margin-left: auto;
}

.px-card:nth-of-type(2n) .left {
    order: 2;
}

.px-card:nth-of-type(2n) .left.topper {
    order: -1;
}

.px-card:nth-of-type(2n) .right {
    order: 1;
}

.px-card .title {
    margin-top: 0;
    flex-basis: calc(100% - 280px);
}

.px-card .px-card__front,
.px-card .px-card__back {
    width: 100%;
    height: 100%;
    background-color: #EEF;
    transition: transform 0.6s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: stretch;
    border: 2px solid var(--e-global-color-primary);
}

.px-card .px-card__front {
    position: relative;
    transform: rotateY(0deg);
    z-index: 2;
}

.px-card .px-card__back {
    position: absolute;
    left: 0;
    top: 0;
    transform: rotateY(-180deg);
}

.px-card .px-card-content .body {
    position: relative;
    overflow: visible;
    margin: 0;
    word-break: break-word;
    padding: 0;
    width: 100%;
    flex: 1 1 auto;
}

.px-card .button-text {
    position: absolute;
    width: 305px;
    bottom: 60px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FFF;
    left: -45px;
    z-index: 1;
    background-color: var(--e-global-color-primary);
    border: 2px solid var(--e-global-color-primary);
    clip-path: polygon(0 0, calc(100% - 45px) 0, 100% 100%, 0 100%);
    cursor: pointer;
}

/* Automatische Position basierend auf Karten-Position */
.px-card:nth-of-type(2n) .button-text {
    clip-path: polygon(45px 0, 100% 0, 100% 100%, 0 100%);
    right: -45px;
    left: unset;
}

/* Manuelle Button-Position: Links */
.px-card .px-button.button-position-left .button-text {
    clip-path: polygon(0 0, calc(100% - 45px) 0, 100% 100%, 0 100%);
    left: -45px;
    right: unset;
}

.px-card:nth-of-type(2n) .px-button.button-position-left .button-text {
    clip-path: polygon(0 0, calc(100% - 45px) 0, 100% 100%, 0 100%);
    left: -45px;
    right: unset;
}

/* Manuelle Button-Position: Rechts */
.px-card .px-button.button-position-right .button-text {
    clip-path: polygon(45px 0, 100% 0, 100% 100%, 0 100%);
    right: -45px;
    left: unset;
}

.px-card:nth-of-type(2n) .px-button.button-position-right .button-text {
    clip-path: polygon(45px 0, 100% 0, 100% 100%, 0 100%);
    right: -45px;
    left: unset;
}

.px-card .button-text.flip {
    bottom: 15px;
}

.px-card .button-text.single,
.px-card .button-text.flip.single {
    height: 60px;
    bottom: 15px;
}

.px-card .button-text:hover {
    background-color: var(--e-global-color-secondary);
    border: 0;
}

.px-card .button-text:hover p {
    color: #FFF !important;
}

.px-card .button-text p {
    margin-left: 60px;
    z-index: 4;
    font-size: 16px;
    color: #FFF;
    text-transform: uppercase;
}

/* CTA Button (ohne Bild) */
.px-card .px-cta-button-wrapper {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.px-card .px-cta-button-wrapper.cta-button-left {
    justify-content: flex-start;
}

.px-card .px-cta-button-wrapper.cta-button-right {
    justify-content: flex-end;
}

.px-card .px-cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 60px 0 -60px;
    width: 260px;
    height: 60px;
    line-height: 60px;
    background-color: var(--e-global-color-primary);
    color: #FFF !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: background-color 0.2s ease;
    border: none;
    overflow: visible;
}

.px-card .px-cta-button::before {
    content: '';
    position: absolute;
    transform: skewX(45deg);
    right: -30px;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--e-global-color-primary);
    z-index: -1;
}

.px-card .px-cta-button-wrapper.cta-button-right .px-cta-button {
    margin: 0 -60px 0 60px;
}

.px-card .px-cta-button-wrapper.cta-button-right .px-cta-button::before {
    transform: skewX(-45deg);
    left: -30px;
    right: auto;
}

.px-card .px-cta-button p {
    margin: 0;
    padding: 0;
    margin-left: 60px;
    z-index: 1;
    position: relative;
    text-align: center;
}

.px-card .px-cta-button-wrapper.cta-button-right .px-cta-button p {
    margin-left: 0;
    margin-right: 60px;
}

.px-card .px-cta-button:hover {
    background-color: var(--e-global-color-secondary);
    color: #FFF !important;
}

.px-card .px-cta-button:hover::before {
    background-color: var(--e-global-color-secondary);
}

.px-card .left img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    cursor: pointer;
    box-shadow: 3px 3px 8px rgba(200, 200, 200, 0.2);
}

.px-card .left.topper img {
    inset: 0;
    max-width: none;
    max-height: none;
}

.px-card.px-card--flipped .px-card__front {
    transform: rotateY(180deg);
}

.px-card.px-card--flipped .px-card__back {
    transform: rotateY(0deg);
}

.px-card.px-card--static .px-card__front,
.px-card.px-card--static .px-card__back {
    transition: none;
}

.px-card p,
.px-card svg {
    width: 90%;
    margin: 0 auto;
}

@media only screen and (max-width: 1330px) {
    .px-card,
    .px-card.w-25,
    .px-card.w-50 {
        width: calc(75% - 120px);
    }

    .px-card:nth-of-type(2n).w-25,
    .px-card:nth-of-type(2n).w-50 {
        margin-left: auto;
    }
}

@media only screen and (max-width: 1000px) {
    .px-card,
    .px-card.w-25,
    .px-card.w-50,
    .px-card.w-75 {
        width: calc(100% - 120px);
    }
}

@media only screen and (max-width: 768px) {
    .px-card,
    .px-card.w-25,
    .px-card.w-50,
    .px-card.w-75,
    .px-card.w-100 {
        width: calc(100% - 30px);
        display: flex;
        flex-wrap: wrap;
        margin: 60px 15px;
    }

    .px-card .px-card__front,
    .px-card .px-card__back {
        gap: 20px;
    }

    .px-card .left,
    .px-card .left.topper {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .px-card .left {
        min-height: 220px;
    }

    .px-card .left.topper {
        min-height: 180px;
        margin-bottom: 10px;
    }

    .px-card .right {
        width: 100%;
        margin-bottom: 60px;
    }

    .px-card:nth-of-type(2n) .left {
        order: 1;
    }

    .px-card:nth-of-type(2n) .right {
        order: 2;
        margin-bottom: 60px;
    }

    .px-card .button-text {
        left: 0;
    }

    .px-card:nth-of-type(2n) .button-text {
        right: 0;
    }
}

@media only screen and (max-width: 768px) {
    .lbh-accordion {
        margin: 20px 0 0 0;
        padding: 15px;
        align-items: stretch;
    }

    .lbh-bild {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin: 0 auto 15px auto;
        box-shadow: none;
    }

    .lbh-accordion-details,
    .lbh-accordion-details.on {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .lbh-accordion-details img,
    .lbh-accordion-details video,
    .lbh-accordion-details iframe,
    .lbh-accordion-details svg {
        max-width: 100%;
        height: auto;
    }

    .lbh-accordion .lbh-buttons,
    .lbh-accordion-cta {
        margin: 10px 0 0 0;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .lbh-accordion .lbh-buttons > a,
    .lbh-accordion .lbh-buttons > .toggle-button,
    .lbh-accordion-cta .lbh-accordion-toggle {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
    }

    .lbh-accordion .lbh-buttons > a::before,
    .lbh-accordion .lbh-buttons > .toggle-button::before,
    .lbh-accordion-cta .lbh-accordion-toggle::before {
        content: none;
    }

    .lbh-contact {
        margin: 15px auto 0;
        width: 100%;
        max-width: 360px;
    }
}

/* Termin */
.lbh-news {
    width: 100%;
    display: block;
    position: relative;
}

.lbh-news + .lbh-news {
    margin-top: 30px;
}

.lbh-news:hover div.lbh-news-box {
    background: var(--lbh1);
    color: #FFF;
}

.lbh-news-datum {
    width: 75px;
    display: block;
    position: absolute;
    top: -15px;
    left: 0;
    box-shadow: 3px 3px 8px rgba(200, 200, 200, 0.2);
}

.lbh-news-tag {
    width: 100%;
    display: flex;
    background: var(--e-global-color-secondary);
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 24px;
    font-weight: 900;
    height: 34px;
}

.lbh-news-monat {
    width: 100%;
    display: flex;
    background: var(--lbh1);
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 24px;
    font-weight: 900;
    height: 34px;
}

.lbh-news-box {
    width: calc(100% - 120px);
    display: block;
    background: #EEF;
    color: var(--lbh1);
    font-size: 18px;
    min-height: 85px;
    max-height: 115px;
    margin: 15px 60px 0 60px;
    padding: 10px 10px 10px 35px;
    line-height: 31px;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 2px solid var(--lbh1);
    /* border-bottom: 5px solid var(--lbh1); */
}

.lbh-news-box p {
    margin: 0;
    text-overflow: ellipsis;
}

.lbh-news-box b {
    font-size: 20px;
    color: #F28C00;
}
