/* ========================================================================== 
   NENCKI – CUSTOM STYLES
   ========================================================================== */

:root {
    --nencki-black: #1d1d1b;
    --nencki-yellow: #ffed00;
    --nencki-grey: #777;
    --nencki-light-grey: #f2f2f2;
    --nencki-line: #e7e7e7;
}

/* ========================================================================== 
   HEADER – GRUNDLAYOUT
   ========================================================================== */

header#mainHeader {
    position: relative !important;
    top: auto;
    z-index: 50000 !important;
    width: 100%;
    background-color: #fff;
}

header#mainHeader.fixed-header {
    position: fixed !important;
    top: 0 !important;
    right: 0;
    left: 0;
    width: 100%;
}

header#mainHeader .header-row {
    align-items: stretch;
    padding-bottom: 10px;
    transition: padding-bottom 300ms ease;
}

header#mainHeader .header-logo-column {
    display: flex;
    align-items: flex-end;
    padding-right: 0;
    padding-left: 0;
}

header#mainHeader .header-logo {
    display: block;
    border: 0 !important;
}

header#mainHeader .header-logo img {
    display: block;
    width: 152px;
    max-width: 100%;
    height: auto;
    padding: 0 !important;
    transition: width 300ms ease;
}

header#mainHeader .header-desktop {
    align-items: stretch;
    justify-content: flex-end;
    padding-right: 0;
}

header#mainHeader .header-desktop-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}


/* ========================================================================== 
   HEADER – SUBNAVIGATION UND ICONS
   ========================================================================== */

header#mainHeader .header-subnav {
    width: 100%;
    padding-right: 0;
}

header#mainHeader .subNav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    margin: 10px 0 0;
    padding: 0;
}

header#mainHeader .subNav>li {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin-top: 10px;
    padding: 0;
}

header#mainHeader .subNav .subnav-text a {
    border: 0 !important;
    color: #555;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none !important;
    transition: color 180ms ease;
}

header#mainHeader .subNav .subnav-text a:hover,
header#mainHeader .subNav .subnav-text a:focus {
    border: 0 !important;
    color: var(--nencki-black);
}

header#mainHeader .social-icon--first {
    margin-left: 15px !important;
}

header#mainHeader .social-icon a,
header#mainHeader .languageSwitcher a,
header#mainHeader .header-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--nencki-grey);
    text-decoration: none !important;
}

header#mainHeader .social-icon img,
header#mainHeader .languageSwitcher img {
    display: block;
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    object-fit: contain;
    filter: brightness(0);
    opacity: 0.5;
    transition: opacity 180ms ease;
}

header#mainHeader .header-search-toggle {
    cursor: pointer;
}

header#mainHeader .header-search-toggle svg {
    display: block;
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    transition: color 180ms ease;
}

header#mainHeader .social-icon a:hover,
header#mainHeader .social-icon a:focus,
header#mainHeader .languageSwitcher a:hover,
header#mainHeader .languageSwitcher a:focus {
    border: 0 !important;
}

header#mainHeader .social-icon a:hover img,
header#mainHeader .social-icon a:focus img,
header#mainHeader .languageSwitcher a:hover img,
header#mainHeader .languageSwitcher a:focus img {
    opacity: 1;
}

header#mainHeader .header-search-toggle:hover,
header#mainHeader .header-search-toggle:focus-visible {
    border: 0 !important;
    color: var(--nencki-black);
    outline: none;
}


/* ========================================================================== 
   HEADER – HAUPTNAVIGATION
   ========================================================================== */

header#mainHeader .header-mainnav {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

header#mainHeader .main-menu {
    margin: 18px 0 0;
    padding: 0;
    transition: margin-top 300ms ease;
}

header#mainHeader .main-menu>li {
    position: relative;
}

header#mainHeader .main-menu>li>a {
    border-bottom: 0 !important;
    color: var(--nencki-black);
    font-size: 17px;
    line-height: 1.3;
    text-decoration: none !important;
}

header#mainHeader .main-menu>li:hover>a,
header#mainHeader .main-menu>li:focus-within>a {
    border-bottom: 0 !important;
    color: var(--nencki-black);
}


/* ========================================================================== 
   HEADER – DROPDOWN
   ========================================================================== */

header#mainHeader .main-menu>li.has-children>.dropdown-menu {
    position: absolute;
    top: calc(100% + 13px);
    left: 0;
    right: auto;
    z-index: 50010;
    display: none;
    width: 270px;
    min-width: 270px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-top: 3px solid var(--nencki-yellow);
    border-radius: 0;
    background-color: #fff;
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.14),
        0 3px 8px rgba(0, 0, 0, 0.06);
}

header#mainHeader .main-menu>li.has-children>.dropdown-menu::before {
    position: absolute;
    top: -16px;
    right: 0;
    left: 0;
    height: 16px;
    content: "";
}

header#mainHeader .main-menu>li.has-children:hover>.dropdown-menu,
header#mainHeader .main-menu>li.has-children:focus-within>.dropdown-menu {
    display: block;
}

header#mainHeader .main-menu .dropdown-menu>li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--nencki-line);
    background-color: transparent !important;
    text-align: left;
}

header#mainHeader .main-menu .dropdown-menu>li:last-child {
    border-bottom: 0;
}

header#mainHeader .main-menu .dropdown-menu>li>a {
    display: block;
    width: 100%;
    padding: 13px 4px;
    border: 0 !important;
    background-color: transparent !important;
    color: #414141;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none !important;
    transition:
        color 180ms ease,
        padding-left 180ms ease,
        background-color 180ms ease;
}

header#mainHeader .main-menu .dropdown-menu>li>a:hover,
header#mainHeader .main-menu .dropdown-menu>li>a:focus {
    padding-left: 11px;
    border: 0 !important;
    background-color: var(--nencki-light-grey) !important;
    color: #000;
}


/* ========================================================================== 
   HEADER – VERKLEINERTER ZUSTAND
   ========================================================================== */

@media (min-width: 768px) {
    header#mainHeader.fixed-header .header-logo img {
        width: 118px;
    }

    header#mainHeader.fixed-header .header-row {
        padding-bottom: 5px;
    }

    header#mainHeader.fixed-header .main-menu {
        margin-top: 5px;
    }

    header#mainHeader.fixed-header .social-icon img,
    header#mainHeader.fixed-header .languageSwitcher img,
    header#mainHeader.fixed-header .language-overlay-toggle img,
    header#mainHeader.fixed-header .header-search-toggle svg {
        width: 18px !important;
        height: 18px !important;
        padding: 0 !important;
    }
}

/* ========================================================================== 
   HEADER – MOBILE
   ========================================================================== */

@media (max-width: 767px) {
    header#mainHeader .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    header#mainHeader .header-row {
        min-height: 82px;
        padding-bottom: 8px;
    }

    header#mainHeader .header-logo-column {
        align-items: center;
    }

    header#mainHeader .header-logo img {
        width: 112px;
    }

    header#mainHeader .header-mobile-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 17px;
        padding-right: 0;
        padding-left: 0;
    }

    header#mainHeader .header-mobile-action {
        display: inline-flex;
        flex: 0 0 28px;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0;
        background: transparent !important;
        color: #555;
        text-decoration: none !important;
    }

    header#mainHeader .header-mobile-action img,
    header#mainHeader .header-mobile-action svg {
        display: block;
        width: 26px !important;
        height: 26px !important;
        padding: 0 !important;
    }

    header#mainHeader .header-mobile-action img {
        object-fit: contain;
        filter: brightness(0);
        opacity: 0.65;
    }

    header#mainHeader .header-mobile-action svg {
        fill: none;
        stroke: currentColor;
        stroke-width: 1.6;
        stroke-linecap: round;
    }

    header#mainHeader .mobile-menu-toggle {
        flex-direction: column;
        gap: 5px;
    }

    header#mainHeader .mobile-menu-toggle__line {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #555;
    }
}


/* ========================================================================== 
   TYPOGRAFIE – ÜBERSCHRIFTEN
   ========================================================================== */

#content .element h1 {
    margin: 0 0 clamp(30px, 4vw, 52px);
    color: var(--nencki-black);
    font-size: clamp(40px, 4.6vw, 66px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

#content .element h1::after {
    display: block;
    width: 54px;
    height: 4px;
    margin-top: 20px;
    background-color: var(--nencki-yellow);
    content: "";
}

#content .element h2 {
    position: relative;
    margin: clamp(50px, 7vw, 90px) 0 clamp(20px, 2.5vw, 32px);
    padding-left: 18px;
    color: var(--nencki-black);
    font-size: clamp(27px, 3vw, 42px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

#content .element h2::before {
    position: absolute;
    top: 0.1em;
    bottom: 0.1em;
    left: 0;
    width: 4px;
    background-color: var(--nencki-yellow);
    content: "";
}

#content .element h2:first-child {
    margin-top: 0;
}

#content .element h1+p,
#content .element h2+p {
    margin-top: 0;
}


/* ========================================================================== 
   TYPOGRAFIE – FLIESSTEXT UND LISTEN
   ========================================================================== */

#content .element p:not(.leadtext),
#content .element ol:not(.main-menu):not(.subNav),
#content .element ul:not(.main-menu):not(.subNav):not(.dropdown-menu) {
    font-size: 17px;
    line-height: 1.65;
}

#content .element p:not(.leadtext) {
    margin-bottom: 1.25em;
}

#content .element .leadtext {
    font-size: 19px;
    line-height: 1.55;
}

#content .element .intro ul:not(.main-menu):not(.subNav):not(.dropdown-menu) {
    margin: 22px 0 28px;
    padding-left: 36px;
}

#content .element .intro ul:not(.main-menu):not(.subNav):not(.dropdown-menu)>li {
    margin-bottom: 5px;
    font-size: 17px !important;
    line-height: 1.45;
}

#content .element .intro ul:not(.main-menu):not(.subNav):not(.dropdown-menu)>li::marker {
    color: #414141;
    font-size: 0.6em;
}

@media (max-width: 767px) {
    #content .element h1 {
        margin-bottom: 30px;
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.08;
    }

    #content .element h1::after {
        width: 42px;
        height: 3px;
        margin-top: 15px;
    }

    #content .element h2 {
        margin-top: 48px;
        margin-bottom: 18px;
        padding-left: 14px;
        font-size: clamp(25px, 7vw, 34px);
    }

    #content .element h2::before {
        width: 3px;
    }

    #content .element p:not(.leadtext),
    #content .element ol,
    #content .element ul:not(.main-menu):not(.subNav):not(.dropdown-menu) {
        font-size: 16px;
        line-height: 1.6;
    }

    #content .element .leadtext {
        font-size: 18px;
    }

    #content .element .intro ul:not(.main-menu):not(.subNav):not(.dropdown-menu) {
        padding-left: 30px;
    }

    #content .element .intro ul:not(.main-menu):not(.subNav):not(.dropdown-menu)>li {
        font-size: 15px !important;
        line-height: 1.5;
    }
}


/* ========================================================================== 
   VERTRETUNGSKARTE
   ========================================================================== */

.representatives-map {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
    margin: 25px 0 50px;
}

.representatives-map__controls label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.representatives-map__controls select {
    width: 100%;
    min-height: 44px;
    padding: 8px 36px 8px 12px;
    border: 1px solid #c8c8c8;
    background-color: #fff;
}

.representatives-map__map {
    width: 100%;
    height: 560px;
    background-color: #eef1f3;
}

.representatives-map .leaflet-popup-content {
    min-width: 220px;
    line-height: 1.5;
}

.representatives-map .leaflet-popup-content strong {
    display: block;
    margin-bottom: 5px;
}

@media (max-width: 767px) {
    .representatives-map {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .representatives-map__map {
        height: 420px;
    }
}


/* ========================================================================== 
   KONTAKT-OVERLAY
   ========================================================================== */

.contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    visibility: hidden;
    pointer-events: none;
    background-color: var(--nencki-black);
    color: #fff;
    clip-path: circle(0 at 100% 100%);
    transition:
        clip-path 750ms cubic-bezier(0.65, 0, 0.2, 1),
        visibility 0s linear 750ms;
    will-change: clip-path;
}

.contact-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
    clip-path: circle(150vmax at 100% 100%);
    transition:
        clip-path 750ms cubic-bezier(0.65, 0, 0.2, 1),
        visibility 0s linear 0s;
}

.contact-overlay__content {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 80px 30px;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 350ms ease,
        transform 500ms ease;
}

.contact-overlay.is-open .contact-overlay__content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 300ms;
}

.contact-overlay__contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: center;
    margin-bottom: 70px;
}

.contact-overlay__phone,
.contact-overlay__email {
    color: #fff;
    font-size: clamp(28px, 3.4vw, 54px);
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
}

.contact-overlay__phone:hover,
.contact-overlay__phone:focus,
.contact-overlay__email:hover,
.contact-overlay__email:focus {
    color: var(--nencki-yellow);
    text-decoration: none;
}

.contact-overlay__address {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
}

.contact-overlay__address strong {
    color: var(--nencki-yellow);
    font-weight: 600;
}

.contact-overlay-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 76px;
    height: 76px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    cursor: pointer;
    transition: transform 200ms ease;
}

.contact-overlay-toggle:hover,
.contact-overlay-toggle:focus-visible {
    transform: scale(1.06);
}

.contact-overlay-toggle:focus-visible {
    outline: 3px solid var(--nencki-yellow);
    outline-offset: 4px;
}

.contact-overlay-toggle img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 !important;
    border-radius: 50%;
    transition: opacity 200ms ease;
}

.contact-overlay-toggle__normal {
    opacity: 1;
}

.contact-overlay-toggle__hover {
    opacity: 0;
}

.contact-overlay-toggle:hover .contact-overlay-toggle__normal,
.contact-overlay-toggle:focus-visible .contact-overlay-toggle__normal,
.contact-overlay-toggle.is-open .contact-overlay-toggle__normal {
    opacity: 0;
}

.contact-overlay-toggle:hover .contact-overlay-toggle__hover,
.contact-overlay-toggle:focus-visible .contact-overlay-toggle__hover,
.contact-overlay-toggle.is-open .contact-overlay-toggle__hover {
    opacity: 1;
}

