/*
Theme Name: ST Simon
Author: Kollektiv13
Author URI: https://kollektiv13.eu/
Version: 2.3.0
Text Domain: st-simon
*/


/* Layout */
* {
	box-sizing: border-box;
}

html {
	max-width: 1920px;
	margin: 0 auto;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	box-shadow: 0 0 1em lightgrey;
}

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main {
	flex-grow: 1;
}

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	width: 90%;
}

/* Tables */
.is-style-blank table {
	width: auto;
}

.is-style-blank td {
	border: none;
	padding: 0;
	vertical-align: top;
}

.is-style-blank td + td {
	padding-left: .5em;
}

/* Forms */
input, textarea, select {
	font-size: 1rem;
	padding: .5em;
}

.wpcf7-form p > label {
	display: block;
	padding: .5em 0;
}

.wpcf7-form-control-wrap {
	display: block;
}

.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
	display: block;
	width: 100%;
}

.wpcf7-list-item {
	margin-left: 0;
}

@media screen and (min-width: 768px) {
	.wpcf7 .group {
		margin: 1em 0;
		display: flex;
		gap: 2em;
	}

	.wpcf7 .group > * {
		margin-top: 0;
		margin-bottom: 0;
		flex-grow: 1;
	}
}

/* Custom */
:root {
	--sts-radius: 1em;
}

ul.wp-block-navigation-submenu {
	border-radius: var(--sts-radius);
	border: none;
	box-shadow: 0 .5em 1em darkgrey;
}

ul.wp-block-navigation-submenu .wp-block-navigation-item {
	background: none;
}

.wp-block-media-text {
	gap: 2em;
}

.wp-block-media-text > .wp-block-media-text__content {
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.wp-block-media-text > .wp-block-media-text__content > * {
	margin-top: 0;
	margin-bottom: 0;
}

.wp-block-media-text img {
	border-radius: var(--sts-radius);
}

.wp-block-image img {
	border-radius: var(--sts-radius);
}

.is-style-box {
	background: var(--wp--preset--color--cyan-light);
	border-radius: var(--sts-radius);
	padding: var(--wp--preset--spacing--70);
	margin-top: var(--wp--preset--spacing--70);
	margin-bottom: var(--wp--preset--spacing--70);
}

.is-style-custom-list {
	list-style-type: none;
}

.is-style-custom-list li {
	margin: 1em 0;
	padding-left: 2.6em;
	background: url('./assets/images/Logoelement.svg') left .5em/2em no-repeat;
}

.is-style-custom-list strong {
	color: var(--wp--preset--color--darkblue);
}

.wp-block-post-content {
	padding-bottom: var(--wp--preset--spacing--70);
}

.wp-block-post-content > .alignfull:first-child {
	margin-top: calc(var(--wp--preset--spacing--60) * -1);
}

.wp-block-post-content {
	background: url('./assets/images/Muster.svg') 120% 95%/40em no-repeat;
}

.bleed {
	overflow: hidden;
}

.bleed > .wp-block-group {
	position: relative;
}

.bleed > .wp-block-group::after {
	content: '';
	display: block;
	height: 100%;
	width: 50%;
	position: absolute;
	top: 0;
	left: calc(100% + 1em);
	background: var(--wp--preset--color--darkblue);
	border-radius: var(--sts-radius);
}

.bleed.left > .wp-block-group::after {
	left: unset;
	right: calc(100% + 1em);
}
/* Akkordeon */
.is-expandable {
	margin: 2px 0;
	border-radius: .7em;
}

.is-expandable .title {
	background: var(--wp--preset--color--cyan-light);
	margin: 0 !important;
	border-radius: .7em;
}