* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-color: #62b2aa;
    --font-color: white;
    --background-color: white;
    --header-color: rgba(1, 1, 1, 0.3);
    --sm-font-lightgrey: #f6f6f6;
    --sm-font-grey: #5c5c5c;
    --sm-warning-color: #db5257;
    --sm-blue-color: #3d82b4;
}

body {
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    position: absolute;
}


main {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;

    width: 100%;
    height: max(auto, 100%);
    min-height: 100%;
    
    padding-top: 70px;
    /*background-image: url(../images/background2.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;*/
}

nav {
    position: fixed;
    top: 0;

    height: 70px;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    
    background-color: white;
    -webkit-box-shadow: 0px 0px 4px 1px #000000; 
    box-shadow: 0px 0px 4px 1px #000000;

    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 18px;

    z-index: 100;
}

.sm-icon {
    position: absolute;
    right: 15px;
    width: 40px;
}

@media(max-height: 800px) {
    main {
        justify-content: flex-start!important;
    }
}

@media(max-width: 450px) {
    form {
        border-radius: 0!important;
        box-shadow: none!important;
    }
}

@media(min-width: 450px) {
    .sidebar {
        width: 350px;
    }
} 

@media(max-width: 420px) {
    form {
        padding: 10%!important;
        padding-bottom: 5px!important;
    }
}

@media(max-width: 530px) {
    ::placeholder {
        opacity: 1!important;
    }
    .inputlabel {
        display: none!important;
    }
    .alwaysVis {
        flex-direction: column!important;
    }

    .alwaysVis .inputlabel {
        display: block!important;
    }
}

@media(max-width: 320px) {
    form {
        padding: 5px!important;
        padding-bottom: 5px!important;
    }
}

form {
    filter: blur(0px)!important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: auto;
    padding: 50px 40px;
    padding-bottom: 20px!important;
    border-radius: 10px;
    background-color: white;
    /*margin-top: 55px;*/
    -webkit-box-shadow: 0px 0px 15px 0px #000000; 
    box-shadow: 0px 0px 8px 1px #000000;
}

#content-wrapper {
    border-radius: 10px;
}



