:root
{
    --teaserHeight: 500px;
    --logoWidth: 64px;
    --headerBackground: #F0F0F0;
    --primaryclr: #0088cc;
    --bs-primary: #0088cc;
}
#logo
{
    transition: none;
    transition-delay: unset;
}
#logo img
{
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: unset;
    transition: none;
}
#logo:hover,
#logo:hover img
{
    border-radius: unset;
    box-shadow: none;
    transform: scale(1) translate( 0, 0 );
}
#headerRight
{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: calc(var(--contentWidth) - 6rem)
}
@media screen and (min-width: 760px)
{
    #mainMenu
    {
        justify-content: flex-end;
        gap: 0;
        height: calc(var(--headerHeight)/2);
    }
    #mainMenuWrapper li.level1 ul.level2
    {
        top: 2em;
        padding-top: 0.3em;
    }
}
#topBarWrapper
{
    position: relative;
    display: block;
    width: fit-content;
    height: calc(var(--headerHeight)/2 - 0.5em);
    background: none;
}
#topBar
{
    display: flex;
    justify-content: flex-end;
    gap: 2em;
    max-height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 3rem;
    font-size: 0.8rem;
    overflow: hidden;
}
#topBar .content
{
    width: auto;
}
#topBar div.csc-frame-default
{
    width: fit-content;
}
#topBar p.phone
{
    padding-left: 1.2em;
}
#topBar p.phone:before
{
    top: 0.2em;
    font-size: 1em;
}
#topBar p.email
{
    padding-left: 1.5em;
}
#topBar p.email:before
{
    font-size: 1.2em;
}
.teaserImgInnerWrapper
{
    justify-content: flex-end;
    align-items: flex-start;
}

#teaser .teaserImg img.teaserImage
{
    max-width: 100%;
}
.teaserText > *
{
    width: auto;
}
.indexPage .teaserText
{
    max-width: unset;
    background: none !important;
    color: var(--primaryclr);
}

.inTeaserImage
{
    width: 700px;
    max-width: var(--contentWidth);
    height: auto;
}

.indexPage .bodyText
{
    padding-top: 1em;
    font-size: 1.5em;
}

.teaserHeaderWrapper,
.teaserHeader
{
    max-width: 100%;
}

#wave
{
    display: none;
}

#greyContent
{
    padding-top: 2em;
}

#mainContent
{
    padding-top: 2.5em;
}

h1:has(i)
{
    color: var(--font-color);
}

.frame-layout-5 .content
{
    width: calc(var(--contentWidth)/2 + 4rem);
    padding-left: 0;
}

h1 i
{
    color: var(--primaryclr);
}

.indexPage .fourColsItem .frameInner
{
    display: flex;
    flex-direction: column-reverse;
    padding-top: 2em;
}

.indexPage .fourColsItem .frameInner header > *
{
    margin-top: 0;
}

