/*
Theme Name: BFI Basic Design
Author: Lukas Hofer
*/


/**********************
 ******* Layout *******
 *********************/
html, body {
	height: 100%;
	font-family: 'Roboto', sans-serif;
}

/* Hintergründe setzen */
body {
	background-size: cover !important;
	background-attachment: fixed !important;
}
body.home {
	background: url("./img/bg-start.jpg");
}
body.page {
	background: url("./img/bg.jpg");
}


h1, h2, h3,
h4, h5, h6 {
	font-family: 'Aclonica', sans-serif;
}

body.admin-bar {
	height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		height: calc(100% - 48px);
	}
}

body {
	display: flex;
	flex-direction: column;
}

header {
	display: flex;
	flex-direction: column;
}

header .header-image {
	width: 100%;
	height: auto;
	object-fit: cover;
}

header .header-image.large {
	max-height: 540px;
}

header .header-image.small {
	max-height: 250px;
}

main {
	/* Erlaubt dem <main> Element, den <body> zu füllen */
	flex: 1;
	max-width: 775px;
	
	margin-left:  auto;
	margin-right: auto;
	
	padding-left:   1em;
	padding-right:  1em;
	padding-bottom: 1em;
}

main.wide {
	max-width: 1000px;
}


/*****************
 ***** Menüs *****
 ****************/

header ul.menu,
header ul.sub-menu {
	margin: 0;
	padding: 0;
	text-align: center;
	list-style-type: none;
	z-index: 999;
	
	background: #808080;
}

header ul.menu a {
	display: block;
	text-decoration: none;
	
	padding: 0.5em;
	
	background: #808080;
	color: #FFF;
	
	transition: background 0.4s;
}

header ul.menu a:hover {
	background: #A9A9A9;
}
 
@media screen and (max-width: 775px) {
	
	header ul.menu li:not(.current-menu-item) ul.sub-menu {
		display: none;
	}
	
	header ul.menu a {
		display: block;
	}
		
	header ul.menu li.current-menu-item a {
		background: #A9A9A9;
	}
}


/* Desktop Ansicht */
@media screen and (min-width: 776px) {
	
	header ul.menu {
		display: flex;
		flex-flow: row nowrap;
	}
	
	header ul.menu li {
		position: relative;
		
	}
	
	header ul.menu li.current-menu-item > a {
		background: #801515;
	}
	
	header ul.menu ul.sub-menu {
		position: absolute;
		text-align: left;
		display: flex;
		flex-flow: column nowrap;
		min-width: 170px;
	}
	
	header ul.menu li:not(:hover) ul.sub-menu {
		display: none;
	}
	
	
	footer {
		display: flex;
		justify-content: space-between;
	}
	
	footer :first-child {
		order: 2;
	}
	
}




/************
 ** Footer **
 ***********/
footer {
	padding: 1em;
	
	background: #c44a4a;
	color: #d1b9b9;
	
	text-align: center;
}

footer ul.menu li:first-child a {
	padding-top: 0;
	margin-top: 0;
}

footer :last-child {
	padding-bottom: 0;
	margin-bottom: 0;
}

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

footer a {
	display: inline-block;
	padding: 0.5em;
	
	text-decoration: none;
	color: white;
}


html.sr .bfi_reveal {
	visibility: hidden;
}


/******************
 * Contact Form 7 *
 *****************/
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="password"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="month"],
.wpcf7-form input[type="week"],
.wpcf7-form input[type="time"],
.wpcf7-form input[type="datetime"],
.wpcf7-form input[type="datetime-local"],
.wpcf7-form input[type="color"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100% !important;
	border-radius: 3px;
	border: 1px solid #8c8c8c;
	padding: 5px;
}





