@import url("source-sans-pro.css");
@import url("jetbrains-mono.css");
@import url("reset.css");

body {
    line-height: 1.5;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 16px;
    margin: 24px;
    counter-reset: ebene1 imgfigcaption tablefigcaption prefigcaption;
}

a {
    color: #0000cc;
    text-decoration: underline;
}

a:hover {
    color: #cc0000;
}

h1,h2,h3,h4,h5,h6 {
    font-weight: bold;
    margin-bottom: 16px;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
}

h4,h5 {
    font-size: 20px;
}

h6 {
    font-size: 16px;
}

h1+small {
    display: block;
    margin-top: -12px;
    margin-bottom: 16px;
}

ol {
    list-style: decimal;
}

ul {
    list-style: square;
}

ol li, ul li {
    margin-left: 24px;
}

p, ol, ul  {
    margin-bottom: 16px;
}

dd {
    font-size: 12px;
    padding-left: 8px;
}

dd:not(:last-child) {
    margin-bottom: 8px;
}

code, pre {
    font-family: "JetBrains Mono", monospace;
    font-variant-ligatures: no-contextual;
}

strong, b {
    font-weight: bold;
}

pre {
    white-space: pre-wrap;
    display: block;
}
figure>pre {
    padding: 8px;
    background-color: #cccccc;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    border-left: 1px solid #000000;
    border-top: 1px solid #000000;
}

td,th {
    padding: 8px;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

th {
    font-weight: bold;
    color: #ffffff;
    background-color: #000000;
    text-align: left;
    vertical-align: middle;
}

tr:nth-child(even) th {
    background: #333333;
}

tr:nth-child(odd) td {
    background: #cccccc;
}

table.condensed td, table.condensed th {
    padding: 2px;
    font-size: 14px;
}

figure {
    margin-bottom: 16px;
}

figcaption {
    font-size: 12px;
    padding: 8px;
}

blockquote, q {
    quotes: none;
}
blockquote::before, blockquote::after,
q::before, q::after {
    content: '';
    content: none;
}

blockquote {
    margin-bottom: 16px;
}

blockquote::after {
    font-size: 12px;
    content: 'Quelle: ' attr(cite);
}

kbd {
    padding: 2px;
    border-radius: 4px;
    border-color: #000000;
    border-style: solid;
    border-width: 1px 1px 2px 1px;
    background-color: #ffffff;
}

var {
    color: #666666;
    font-style: italic;
}

em {
    font-style: italic;
}

.highlight1 {
    background-color: #ffffcc !important;
}

.highlight2 {
    background-color: #ccffff !important;
}

.highlight3 {
    background-color: #ffccff !important;
}

.highlight-good {
    background-color: #ccffcc !important;
}

.highlight-bad {
    background-color: #ffcccc !important;
}

small, .small {
    font-size: 12px;
}

table+table {
    margin-top: 16px;
}

.big {
    font-size: 24px;
}

.hcenter, table.hcenter td, table.hcenter th {
    text-align: center;
}

.vcenter, table.vcenter td, table.vcenter th {
    vertical-align: middle;
}

figure > div {
    margin-bottom: 16px;
}

img+figcaption::before, div+figcaption::before {
    content: "Abbildung: ";
}

table+figcaption::before {
    content: "Tabelle: ";
}

pre+figcaption::before {
    content: "Codebeispiel: ";
}

@media print {
    a {
    text-decoration: none;
    color: inherit;
    }
    a::after {
        content: ' (' attr(href) ')';
    }

    .noprint {
        display: none;
    }

    .page-break-before {
        page-break-before: always;
    }
    
    .page-break-after {
        page-break-after: always;
    }
}

@media screen {
    h1, h2, h3, h4, h5, h6 {
        border-bottom: 1px solid #cccccc;
        padding-bottom: 2px;
    }
}

.hint {
    padding: 8px;
    background-color: #ffffcc;
    border: 1px solid #ffcc00;
}

.demobox {
    display: inline-block;
    width: 200px;
    height: 100px;
    border: 1px solid #000000;
    text-align: center;
    line-height: 100px;
}

.nobr {
    white-space: nowrap;
}
