/*
Theme Name: BFI Design
Author: Berger Alexandra 
Description: Ein einfaches Wordpress Theme.
Version: 4
*/

* {
    box-sizing: border-box; 
}

html {
    height: 100%;

    font-family:'Open Sans', 'Roboto', sans-serif;
}


body {
    background: rgba(255, 255, 0, 0);

    height: 100vh;
    min-height: 100%;
    text-align: center;

    margin: 0;
    padding: 0;

    display: flex;
    flex-flow: column nowrap;
}

/*
 * Typographie
 */
h1, h2, h3,
h4, h5, h6 {
    font-family:'Open Sans','Roboto', sans-serif;
}

/*
 * Layout
 */
header nav {
    background-color: rgb(255, 255, 255);
    padding-top: var(--wp-admin--admin-bar--height);
    z-index: 10000; 
}

/*
 * Header Medien (Logo + Bild) 
 */
.header-media {
    position: relative; 
    width: 100%;
    height: 40vh; 
}

/* Startseiten Header höher */
body.home .header-media {
    height: 60vh; /* 60% des Displays */
    /* height: 100vh; /* Gesamte Höhe */
    /* height: calc (100vh-3em); /* Gesamte Höhe Menü sichtbar*/
}

/* Beitragsbild */
.header-media .attachment-post-thumbnail{
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
/* Logo */
.header-media .custom-logo-link {
    position: absolute; 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%);
}

/*
 * Navigation
 */
header nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    justify-content: space-between;
    text-align: center;


    display: flex;
    flex-flow: column nowrap;
}

header nav ul.sub-menu {
    font-size: 0.90em;
}

@media screen and (min-width: 48em) {
    header nav ul.sub-menu {
        display: none;
    }

    header nav ul li a i {
        display: none;
    }
}

header nav ul a {
    display: block;
}

/* Aktiver Menü-Punkt */
header nav ul .current-menu-item {
    background:rgb(164, 162, 162);
}

header nav ul .current-menu-item > a {
    font-weight: bold;
}

/*
 * Mobile Navigation
 */
@media screen and (max-width: 47.998em) {
    header nav {
        background: rgba(255, 255, 255, 1);
        backdrop-filter: blur(5px);
        transition: left 0.3s ease-out;

        position: fixed;
        top: 0;
        left: -250px;

        width: 250px;
        max-width: 100vw;
        height: 100%;
        z-index: 10001;
    }
    
    header nav>div>ul>li>a>i {
        display: none;
    }

    body header nav ul a {
        text-align: left;
    }

    body header nav ul {
        overflow-y: auto;
        max-height: 100vh;
    }

    header nav i {
        margin-right: 5px; 
    }

    body.menu-open header nav {
        left: 0;
    }
}

/*
 * Footer
 */
 footer {
    text-align: center;
    background-color: rgba(0, 0, 0, 0); /* Schwarzer Hintergrund */
    color: white; /* Weiße Schriftfarbe */
    padding-top: 20px;
    
}

footer .footer-media {
    position: relative;
}

footer .footer-media .white-stripe,
footer .footer-media .black-stripe {
    position: absolute;
    left: 0;
    right: 0;

}

footer .footer-media .white-stripe {
    top: 0;
    bottom: 50%;
    background: transparent;

}
footer .footer-media .black-stripe {
    top: 50%;
    bottom: 0;
    background: rgba(17, 114, 36, 0.902);

}
footer .footer-media .logo-stripe img {
    z-index: 9999;

}
footer .footer-media .logo-stripe {
    display: flex;
    flex-flow: row;
    justify-content: center;
    padding: 1em;
}

footer .footer-copyright {
    background: rgb(81, 81, 81);
    width: 100%;
    box-sizing: border-box; 
}

footer .footer-copyright .footer-social-links {
    display: flex;
    flex-flow: row;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 0.5em; 
    color: white;
    font-size: 2em; 
}

footer .footer-copyright a {
    color: #ffffff; /* Sets all links in the footer copyright section to white */
    text-decoration: none;
}

footer .footer-copyright a:hover {
    text-decoration: underline;
}

footer .bi.bi-facebook,
footer .bi.bi-instagram,
footer .bi.bi-google {
    color: white;
}

footer .copyright-info {
    margin-bottom: 30px; /* Platz unter dem Urheberrechtstext */
    background-color: rgb(81, 81, 81);
    height: 40px;
    width: 100%;
    text-align: center;
}

footer ul.menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

footer ul.menu li {
    display: inline-block;
    margin-right: 10px;
}

/*
 * Tablet und größer
 */
@media screen and (min-width: 48em) {
    header nav ul {
        flex-flow: row nowrap;
    }

    header nav ul li {
        flex: 1 0 auto;
    }

    header nav li.menu-item-has-children {
        position: relative;
    }

    header nav li.menu-item-has-children ul.sub-menu a {
        text-align: left;
    }

    header nav li.menu-item-has-children:hover ul.sub-menu {
        background: rgba(61, 255, 61, 0);
        display: flex;
        position: absolute;
        flex-flow: column nowrap;
        min-width: 12em;
        backdrop-filter: blur(8px);
    }
    /* STRG + Shift + R */

    footer {
        text-align: center;
        align-items:center;
    }
}

/*
 * Desktop
 */
@media screen and (min-width: 54em) {
    header nav ul li {
        flex: 0 0 auto;
    }
}


/****************
 **** Design ****
 ***************/
/**
 * Header
 */
header {
    background-color:  rgb(0, 255, 0, 0);
    z-index: 99999;
    font-size: 19px;
}

.custom-logo-link{
    display: block;
}

.custom-logo {
    max-width: 400px;
    height: auto;

}

@media screen and (max-width: 47.998em) { /* Anpassung für kleinere Bildschirme */
    .header-media .custom-logo {
        max-width: 300px; /* Kleinere Größe für mobile Geräte */
        height: auto;
    }
}


/**
 * Navigation Button
 */
#nav-btn {
    cursor: pointer;
    width: 50px;
    height: 50px;
    position: absolute;
    right: 20px; 
    top: 20px; 
    z-index: 10002; 

}

@media screen and (min-width: 48em) {
    #nav-btn {
        display: none;
    }
}

#nav-btn div {
    background: rgba(63, 63, 63, 0.85);
    width: 50px;
    height: 10px;
    transition: all 1s;
}

#nav-btn div:not(:last-child) {
    margin-bottom: 10px;
}

/* Menü geöffnet */
body.menu-open #nav-btn div:first-child {
    rotate: 45deg;
    position: absolute;
    top: 50%;
}

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

body.menu-open #nav-btn div:last-child {
    rotate: -45deg;
    position: absolute;
    top: 50%;
}


/**
 * Navigation
 
header nav {
    padding-top: var(--wp-admin--admin-bar--height);
}
*/

header nav ul {
    list-style-type: none;
}

header nav ul li:hover {
    background-color: rgba(112, 112, 112, 0.3);
    z-index: 99999;
}

header nav ul a {
    text-align: center;
    text-decoration: none;

    padding: 1em;
    color: #706f6f;
}

/**
 * Main
 */
main {
    background-color: rgba(255, 119, 0, 0);
}

main >h1 {
    text-align: center;
    color: rgb(92, 91, 91);
}

/**
 * Footer
 */
footer {
    background-color: rgba(0, 0, 255, 0);
}

/**
 * Tablet oder größer
 */
@media screen and (min-width: 35em) {
    main {
        background-color: rgba(255, 0, 0, 0);
    }
}

/**
 * Desktop oder größer
 */
@media screen and (min-width: 54em) {
    main {
        background-color: rgba(0, 0, 255, 0);
    }
}