
:root
{
    /*** fonts ***/
    --baseFontSize: 20px;

    /*** heights ***/
    --topBarHeight: 8rem;

    /*** width ***/
    --contentWidth: 1340px;

    /*** backgrounds ***/
    --gradientBackground: -webkit-linear-gradient(left, #b5d8af 0%, #e9f3e7 50%, #b5d8af 100%);

    /*** colours ***/
    --secondaryclr: #e43312;
    --primaryclr: #303030;
    --lightColor: #484848;
    --lightGreyColor: #e9f3e7;
    --lightGreen: #e9f3e7;
    --midGreen: #b5d8af;
    --shadowColor: #b5d8af;
    --headerColour: var(--secondaryclr);
    --imgTextRightBG: var(--secondaryclr);
    --imgTextLeftBG: var(--lightGreyColor);

    /*** timing ***/
    --topTransitionSpeed: 0.5s;
}

#page
{
    padding-top: calc(var(--topBarHeight) + var(--headerHeight));
    transition: all var(--topTransitionSpeed) linear;
}

#page.scrolled-down
{
    --topBarHeight: 0;
}

#outerOuterWrapper
{
    max-width: 100vw;
    overflow: clip;
}

#outerWrapper
{
    z-index: 10;
}

#teaserWrapper
{
    z-index: -1;
}

.maxContent
{
    margin-inline: 2rem;
}
/***
#mainContent header h3.headerItem
{
    font-size: clamp(2rem, 4vw + 0.3rem, 3rem );
}
***/
#mainContent header.hasSubheader
{
    flex-direction: column;
    padding-bottom: 2rem;
}

.textBody h3,
.contentBodyText h3
{
    padding-top: 0;
    padding-bottom: 0.5rem;
    color: var(--secondaryclr);
}

body a, body a:visited
{
    color: var(--midGreen);
}

body a:hover
{
    color: var(--secondaryclr);
}

body ul a, body ul a:visited
{
    color: var(--primaryclr);
}

body h1, h2, h3 a, body h1, h2, h3 a:visited
{
    color: var(--secondaryclr);
}

body h1, h2, h3 a:hover
{
    color: var(--midGreen);
}


.textBody ul:not(.twoColsItem ul, .ce-textpic ul)
{
    width: calc(100vw - 2rem );
}


/*** multi column ***/
.twoCols
{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    column-gap: clamp(2rem, 5vw, 4rem );
}

.twoColsItem
{
    display: table-cell;
    height: 100%;
}

.twoCols .twoColsItem header.hasSubheader
{
    height: 14rem;
}

.twoCols .hasSubheader
{
    background-color: var(--headerColour);
    color: white;
}

.contentItemBackground_greyBG .twoColsItem
{
    background-color: var(--lightGreen);
}

.twoCols .hasSubheader h3,
.twoCols .hasSubheader h2,
.twoCols .hasSubheader h4
{
    color: inherit;
}
.threeCols
{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px, 1fr));
}

.threeColsItem
{
    display: table-cell;
    height: 100%;
}

.threeColsItem .sectionInnerWrapper,
.threeColsItem .sectionInner,
.threeColsItem .frame
{
    height: 100%;
}

.threeColsItem .frame-type-textpic
{
    background-color: var(--lightGreyColor);
}

.threeColsItem .frame-type-textpic .textBody
{
    padding-inline: 1rem;
    padding-bottom: 1rem;
}

/*** header area ***/
#topWrapper
{
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 12;
}

#topBarWrapper
{
    position: relative;
    display: flex;
    align-items: center;
    height: var(--topBarHeight);
    background: white;
    transition: all var(--topTransitionSpeed) linear;
}

.notouch #mainMenuWrapper ul.level1 li.level1:hover ul.level2
{
    box-shadow: 15px 20px 10px -10px rgba(0,0,0,0.25);
}

#logo
{
    position: relative;
    padding-block: 0.2rem;
}

#teaser h1
{
    text-transform: uppercase;
}

.stdPage2 #teaser h1
{
    text-transform: unset;
}

body h1, h2
{
    font-style: italic;
}

#mainContent header.hasSubheader > .subHeader
{
    text-transform: unset;
    line-height: 44px;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 1.7em;
}

