/*! 
 *   Document   : Default Styles for immocasa.ch
 *   Author     : R. Lutz <info@richhosting.ch>
 */

/*****
 * IMPORTS 
 ******************************************************************************/
@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');


/*****
 * GLOBAL RESET AND GLOBAL STYLES 
 ******************************************************************************/
body, div, dt, ul, ol, li, h1, h2, h3, h4, h5,
pre, form, fieldset, input, textarea, p, th, td, img {
	padding: 0;
	margin: 0;
	border: 0;
}


/*****
 * GLOBAL VARS
 ******************************************************************************/
/* :root {
	--basic-color: #04AA6D;
	--dark-gray: #231f20; 
} */


/*****
 * GLOBAL Styles
 ******************************************************************************/
body {
    background-color: #fff;
    color: #042018;
    font-family: Lato, Arial;
	position: relative;
	font-size: 12pt;	
}
#content-margin,
#footer-container {
	margin: 15px auto;
	max-width: 950px;
	position: relative;
	padding: 0 5px;
}
#logo {
	width: 25%;
	min-width: 240px;
	height: 100px;
	margin: 0 auto;
	display: inline-grid;
	justify-content: center;
	align-items: center;
}
#logo > a > img {
	width: 200px;
}
#header-bar {
	width: calc(100% - 240px); /* 100% - #logo */
	position: absolute;
	right: 5px;
	top: 0;
	max-width: 75%; /* header + #header-bar = 100% */
	z-index: 100;
}
#header-bar-top {
	height: 49px;
	background-image: linear-gradient(135deg, transparent 74.75px, var(--basic-color) 74.75px);
	padding-left: 86px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}
#top-nav-container {
	background-image: linear-gradient(135deg, transparent 40px, var(--dark-gray) 40px);
	overflow: hidden;
	padding-left: 57px;
}
.address,
.tel {
	display: inline-grid;
	justify-content: center;
	align-items: center;
}
.address {
	padding: 1px 20px 1px 22px;
	background-image: url('../images/icons/home.svg');
	background-repeat: no-repeat;
	background-size: 20px;
}
.tel {
	padding: 1px 0px 1px 22px;
	background-image: url('../images/icons/call.svg');
	background-repeat: no-repeat;
	background-size: 20px;
}
.mail-icon {
	padding: 1px 1px 1px 24px;
	background-image: url('../images/icons/mail.svg');
	background-repeat: no-repeat;
	background-size: 20px;
	display: inline-flex;
	margin: 5px 0 1px 0;
}
#content {
	margin: 35px auto 20px auto;
	max-width: 1100px;
}


/* Gallery */
.gallerie > .item {
	display: inline-grid;
	width: 31.2%;
	margin-right: 1.2%;
	padding-bottom: 22px;

	/* transition */
	-o-transition: all .5s ease;
	-ms-transition: all .5s ease;
	-moz-transition: all .5s ease;
	-webkit-transition: all .5s ease;
	transition: all .5s ease;
}
.gallerie > .item:hover {
	transform: scale(102%);
}
.gallerie > .item img {
	width: calc(100% - 2px); /* 100% - border */
	border: 1px solid var(--basic-color);
	box-shadow: 0 4px 10px 0 rgb(0 0 0 / 6%), 0 4px 9px 4px rgb(0 0 0 / 6%);
}
.gallerie > .item div {
	font-weight: 600;
	padding: 2px 0;
}

.home-elements > .item {
	display: inline-grid;
	text-align: center;
	width: 31.2%;
	padding: 20px 0;
	min-height: 125px;
	margin-right: 1.2%;
	background-color: #edf2f8;
	border: 1px solid var(--basic-color);
	box-shadow: 0 4px 10px 0 rgb(0 0 0 / 6%), 0 4px 9px 4px rgb(0 0 0 / 6%);
}
.home-elements > .item > div {
	font-weight: 600;
}
p.zinssatz {
	font-size: 25pt;
	color: var(--basic-color);
}
.owl-carousel {
	height: auto;
	overflow: hidden;
	width: auto !important;
	margin: 1px 0;
	border: 5px solid var(--basic-color);
}
.owl-carousel-small {
	height: auto;
	overflow: hidden;
	width: auto !important;
	margin: 1px 0;
	border: 5px solid var(--basic-color);
}
.owl-carousel .item,
.owl-carousel-small .item {
	justify-content: stretch;
	display: grid;
	align-items: center;
}
.owl-carousel .item span,
.owl-carousel-small .item span {
	position: absolute;
	display: block;
	color: #fff;
	min-width: 120px;
	bottom: 12%;
	left: 5%;
	padding: 10px 15px;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 4px;
	font-size: 17px;
}
.copyright {
	font-size: 12px;
	padding: 25px 0 0 0;
}


