/*
Theme Name:		Eschikofen
Theme URI: 		http://miggroup.ch
Version: 		1.04
Author: 		miggroup
Author URI: 	http://miggroup.ch
*/

@import "https://use.typekit.net/vww3yel.css";

* {
	font-smoothing: antialiased;
	-webkit-font-smoothing: antialiased;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

html, body {
	font-size: 14px;
	line-height: 130% !important;
	color: #444
}

@media (min-width: 1200px) {
	html, body {
		font-size: 20px !important;
		line-height: 130% !important
	}
}

@media (min-width: 1600px) {
	html, body {
		font-size: 22px !important;
		line-height: 130% !important
	}
}

/*
 * Text and navigation link styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */


strong {
	font-weight: 600;
}

.wp-site-blocks > .entry-content {
	/* padding: 5.75rem 0 */
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25ch;
}

a:hover,
a:focus {
	text-decoration-style: dashed;
}

a:active {
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item a:focus {
	text-decoration: underline;
	text-decoration-style: solid;
}

/*
 * Search and File Block button styles.
 * Necessary until the following issues are resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/36444
 * https://github.com/WordPress/gutenberg/issues/27760
 */

.wp-block-search__button,
.wp-block-file .wp-block-file__button {
	background-color: var(--wp--preset--color--primary);
	border-radius: 0;
	border: none;
	color: var(--wp--preset--color--background);
	font-size: var(--wp--preset--font-size--medium);
	padding: calc(.667em + 2px) calc(1.333em + 2px);
}

/*
 * Button hover styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

.wp-block-search__button:hover,
.wp-block-file .wp-block-file__button:hover,
.wp-block-button__link:hover {
	opacity: 0.90;
}


.wp-block-buttons {
	gap: 0.5rem !important;
	text-transform: uppercase;
	font-weight: 600 !important;
}

.wp-block-buttons a {
	font-weight: 600 !important;
}

/*
 * Alignment styles.
 * These rules are temporary, and should not be relied on or
 * modified too heavily by themes or plugins that build on
 * Twenty Twenty-Two. These are meant to be a precursor to
 * a global solution provided by the Block Editor.
 *
 * Relevant issues:
 * https://github.com/WordPress/gutenberg/issues/35607
 * https://github.com/WordPress/gutenberg/issues/35884
 */

.wp-site-blocks,
body > .is-root-container,
.edit-post-visual-editor__post-title-wrapper,
.wp-block-group.alignfull,
.wp-block-group.has-background,
.wp-block-cover.alignfull,
.is-root-container .wp-block[data-align="full"] > .wp-block-group,
.is-root-container .wp-block[data-align="full"] > .wp-block-cover {

}

.wp-site-blocks .alignfull,
.wp-site-blocks > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-cover,
.wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-template-part > .wp-block-cover,
body > .is-root-container > .wp-block-cover,
body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
body > .is-root-container > .wp-block-template-part > .wp-block-cover,
.is-root-container .wp-block[data-align="full"] {

	width: 100%;
}

/* Blocks inside columns don't have negative margins. */
.wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
.is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
/* We also want to avoid stacking negative margins. */
.wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
.is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {

	width: inherit;
}

/*
 * Responsive menu container padding.
 * This ensures the responsive container inherits the same
 * spacing defined above. This behavior may be built into
 * the Block Editor in the future.
 */

.wp-block-navigation__responsive-container.is-menu-open {
	background: url(assets/images/header-bg.png?v=2) no-repeat center 80%, center;
	background-size: auto 170%;
	margin-left: 20%;
	padding-top: var(--wp--custom--spacing--outer);
	padding-bottom: var(--wp--custom--spacing--large);
	padding-right: var(--wp--custom--spacing--outer);
	padding-left: var(--wp--custom--spacing--outer);
}

@media (max-width: 599px) {
	.wp-block-navigation__responsive-container.is-menu-open {
		margin-left: 0;
	}
}



/* THEME */

html, body {
	overflow-x: hidden;
}

header nav {
	position: fixed !important;
	z-index: 99;
	right: 0;
	top: 0;
	padding: 1.5rem;
	background: #fff;
}

	/* .is-scrolling .wp-block-navigation__responsive-container-open {
		background: var(--wp--preset--color--background) !important;
		color: var(--wp--preset--color--secondary) !important
	} */

	header .wp-block-navigation__responsive-container-close svg,
	header .wp-block-navigation__responsive-container-open svg {
		width: 2rem;
		height: 2rem;
	}

	.wp-block-navigation__responsive-container-close {
		position: fixed;
		top: 0;
		right: 0.75rem;
		padding: 1.5rem;
	}

	.wp-block-navigation__responsive-container,
	.wp-block-group.has-primary-background-color {
		font-family: var(--wp--preset--font-family--headlines)
		/* background: url(assets/images/nav.png) no-repeat center;
		background-size: cover; */
	}

	.wp-block-navigation__responsive-container.is-menu-open {
		flex-direction: row;
		align-items: center;
	}

	header nav ul li {
		font-size: 1.8rem;
		line-height: 90%;
		text-transform: uppercase;
	}

		@media (min-width: 600px) {
			header nav ul li {
				font-size: 2.7rem;
				line-height: 90%;
			}
		}

	header nav ul li a {
		text-decoration: none !important;
		padding: 0 1em !important;
		display: block !important;
	}

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


header .wp-block-site-logo {
	z-index: 9;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 0;
}

header .wp-block-site-logo img {
	width: 10rem !important;
	height: auto !important;
}

@media (min-width: 600px) {
	header .wp-block-site-logo img {
		width: 16rem !important;
		height: auto !important;
	}
}

.wp-block-cover.is-position-bottom-center h1 img {
	border-radius: 0.25em;
	max-width: 90%;
	height: auto;

}

@media (min-width: 600px) {
	.wp-block-cover.is-position-bottom-center h1 {
		transform: translateY(50%);
	}
}

header .wp-block-cover {
	width: 100vw !important
}

h1,
h2,
h3,
h4,
h5 {
	text-transform: uppercase;
	word-break: normal;
	font-weight: normal;

}

h4,
h5 {
	font-family: 'montserrat', sans-serif;
	font-weight: 600;
}

@media (max-width: 600px) {
	h1, h2 {
		font-size: 2rem;
		line-height: 120%;
		font-weight: normal;
	}

	h3 {
		font-size: 1.4rem;
		line-height: 120%;
	}
}

h2 {
	box-sizing: border-box;
	margin-bottom: 0.8em !important
}

h4 {
	position: relative;
}

h4::before {
	content: "";
	display: block;
	height: 0.7em;
	width: 30vw;
	background: var(--wp--preset--color--secondary);
	position: absolute;
	right: calc(100% + 2rem);
	top: 0.2em;
}

@media (max-width: 599px) {
	h4::before {
		right: calc(100% + 1rem);
	}
}

h4.has-primary-color::before,
.has-primary-color h4::before,
h4.has-primary-color::after,
.has-primary-color h4::after {
background: var(--wp--preset--color--primary) !important;
}

.pull-up h2 {
	padding-top: 1.5em;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
	padding-left: 1em !important;
	text-shadow: 0 0 1rem rgba(0,0,0,0.35);
}

	.pull-up h2::before {
		background: #fff;
		transform: translateY(0) scaleY(1.2);
	}

h4,
h5 {
	margin: 1.5em 0 0 0;
}

h5 {
	margin-bottom: 0 !important
}

h5+p {
	margin-top: 0 !important;
}


.wp-site-blocks ul {
	margin: 0
}

.wp-block-group > * {
	z-index: 2;
	position: relative;
}

.has-medium-font-size { font-size: 1.27rem !important; line-height: 120% !important; }

.entry-content > .wp-block-group,
.entry-content > .wp-block-cover {
	margin: 0 auto !important
}


.entry-content > .wp-block-cover:first-child {
	height: calc(60vh - 3rem);
}

.home .entry-content > .wp-block-cover:first-child {
	height: calc(100vh - 3rem);
}

@media (max-width: 599px) {
	.entry-content > .wp-block-cover:first-child {
		height: calc(60vh - 3rem);
	}
}

.entry-content > .wp-block-cover {
	min-height: 50vh !important;
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.entry-content > .wp-block-group {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem
}


.pull-up {
	position: absolute;
	width: 100%;
	left: 0;
	transform: translateY(-100%);
	z-index: 9
}

footer {
	padding: 1.5rem;
}

footer > .wp-block-group {
	padding-top: 5rem;
	padding-bottom: 5rem;
	background: url(assets/images/footer-bg.png) no-repeat top right;
	background-size: auto 100%;
}

footer .logo-it3 {
	width: 8.5rem !important;
	height: auto;
}

.wp-block-image.alignfull {
	width: 100% !important;
}

.wp-block-image.lageplan  {
	z-index: 0;
	position: absolute;
	transform: translateX(-19%) translateY(-73%);
}

@media (max-width: 781px) {
	.wp-block-image.lageplan  {
		z-index: 0;
		position: static;
		transform: translateX(0);
		margin-bottom: -20%
	}
}

.wp-block-image.lageplan img {
	width: 46rem;
	height: auto;
	max-width: 90vw;
}


ul.wp-block-post-template {

}

ul.wp-block-post-template li {
	margin: 0
}


.wohnungs-item {
	display: flex;
	flex-flow: row wrap;
	font-size: clamp(14px, 0.9rem, 20px);
	line-height: 120%;
	border-bottom: 1px solid #ccc
}

	@media (max-width: 1800px) {
		.wohnungs-item {
			font-size: 15px;
		}
	}

	.wohnungs-item.header {
		font-weight: bold;
	}


	.page-id-40 .wp-container-8 {
		overflow-x: auto;

	}

	.wohnungs-item {
		min-width: 35rem;
	}

	.current-page–wohnungsuebersicht strong {
		font-weight: bold;
	}



		.wohnungs-item > * {
			flex: 2;
			padding: 0.5rem 0.25rem;
			width: auto;
		}

		.wohnungs-item > .field-nr,
		.wohnungs-item > .field-etage {
			flex: 1
		}

		.wohnungs-item > .field-nk,
		.wohnungs-item > .field-status {
			flex: 1.5
		}



	ul.wp-block-post-template li:nth-child(even) {

	}


.wp-block-query {
	margin-top: 0 !important;
	margin-bottom: 3rem !important
}


.title-fink::after,
.title-schwalbe::after,
.title-reiher::after,
.title-specht::after {
	content: "";
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	transform: translateX(1rem) translateY(-10%);
	position: absolute;
}


.title-fink::after {
	background: url(assets/images/fink.svg) no-repeat center;
	background-size: contain
}

.title-schwalbe::after {
	background: url(assets/images/schwalbe.svg) no-repeat center;
	background-size: contain;
	width: 2.5em;
	height: 2.5em;
	transform: translateX(1rem) translateY(-20%);
}

.title-reiher::after {
	background: url(assets/images/reiher.svg) no-repeat center;
	background-size: contain;
	width: 2.75em;
	height: 2.75em;
	transform: translateX(1rem) translateY(-10%);
}

.title-specht::after {
	background: url(assets/images/specht.svg) no-repeat center;
	background-size: contain;
	width: 1.75em;
	height: 1.75em;
	transform: translateX(1rem) translateY(-10%);
}

#slider-flache,
#slider-zimmer,
#slider-miete {
	margin-top: 2.5rem
}

.noUi-horizontal {
	height: 0.25rem !important;
	border-radius: 0 !important;
	border: 0 !important;
	box-shadow: none !important
}

.noUi-tooltip {
	background: none !important;
	border: 0 !important;
	color: #006978;
	padding: 0
}

.noUi-connect {
	background: #006978;
	border-radius: 0 !important;
}


.noUi-handle {
	width: 0.25rem !important;
	height: 1rem !important;
	background: #006978;
	border: 0;
	border-radius: 0 !important;
	box-shadow: none !important;
	right: -0.125rem !important;
}

	.noUi-handle::before,
	.noUi-handle::after {
		display: none;
	}


	.noUi-handle-lower .noUi-tooltip {
		left: 0;
		transform: translate(0, 0);
		margin-left: -0.2rem;
	}

	.noUi-handle-upper .noUi-tooltip {
		left: 0;
		transform: translate(-100%, 0);
		margin-left: 0.3rem;
	}


form.wpcf7-form {
	max-width: 40rem;
	color: var(--wp--preset--color--secondary)
}

	form.wpcf7-form input[type='text'],
	form.wpcf7-form input[type='email'],
	form.wpcf7-form input[type='submit'],
	form.wpcf7-form textarea,
	form.wpcf7-form select {
		apperance: none;
		-webkit-apperance: none;
		border:0;
		background: rgba(176, 117, 99, 0.2);
		font: inherit;
		margin: 0 0 0.5rem 0;
		padding: 0.5rem 0.5rem 1rem 0.5rem;
		outline: none;
		width: 100%;
		border: 2px solid #fff;
		box-sizing: border-box;
		font-weight: normal !important;
	}

		form.wpcf7-form input[type='text']:focus,
		form.wpcf7-form input[type='email']:focus,
		form.wpcf7-form textarea:focus,
		form.wpcf7-form select:focus {
			border: 2px solid var(--wp--preset--color--secondary);
		}

	form.wpcf7-form *::placeholder {
		color: var(--wp--preset--color--secondary);
	}

	form.wpcf7-form select {
		color: var(--wp--preset--color--secondary);
	}

	form.wpcf7-form textarea {
		height: 6rem
	}

	.interested-in .wpcf7-checkbox {
		display: flex;
		flex-flow: row wrap;
	}

		.interested-in .wpcf7-checkbox > * {
			width: 100%;
			margin: 0;
		}

	form.wpcf7-form input[type='submit'] {
		background: var(--wp--preset--color--secondary);
		border-color: var(--wp--preset--color--secondary);
		color: #fff;
		text-transform: uppercase;
		font-weight: bold;
		margin-top: 1rem
	}


#stoerer {
	position: absolute;
	width: 6rem;
	height: 6rem;
	bottom: 0;
	background: #fff url(assets/images/stoerer.png) no-repeat center;
	background-size: cover;
	right: 2rem;
	transform: translateY(50%);
	border-radius: 100%;
	box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.4);
}


	@media (min-width: 600px) {
		#stoerer {
			width: 10rem;
			height: 10rem;
			right: 4rem;
		}
	}


