/*
Theme Name: BFI Design Projekt
Author: Daniel Moßhammer
Description: EDV Projekt
Version: 3
*/

* {
    box-sizing: border-box;
}

html {
    height: 100%;

    font-family: 'Heebo', verdana, sans-serif;
}

body {
    background: white;

    height: 100vh;
    min-height: 100%;

    margin: 0;
    padding: 0;

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

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

h1, h3, h5 {
    color: #3d7ebe;
}
h2, h4, h6 {
    color: #75afde;
}

h1 {
    font-size: 60px;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    text-align: center;
}

h2 {
    font-size: 30px;
    margin: 0 0 50px 0;
    text-align: center;
}


h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
}

h4 {
    font-size: 20px;
    margin: 0 0 10px 0;
    padding: 0;
}



p, ul, ol {
    font-size: 18px;
    line-height: 1.6;
    color: #2b2b2b;
}




/*
 * Mobile
 */
 @media screen and (max-width: 34.998em) {
    header nav {
        background: #3d7ebe;
        backdrop-filter: blur(4px);
        transition: left 0.3s ease-out;
        position: fixed !important;
        top: 0;
        left: -250px;
        width: 250px;
        max-width: 100vw;
        height: 100%;
        z-index: 99;
    }
    .header-media {
        height: auto !important;
        top: 84px !important
    }

    .header-media .attachment-post-thumbnail {
        height: 350px;
    }


    .daniel_menuleiste {
        position: absolute;
        max-height: 100px;
        z-index: 99;
        width: 100%;
        background: #3d7ebe;
    }

    
    body main {
        padding: 2em 2em;
    }

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

    body header nav ul a {
        text-align: left;
        font-size: 16px;
        padding: 12px 15px;
    }

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

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

    header nav .menu-hauptmenue-container .sub-menu {
        background-color: #fff;

    }

    .daniel_menuleiste img {
        width: 250px;
    }

    .search-container {
        display: none !important; 
    }

    body h1 {
        font-size: 30px;
    }
    
    body h2 {
        font-size: 22px;
        margin: 0 0 20px 0;
    }
    
    body h3 {
        font-size: 18px;
        margin: 0 0 5px 0;
    }
    
    body h4 {
        font-size: 16px;
        margin: 0 0 5px 0;
    }
    
    p, ul, ol {
        font-size: 16px;
        line-height: 1.6;
        }

    .wrapper {
        top:100%;
    }

    .daniel_menuleiste {
        position: absolute;
        max-height: 100px;
        z-index: 99;
        width: 100%;
        background: #fff;
    }



    
    body main {
        padding: 5em 2em;
    }

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

    body header nav ul a {
        text-align: left;
        font-size: 16px;
        padding: 12px 15px;
    }

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

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

    header nav .menu-hauptmenue-container .sub-menu {
        background-color: #75afde;

    }

    .daniel_menuleiste img {
	width: 250px;
	height: auto;
}


    body h1 {
        font-size: 30px;
    }
    
    body h2 {
        font-size: 22px;
        margin: 0 0 20px 0;
    }
    
    body h3 {
        font-size: 18px;
        margin: 0 0 5px 0;
    }
    
    body h4 {
        font-size: 16px;
        margin: 0 0 5px 0;
    }
    
    p, ul, ol {
        font-size: 16px;
        line-height: 1.6;
        }





}


/*
 * Tablet
 */

 @media (min-width: 34.998em) and (max-width: 75em) {

    .search-container {
        display: none !important;
    }

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

    .header-media {
        height: auto !important;
    }

    .header-media .attachment-post-thumbnail {
        height: 350px;
    }

    body header nav ul a {
        text-align: left;
        font-size: 16px;
        padding: 12px 15px;
    }

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

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

    header nav .menu-hauptmenue-container .sub-menu {
        background-color: #75afde;

    }

    body #nav-btn {
        top: 4%;
    }

    body main {
        padding: 35px 20px;
    }

    header nav {
        background: #3d7ebe;
        backdrop-filter: blur(4px);
        transition: left 0.3s ease-out;
        position: fixed !important;
        top: 0;
        left: -250px;
        width: 250px;
        max-width: 100vw;
        height: 100%;
        z-index: 99;
    }

}




/*
 * Layout
 */
.wrapper {
    display: flex;
    flex-flow: column nowrap;

    flex: 1 0 auto;
}

.wrapper main {
    flex: 1 0 auto;
}

