/* Scrollbar ausblenden */

html.modal-is-locked, body.modal-open {
	overflow: hidden !important;
}

/* FOUC verhindern */

.modal, [data-modal-id] {
	display: none;
}

.modal-overlay {
	position: fixed;
	z-index: 9999;
	top: -5000px;
	right: -5000px;
	bottom: -5000px;
	left: -5000px;

	background: rgba(100, 0, 0, 0.8);

	display: none;
}

.modal-wrapper {
	position: fixed;
	z-index: 10000;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 10px 10px 0;

	display: none;
	overflow: auto;

	text-align: center;

	-webkit-overflow-scrolling: touch;
}

.modal-wrapper:after {
	display: inline-block;

	height: 100%;
	margin-left: -0.05em;

	content: "";
}

/* Probleme auf Mobilgeräten beheben/umgehen */

.modal-overlay, .modal-wrapper {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.modal {
	position: relative;

	outline: none;

	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	text-size-adjust: 100%;

	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	height: auto;
	width: 100%;
	margin-bottom: 10px;
	padding: 35px;

	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);

	color: #2b2e38;
	background: #fff;
}

.modal-is-initialized {
	/* FOUC-Verhinderung wieder deaktivieren */
	display: inline-block;
}

.modal-bg.modal-is-opening, .modal-bg.modal-is-opened {
	-webkit-filter: blur(3px);
	filter: blur(3px);
}

.modal-overlay.modal-is-opening, .modal-overlay.modal-is-closing {
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
}

.modal-overlay.modal-is-opening {
	-webkit-animation: modal-overlay-opening-keyframes 0.3s;
	animation: modal-overlay-opening-keyframes 0.3s;
}

.modal-overlay.modal-is-closing {
	-webkit-animation: modal-overlay-closing-keyframes 0.3s;
	animation: modal-overlay-closing-keyframes 0.3s;
}

.modal.modal-is-opening, .modal.modal-is-closing {
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
}

.modal.modal-is-opening {
	-webkit-animation: modal-opening-keyframes 0.3s;
	animation: modal-opening-keyframes 0.3s;
}

.modal.modal-is-closing {
	-webkit-animation: modal-closing-keyframes 0.3s;
	animation: modal-closing-keyframes 0.3s;
}

.modal, .modal-wrapper:after {
	vertical-align: middle;
}

.modal-close {
	position: absolute;
	top: 0;
	/*left: 0;*/
	right: 0;

	display: block;
	overflow: visible;

	/*width: 35px;*/
	width: 30px;
	/*height: 35px;*/
	height: 30px;
	margin: 0;
	padding: 0;

	cursor: pointer;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
	text-decoration: none;

	color: #95979c;
	border: 0;
	outline: 0;
	background: transparent;
}

.modal-close:hover, .modal-close:focus {
	color: #1C1D1D;
}

.modal-close:before {
	font-family: Arial, "Helvetica CY", "Nimbus Sans L", sans-serif !important;
	/*font-size: 25px;*/
	font-size: 28px;
	/*line-height: 35px;*/
	line-height: 30px;

	position: absolute;
	top: 0;
	left: 0;

	display: block;

	/*width: 35px;*/
	width: 30px;

	content: "\00d7";
	text-align: center;
}

.modal-confirm, .modal-cancel, .modal-button {
	font: inherit;

	display: inline-block;
	overflow: visible;

	min-width: 110px;
	margin: 0;
	/*padding: 12px 0;*/
	padding: 12px;

	color: #fff !important;
	background: #B71213;

	cursor: pointer;
	-webkit-transition: background 0.2s;
	transition: background 0.2s;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;

	border: 0;
	outline: 0;
}

.modal-confirm {
	color: #fff;
	background: #009400;
}

.modal-confirm:hover, .modal-confirm:focus {
	background: #007f00;
}


.modal-cancel:hover, .modal-cancel:focus, .modal-button:hover, .modal-button:focus {
	background: #A20f10;
}

.modal-confirm::-moz-focus-inner, .modal-cancel::-moz-focus-inner, .modal-button::-moz-focus-inner, .modal-close::-moz-focus-inner {
	padding: 0;

	border: 0;
}

/* Keyframes für Animationen */

@-webkit-keyframes modal-opening-keyframes {
	from {
		-webkit-transform: scale(1.05);
		transform: scale(1.05);

		opacity: 0;
	}

	to {
		-webkit-transform: none;
		transform: none;

		opacity: 1;
	}
}

@keyframes modal-opening-keyframes {
	from {
		-webkit-transform: scale(1.05);
		transform: scale(1.05);

		opacity: 0;
	}

	to {
		-webkit-transform: none;
		transform: none;

		opacity: 1;
	}
}

@-webkit-keyframes modal-closing-keyframes {
	from {
		-webkit-transform: scale(1);
		transform: scale(1);

		opacity: 1;
	}

	to {
		-webkit-transform: scale(0.95);
		transform: scale(0.95);

		opacity: 0;
	}
}

@keyframes modal-closing-keyframes {
	from {
		-webkit-transform: scale(1);
		transform: scale(1);

		opacity: 1;
	}

	to {
		-webkit-transform: scale(0.95);
		transform: scale(0.95);

		opacity: 0;
	}
}

@-webkit-keyframes modal-overlay-opening-keyframes {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes modal-overlay-opening-keyframes {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@-webkit-keyframes modal-overlay-closing-keyframes {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

@keyframes modal-overlay-closing-keyframes {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

@media only screen and (min-width: 641px) {
	.modal {
		max-width: 700px;
	}
}

.lt-ie9 .modal-overlay {
	background: #2b2e38;
}

.lt-ie9 .modal {
	width: 700px;
}