body.contact-overlay-open {
    overflow: hidden;
}

.contact-overlay.is-closing,
.contact-overlay.is-closing .contact-overlay__content {
    transition: none !important;
}

@media (max-width: 767px) {
    .contact-overlay__content {
        padding: 60px 25px 120px;
    }

    .contact-overlay__contact {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 45px;
    }

    .contact-overlay__phone,
    .contact-overlay__email {
        font-size: clamp(25px, 8vw, 38px);
        overflow-wrap: anywhere;
    }

    .contact-overlay__address {
        font-size: 16px;
    }

    .contact-overlay-toggle {
        right: 15px;
        bottom: 15px;
        width: 64px;
        height: 64px;
    }
}


/* ========================================================================== 
   SUCH-OVERLAY
   ========================================================================== */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    visibility: hidden;
    pointer-events: none;
    background-color: var(--nencki-black);
    color: #fff;
    clip-path: circle(0 at calc(100% - 145px) 35px);
    transition:
        clip-path 750ms cubic-bezier(0.65, 0, 0.2, 1),
        visibility 0s linear 750ms;
    will-change: clip-path;
}

.search-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
    clip-path: circle(150vmax at calc(100% - 145px) 35px);
    transition:
        clip-path 750ms cubic-bezier(0.65, 0, 0.2, 1),
        visibility 0s linear 0s;
}

.search-overlay.is-closing,
.search-overlay.is-closing .search-overlay__content {
    transition: none !important;
}

.search-overlay__content {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 80px 30px;
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 350ms ease,
        transform 500ms ease;
}

.search-overlay.is-open .search-overlay__content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 300ms;
}

.search-overlay__form label {
    display: block;
    margin-bottom: 25px;
    color: #fff;
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.search-overlay__input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 15px;
    border-bottom: 2px solid var(--nencki-yellow);
}

.search-overlay__input-row input {
    width: 100%;
    min-width: 0;
    padding: 16px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: clamp(23px, 3vw, 40px);
    line-height: 1.2;
}

.search-overlay__input-row input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.search-overlay__input-row button {
    margin: 0 !important;
    padding: 12px 25px !important;
    border: 0 !important;
    background-color: var(--nencki-yellow) !important;
    color: var(--nencki-black) !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.search-overlay__input-row button:hover,
.search-overlay__input-row button:focus-visible {
    background-color: #fff !important;
}

.search-overlay__close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer;
}

.search-overlay__close span {
    position: absolute;
    top: 23px;
    left: 8px;
    width: 32px;
    height: 2px;
    background-color: var(--nencki-yellow);
}

.search-overlay__close span:first-child {
    transform: rotate(45deg);
}

.search-overlay__close span:last-child {
    transform: rotate(-45deg);
}

.search-overlay__close:hover span {
    background-color: #fff;
}

body.search-overlay-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .search-overlay {
        clip-path: circle(0 at calc(100% - 80px) 35px);
    }

    .search-overlay.is-open {
        clip-path: circle(150vmax at calc(100% - 80px) 35px);
    }

    .search-overlay__content {
        padding: 80px 25px;
    }

    .search-overlay__input-row {
        grid-template-columns: 1fr;
        border-bottom: 0;
    }

    .search-overlay__input-row input {
        border-bottom: 2px solid var(--nencki-yellow);
    }

    .search-overlay__input-row button {
        justify-self: start;
        margin-top: 15px !important;
    }

    .search-overlay__close {
        top: 18px;
        right: 18px;
    }
}


/* ========================================================================== 
   SUCHERGEBNISSE
   ========================================================================== */

.search-results {
    padding: clamp(50px, 7vw, 100px) 0;
}

.search-results__header {
    margin-bottom: 50px;
}

.search-results__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 800px;
    margin-top: 35px;
    border-bottom: 2px solid var(--nencki-black);
}

.search-results__form input {
    min-width: 0;
    padding: 14px 5px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 20px;
}

.search-results__form button {
    margin: 0 !important;
    padding: 12px 25px !important;
    border: 0 !important;
    background-color: var(--nencki-yellow) !important;
    color: var(--nencki-black) !important;
    font-weight: 600;
}

.search-results__summary {
    margin-bottom: 30px;
    color: #666;
}

.search-results__list {
    max-width: 900px;
    border-top: 1px solid #ddd;
}

.search-result {
    padding: 28px 0;
    border-bottom: 1px solid #ddd;
}

#content .search-result h2 {
    margin: 0 0 12px;
    padding-left: 0;
    font-size: clamp(23px, 2.3vw, 32px);
}

#content .search-result h2::before {
    display: none;
}

.search-result h2 a {
    color: var(--nencki-black);
    text-decoration: none;
}

.search-result h2 a:hover {
    color: #666;
}

.search-result p {
    max-width: 760px;
    margin-bottom: 14px !important;
}

.search-result__link {
    color: var(--nencki-black);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--nencki-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.search-pagination {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-top: 40px;
}

.search-pagination a {
    color: var(--nencki-black);
    font-weight: 600;
}

.search-results__empty {
    padding: 25px 0;
}

@media (max-width: 767px) {
    .search-results__form {
        grid-template-columns: 1fr;
        border-bottom: 0;
    }

    .search-results__form input {
        border-bottom: 2px solid var(--nencki-black);
    }

    .search-results__form button {
        justify-self: start;
        margin-top: 15px !important;
    }

    .search-pagination {
        justify-content: space-between;
        gap: 12px;
    }
}


/* ========================================================================== 
   KONTAKTKARTEN – SOCIAL-MEDIA-ICONS AUSBLENDEN
   ========================================================================== */

.element-team .teamListing img[src$="linkedin_black.svg"],
.element-team .teamListing img[src$="facebook_black.svg"],
.element-team .teamListing img[src$="twitter_black.svg"],
.element-team .teamListing img[src$="instagram_black.svg"] {
    display: none;
}


/* ========================================================================== 
   REDUZIERTE BEWEGUNG
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    header#mainHeader *,
    .contact-overlay,
    .contact-overlay__content,
    .contact-overlay-toggle,
    .contact-overlay-toggle img,
    .search-overlay,
    .search-overlay__content {
        transition: none !important;
    }
}


/* ========================================================================== 
   SPRACHAUSWAHL – FULLSCREEN OVERLAY
   ========================================================================== */

.language-overlay-toggle {
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.language-overlay-toggle img {
    display: block;
    width: 18px;
    height: 18px;
    padding: 0;
    opacity: .55;
    transition: opacity 180ms ease;
}

.language-overlay-toggle:hover img,
.language-overlay-toggle:focus-visible img {
    opacity: 1;
}

.language-overlay-toggle:focus-visible {
    outline: 2px solid var(--nencki-yellow);
    outline-offset: 5px;
}

.language-overlay {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 25px;
    overflow-y: auto;
    background: var(--nencki-black);
    color: #fff;
    visibility: hidden;
    pointer-events: none;
    clip-path: circle(0 at 100% 0);
    transition: clip-path 750ms cubic-bezier(.65, 0, .2, 1), visibility 0s linear 750ms;
    will-change: clip-path;
}

.language-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
    clip-path: circle(150vmax at 100% 0);
    transition: clip-path 750ms cubic-bezier(.65, 0, .2, 1), visibility 0s linear 0s;
}

.language-overlay__content {
    position: relative;
    width: 100%;
    max-width: 760px;
    padding: 80px 0 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 350ms ease, transform 500ms ease;
}

.language-overlay.is-open .language-overlay__content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 280ms;
}

.language-overlay__label {
    margin: 0 0 35px;
    color: var(--nencki-yellow);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.language-overlay__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.language-overlay__list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.language-overlay__list li:first-child {
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.language-overlay__list a {
    display: flex;
    min-height: 70px;
    padding: 13px 0;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 300;
    line-height: 1.15;
    text-decoration: none;
    transition: color 180ms ease, padding-left 250ms ease;
}

.language-overlay__list a:hover,
.language-overlay__list a:focus-visible {
    padding-left: 14px;
    color: var(--nencki-yellow);
    text-decoration: none;
}

.language-overlay__list a.is-active {
    color: var(--nencki-yellow);
}

.language-overlay__arrow {
    margin-left: 25px;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 180ms ease, transform 250ms ease;
}

.language-overlay__list a:hover .language-overlay__arrow,
.language-overlay__list a:focus-visible .language-overlay__arrow,
.language-overlay__list a.is-active .language-overlay__arrow {
    opacity: 1;
    transform: translateX(0);
}

.language-overlay__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.language-overlay__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 1px;
    background: #fff;
}

.language-overlay__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.language-overlay__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.language-overlay__close:hover,
.language-overlay__close:focus-visible {
    border-color: var(--nencki-yellow);
    background: var(--nencki-yellow);
}

.language-overlay__close:hover span,
.language-overlay__close:focus-visible span {
    background: var(--nencki-black);
}

body.language-overlay-open {
    overflow: hidden;
}

.language-overlay.is-closing,
.language-overlay.is-closing .language-overlay__content {
    transition: none !important;
}


/* ========================================================================== 
   MODERNE LEISTUNGSBOXEN – OHNE PFEILE
   ========================================================================== */

.element.element-boxes {
    padding-top: 70px;
    padding-bottom: 70px;
}

.element.element-boxes .boxSlider {
    margin-right: -12px;
    margin-left: -12px;
}

.element.element-boxes .boxMobile {
    margin-bottom: 0;
    padding: 12px;
}

.element.element-boxes .boxMobile>a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.element.element-boxes .box {
    position: relative;
    height: auto;
    aspect-ratio: 1 / 1.04;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    box-shadow: none;
    transition: transform 350ms cubic-bezier(.2, .7, .2, 1), box-shadow 350ms ease;
}

.element.element-boxes .box::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background: linear-gradient(180deg, rgba(29, 29, 27, .05) 15%, rgba(29, 29, 27, .15) 45%, rgba(29, 29, 27, .82) 100%);
    transition: background 350ms ease;
}

.element.element-boxes .box>div {
    position: relative;
    z-index: 1;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    padding: 32px;
}

.element.element-boxes .box p {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0 0 12px;
    color: #fff;
    font-family: "Lato Bold", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    transition: transform 300ms ease;
}

.element.element-boxes .box p::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 3px;
    background: var(--nencki-yellow);
    content: "";
    transition: width 300ms ease;
}

.element.element-boxes .boxArrow {
    display: none !important;
}

.element.element-boxes .boxMobile>a:hover .box,
.element.element-boxes .boxMobile>a:focus-visible .box {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(29, 29, 27, .2);
}

.element.element-boxes .boxMobile>a:hover .box::before,
.element.element-boxes .boxMobile>a:focus-visible .box::before {
    background: linear-gradient(180deg, rgba(29, 29, 27, 0) 10%, rgba(29, 29, 27, .08) 42%, rgba(29, 29, 27, .92) 100%);
}

.element.element-boxes .boxMobile>a:hover .box p,
.element.element-boxes .boxMobile>a:focus-visible .box p {
    transform: translateY(-3px);
}

.element.element-boxes .boxMobile>a:hover .box p::after,
.element.element-boxes .boxMobile>a:focus-visible .box p::after {
    width: 58px;
}

.element.element-boxes .boxMobile>a:focus-visible {
    outline: 3px solid var(--nencki-yellow);
    outline-offset: 4px;
}




@media (max-width: 767px) {
    .language-overlay {
        align-items: flex-start;
        padding: 30px 24px;
    }

    .language-overlay__content {
        padding-top: 80px;
    }

    .language-overlay__list a {
        min-height: 58px;
        font-size: 25px;
    }

    .language-overlay__close {
        width: 46px;
        height: 46px;
    }

    .element.element-boxes {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .element.element-boxes .boxSlider {
        margin-right: 0;
        margin-left: 0;
    }

    .element.element-boxes .boxMobile {
        padding: 7px 0;
    }

    .element.element-boxes .box {
        aspect-ratio: 4 / 3;
    }

    .element.element-boxes .box>div {
        padding: 24px;
    }

    .element.element-boxes .box p {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .language-overlay,
    .language-overlay__content,
    .language-overlay__list a,
    .language-overlay__arrow,
    .element.element-boxes .box,
    .element.element-boxes .box p {
        transition: none !important;
    }
}


/* Karte immer unter Header und Overlays halten */
.representatives-map,
.representatives-map__map,
#representativesMap {
    position: relative;
    z-index: 1 !important;
}

/* Leaflet-Ebenen innerhalb der Karte begrenzen */
.representatives-map .leaflet-pane,
.representatives-map .leaflet-control,
.representatives-map__map .leaflet-pane,
.representatives-map__map .leaflet-control,
#representativesMap .leaflet-pane,
#representativesMap .leaflet-control {
    z-index: auto;
}

/* ==========================================================
   Klare Ebenenreihenfolge
   ========================================================== */

/* Der komplette Kartenabschnitt bleibt auf Inhaltsebene */
section.element-intro:has(.representatives-map),
.element:has(.representatives-map),
.representatives-map {
    position: relative !important;
    z-index: 0 !important;
    isolation: isolate;
}

/* Leaflet in einer eigenen, niedrigen Ebene einschließen */
.representatives-map__map,
.leaflet-container {
    position: relative !important;
    z-index: 0 !important;
    isolation: isolate;
}

/* Header liegt über allen normalen Seiteninhalten */
header#mainHeader,
header#mainHeader.fixed-header {
    z-index: 20000 !important;
}

/* Feststehender Kontaktknopf */
.contact-overlay-toggle {
    z-index: 30001 !important;
}

/* Karte bei geöffnetem Overlay sicher ausblenden */
body.search-overlay-open .leaflet-container,
body.contact-overlay-open .leaflet-container,
body.language-overlay-open .leaflet-container {
    visibility: hidden !important;
    pointer-events: none !important;
}


/* ==========================================================
   Einheitlicher Overlay-Closebutton
   ========================================================== */

.overlay-close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 30010;

    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: transparent;

    cursor: pointer;
    transition:
        border-color 180ms ease,
        background-color 180ms ease;
}