/* Geschichte */
.history-year,
.history-label {
	display: inline-grid;
}
.history-year {
	width: 15%;
	max-width: 95px;
	min-width: 55px;
	color: var(--basic-color);
	font-weight: 600;
	padding: 3px 0;
}
.history-year > span {
	display: contents;
}
.history-label {
    width: auto;
	padding: 3px 0;
}

/* Downloads */
ul { margin-left: 30px; }
ul > li { padding: 4px; list-style: square; }
.download-item {
	display: inline-flex;
	background-color: #edf2f8;
	margin: 2px 0;
	min-width: 60%;

	/* icon */
	background-image: url('../images/icons/pdf.gif');
	background-repeat: no-repeat;
	background-size: 22px;
	background-position: 5px;
}
.dl-lable {
	display: inline-flex;
	padding: 10px 15px 10px 33px;
	min-width: 206px;
}

/* Portraits */
.portrait {
	display: inline-grid;
	width: 32%; /* 3er */
	margin-right: 2%;
	max-width: 300px;
	margin-top: 20px;
}
.portrait.noMarginRight { margin-right: 0; }
.portrait-us,
.portrait-el,
.portrait-nn,
.portrait-lo,
.portrait-sz,
.portrait-bg,
.portrait-rvg {
	width: 165px;
	height: 165px;
	border-radius: 50%;
	background-size: 165px;
	background-position: center;
	border: 1px solid var(--basic-color);
	margin: 0 auto;
	box-shadow: 0 4px 10px 0 rgb(0 0 0 / 6%), 0 4px 9px 4px rgb(0 0 0 / 6%);
}
.portrait-content {
	text-align: center;
	min-width: 165px;
	width: 86%;
	margin: 10px auto;
	font-size: 10pt;
	background-color: #edf2f8;
	border-radius: 2px;
	border: 1px solid var(--basic-color);
	padding: 5px 2px 8px 2px;
	min-height: 87px;
	box-shadow: 0 4px 10px 0 rgb(0 0 0 / 6%), 0 4px 9px 4px rgb(0 0 0 / 6%);
}
.portrait-content > div {
	font-weight: 600;
	margin: 4px 0 5px 0;
	font-size: 12.25pt;
}
.portrait-us { background-image: url('../images/portraits/us.jpg'); }
.portrait-el { background-image: url('../images/portraits/el.jpg'); }
.portrait-nn { background-image: url('../images/portraits/nn.jpg'); }
.portrait-lo { background-image: url('../images/portraits/lo.jpg'); }
.portrait-bg { background-image: url('../images/portraits/bg.jpg'); }
.portrait-sz { background-image: url('../images/portraits/sz.jpg'); }
.portrait-rvg { background-image: url('../images/portraits/rvg.jpg'); }

.partner-logo {
	width: calc(33% - 14px); /* border + margin*2.5 */   /* 3er */
	display: inline-flex;
	margin: 5px;
	justify-content: center;
	background-color: #edf2f8;
	border: 1px solid var(--basic-color);
	box-shadow: 0 4px 10px 0 rgb(0 0 0 / 6%), 0 4px 9px 4px rgb(0 0 0 / 6%);
}
.partner-logo > img {
	height: auto;
	width: 66%;

	/* transition */
	-o-transition: all 0.9s ease;
	-ms-transition: all 0.9s ease;
	-moz-transition: all 0.9s ease;
	-webkit-transition: all 0.9s ease;
	transition: all 0.9s ease;
}
.partner-logo > img:hover {
	transform: scale(120%);
}







/*****
 * Titles
 ******************************************************************************/
h1 {
	font-size: 27px;
	text-transform: uppercase;
	margin: 25px 0 15px 0;
	border-bottom: 3px solid var(--basic-color);
	width: max-content;
}
h1 > span {
	color: var(--basic-color);
}
h2 {
	font-size: 24px;
	margin: 20px 0 10px 0;
}
h3 {
	font-size: 20px;
	margin: 15px 0 5px 0;
}
h4 {
	font-size: 18px;
	margin: 12px 0 5px 0;
}









/*****
 * Footer
 ******************************************************************************/
footer {
	background-color: var(--basic-color);
	border-top: 3px solid black;
	position: relative;
	bottom: 0;
	padding: 15px 1% 15px 1%;
}
address > img {
	max-width: 140px;
}
address > span {
	font-weight: 600;
}
.footer-elem {
	display: inline-grid;
	width: 24%;
	min-width: 100px;
}
.footer-elem > img {
	width: 80px;
}





