/*
Theme Name:		e-learning
Theme URI:		https://www.wcd.ch
Author:			weiss communication+design ag
Author URI:		https://www.wcd.ch/agentur/
Version:		5.2
Description:	Custom theme developed for e-learning
License:		GNU General Public License v2.0 & Apache License 2.0
License URI:	http://www.gnu.org/licenses/gpl-2.0.html http://www.apache.org/licenses/LICENSE-2.0
Text Domain:	e-learning
*/

body{
	overflow-y: scroll;
}
p:empty{
	display: none;
}
img{
	max-width: 100%;
	height: auto;
}

.wp-site-blocks{
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}
#content{
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.theories{
	display: grid;
	border-bottom: 1px solid #efecea;
}
.theories a{
	display: block;
	padding: 24px 24px 24px 0;
	text-decoration: none;
	background: url(images/next.svg) right center no-repeat;
	border-top: 1px solid #efecea;
}

.ajaxForm{
	transition: opacity 300ms ease;
}
.ajaxForm.loading{
	pointer-events: none;
	opacity: .8;
}
.ajaxForm :is( .success, .error ){
	position: fixed;
	z-index: 20;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 24px 0;
	background: #ffe0e0;
	box-shadow: 0px 0px 8px rgba(0,0,0,0.16);
}
.ajaxForm .success{
	background-color: #e6f9eb;
}
.ajaxForm :is( .success, .error ) .title{
	display: flex;
	gap: 8px;
	align-items: center;
	padding-right: 16px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4167;
	color: #d20000;
}
.ajaxForm :is( .success, .error ) .title::before{
	content: url(images/wrong.svg);
	font-size: 0;
}
.ajaxForm .success .title{
	color: #28a745;
}
.ajaxForm .success .title::before{
	content: url(images/correct.svg);
}
.ajaxForm :is( .success, .error ) .btn{
	margin: 0;
}

.range-wrapper{
	position: relative;
	padding-top: 33px;
}
.range-wrapper .bubble{
	white-space: nowrap;
	position: absolute;
	top: 0;
	pointer-events: none;
	padding: 3px 6px 6px;
	background: rgba(0,0,0,0.5);
	border-radius: 4px;
	font-size: 14px;
	line-height: 1;
	color: #fff;
}
.range-wrapper .bubble::after{
	content: '';
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 4px 6px 0 6px;
	border-color: rgba(0,0,0,0.5) transparent transparent transparent;
	position: absolute;
	top: 100%;
	left: var( --caret-position, 2px );
}
.range-wrapper input{
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 34px;
	padding: 0;
	background: none;
}
.range-wrapper input:focus{
	outline: 0
}
.range-wrapper input::-moz-focus-outer{
	border: 0
}
.range-wrapper input::-webkit-slider-thumb{
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	margin-top: -7px;
	background: #a19184;
	box-shadow: 0px 2px 4px rgba(0,0,0,0.15), 0 0 0 7px rgba(161,145,132,0.2);
	border: 0;
	border-radius: 999px;
}
.range-wrapper input::-moz-range-thumb{
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	background: #a19184;
	box-shadow: 0px 2px 4px rgba(0,0,0,0.15), 0 0 0 7px rgba(161,145,132,0.2);
	border: 0;
	border-radius: 999px;
}
.range-wrapper input::-webkit-slider-runnable-track{
	width: 100%;
	height: 6px;
	color: transparent;
	cursor: pointer;
	background: linear-gradient(to right, #A19184, #A19184), #fff;
	background-size: var(--background-size, 0%) 100%;
	background-repeat: no-repeat;
	border: 0;
	border-radius: 99px;
}
.range-wrapper input::-moz-range-track{
	width: 100%;
	height: 6px;
	color: transparent;
	cursor: pointer;
	background: linear-gradient(to right, #A19184, #A19184), #fff;
	background-size: var(--background-size, 0%) 100%;
	background-repeat: no-repeat;
	border: 0;
	border-radius: 99px;
}

.skipped{
	margin: 28px 0 0;
	border-top: 1px solid #efecea;
}
.skipped a{
	display: block;
	padding: 16px 0;
	background: #fff;
	border-bottom: 1px solid #efecea;
	font-weight: 700;
	color: #000;
	text-decoration: none;
}

#overlay{
	position: fixed;
	z-index: 10;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,.2);
}
#overlay:not(hidden){
	display: block;
	animation: fadeInFromNone 300ms ease;
}