input[type=text],input[type=email],input[type=tel],input[type=number] {
    width: 300px;
    height: 40px;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
    border-bottom: solid black 1.5px;
    background-color: rgba(98,178,170, 0.5);
    padding: 5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

input[type=date],input[type=datetime] {
    width: 300px;
    height: 40px;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
    border-bottom: solid black 1.5px;
    background-color: rgba(98,178,170, 0.5);
    padding: 5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

::placeholder {
    opacity: 0;
}

.labledInput .inputlabel {
    width: 300px;
    font-family: Arial, Helvetica, sans-serif;
    flex-basis: 30%;
    display: flex;
    height: 40px;
    justify-content: center;
    flex-direction: column;
}

form textarea {
    max-width: 300px;
    min-width: 300px;
    width: 300px;
    height: 80px;
    min-height: 40px;
    max-height: 200px;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
    border-bottom: solid black 1.5px;
    background-color: rgba(98,178,170, 0.5);
    padding: 5px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

input:-webkit-autofill{
   /*-webkit-text-fill-color: rgba(98,178,170, 0.5) !important;*/
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px rgba(98,178,170, 0.5) inset !important;
}

input[type=submit] {
    font-size: 1.25em;
    color: grey;
    font-family: Arial, Helvetica, sans-serif;
    background-color: black;
    width: 300px;
    height: 40px;
    text-align: center;
    background-color: rgba(98,178,170, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: solid black 1.5px!important;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

select {
    width: 300px;
    height: 40px;
    background-color: rgba(98,178,170, 0.5);
    outline: none;
    border: none;
    border-bottom: solid black 1.5px!important;
    text-align: center;
}

.inputfile {
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}

a {
    font-family: Arial, Helvetica, sans-serif;
    color: grey;
}

input[type=button] {
    font-size: 1.25em;
    color: grey;
    font-family: Arial, Helvetica, sans-serif;
    background-color: black;
    width: 300px;
    height: 40px;
    text-align: center;
    background-color: rgba(98,178,170, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-items: center;
    border-right: none;
    border-top: none;
    border-left: none;
    outline: none;
    border-bottom: solid black 1.5px!important;
    overflow: hidden;
    font-size: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    white-space: pre-line;
}

input[type=button]:hover {
    background-color: rgba(98,178,170, 0.4);
}

.inputfile + label {
    font-size: 1.25em;
    color: grey;
    font-family: Arial, Helvetica, sans-serif;
    background-color: black;
    width: 300px;
    height: 40px;
    text-align: center;
    background-color: rgba(98,178,170, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: solid black 1.5px!important;
    overflow: hidden;
    font-size: 100%;
}

.inputfile:focus + label,
.inputfile + label:hover {
    background-color: rgba(98,178,170, 0.4);
}

.inputfile + label {
	cursor: pointer; /* "hand" cursor */
}

.inputfile:focus + label {
	outline: 1px dotted #000;
	outline: -webkit-focus-ring-color auto 5px;
}

.overlay {
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 101;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex!important;
    background-color: rgba(1, 1, 1, 0.4);
}

.loading {
    display: none;
}

.loading h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: max(2vw, 20px);
    text-align: center;
    color: white;
}

.loading h2 {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    color: white;
}

.loading h3 {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    color: lightgray;
}

#finished-loader {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: none;
}

.visible {
    display: flex!important;
}

.loading button {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    background-color: #62b2aa;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    width: 100px;
    height: 35px;
    color: white;
    cursor: pointer;
    border-radius: 0;
}

.sm-logo .rect {
    background-color: #62b2aa;
    width: 30px;
    height: 60px;
    transform: skew(-30deg);
    border-top-left-radius: 8%;
    border-bottom-right-radius: 8%;
    border: solid white 1px;
}

.sm-logo {
    display: flex;
    flex-direction: row;
    width: 62px;
    justify-content: space-between;
}

.sm-logo .rect .fill {
    width: 100%;
    height: 100%;
    background-color: white;
    border-top-left-radius: 8%;
    border-bottom-right-radius: 8%;
   /* transition: height 0.0001s;*/
}

.sm-checkbox {
    width: 300px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}

.sm-checkbox label {
    font-family: Arial, Helvetica, sans-serif;
    color: grey;
    margin-left: 10px;
    font-size: 16px;
}

.sm-checkbox input {
    height: 18px;
    min-width: 18px;
}

#unterschrift {
    width: 100%;
}

.sidebar-button {

    height: 35px;
    width: 35px;

    position: absolute;

    left: 25px;
    top: 20px;

    display: flex;
    flex-direction: column;

    align-content: center;
    justify-content: space-evenly;

    cursor: pointer;

    z-index: 99;

}

.sidebar-button div {
    background-color: black;
    height: 5px;
    width: 100%;
}

.sidebar {
    z-index: 100;
    height: 100%;
    position: fixed;
    background-color: white;
    width: 0;
    left: 0px;
    top: 0px;
    -webkit-box-shadow: 0px 0px 15px 0px #000000; 
    box-shadow: 0px 0px 8px 1px #000000;
    transition: width .2s;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    border-bottom: solid black 1px;
}

.sidebar-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

h1 {
    font-family: Arial, Helvetica, sans-serif;
}

h5 {
    font-weight: lighter;
    font-family: Arial, Helvetica, sans-serif;
}

.startscreen {
    background-color: white;
    -webkit-box-shadow: 0px 0px 15px 0px #000000; 
    box-shadow: 0px 0px 8px 1px #000000;
    padding: 20px;
    z-index: 101;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#start-overlay {
    display: none;
}

#start-overlay button {
    font-size: 1.1em;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    background-color: black;
    width: 100px;
    height: 30px;
    text-align: center;
    background-color: rgba(98,178,170, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid black 0.5px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}


button {

    height: 50px;
    width: 300px;

    padding: 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: var(--main-color);

    border-radius: 10px;
    border: none;

    outline: none;

    color: var(--sm-font-grey);

    transition: color 0.05s;

    cursor: pointer;
}

button:active {
    color: rgba(215, 215, 215, 0.228);
    transition: color 0.05s;
}

.sm-icon {
    position: absolute;
    right: 15px;
    width: 40px;
}

.sm-logo-text {
    margin-top: 30px;
    margin-bottom: 30px;
}

.welcome-message {
    padding: 0px 55px;
    font-size: 18px;
    margin-bottom: 15px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

.menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    padding: 0px 25px;
}

.menu-item {
    margin: 10px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    border: solid black 2px;
    overflow: hidden;

    border-radius: 10px;


    -webkit-box-shadow: 0px 0px 4px 1px #000000; 
    box-shadow: 0px 0px 4px 1px #000000;
    
    max-height: 338px;

}

.open {
    height: fit-content!important;
    max-height: fit-content!important;
}

.open ul {
    height: auto!important;
}

.menu-icon {
    padding: 20px;
}

.menu-item button {
    border-radius: 0px!important;
    border-bottom: solid var(--sm-font-grey) 1px;
}

.menu-item * {
}

.menu-item ul {
    overflow: hidden;
    height: 0px;
    background-color: var(--main-color);
    width: 100%;
    text-align: center;
}

.menu-item hr {
    color: var(--sm-font-grey);
    background-color: var(--sm-font-grey);
    border-color: var(--sm-font-grey);
    width: 100%;
}

.menu-item ul li {
    height: 50px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--sm-font-grey);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: solid var(--sm-font-grey) 0.1px;
    cursor: pointer;
}

.menu-item ul li:last-child {
    border-bottom: none;
}

#close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    cursor: pointer;
}

#wrapper {
    display: none;
}

.labledInput {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 10px;
    margin-bottom: 10px;
}

#content-wrapper {
    width: min(100%, 800px);
    overflow-y: auto;
}

.hidden {
    display: none!important;
}

h2 {
    font-family: Arial, Helvetica, sans-serif;
    width: min(520px,100%);
    text-align: center;
    margin-bottom: 10px;
}

p {
    width: min(520px,100%);
    text-align: justify;
}
