/*!
 * Theme Name: BFI Design
 * Author: Rene Ernst
 */

:root {
    --white: #ffffff;
    --black: #000000;
    --grey-light: #f4f4f4;
    --grey-medium: #9d9fa2;
    --grey-dark: #3c3e44;

    --text: #000;
    --text-light: #eee;

    --primary:#4c2026; /* #530f19;*/
    --secondary: #474a51;
    --svg-color: rgb(0, 0, 0);
    --background-color: rgb(255, 254, 254);

    --navigation-width: 350px;
    --navigation-background: var(--primary);
    --navigation-backdrop: rgba(0, 0, 0, 0.5);

    --header-padding: 30px;
    --header-bottom: 40vh;
    --logo-width: 40vh;

    --radius: 7px;

    --shadow: 0px 0px 4px 2px var(--primary), 0 0px 20px 0 rgba(0, 0, 0, 0.19);
    --shadow-clear: 0 10px 20px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Startseiten-Header höher machen */
body.home {
    --header-bottom: 30vh;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

/*-----------------------------------
 *---------- Typographie -----------*
 *----------------------------------*/
body,
button,
input,
select,
optgroup,
textarea {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
    font-family: "Montserrat", sans-serif;
}

h1, h2, h3,
h4, h5, h6 {
    font-family: "Playfair Display", normal;
}

a:hover {
    color: var(--grey-medium)
}


/*-----------------------------------
 *------------ Layout --------------*
 *----------------------------------*/

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
}

#page {
    display: flex;
    flex-flow: column nowrap;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height));
    background-color: var(--background-color);
}

#content {
    flex: 1;
    z-index: 1;
    background-color: var(--background-color);
}

.site-header {
    position: relative;
    z-index: 2;
}

.site-branding {
    display: flex;
    justify-content: center;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 25%;
}

.post-header a {
    text-decoration: none;
    color: var(--primary);
}

.custom-logo {
    max-width: var(--logo-width);
    height: auto;
}

.search-toggle {
    position: absolute;
    top: var(--header-padding);
    right: 80px;
    width: 38px;
    height: 35px;
    padding-top: 6px;
    cursor: pointer;
}

.search-toggle svg {
    width: 100%;
    height: 100%;
    fill: var(--svg-color);
}

.phone-svg {
    position: absolute;
    top: var(--header-padding);
    right: 130px;
    width: 38px;
    height: 35px;
    padding-top: 6px;
    cursor: pointer;
}

.menu-toggle {
    position: absolute;
    top: var(--header-padding);
    /* left: var(--header-padding); V1: links gleich wie oben */
    /* left: 30px; V2: links fixer abstand */
    /* right: var(--header-padding); V3: rechts gleich wie oben */
    right: 30px; /* V4: rechts fixer abstand */

    cursor: pointer;
    display: inline-block;
}

.menu-toggle div {
    width: 35px;
    height: 5px;
    background: var(--svg-color);
    margin: 6px 0;
}

.wide-display-navigation {
    display: none;
}

body.nav-open .menu-toggle div:nth-child(1) {
    transform: translateY(11px) rotate(-45deg);
}

body.nav-open .menu-toggle div:nth-child(2) {
    opacity: 0;
}

body.nav-open .menu-toggle div:nth-child(3) {
    transform: translateY(-11px) rotate(45deg);
}

.header-media {
    width: 100%;
    height: calc(100vh - var(--wp-admin--admin-bar--height) - var(--header-bottom));
}

.header-media-image {
    width: 100%;
    height: 100%;
}

.header-media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0));
    filter: blur(10px);
}

.header-media-content h1 {
    margin: 0;
    color: var(--black);
  /*  text-shadow: 0px 0px 4px var(--primary); */
    font-size: 1.5em;    
}

/* V1: Überschrift links unten
.header-media-content {
    position: absolute;
    left: var(--header-padding);
    bottom: var(--header-padding);
}
*/

/* V2: Überschrift rechts unten mit mehr Abstand
.header-media-content {
    position: absolute;
    right: calc(4 * var(--header-padding));
    bottom: calc(4 * var(--header-padding));
}
*/

/* V3: Überschrift zentriert */
.header-media-content {
    position: absolute;
    left: var(--header-padding);
    top: var(--header-padding);
   /* transform: translate(-50%, -50%); 
    width: 100%;*/
    text-align: center;
    text-shadow: 0px 0px 10px var(--grey-medium);
}


/*------------------
-----Footer---------
------------------*/


.site-footer {
    background: var(--grey-light);
    color: var(--text);
    mask-image: linear-gradient(to top, rgb(0, 0, 0) 99%, rgba(0, 0, 0, 0));
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.site-footer h1 {
    color: var(--primary);
    weight: bold;
}

#site-footer-columns {
    display: flex;
    align-items: center;
    flex-flow: column;
    justify-content: space-evenly;
    margin: 1vh;
    align-items: center;
    text-align: center;
}

