/*
Theme Name: Metrom
Author: Kollektiv13
Author URI: https://kollektiv13.eu/
Version: 2.3.0
Text Domain: metrom
*/


/* 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 */

.wp-block-details {
	margin-top: 0;
	border-bottom: 1px solid rgb(217, 217, 217);
	padding-bottom: 1px;
}

.wp-block-details summary {
	padding-block: var(--wp--preset--spacing--40);
}

.wp-block-details summary::marker {
	display: none;
}

.wp-block-details p {
	margin-block: 1em !important;
}

.wpml-language-switcher-block.is-layout-flex {
	width: unset !important;
	font-size: .8889em;
}

header a {
	text-decoration: none;
}

.wp-block-k13-popup .content {
	background: #A8AFB7 url("assets/Border.svg") 2em top no-repeat;
	color: white; 
	width: 1200px;
	height: 800px;
	padding-inline: 10em;
	padding-top: 2em;
	display: flex;
	flex-direction: column;
}

div[class*="page-"]:not(.active) {
	display: none;
}

.editor-styles-wrapper div[class*="page-"] {
	display: block;
}

.question {
	font-size: larger;
	font-weight: 600;
	color: #ffffff;
	position: relative;
}

.question::before {
	content: '';
	display: block;
	position: absolute;
	right: 100%;
	width: 1.6em;
	height: 1.4em;
	background: url("assets/Polylinie.png") left center/1.4em no-repeat;
}

.subline {
	font-size: smaller;
	color: #ffffff;
	margin-top: .2em;
}

.waben {
	grid-template-columns: none;
	grid-template-areas: 
		". . a . ."
		". b a c ."
		"d b e c f"
		"d g e h f"
		". g i h ."
		". . i . .";
	gap: 0;
	width: 600px!important;
}

.waben .wp-block-image {
	width: 140px;
}

.waben .wp-block-image:not(.active) {
	opacity: .5;
}

.waben .wp-block-image img {
	width: 100%;
	cursor:pointer;
}

.waben .wp-block-image figcaption {
	text-align: center;
	text-transform: uppercase;
	font-size: smaller;
}

.waben .wp-block-image:nth-child(1) {
	grid-area: a;
}

.waben .wp-block-image:nth-child(2) {
	grid-area: b;
}

.waben .wp-block-image:nth-child(3) {
	grid-area: c;
}

.waben .wp-block-image:nth-child(4) {
	grid-area: d;
}

.waben .wp-block-image:nth-child(5) {
	grid-area: e;
}

.waben .wp-block-image:nth-child(6) {
	grid-area: f;
}

.waben .wp-block-image:nth-child(7) {
	grid-area: g;
}

.waben .wp-block-image:nth-child(8) {
	grid-area: h;
}

.waben .wp-block-image:nth-child(9) {
	grid-area: i;
}

.options > p {
	padding: .5em 1em;
	background: #566369;
	cursor: pointer;
}

.options > p.active {
	background: #F8B121;
}

.amount:not(.active) {
	display: none;
}

.mobility {
	position: relative;
}

.mobility::after {
	content: '';
	display: block;
	background: #606C73;
	position: absolute;
	top: 1em;
	right: 2em;
	left: 2em;
	padding-top: 12.5%;
	z-index: 0;
}

.mobility > figure {
	position: relative;
	z-index: 1;
	cursor: pointer;
	flex-grow: 1;
}

.mobility > figure.active svg g:last-of-type > g > path {
	fill: #F8B121 !important;
}

.mobility > figure:last-of-type.active svg path {
	stroke: #F8B121 !important;
}

.mobility > figure:last-of-type.active svg > g:first-of-type > path:first-of-type {
	stroke: none !important;
}

.mobility figcaption {
	text-align: center;
	text-transform: uppercase;
	font-size: .7em;
	padding-inline: .5em; 
}

input[type="range"]{
	accent-color: #F8B121;
	width: 100%; 
}

datalist {
	margin-top: 0 !important;
	display: flex;
	justify-content: space-between;
}

datalist option {
	width: 140px;
	text-align: center;
}

.maschine .wp-block-image {
	display: none;
	max-width: 500px;
}

.maschine .wp-block-image.active {
	display: block;
}

.pagination {
	margin-top: auto;
	justify-content: center;
}

.pagination .wp-block-image {
	opacity: .5;
}

.pagination .wp-block-image.active {
	cursor: pointer;
	opacity: 1;
}

.pagination img {
	width: 24px;
}

.progress {
	width: 200px;
	height: 8px;
	background: #566268;
	position: relative;
}

.progress .inner {
	position: absolute;
	left: 0;
	top: 0;
	height: 8px;
	width: 0px;
	background: #F8B121;
}