/* REGISTRATION BOX */

.registration-box {
	display: none; /* beim Start unsichtbar */
	position: absolute;
    z-index:1;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
}

.registration-box-darken {
	display: none; /* beim Start unsichtbar */
	position: absolute;
    z-index:1;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgba(0,0,0,0.4);
    -webkit-animation: 1s reg_animatedarken;
    -moz-animation: 1s reg_animatedarken;
    -ms-animation: 1s reg_animatedarken;
    -o-animation: 1s reg_animatedarken;
    animation: 1s reg_animatedarken;
}

@-webkit-keyframes reg_animatedarken {
	0% {background-color: rgba(0,0,0,0)} 
	100% {background-color: rgba(0,0,0,0.4)} 
}
@-moz-keyframes reg_animatedarken {
	0% {background-color: rgba(0,0,0,0)} 
	100% {background-color: rgba(0,0,0,0.4)} 
}
@-ms-keyframes reg_animatedarken {
	0% {background-color: rgba(0,0,0,0)} 
	100% {background-color: rgba(0,0,0,0.4)} 
}
@-o-keyframes reg_animatedarken {
	0% {background-color: rgba(0,0,0,0)} 
	100% {background-color: rgba(0,0,0,0.4)} 
}
@keyframes reg_animatedarken {
	0% {background-color: rgba(0,0,0,0)} 
	100% {background-color: rgba(0,0,0,0.4)} 
}

/* Registration box content */

.registration-box-content {
	position: absolute;
	display: flex;
    z-index:2;
    opacity:1;
	flex-direction: column;
	align-content: space-between;
    background-color: var(--boxes-background);
	margin: 0;
	padding: 0 40px;
	width: auto;  /* was 500px */
    max-height: 80vh;
    min-height: 400px;
    overflow: auto;
	font-size: 1vw;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	top: 50%;
	left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: 0.4s reg_animatezoom;
    -moz-animation: 0.4s reg_animatezoom;
    -ms-animation: 0.4s reg_animatezoom;
    -o-animation: 0.4s reg_animatezoom;
    animation: 0.4s reg_animatezoom;
}

/* Add animation to registration-boxes */

@-webkit-keyframes reg_animatezoom {
	from {-webkit-transform: scale(0.8) translate(-50%, -50%); opacity:0} 
	to {-webkit-transform: scale(1) translate(-50%, -50%); opacity:1}
}
@-moz-keyframes reg_animatezoom {
	from {-moz-transform: scale(0.8) translate(-50%, -50%); opacity:0} 
	to {-moz-transform: scale(1) translate(-50%, -50%); opacity:1}
}
@-ms-keyframes reg_animatezoom {
	from {-ms-transform: scale(0.8) translate(-50%, -50%); opacity:0} 
	to {-ms-transform: scale(1) translate(-50%, -50%); opacity:1}
}
@-o-keyframes reg_animatezoom {
	from {-o-transform: scale(0.8) translate(-50%, -50%); opacity:0} 
	to {-o-transform: scale(1) translate(-50%, -50%); opacity:1}
}
@keyframes reg_animatezoom {
	from {transform: scale(0.8) translate(-50%, -50%);opacity:0}
	to {transform: scale(1) translate(-50%, -50%);opacity:1}
}

/* Form ScrollContainer */

.registration-box-scroll-container {
    overflow:auto;
}

/* The Close Button */

.registration-box-close {
    position: absolute;
    top: 0px;                  
	right: 20px;
	color: var(--close-symbol);
	font-size: 1.6vw;
	font-weight: bold;
	/* padding: 40px 0 30px 0; */
}

.registration-box-close:hover,
.registration-box-close:focus {
	color: var(--close-symbol-hover);
	text-decoration: none;
	cursor: pointer;
}

/* Registration box header */

.registration-box-header {
    font-size:1vw;
	justify-content: flex-start;
	padding: 40px 0 20px 0;
    border-bottom: solid var(--boxes-headline-separator) 2px;
}

/* Registration Line */

