form {
    background-color: red;
    font-family: Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    display: block;
    margin-left: auto;
    margin-right: auto
}


/* Beschriftung über Eingabefelder */


/*label[for] {
    display: block;
}*/


/* Bechriftung neben Eingabefelder */

label[for] {
    min-width: 10em;
    display: inline-block;
    text-align: left;
    font-weight: bold;
}

input {
    width: 24em;
}

textarea {
    width: 24em;
    font-family: Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-size: 0.9em;
}

form div {
    padding: 0.2em;
}

label:first-child {
    vertical-align: top;
}

input[type="submit"] {
    margin-left: 9em;
}

input[type="submit"],
input[type="reset"] {
    width: 9em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    background: #dcdcdc;
    border: 2px solid #6c6c6c;
}


/* Stylen */

fieldset {
    width: 35em;
    padding-top: 1.5em;
    padding-left: 1.5em;
    background: #e6e6e6;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

input:hover,
textarea:hover {
    background: #fffff0;
    border: 2px solid #efe816;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

input[type="submit"]:hover,
input[type="reset"]:hover {
    background: #c9c9c9;
    border: 2px solid #6c6c6c;
}

input[type="submit"]:active,
input[type="reset"]:active {
    background: #8f8f8f;
}

input[type="email"]:required+label::after {
    color: red;
    content: " ⨉";
}

input[type="email"]:valid+label::after {
    color: green;
    content: " ✓";
}

input[type="checkbox"] {
    text-align: left;
    width: 1em;
}