

/* Error-, Confirm-, Promptboxen*/

#errorboxWrapper, 
#confirmboxWrapper,
#promptboxWrapper {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:1000%; /* :-) */
	background-color:rgba(255,255,255,0.8);
	z-index:200;
	text-align:left;
}

/* errorboxWrapper z-index MUSS höher sein wie confirm.. und prompt.. !! */
#errorboxWrapper {
	z-index:210;
}

#errorbox, 
#confirmbox,
#promptbox {
	position:fixed;
	border: none;
	top:20%;
	/* z-index: 300; */ 
	background: #e5e5e5;
	box-shadow: 2px 2px 5px #bab3b3;
	padding: 20px;
}

#errorbox button, #confirmbox button, #promptbox button, #weiterEinkaufenPopup > div button {
	width: 48%;
	margin-top: 1em;
	cursor: pointer;
	font-size: 1em;
}

#errorbox h3, #confirmbox h3, #promptbox h3 {
	font-weight: 600;
	font-size: 1em;
}

#errorbox button:hover, #confirmbox button:hover, #promptbox button:hover  {
	opacity: 0.8;
}


#promptboxInput {
	width: 100%;
	margin-top: 20px;
	background-color: #e5e5e5;
	border: none;
	border-bottom: 1px solid #000;
}


/*"normale" Fenster */


#allfensteroverlay, .fensteroverlay {
	position: fixed;
	z-index: 110;
	background-color: rgba(255,255,255,0.85);
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.allefenster {
	position: fixed;
	background-color: #ededed;
	z-index: 200;
	max-height: 80%;
	overflow-x: hidden;
	overflow-y: auto;
	left:5%;
	right:5%;
	top:5%;
	padding:3%;
}


#close {
	position: fixed;
	background-color: #fff;
	width: 30px;
	height: 30px;
	border-radius: 20px;
	border: 2px solid #868889;
	z-index: 201;
	text-align: center;
	padding-top: 3px;
}

#close:hover {
	width: 35px;
	height: 35px;
	padding-top: 6px;

}

#close:after {
	content: 'X';
	font-size: 1em;
	font-weight: 500;
	color: #868889;
	text-align: center;
	line-height: 20px;
}

.allefenster p:last-of-type {
    margin-bottom: 0;
}


/* Responsive Error-, Confirm-, Promptboxen*/


@media screen and (max-width:500px) {

	#errorbox, 
	#confirmbox,
	#promptbox {
		width: 90%;
		margin-left: 5%;
	}
}


@media screen and (min-width:501px) {

	#errorbox, 
	#confirmbox,
	#promptbox,
	#weiterEinkaufenPopup > div.allefenster{
		left: calc(50% - 250px);
		width: 500px;
		font-size: 1.3em;
	}
	
	#SchonRegistriert > div.allefenster {
		left: calc(50% - 150px);
		width: 300px;
		font-size: 1.3em;
	}
}

/*  Responsive "normale" Fenster */

@media (max-width:1024px) {
	
	.allefenster {
		left: 5%;
		right: 5%;
		top: 5%;
		padding: 7%;
	}
	
	#close, .close {
		right: calc(5% - 15px);
		top: calc(5% - 15px);
	}
	
}
	
@media (min-width:1025px) {
	
	
	.allefenster {
		left: 27%;
		right: 27%;
		top: 10%;
		padding: 3%;
	}
	
	.allefenster.breit {
   	 left: 5%;
   	 right: 5%;
	}
	
	.allefenster.schmal {
		margin-left: auto;
		margin-right: auto;
		width: 430px;
	}
	
	#close, .close {
		right: calc(27% - 15px);
		top: calc(10% - 15px);
	}
	
	#close.breitesFenster {
		right: calc(5% - 15px);
	}
	
	#close.schmalesFenster {
		right: calc(50% - 230px);
	}

}