.overlay-close span {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 16px;
    height: 1px;
    background-color: #fff;

    transition: background-color 180ms ease;
}

.overlay-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.overlay-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.overlay-close:hover,
.overlay-close:focus-visible {
    border-color: #ffed00;
    background-color: #ffed00;
}

.overlay-close:hover span,
.overlay-close:focus-visible span {
    background-color: #1d1d1b;
}

.overlay-close:focus-visible {
    outline: 2px solid #ffed00;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .overlay-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================
   Kontakt-Overlay – finale Korrekturen
   ========================================================== */

/* Sämtliche Texte weiß */
.contact-overlay .contact-overlay__label,
.contact-overlay .contact-overlay__title,
.contact-overlay .contact-overlay__function,
.contact-overlay .contact-overlay__details {
    color: #fff !important;
}

/* Kleine gelbe Kennzeichnung */
.contact-overlay .contact-overlay__label {
    color: #ffed00 !important;
}

/* Beschreibung gut lesbar */
.contact-overlay .contact-overlay__function {
    max-width: 760px;
    margin-bottom: 35px;
    font-size: 17px !important;
    line-height: 1.6;
}

/* Telefon und E-Mail kleiner */
.contact-overlay .contact-overlay__phone,
.contact-overlay .contact-overlay__email {
    color: #fff !important;
    font-size: clamp(22px, 2.2vw, 32px) !important;
    font-weight: 400;
    line-height: 1.25;
}

/* Kleine Bezeichnungen Telefon / E-Mail */
.contact-overlay .contact-overlay__phone span,
.contact-overlay .contact-overlay__email span {
    color: #fff !important;
    font-size: 12px !important;
    opacity: 0.65;
}

/* Hover */
.contact-overlay .contact-overlay__phone:hover,
.contact-overlay .contact-overlay__email:hover {
    color: #ffed00 !important;
}

/* Seiten-Buttons unter dem geöffneten Overlay ausblenden */
body.contact-overlay-open .contactButton,
body.contact-overlay-open .contact-button {
    visibility: hidden !important;
}

/* Gelben Supportbutton unten beim geöffneten Overlay ausblenden */
body.contact-overlay-open .contact-overlay-toggle {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================
   Kontaktseite – Standortkarte
   ========================================================== */

.contact-location {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    margin-top: 50px;
    background-color: #1d1d1b;
    isolation: isolate;
}

.contact-location__information {
    display: flex;
    min-height: 480px;
    padding: clamp(35px, 5vw, 70px);
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.contact-location__label {
    margin: 0 0 18px;
    color: #ffed00;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-location__information h2 {
    margin: 0 0 22px;
    padding: 0;
    color: #fff;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 300;
}

.contact-location__information h2::before,
.contact-location__information h2::after {
    display: none;
}

.contact-location__information p {
    color: #fff;
    font-size: 17px;
    line-height: 1.65;
}

.contact-location__route {
    display: inline-flex;
    margin-top: 25px;
    align-items: center;
    gap: 15px;
    align-self: flex-start;
    border-bottom: 2px solid #ffed00;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
}

.contact-location__route:hover,
.contact-location__route:focus {
    color: #ffed00;
    text-decoration: none;
}

.contact-location__route span {
    font-size: 22px;
    transition: transform 200ms ease;
}

.contact-location__route:hover span {
    transform: translateX(5px);
}

.contact-location__map,
#contactLocationMap {
    position: relative;
    z-index: 0 !important;
    width: 100%;
    min-height: 480px;
    isolation: isolate;
}

@media (max-width: 767px) {
    .contact-location {
        grid-template-columns: 1fr;
        margin-top: 35px;
    }

    .contact-location__information {
        min-height: auto;
        padding: 35px 25px;
    }

    .contact-location__map,
    #contactLocationMap {
        min-height: 380px;
    }
}

/* Aktiver Hauptpunkt – auch wenn ein Unterpunkt geöffnet ist */
header#mainHeader .main-menu>li.is-active>a {

    color: #1d1d1b;
    text-decoration: none !important;
}

/* Aktiver Eintrag im Dropdown */
/* Hauptnavigation: aktive Linie auf Höhe des Dropdown-Anfangs */
header#mainHeader .main-menu>li {
    position: relative;
}

header#mainHeader .main-menu>li>a {
    border-bottom: 0 !important;
}

header#mainHeader .main-menu>li.is-active::after {
    position: absolute;
    right: 0;
    bottom: -16px;
    left: 18px;
    z-index: 3;

    height: 3px;
    background-color: #ffed00;
    content: "";
}

/* Dropdown breit genug für längere Titel */
header#mainHeader .main-menu>li.has-children>.dropdown-menu {
    width: max-content;
    min-width: 260px;
    max-width: 360px;
}

/* Lange Titel innerhalb des Dropdowns umbrechen */
header#mainHeader .main-menu .dropdown-menu>li>a {
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

/* ========================================================================== 
   MODERNER HERO-SLIDER
   ========================================================================== */

.element.element-slider {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #1d1d1b;
}

.hero-slider,
.hero-slider .slick-list,
.hero-slider .slick-track {
    min-height: clamp(480px, 65vh, 760px);
}

.hero-slider__slide {
    position: relative;
    height: clamp(480px, 65vh, 760px) !important;
    overflow: hidden;
    box-shadow: none !important;
}

.hero-slider.smallSlider,
.hero-slider.smallSlider .slick-list,
.hero-slider.smallSlider .slick-track {
    min-height: clamp(300px, 36vh, 440px);
}

.hero-slider.smallSlider .hero-slider__slide {
    height: clamp(300px, 36vh, 440px) !important;
}

.hero-slider__media {
    position: absolute;
    inset: -2px;
    z-index: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1);
    transition: transform 7s cubic-bezier(.2, .65, .25, 1);
    will-change: transform;
}

.hero-slider__slide.slick-current .hero-slider__media,
.slick-current .hero-slider__media {
    transform: scale(1.045);
}

.hero-slider__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(20, 20, 18, .54) 0%, rgba(20, 20, 18, .16) 55%, rgba(20, 20, 18, 0) 82%),
        linear-gradient(0deg, rgba(20, 20, 18, .7) 0%, rgba(20, 20, 18, .08) 55%, rgba(20, 20, 18, 0) 78%);
}

.hero-slider__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 0 0 clamp(75px, 10vh, 115px);
    pointer-events: none;
}

.hero-slider__content .container {
    width: 100%;
}

.hero-slider__text {
    width: min(820px, 78vw);
    color: #fff;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease 180ms, transform 700ms cubic-bezier(.2, .7, .2, 1) 180ms;
    pointer-events: auto;
}

.hero-slider__slide.slick-current .hero-slider__text,
.slick-current .hero-slider__text {
    opacity: 1;
    transform: translateY(0);
}

.hero-slider__accent {
    display: block;
    width: 52px;
    height: 4px;
    margin-bottom: 22px;
    background: #ffed00;
}

.hero-slider__link {
    display: block;
    border: 0 !important;
    color: #fff;
    text-decoration: none !important;
}

.hero-slider__title {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-family: "Lato Light", "Lato", Arial, sans-serif !important;
    font-size: clamp(40px, 4.4vw, 66px) !important;
    font-weight: 300 !important;
    line-height: 1.04 !important;
    letter-spacing: -.025em;
}

.hero-slider__lead {
    display: block !important;
    max-width: 910px;
    margin: 20px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: rgba(255, 255, 255, .9) !important;
    font-family: "Lato", Arial, sans-serif !important;
    font-size: clamp(16px, 1.4vw, 20px) !important;
    font-weight: 300;
    line-height: 1.5 !important;
}

.hero-slider__link:hover .hero-slider__title,
.hero-slider__link:focus-visible .hero-slider__title {
    color: #ffed00 !important;
}

.hero-slider__link:focus-visible {
    outline: 2px solid #ffed00;
    outline-offset: 8px;
}

/* Schmale Fortschrittslinien statt quadratischer Punkte */
.element.element-slider .hero-slider .slick-dots {
    position: absolute;
    right: auto;
    bottom: 30px;
    left: 50%;
    z-index: 5;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;
    gap: 8px;
    transform: translateX(-50%);
    list-style: none;
}

.element.element-slider .hero-slider .slick-dots li {
    display: block;
    width: 42px;
    height: 18px;
    margin: 0;
    padding: 0;
}

.element.element-slider .hero-slider .slick-dots li button {
    display: block;
    width: 100%;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0;
    cursor: pointer;
}

.element.element-slider .hero-slider .slick-dots li button::after {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, .5);
    content: "";
    transition: height 180ms ease, background-color 180ms ease;
}

.element.element-slider .hero-slider .slick-dots li.slick-active button {
    border: 0;
    background: transparent;
}

.element.element-slider .hero-slider .slick-dots li.slick-active button::after {
    height: 3px;
    background: #ffed00;
}

@media (max-width: 767px) {

    .hero-slider,
    .hero-slider .slick-list,
    .hero-slider .slick-track {
        min-height: 55vh;
    }

    .hero-slider__slide {
        height: 55vh !important;
        min-height: 440px;
    }

    .hero-slider__shade {
        background: linear-gradient(0deg, rgba(20, 20, 18, .82) 0%, rgba(20, 20, 18, .16) 68%, rgba(20, 20, 18, 0) 88%);
    }

    .hero-slider__content {
        padding: 0 0 72px;
    }

    .hero-slider__text {
        width: 100%;
    }

    .hero-slider__accent {
        width: 42px;
        height: 3px;
        margin-bottom: 16px;
    }

    .hero-slider__title {
        font-size: clamp(32px, 9vw, 46px) !important;
        line-height: 1.08 !important;
    }

    .hero-slider__lead {
        margin-top: 14px !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
    }

    .element.element-slider .hero-slider .slick-dots {
        bottom: 22px;
    }

    .element.element-slider .hero-slider .slick-dots li {
        width: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-slider__media,
    .hero-slider__text,
    .element.element-slider .hero-slider .slick-dots li button::after {
        transition: none !important;
    }

    .hero-slider__slide.slick-current .hero-slider__media,
    .slick-current .hero-slider__media {
        transform: none;
    }

}

/* ==========================================================
   Ankerbutton zu den Kontaktpersonen
   ========================================================== */

html {
    scroll-behavior: smooth;
}

#kontakte {
    scroll-margin-top: 130px;
}

.intro-contact-anchor {
    display: inline-flex;
    min-width: 210px;
    height: 54px;
    padding: 0 18px;
    align-items: center;
    justify-content: space-between;
    align-self: flex-start;
    gap: 30px;

    border: 0 !important;
    border-left: 3px solid #ffed00 !important;
    background-color: #1d1d1b;
    color: #fff !important;

    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;

    transition:
        background-color 200ms ease,
        color 200ms ease;
}

.intro-contact-anchor__arrow {
    color: #ffed00;
    font-size: 21px;
    font-weight: 300;
    transition:
        color 200ms ease,
        transform 250ms ease;
}

.intro-contact-anchor:hover,
.intro-contact-anchor:focus-visible {
    background-color: #ffed00;
    color: #1d1d1b !important;
    text-decoration: none !important;
}

.intro-contact-anchor:hover .intro-contact-anchor__arrow,
.intro-contact-anchor:focus-visible .intro-contact-anchor__arrow {
    color: #1d1d1b;
    transform: translateY(4px);
}

.intro-contact-anchor:focus-visible {
    outline: 2px solid #1d1d1b;
    outline-offset: 4px;
}


/* ==========================================================
   Moderne Produktkarten
   ========================================================== */

.element.element-product .productPadding {
    padding: 0 !important;
    background: transparent !important;
}

.element.element-product .productListing {
    overflow: hidden;
    background: #1d1d1b;
    transition: box-shadow 300ms ease;
}

.element.element-product .productListing>a {
    display: block;
    border: 0 !important;
    color: inherit;
    text-decoration: none !important;
}

.element.element-product .productListing .figure {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #1d1d1b;
}

/* Ruhiger Verlauf über dem Bild */
.element.element-product .productListing .figure::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(29, 29, 27, 0) 25%,
            rgba(29, 29, 27, 0.12) 50%,
            rgba(29, 29, 27, 0.86) 100%);
    content: "";
    pointer-events: none;
    transition: background 300ms ease;
}

/* Bild */
.element.element-product .productListing .figure>img:first-child {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transform: scale(1);
    transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Titelbereich unten über die ganze Breite */
.element.element-product .productHeadline {
    position: absolute !important;
    right: 0;
    bottom: 0 !important;
    left: 0;
    z-index: 2;
    width: 100% !important;
    padding: 28px !important;
    background: transparent !important;
    text-align: left;
}

/* Bootstrap-Container innerhalb der Karte neutralisieren */
.element.element-product .productHeadline .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Produkttitel */
.element.element-product .productHeadline p {
    position: relative;
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0 0 13px;
    color: #fff !important;
    font-family: "Lato Bold", "Lato", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

/* Gelbe Linie unter dem Titel */
.element.element-product .productHeadline p::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 3px;
    background: #ffed00;
    content: "";
    transition: width 300ms ease;
}

/* Alten Pfeil entfernen */
.element.element-product .productHeadline p>img {
    display: none !important;
}

/* Dezenter Zoom nur innerhalb des Bildes */
.element.element-product .productListing>a:hover .figure>img:first-child,
.element.element-product .productListing>a:focus-visible .figure>img:first-child {
    transform: scale(1.05);
}

.element.element-product .productListing>a:hover .productHeadline p::after,
.element.element-product .productListing>a:focus-visible .productHeadline p::after {
    width: 58px;
}

.element.element-product .productListing:has(a:hover),
.element.element-product .productListing:has(a:focus-visible) {
    box-shadow: 0 16px 34px rgba(29, 29, 27, 0.2);
}

.element.element-product .productListing>a:focus-visible {
    outline: 3px solid #ffed00;
    outline-offset: -3px;
}

/* Gleichmäßige Abstände */
.element.element-product .product {
    margin-bottom: 30px;
}

.element.element-product .productPadding {
    height: 100%;
    margin-bottom: 0 !important;
}

.element.element-product .productListing {
    height: 100%;
}

@media (max-width: 767px) {
    .element.element-product .productListing .figure {
        aspect-ratio: 4 / 3;
    }

    .element.element-product .productHeadline {
        padding: 22px !important;
    }

    .element.element-product .productHeadline p {
        font-size: 17px;
    }

    .element.element-product .product {
        margin-bottom: 16px;
    }
}


/* ==========================================================
   Moderne Kontaktkarten
   ========================================================== */

.element.element-team .team {
    background-color: #f1f1ef;
}

.element.element-team .teamListing {
    display: flex;
    height: 100%;
    padding: 0 !important;
    overflow: hidden;
    flex-direction: column;

    background-color: #fff;
    word-break: normal;

    transition:
        transform 300ms ease,
        box-shadow 300ms ease;
}

/* Bildbereich */
.element.element-team .teamListing .figure {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #e8e8e5;
}

.element.element-team .teamListing .figure>img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;

    transform: scale(1);
    transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Textbereich */
.element.element-team .teamDescription {
    display: flex;
    min-height: 260px;
    padding: 27px 28px 30px;
    flex: 1;
    flex-direction: column;
}

.element.element-team .teamListing .figure-caption {
    margin: 0 0 22px;
}

.element.element-team .teamListing .figure-caption p {
    margin: 0 0 7px;
    color: #414141;
    font-size: 16px;
    line-height: 1.55;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Name */
.element.element-team .teamListing #teamName {
    position: relative;
    margin-bottom: 19px;
    padding-bottom: 14px;

    color: #1d1d1b;
    font-size: 20px;
    line-height: 1.25;
}

.element.element-team .teamListing #teamName b {
    font-weight: 600;
}

