html {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.3em;
}

body {
    margin: 0;
    padding: 0;
}

header {
    padding: 2em 1em;
    border-bottom: 1px solid #999;
    margin-bottom: 2em;
    background: #f1f1f1;
}

header ul li strong,
section ul li strong {
    display: block
}

main,
body > section {
    padding: 0 1em 2em 1em;
}

main > section:not(:first-child) {
    border-top: 2px dashed #999;
    margin-top: 2em;
}

code, ul.code-list li {
    display: inline-block;
    font-family: "Courier New", Courier, monospace;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    background: rgba(255, 250, 205, .75);
    color: #666;
    padding: .2em .2em .1em .2em;
    line-height: .9em;
    font-size: .9em;
}

ul.code-list li.default {
    font-weight: bold;
    color:#333;
}

dt {
    font-family: monospace;
    padding-top: .5em;
}

dd {
    padding-bottom: .5em;
}

section div.example,
section div.example div,
section div.example2,
section div.example2 div {
    padding: .3em;
    background: rgba(0, 0, 0, .1);
}

.example p,
.example2 p {
    background: #597ea2;
    color: #fff;
    padding: .3em .5em;
}

.example2 p {
    border: 1px solid rgba(0, 0, 0, .3);
}

section div.example,
section div.example div,
section div.example p {
    border: 1px solid #000;
}

section div.example::before,
section div.example div::before,
section div.example p::before {
    color: #000;
    background: #ff0;
    border: 1px solid #000;
    font-family: Courier, monospace;
    padding: .2em;
    display: block;
    font-size: .6em;
    line-height: 1em;
    margin-top: -1em;
    text-align: center;
    font-weight: bold;
}

section div.example::before {
    content: "div.example";
    width: 72px;
}

section div.example div::before {
    content: "div";
    width: 20px;
}

section div.example p::before {
    content: "p";
    background: #f90;
    width: 14px;
}

section div.divboxes {
    min-height: 10vh;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1em;
    background: rgba(0, 0, 0, .1);
}

section div.divboxes div {
    flex: 0 0 100px;
    height: 100px;
    margin: 1em;
}

/*
 * TABELLEN
 * * */

table, th, td {
    border: 1px solid grey;
    padding: .3em .5em;
}

th {
    text-align: left;
    background: #8db1ff;
}

td {
    background: #fff;
}

td, tfoot th {
    text-align: right;
}


/*
 * FORMULARE
 * * */

div.form-group {
    margin-bottom: 1em;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

div.form-group label {
    flex: 0 0 20%;
}

div.form-line {
    background: transparent !important;
}

input, select, textarea {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    display: inline-block;
}

input[type=radio], input[type=checkbox] {
    display: inline;
}

/*
kleiner Scherz zu margins
*/
section#distances {
    background-image: url("../img/aircond.jpg");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 384px auto;
}

section#distances > p {
    max-width: 65vw;
}