/* Toggle für Aktivierung Penalty im Quiz Header (hdq_before) */
.custom_toggle_wrapper {
    text-align: left;
    margin-bottom: 1.5em;
}

.custom_toggle_container {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-top: 0.5em;
    max-width: 600px;
	margin-bottom: 20px;
}
.custom_toggle_switch {
    transform: translateY(-6px);
}
.custom_toggle_text {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
}

#penalty_description {
	text-align: left;
	font-size: 11pt;
}


.custom_toggle_input {
    display: none;
}

.custom_toggle_label {
    display: block;
    width: 50px;
    height: 26px;
    background-color: #990000; /* rot */
    border-radius: 50px;
    position: relative;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.custom_toggle_label::after {
    content: "";
    width: 22px;
    height: 22px;
    background-color: white;
    position: absolute;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    transition: left 0.3s ease;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
}

.custom_toggle_input:checked + .custom_toggle_label {
    background-color: #008400;
}

.custom_toggle_input:checked + .custom_toggle_label::after {
    left: 26px;
}

/* Infotext */
.custom_toggle_text {
    margin: 0;
    font-size: 0.95em;
    max-width: 500px;
}

.hdq_quiz_wrapper {
	margin: 0 auto;
	padding-bottom: 60px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	position: relative;
	max-width: 100%;
}

.hdq_quiz_wrapper *,
.hdq_quiz_wrapper:before,
*:after {
	-webkit-box-sizing: inherit;
	-moz-box-sizing: inherit;
	box-sizing: inherit;
}

.hdq_quiz_wrapper h3 { 
	color: #1a5784 /* Capriblau*/ !important;
	font-weight: bold;
	font-size: 12pt;
}

.hdq_results_wrapper {
	border-bottom: none !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);	
}

#hdq_quiz_header {
	text-align: center;
}

.hdq_question_text {
	font-family: Arial;
}

.hdq_quiz {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	position: relative;
}

.hdq_hidden,
.hdq_aria_label {
	display: none !important;
}

.hdq_quiz > .hdq_jPaginate {
	display: block;
}

.hdq_quiz > .hdq_jPaginate ~ .hdq_jPaginate {
	display: none;
}

.hdq_jPaginate,
.hdq_finish,
.hdq_next_page {
	text-align: center;
}

.hdq_quiz_wrapper .hdq_button {
	display: inline-block;
	margin: 10px auto 0 auto;
	padding: 12px 22px;
	text-align: center;
	background: #2d2d2d;
	color: #fff;
	text-transform: uppercase;
	cursor: pointer;
}

/*.hdq_button {
	font-size: var(--hdq-answer-size, 1.2em) !important;
	background: #1a5784 !important;
	width: 30%;
	border-radius: 25px;
}*/

.hdq_button:hover,
.hdq_complete {
	opacity: 0.6;
}

.hdq_complete {
	cursor: default;
}

.hdq_before {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	background-color: #fdfdfd;
	border-radius: 3px;
	max-width: var(--hdq-quiz-width, 600px);
	padding: 0 30px;
	margin: 0 auto;
	position: relative;
	
}

.hdq_quiz_start.hdq_button {
	display: block;
	width: 30%;
}

.hdq_quiz_item {
  	padding: 0.4rem 1.2rem !important;
  	font-size: 16px !important;
}

.hdq_quiz .hdq_input {
	padding: 1rem;
	font-size: 1em;
	width: 100%;
	color: #2d2d2d;
	border-bottom: 1px dashed #aaa !important;
	line-height: inherit;
	height: auto;
	cursor: initial !important;
}
.hdq_quiz .hdq_input {
	width: 100% !important;
	text-indent: inherit;
	margin-left: 0em;
	border: 1px solid #aaa !important;
}

.hdq_result_pass,
.hdq_result_fail {
	display: none;
}

.hdq_result_pass,
.hdq_result_fail {
	font-size: 1.3em;
	margin: 1rem 0;
}

.hdq_result {
	font-size: 2.4em;
	font-weight: bold;
}

.hdq_results_wrapper {
	padding: 2rem;
	margin: 1rem 0;
	padding: 2rem;
	background: #fafafa;
	border-bottom: 2px solid #dedede;
	display: none;
}


.hdq_jPaginate ~ .hdq_question,
.hdq_jPaginate ~ .hdq_adset_container {
	display: none;
}


.hdq_quiz_wrapper img {
	max-width: 100%;
	height: auto !important;
}

.hdq_question_featured_image {
	text-align: center;
}

.hdq_featured_image {
	display: block;
	width: inherit;
	height: auto;
	margin: 0 auto;
}

.hdq_question_number {
	opacity: 1 !important;
	float: left;
	width: 50%;
	color: #5e5e5e !important; /* dunkelgrau */
}

