*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	width: 100%;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	margin: 0;
	padding: 32px 16px;
	font-family: Helvetica, Sans-Serif;
}

.topBar {
	background-color: #fff;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 60px;
	padding: 10px;
	width: calc(100% - 60px);
}

.signaturesHeader  {
	display: none;
	position: fixed;
	top: 60px;
	left: 0px;
	width: 100%;
	height: 30px;
}

.signingprocess {
	width: auto;
	position: relative;
}

body.change-signingprocess .signingprocess {
	margin: 0 auto !important;
}

.signatureField {
	position: absolute;
	padding: 5px;
	z-index: 10;
	/* margin-top: 16mm; */
	margin: -5px;
	font-size: 12px;
	background: transparent;
	color: transparent;
	border: 2px solid #C53B3B;
	height: 30px !important;
	overflow: hidden;
	z-index: 10;
}
.signatureField::after {
	position: absolute;
	top: 0px;
	right: 0px;
	content: "";
	height: 30px;
	width: 30px;
	background: #C53B3B;
}
.signatureField.signed::after {
	background: transparent;
}
.signatureField.signed {
	border-color: transparent;
}
.signatureField.signatureBox {
	padding: 0px;
	margin: -12px 0 0 -5px;
	border: 2px solid #C53B3B;
	height: 26px !important;
	width: 500px !important;
}
.signatureField.signatureBox.signed {
	border-color: #2A9931;
}
.signatureField.signatureBox::after {
	display: none;
}

.cursor-pointer {
	cursor: pointer;
}

.row__column {
	position: relative;
}

.page-preview {
	background: #fff;
	position: relative;
	box-shadow: 0 0 25px 5px rgba(0, 0, 0, 0.1);
	width: 21cm !important;
	height: 29.7cm;
}
.page-preview .image-preview {
	width: 21cm !important;
	height: 29.7cm;
}
.page-preview .image-preview-loader {
	position: absolute;
	top: 14cm;
	left: 10cm;
}

.image-preview {
	max-width: 100%;
	height: auto;
}

.signature-pad {
	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	font-size: 10px;
	width: 100%;
	height: 100%;
	background-color: #fff;
}

.signature-pad::before,
.signature-pad::after {
	position: absolute;
	z-index: -1;
	content: '';
	width: 40%;
	height: 10px;
	bottom: 10px;
	background: transparent;
	box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

.signature-pad::before {
	left: 20px;
	-webkit-transform: skew(-3deg) rotate(-3deg);
	transform: skew(-3deg) rotate(-3deg);
}

.signature-pad::after {
	right: 20px;
	-webkit-transform: skew(3deg) rotate(3deg);
	transform: skew(3deg) rotate(3deg);
}

.signature-pad--body {
	position: relative;
	width: 500px;
	height: 250px;
	border: 3px dashed #000;
}

.signature-pad--body canvas {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	border-radius: 4px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
}

.signature-pad--footer {
	color: #c3c3c3;
	text-align: center;
	font-size: 1.2em;
	margin-top: 8px;
}

.signature-pad--actions {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	margin-top: 8px;
}

.signature-pad--actions .column {
	padding: 0.1em;
}

.signature-pad--actions .button {
	margin: 0.2em;
}


@media (max-width: 480px) {
	.signature-pad--actions .button {
		display: block;
		width: 100%;
		min-height: 2em;
	}
}

/* Fork me on GitHub ribbon */

#forkongithub {
	position: fixed;
	display: block;
	top: 0;
	right: 0;
	width: 200px;
	overflow: hidden;
	height: 200px;
	z-index: 9999;
}

#forkongithub a {
	display: block;
	background: #6d6d6d;
	color: #fff;
	text-decoration: none;
	font-family: arial, sans-serif;
	text-align: center;
	font-weight: bold;
	padding: 5px 40px;
	font-size: 14px;
	line-height: 2rem;
	position: relative;
	transition: 0.5s;
	width: 300px;
	top: 35px;
	right: 5px;
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8);
}

#forkongithub a:hover {
	background: #11c;
}

#forkongithub a::before,
#forkongithub a::after {
	content: '';
	width: 100%;
	display: block;
	position: absolute;
	top: 1px;
	left: 0;
	height: 1px;
	background: #fff;
}

#forkongithub a::after {
	bottom: 1px;
	top: auto;
}

@media(max-width: 1420px) {
	
	body {
	}
	
	.signingprocess {
		margin-left: auto !important;
		
	}
	
	.window .window__body {
		width: 100% !important;
		height: 100% !important;
	}
	.window .button.window__close {
		right: 0 !important;
	}
}


@media(max-width: 1023px) {
		
	.signaturesHeader,
	.topBar {
		z-index: 100;
	}
	
	.window .window__body{
		max-height: 100vh !important;
			
		display: flex; /* Aktiviert Flexbox */
		flex-direction: column; /* Ordnet Elemente vertikal */
		justify-content: center; /* Zentriert Inhalte vertikal */
	}
	
	.window.window--big-size {
		width: 100vw;
		height: 100vh;
	}
	
	.window.window--big-size h2 {
		font-size: 52px;
	}

	.window.window--big-size p {
		font-size: 40px;
	}

	.window.window--big-size button {
		height: 76px;
		padding: 0 4rem;
		margin-top: 20px;
	}
	
	.window.window--big-size button .button__label {
		font-size: 38px;
	}

	.window.window--big-size .window__close {
		width: 80px;
		height: 80px;
		top: 80px !important;
		right: 10px !important;
	}

	.window.window--big-size .window__close i {
		font-size: 45px;
	}
	
	
}