/*****
 * DEFAULT LINKS
 ******************************************************************************/
 a, a:visited, a:focus {
	text-decoration: none;
	color: var(--dark-gray);
    -o-transition: all .15s ease-out;
	-ms-transition: all .15s ease-out;
	-moz-transition: all .15s ease-out;
	-webkit-transition: all .15s ease-out;
	transition: all .15s ease-out;
}
a:hover {
    color: var(--basic-color);
}
/* header tel link:hover */
.tel a:hover {
	color: #f2f2f2;
}
/* Footer links */
#footer-container a {
	color: #f2f2f2;
	padding: 2px 0;
}
#footer-container a:hover {
	color: var(--dark-gray);
}
a.link-hci {
	font-size: 10pt;
}



/*****
 * JOBS FAB
 ******************************************************************************/
.fab-jobs {
	position: fixed;
	right: 25px;
	bottom: 25px;
	border-radius: 50%;
	background-color: var(--basic-color);
	width: 42px;
    height: 42px;
	border: 3px solid black;
    padding: 10px;
	z-index: 99;
}
.fab-jobs > img {
	margin: 4px;
}





/*****
 * NAVIGATION
 ******************************************************************************/
.topnav {
	overflow: hidden;
}
/* Style the links inside the navigation bar */
.topnav a {
	float: left;
	display: block;
	color: #fff;
	text-align: center;
	padding: 15px 14px 15px 14px; /* top + bottom + font-size = 50px */
	text-decoration: none;
	font-size: 18px;

	-o-transition: all .4s ease-out;
	-ms-transition: all .4s ease-out;
	-moz-transition: all .4s ease-out;
	-webkit-transition: all .4s ease-out;
	transition: all .4s ease-out;
}
.topnav a:hover,
.topnav.responsive a:hover {
	background-color: #eee;
	color: var(--dark-gray);
}
.topnav a.icon:hover {
	background: none;
}
.topnav a.active {
	background-color: var(--basic-color);
	color: white;
}
.topnav .icon {
	display: none;
} 

/* Burger icon */
.navigation-icon span {
	display: block;
	width: 30px;
	height: 4px;
	margin: 5px;
	background-color: #eee;
}





/*****
 * COOKIE CONSENT 
 ******************************************************************************/
.cookieconsent-com---nb-simple {
	max-width: 600px !important;
}
.cookieconsent-com---nb .cc-nb-text {
	font-size: 15px !important;
}
.cookieconsent-com---nb .cc-nb-main-container {
	padding: 2.5rem !important;
}





/*****
 * CLEARER 
 ******************************************************************************/
.clearer {
	visibility:hidden;
	overflow:hidden;
	height:0px;
	clear:both;
	padding:0px 0px 0px 0px;
	margin:0px 0px 0px 0px;
}








/*****
 * Basic Mobile Styles
 ******************************************************************************/
@media screen and (max-width: 750px) {
	body { font-size: 11pt; }
	h1 { font-size: 20px; }
	h2 { font-size: 18px; }
	h3 { font-size: 17px; }
	.topnav a:not(:first-child),
	.address {
		display: none;
	}
	.topnav a.icon {
		float: right;
		display: block;
		padding: 10px 15px 10px 15px;
	}
	.topnav.responsive {
		position: relative;
	}
	.topnav.responsive a.icon {
		position: absolute;
		right: 0;
		top: 0;
	}
	.topnav.responsive a {
		float: none;
		display: block;
		text-align: left;
	}
	#header-bar { width: calc(100% - 130px); }
	#logo { min-width: 150px; }
	#logo > a > img { width: 145px; }
	.footer-elem { width: 47%; }
	.gallerie > .item { width: 48%; }

	/* Portraits */
	.portrait { min-width: 171px; margin-right: 1% }
	.portrait-us,
	.portrait-el,
	.portrait-nn,
	.portrait-lo,
	.portrait-sz,
	.portrait-bg,
	.portrait-rvg {
		width: 140px;
		height: 140px;
		background-size: 140px;
	}
	.portrait-content {
		min-width: 150px;
		width: 90%;
		min-height: 100px;
	}
	/* hide middle item and go to 50/50 */
	.home-elements > .item.hideMobile {
		display: none;
	}
	.home-elements > .item {
		width: 47%;
	}
	/* Partner logos */
	.partner-logo {
		width: calc(50% - 14px); /* border + margin*2.5 */   /* 2er */
	}
	.partner-logo > img {
		width: 80%;
	}

	/* Cookie consent */
	.cookieconsent-com---nb .cc-nb-title {
		font-size: 20px !important;
	}
	.cookieconsent-com---nb .cc-nb-text {
		font-size: 14px !important;
	}
	.cookieconsent-com---nb .cc-nb-main-container {
		padding: 1.5rem !important;
	}
}