.hdq_question_score {
	float: right;
	width: 50%;
	text-align: right;
	color: #5e5e5e !important; /* dunkelgrau */
}

.hdq_question_answers_images {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-gap: 1rem;
}

.hdq_quiz .hdq_row:hover {
	background: rgba(0, 0, 0, 0.1);
}

.hdq_disabled {
	opacity: 0.8;
}

.hdq_disabled .hdq_row:hover {
	cursor: default;
	background: rgba(0, 0, 0, 0.1);
}

.hdq_disabled label {
	cursor: default !important;
}

.hdq_row_image > .hdq_label_answer {
	display: grid;
	grid-template-rows: max-content 1fr;
	grid-gap: 1rem;
}

.hdq_question {
	margin: 1rem 0;
	padding: 2rem;
	background: #fafafa;
	border-bottom: 2px solid #dedede;
	transition: all 350ms ease-in-out;
}
.hdq_question {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	border-bottom: none !important;
}

.hdq_answer {
  	display: inline; /* Text soll fließen */
  	max-width: 100%; /* keine Überläufe */
  	line-height: 1.4; /* optional: bessere Lesbarkeit */
}

.hdq_answers p {
	color: #999999;
}



.hdq_question.hdq_active_question {
	box-shadow: 0px 0px 1rem 0px rgba(0, 0, 0, 0.4);
}

.hdq_question_after_text {
	display: none;
	margin-top: 12px;
	padding: 12px 22px;
	background: rgba(0, 0, 0, 0.1);
	border-bottom: 2px solid #dedede;
}

.hdq-options-check {
	display: inline-block;
	margin-right: 12px;
	/*top: 4px;*/
	position: relative;
	flex-shrink: 0; /* Button bleibt fix in der Breite */
}

.hdq_label_answer {
	/*display: block;*/
	display: flex;
  	align-items: flex-start; /* sorgt dafür, dass der Text oben beginnt */
  	gap: 0.5em;              /* Abstand zwischen Button und Text */
	font-size: 1.2em;
	cursor: pointer;
	padding: 8px;
	color: #2d2d2d !important;
	line-height: 1.4;
}

.hdq_correct {
	/*border: 4px solid green;*/
	background: rgba(0, 128, 0, 0.1);
	margin-bottom: 4px;
}

.hdq_sort_item.hdq_option.hdq_row.hdq_correct,
.hdq_assign_item.hdq_row.hdq_correct {
	background: rgba(0, 128, 0, 0.1);
}

.hdq_hint_text {
	padding: 10px;
}

.hdq_wrong {
	/*border: 4px dotted red;*/
	background: rgba(128, 0, 0, 0.1);
	margin-bottom: 4px;
}

.hdq_sort_item.hdq_option.hdq_row.hdq_wrong,
.hdq_assign_item.hdq_row.hdq_wrong {
	background: rgba(128, 0, 0, 0.1);
}

.hdq_correct_not_selected {
	/*border-bottom: 4px #4169E1;*/
	background: rgba(0, 0, 128, 0.1);
	margin-bottom: 4px;
}

/* ------ Feedback Icon vor zeile, nicht eingerückt ----- */
/*.hdq_row {
	position: relative;
}

.hdq_feedback_icon {
	display: flex;
	position: absolute;
	top: -2px;
	font-size: 2em;
	pointer-events: none;	
}

.hdq_feedback_icon.left {
	left: -40px;
}

.hdq_feedback_icon.right {
	right: 12px;
}*/

/* ----- Feedback Icon mit eingerückter Zeile innerhalb Box ----- */
.hdq_row {
  	display: flex;
  	/* align-items: center;  vertikal zentrieren */
  	position: relative;  /* kann bleiben, falls gebraucht */
  	gap: 0.2em;          /* optional Abstand zwischen Antwort und Icon */
}

.hdq_feedback_icon {
  	width: 0.8em; /* feste Breite – für alle Icons gleich */
  	display: flex;
  	justify-content: center; /* Icon zentrieren */
  	align-items: center;     /* vertikal zentrieren */
  	font-size: 2em;
  	flex-shrink: 0;
  	pointer-events: none;
}

.hdq_feedback_icon.left {
  	order: -1;           /* Icon vor der Antwort */
	margin-left: 0.2em;
}

.hdq_feedback_icon.right {
  	order: 1;            /* Icon nach der Antwort */
  	margin-left: 0.4em;  /* Abstand nach links */
}

.hdq_feedback_icon.correct {
	color: green;
}

.hdq_feedback_icon.wrong {
	color: red;
}

.hdq_feedback_icon.missed.right {
	transform: scaleX(-1);
}

.hdq_question_title {
	border-bottom: 3px solid #999;
}

.hdq_results_inner > .hdq_results_title,
h3.hdq_question_as_tile {
	margin: 0;
	padding: 0;
}