/* Desktop */
@media screen and (min-width: 54em) {
    .wrapper {
        flex-flow: row nowrap;
    }

    .wrapper .sidebar {
        flex: 1 0 auto;
        max-width: 25%;
    }

    .wrapper main {
        flex: 4 0 auto;
        max-width: 65%;
        align-content: center;
        margin: 0 auto;
    }
}

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

/* 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%;
    /* Für Links- und Rechtsausrichtung nächste Zeile auf 0, -50% */
    transform: translate(-50%, -50%);
}


.search-container {
	display: block;
	position: absolute;
	right: 0;
	margin: 0;
	padding: 0;
	/* background: #fff; */
	/* border: 1px solid #ddd; */
	/* min-width: 300px; */
	top: 5%;
	float: right;
	/* margin: 35px 0px; */
	/* padding-left: 3em; */
	right: 2%;
}


.navbar img {
    width: 150px;
    padding: 15px;
  }




/*
 * Navigation
 */
header nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
}

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



.daniel_menuleiste {

    height: 85px;
	background-color: #fff;
}



.daniel_menuleiste img {
	width: 250px;
	height: auto;
}

.daniel_menuleiste nav {
	margin: 0;
	display: inline-block;
	right: 25%;
	position: absolute;
    align-items: center;
}
   

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

header nav ul li:hover {
    background-color: #3d7ebe;
}


header nav ul li a:hover {
    color:#fff !important;
}

header nav ul a {
	text-align: center;
	text-decoration: none;
	font-size: 22px;
	padding: 25px;
	color: #333;
}





@media screen and (min-width: 75em) {
    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: #75afde;
}

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



/*
 * Footer
 */
footer {
    text-align: center;
    padding: 1em;
}

footer .menu-footer-menue-container a {
    color: #fff;
}

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

footer img {
    width: 50%;
    height: auto;

}


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

    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;
        min-width: auto;
        line-height: 1.1;
    }

    header nav li.menu-item-has-children:hover ul.sub-menu {
        background-color: #75afde;
        display: flex;
        position: absolute;
        flex-flow: column nowrap;
        min-width: 12em;
        backdrop-filter: blur(4px);
        z-index: 99;
        padding: 0;
    }
    /* STRG + Shift + R */

    footer {
        text-align: left;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        align-items:center;
    }

}


@media (min-width: 75em) and (max-width: 85em) {
    header nav ul a {
        font-size: 16px;
        padding: 15px;
    }
    header nav ul {
        padding-top: 15px;
        margin-right: 40px;
    }
}

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


}

@media screen and (min-width: 75em) {

    #nav-btn {
      display: none;
    }
}

/*
 * Blog-Seite
 */
body.archive main article {
    display: flex;
    flex-flow: column nowrap;
    
    margin-bottom: 30px;
}

body.archive main article img {
    width: 100%;
    height: auto;
}

body.archive main article .article-meta span {
    margin-right: 5px;
}

/*
 * Tablet und größer
 */
@media screen and (min-width: 35em) {
    body.archive main article {
        flex-direction: row;
    }

    body.archive main article .article-thumb img {
        width: 200px;
        height: 150px;
        object-fit: cover;
    }

    body.archive main article .article-content {
        padding: 0 20px;
    }

    body.archive main article h2 {
        margin-top: 0;
    }

    body.archive main article h2 a {
        color: black;
    }


}



/****************
 **** Design ****
 ***************/

main {
    padding: 5em 0 10em 0;
}


.search-results h2, .search-results h3, .search-results h4, .search-results h5, .search-results h6 {
    text-align: left;
    margin: 0;
}


.daniel_suche {
	padding: 25px;
	border: 2px dotted #75afde;
	margin: 25px 0;
}

/**
 * Header
 */
header {
    background-color:  white;
    z-index: 99999;
    position: relative;

}



/**
 * Navigation Button
 */
#nav-btn {
    cursor: pointer;
    width: 50px;
    height: 50px;
    position: absolute;
    right: 5%;
    top: 6%;
    z-index: 999;
}



#nav-btn div {
    background: #3d7ebe;
    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%;
}



/**
 * Main
 */
main {
    background-color: white;
}

main a {
    color: #3d7ebe;

}


/**
 * Footer
 */
footer {
    background-color: #75afde;
}

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

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

/* Suchfunktion */
    .search-highlight {
        background: #75afde; 
        color:#fff;
    }
    
    .search-container #searchform input {
        border: 1.5px solid #3d7ebe;
        min-height: 30px;
    }
    .search-container #searchform #searchsubmit {
        background-color: #3d7ebe;
        color: #fff;
    }
    .search-container #searchform #searchsubmit:hover {
        background-color: #75afde;
    }

    