/** header colours ***/
header h1,
header h2
{
    color: var(--headerColour);
}

/** teaser ***/
/** horizontal flipping **
.bgTeaser
{
    position: absolute;
    left: 50%;
    min-width: 100%;
    background-size: 100% 500%; /* 5 slices *//*
    transform-origin: top;
    transform: rotateX(-90deg) translateX(-50%);
    overflow: clip;
    opacity: 0;
    transition: all 1s;
    transition-delay: 0.2s;
}
.bgTeaserSlice1
{
    top: 0;
    background-position: 0 0;
}
.bgTeaserSlice2
{
    top: 20%;
    background-position: 0 -100%;
}
.bgTeaserSlice3
{
    top: 40%;
    background-position: 0 -200%;
}
.bgTeaserSlice4
{
    top: 60%;
    background-position: 0 -300%;
}
.bgTeaserSlice5
{
    top: 80%;
    background-position: 0 -400%;
}

.flipped
{
    height: 21%;
    transform: rotateX(0deg) translateX(-50%);
    opacity: 1;
}
*/
/*** vertical flipping ***/
/* Container needs a perspective set for 3D effects to be visible */
.teaserImgInnerWrapper
{
    perspective: 1000px; /* Adjust as necessary to get the desired depth */
}
.bgTeaser
{
    position: absolute;
    top: 0;
    height: 100%;
    width: 0%; /* initially no width, expand on flip */
    transform-origin: left center;
    transform: rotateY(90deg) rotateX(5deg); /* start vertically rotated and skewed out of view */
    overflow: clip;
    opacity: 0;
    transition: transform 1s, width 1s 0.2s, opacity 1s 0.2s; /* control the timing of each property */
}
/* Set the correct background-size for the entire container */
.bgTeaser
{
    background-size: 500% 100%; /* stretches the single image across all slices */
}
/* Positioning and background for each slice */
.bgTeaserSlice1
{
    left: 0%;
    background-position: 0% 0;
}
.bgTeaserSlice2
{
    left: 20%;
    background-position: -100% 0;
}
.bgTeaserSlice3
{
    left: 40%;
    background-position: -200% 0;
}
.bgTeaserSlice4
{
    left: 60%;
    background-position: -300% 0;
}
.bgTeaserSlice5
{
    left: 80%;
    background-position: -400% 0;
}

.flipped {
    width: 21%; /* Width set when flipped */
    transform: rotateY(0deg) rotateX(0deg); /* Rotate to flat and add a slight tilt backwards */
    opacity: 1;
}

.indexPage .teaserTextWrapper
{
    position: fixed;
    top: calc( var(--headerHeight) + var(--topBarHeight) + 5rem );
    transition: top var(--topTransitionSpeed) linear;
    transform: translate(0,0);
}

.indexPage .teaserAlign2 .teaserTextWrapper
{
    transform: translate(-50%,0);
}

.scrolled-down .teaserTextWrapper
{
    top: calc(var(--headerHeight) + 5rem );
}

.teaserText
{
    max-width: unset;
    background-color: rgba(255,255,250,0.6);
}

.teaserTextWrapper
{
    transform: translate(-50%, -40%);
    top: 40%;
    left: 50%;
}

.teaserSubHeader
{
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    text-align: unset;
}

.teaserText .bodyText
{
    max-width: 800px;
}

/*** main content ***/
#mainContent > div:first-child
{
    padding-top: 3rem;
}

#greyContent
{
    position: relative;
    margin-bottom: 3rem;
}

#greyBG
{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--gradientBackground);
}

.contentItemBackground_greyBG .textBody
{
    padding-inline: 1.5rem;
    padding-bottom: 2rem;
}

.contentItemBackground_lightGreyBG .frameInner
{
    padding-inline: 1.5rem;
    padding-block: 2rem;
    background-color: var(--secondaryclr);
    color: white;
}

.contentItemBackground_lightGreyBG .headerItem
{
    padding-top: 0 !important;
    color: inherit;
    font-weight: 500;
}

.contentItemBackground_backgroundBG .sectionInner
{
    padding-inline: 2.5rem;
    width: calc(var(--contentWidth) + 5rem);
    background-color: var(--lightGreen);
}