.entry-content {
	margin-top: 0 !important;
	padding: 1.5rem;
}

.current-page–wohnungsuebersicht .entry-content > .wp-block-group:first-child > h2:first-child {
	padding-bottom: 0;
}

.current-page–wohnungsuebersicht .entry-content > .wp-block-group:first-child > h2:first-child:last-child {
	margin-bottom: 0 !important;
}

.current-page–wohnungsuebersicht .entry-content > .wp-block-group:first-child > h2:first-child::before {
	transform: translateY(-1em) scaleY(3);
}

.wp-block-template-part {
	margin-top: 0
}


footer a {
	color: inherit;
	text-decoration: none;
}


.building-map.fixed {
	position: fixed;
	top: 0;
	z-index: 9999;
}

	@media (max-width: 781px) {
		.building-map.fixed {
			background: #fff !important;
			/* margin-left: -1.5rem; */
			left: 0;
			width: 100vw !important;
			box-shadow: 0 0 1rem rgba(0,0,0,0.2);
		}

		.building-map img {
			max-width: 250px;
			margin: 0 auto;
			display: block;
			transform: translateX(-1rem);
		}

		.building-map.fixed img {
			margin: 0 auto;
			display: block;
			background: #fff;
		}
	}


#interactive-map {
	width: 100%;
	height: 50vw;
	min-height: 400px;
}