.registration-box-line {
    /* display: flex; */
    font-size: 1vw;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	margin: 15px 0;
   -webkit-hyphens: auto;
   -moz-hyphens: auto;
   -ms-hyphens: auto;
   -o-hyphens: auto;
   hyphens: auto;
}
.registration-box-line p {
    margin-bottom: 15px;
}
.registration-box-line a {
    text-decoration: var(--link-text-decoration);
    color: var(--link);
}
.registration-box-line a:hover {
	color: var(--linkHover);
   	text-decoration: var(--link-text-decoration-hover);
}

/* Registration box footer */

.registration-box-footer {
    font-size: 1vw;
	display: flex;
	justify-content: space-between;
	padding: 30px 3rem 40px 0;
    /* padding: 30px 30px 40px 30px; */
}
.registration-box-footer a {
	color: var(--link);
	text-decoration: var(--link-text-decoration);
}
.registration-box-footer a:hover {
	color: var(--linkHover);
   	text-decoration: var(--link-text-decorationHover);
}

/* Registration box elements */

.registration-box-input-container {
    display: flex;
    justify-content: space-between;
    /* height: 50px;    /* must include 10 px vertical padding of registrationBoxInputFiel */
    /* width: 260px; */
    border: 0;
    margin-right: 3rem;
    margin-left: 0;
    padding: 0px;
    width: auto;
}

.registration-box-input-field {
	height: 30px;
	width: 29vw; /* 29rem */ /* plus 2 * 0.5 em padding left and right */
	/* margin: 0px 0px; */
	padding: 5px 0.5vw;
	border: 0;
	font-size: 1vw;
	font-weight:500;
	color: var(--input-field-text);
    background-color: var(--input-field-background);
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
	font-size: 1vw;
}
::-moz-placeholder { /* Firefox 19+ */
	font-size: 1vw;
}
:-ms-input-placeholder { /* IE 10+ */
	font-size: 1vw;
}
:-moz-placeholder { /* Firefox 18- */
	font-size: 1vw;
}

.optional {
	color: var(--input-field-text);
    background-color: var(--input-field-background-lightgrey);
}

.registration-box-select-field {
	height: 40px;
	width: 3.5vw; /* 3.5rem */
	/* margin: 0px 0px; */
	padding: 5px 0.1vw 5px 0.4vw;
	border: 0;
	font-size: 0.9vw;
	font-weight:500;
	color: var(--input-field-text);
    background-color: var(--input-field-background);
    cursor: pointer;
}

.registration-option, .form-option {
    font-family: monospace;
	font-size: 1vw;
    padding:5px 20px 5px 0px; 
    cursor: pointer;
}


.registration-box-submit-button {
	border: solid rgba(0,0,0,0) 2px;
	font-size: 1vw;
	font-weight:400;
	color: var(--button-overlay-text);
    transition: 0.5s;
}

.registration-box-submit-button:hover {
	cursor:	pointer;
    border: solid var(--button-overlay-text-hover) 2px;
	color: var(--button-overlay-text-hover);
}
.registration-box-submit-button:active,
.registration-box-submit-button:visited {
	cursor:	pointer;
    border: solid rgba(0,0,0,0) 2px;
	color: var(--button-overlay-text);
}

#agb-check[type="checkbox"] {
    position: absolute;
}

#agb-check[type="checkbox"] + label::before {
    width: 1.5vw; /* 30px */
    height: 1.4vw; /* 28px */
    background-image: url("../images/box_unchecked.png");
    background-size: 100%;
    display: block;
    content: "";
    float: left;
    margin-right: 5px;
	margin-bottom: 15px;
	cursor:pointer;
}

#agb-check[type="checkbox"]:checked+label::before {
    background-image: url("../images/box_checked.png");
}

.agb-link {
    cursor: pointer;
    color: var(--in-text-link);
    text-decoration: var(--in-text-link-decoration);
}

.agb-link hover {
    color: var(--in-text-link-hover);
    text-decoration: var(--in-text-link-decorationHover);
}