/* Gelbe Linie unter dem Namen */
.element.element-team .teamListing #teamName::after {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 34px;
    height: 3px;
    background-color: #ffed00;

    content: "";
    transition: width 300ms ease;
}

/* Telefonnummer und E-Mail nach unten ausrichten */
.element.element-team .teamListing .figure-caption:nth-child(2) {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px solid #e5e5e2;
}

/* Kontaktlinks */
.element.element-team .teamListing .figure-caption a {
    display: inline;
    padding: 0 !important;
    border: 0 !important;

    color: #414141;
    font-size: 15px;
    text-decoration: none !important;

    transition: color 180ms ease;
}

.element.element-team .teamListing .figure-caption a:hover,
.element.element-team .teamListing .figure-caption a:focus {
    padding: 0 !important;
    border: 0 !important;
    color: #000;
    text-decoration: underline;
    text-decoration-color: #ffed00;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Social-Media-Bereich entfernen */
.element.element-team .teamListing .figure-caption.margin-top-20 {
    display: none !important;
}

/* Hover */
.element.element-team .teamListing:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(29, 29, 27, 0.16);
}

.element.element-team .teamListing:hover .figure>img {
    transform: scale(1.04);
}

.element.element-team .teamListing:hover #teamName::after {
    width: 58px;
}

/* Gleich hohe Bootstrap-Spalten */
.element.element-team .category-team>[class*="col-"],
.element.element-team .team .row>[class*="col-"] {
    display: flex;
}

@media (max-width: 767px) {
    .element.element-team .teamListing {
        width: 100%;
        margin: 8px 0;
    }

    .element.element-team .teamDescription {
        min-height: auto;
        padding: 23px 22px 26px;
    }

    .element.element-team .teamListing #teamName {
        font-size: 19px;
    }
}

/* Auffälliger, aber ruhiger Pikett-Glow */
.contact-overlay-toggle:not(.is-open) {
    animation: pikett-glow 2.4s ease-in-out infinite;
}

.contact-overlay-toggle:not(.is-open) img {
    animation: pikett-icon-pulse 2.4s ease-in-out infinite;
}

@keyframes pikett-glow {

    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(255, 237, 0, 0),
            0 5px 18px rgba(29, 29, 27, 0.18);
    }

    50% {
        box-shadow:
            0 0 0 10px rgba(255, 237, 0, 0.2),
            0 0 30px rgba(255, 237, 0, 0.55),
            0 7px 24px rgba(29, 29, 27, 0.2);
    }
}

@keyframes pikett-icon-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.035);
    }
}

/* Beim Hover Animation stoppen */
.contact-overlay-toggle:hover,
.contact-overlay-toggle:focus-visible,
.contact-overlay-toggle:hover img,
.contact-overlay-toggle:focus-visible img {
    animation-play-state: paused;
}

/* Keine Bewegung bei entsprechender Systemeinstellung */
@media (prefers-reduced-motion: reduce) {

    .contact-overlay-toggle,
    .contact-overlay-toggle img {
        animation: none !important;
    }
}

/* ==========================================================
   Textlinks – schwarz mit gelber Hover-Linie
   ========================================================== */

#content .element p a:not(.button),
#content .element .leadtext a,
#content .element li a:not(.button) {
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;

    color: #414141 !important;
    text-decoration: none !important;

    transition:
        color 180ms ease,
        border-color 180ms ease;
}

#content .element p a:not(.button):hover,
#content .element p a:not(.button):focus,
#content .element .leadtext a:hover,
#content .element .leadtext a:focus,
#content .element li a:not(.button):hover,
#content .element li a:not(.button):focus {
    border: 0 !important;
    border-bottom: 2px solid #ffed00 !important;
    color: #1d1d1b !important;
    text-decoration: none !important;
}

#content .element-team .category-navigation a {
    border-bottom-color: transparent;
}

#content .element-team .category-navigation .current a {
    border-bottom-color: #ffed00;
}

/* ========================================================================== 
   MODERNE DOWNLOADLISTE
   ========================================================================== */

.downloads-modern__lead {
    max-width: 760px;
    margin-bottom: 35px;
}

.downloads-modern__list {
    border-top: 1px solid #d9d9d5;
}

.download-card {
    position: relative;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    min-height: 94px;
    padding: 15px 22px 15px 18px;
    align-items: center;
    gap: 22px;

    border: 0 !important;
    border-bottom: 1px solid #d9d9d5 !important;
    background: #fff;
    color: #1d1d1b !important;
    text-decoration: none !important;

    transition:
        background-color 200ms ease,
        padding-left 250ms ease,
        box-shadow 250ms ease;
}

.download-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: #ffed00;
    content: "";
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 250ms ease;
}

.download-card:hover,
.download-card:focus-visible {
    padding-left: 24px;
    border-bottom-color: #d9d9d5 !important;
    background: #f5f5f2;
    color: #1d1d1b !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.download-card:hover::before,
.download-card:focus-visible::before {
    transform: scaleY(1);
}

.download-card:focus-visible {
    outline: 2px solid #1d1d1b;
    outline-offset: 3px;
}

.download-card__icon {
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 54px;
    align-items: flex-end;
    justify-content: center;
}

.download-card__icon svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #1d1d1b;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 1.4;
}

.download-card__icon>span {
    position: relative;
    z-index: 1;
    min-width: 32px;
    margin-bottom: 7px;
    padding: 3px 4px;
    background: #ffed00;
    color: #1d1d1b;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .06em;
    text-align: center;
}

.download-card__title {
    color: #1d1d1b;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
}

.download-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}

.download-card__size {
    min-width: 65px;
    color: #777;
    font-size: 13px;
    text-align: right;
}

.download-card__download-icon {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #1d1d1b;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 1.5;
    transition: stroke 180ms ease, transform 250ms ease;
}

.download-card:hover .download-card__download-icon,
.download-card:focus-visible .download-card__download-icon {
    stroke: #b5a900;
    transform: translateY(3px);
}

@media (max-width: 767px) {
    .download-card {
        grid-template-columns: 52px minmax(0, 1fr);
        min-height: 88px;
        padding: 14px 12px;
        gap: 15px;
    }

    .download-card:hover,
    .download-card:focus-visible {
        padding-left: 17px;
    }

    .download-card__icon {
        width: 40px;
        height: 48px;
    }

    .download-card__title {
        font-size: 15px;
    }

    .download-card__meta {
        grid-column: 2;
        justify-content: space-between;
        gap: 15px;
    }

    .download-card__size {
        min-width: 0;
        text-align: left;
    }

    .download-card__download-icon {
        width: 22px;
        height: 22px;
    }
}


/* ==========================================================================
   TAB-SEITEN – NAVIGATION UND BILDAUSRICHTUNG
   ========================================================================== */

