html {
    overflow-y: scroll;
}

html,
button,
input,
select,
textarea {
    color: #444444;
}

body {
    background: #f7f7f7;
    color: #000000;
    font-family: Arial, Helvetica, Helvetica Neue;
    font-size: 0.875em;
    height: auto;
    line-height: 1.6em;
}

* {
    border: 0 none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a,
a:active,
a:visited {
    color: #636363;
    text-decoration: underline;
}

a:hover {
    color: #4a64b7;
}

a[href^="tel"]:link,
a[href^="tel"]:visited,
a[href^="tel"]:hover {
    color: #444444;
}

h1 {
    color: #033771;
    font-size: 1.5em;
    line-height: 1.250em;
    margin: 1em 0 0.75em;
    word-wrap: break-word;
    font-weight: normal
}

h2 {
    clear: both;
    color: #000000;
    font-size: 1.25em;
    font-weight: normal;
    margin: 1.5em 0 0.5em;
    word-wrap: break-word;
}

p {
    font-size: 1em;
    line-height: 1.6em;
    margin: 1.5em 0;
}

.small {
    font-size: 0.929em;
    line-height: 1.286em;
    margin: 0.5em 0;
    color: #999999;
}

hr {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-color: #ccc -moz-use-text-color -moz-use-text-color;
    border-image: none;
    border-style: solid none none;
    border-width: 1px 0 0;
    display: block;
    height: 1px;
    margin: 1em 0;
    padding: 0;
}

img {
    height: auto;
    max-width: 100%;
    padding: 0;
    vertical-align: middle;
}

.msg_error {
    margin: 10px 0;
    color: #046ad5;
}

.pagination {
    color: #cccccc;
    font-size: 0.857em;
    margin: 5px 0 0;
    text-align: right;
}

.checkbox_matrix {}

table {
    width: 100% !important;
    border-collapse: collapse;
}

.body td {
    width: auto !important;
    padding: 5px 10px;
}

div.questions {
    margin: 10px 0;
}

div.question,
div.html {
    padding: 5px 10px;
}

div.question_between {
    height: 5px;
}

div.actions {
    margin: 10px 0;
    padding: 5px 10px;
}

div.bg_white {
    background-color: #fff;
    padding-bottom: 20px;
    padding-left: 5px;
    padding-right: 5px;
    height: 100%;
    width: 600px;
}

fieldset {
    border: 0 none;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

#all {
    width: 90%;
    background: #ffffff;
    display: block;
    overflow: hidden;
    margin: 1% auto;
    border: 8px solid #dae5eb;
}

#content_box {
    width: 90%;
    display: block;
    overflow: hidden;
    margin: 2% auto;
}

#logo_box {
    display: block;
    overflow: hidden;
    border-bottom: solid 1px #d3d4d5;
}

#logo {
    display: block;
    overflow: hidden;
    width: 100%;
    margin: 0 0 1em 0;
    text-align: right;
}

#logo a {
    display: block;
    overflow: hidden;
    margin: 0 0 4% 0;
}

#content {
    border-top: solid 1px #ffffff;
    border-bottom: solid 1px #d3d4d5;
    padding-bottom: 1em;
    display: block;
    overflow: hidden;
}

#footer_box {
    border-top: solid 1px #ffffff;
    display: block;
    overflow: hidden;
    padding: 0;
    color: #636363;
    font-size: 0.929em;
    line-height: 1em;
    width: 90%;
    margin: 0 auto 2% auto;
}

.footer {
    font-size: 0.875em;
    line-height: 1.4em;
}

/* Button */

.button {
    background: rgba(0, 0, 0, 0);
    border: 2px solid #444444;
    box-sizing: border-box;
    color: #444444;
    display: inline-block;
    margin: 0;
    min-height: 30px;
    overflow: visible;
    padding: 3px 12px;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.1s ease 0s, background 0.1s ease 0s, color 0.1s ease-in-out 0s;
    vertical-align: middle;
    width: auto !important;
}

.button:hover,
.button:focus {
    background-color: #033771;
    border-color: transparent;
    color: #ffffff;
    outline: medium none;
    text-decoration: none;
}

