/* Forms */
form {
    line-height: 1;
    background-color: rgba(221,210,197,1);
    -webkit-box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    -moz-box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    padding: 1em;
    border-radius: 0.5em;
    margin-bottom: 2em;
}

label {
    display: block;
    line-height: 1.7;
}

/* Form Elements */
div.fileupload,
input,
input[type="text"],
input[type="url"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="submit"],
select,
textarea {
    background-color: rgba(221,210,197,1);
    padding: 0.25em;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

select option {
    background-color: rgba(221,210,197,1);
    color: #555555;
}

textarea {
    width: 100%;
    min-width: 18rem;
    max-width: 100%;
    height: 18rem;
}

input[type="text"],
input[type="url"],
input[type="tel"],
input[type="email"],
input[type="date"] {
    width: 100%;
}

/* Submit Button */
div.fileupload,
input[type="submit"] {
    color: #555555;
    background: rgba(221,210,197,1);
    padding: 0.5rem 1rem;
}

div.fileupload:hover,
input[type="submit"]:hover,
input[type="submit"]:focus {
    color: white;
    text-decoration: underline;
    background: rgba(221,210,197,1);
}

div.fileupload:active,
input[type="submit"]:active {
    background: rgba(221,210,197,1);
    color: white;
}

/* Form Tables */
tr.formtablerow {
    border-top: 1px solid #cccccc;
}

tr.formtablerow:first-of-type {
    border-top: 0;
}

td.formtablecell {
    padding-left: 10px;
}

input.inputform {
    margin: 2px;
    float: right;
}

/* File Upload */
.fileupload {
    border-radius: 0.25em;
    position: relative;
    overflow: hidden;
}

.fileupload input {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.001;
    cursor: pointer;
    height: 100%;
}

/* Desktop Anpassungen */
@media screen and (min-width: 768px) {
    input[type="text"],
    input[type="url"],
    input[type="tel"],
    input[type="email"],
    input[type="date"] {
        min-width: 3rem;
        width: 12rem;
        max-width: 100%;
    }
}