@media (min-width: 768px) {

    /* Linke Navigationsspalte */
    .element.element-tabs #parentTabLeft {}

    .element.element-tabs .tabLeft {
        position: sticky;
        top: 120px;
        display: block;
        height: auto;
        min-height: 0;
        padding: 48px 38px;
        background-color: #1d1d1b;
        overflow: visible;
    }

    .element.element-tabs .tabLeft ul.tabs {
        width: 100%;
        margin: 0;
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .element.element-tabs .tabLeft ul.tabs>li {
        position: relative;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        list-style: none;
    }

    .element.element-tabs .tabLeft ul.tabs>li>a {
        display: block;
        margin: 0;
        padding: 0;
        border: 0 !important;
        box-shadow: none !important;
        color: #fff !important;
        text-decoration: none !important;
    }

    .element.element-tabs .tabLeft ul.tabs>li>a>p {
        position: relative;
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 17px 12px 17px 0;
        color: #fff;
        font-size: 16px;
        line-height: 1.35;
        transition:
            color 200ms ease,
            padding-left 250ms ease;
    }

    /* Alte Kreispfeile entfernen */
    .element.element-tabs .tabLeft ul.tabs img {
        display: none !important;
    }

    /* Dezenter Hover */
    .element.element-tabs .tabLeft ul.tabs>li:hover>a>p {
        padding-left: 10px;
        color: #fff !important;
    }

    /* Kurzer gelber Strich beim Hover */
    .element.element-tabs .tabLeft ul.tabs>li::after {
        position: absolute;
        right: 0;
        bottom: -1px;
        width: 0;
        height: 2px;
        background-color: #ffed00;
        content: "";
        transition: width 250ms ease;
    }

    .element.element-tabs .tabLeft ul.tabs>li:hover::after {
        width: 42px;
    }

    /* Aktiver Menüpunkt */
    .element.element-tabs .tabLeft ul.tabs>li.active>a>p {
        padding-left: 10px;
        color: #ffed00 !important;
    }

    .element.element-tabs .tabLeft ul.tabs>li.active::before {
        position: absolute;
        top: 14px;
        bottom: 14px;
        left: -16px;
        width: 3px;
        background-color: #ffed00;
        content: "";
    }

    .element.element-tabs .tabLeft ul.tabs>li.active::after {
        width: 42px;
    }

    /* Inhaltsbereich */
    .element.element-tabs .tabRight {
        padding-top: 0;
    }

    /*
     * Bilder und Galerien an der linken Textkante ausrichten.
     * Die alte Slider-Zentrierung wird überschrieben.
     */
    .element.element-tabs .tabRight .element-gallery .container {
        width: 100%;
        max-width: 960px;
        margin-right: auto;
        margin-left: auto;
    }

    .element.element-tabs .tabRight .gallerySlider {
        justify-content: flex-start;
        margin-right: 0;
        margin-left: 0;
    }

    .element.element-tabs .tabRight .gallerySlider .slick-list {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .element.element-tabs .tabRight .gallerySlider .slick-track {
        margin-left: 0 !important;
    }

    .element.element-tabs .tabRight .intro img {
        margin-right: auto !important;
        margin-left: 0 !important;
    }
}


/* Mobile: Navigation kompakt untereinander */
@media (max-width: 767px) {

    .element.element-tabs .tabLeft {
        height: auto;
        padding: 18px 20px;
        background-color: #1d1d1b;
    }

    .element.element-tabs .tabLeft ul.tabs {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .element.element-tabs .tabLeft ul.tabs>li {
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .element.element-tabs .tabLeft ul.tabs>li>a {
        border: 0 !important;
        box-shadow: none !important;
        text-decoration: none !important;
    }

    .element.element-tabs .tabLeft ul.tabs p {
        margin: 0;
        padding: 14px 0;
        font-size: 15px;
    }

    .element.element-tabs .tabLeft ul.tabs img {
        display: none !important;
    }

    .element.element-tabs .tabLeft ul.tabs>li.active p {
        color: #ffed00 !important;
    }
}


/* ========================================================================== 
   TAB-GALERIE – MODERNER SLIDER
   ========================================================================== */

.element.element-tabs .element-gallery {
    padding-top: 20px;
    padding-bottom: 35px;
    background: transparent;
    overflow: hidden;
}

.element.element-tabs .element-gallery .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.element.element-tabs .gallerySlider {
    margin: 0;
}

.element.element-tabs .gallerySlider .slick-list {
    margin: 0 -10px;
    padding: 8px 0 15px;
    overflow: hidden;
}

.element.element-tabs .gallerySlider .slick-track {
    display: flex;
    align-items: stretch;
    margin-left: 0;
}

.element.element-tabs .gallerySlider .galleryItems {
    height: auto;
    padding: 0 10px;
    opacity: 1;
}

.element.element-tabs .gallerySlider .galleryItems>a {
    position: relative;
    display: block;
    height: 100%;
    border: 0 !important;
    background: #fff;
    box-shadow: none !important;
    overflow: hidden;
}

.element.element-tabs .gallerySlider .galleryItems>a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #ffed00;
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.element.element-tabs .gallerySlider .galleryItems>a:hover::after {
    transform: scaleX(1);
}

.element.element-tabs .gallerySlider .galleryItems img {
    display: block;
    width: 100%;
    height: clamp(210px, 22vw, 350px);
    margin: 0 !important;
    object-fit: contain;
    object-position: center;
    background: #fff;
    transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.element.element-tabs .gallerySlider .galleryItems>a:hover img {
    transform: scale(1.035);
}

/* Moderne Slider-Navigation */
.element.element-tabs .gallerySlider .slick-dots {
    position: relative;
    right: auto;
    bottom: auto;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
}

.element.element-tabs .gallerySlider .slick-dots li {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.element.element-tabs .gallerySlider .slick-dots li button {
    display: block;
    width: 7px !important;
    height: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #b8b8b5 !important;
    font-size: 0;
    box-shadow: none !important;
    cursor: pointer;
    transition:
        width 250ms ease,
        background-color 250ms ease;
}

.element.element-tabs .gallerySlider .slick-dots li.slick-active button {
    width: 28px !important;
    background: #ffed00 !important;
}

@media (max-width: 767px) {
    .element.element-tabs .element-gallery {
        padding-top: 10px;
        padding-bottom: 25px;
    }

    .element.element-tabs .gallerySlider .slick-list {
        margin: 0;
    }

    .element.element-tabs .gallerySlider .galleryItems {
        padding: 0;
        opacity: 1;
        transform: none;
    }

    .element.element-tabs .gallerySlider .galleryItems img {
        height: clamp(220px, 68vw, 360px);
    }
}


/* ========================================================================== 
   TATSÄCHLICH VERWENDETE SLB-LIGHTBOX
   ========================================================================== */

html.slbActive {
    overflow: hidden;
}

.slbOverlay {
    z-index: 2147483610 !important;
    background: #151513 !important;
    opacity: 0.96 !important;
    backdrop-filter: blur(5px);
}

.slbWrapOuter,
.slbWrap {
    z-index: 2147483611 !important;
}

.slbContentOuter {
    z-index: 2147483612 !important;
    padding: 70px 90px !important;
}

.slbImageWrap {
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    animation: nenckiLightboxIn 450ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.slbImageWrap::after {
    display: none !important;
}

.slbImage {
    max-width: min(1280px, calc(100vw - 180px)) !important;
    max-height: calc(100vh - 140px) !important;
    padding: 0 !important;
    background: #fff;
    object-fit: contain;
}

.slbCaption {
    right: 0;
    bottom: 0;
    left: 0;
    padding: 14px 18px !important;
    background: rgba(29, 29, 27, 0.9);
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.4;
    text-align: left;
}

.slbCloseBtn {
    position: fixed !important;
    top: 22px !important;
    right: 24px !important;
    z-index: 2147483613 !important;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 50%;
    background: rgba(29, 29, 27, 0.75) !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 46px !important;
    opacity: 1 !important;
    transition:
        border-color 200ms ease,
        background-color 200ms ease,
        transform 200ms ease;
}

.slbCloseBtn::before,
.slbCloseBtn::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1px;
    background: #fff;
    content: "";
}

.slbCloseBtn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.slbCloseBtn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.slbCloseBtn:hover {
    border-color: #ffed00 !important;
    background: #1d1d1b !important;
    opacity: 1 !important;
    transform: scale(1.06);
}

.slbCloseBtn:hover::before,
.slbCloseBtn:hover::after {
    background: #ffed00;
}

.slbArrows {
    z-index: 2147483613 !important;
}

.slbArrow {
    position: fixed !important;
    top: 50% !important;
    width: 52px !important;
    height: 52px !important;
    margin-top: -26px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 50%;
    background: rgba(29, 29, 27, 0.75) !important;
    opacity: 1 !important;
    text-indent: -9999px;
    transition:
        border-color 200ms ease,
        background-color 200ms ease,
        transform 200ms ease;
}

.slbArrow.prev {
    left: 24px !important;
}

.slbArrow.next {
    right: 24px !important;
}

.slbArrow::before {
    top: 50% !important;
    left: 50% !important;
    width: 11px;
    height: 11px;
    margin: 0 !important;
    border: 0 !important;
    border-top: 2px solid #fff !important;
    border-right: 2px solid #fff !important;
}

.slbArrow.next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.slbArrow.prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.slbArrow:hover {
    border-color: #ffed00 !important;
    background: #1d1d1b !important;
    opacity: 1 !important;
    transform: scale(1.06);
}

.slbArrow:hover::before {
    border-color: #ffed00 !important;
}

@keyframes nenckiLightboxIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 767px) {
    .slbContentOuter {
        padding: 70px 14px !important;
    }

    .slbImage {
        max-width: calc(100vw - 28px) !important;
        max-height: calc(100vh - 140px) !important;
    }

    .slbCloseBtn {
        top: 14px !important;
        right: 14px !important;
        width: 42px !important;
        height: 42px !important;
    }

    .slbArrow {
        width: 44px !important;
        height: 44px !important;
        margin-top: -22px !important;
    }

    .slbArrow.prev {
        left: 8px !important;
    }

    .slbArrow.next {
        right: 8px !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    .element.element-tabs .gallerySlider .galleryItems,
    .element.element-tabs .gallerySlider .galleryItems img,
    .element.element-tabs .gallerySlider .galleryItems>a::after,
    .element.element-tabs .gallerySlider .slick-dots li button {
        transition: none;
    }
}


/* ========================================================================== 
   SIMPLELIGHTBOX – MODERNE DARSTELLUNG
   ========================================================================== */

.sl-overlay {
    z-index: 2147483610 !important;
    background: #151513 !important;
    opacity: 0.96 !important;
}

.sl-wrapper {
    z-index: 2147483611 !important;
    color: #fff;
}

.sl-wrapper .sl-image {
    padding: 0;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.sl-wrapper .sl-image img {
    display: block;
    background: #fff;
}

.sl-wrapper .sl-close {
    position: fixed !important;
    top: 22px !important;
    right: 24px !important;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 50%;
    background: rgba(29, 29, 27, 0.72) !important;
    color: transparent !important;
    font-size: 0 !important;
    opacity: 1 !important;
    transition:
        border-color 200ms ease,
        background-color 200ms ease,
        transform 200ms ease;
}

.sl-wrapper .sl-close::before,
.sl-wrapper .sl-close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1px;
    background: #fff;
    content: "";
}

.sl-wrapper .sl-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.sl-wrapper .sl-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.sl-wrapper .sl-close:hover {
    border-color: #ffed00 !important;
    background: #1d1d1b !important;
    transform: scale(1.06);
}

.sl-wrapper .sl-close:hover::before,
.sl-wrapper .sl-close:hover::after {
    background: #ffed00;
}

.sl-wrapper .sl-navigation button {
    position: fixed;
    top: 50%;
    width: 52px !important;
    height: 52px !important;
    margin-top: -26px !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 50%;
    background: rgba(29, 29, 27, 0.72) !important;
    color: #fff !important;
    font-size: 28px !important;
    line-height: 48px !important;
    opacity: 1 !important;
    transition:
        border-color 200ms ease,
        color 200ms ease,
        transform 200ms ease;
}

.sl-wrapper .sl-navigation button.sl-prev {
    left: 24px !important;
}

.sl-wrapper .sl-navigation button.sl-next {
    right: 24px !important;
}

.sl-wrapper .sl-navigation button:hover {
    border-color: #ffed00 !important;
    color: #ffed00 !important;
    transform: scale(1.06);
}

.sl-wrapper .sl-counter {
    position: fixed !important;
    top: 28px !important;
    left: 28px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 14px !important;
    letter-spacing: 0.08em;
}

.sl-wrapper .sl-image .sl-caption {
    right: 0;
    bottom: 0;
    left: 0;
    padding: 14px 18px !important;
    background: rgba(29, 29, 27, 0.88) !important;
    color: #fff !important;
    font-size: 15px;
    text-align: left;
}

@media (max-width: 767px) {
    .sl-wrapper .sl-close {
        top: 14px !important;
        right: 14px !important;
        width: 42px !important;
        height: 42px !important;
    }

    .sl-wrapper .sl-navigation button {
        width: 44px !important;
        height: 44px !important;
        line-height: 40px !important;
    }

    .sl-wrapper .sl-navigation button.sl-prev {
        left: 10px !important;
    }

    .sl-wrapper .sl-navigation button.sl-next {
        right: 10px !important;
    }
}



/* ========================================================================== 
   KONTAKTKARTEN
   Funktioniert für Twig-Karten und per AJAX geladene Karten
   ========================================================================== */

.element.element-team .team {
    padding-top: 55px;
    padding-bottom: 55px;
    background: #efefed;
    word-break: normal;
}

.element.element-team .category-team>[class*="col-"] {
    display: flex;
}

.element.element-team .teamListing {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    height: auto !important;
    min-height: 100%;
    padding: 0;
    background: #fff;
    box-shadow: 0 12px 35px rgba(29, 29, 27, 0.07);
    overflow: hidden;
    transition:
        box-shadow 300ms ease,
        transform 300ms ease;
}

.element.element-team .teamListing::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2;
    height: 4px;
    background: #ffed00;
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.element.element-team .teamListing:hover {
    box-shadow: 0 20px 50px rgba(29, 29, 27, 0.13);
    transform: translateY(-4px);
}

.element.element-team .teamListing:hover::before {
    transform: scaleX(1);
}

/* Bildhöhe von alten h-100-Klassen lösen */
.element.element-team .teamListing>.figure,
.element.element-team .teamListing .teamListing__image {
    position: relative;
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
    background: #f4f4f2;
    overflow: hidden;
}

.element.element-team .teamListing>.figure>img,
.element.element-team .teamListing .teamListing__image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center top;
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.element.element-team .teamListing:hover>.figure>img,
.element.element-team .teamListing:hover .teamListing__image img {
    transform: scale(1.025);
}

.element.element-team .teamDescription {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 27px 28px 30px;
}

.element.element-team .teamDescription .figure-caption {
    margin: 0;
}

.element.element-team .teamDescription .figure-caption:first-child {
    margin-bottom: 24px;
}

.element.element-team .teamDescription .figure-caption:first-child p:first-child {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 13px;
    color: #1d1d1b;
    font-size: 19px;
    line-height: 1.3;
}

.element.element-team .teamDescription .figure-caption:first-child p:first-child::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 38px;
    height: 3px;
    background: #ffed00;
    content: "";
}

.element.element-team .teamDescription .figure-caption:first-child p:not(:first-child) {
    margin: 0;
    color: #555552;
    font-size: 16px;
    line-height: 1.55;
}

/* Telefon und E-Mail */
.element.element-team .teamDescription .figure-caption:nth-child(2),
.element.element-team .teamListing__contact {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #dededb;
}

.element.element-team .teamDescription .figure-caption:nth-child(2) p,
.element.element-team .teamListing__contact p {
    margin: 0;
}

.element.element-team .teamDescription .figure-caption:nth-child(2) p+p,
.element.element-team .teamListing__contact p+p {
    margin-top: 11px;
}

.element.element-team .teamDescription a[href^="tel:"],
.element.element-team .teamDescription a[href^="mailto:"],
.element.element-team .team-contact-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 2px 0 4px 27px;
    border: 0 !important;
    box-shadow: none !important;
    color: #343432 !important;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    transition: color 200ms ease;
}

.element.element-team .teamDescription a[href^="tel:"]::before,
.element.element-team .teamDescription a[href^="mailto:"]::before,
.element.element-team .team-contact-link::before {
    position: absolute;
    top: 4px;
    left: 0;
    width: 17px;
    height: 17px;
    background: currentColor;
    content: "";
    transition: background-color 200ms ease;
}

.element.element-team .teamDescription a[href^="tel:"]::before,
.element.element-team .team-contact-link--phone::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.5 3 3.8 5.4 6.8 6.8l2.3-2.3c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.5.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.7 21 3 13.3 3 3.8c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.5.1.4 0 .8-.2 1l-2.3 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.5 3 3.8 5.4 6.8 6.8l2.3-2.3c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.5.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.7 21 3 13.3 3 3.8c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.5.1.4 0 .8-.2 1l-2.3 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.element.element-team .teamDescription a[href^="mailto:"]::before,
.element.element-team .team-contact-link--email::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.element.element-team .teamDescription a[href^="tel:"]:hover,
.element.element-team .teamDescription a[href^="mailto:"]:hover,
.element.element-team .team-contact-link:hover {
    color: #1d1d1b !important;
}

.element.element-team .teamDescription a[href^="tel:"]::after,
.element.element-team .teamDescription a[href^="mailto:"]::after,
.element.element-team .team-contact-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 27px;
    height: 2px;
    background: #ffed00;
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 220ms ease;
}

.element.element-team .teamDescription a[href^="tel:"]:hover::after,
.element.element-team .teamDescription a[href^="mailto:"]:hover::after,
.element.element-team .team-contact-link:hover::after {
    transform: scaleX(1);
}

/* Alte Social-Media-Zeile vollständig entfernen */
.element.element-team .teamListing__socials,
.element.element-team .teamDescription .figure-caption.margin-top-20 {
    display: none !important;
}

@media (max-width: 767px) {
    .element.element-team .team {
        padding: 35px 15px;
    }

    .element.element-team .teamDescription {
        padding: 23px 22px 26px;
    }

    .element.element-team .teamListing:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .element.element-team .teamListing,
    .element.element-team .teamListing::before,
    .element.element-team .teamListing img,
    .element.element-team .teamDescription a::after {
        transition: none !important;
    }
}


/* Kontaktkarten – Abstand zwischen Icon und Text */

#content .element.element-team .teamDescription a[href^="tel:"],
#content .element.element-team .teamDescription a[href^="mailto:"] {
    display: flex !important;
    align-items: flex-start;
    min-height: 22px;
    padding: 2px 0 4px 34px !important;
    line-height: 1.45;
}

#content .element.element-team .teamDescription a[href^="tel:"]::before,
#content .element.element-team .teamDescription a[href^="mailto:"]::before {
    top: 4px;
    left: 2px;
    width: 17px;
    height: 17px;
}

#content .element.element-team .teamDescription .figure-caption:nth-child(2) p+p,
#content .element.element-team .teamListing__contact p+p {
    margin-top: 14px;
}


/* Kontaktkarten – nur eine Hover-Linie */

#content .element.element-team .teamDescription p {
    display: block;
}

#content .element.element-team .teamDescription a[href^="tel:"],
#content .element.element-team .teamDescription a[href^="mailto:"] {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100%;
    align-self: flex-start;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Unsere zusätzliche lange Linie entfernen */
