
@font-face {
    font-family: "Playfair Display";
    src: url("../../../fonts/PlayFair/PlayfairDisplay-VariableFont_wght.ttf");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Playfair Display Bold";
    src: url("../../../fonts/PlayFair/PlayfairDisplay-Bold.ttf");
    font-weight: 600;
    font-style: normal;
}

:root
{
    /*** colours ***/
    --primaryclr: #98301c;
    --secondaryclr: #13295b;
    --pageBGclr: #fef3d3;
    --itemBG: #fbeccf;
    --mainContentBG: transparent;
    --backdropFilter: blur(15px);
    --backdropFilterTeaserText: blur(5px) saturate(100%);
    --mainMenuClr: var(--primaryclr);

    /*** sizes ***/
    --boxPadding: 2rem;
    --boxRadius: 2rem;
    --boxBorderRadius: var(--boxRadius);
    --maxTeaserHeight: var(--teaserHeight);
    --sectionPadding: 3rem;

    /*** fonts ***/
    --defaultFont: 'Montserrat', Arial, sans-serif;
    --defaultColor: #3E3E3E;
    --headerFont: 'Playfair Display', sans-serif;
}

html
{

    --webkit-scrollbar-width: thin;
    scrollbar-width: thin;
    --webkit-scrollbar-color: var(--primaryclr) var(--itemBG);
    scrollbar-color: var(--primaryclr) var(--itemBG);

    scroll-behavior: smooth;
}

body
{
    background-color: var(--pageBGclr);
}

#page
{
    padding-top: 0;
}

/*** header ***/
#headerWrapper
{
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--primaryclr);
}

#header
{
    justify-content: space-between;
    align-items: flex-end;
}

#logo
{
    position: relative;
    left: unset;
    top: 0.5rem;
    width: fit-content;
}

#logo a.logoLink
{
    height: calc(100% + 1.4rem);
    margin-top: 1rem;
}

#logo img
{
    max-height: 100%;
    width: auto;
    border-radius: 0.5rem;
}

/*** teaser ***/
#teaser div.teaserImg,
div.teaserImgInnerWrapper,
.teaserImgInnerWrapper img
{
    position: relative;
    width: 100dvw;
    height: auto;
}

.teaserTextWrapper
{
    left: 50%;
    bottom: unset;
    transform: translate(-50%,-50%);
}

.teaserText
{
    max-width: unset;
    padding-inline: 1rem;
    padding-block: 0.5rem;
    background-color: rgba(255,255,255,0.4);
    border-radius: var(--boxRadius);
    box-shadow: 0.5rem 0.5rem 0.5rem rgba(0,0,0,0.4);

    -webkit-backdrop-filter: var(--backdropFilterTeaserText);
    backdrop-filter: var(--backdropFilterTeaserText);
}

h1.teaserHeader,
h2.teaserHeader
{
    width: fit-content;
    margin-bottom: 0;
    padding-bottom: 1rem;
    letter-spacing: 2px;
    font-size: clamp(1.3rem, 2.5vw + 0.8rem, 2rem);
}

h1.teaserHeader
{
    max-width: min(95dvw,840px);
    white-space: nowrap;
}

h1.teaserHeader:first-line,
h2.teaserHeader:first-line,
.teaserHeader > strong
{
    font-size: clamp(1.8rem, 7.5vw + 0.8rem, 6rem);
    letter-spacing: 4px;
    text-shadow: 2px -2px 5px var(--secondaryclr);
    line-height: 1.4;
}

h3.headerItem
{
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
}

/*** main content ***/
#mainContent
{
    min-height: calc(100dvh - (var(--headerHeight) + 7.5rem));
    padding-top: var(--boxPadding);
}

#mainContent
{
    position: relative;
    top: var(--headerHeight);
    margin-bottom: var(--headerHeight);
}

.content
{
    width: unset;
}

.contenttable
{
    min-width: 85%;
}

