/*
Theme Name:		Guggeien
Theme URI: 		http://miggroup.ch
Version: 		1.06
Author: 		miggroup
Author URI: 	http://miggroup.ch
*/

@import url("assets/fonts/stylesheet.css");
@import url("assets/css/flickity.css");
@import url("https://use.typekit.net/skg3vvf.css");

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

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

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

@media (min-width: 1600px) {
	html, body {
		font-size: 18px !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
 */



.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;
}

/*
 * 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 {
	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);
}

.wp-block-navigation__responsive-container.is-menu-open::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url(assets/images/g.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: auto 90%;
	opacity: 0.2;
}



/* THEME */

html, body {
	overflow-x: hidden;
}

header nav {
	position: fixed !important;
	z-index: 99;
	right: 3rem;
	top: 1.5rem;

}

	.is-scrolling .wp-block-navigation__responsive-container-open,
	 .wp-block-navigation__responsive-container-open {
		background: none !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: 1.9rem;
		right: 3rem;
		transform: translateY(-25%);
	}



	.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;
		font-weight: bold;
		text-align: center;
	}

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

			}
		}

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

	header nav ul li a:hover {
		color: var(--wp--preset--color--secondary) !important
	}

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;
	}
}

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

h6 {
	font-size: 1.5em;
	line-height: 120%;
	text-transform: uppercase;
}

	.frontend h6 {
		position: absolute;
		top: 6rem;
		left: 1rem;
		transform: rotate(-90deg) translateX(-100%);
		transform-origin: top left;
		z-index: 9;
	}

	.wp-block-group.inset {
		padding-left: 5em !important;
	}

h1, h2 {
	font-size: 5.5rem;
	line-height: 80%;
	margin-block-start: 0;
	font-family: var(--wp--preset--font-family--cursive-headlines);
	font-weight: normal;
	margin-bottom: 0.5em;
}

h1 mark, h2 mark {
	font-style: normal !important;
	color: #c97e7a !important;
}

h3 {
	font-size: 1.5rem;
	line-height: 120%;
	font-weight: 700;

}

h4 {
	font-size: 1.125rem;
	line-height: 120%;
	font-weight: 700;
}


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

h2 {
	box-sizing: border-box;
	padding-bottom: 0;
	padding-left: 0;

	}

	h2 mark {
		margin-left: 1.8em;
	}

.lage h2 mark {
	margin-left: 2em;
}

.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 {
	margin: 1.5em 0 0 0;
}

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

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



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

.entry-content > .wp-block-cover:first-child::after {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: url(assets/images/g.svg) no-repeat center right;
	background-size: auto 110%;
	pointer-events: none;
	opacity: 0.5;
	transform: translateX(2%);
}


.frontend .entry-content > .wp-block-cover:not(:first-child) {
	opacity: 0;
	transition: all 0.5s ease-out;
	transition-delay: 0.5s;
}

	.frontend .entry-content > .wp-block-cover.is-in-viewport:not(:first-child) {
		opacity: 1;
	}

	.frontend .entry-content > .wp-block-cover:not(:first-child) .wp-block-cover__background {
		transform-origin: right;
		transform: scaleX(0%);
		transition: all 0.5s ease-out;
		transition-delay: 1s;
		opacity: 0;
	}

	.frontend .entry-content > .wp-block-cover.is-in-viewport:not(:first-child) .wp-block-cover__background {
		transform: scaleX(100%);
		opacity: 1;
	}

	.frontend .entry-content > .wp-block-cover:not(:first-child) .wp-block-cover__inner-container {
		transition: all 0.5s ease-out;
		transition-delay: 1.5s;
		opacity: 0;
	}

	.frontend .entry-content > .wp-block-cover.is-in-viewport:not(:first-child) .wp-block-cover__inner-container {
		opacity: 1;
	}


.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open {
	transform: scaleX(170%);
	position: relative;
}

.is-scrolling .wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open::before {
	content: "";
	display: block;
	position: absolute;
	width: 2.5em;
	height: 4.25em;
	background: #fff;
	z-index: -1;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-radius: 100%;
	box-shadow: 0 0.5em 1em rgba(0,0,0,0.2);
}


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

.entry-content > .wp-block-group.is-style-slider:last-child {
	padding-bottom: 1rem !important;
}

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

.entry-content > .wp-block-cover .wp-block-cover__inner-container {
	padding-top: 5rem;
	padding-bottom: 5rem
}

.entry-content > .wp-block-group.slider {
	padding: 0 !important
}

.wp-block-cover .wp-block-cover__background {
	background: rgb(49,97,97);
	background: linear-gradient(90deg, rgba(49,97,97,0) 0%, rgba(49,97,97,1) 80%) !important;
	opacity: 1;
}


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



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(-25%) translateY(-60%);
}

@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: 0.9rem;
	line-height: 120%;
}

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

	.wohnungs-item > * {
		flex: 2;
		padding: 0.25rem;
		width: auto;
		word-break: keep-all;
	}

	.wohnungs-item > .field-etage,
	.wohnungs-item > .field-art {
		flex: 3;
	}

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

	.field-flache,
	.field-kaufpreis {
		text-align: right;
		padding-right: 0.5em;
	}

	@media (max-width: 599px) {
		.mobile-scroll {
			overflow-x: scroll;
		}

		.mobile-scroll > * {
			min-width: 550px;
		}


	}

	ul.wp-block-post-template li:nth-child(even) {
		background: #E7F0F1
	}


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