#content .element.element-team .teamDescription a[href^="tel:"]::after,
#content .element.element-team .teamDescription a[href^="mailto:"]::after {
    display: none !important;
}

/* Nur der Text erhält eine einzelne gelbe Linie */
#content .element.element-team .teamDescription a[href^="tel:"]:hover,
#content .element.element-team .teamDescription a[href^="mailto:"]:hover {
    border: 0 !important;
    border-bottom: 2px solid #ffed00 !important;
    box-shadow: none !important;
    color: #1d1d1b !important;
}


/* ==========================================================================
   VIDEO-KARTEN – INNERHALB UND AUSSERHALB VON TABS
   ========================================================================== */

.tab-video-section {
    position: relative;
    clear: both;
    margin-top: 40px;
    margin-bottom: 40px;
}

.element-tabs .tab-video-section {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-right: 15px;
    padding-left: 15px;
}

.tab-video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.tab-video-column {
    display: flex;
    margin-bottom: 30px;
}


/* ==========================================================================
   VIDEO-KARTE
   ========================================================================== */

.tab-video-card {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    margin: 0;
    background-color: #fff;
    box-shadow: 0 12px 35px rgba(29, 29, 27, 0.1);
    overflow: hidden;
    transition:
        box-shadow 300ms ease,
        transform 300ms ease;
}

.tab-video-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: #ffed00;
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-video-card:hover {
    box-shadow: 0 20px 48px rgba(29, 29, 27, 0.16);
    transform: translateY(-3px);
}

.tab-video-card:hover::after {
    transform: scaleX(1);
}


/* ==========================================================================
   VORSCHAUBILD
   ========================================================================== */

.tab-video-preview,
.tab-video-preview:hover,
.tab-video-preview:focus {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0 !important;
    border-bottom: 0 !important;
    outline: 0;
    background-color: #1d1d1b;
    box-shadow: none !important;
    overflow: hidden;
    text-decoration: none !important;
}

.tab-video-preview>img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    object-fit: cover;
    object-position: center;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-video-preview:hover>img {
    transform: scale(1.04);
}


/* ==========================================================================
   ABDUNKLUNG UND PLAY-BUTTON
   ========================================================================== */

.tab-video-preview__shade {
    position: absolute;
    inset: 0;
    background-color: rgba(29, 29, 27, 0.2);
    transition: background-color 250ms ease;
}

.tab-video-preview:hover .tab-video-preview__shade {
    background-color: rgba(29, 29, 27, 0.08);
}

.tab-video-preview__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 2px solid #ffed00;
    border-radius: 50%;
    background-color: rgba(29, 29, 27, 0.8);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
    transform: translate(-50%, -50%);
    transition:
        background-color 250ms ease,
        box-shadow 250ms ease,
        transform 250ms ease;
}

.tab-video-preview:hover .tab-video-preview__play {
    background-color: #1d1d1b;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
    transform: translate(-50%, -50%) scale(1.08);
}

.tab-video-preview__play svg {
    position: static !important;
    display: block;
    width: 29px !important;
    height: 29px !important;
    margin: 0 0 0 3px !important;
    padding: 0 !important;
    transform: none !important;
}

.tab-video-preview__play path {
    fill: #ffed00;
}


/* ==========================================================================
   KARTENINHALT
   ========================================================================== */

.tab-video-card__content {
    flex: 1 1 auto;
    padding: 20px 22px 24px;
}

.tab-video-card__content h3 {
    margin: 0;
    color: #1d1d1b;
    font-family: "Lato Regular", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
}

.tab-video-card__text {
    margin-top: 12px;
}

.tab-video-card__text p {
    margin: 0;
    color: #555552;
    font-size: 15px;
    line-height: 1.5;
}


/* ==========================================================================
   VIDEO-LIGHTBOX
   ========================================================================== */

.slbOverlay {
    z-index: 9999998 !important;
    background-color: rgba(17, 17, 16, 0.94) !important;
}

.slbWrapOuter,
.slbWrap {
    z-index: 9999999 !important;
}

.slbContentOuter {
    z-index: 10000000 !important;
}

.slbIframeCont {
    position: relative;
    width: min(1100px, calc(100vw - 160px)) !important;
    height: auto !important;
    margin: 0 !important;
    padding-top: min(56.25%, calc(100vh - 150px)) !important;
    background-color: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.slbIframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background-color: #000;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {

    .tab-video-section,
    .element-tabs .tab-video-section {
        margin-top: 25px;
        margin-bottom: 25px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .tab-video-column {
        margin-bottom: 20px;
    }

    .tab-video-card:hover {
        transform: none;
    }

    .slbIframeCont {
        width: calc(100vw - 28px) !important;
        padding-top: 56.25% !important;
    }
}


/* ==========================================================================
   REDUZIERTE BEWEGUNG
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .tab-video-card,
    .tab-video-card::after,
    .tab-video-preview>img,
    .tab-video-preview__shade,
    .tab-video-preview__play {
        transition: none !important;
    }
}

/* ==========================================================================
   VIDEO-POSITION – EIGENE SECTION UND TAB
   ========================================================================== */

/* Video als eigenständige Seiten-Section zentrieren */
.element-videotext .tab-video-section.container {
    width: 100%;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Video innerhalb eines Tabs bleibt im rechten Inhaltsbereich */
.element-tabs .tab-video-section.container-fluid {
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
}


.header-logo {
    margin-left: 15px;
    margin-top: 10px;

}


#content .element h1 {

    font-size: clamp(30px, 3.6vw, 46px);

}

.element.element-boxes {
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (min-width: 768px) {
    .element.element-tabs .tabLeft {
        position: sticky;
        top: 120px;
        display: block;
        height: auto;
        min-height: 0;
        padding: 40px 20px;
        background-color: #1d1d1b;
        overflow: visible;
    }
}



/* Slider-Navigation niemals über dem Kontakt-Overlay anzeigen */
body.contact-overlay-open .slick-dots,
body.contact-overlay-open .slick-arrow,
body.contact-overlay-open .slick-prev,
body.contact-overlay-open .slick-next {
    z-index: -1 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.slick-dots,
.slick-arrow,
.slick-prev,
.slick-next {
    z-index: 10;
}

/* ==========================================================================
   BOXEN BEIM SCROLLEN EINBLENDEN
   ========================================================================== */

.js-scroll-reveal {
    opacity: 0 !important;
    transform: translateY(24px);
    will-change: opacity, transform;
    transition:
        opacity 700ms ease var(--reveal-delay, 0ms),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.js-scroll-reveal.is-visible {
    opacity: 1 !important;
    /* "none" beendet den erzeugten Stacking-Context wirklich. */
    transform: none;
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .js-scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}




/* =========================================================
   TEAM-KARTEN: KONTAKTBEREICH
   ========================================================= */

/* Karte über die gesamte Höhe aufbauen */
#content .element.element-team .teamListing,
#content .element.element-team .teamDescription {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Kontaktbereich immer nach unten schieben */
#content .element.element-team .teamListing__contact {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;

    min-height: 125px;
    margin-top: auto;
    padding-top: 22px;

    border-top: 1px solid #dedede;
}

/* Absätze zurücksetzen */
#content .element.element-team .teamListing__contact p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3;
}

/* Telefon, Mobile und E-Mail */
#content .element.element-team .teamListing__contact a {
    display: inline-flex !important;
    align-items: center;
    min-height: 22px;

    color: #777;
    line-height: 1.3;
    text-decoration: none;
}

/* Einheitlicher Platz für alle Icons */
#content .element.element-team .teamListing__contact a::before {
    display: inline-flex !important;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;

    width: 18px;
    margin-right: 14px !important;

    color: #414141;
    font-family: FontAwesome !important;
    font-size: 14px !important;
    font-style: normal;
    line-height: 1 !important;

    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Festnetz */
#content .element.element-team .teamListing__contact a[href^="tel:"]::before {
    content: "\f095" !important;
}

/* Mobile überschreibt das normale Telefon-Icon */
#content .element.element-team .teamListing__contact a.team-contact-link--mobile::before {
    content: "\f10b" !important;
    font-size: 19px !important;
}

/* E-Mail */
#content .element.element-team .teamListing__contact a[href^="mailto:"]::before {
    content: "\f0e0" !important;
}

/* Hover */
#content .element.element-team .teamListing__contact a:hover {
    color: #222;
}

/* =========================================================
   TEAM-KARTEN – FINALER KONTAKTBEREICH
   ========================================================= */

#content .element.element-team .teamDescription .figure-caption:nth-child(2) {
    display: flex;
    flex: 0 0 150px;
    flex-direction: column;
    gap: 8px;

    height: 150px;
    min-height: 150px;
    margin-top: auto;
    padding-top: 22px;

    border-top: 1px solid #dedede;
    box-sizing: border-box;
}

#content .element.element-team .teamDescription .figure-caption:nth-child(2) p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25;
}

#content .element.element-team .teamDescription .figure-caption:nth-child(2) p+p {
    margin-top: 0 !important;
}

/* Alle Kontaktlinks */
#content .element.element-team .teamDescription .figure-caption:nth-child(2) a {
    display: inline-flex !important;
    align-items: center;
    min-height: 22px;
    padding: 0 0 0 34px !important;
    line-height: 1.25;
}

/* Mobile: Telefonhörer sicher überschreiben */
#content .element.element-team .teamDescription a.team-contact-link--mobile::before {
    top: 1px !important;
    left: 2px !important;
    width: 13px !important;
    height: 19px !important;

    background-color: currentColor !important;

    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 1H7C5.9 1 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 18H7V5h10v14zm-6 2h2v-1h-2v1z'/%3E%3C/svg%3E") center / contain no-repeat !important;

    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 1H7C5.9 1 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 18H7V5h10v14zm-6 2h2v-1h-2v1z'/%3E%3C/svg%3E") center / contain no-repeat !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    content: "" !important;
}

/* =========================================================
   CONTENT-TABELLEN
   ========================================================= */

#content .element table {
    width: 100%;
    margin: 28px 0 42px;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #414141;
    font-size: 16px;
    line-height: 1.4;
}

/* Tabellenkopf */
#content .element table thead th {
    padding: 15px 18px;

    border: 0;
    border-right: 2px solid #fff;
    border-bottom: 3px solid #ffed00;

    background-color: #414141;
    color: #fff;

    font-weight: 600;
    text-align: left;
    vertical-align: middle;
}

#content .element table thead th:last-child {
    border-right: 0;
}

/* Erste und letzte Ecke */
#content .element table thead th:first-child {
    border-radius: 2px 0 0;
}

#content .element table thead th:last-child {
    border-radius: 0 2px 0 0;
}

/* Tabellenzellen */
#content .element table tbody td {
    padding: 14px 18px;

    border: 0;
    border-right: 1px solid #e6e6e3;
    border-bottom: 1px solid #d2d2cf;

    background-color: #fff;
    vertical-align: middle;
}

#content .element table tbody td:last-child {
    border-right: 0;
}

/* Dezente wechselnde Zeilen */
#content .element table tbody tr:nth-child(even) td {
    background-color: #f7f7f5;
}

/* Hover */
#content .element table tbody tr td {
    transition:
        background-color 180ms ease,
        color 180ms ease;
}

#content .element table tbody tr:hover td {
    background-color: #fffbd6;
    color: #1d1d1b;
}

/* Links innerhalb einer Tabelle */
#content .element table a {
    color: #343432;
    text-decoration-color: #ffed00;
    text-underline-offset: 3px;
}

#content .element table a:hover {
    color: #000;
}

/* Abstand zwischen mehreren Tabellen */
#content .element table+table {
    margin-top: 55px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /* Funktioniert, wenn die Tabelle von einem Element umgeben ist */
    #content .element {
        max-width: 100%;
    }

    #content .element table {
        display: block;
        width: 100%;
        margin: 22px 0 34px;
        overflow-x: auto;
        overflow-y: hidden;

        font-size: 14px;

        -webkit-overflow-scrolling: touch;
    }

    #content .element table thead,
    #content .element table tbody {
        width: max-content;
        min-width: 100%;
    }

    #content .element table tr {
        display: table;
        width: 100%;
        min-width: 620px;
        table-layout: fixed;
    }

    #content .element table thead th,
    #content .element table tbody td {
        padding: 12px 14px;
        white-space: normal;
    }
}

/* =========================================================
   STARTSEITE: WILLKOMMEN / BOXEN LAYER-ANIMATION
   ========================================================= */

/*
 * Der Willkommensbereich liegt hinter dem Boxenbereich.
 */
#content>.element-intro.home-welcome-layer {
    position: sticky;
    top: 110px;
    z-index: 1;

    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;

    background-color: #fff;
    overflow: hidden;
}

/*
 * Der Boxenbereich läuft beim Scrollen über den Introbereich.
 */
#content>.element-boxes.home-boxes-layer {
    position: relative;
    z-index: 2;

    padding-top: 80px;
    padding-bottom: 90px;

    background-color: #f4f4f2;
    box-shadow: 0 -24px 55px rgba(0, 0, 0, 0.08);
}

/*
 * Kleine gelbe Oberkante beim Hereinfahren.
 */
#content>.element-boxes.home-boxes-layer::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 4px;

    background-color: #ffed00;
    content: "";
}


/* ---------------------------------------------------------
   WILLKOMMENSTEXT AUSBLENDEN
   --------------------------------------------------------- */

#content .home-welcome-layer__content {
    opacity: calc(1 - var(--home-intro-progress, 0)) !important;

    transform:
        translate3d(0,
            calc(var(--home-intro-progress, 0) * -55px),
            0) scale(calc(1 - var(--home-intro-progress, 0) * 0.025)) !important;

    filter:
        blur(calc(var(--home-intro-progress, 0) * 3px));

    transform-origin: center center;
    will-change: opacity, transform, filter;
}


/* ---------------------------------------------------------
   ÜBERSCHRIFT DES BOXENBEREICHS
   --------------------------------------------------------- */

#content .home-boxes-layer__headline {
    opacity: var(--home-box-progress, 0) !important;

    transform:
        translate3d(0,
            calc((1 - var(--home-box-progress, 0)) * 55px),
            0) !important;

    will-change: opacity, transform;
}