.contentBodyText hr
{
    margin-top: 2em;
    border: 4px solid var(--secondaryclr);
}

    /*** special menu types ***/
.menuPages
{
    display: grid;
    margin-left: 0;
    padding-left: 0;
    list-style: none;
}
.subPageList
{
    grid-template-columns: repeat( auto-fit,minmax(280px, 1fr) );
    grid-column-gap: 2.5rem;
    grid-row-gap: 2rem;
}

.subPageList .menuItemInner
{
    display: flex;
    flex-direction: column-reverse;
}

.pagesImage img
{
    width: 100%;
    height: auto;
}

.pagesItemTitle
{
    padding-block: 2rem;
    padding-inline: 2rem;
    margin-bottom: 2.5rem;
    background-color: var(--secondaryclr);
}

.pagesItemTitle > *
{
    margin: 0;
    padding: 0;
    font-size: clamp(2rem, 4vw + 0.3rem, 3rem );
    color: white;
}

.menuSubpagesAbstract
{
    --hoverTransition: 0.8s;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax( 280px, 1fr ));
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
    list-style: none;
}

.menuSubpagesAbstract li
{
    font-size: 20px;
}

.menuSubpagesAbstract .menuItemInner
{
    box-shadow: 8px 8px 5px 0 rgba(34, 34, 34, .25);
}

.menuSubpagesAbstract > li:hover .menuItemInner
{
    box-shadow: 8px 8px 5px 0 var(--shadowColor);
}

.menuSubpagesAbstract > li:hover .menuTextLink div
{
    box-shadow: inset 0 -10px 0 0 var(--lightGreen);
}

.menuSubpagesAbstract .pagesImage
{
    background-color: #222;
    overflow: clip;
}

.menuSubpagesAbstract .pagesImage img
{
    display: block;
    /*** aspect-ratio: 0.97; ***/
    min-height: 100%;
    width: auto;
    min-width: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: transform .35s, scale var(--hoverTransition) ease-in-out;
}

.menuSubpagesAbstract .menuTextLink div
{
    margin-top: 1em;
    display: inline-block;
    width: auto;
    font-weight: 600;
    box-shadow: inset 0 -10px 0 0 rgba(34, 34, 34, .05);
}

.menuSubpagesAbstract .menuItemInner
{
    position: relative;
}

