@font-face {
    font-family: special-elite;
    src: url(../assets/special-elite.ttf);
}

@font-face {
    font-family: story;
    src: url(../assets/story.ttf);
}

html, body {
    margin: 0;
    font-family: special-elite;
    color: #ffffff;
    overflow: hidden;
}

h1 {
    font-family: special-elite;
    font-size: 10dvh;
    margin: 0;
}

h2 {
    font-family: special-elite;
    font-size: 6dvh;
    margin: 0;
}

h3 {
    font-family: special-elite;
    margin: 10px;
    font-size: 3dvh;
}

h4 {
    margin: 0;
    font-size: 2.6dvh;
}

.underlined {
    text-decoration: underline;
}

.logoContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}

.logoContainer img {
    height: 75px;
    padding: 0 20px;
}

.formContainer {
    height: calc(100dvh - 80px);
    width: 100dvw;
    overflow: hidden;

    /* Basis + Farbverlauf */
    background:
        radial-gradient(circle at 30% 20%, #f3e6c9 0%, #d6c19a 40%, #9c6b3c 100%);

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 0;
}

.formContainer > * {
    position: relative;
    z-index: 2;
}

.formContainer::before,
.formContainer::after {
    z-index: 1;
}

/* Flecken / ungleichmäßige Struktur */
.formContainer::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 70% 30%, rgba(120,80,40,0.25), transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(80,50,20,0.3), transparent 70%),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.15), transparent 80%);

    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Noise Texture */
.formContainer::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image: 
        url('../assets/paper.png'),
        url('../assets/noise.png');
    opacity: 1;

    mix-blend-mode: multiply;
    pointer-events: none;
}

/* dunkle verbrannte Ränder */
.formContainer {
    box-shadow:
        inset 0 0 120px rgba(0,0,0,0.7),
        inset 0 0 250px rgba(60,30,10,0.9);
}

.backdropTitle {
    font-family: special-elite;
    color: #f4dfa2;
    text-shadow: -6px -3px 0 #423325;
}

.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    padding-top: 50px;
    padding-bottom: 20px;
    width: 60%;
}

.form fieldset {
    display: flex;
    flex-direction: column;
    font-size: 1.5rem;
    border: none;
}

.form fieldset label {
    padding-top: 20px;
}

.form fieldset input, .form fieldset select, .form fieldset textarea {
    width: 400px;
    height: 30px;
    border-radius: 10px;
    margin-top: 10px;
    border: none;
    outline: #423325 2px solid;
    font-size: 1.5rem;
    background-color: white;
}

.form fieldset input:focus, 
.form fieldset select:focus, 
.form fieldset textarea:focus {
    outline: #f4dfa2 2px solid;
}

.form fieldset textarea {
    height: 100px;
}

.radio {
    display: flex;
    width: 100%;
    height: 30px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
}

.radio input {
    height: 20px !important;
    width: 20px !important;
    margin: 0 !important;
    margin-right: 10px !important;
    outline: none !important;
}

.radio label {
    padding-top: 0 !important;
}

.kidCard {
    border: #423325 3px solid !important;
    border-radius: 10px;
}

button {
    width: 400px;
    border-radius: 10px;
    padding: 10px;
    color: #f4dfa2;
    font-size: 1.5rem;
    border: none;
    background-color: #421e10;
    cursor: pointer;
}

button:hover {
    background-color: #391a0e;
}

.marginTop {
    margin-top: 20px;
}

.registrationConditions {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.6dvh;
    margin-top: 10px;
    cursor: pointer;
}

.registrationConditions img {
    padding-right: 10px;
}

input.error, textarea.error, select.error {
    border: 2px solid #ea503f;
    background: rgba(192, 57, 43, 0.08);
}

.error-message {
    font-size: 1.2rem;
    color: #ff9184;
    margin-top: 4px;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 6dvh;
    }

    h2 {
        font-size: 4.5dvh;
    }

    h3 {
        font-size: 2.5dvh;
    }

    h4 {
        font-size: 2.5dvh;
    }

    .logoContainer {
        flex-direction: column;
        padding-top: 0;
    }

    .logoContainer img {
        padding-top: 20px;
    }

    .form fieldset {
        font-size: 1.2rem;
    }

    .formContainer {
        height: calc(100dvh - 40px);
        max-height: calc(100dvh - 40px);
        padding: 20px 0;
    }

    .form {
        padding-top: 20px;
        width: 90%;
    }

    .form fieldset {
        width: 90%;
    }

    .form fieldset input, .form fieldset select, .form fieldset textarea {
        width: 90%;
    }

    button {
        width: 90%
    }

    .backdropTitle {
        text-shadow: -3px -1px 0 #423325;
    }

    .registrationConditions {
        font-size: 1.2rem;
    }
}
