
@font-face {
    font-family: 'SF Pro Display';
    src: url(fonts/SFPRODISPLAYREGULAR.OTF);
}

@font-face {
    font-family: 'SF Pro Bold';
    src: url(fonts/SFPRODISPLAYBOLD.OTF);
}

*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



/* Allgemein */
body {
    font-family: "SF Pro Display";
    height: 90vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
}

.bold {
    font-family: "SF Pro Bold";
    font-size: 40px;
    color: #F4A261;
}



/* Name */
.name {
    position: relative;
    width: 50%;
    height: 50px;
    overflow: hidden;
}

.name input {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: -15px;
    left: 0px;
    color: grey;
    padding-top: 20px;
    border: none;
    outline: none;
}

.name label {
    position: absolute;
    bottom: 0px;
    left: 2px;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-bottom: 1px solid #E0E0E0;
}

.name label::after {
    content: "";
    position: absolute;
    left: -2px;
    bottom: -1px;
    height: 100%;
    width: 100%;
    border-bottom: 3px solid #2a9d8f;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.content-name {
    position: absolute;
    bottom: 5px;
    left: 0px;
    transition: all 0.3s ease;
}

.name input:focus + .label-name .content-name,
.name input:valid + .label-name .content-name {
    transform: translateY(-150%);
    font-size: 14px;
    color: #264653;
}

.name input:focus + .label-name::after,
.name input:valid + .label-name::after {
    transform: translateX(0%);
}



/* Geburtsdatum */
.date {
    position: relative;
    width: 50%;
    height: 50px;
    overflow: hidden;
}

.date input {
    position: absolute;
    height: 100%;
    bottom: -15px;
    left: 0px;
    color: grey;
    padding-top: 20px;
    border: none;
    outline: none;
    font-family: "SF Pro Display";
}

.date label {
    position: absolute;
    bottom: 0px;
    left: 2px;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-bottom: 1px solid #E0E0E0;
}

.date label::after {
    content: "";
    position: absolute;
    left: -2px;
    bottom: -1px;
    height: 100%;
    width: 100%;
    border-bottom: 3px solid #2a9d8f;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.date input:focus + .label-date::after,
.date input:valid + .label-date::after {
    transform: translateX(0%);
}

.content-date {
    position: absolute;
    transition: all 0.3s ease;
}

.date input:focus + .label-date .content-date,
.date input:valid + .label-date .content-date {
    transform: translateY(-10%);
    font-size: 14px;
    color: #264653;
}



/* E-Mail */
.email {
    position: relative;
    width: 50%;
    height: 50px;
    overflow: hidden;
}

.email input {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: -15px;
    left: 0px;
    color: grey;
    padding-top: 20px;
    border: none;
    outline: none;
}

.email label {
    position: absolute;
    bottom: 0px;
    left: 2px;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-bottom: 1px solid #E0E0E0;
}

.email label::after {
    content: "";
    position: absolute;
    left: -2px;
    bottom: -1px;
    height: 100%;
    width: 100%;
    border-bottom: 3px solid #2a9d8f;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.content-email {
    position: absolute;
    bottom: 5px;
    left: 0px;
    transition: all 0.3s ease;
}

.email input:focus + .label-email .content-email,
.email input:valid + .label-email .content-email {
    transform: translateY(-150%);
    font-size: 14px;
    color: #264653;
}

.email input:focus + .label-email::after,
.email input:valid + .label-email::after {
    transform: translateX(0%);
}



/* rainbow
.rainbow {
    width: calc(100% + 40px);
    height: 50px;
    align-self: center;
    margin: 30px 0px;
    background-position: -20%;
    shape-rendering: crispedges;
}
 */



button {
    text-transform: none;
    box-sizing: inherit;
    overflow: visible;
    -webkit-appearance: button;
}

.submitBtn {
    border: none;
    border-radius: .5rem;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: none;
    background-color: white;
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease-in;
}

.submitBtn:hover {
    transform: translateY(2px);
    transition: 0.5s ease;
    box-shadow: 2px 0px 40px #999999;
}



















