/* DATEI:  th-mds.de - design-specials.css */

/* Textauszeichnungen */

.clearfloat {
    clear: both;
}

.small {
    font-size: .9em;
}

.tiny {
    font-size: .8em;
}

.footnote {
    font-family: ExoMedium;
    font-size: .9em;
    color: #888;
    padding-top: .2em;
    border-top: 1px solid #888;
}

.blockquote {
    font-style: italic;
    margin-bottom: 2em;
}

.quote {
    color: #004080;
}

.quote::before {
    content: "\201E";
}

.multicolumns {
    -webkit-column-count: 2;  
    -webkit-column-width: 20em; 
    columns: 2 20em;
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;  
}

.multicolumns p {
    text-align: justify;
}

.author {
    color: #444;
}

.author::before {
    content: "\201D\2002\2002\2014\2002";    
}

.date {
    color: #004080;
    font-family: ExoMedium;
    font-style: italic;
    font-size: .9em;
    text-align: left;
    margin: 0 0 .5em 0;    
}

.filename {
    color: #004080;
}

.pre {
    white-space: pre;
}

.done {
    font-family: ExoBold,"Lucida Sans Unicode",Tahoma,Helvetica,Arial,sans-serif;
    font-weight: bold;
    color: #090;
}

.error {
    color: #b00;
}

.warn {
    color: #e0b020;
}

.valid {
    color: #25b025;
}

.hint {
    color: #f00;
}

.marked {
    color: #004080;
}

.new {
    background: #ffeacd;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

a:hover span.error, a:hover span.hint {
    color: #fff;
}

/* Ende - Textauszeichnungen */

/* Listen */

aside dt {
    float: left;
    font-family: ExoSemiBold;
    width: 3em;
    margin-right: 0.5em;
}

aside dd::after {
    clear: left;
    content: " ";
    display: block;
}

/* Ende - Listen */

/* Bilder und Buttons */

.button-upright {
    width: 160px;
    border: 1px solid #898e94;
}

.button-upright-left {
    float: left;
    width: 160px;
    margin: 0 1em .5em 0;
    border: 1px solid #898e94;
}

.button-upright-right {
    float: right;
    width: 160px;
    margin: 0 0 .5em 1em;
    border: 1px solid #898e94;
}

/* Ende - Bilder und Buttons */

/* Tabellen */

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fafafa;
    border-top: 1px dotted #bbb;
}

tr {
    border-bottom: 1px dotted #bbb;
}

thead th {
    color: #fff;
    background-color: #003060;
    margin: 0;
    padding: .5em 1em;
}

thead th.rotate {
    height: 9em;
    white-space: nowrap;
    margin: 0;
    padding: 0 0 1em .5em;
    text-align: left;
    vertical-align: bottom;
}

thead th.rotate div {
    width: 2em;
    transform: rotate(315deg);
    -webkit-transform: rotate(315deg);
    -moz-transform: rotate(315deg);
    -o-transform: rotate(315deg);
    -ms-transform: rotate(315deg);
}

tbody tr:nth-of-type(odd) {
    background-color: #eee;
}

tbody td {
    padding: .3em 1em;
}

/* Ende - Tabellen */

/* Formulare */

fieldset {
    margin: 0 0 2em 0;
    padding: .5em 1.2em;
    border: 0;
}

fieldset.table {
    margin: 0;
    padding: 0;
}

fieldset.login {
    margin: 0;
    padding: .5em .5em;
    border-bottom: 1px solid #c9ced4;
}

fieldset.frame {
    background: #f8f8f8;
    border: 1px solid #bbb;
}

fieldset.frame_filled {
    background: #eee;
    border: 1px solid #c9ced4;
}

fieldset p {
    max-width: 100%;
    margin: .5em 0;
    padding: 0;
    text-align: left;
}

fieldset label {
    font-family: ExoMedium;
    font-size: .95em;
    text-align: left;
    padding: 0;
    margin: 0;
}

fieldset input {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: ExoMedium;
    font-size: 1.1em;
    width: calc(100% - .6em);
    padding: .3em .3em;
    margin: 0;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: .2em;
}

fieldset textarea {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: ExoMedium;
    font-size: 1.1em;
    width: calc(100% - .6em);
    padding: .3em .3em;
    margin: 0;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: .2em;
}

fieldset select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: ExoMedium;
    font-size: 1.1em;
    width: 100%;
    padding: .3em 2em .3em .3em;
    margin: 0;
    outline: none;
    color: #000;
    border: 1px solid #aaa;
    border-radius: .2em;
    background-color: #fff;
    background-image: url(../gfx/design/down.svg);
    background-size: 1em;
    background-repeat: no-repeat;
    background-position: right 5px center;
}

fieldset select::-ms-expand {
    display: none;
}

fieldset .long {
    max-width: 30em;
}

fieldset .medium {
    max-width: 20em;
}

fieldset .short {
    max-width: 10em;
}

fieldset .timestamp {
    max-width: 15em;
}

/* Begin upload-Feld input type="file" */

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

.inputfile + label {
    box-sizing: border-box;
    max-width: 100%;
    font-family: ExoMedium;
    font-size: 1.1em;
    /* 20px */
    overflow: hidden;
    white-space: wrap;
    text-overflow: ellipsis;
    cursor: pointer;
    display: block;
    padding: .5em 1em;
    /* 10px 20px */
    color: #888;
    background: #eee;
    border: 1px solid #bbb;
    border-radius: .2em;
}