.email-tel {
    background-color: var(--white);
    width: 100%;
    border-radius: var(--radius);
}

.site-footer-c-links {
    background-color: var(--primary);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    display: flex;
    justify-content: flex-end;
}

.site-copyright {
    position:absolute;
    left: 5px;
    font-size: 3vw;
    color: var(--grey-medium); 
}

.site-footer-navigation {
    position: relative;
    display: flex;
    justify-content: center;
}

.site-footer-navigation ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.site-footer-navigation a {
    padding: 0 10px;
    color: var(--grey-medium);
    text-decoration: none;
    font-size: small;
}


.bfi-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px;
}

.bfi-social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
}

.bfi-social-links svg {
    width: 100%;
    height: 100%;
}

.maps-svg svg {
        width: 40px;
        height: 40px;
        margin-bottom: 20px;
}

/*-----------------------------------
 *---------- Navigation ------------*
 *----------------------------------*/

.site-navigation ul {
    list-style-type: none;
    font-size: 1.4rem;
    line-height: 2;
    font-weight: bold;
    padding-left: 0;
}

.menu-close {
    display: flex;
    justify-content: flex-end;
}

.menu-close-button {
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    padding: 0 15px;
    transition: 0.2s ease-out;
}

.menu-close-button:hover {
    color: var(--grey-medium);
}

/* Für Trenner aktivieren: */
.site-navigation ul.menu > li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.7);
}

.site-navigation ul a,
.site-navigation ul a:visited {
    display: block;
    color: var(--white);
    text-decoration: none;
    text-align: center;
    margin: 10px;
    font-family: "Playfair Display", normal;
    transition: 0.2s ease-out;
}

.site-navigation ul a:hover {
    padding: 7px;
    color: var(--secondary);
}

.backdrop,
.search-backdrop {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.backdrop {
    background: var(--navigation-backdrop);
    backdrop-filter: blur(5px);

    transition: 0.5s;
}

.search-backdrop {
    background: var(--navigation-backdrop);
    backdrop-filter: blur(5px);

    transition: 0.5s;
}

.search-close {
    position: absolute;
    top: calc(var(--wp-admin--admin-bar--height));
    right: var(--header-padding);
    line-height: 1;
    font-size: 45px;
    color: var(--svg-color);
    cursor: pointer;
}

.search-backdrop form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.search-backdrop label {
    display: none;
}

.search-backdrop .search-input {
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    min-width: 50vw;
    box-shadow: var(--shadow-clear);

    border: none;
    outline: none;
}

.search-backdrop .search-submit {
    display: none;
}

.menu-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    overflow-y: auto;

    margin: 0;
    margin-top: var(--wp-admin--admin-bar--height);
    padding: 35px 16px;
    width: var(--navigation-width);
    max-width: 100vw;

    background: var(--navigation-background);
    backdrop-filter: blur(15px);

    transform: translateX(0);
    visibility: visible;
    transition: 0.5s;
}


body:not(.nav-open) .menu-container {
    transform: translateX(101%);
    visibility: hidden;
}


body:not(.search-open) .search-backdrop {
    display: none;
}

body:not(.nav-open) .backdrop{
    display: none;
}

/*----------------------------
 *--------- Content ---------*
 *---------------------------*/

#content {
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: none;
}

#content h1, h2, h3 {
    color: var(--primary);    
}

#content img {
    border-radius: var(--radius);
}

.n2-section-smartslider.fitvidsignore.n2_clear {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-clear);
}

.post-8 li a {
    display: block;
    width: 100%;
    text-decoration: none;
    transition: 0.2s ease-out;
}


.post-8 li a:hover {
    color: var(--secondary);
    font-weight: bold;
}

/*  ----  animation: fadeIn 2s ease-in; ----
@keyframes fadeIn {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(5deg); }
  50%  { transform: rotate(-5deg); }
  75%  { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}
*/

.page-id-26 iframe {
    height: 40vh;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-clear);
}

#content .box-shadow {
    background-color: var(--grey-light);
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-clear);
}

.wp-block-video video {
    border-radius: var(--radius);
}

/*-----------
-----
input {
    width: 300px;
}
-------*/
/*---------------------
------Styling-Divs-----
---------------------*/

.is-style-default img {
    width: 100%;
}

.flip_reverse {
    display: flex;
    flex-direction: column-reverse !important;
}