/* Formulare */

div[id^="wrapper"] {
    background: #ffffff;
}

.answer {
    font-size: 0.875em;
    line-height: 1.125em;
    text-align: center;
    padding: 2px 5px 5px;
}

.question {
    padding: 2px 6px 3px 0px;
}

td.question,
.radiobutton_privacy label,
.radiobutton_group label,
.checkbox_group label {
    font-size: 0.875em;
    line-height: 1.125em;
}

div.wrapper,
div.row,
div.set,
div.enum,
div.varchar,
div.to {
    background: #f9f9f9;
    margin-bottom: 5px;
    padding: 5px 10px;
    display: block;
    overflow: hidden;
}

div.foot {
    clear: both;
    color: #afafaf;
    display: block;
    font-size: 0.9em;
    line-height: 1.2em;
    overflow: hidden;
    padding-top: 0.3em;
}

.abstand {
    border-top: 1px solid #dddddd;
    height: 1px;
    margin: 8px 0 4px 0;
}

.pflicht {
    text-align: right;
    color: #683c11;
}

.body tr:nth-child(even) {
    background: #fafafa;
}

.html .body {
    width: 100%;
}

.head label {
    font-size: 0.875em;
    line-height: 1.2em;
    font-weight: bold;
    display: block;
    margin: 0 0 5px 0;
    color: #033771;
}

div.head div {
    clear: both;
}

div.head,
div.body,
input,
select,
textarea,
.row label,
.row input,
.set label,
.set input,
.varchar label,
.varchar input,
.enum label,
.enum input {
    width: 100%;
    display: block;
}

.row label,
.row input,
.set label,
.set input,
.varchar label,
.varchar input,
.enum label,
.enum input,
.enum select,
label.sub,
div.sub label {
    display: block;
}

input,
select,
textarea {
    border: #e4e4e4 solid 1px;
    padding: 2px 3px;
    font-family: Droid Sans, Arial, Helvetica, Helvetica Neue;
    font-size: 1em;
}

.radiobutton_group .head,
.radiobutton_privacy .head,
.radiobutton_group .body,
.radiobutton_privacy .body,
.radiobutton_group input,
.radiobutton_privacy input,
.radiobutton_matrix .head,
.radiobutton_matrix .body,
.checkbox_group .head,
.checkbox_group .body,
.checkbox_group input,
.checkbox_matrix .head,
.checkbox_matrix .body,
.polarity_matrix .head,
.polarity_matrix .body,
.gauge .head,
.gauge .body {
    width: 100%;
    display: block;
    margin-top: 5px;
}

.radiobutton_group input,
.radiobutton_privacy input,
.checkbox_group input {
    margin-top: 2px;
}

.radiobutton_group .body div,
.radiobutton_privacy .body div,
.checkbox_group .body div {
    display: block;
    width: 100%;
    overflow: hidden;
    clear: both;
    margin: 5px 0;
}

.radiobutton_group label,
.radiobutton_privacy label,
.checkbox_group label {
    float: left;
    display: block;
    width: 85%;
    font-size: 0.875em;
    line-height: 1.45em;
}

.checkbox_matrix input[type=checkbox],
.checkbox_matrix input[type=radio],
.polarity_matrix input[type=checkbox],
.polarity_matrix input[type=radio],
.radiobutton_matrix input[type=checkbox],
.radiobutton_matrix input[type=radio] {
    display: block;
    float: none;
    margin: 0 auto;
    width: auto;
}

.polarity_matrix .body table td.question:last-child {
    text-align: left;
}

input[type=checkbox],
input[type=radio] {
    display: block;
    float: left;
    width: 30px;
}

div.sub label.sub {
    display: block;
    width: 100%;
}

div.sub label.sub input {
    display: block;
    width: auto;
    margin: 4px 10px 0 0;
}

/***************************/

div.date input {
    cursor: pointer;
}

#datepicker {
    position: absolute;
    width: 175px;
    padding: 5px;
    background-color: #fff;
    border: solid 1px #000;
    z-index: 9999;
    font-family: arial;
    font-size: 12px;
}