.wp-block-media-text__content {
	padding-right: 25% !important;
	padding-left: 3rem !important;
}

.has-media-on-the-right .wp-block-media-text__content {
	padding-left: 25% !important;
	padding-right: 3rem !important
}

@media (max-width: 599px) {
	.wp-block-media-text__content,
	.has-media-on-the-right .wp-block-media-text__content {
		padding-left: 2.5rem !important;
		padding-right: 1rem !important
	}
}


.is-position-top-right .wp-block-cover__inner-container {
	width: 80% !important;
	max-width: 78rem !important;
	margin: 0 auto !important;
	/* width: 55% !important; */
}

.is-position-top-right .wp-block-cover__inner-container > * {
	padding-left: 45%;
}

	@media (max-width: 599px) {
		.is-position-top-right .wp-block-cover__inner-container > * {
			padding-left: 0;
		}
	}

	.is-position-top-right .wp-block-cover__inner-container h4::before {
		display: none;
	}

	.is-position-top-right .wp-block-cover__inner-container h4::after {
		content: "";
		display: inline-block;
		position: absolute;
		height: 0.7em;
		width: 50vw;
		bottom: 0.2rem;
		margin-left: 2rem;
		background: var(--wp--preset--color--secondary);
	}

		@media (max-width: 599px) {
			.is-position-top-right .wp-block-cover__inner-container h4::after {
				margin-left: 1rem;
			}
		}