section,
#headerWrapper
{
    display: grid;
    grid-template-columns: auto min(var(--contentWidth),99vw) auto;
}
section.contentItemLayout5
{
    grid-template-columns: auto min(800px,99vw) auto;
}
section > *,
#headerWrapper > *
{
    grid-column: 2;
    width: 100%;
}

.sectionInnerWrapper
{
    padding-inline: var(--boxPadding);
    padding-block: var(--boxPadding);
    border-radius: var(--boxRadius);
    margin-top: var(--sectionPadding);
    border: 1px var(--primaryclr) solid;
    box-shadow: 0.5rem 0.5rem 0.5rem var(--primaryclr);
    background-color: var(--itemBG);
}

section:first-of-type .sectionInnerWrapper
{
    margin-top: var(--boxPadding);
}

.textpicBodytextWrapper,
.textpicImage
{
    border-radius: var(--boxRadius);
    overflow: clip;
}

.whiteBackground .textpicBodytextWrapper,
.teaserElementBeside .textInTeaserwhite
{
    background-color: var(--itemBG);
}

.redBackground .textpicBodytextWrapper,
.teaserElementBeside .textInTeaserred
{
    background-color: var(--primaryclr);
    color: white;
}

.blueBackground .textpicBodytextWrapper,
.teaserElementBeside .textInTeaserblue
{
    background-color: var(--secondaryclr);
    color: white;
}

#teaser,
#teaser div.teaserImg,
div.teaserImgInnerWrapper,
#teaser .teaserImg img.teaserImage
{
    height: auto;
}

.hirImageBG
{
    height: 100%;
}

.teaserElementBeside img
{
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
}

/*** contact form ***/
.frame-type-form_formframework form
{
    max-width: 520px;
}
.frame-type-form_formframework form > h2
{
    display: none;
}

.frame-type-form_formframework form input[type="text"],
.frame-type-form_formframework form input[type="email"],
.frame-type-form_formframework form textarea
{
    width: 100%;
    padding-inline: 0.2rem;
    padding-block: 0.2rem;
    border-radius: 0.5rem;
}

.form-group
{
    margin-bottom: 1rem;
}

/*** ce images ***/
.ce-intext img
{
    border-radius: var(--boxRadius);
}

/*** image zoom ***/
.gslide-image img
{
    border-top-left-radius: var(--boxRadius);
    border-top-right-radius: var(--boxRadius);
}

.gslide-description
{
    border-bottom-right-radius: var(--boxRadius);
    border-bottom-left-radius: var(--boxRadius);
}

.frame-type-menu_subpages ul
{
    flex-wrap: wrap;
}

.frame-type-menu_subpages ul > li
{
    flex-basis: 340px;
    max-width: 400px;
    margin-inline: auto;
    background-color: var(--itemBG);
    border-radius: var(--boxRadius);
    overflow: clip;
    box-shadow: 1rem 1rem 1rem rgba(0, 0, 0, 0.5);
}

.pagesImage img
{
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.menuItemText
{
    padding-inline: var(--boxPadding);
    color: black;
}

/*** footer ***/
#footer
{
    width: var(--contentWidth);
    margin-inline: auto;
}

@media screen and (max-width: 1200px)
{
    .teaserImgimage,
    div.teaserImgInnerWrapper,
    #teaser div.teaserImg,
    div.teaserImgInnerWrapper
    {
        width: auto;
        max-width: unset;
        height: 100%;
    }
    .teaserImgInnerWrapper img
    {
        width: auto;
        min-width: 100%;
        max-width: unset;
        min-height: 100%;
    }
    .teaserTextWrapper
    {
        top: 50%;
    }
    .teaserText
    {
        max-width: 99dvw;
    }
    h1.teaserHeader
    {
        font-size: clamp(1.2rem, 2.5vw + 0.8rem, 2rem);
        white-space: normal;
    }
    h1.teaserHeader:first-line,
    h1.teaserHeader > strong
    {
        font-size: clamp(1.6rem, 3.8vw + 0.8rem, 3.5rem);
        white-space: nowrap;
    }
}