#datepicker p {
    margin: 0px;
    padding: 0px;
}

#datepicker a {
    color: #999;
    text-decoration: none;
}

#datepicker a:hover {
    color: #000;
}

#datepicker a.active {
    color: #F56E01 !important;
    font-weight: bold;
}

#datepicker a.today {
    color: #F56E01;
}

#datepicker a.weekend {
    color: #9adaf3;
}

#datepicker ul {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
}

#datepicker ul li {
    float: left;
    width: 21px;
    margin: 2px;
    padding: 0px;
    list-style-type: none;
    text-align: right;
}

#datepicker ul li a {
    padding: 2px;
}

#datepicker p {
    text-align: center;
}

#datepicker_year_month {
    font-weight: bold;
}

#datepicker_weekdays {
    margin-top: 3px;
}

@media only screen and (min-width: 480px) {

    div.head,
    div.body,
    .row label,
    .row input,
    .enum label,
    .enum select,
    .set input,
    .varchar input,
    .enum input,
    div.set label,
    div.sub {
        float: left;
    }

    div.sub label {
        display: block;
    }
    .radiobutton_group label,
    .radiobutton_privacy label,
    .checkbox_group label {
        float: left;
        display: block;
        width: 90%;
    }
    div.head,
    .row label,
    .set label,
    .varchar label,
    .enum label {
        width: 40%;
        word-wrap: break-word;
        margin-right: 1%
    }

    div.body,
    .row input,
    .set input,
    .varchar input,
    .enum input,
    .enum select {
        width: 59%;
    }

    div.foot {
        margin-left: 41.5%;
    }
}

@media only screen and (min-width: 640px) {
    #logo {
        width: auto !important;
        height: auto !important;
    }
    #logo a {
        margin: 0 0 2% 0;
    }

    div.head,
    .row label,
    .set label,
    .varchar label,
    .enum label {
        float: left;
        width: 30%;
        word-wrap: break-word;
        margin-right: 1%;
    }

    .single_multi div.head {
        width: 100%;
        display: block;
    }

    div.body,
    .row input,
    .set input,
    .varchar input,
    .enum input,
    .enum select {
        width: 69%;
    }

    div.foot {
        margin-left: 31.5%;
    }
}

@media only screen and (min-width: 768px) {}

@media only screen and (min-width: 860px) {}

@media only screen and (min-width: 1024px) {
    #all {
        width: 960px;
    }


}

/* printer */

#printer,
#printer_imprint {
    font-size: 12px;
    line-height: 16px;

    display: none;
}

#printer_imprint {
    font-size: 10px;
}

#printer > .logo {
    border-bottom: none;

    margin-bottom: 24px;
}

/* polarity */

#printer > div > table {
    width: 70%;
}

#printer > div > table td {
    padding: 5px !important;

    text-align: center;
}

#printer > div > table .head td {
    font-weight: bold;
}

#printer > div > h1 {
    font-size: 12px;
    font-weight: bold;
    line-height: 16px;

    margin: 20px 0 8px 0;
    padding: 0;

    color: #033771;
}

#printer > div > div {
    font-size: 12px;
    line-height: 16px;

    color: #666;
}

#printer > div > p,
#printer > div > table {
    font-size: 13px;
    line-height: 18px;

    margin: 12px 0 20px 0;

    color: black;
}

#printer h1.head {
    font-size: 26px;
    font-weight: normal;
    line-height: 40px;

    margin-bottom: 20px;

    color: #033771;
}

/* print-button */

.btn_print {
    font-size: 14px;

    display: inline-block;

    width: 100px;
    min-height: 30px;
    margin-left: 4px;
    padding: 2px 3px 4px 3px;

    color: #444;
    border: 2px solid #444;
    background-color: white;
}

#printer > div {
    overflow: hidden;

    margin-bottom: 12px;

    border-bottom: 1px solid #ccc;
}

#printer > div > h1 {
    margin: 8px 0;
}

@media only print {
    body {
        background-color: white;
    }

    #all {
        display: none;
    }

    #printer,
    #printer_imprint {
        display: block;
    }
}
