/*
Theme Name:		Viadme
Theme URI: 		http://mohnrot.ch
Version: 		1.0
Author: 		mohnrot
Author URI: 	http://mohnrot.ch
*/

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

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


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


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



/* WEBSITE */


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


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

html, body {
	font-size: 14px;
	line-height: 120% !important;
	overflow-x: hidden;

}

@media (min-width: 1000px) {
	html, body {
		font-size: 17px !important;
		line-height: 120% !important
	}
}


.wp-block-group {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
	padding-top:5rem;
	padding-bottom:5rem;
}

.entry-content,
footer {margin-block-start: 0 !important;}



a, a:link, a:visited, a:hover, a:active {
 color: inherit ;
}


body {
	padding-top: 7.3rem;
}


header {
	box-shadow: 0 0 0.5rem rgba(0,0,0,0.2);
	z-index: 9;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
}

	header .wp-block-site-logo {
		margin-bottom: 0.75rem;
	}

	header .wp-block-group {
		padding-top: 2.5rem;
		padding-bottom: 0.75rem;
	}

	@media (max-width: 599px) {
		header .wp-block-columns  {
			display: flex !important;
			flex-flow: row wrap !important;
			gap: 0 !important;
			position: relative;
		}

		header .wp-block-columns .wp-block-column {
			flex-basis: 50% !important;
		}

		header .wp-block-columns .wp-block-column:nth-child(1) nav {
			position: absolute;
			top: 0;
			left: 0;
			width: 15% !important;
			margin-top: 1rem;
		}

		header .wp-block-navigation__responsive-container-open  {
			transform: scale(1.2) scaleX(150%);
			color: var(--wp--preset--color--primary) !important;
		}

		header .wp-block-columns .wp-block-column:nth-child(1) nav ul li {
			font-size: 2rem;
			line-height: 120%;
			margin-bottom: 0.25rem;
		}

		header .wp-block-columns .wp-block-column:nth-child(1) {
			flex-basis: 80% !important;
			width: 80% !important;
		}
	}

nav {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 100%;
}

	header nav ul {
		gap: 0 !important
	}

	@media (min-width: 600px) {
		header nav .is-home a {
			padding: 0;
			display: inline-block;
			text-indent: -1000px;
			overflow: hidden;
			width: 1rem !important;
			height: 1rem;
			background: url(assets/images/home.svg) no-repeat center;
			background-size: contain;
			margin-right: 1rem;
		}
	}

.entry-content > .wp-block-cover:first-child {
	position: relative;
	min-height: 0;
	aspect-ratio: 5 / 2;
}

.entry-content > .wp-block-cover:first-child::before {
	content: "";
	position: absolute;
	width: 50vw;
	left: 0;
	top: 0;
	transform: translateX(-100%);
	background: #dee075;
	height: 100%;
}

.entry-content > .wp-block-cover:first-child::after {
	content: "";
	position: absolute;
	width: 50vw;
	right: 0;
	top: 0;
	transform: translateX(100%);
	background: #00abb8;
	height: 100%;
}

h1 {
	padding-top: 1rem;
}

h1 + h2 {
	margin-block-start: 0 !important;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
	margin-top: 0;
	margin-block-start: 0;
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child {
	margin-bottom: 0;
	margin-block-end: 0;
}

.is-font-larger {
	font-size: 1.2rem;
	line-height: 120%;
}

blockquote,
.has-large-font-size {
	font-size: 1.5rem !important;
	line-height: 120% !important;
	padding-left: 0 !important;
	font-weight: 400 !important;
}

	blockquote cite {
		font-size: 1rem !important;
		line-height: 100% !important;
		font-weight: 400;
	}

	blockquote p {
		padding-bottom: 0rem !important;
		margin-bottom: 1rem;
	}






form {
	display: flex;
	flex-flow: row wrap;
	margin-left: -0.5rem;
	width: calc(100% + 1rem);
}

	form .form-row {
		width: 100%;
	}

@media (mi-width: 600px) {
	form .form-row {
		display: flex;
		flex-flow: row wrap;
		gap: 1rem;
	}

	form .form-row > * {
		flex: 1;
	}
}


	form input[type='text'],
	form input[type='email'],
	form input[type='tel'],
	form input[type='number'],
	form input[type='submit'],
	form textarea {
		background: #87cdd5;
		color: #FFF
		appearance: none;
		-webkit-appearance: none;
		border: 2px solid #87cdd5;
		padding: 0.5rem 1rem;
		font: inherit;
		width: calc(100% - 2rem);
		outline: none;
		transition: all 0.2s ease-in-out;
		margin-bottom: 0.5rem;
	}

	form input::placeholder,
	form textarea::placeholder {
		color: #FFF;
	}

	form input[type='text']:focus,
	form input[type='email']:focus,
	form input[type='tel']:focus,
	form input[type='number']:focus,
	form input[type='submit']:focus,
	form textarea:focus {
		border: 2px solid #87cdd5;
	}

	form textarea {
		height: 9rem;
	}

	form input[type='submit'] {
		flex: 0;
		background: #dee075;
		border: 2px solid #dee075;
		color: #00abb8;
		font-weight: bold;
		font-family: futura-pt-bold, sans-serif;
		width: auto !important;
		font-size: 1.2rem;
		line-height: 120%;
		flex-basis: 0;
		padding: 1rem 2rem;
	}

	.hidden {
		display: none;
	}


footer div  {
	padding-top: 0.5rem !important;
	padding-bottom: 0.5rem !important;
}


strong, b {
	font-family: futura-pt-bold, sans-serif;
	font-weight: bold;
}


@media (max-width: 781px) {
	.girl img {
		position: absolute;
		width: auto;
		max-width: 25%;
		max-height: 250px;
		right: 0;
		transform: translateX(-1rem) translateY(-100%);
	}
}

.wp-block-media-text {
	display: flex;
	flex-flow: row wrap;
}

.wp-block-media-text__media {
	width: 40%;
}

.wp-block-media-text__content {
	width: 60%;
	box-sizing: border-box;
}

.entry-content ul {
	padding-left: 1rem;
	margin-block-start: 0.5rem;
}