.contenttable
{
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.contenttable td,
.contenttable th
{
    width: 50%;
}

.contenttable td h3:has(img)
{
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
}

.contenttable td h3 img
{
    margin-top: -0.1em;
}

.contenttable td:has(h3):has(img) p
{
    padding-left: 3.6em;
}

.twoCols
{
    gap: 2.5em;
}

.twoCols section:first-child header
{
    padding-top: 0 !important;
}

.csc-frame-greyContent:has(.contenttable)
{
    background-color: transparent;
    padding-top: revert;
    padding-bottom: revert;
}

.csc-frame-greyContent .contentBodyText:has(.contenttable)
{
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    width:fit-content;
    background-color: var(--bs-light);
    border-radius: 1rem;
}

.ce-column:has(a.skjsonlylightbox)
{
    height: 100%;
}

a.skjsonlylightbox
{
    display: block;
    height: 100%;
}

.skjsonlylightbox img
{
    object-fit: cover;
}

figure.sliderImage
{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

figure.sliderImage[data-current="1"]
{
    opacity: 1;
}

.contentItemLayout5 .csc-frame-greyContent .contentBodyText:has(.contenttable)
{
    width: auto;
}

    /***********  news ************/
.indexPage .contentItemnews_newsliststicky
{
    padding-top: 2rem;
    background-color: var(--bs-light);
}

.news-list-view
{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
}

.news-list-view.style1
{
    grid-template-columns: repeat(4,1fr);
}

.news-list-view article
{
    display: block;
    padding-right: 0;
    margin-bottom: 0;
}

.news-list-view article
{
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: rgba(255,255,255, 0.3);
    border-radius: 0.5rem;
}

.news-list-view.style2 article:nth-child(1),
.news-list-view.style2 article:nth-child(4),
.news-list-view.style2 article:nth-child(5),
.news-list-view.style2 article:nth-child(7),
.news-list-view.style2 article:nth-child(10)
{
    background-color: var(--bs-light);
}

.news-list-view article.oddNews
{
    background-color: transparent;
}

.news-list-view.style1 article.oddNews
{
    background-color: #f0f0f0;
}

.news-list-view .news-img-wrap
{
    width: auto;
    max-width: 100%;
    height: 140px;
    margin-right: 0;
    padding-bottom: 1.5rem;
    overflow: hidden;
}

.news-list-view .teaser-text
{
    height: 140px;
}

.news-list-view .teaser-text a.moreLink
{
    display: block;
    right: 0.8rem;
    bottom: 0.8rem;
    margin-top: 0;
    width: fit-content;
    font-size: 0.8em;
}

.news-list-view .news-img-wrap a
{
    display: block;
    height: 100%;
    overflow: hidden;
}

.news-list-view .news-img-wrap img
{
    object-fit: contain;
}

.news-single .teaser-text
{
    display: none;
}

/***************  footer *********************/
#footer
{
    flex-flow: column;
    align-items: center;
    gap: 0;
}
#footerComponents
{
    flex-flow: row;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    padding-bottom: 1.5em;
}

.footerAddressHeader
{
    padding-bottom: 0.5rem;
    font-size: 1.2em;
}

#footerComponents > *
{
    width: fit-content;
    text-align: left;
}

.footerAddress p
{
    padding-top: 0;
    padding-bottom: 0.5em;
    margin-top: 0;
    margin-bottom: 0;
}

.footerAddressBody header
{
    display: none;
}

.footerAddressBody .content
{
    width: auto;
}

#bottom-menu
{
    display: block;
}

#bottom-menu li
{
    padding-bottom: 0.5em;
}

#copyright
{
    white-space: normal;
}

@media screen and (max-width: 1500px)
{
    :root
    {
        --teaserHeight: 400px;
    }
    #teaser .teaserImg img.teaserImage
    {
        object-fit: unset;
    }
    .teaserTextWrapperType8
    {
        top: 45%;
        bottom: auto;
    }
}

@media screen and (max-width: 1400px)
{
    :root
    {
        --teaserHeight: 40vh;
    }
}

@media screen and (max-width: 1300px)
{
    .teaserTextWrapper
    {
        top: auto;
        bottom: 3em;
        transform: translate(-50%,0);
    }

    .indexPage .teaserTextWrapper
    {
        transform: translate(-55%,0);
    }
}

@media screen and (max-width: 1060px)
{
    :root
    {
        --headerHeight: 5.5rem;
    }
}

@media screen and (max-width: 960px)
{
    :root
    {
        --teaserHeight: 32vh;
    }
    #teaser,
    #teaser div.teaserImg,
    div.teaserImgInnerWrapper,
    #teaser .teaserImg img.teaserImage
    {
        height: var(--teaserHeight);
    }
    .news-list-view.style1
    {
        grid-template-columns: repeat(2,1fr);
    }
    .inTeaserImage
    {
        max-width: 100%;
    }
    .frame-layout-5 .content
    {
        width: 80%;
    }
}

@media screen and (max-width: 760px)
{
    :root
    {
        --teaserHeight: 30vh;
        --headerHeight: 4rem;
    }
    #topBarWrapper
    {
        white-space: nowrap;
    }
    #topBar
    {
        gap: 0.8em;
        margin-right: 1em;
        font-size: 0.9em;
    }
    div.mobileMenuItem
    {
        display: none;
    }
    .active div.mobileMenuItem
    {
        display: block;
    }
    #mainMenuWrapper a.menuItemLink
    {
        display: block;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }
    div.mobileMenuSubSelector
    {
        top: 0.35rem;
    }
    button.mobileSubArrow
    {
        width: 2.5rem;
        height: 2.5rem;
    }
    .twoCols > *
    {
        flex-basis: unset;
    }
    .twoCols:has(.tx-powermail)
    {
        flex-direction: column-reverse;
        gap: 0;
    }
    .twoCols:has(.tx-powermail) > *
    {
        flex-basis: 100%;
        width: 100%;
    }
    .frame-layout-5 .content
    {
        width: 90%;
    }
}

@media screen and (max-width: 540px) {
    :root {
        --teaserHeight: 28vh;
    }

    .news-list-view.style1 {
        display: block;
    }

    .contenttable td,
    .contenttable th {
        display: block;
        width: auto;
        max-width: 80vw !important;
        margin-left: auto;
        margin-right: auto;
    }

    .fourCols > * {
        flex-basis: 220px;
    }

    #footerComponents > * {
        flex-basis: 190px;
    }

    .frame-layout-5 .content {
        width: 95%;
    }
}