/* checkbox 
.hdq_checkbox .hdq-options-check {
	font-size: 24px;
}*/

.hdq-options-check {
	font-size: 24px;
}

.hdq_checkbox .hdq-options-check label {
	width: 2em;
	height: 1em;
	position: relative;
	cursor: pointer;
	display: block;
	/*font-size: 22px !important;*/
}


.hdq-options-check input[type="checkbox"] {
	position: absolute;
	opacity: 0;
}

.hdq-options-check .hdq_toggle {
	width: 2em;
	height: 1em;
	position: relative;
	cursor: pointer;
	display: block !important;
	/*font-size: 22px !important;*/
	margin: 0;
}

.hdq_checkbox .hdq_toggle {
	margin-bottom: 0 !important;
}

.hdq-options-check .hdq_toggle:before {
	content: "";
	position: absolute;
	width: 2em;
	height: 1em;
	left: 0.1em;
	transition: background 0.1s ease;
	background: #476777;
	border-radius: 50px;
	box-shadow: inset 0px 1px 1px rgba(171, 171, 171, 0.5);
}

.hdq-options-check .hdq_toggle:after {
	content: "";
	position: absolute;
	width: 1em;
	height: 1em;
	border-radius: 50px;
	left: 0;
	transition: all 0.2s ease;
	box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
	background: #efefef;
	animation: hdq_switch-off 0.2s ease-out;
	z-index: 2;
}

.hdq-options-check input[type="checkbox"]:checked + .hdq_toggle:before {
	background: #72a0c4;
	box-shadow: inset 0px 1px 1px rgba(84, 152, 140, 0.5);
}

.hdq-options-check input[type="checkbox"]:checked + .hdq_toggle:after {
	animation: hdq_switch-on 0.2s ease-out;
	left: 1.1em;
	background: #efefef;
}

.hdq-options-check input[type="checkbox"]:focus + .hdq_toggle:after {
	border: 1px solid #66cbff;
}

label.non-block {
	display: inline-block !important;
	margin-right: 12px !important;
}

@keyframes hdq_switch-on {
	50% {
		transform: scaleX(1.3);
	}
}

@keyframes hdq_switch-off {
	50% {
		transform: scaleX(1.3);
	}
}


@-webkit-keyframes hdq_pulse {
	0% {
		-webkit-box-shadow: 0 0 0 0 rgba(171, 33, 33, 0.7);
	}

	70% {
		-webkit-box-shadow: 0 0 0 10px rgba(171, 33, 33, 0);
	}

	100% {
		-webkit-box-shadow: 0 0 0 0 rgba(171, 33, 33, 0);
	}
}

@keyframes hdq_pulse {
	0% {
		-moz-box-shadow: 0 0 0 0 rgba(171, 33, 33, 0.7);
		box-shadow: 0 0 0 0 rgba(171, 33, 33, 0.4);
	}

	70% {
		-moz-box-shadow: 0 0 0 10px rgba(171, 33, 33, 0);
		box-shadow: 0 0 0 10px rgba(171, 33, 33, 0);
	}

	100% {
		-moz-box-shadow: 0 0 0 0 rgba(171, 33, 33, 0);
		box-shadow: 0 0 0 0 rgba(171, 33, 33, 0);
	}
}

.hdq_loading_bar {
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	height: 8px;
	background: rgba(15, 143, 18, 0.7);
	-webkit-transform: translate3d(-103%, 0, 0);
	transform: translate3d(-103%, 0, 0);
	pointer-events: none;
}

.hdq_loading_bar.hdq_animate {
	bottom: -20px;
	z-index: 100;
	-webkit-transition: -webkit-transform 1.2s ease-in, bottom 0.3s 2.7s;
	transition: transform 1.2s ease-in, bottom 0.3s 2.7s;
	-webkit-transform: translate3d(0%, 0, 0);
	transform: translate3d(0%, 0, 0);
}

h2.hdq_results_title,
h3.hdq_question_heading {
	margin-top: 1rem;
	margin-bottom: 1rem;
	line-height: 1.2;
	color: #222;
}

.hdq_question_number {
	opacity: 0.8;
}

.hdq_tooltip {
	position: relative;
	width: 40px !important;
	height: 20px;
	background-color: #1a5784 /* Capriblau*/ !important;
	color: #fff;
	display: inline-flex;
	justify-content: center;
	align-content: center;
	align-items: center;
	font-size: 0.6em;
	border-radius: 5px !important;
	top: -3px;
	font-family: monospace;
}