.is-map {
	position: relative;
}
.is-map img {
	position: absolute;
	top: -2.5rem;
	right: 0;
	width: 64%;
	z-index: -1
}


	@media (max-width: 599px) {
		.is-map img {
			position: relative;
			width: 100%;
			margin-bottom: -6rem
		}

		.is-map .wp-block-media-text__content {
			margin-top: 3rem
		}
	}


	.is-style-inset,
	footer > .wp-block-group {
		padding-left: 20%;
	}

	@media (max-width: 599px) {
		.is-style-inset,
		footer > .wp-block-group {
			padding-left: 10%;
		}
	}


.wp-block-image.alignright {
	width: 50%;
	margin-bottom: 2rem
}

@media (max-width: 599px) {
	.wp-block-image.alignright {
		width: 100%;
	}
}

.wp-block-image.alignright img {
	width: 100%;
	height: auto;
}


.footer-logo {
	width: 11rem;
}

.footer-logo img {
	width: 100%;
	height: auto;
}

@media (max-width: 781px) {
	.footer-logo {
		margin: 0 auto;
	}

	footer {
		text-align: center;
	}
}

.wp-block-navigation-item__content {
	text-align: center;
}


table {
	font-size: 0.9rem;
	line-height: 120%;
}

	table tr td {
		padding: 0.5rem 0.25rem !important;
		border: none !important;
		border-bottom: 1px solid #ccc !important;
	}


@media (max-width: 699px) {
	.bild-wald,
	.bild-wald * {
		color: #fff !important
	}

	.bild-wald h4::after {
		background: #fff !important
	}

	.bild-wald .wp-block-button__link {
		color: var(--wp--preset--color--primary) !important;
		background: #fff;
	}
}

.wp-block-gallery {
	margin-left: 0 !important;
	margin-right: 0 !important;
}



.stoerer {
	position: absolute;
	right: 0;
	bottom: 40%;
	height: auto;
	max-width: 60%;
}

@media (min-width: 1500px) {
	.stoerer {
		bottom: 0
	}
}