/* ---------------------------------------------------------
   EINZELNE BOXEN GESTAFFELT HEREINFAHREN
   --------------------------------------------------------- */

#content .home-boxes-layer__item {
    opacity: var(--home-box-progress, 0) !important;

    transform:
        translate3d(0,
            calc((1 - var(--home-box-progress, 0)) * 100px),
            0) scale(calc(0.94 + var(--home-box-progress, 0) * 0.06)) !important;

    will-change: opacity, transform;
}

/*
 * Leichte Richtungsabweichung:
 * linke Boxen kommen zusätzlich etwas von links,
 * rechte etwas von rechts.
 */
#content .home-boxes-layer__item:nth-child(3n + 1) {
    transform:
        translate3d(calc((1 - var(--home-box-progress, 0)) * -35px),
            calc((1 - var(--home-box-progress, 0)) * 100px),
            0) scale(calc(0.94 + var(--home-box-progress, 0) * 0.06)) !important;
}

#content .home-boxes-layer__item:nth-child(3n) {
    transform:
        translate3d(calc((1 - var(--home-box-progress, 0)) * 35px),
            calc((1 - var(--home-box-progress, 0)) * 100px),
            0) scale(calc(0.94 + var(--home-box-progress, 0) * 0.06)) !important;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    /*
     * Auf kleinen Displays kein Sticky-Layer, damit das
     * Scrollverhalten nicht unnötig schwer wirkt.
     */
    #content>.element-intro.home-welcome-layer {
        position: relative;
        top: auto;
        min-height: 0;
    }

    #content>.element-boxes.home-boxes-layer {
        padding-top: 50px;
        padding-bottom: 55px;
        box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.07);
    }

    #content .home-welcome-layer__content {
        opacity: 1 !important;
        filter: none;
        transform: none !important;
    }

    #content .home-boxes-layer__item,
    #content .home-boxes-layer__item:nth-child(3n + 1),
    #content .home-boxes-layer__item:nth-child(3n) {
        transform:
            translate3d(0,
                calc((1 - var(--home-box-progress, 0)) * 55px),
                0) !important;
    }
}


/* ---------------------------------------------------------
   REDUZIERTE BEWEGUNG
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    #content .home-welcome-layer__content,
    #content .home-boxes-layer__headline,
    #content .home-boxes-layer__item {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}

/* =========================================================
   TEAM-KATEGORIE-NAVIGATION – DESKTOP
   ========================================================= */

@media (min-width: 768px) {

    /* Äusseren Bootstrap-Container links ausrichten */
    #content .element.element-team .col-12.d-flex.justify-content-center {
        justify-content: flex-start !important;
    }

    #content .category-navigation {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 32px;

        width: 100%;
        margin: 0 0 48px;
        padding: 0;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        list-style: none;
        overflow: visible;
    }

    #content .category-navigation li {
        position: relative;
        margin: 0;
        padding: 0 0 11px;
    }

    #content .category-navigation li::after {
        display: none !important;
    }

    #content .category-navigation li a {
        display: inline-block;

        min-height: 0;
        padding: 4px 0;

        background: transparent !important;
        border: 0 !important;
        color: #555552;

        font-size: 16px;
        line-height: 1.3;
        text-decoration: none;

        transition:
            color 180ms ease,
            transform 180ms ease;
    }

    #content .category-navigation li a b {
        font-weight: 400;
    }

    #content .category-navigation li:not(.current) a:hover {
        background: transparent !important;
        color: #1d1d1b;
        transform: translateY(-2px);
    }

    /* Aktiv */
    #content .category-navigation li.current a {
        background: transparent !important;
        color: #1d1d1b;
    }

    #content .category-navigation li.current a b {
        font-weight: 600;
    }

    #content .category-navigation li.current a::after {
        position: absolute;
        right: auto;
        bottom: -7px;
        left: 0;

        width: 38px;
        height: 3px;

        background-color: #ffed00;
        content: "";
    }
}

/* =========================================================
   TEAM-BEREICH UND KATEGORIE-NAVIGATION
   ========================================================= */

#content .element.element-team {
    background-color: #fff !important;
}

/* Gesamte Navigationszeile */
#content .element.element-team .col-12.d-flex.justify-content-center {
    display: block !important;
    width: 100%;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 768px) {

    #content .category-navigation {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px 32px;

        /*
         * Gleiche Breite und Flucht wie der Kartenbereich.
         * Bei Bootstrap entspricht das dem inneren Container.
         */
        width: calc(100% - 30px);
        max-width: 1110px;
        margin: 0 auto 42px;
        padding: 0 15px;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        list-style: none;
        overflow: visible;
    }

    #content .category-navigation li {
        position: relative;
        margin: 0;
        padding: 0 0 12px;
    }

    #content .category-navigation li a {
        position: relative;
        display: block;

        min-height: 0;
        padding: 4px 0;

        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;

        color: #555552;
        font-size: 16px;
        line-height: 1.3;
        text-decoration: none !important;

        transform: none !important;
    }

    #content .category-navigation li a b {
        font-weight: 400;
    }

    /*
     * Sämtliche vorhandenen Hover- und Aktivlinien
     * direkt am Link entfernen.
     */
    #content .category-navigation li a::before,
    #content .category-navigation li a::after,
    #content .category-navigation li a:hover::before,
    #content .category-navigation li a:hover::after,
    #content .category-navigation li.current a::before,
    #content .category-navigation li.current a::after {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        content: none !important;
    }

    /* Hover nur als dezenter Farbwechsel */
    #content .category-navigation li a:hover {
        background: transparent !important;
        color: #1d1d1b !important;
        text-decoration: none !important;
        transform: none !important;
    }

    /* Aktiver Text */
    #content .category-navigation li.current a {
        background: transparent !important;
        color: #1d1d1b !important;
    }

    #content .category-navigation li.current a b {
        font-weight: 600;
    }

    /*
     * Die einzige gelbe Linie sitzt nun am li,
     * nicht mehr direkt am Link.
     */
    #content .category-navigation li::after {
        display: none !important;
    }

    #content .category-navigation li.current::after {
        position: absolute;
        right: auto;
        bottom: 0;
        left: 0;

        display: block !important;
        width: 38px;
        height: 3px;

        background-color: #ffed00;
        content: "" !important;
    }
}

/* Kategorie-Navigation: garantiert nur eine aktive Linie */

#content .category-navigation li,
#content .category-navigation li.current,
#content .category-navigation li a,
#content .category-navigation li.current a,
#content .category-navigation li a b {
    border-bottom: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    background-image: none !important;
}

#content .category-navigation li a::before,
#content .category-navigation li a::after {
    display: none !important;
    content: none !important;
}

/* Einzige gelbe Linie */
#content .category-navigation li.current::after {
    position: absolute;
    bottom: 0;
    left: 0;

    display: block !important;
    width: 38px !important;
    height: 3px !important;

    background: #ffed00 !important;
    border: 0 !important;
    content: "" !important;
}

/* =========================================================
   Kategorie-Navigation: globale Linklinie deaktivieren
   ========================================================= */

#content .element.element-team .category-navigation li a:not(.button),

#content .element.element-team .category-navigation li a:not(.button):hover,

#content .element.element-team .category-navigation li a:not(.button):focus,

#content .element.element-team .category-navigation li a:not(.button):active,

#content .element.element-team .category-navigation li.current a:not(.button) {
    padding-bottom: 4px !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    background-image: none !important;
}

/* Keine Linie am Link */
#content .element.element-team .category-navigation li a:not(.button)::before,

#content .element.element-team .category-navigation li a:not(.button)::after {
    display: none !important;
    content: none !important;
}

/* Auch alte Linien direkt am li entfernen */
#content .element.element-team .category-navigation li {
    border: 0 !important;
    border-bottom: 0 !important;
}

/* Ausschließlich diese eine aktive Linie anzeigen */
#content .element.element-team .category-navigation li.current::after {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;

    display: block !important;
    width: 38px !important;
    height: 3px !important;

    border: 0 !important;
    background: #ffed00 !important;
    content: "" !important;
}

/* =========================================================
   VIDEO DIREKT NACH TABS – AN TAB-INHALT AUSRICHTEN
   ========================================================= */

@media (min-width: 768px) {

    #content .element-tabs+.element-videotext {
        position: relative;
        z-index: 1;

        margin: 0 !important;
        padding: 0 !important;

        background-color: #fff;
    }

    #content .element-tabs+.element-videotext .tab-video-section {
        width: 75% !important;
        max-width: none !important;

        margin: 0 0 0 25% !important;
        padding: 30px 65px 75px !important;
    }

    #content .element-tabs+.element-videotext .tab-video-grid {
        justify-content: flex-start !important;
        margin: 0 -15px !important;
    }

    #content .element-tabs+.element-videotext .tab-video-column {
        flex: 0 0 33.333333% !important;
        width: 33.333333% !important;
        max-width: 33.333333% !important;

        padding: 0 15px !important;
    }

    #content .element-tabs+.element-videotext .tab-video-card {
        width: 100%;
        margin: 0 !important;
    }
}


/* Mittlere Bildschirmbreiten */

@media (min-width: 768px) and (max-width: 1100px) {

    #content .element-tabs+.element-videotext .tab-video-section {
        padding-right: 30px !important;
        padding-left: 30px !important;
    }

    #content .element-tabs+.element-videotext .tab-video-column {
        flex-basis: 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}


/* Mobile */

@media (max-width: 767px) {

    #content .element-tabs+.element-videotext .tab-video-section {
        width: 100% !important;
        margin: 0 !important;
        padding: 30px 15px 50px !important;
    }

    #content .element-tabs+.element-videotext .tab-video-column {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* =========================================================
   SUCHSEITE
   ========================================================= */

#content .search-results {
    padding: 75px 0 90px;
    background-color: #fff;
}

#content .search-results__header {
    display: block;
    margin: 0 0 45px;
}

#content .search-results__header h1 {
    position: relative;
    margin: 0 0 55px;
    padding: 0 0 24px;

    color: #292927;
    font-size: 46px;
    font-weight: 300;
    line-height: 1.1;
}

#content .search-results__header h1::after {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 54px;
    height: 3px;

    background-color: #ffed00;
    content: "";
}


/* =========================================================
   SUCHFORMULAR
   ========================================================= */

#content .search-results__form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;

    width: 100%;
    max-width: 900px;
    margin: 0;
    padding: 0;

    border: 0;
}

/* Craft/Bootstrap Screenreader-Label */
#content .search-results__form .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#content .search-results__form input[type="search"] {
    display: block !important;
    grid-column: 1;

    width: 100% !important;
    min-width: 0;
    height: 56px !important;
    margin: 0 !important;
    padding: 12px 20px !important;

    border: 1px solid #d4d4d1 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    outline: 0;

    background-color: #f7f7f5 !important;
    color: #292927;

    font-family: inherit;
    font-size: 17px;
    line-height: 1.3;

    box-shadow: none !important;
    appearance: none;
}

#content .search-results__form input[type="search"]:focus {
    border-color: #414141 !important;
    background-color: #fff !important;
    box-shadow: inset 0 -3px 0 #ffed00 !important;
}

#content .search-results__form button {
    display: inline-flex !important;
    grid-column: 2;
    align-items: center;
    justify-content: center;

    width: auto !important;
    min-width: 155px;
    height: 56px !important;
    margin: 0 !important;
    padding: 12px 25px !important;

    border: 1px solid #ffed00 !important;
    border-radius: 0 !important;

    background-color: #ffed00 !important;
    color: #1d1d1b !important;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;

    box-shadow: none !important;
    cursor: pointer;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

#content .search-results__form button:hover,
#content .search-results__form button:focus {
    border-color: #414141 !important;
    background-color: #414141 !important;
    color: #fff !important;
    outline: 0;
}


/* =========================================================
   ZUSAMMENFASSUNG
   ========================================================= */

#content .search-results__summary {
    max-width: 900px;
    margin: 0 0 25px;
    padding: 0;

    color: #6c6c69;
    font-size: 16px;
    line-height: 1.4;
}


/* =========================================================
   ERGEBNISLISTE
   ========================================================= */

#content .search-results__list {
    display: grid;
    gap: 18px;

    width: 100%;
    max-width: 900px;
}

#content .search-result {
    position: relative;

    margin: 0;
    padding: 30px 34px 28px 37px;

    border: 1px solid #e3e3e0;
    background-color: #fff;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

#content .search-result::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 4px;
    background-color: #ffed00;
    content: "";
}

#content .search-result:hover {
    border-color: #d4d4d1;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

#content .search-result h2 {
    margin: 0 0 13px;
    padding: 0;

    font-size: 29px;
    font-weight: 300;
    line-height: 1.2;
}

#content .search-result h2 a,
#content .search-result h2 a:hover,
#content .search-result h2 a:focus {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;

    color: #292927 !important;
    text-decoration: none !important;

    box-shadow: none !important;
}

#content .search-result p {
    max-width: 760px;
    margin: 0 0 19px;
    padding: 0;

    color: #60605d;
    font-size: 16px;
    line-height: 1.55;
}


/* =========================================================
   „SEITE ANSEHEN“
   ========================================================= */

#content .search-result a.search-result__link {
    position: relative;
    display: inline-flex;
    align-items: center;

    margin: 0;
    padding: 4px 24px 5px 0 !important;

    border: 0 !important;
    background: none !important;

    color: #292927 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;

    box-shadow: none !important;
}

#content .search-result a.search-result__link::before {
    display: none !important;
    content: none !important;
}

#content .search-result a.search-result__link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    display: block !important;
    height: 2px;

    background-color: #ffed00;
    content: "" !important;

    transform: scaleX(0.45);
    transform-origin: left center;
    transition: transform 180ms ease;
}