@keyframes fadeInFromNone{
	0%{
		display: none;
		opacity: 0;
	}
	1%{
		display: block;
		opacity: 0;
	}
	100%{
		display: block;
		opacity: 1;
	}
}

.login-logo{
	padding: 140px 0;
	text-align: center;
}
.login-logo img{
	width: auto;
	height: 55px;
}
.login-body{
	flex-grow: 1;
	padding: 104px 0;
	background: #fff;
	text-align: center;
}
.login-body h1{
	margin: 0 0 48px;
}

.start-header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 64px 0;
}
.start-header img{
	max-width: 230px;
	max-height: 48px;
}
.start-body{
	flex-grow: 1;
	padding: 80px 0;
	background: #fff;
}

.question-header{
	background: #fff;
}
.question-header-inner{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
}
.question-header-inner a:not(.wpml-ls-item-toggle):not(.wpml-ls-link){
	display: flex;
	align-items: center;
	gap: 10px;
}
.question-header-inner a:not(.wpml-ls-item-toggle):not(.wpml-ls-link)::before{
	content: url(images/next.svg);
	font-size: 0;
	transform: rotate(180deg);
}
.question-header-inner a:not(.wpml-ls-item-toggle):not(.wpml-ls-link):not(:hover){
	text-decoration: none;
}
.question-header-inner .wrapper{
	display: flex;
	align-items: center;
	gap: 12px;
}
.question-header-inner .close-button{
	background-color: transparent;
	border: none;
}
.timer{
	color: #a6a6a6;
}
.progress{
	background: #efecea;
}
.progress::before{
	content: '';
	display: block;
	width: var(--progress);
	height: 7px;
	background: #d20000;
}
.question-body{
	padding: 104px 0;
}

label{
	display: block;
	margin: 0;
	cursor: pointer;
}

input[type=radio],
input[type=checkbox]{
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin: 0;
	background: #EFECEA;
	border: 0;
	border-radius: 50%;
}
input[type=checkbox]{
	border-radius: 4px;
}
input[type=radio]:checked{
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-4 -4 8 8"><circle r="2" fill="%23A19184"/></svg>');
}
input[type=checkbox]:checked{
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"><rect x="5" y="5" width="12" height="12" rx="2" fill="%23A19184"/></svg>');
}

.single-choice, .multi-choice{
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	height: 100%;
	margin: 0;
	padding: 14px 24px 14px 20px;
	background: #ffffff;
	border-radius: 18px;
}
:is( .single-choice, .multi-choice ):has( input:checked ){
	background-color: #A19184;
	color: #fff;
}
:is( .single-choice, .multi-choice ).type-Images{
	overflow: hidden;
	padding: 0;
	justify-content: center;
}
:is( .single-choice, .multi-choice ).type-Images:has( input:checked ){
	background: #fff;
	box-shadow: 0 0 0 3px #a19184;
}
:is( .single-choice, .multi-choice ).type-Images a{
	position: absolute;
	z-index: 1;
	bottom: 12px;
	right: 12px;
}
.type-Images input{
	position: absolute;
	z-index: 1;
	top: 12px;
	left: 12px;
}
.questionForm:has( .type-Images input:checked ) .type-Images{
	opacity: 0.6;
}
.questionForm:has( .type-Images input:checked ) .type-Images:has( input:checked ){
	opacity: 1;
}
.question-body form{
	margin-top: 24px;
}
.question-body .btn{
	margin-top: 20px;
}

.sequencing{
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 24px 14px 16px;
	background: #fff;
	border-radius: 18px;
}
.sequencing select{
	flex-shrink: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: block;
	width: 34px;
	height: 34px;
	background: #efecea;
	border: 0;
	border-radius: 4px;
	font-size: 24px;
	font-weight: 700;
	line-height: 34px;
	text-align: center;
	color: inherit;
}