.inputfile + label::before {
    display: inline-block;
    position: relative;
    bottom: -2px;
    content: "";
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath style='fill:%23888888' d='M7 9h2v-4h3l-4-4-4 4h3zM10 6.75v1.542l4.579 1.708-6.579 2.453-6.579-2.453 4.579-1.708v-1.542l-6 2.25v4l8 3 8-3v-4z'%3E%3C/path%3E%3C/svg%3E");
}

.inputfile:focus + label,
.inputfile.has-focus + label,
.inputfile + label:hover {
    color: #fff;
    background-color: #a2b8d9;
}

.inputfile + label:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath style='fill:%23ffffff' d='M7 9h2v-4h3l-4-4-4 4h3zM10 6.75v1.542l4.579 1.708-6.579 2.453-6.579-2.453 4.579-1.708v-1.542l-6 2.25v4l8 3 8-3v-4z'%3E%3C/path%3E%3C/svg%3E");
}

.inputfile + label * {
    /* pointer-events: none; */
    /* in case of FastClick lib use */
}

.inputfile + label svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
    margin-top: -0.25em;
    /* 4px */
    margin-right: 0.25em;
    /* 4px */
}

/* Ende upload-Feld input type="file" */

input:focus, textarea:focus {
    outline: none !important;
    border: 1px solid #ce3f00;
    box-shadow: 0 0 2px 1px #ce3f00; 
}

select:focus {
    border: 1px solid #ce3f00;
    box-shadow: 0 0 2px 1px #ce3f00; 
}

fieldset button { /* siehe Media-Query in design-general.css -> width wird auf 100% gesetzt */
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: ExoMedium;
    font-weight: normal;
    font-size: 1.1em;
    color: #eee;
    cursor: pointer;
    padding: .3em 4em;
    margin: .5em 0;
    border: 1px solid #004080;
    border-radius: .2em;
    background: #004080;
}

fieldset button:hover {
    color: #fff;
    border: 1px solid #ce3f00;
    background: #ce3f00;
}

p.url, p.mail { /* Formularfelder für Spamschutz */
    display: none;
}

/* Checkbox label */
.checkbox {
    display: block;
    position: relative;
    padding-left: 1.7em;
    margin-bottom: 12px;
    width: calc(100% - 1.7em);
    cursor: pointer;
    font-family: ExoMedium;
    font-size: 1;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

p .checkbox, td .checkbox {
    padding: .2em 0 0 2em;
}

.checkbox:hover {
    color: #ce3f00;
}

p.singlebox {
    padding-top: .6em;
}

/* Hide the browser's default checkbox */
.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark, .checkmark-valid, .checkmark-warn, .checkmark-error {
    position: absolute;
    top: 2px;
    left: 0;
    height: 17px;
    width: 17px;
    background-color: #fff;
    border: 1px solid #aaa;
}

/* On mouse-over, add a grey background color */
.checkbox:hover input ~ .checkmark, .checkbox:hover input ~ .checkmark-valid, .checkbox:hover input ~ .checkmark-warn, .checkbox:hover input ~ .checkmark-error {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox input:checked ~ .checkmark {
    background-color: #104080;
}

.checkbox input:checked ~ .checkmark-valid {
    background-color: #00ff00;
}

.checkbox input:checked ~ .checkmark-warn {
    background-color: #ffd000;
}

.checkbox input:checked ~ .checkmark-error {
    background-color: #ff0000;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after, .checkmark-valid:after, .checkmark-warn:after, .checkmark-error:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox input:checked ~ .checkmark:after, .checkbox input:checked ~ .checkmark-valid:after, .checkbox input:checked ~ .checkmark-warn:after, .checkbox input:checked ~ .checkmark-error:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkbox .checkmark:after, .checkbox .checkmark-valid:after, .checkbox .checkmark-warn:after, .checkbox .checkmark-error:after {
    left: 5px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

fieldset.frame div.error, fieldset.login div.error, fieldset.table div.error  {
    font-family: ExoBold;
    font-weight: bold;
    margin: 1em 0 .5em;
    padding: .4em;
    color: #fff;
    background: #ce3f00; /* #ffd3bf; */
    border: 1px solid #ce3f00; /* #cfa39f; */
    border-radius: .2em;
}

fieldset.table div.error  {
    margin: 0 0 1.5em;
    padding: .4em;
}

fieldset div.error p {
    text-align: center;
    padding: 0;
    margin: 0;
}

fieldset div.error p a {
    color: #fbb;
}

fieldset p.error_field input, fieldset p.error_field textarea, fieldset p.error_field select {
    background: #ffd3bf;
    border: 1px solid #cfa39f;
}

fieldset p.error_field input:focus, fieldset p.error_field textarea:focus {
    outline: none !important;
    border: 1px solid #600;
    box-shadow: 0 0 2px 1px #600; 
}

fieldset p.error_field select:focus {
    border: 1px solid #600;
    box-shadow: 0 0 2px 1px #600; 
}

p.error_singlebox {
    margin-top: 1.5em;
    padding: .5em .3em 0 .6em;
    width: calc(100% - .9em);
    background: #ffd3bf;
    border: 1px solid #cfa39f;
    border-radius: .2em;
}

/* Ende - Formulare */


/* Ende */