#content .search-result:hover a.search-result__link::after,
#content .search-result a.search-result__link:hover::after,
#content .search-result a.search-result__link:focus::after {
    transform: scaleX(1);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    #content .search-results {
        padding: 45px 0 60px;
    }

    #content .search-results__header {
        margin-bottom: 35px;
    }

    #content .search-results__header h1 {
        margin-bottom: 38px;
        font-size: 38px;
    }

    #content .search-results__form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #content .search-results__form input[type="search"],
    #content .search-results__form button {
        grid-column: 1;
        width: 100% !important;
    }

    #content .search-results__form input[type="search"] {
        border-right: 1px solid #d4d4d1 !important;
    }

    #content .search-result {
        padding: 25px 22px 24px 26px;
    }

    #content .search-result h2 {
        font-size: 25px;
    }
}

/* =========================================================
   VERTRETUNGSKARTE – LEAFLET-EBENEN REPARIEREN
   ========================================================= */

#representativesMap,
.representatives-map__map {
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden;
    isolation: isolate;
}

/* Leaflet-Ebenen wieder in der vorgesehenen Reihenfolge */
#representativesMap .leaflet-map-pane {
    z-index: 1 !important;
}

#representativesMap .leaflet-tile-pane {
    z-index: 200 !important;
}

#representativesMap .leaflet-overlay-pane {
    z-index: 400 !important;
}

#representativesMap .leaflet-shadow-pane {
    z-index: 500 !important;
}

#representativesMap .leaflet-marker-pane {
    z-index: 600 !important;
}

#representativesMap .leaflet-tooltip-pane {
    z-index: 650 !important;
}

#representativesMap .leaflet-popup-pane {
    z-index: 700 !important;
}

#representativesMap .leaflet-control-container {
    position: relative;
    z-index: 800 !important;
}

/* Popup selbst zusätzlich absichern */
#representativesMap .leaflet-popup {
    z-index: 701 !important;
}

#representativesMap .leaflet-popup-content-wrapper,
#representativesMap .leaflet-popup-tip {
    position: relative;
    z-index: 2;
    background-color: #fff;
}

/* Globale Bildregeln dürfen Marker und Kartenkacheln nicht verändern */
#representativesMap .leaflet-tile {
    width: 256px !important;
    max-width: none !important;
    height: 256px !important;
}

#representativesMap .leaflet-marker-icon {
    max-width: none !important;
}

#representativesMap .leaflet-marker-shadow {
    max-width: none !important;
}




/* ==========================================================================
   FULLSCREEN-OVERLAYS – FINALE EBENEN- UND COMPOSITOR-KORREKTUR

   Die Scrollanimation der Startseite arbeitet mit transform/filter. Zusammen
   mit animierten clip-path-Overlays führte das in einigen Browsern dazu, dass
   nur ein Teil des Overlays über den Startseiten-Layern gezeichnet wurde.
   Die Overlays blenden deshalb als feste Vollflächen ein.
   ========================================================================== */

.contact-overlay,
.search-overlay,
.language-overlay,
.service-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483600 !important;

    width: 100vw !important;
    max-width: none !important;
    min-height: 100vh;
    min-height: 100dvh;

    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--nencki-black);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    clip-path: none !important;
    transform: none !important;
    filter: none !important;
    will-change: auto;

    transition:
        opacity 300ms ease,
        visibility 0s linear 300ms !important;
}

.contact-overlay.is-open,
.search-overlay.is-open,
.language-overlay.is-open,
.service-overlay.is-open {
    opacity: 1;
    visibility: visible !important;
    pointer-events: auto !important;
    transition:
        opacity 300ms ease,
        visibility 0s linear 0s !important;
}

/* Auch animierte Inhalte dürfen nach dem Öffnen keinen unnötigen
   Stacking-Context behalten. */
.contact-overlay.is-open .contact-overlay__content,
.search-overlay.is-open .search-overlay__content,
.language-overlay.is-open .language-overlay__content,
.service-overlay.is-open .service-overlay__content {
    opacity: 1;
    transform: none;
}

.overlay-close {
    z-index: 2147483646 !important;
}

/* Der Supportbutton gehört unter das Overlay und wird beim Öffnen verborgen. */
.contact-overlay-toggle {
    z-index: 2147483500 !important;
}

body.contact-overlay-open .contact-overlay-toggle,
body.search-overlay-open .contact-overlay-toggle,
body.language-overlay-open .contact-overlay-toggle,
body.service-overlay-open .contact-overlay-toggle {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Normale Seiten-Layer während eines offenen Overlays deaktivieren. */
body.contact-overlay-open #content,
body.search-overlay-open #content,
body.language-overlay-open #content,
body.service-overlay-open #content,
body.contact-overlay-open footer,
body.search-overlay-open footer,
body.language-overlay-open footer,
body.service-overlay-open footer {
    pointer-events: none;
}

/*
 * mmenu legt den gesamten Seiteninhalt in #mm-0.mm-page. Die Sprachwahl liegt
 * zusätzlich in #container. Beide Wrapper besitzen eigene Stacking-Contexts
 * und sind auf der Startseite nur so hoch wie der Header. Solange ein Overlay
 * geöffnet ist, müssen diese Zwischenebenen deshalb aufgehoben werden, damit
 * position: fixed wieder direkt auf den Viewport bezogen wird.
 */
body.contact-overlay-open #mm-0,
body.search-overlay-open #mm-0,
body.language-overlay-open #mm-0,
body.service-overlay-open #mm-0,
body.contact-overlay-open #container,
body.search-overlay-open #container,
body.language-overlay-open #container,
body.service-overlay-open #container {
    position: static !important;
    z-index: auto !important;
    overflow: visible !important;
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    contain: none !important;
    isolation: auto !important;
}

body.contact-overlay-open .slick-dots,
body.contact-overlay-open .slick-arrow,
body.search-overlay-open .slick-dots,
body.search-overlay-open .slick-arrow,
body.language-overlay-open .slick-dots,
body.language-overlay-open .slick-arrow,
body.service-overlay-open .slick-dots,
body.service-overlay-open .slick-arrow {
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {

    .contact-overlay,
    .search-overlay,
    .language-overlay,
    .service-overlay {
        transition: none !important;
    }
}

/* Mobile Navigation: Subnavigation und Social Media */
#mobmenu .mobile-menu-divider {
    height: 1px;
    min-height: 1px;
    margin: 20px;
    padding: 0;
    border: 0;
    background-color: #dedede;
}

#mobmenu .mobile-menu-subnavigation-item>a {
    color: #666;
    font-size: 15px;
}

#mobmenu .mobile-menu-subnavigation-item>a.active {
    color: #1d1d1b;
    font-weight: 600;
}

/* ==========================================================================
   MOBILE MENÜ – VOLLE BILDSCHIRMBREITE
   ========================================================================== */

@media (max-width: 767px) {

    #mobmenu.mm-menu,
    #mobmenu.mm-menu_offcanvas,
    #mobmenu.mm-menu_position-right {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
    }

    .mm-wrapper_opening #mobmenu.mm-menu_position-right.mm-menu_offcanvas~.mm-slideout {
        transform: translate3d(-100vw, 0, 0) !important;
    }

    #mobmenu .mm-panels,
    #mobmenu .mm-panel {
        width: 100% !important;
        max-width: none !important;
    }


    /* Social-Media-Icons ohne eigenes Untermenü */
    #mobmenu .mobile-menu-social-icons {
        display: block;
        margin: 12px 20px 0;
        padding: 25px 0;
        border-top: 1px solid #dedede;
    }

    #mobmenu .mobile-menu-social-icons::after {
        display: none !important;
    }

    #mobmenu .mobile-menu-social-icons__inner {
        display: flex;
        align-items: center;
        gap: 22px;
        padding: 0;
    }

    #mobmenu .mobile-menu-social-icons__inner a {
        position: static !important;
        display: inline-flex !important;
        width: 32px;
        height: 32px;
        padding: 0 !important;
        align-items: center;
        justify-content: center;
        border: 0 !important;
    }

    #mobmenu .mobile-menu-social-icons__inner a::after {
        display: none !important;
    }

    #mobmenu .mobile-menu-social-icons__inner img {
        display: block;
        width: 21px;
        height: 21px;
        padding: 0 !important;
        object-fit: contain;
        opacity: 0.7;
    }
}

/* ==========================================================================
   FINALE EBENENSTRUKTUR

   Alle animierten Startseiten- und Slider-Layer werden innerhalb von
   #content gekapselt. Header, Dropdowns und Klaro bleiben dadurch garantiert
   darüber, ohne dass die Navigation selbst einen transformierten Layer erhält.
   ========================================================================== */

#content {
    position: relative;
    z-index: 0;
    isolation: isolate;
}

header#mainHeader,
header#mainHeader.sticky,
header#mainHeader.fixed-header {
    z-index: 50000 !important;
}

/* Klaro liegt ausserhalb von #container / #mm-0 und erhält deshalb einen
   eigenen festen Root-Layer über der kompletten Website. */
#klaro {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483640 !important;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    pointer-events: none;
}

#klaro .klaro,
#klaro .cookie-notice,
#klaro .cookie-modal {
    pointer-events: auto;
}

#klaro .cookie-notice {
    right: auto !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 2147483641 !important;
}

#klaro .cookie-modal {
    z-index: 2147483642 !important;
}

@media (max-width: 767px) {
    #klaro .cookie-notice {
        right: 12px !important;
        bottom: 12px !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
    }
}


/* Teamkarten: Bild vollständig, Textbereich kompakter */
#content .element.element-team .category-team > [class*="col-"],
#content .element.element-team .team .row > [class*="col-"] {
    display: flex;
    align-items: stretch;
}

#content .element.element-team .teamListing {
    height: 100% !important;
    min-height: 0 !important;
}

/* Quadratisches Portrait beibehalten */
#content .element.element-team .teamListing > .figure {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 auto;
}

#content .element.element-team .teamListing > .figure > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
}

/* Nur den Beschreibungsbereich verkleinern */
#content .element.element-team .teamDescription {
    min-height: 245px !important;
    padding: 20px 24px 22px;
    flex: 1 1 auto;
}

/* Name und Funktion */
#content .element.element-team
.teamDescription .figure-caption:first-child {
    min-height: 105px;
    margin-bottom: 13px;
}

#content .element.element-team
.teamDescription .figure-caption:first-child p:first-child {
    margin-bottom: 13px;
    padding-bottom: 11px;
}

#content .element.element-team
.teamDescription .figure-caption:first-child p:not(:first-child) {
    line-height: 1.4;
}

/* Telefon und E-Mail */
#content .element.element-team
.teamDescription .figure-caption:nth-child(2) {
    margin-top: auto;
    padding-top: 14px;
}

#content .element.element-team
.teamDescription .figure-caption:nth-child(2) p + p {
    margin-top: 6px;
}

@media (max-width: 767px) {
    #content .element.element-team .teamDescription {
        min-height: 225px !important;
        padding: 19px 21px 21px;
    }

    #content .element.element-team
    .teamDescription .figure-caption:first-child {
        min-height: 95px;
    }
}


main .element {
 
    padding-top: 3em;
    padding-bottom: 3em;

}

li, p {
    font-size: 17px!important;
   
}


@media only screen and (min-width: 768px) {
    main .element.element-tabs .tabLeft {
        overflow: auto;
        position: -webkit-sticky;
        position: sticky;
        top: 15%;
        background: #414141;
        height: 60vh;
    }
}

.js-scroll-reveal {
    opacity: 1 !important;
    transform: translateY(24px);
    will-change: opacity, transform;
    transition: opacity 700ms ease var(--reveal-delay, 0ms), transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}



/* Kontaktkarten: robuste Icons ohne CSS-Masken */
#content .element.element-team
.teamDescription .team-contact-link::before {
    top: 4px !important;
    left: 0 !important;
    width: 18px !important;
    height: 18px !important;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    -webkit-mask: none !important;
    mask: none !important;
}

/* Festnetz: feineres Telefon-Icon */
#content .element.element-team
.teamDescription .team-contact-link--phone::before {
    width: 17px !important;
    height: 17px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23434341' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.69 2.8a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.33 1.84.56 2.8.69A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") !important;
}

/* Mobiltelefon */
#content .element.element-team
.teamDescription .team-contact-link--mobile::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23434341' d='M7 2h10c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H7c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm0 3v13h10V5H7zm4 14v1h2v-1h-2z'/%3E%3C/svg%3E") !important;
}

/* E-Mail */
#content .element.element-team
.teamDescription .team-contact-link--email::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23434341' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") !important;
}

/* Alte Telefon-Icon-Darstellung vollständig zurücksetzen */
#content .element.element-team
.teamDescription .team-contact-link--phone::before {
    content: "" !important;
    display: block !important;

    width: 17px !important;
    height: 17px !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;

    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23434341' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.69 2.8a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.33 1.84.56 2.8.69A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;

    -webkit-mask: none !important;
    -webkit-mask-image: none !important;
    mask: none !important;
    mask-image: none !important;
}


/* Textlink mit gelber Linie und schwarzem Pfeil */
html body #container #content a.content-button,
html body #container #content a.content-button:visited {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;

    width: auto;
    min-height: 0;
    margin: 18px 0;
    padding: 0 0 6px;

    border: 0 !important;
    border-bottom: 3px solid #ffed00 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    color: #1d1d1b !important;
    -webkit-text-fill-color: #1d1d1b !important;

    font-weight: 600;
    line-height: 1.35;
    text-decoration: none !important;

    transform: none;
    transition:
        border-color 200ms ease,
        padding-right 200ms ease;
}

html body #container #content a.content-button::before {
    display: none !important;
    content: none !important;
}

html body #container #content a.content-button::after {
    position: static;
    display: inline-block !important;

    width: auto;
    height: auto;
    margin: 0;

    border: 0;
    border-radius: 0;
    background: transparent !important;

    color: #1d1d1b !important;
    -webkit-text-fill-color: #1d1d1b !important;

    content: "→" !important;
    font-size: 21px;
    line-height: 1;

    transition: transform 200ms ease;
}

/* Hover bleibt weiß mit schwarzer Schrift */
a.content-button{
	
	border-bottom:solid 1px #ffed00!important;
}

a.content-button::after {
    margin-left: 12px;
    color: #1d1d1b;
    content: "→";
    transition: transform 0.2s ease;
}

a.content-button:hover::after {
    display: inline-block;
    transform: translateX(4px);
}