.hdq_tooltip_content {
	font-family: sans-serif;
	position: absolute;
	top: calc(100% + 1em);
	font-size: 1.5em !important;
	width: 260px;
	left: -120px !important;
	line-height: 1.4;
	background-color: #1a5784 /* Capriblau*/ !important;
	border-radius: 10px;
	box-shadow: 0px 13px 10px rgba(72, 72, 72, 0.025), 0 1px 16px rgba(72, 72, 72, 0.55);
	color: #fff;
	padding: 1.4em;
	text-align: left;
	pointer-events: none;
	opacity: 0;
	transform: translate3d(0, 30px, 0);
	transition: all 0.3s cubic-bezier(0.1, 1, 0.9, 1);
	transition-property: opacity, transform;
}

.hdq_tooltip_content span {
	display: block;
	letter-spacing: initial;
}

.hdq_tooltip_content::after {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	display: block;
	border-style: solid;
	border-top-color: transparent;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid rgb(95, 102, 109);
}

.hdq_tooltip:hover .hdq_tooltip_content {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	z-index: 99999;
}

@media screen and (max-width: 800px) {
	.hdq_timer {
		bottom: 10px;
		right: 10px;
	}

	.hdq_share {
		padding: 8px;
		line-height: 1;
	}

	.hdq_social_icon {
		margin: 0 4px;
	}

	.hdq_question,
	.hdq_results_wrapper {
		padding: 1rem;
	}

	.hdq_tooltip_content {
		position: fixed;
		top: initial;
		bottom: 10px;
		width: 80%;
		left: 10%;
		margin: 0;
	}

	.hdq_tooltip_content::after {
		display: none;
	}

	.hdq_quiz_wrapper {
		overflow-x: hidden;
	}

	.hdq_label_answer {
		font-size: 1rem;
	}

	.hdq_question_answers_images {
		grid-gap: 0.4rem;
	}

	.hdq_row_image > .hdq_label_answer {
		grid-gap: 0.5rem;
		padding: 0.4em;
	}

	.hdq_row_image .hdq-options-check {
		display: block;
		margin-bottom: 0.4em;
	}
}

#hdq_needed_score::before {
	content: attr(data-needed_score);
}
#hdq_needed_score::after {
	content: attr(data-max_score);
}

/* -------- Erreichbare Punktezahl mit Pseudoselektoren anzeigen ------- */
.hdq_question_score {
	font-size: small;
	color: #2d2d2d !important;
  	padding-top: 0px;
}
.hdq_question_score::before {
	content: attr(data-score);
}
.hdq_question_score::after {
	content: attr(data-score-text);
}

.hdq_quiz_header::before {
	content: attr(data-score-max);
}


/* ------ Fragetyp sort_text ------- */

.hdq_sort_container {
    display: flex;
    flex-direction: column; /* Die Elemente untereinander anzeigen */
    gap: 10px;
    width: 300px;
    margin: 0 auto;
}

.hdq_sort_item {
    padding: 10px;
    margin: 5px 0;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    cursor: move;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hdq_sort_item.drag-over {
    background-color: #e0e0e0; /* Farbe ändern, wenn über einem anderen Element */
}

.hdq_answer_text {
    display: block;
    font-size: 16px;
    color: #333;
}

.hdq_assign_answer_image {
    display: block;
    background-color: #fff;
	height: auto;
	max-width: 40%;
}

/* ------ Fragetyp assign_text ------- */


/* Container bleibt horizontal */
.hdq_assign_container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    user-select: none;
}

/* Vertikales Layout */
.hdq_assign_container.hdq_layout_vertical {
    display: flex !important;
    flex-direction: column !important;
}

/* Spalten-Box */
.hdq_assign_column {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-height: 100px;
    background: #f9f9f9;
	
	display: flex;
    flex-direction: column;
    gap: 1rem; /* Abstand zwischen den Antworten */
    align-items: stretch; /* Sorgt dafür, dass die Flex-Elemente gleich hoch sind */
}

/* Einzelnes Zuordnungselement */
.hdq_assign_left .hdq_assign_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: 1rem;*/
    padding: 0.5rem;
    border: 1px solid #aaa;
    border-radius: 4px;
    background: #e5e5e5;
    gap: 1rem;
}

/* Vorgegebene Antwort (Text links) */
.hdq_assign_item .hdq_answer_text {
    width: 50%;
	min-height: 40px;
	height: auto;
    padding: 0.25rem 0.5rem;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Dropzone rechts */
.hdq_dropzone {
    width: 50%;
	/*height:auto;*/
	min-height: 42px;
    border: 1px dashed #bbb;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
	
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Abstand zwischen den Antwort-Elementen */
}


/* Draggable Elemente */
.hdq_assign_draggable {
    /*margin-bottom: 1rem;*/
    padding: 0.5rem 1rem;
    border: 1px solid #888;
    border-radius: 4px;
    background: rgba(0, 0, 128, 0.05);
    cursor: grab;
    height: auto;
	min-height: 40px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}


.hdq_assign_draggable:active {
    cursor: grabbing;
}

.hdq_assign_draggable:hover {
	background: rgba(0, 0, 128, 0.1);
}