#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;
	}

	.left-realigned .noUi-handle-lower .noUi-tooltip {
		transform: translateX(-100%);
	}

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

	.right-realigned .noUi-handle-upper .noUi-tooltip {
		transform: translateX(0);
	}


.frontend .wp-block-group h2 {
	transform: translateX(4em);
	opacity: 0;
	transition: all 0.5s ease-in-out;
	transition-delay: 0.5s;
}

.frontend .wp-block-group h2 mark {
	margin-left: -2em !important;
	opacity: 0;
	transition: all 0.5s ease-in-out;
	transition-delay: 0.75s;
}

.frontend .wp-block-group h2::before {
	height: 0;
	transition: all 0.75s ease-in-out;
}

.frontend .wp-block-group.is-in-viewport h2::before {
	height: 100%;
}

.frontend .wp-block-group.is-in-viewport h2 {
	transform: translateX(0);
	opacity: 1;
}

.frontend .wp-block-group.is-in-viewport h2 mark {
	margin-left: 1.8em !important;
	opacity: 1;
}

form {
	display: flex;
	flex-flow: row wrap;
	margin-left: -0.5rem;
}


form .form-row {
	width: 100%;
	margin-bottom: 0.2rem !important;
	display: block;
}

form .column {
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 600px) {
	form .column {
		width: calc(50% - 0.6rem);
	}
}

	form .column.left {
		margin-right: auto;
	}


form .interested-in {
	display: flex;
	flex-flow: row-wrap;

}


form.wpcf7-form {
	width: 100%%;

	margin: 0;
}

@media (min-width: 600px) {
	form.wpcf7-form {
		width: 80%;
	}
}
	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 {
		appearance: none;
		-webkit-appearance: none;
		border:0;
		background: #fff;
		font: inherit;
		font-size: 0.8rem;
		margin: 0 0 0.4rem 0;
		padding: 0.4rem 0.4rem 1rem 0.4rem;
		outline: none;
		width: 100%;
		border: 2px solid #fff;
		box-sizing: border-box;
	}

		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 #000000;
		}

	form.wpcf7-form *::placeholder {
		color: #000000;
	}

	form.wpcf7-form select {
		color: #000000;
	}

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

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

	form.wpcf7-form input[type='submit'] {
		background: var(--wp--preset--color--secondary) !important;
		border-color: var(--wp--preset--color--secondary) !important;
		color: #fff;
		text-transform: uppercase;
		font-weight: bold;
		font-size: 2rem;
		line-height: 100%;
		margin-top: 2rem;
		padding-top: 0.4rem !important;
		padding-bottom: 0.4rem !important;
		box-shadow: 0.3rem 0.3rem 0.2rem rgba(0,0,0,0.15);
	}




.entry-content {
	margin-top: 0 !important
}

.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;
	background: #f8f8f8;
}

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


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


.flickity-button {
	position: absolute;
	top: 50%;
	color: var(--wp--preset--color--primary)
}

.wp-block-group .slider{
	left: -2.375em;
	width: 100vw;
	margin-block-start: 0 !important;
	margin-top: -2em !important;
}


	.flickity-slider > * {
		width: 50%;
		height: auto;
		padding: 0.5em;
	}

		@media (max-width: 499px) {
			.flickity-slider > * {
				width: 70%;
			}
		}

	.flickity-slider img {
		width: 100%;
		height: auto;
	}

	.flickity-page-dots {
		bottom: 4em;
	}

		.flickity-page-dots li {
			width: 0.75em !important;
			height: 0.75em !important;
			border-radius: 999px !important;
			margin: 5px !important;
			background: #fff !important;
		}


.has-text-color > a,
mark > a {
	color: inherit !important;
}

a.wp-block-button__link {
	min-width: 12.5em;
	text-transform: uppercase;
	font-weight: 700;
	box-shadow: 0.3em 0.3em 0.2em rgba(0,0,0,0.15);
}



p.has-large-font-size {
	margin-bottom: 2em !important;
}


.wp-block-media-text .wp-block-media-text__content {
	padding-left: 0;
}


.map {
	width: 100%;
	height: auto;
	transform:  scale(150%);
	transform-origin: top left;
	/* margin-bottom: -9rem !important; */
}


#plaene {
	z-index: 9;
	position: relative;
}


.stoerer {
	width: 10em;
	height: auto;
	top: -3rem;
	transform: translateY(-45%);
}



.frontend .stoerer {
	opacity: 0;
	transition: all 0.25s ease-out;
	transition-delay: 0.5s;
	transform: translateY(-45%) scale(0);
}

	.frontend .is-in-viewport .stoerer {
		opacity: 1;
		transform: translateY(-45%) scale(1);
	}

	@media (max-width: 499px) {
		.frontend .is-in-viewport .stoerer {
			transform: translateY(-45%) scale(1.3);
		}
	}


.field-etage {
	white-space: nowrap;
}


#lage .wp-block-media-text.is-image-fill .wp-block-media-text__media {
	margin-top: -2rem;
	height: calc(100% + 10rem);
}