@media screen and (min-width: 768px) {
    #content {
        padding: 20px 0;
        max-width: 768px;
        margin: auto;
    }

    .flip_reverse {
        display: flex;
        flex-direction: row !important;
    }

    #google { 
        display: flex;
        flex-flow: row;
    }

    .page-id-26 iframe {
        height: 30vh;
    }

    :root {
        --text: #000;
        --text-light: #f5f5f5;
        
        --header-padding: 10px;
        --logo-width: 60px;

        --header-bottom: 60vh;
        --svg-color: var(--white);


    /*----------------
    ------Nav---------
    ----------------*/
    }
    .menu-toggle{
        display: none;
    }

    .header-media {
        width: 100%;
        height: calc(100vh - var(--wp-admin--admin-bar--height) - var(--header-bottom));
    }
    
    .search-toggle {
        top: var(--header-padding);
        right: var(--header-padding);
        bottom: var(--header-padding);
        height: 35px;
        padding-top: 6px;
        cursor: pointer;
    }

    .phone-svg {
    top: var(--header-padding);
        right: calc(6*var(--header-padding));
    }

    .phone-svg svg:hover {
        fill: var(--grey-medium)
    }

    .post-header h1 {
        margin-top: 0;
        font-size: 2.2rem;
    }

    .search-toggle svg {
        fill: var(--svg-color);
    }

    .search-toggle svg:hover {
        fill: var(--grey-medium)
    }


    .site-branding {
        display: flex;
        justify-content: center;
        position: absolute;
        left: var(--header-padding);
        transform: translateY(-25%);
    }

    .custom-logo {
        max-width: var(--logo-width);
        height: auto;
        filter: invert(100%);
    }

    .custom-logo:hover {
        filter: none;
    }
    
    .wide-display-navigation ul a {
        color: var(--white);
        text-decoration: none;
        text-align: center;
        margin: 10px;
        font-family: "Playfair Display", normal;
    }
    
   .wide-display-navigation ul a:hover {
        color: var(--secondary);
    }


    .wide-display-navigation ul {
        display: flex;
        list-style-type: none;
        font-weight: bold;
    }

    .wide-display-navigation ul li {
        text-decoration: none;
    }

    .wide-display-navigation {
        display: flex;
        z-index: 1;
        background-color: var(--primary);
        padding-bottom: 2px;
        padding-left: 50px;
        mask-image: linear-gradient(to bottom, rgb(0, 0, 0) 97%, rgba(0, 0, 0, 0));
    }

    .menu-hauptmenue-container {
        left: 50vw;
    }
 
    /*----------------
    -----Layout-------
    ----------------*/

    .site-header {
        position: relative;
        z-index: 2;
    }

    .site-branding {
        display: flex;
        justify-content: center;

        position: absolute;
        left: 20px;
    /*    transform: translateX(-50%); */
        top: 18px;
    }

    .post-header a {
        text-decoration: none;
        color: var(--primary);
    }

    .custom-logo {
        max-width: var(--logo-width);
        height: auto;
    }

    .header-media-content {
        position: absolute;
        left: 50%;
        top: 60%;
        transform: translate(-50%, -50%);
        width: 100%;
        text-align: center;
        text-shadow: 0px 0px 10px var(--grey-medium);
    }


    .header-media-content h1 {
        margin: 0;
        color: var(--secondary);
        text-shadow: 0px 0px 4px white;
        font-size: 11vw;    
    }



    /*-----------------
    -------Footer------
    -----------------*/

    .site-footer {
        background-color: var(--background-color);
    }


    #site-footer-columns {
        display: flex;
        align-items: center;
        flex-flow: row;
        justify-content: space-evenly;
        align-items: stretch;

        text-align: center;
        margin: 2vw;
    }

    #site-footer-columns div {
        background-color: var(--grey-light);
        align-items: stretch;
        border-radius: var(--radius);
        box-shadow: var(--shadow-clear);
    }

    .footer-card {
        width: 240px;
    }
    
    .site-footer-social {
        box-shadow:none !important;
    }

    .bfi-social-links {
        box-shadow:none !important;
    }
    
    .site-footer-navigation a {
        font-size:100%;
    }

    .site-copyright {
        font-size: 100%;
    }

}

@media screen and (min-width: 1024px) {
    #content {
        max-width: 950px;
        text-align: center;
    }

    .page-id-26 iframe {
        height: 50vh;
    }
}

@media screen and (min-width: 1300px) {
    #content {
        max-width: 1100px;
        text-align: center;
    }
}


/*----------------
  --- Diverses ---
  ---------------*/

  .top-button {
        position: fixed;
        right: var(--header-padding);
        bottom: var(--header-padding);
    /*  background: rgba(131, 49, 49, 0.5);         Variante 1: Farbe hier wählen */
        background: var(--navigation-backdrop); /* Variante 2: Gleich wie Navigation */
        border-radius: 50%;
        z-index: 2;
        
        width: 50px;
        height: 50px;
        padding: 10px;

        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transition: 0.2s ease-out;
    }

    body.top-btn-visible .top-button {
        opacity: 1;
        visibility: visible;
    }

    .top-button svg {
        width: 100%;
        height: 100%;
        fill: var(--svg-color);
    }