.menuSubpagesAbstract .subPageTitle
{
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 3rem;
    color: white;
    transform: translate(-50%,-50%);
    transition: scale var(--hoverTransition) ease-in-out, transform var(--hoverTransition) ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.menuSubpagesAbstract > li:hover .menuItemInner img,
.menuSubpagesAbstract > li:hover .menuItemInner .subPageTitle
{
    scale: 1.2;
}
.menuSubpagesAbstract > li:hover .menuItemInner .subPageTitle
{
    transform: translate(-40%,-40%);
}

    /*** contact form ***/
.powermail_form .powermail_input, textarea.powermail_textarea
{
    padding: 1em 1em;
    background-color: var(--lightGreen);
    border-radius: unset;
    border: unset;
}

ul.powermail-errors-list.filled
{
    position: unset;
}

.powermail_fieldwrap_type_check > label
{
    margin-left: unset;
    padding-left: 0.5em;
    text-indent: unset;
    font-size: 0.6em;
}

.tx-powermail form input.powermail_submit
{
    width: 100%;
    border-radius: 0;
    background-color: var(--lightGreen);
}

.tx-powermail form input.powermail_submit:hover
{
    background-color: var(--midGreen);
    color: #ffffff;
}

.stdPage2 .twoColsItem h3:not(.headerItem)
{
    padding-inline: 2rem;
    padding-block: 0.5rem;
    margin-bottom: 0;
    color: #ffffff;
    background-color: var(--midGreen);
}

.stdPage2 .twoColsItem p
{
    padding-inline: 2rem;
    padding-block: 1rem;
    margin-bottom: 1rem;
    background-color:  var(--lightGreen);
}

.stdPage2 .twoColsItem p a
{
    font-weight: 700;
}


    /*** buttons ***/
p:has(.moreLink),
p:has(.secondaryLink)
{
    width: fit-content;
    margin-top: 1rem;
}
p.text-center:has(.moreLink),
p.text-center:has(.secondaryLink)
{
    margin-left: auto;
    margin-right: auto;
}
p.text-right:has(.moreLink),
p.text-right:has(.secondaryLink)
{
    margin-left: auto;
}

.secondaryLink,
.secondaryLink:visited
{
    display: inline-block;
    padding-right: 1.5em;
    padding-left: 1.5em;
    padding-top: 0.3em;
    padding-bottom: 0.3em;
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    background-color: #b5d8af;
    cursor: pointer;
}

.secondaryLink:hover
{
    background-color: var(--lightGreen);
    color: black;
}

    /*** pictureStyles ***/
.ce-textpic.ce-intext.ce-nowrap .ce-gallery
{
    flex-grow: 0;
}

a.moreLink, a.moreLink:visited
{
    background-color: var(--secondaryclr);
    margin-left:0;
}

    /*** footer ***/
#footerWrapper
{
    border-top: none;
    background: var(--gradientBackground);
    color: var(--primaryclr);
}

#bottom-menu,
#footer
{
    flex-direction: column;
}

.footerAddressHeader
{
    font-size: 1.4rem;
    color: var(--secondaryclr)
}

#bottom-menu
{
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 1.2rem;
}

.footerComponent
{
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#bottom-menu a,
#bottom-menu a:visited
{
    color: var(--secondaryclr);
    font-weight: 600;
    text-transform: capitalize;
}

@media screen and (max-width: 1200px){

}

@media screen and (max-width: 1060px){
    :root
    {
        --baseFontSize: 18px;
        --teaserHeight: calc((80vh - var(--headerHeight)) - 10em);
        --headerHeight: 5em;
    }
}

@media screen and  (max-width: 940px)
{
    .ce-textpic.ce-right.ce-intext.ce-nowrap,
    .ce-textpic.ce-intext.ce-nowrap
    {
        flex-direction: column;
    }
    .ce-textpic.ce-intext.ce-nowrap .ce-gallery .ce-row
    {
        display: flex;
        justify-content: center;
    }
    .ce-textpic.ce-intext.ce-nowrap .ce-gallery:first-child
    {
        margin-top: 0;
    }
    .ce-textpic.ce-intext.ce-nowrap .ce-gallery
    {
        min-width: unset;
        max-width: 100%;
    }
    #greyContent
    {
        margin-bottom: 0.5rem;
    }
}
@media screen and (max-width: 900px){
    :root
    {
        --teaserHeight: calc((60vh - var(--headerHeight)) - 10em);
    }

    .twoCols:not(.hasPowermail, .contentItemBackground_normal .twoCols)
    {
        grid-template-columns: repeat(1, 1fr);
    }

    #footer .footerLogo img
    {
        width: 300px;
        max-width: 60vw;
        height: auto;
    }

    #footer .footerAddressHeader
    {
        font-size: 16px;
    }

    #footer #bottom-menu
    {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 800px)
{
    :root
    {
        --teaserHeight: calc(60vh - var(--headerHeight));
    }
    #mainMenu a
    {
        padding-left:0;
        padding-right: 0;
    }

    #footer .footerLogo img
    {
        width: 200px;
        max-width: 40vw;
        height: auto;
    }

    .twoCols.hasPowermail
    {
        grid-template-columns: repeat(1, 1fr);
    }

    .textBody
    {
        padding-top: 5px;
    }
}

@media screen and (max-width: 560px)
{
    :root
    {
        --teaserHeight: 45vh;
    }
    body:not(.indexPage) .teaserTextWrapper
    {
        top: unset;
        bottom: 2rem;
        transform: translate(-50%,0);
    }
    .indexPage .teaserAlign2 .teaserTextWrapper
    {
        transform: translate(-50%, -30%);
    }
    #footer > .footerComponent
    {
        position: relative;
        padding-top: 7.5rem;
    }
    .footerLogo
    {
        position: absolute;
        top: 1.2rem;
        left: 50%;
        transform: translateX(-50%);
    }
}
/***
@media screen and (max-width: 430px){
    body
    {
        font-size: 10px;
    }
}

@media screen and (max-width: 370px){
    body
    {
        font-size: 9px;
    }
}
***/