#theoryModal{
	--bs-modal-width: 100%;
	--bs-modal-margin: 0px;
	--bs-modal-padding: 0px;
	--bs-modal-border-width: 0;
	--bs-modal-border-radius: 0;
	--bs-modal-box-shadow: none;
	--bs-modal-inner-border-radius: 0;
}
.theory-body{
	padding-top: 70px;
	padding-bottom: 48px;
}
:is( .theory-body, .question-body ) iframe{
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16/9;
	margin: 40px 0;
}
.question-body iframe{
	margin: 16px 0;
}
.theory-body img{
	display: block;
	margin: 40px 0;
}
.theory-body img[data-fancybox]{
	cursor: zoom-in;
}
.theory-body .btn{
	display: block;
	margin-top: 40px;
}
.theory-body hr{
	margin: 32px 0 0 0;
	border: none;
	border-top: 1px solid #ccc;
}

.results{
	flex-grow: 1;
	padding: 40px 0;
	background: #A19184;
	color: #fff;
}
.result-items{
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 30px 0 60px;
}
.result-items > div{
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 26px 32px 26px 20px;
	background: #fff;
	border-radius: 18px;
	line-height: 1.125;
	color: #000;
	transform: translateY(30px);
	opacity: 0;
	animation: slideUp 800ms ease 0s forwards;
}
.result-items > div:nth-child(1){ animation-delay: 300ms }
.result-items > div:nth-child(2){ animation-delay: 600ms }
.result-items > div:nth-child(3){ animation-delay: 900ms }
@keyframes slideUp{
	0%{
		transform: translateY(30px);
		opacity: 0;
	}
	100% {
		transform: translateY(0px);
		opacity: 1;
	}
}
.result-items strong{
	color: #d20000;
}
.result-items .icon{
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 0;
}

.feedback-item{
	margin-bottom: 40px;
}

body.single-theory{
	background: #fff;
}
.single-theory .question-header-inner{
	border-bottom: 1px solid #EFECEA;
}
.single-theory h1{
	margin-bottom: 48px;
}
.single-theory h4{
	margin-top: 40px;
}
.single-theory li ul,
.single-theory li + li{
	margin-top: 10px;
}
.single-theory li img, .theory-body li img{
	width: auto;
	margin-top: 10px;
	margin-bottom: 10px;
}

.image_accordion{
	margin-bottom: 32px;
}
.image_accordion img{
	margin-top: 0;
	margin-bottom: 0;
}
.image_accordion img.aligncenter{
	margin-left: auto;
	margin-right: auto;
}

.image_list{
	margin-bottom: 40px;
}
.image_list .item{
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0 0 8px;
}
.image_list .item > img{
	flex-shrink: 0;
	margin: 0;
}
.single-theory .image_list ul{
	padding-left: 20px;
}
.single-theory .image_list p + ul{
	margin-top: -10px;
}
.single-theory .image_list li + li{
	margin: 0;
}

.socials{
	display: flex;
	justify-content: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0;
}

.sprachauswahl{
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sprachauswahl a{
	display: block;
	padding: 15px 24px 14px;
	background: #000;
	border-radius: 18px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}

/* Extra extra large (desktop) : .col-xxl- */
@media (min-width: 1400px){

}

/* Extra large (desktop) : .col-xl- */
@media /*(min-width: 1200px) and*/ (max-width: 1399px){

}

/* Large (laptop) : .col-lg- */
@media /*(min-width: 992px) and*/ (max-width: 1199px){

}

/* Medium (tablet) : .col-md- */
@media /*(min-width: 768px) and*/ (max-width: 991px){
	.login-logo{
		padding: 80px 0 192px;
	}
	.question-body{
		padding: 72px 0;
	}
}

/* Small (big mobile) : .col-sm- */
@media /*(min-width: 576px) and*/ (max-width: 767px){
	.login-logo{
		padding: 32px 0 88px;
	}
	.login-logo img{
		height: 40px;
	}
	.login-body{
		padding: 56px 0;
	}
	.start-header{
		padding: 24px 0;
	}
	.start-body{
		padding: 56px 0;
	}
	.question-body{
		padding: 40px 0;
	}
	.image_list .item{
		margin-bottom: 40px;
		flex-direction: column;
	}
}

/* Extra small (small mobile) : .col- */
@media (max-width: 575px){
	.start-header img{
		max-width: 200px;
		max-height: 40px;
	}
	.theory-body img,
	.theory-body iframe{
		width: 100%;
		margin: 32px 0;
	}
	.theory-body iframe{
		width: calc( 100% + 2 * var(--bs-offset) );
	}
}
