body {
    font-family: Arial, Helvetica, sans-serif;
}

#logo,
.zentriert {
    text-align: center;
}

#canvas {
    display: block;
    margin: 40px auto 0 auto;
    border: 3px solid #999;
}

#toggle {
    display: block;
    width: 140px;
    height: 30px;
    margin: 20px auto 0 auto;
}

#herleitung {
    width: 900px;
    margin: 40px auto 0 auto;
    line-height: 1.26em;
}

#ueberschrift {
    margin-top: 68px;
    font-size: 2em;
    font-weight: normal;
}

#herleitung sub {
    font-size: 0.7em;
}

p.img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gerahmt {
    border: 5px solid #FFC000;
    padding: 6px;
}

.klein {
    font-size: 0.9em;
    font-style: italic;
}

#Seitenanfang {
    position: fixed;
    right: 20px;
    bottom: 20px;
    font-size: 3em;
    color: var(--blaugruen);
    z-index: 999;
    display: none;
}

#Seitenanfang a {
    opacity: 0.3;
    transition: color 1s, opacity 1s;
}

#Seitenanfang a:hover {
    color: var(--magenta);
    opacity: 0.6;
}

#footer {
    width: 100%;
    margin: 20px auto 0 auto;
    padding: 0.5em 0;
    background-color: #eee;
    font-size: 0.9em;
    line-height: 1.4em;
    text-align: center;
    border: 1px solid #ccc;
}

table {
    border-collapse: collapse;
    border: 1px solid #bbb;
}

td {
    border: 1px solid #bbb;
    padding: 4px 12px;
}

a {
    font-weight: bold;
    color: #d64322;
    text-decoration: none;
}

a:hover {
    opacity: 0.6;
}

h1,
h3 {
    text-align: center;
    color: #888;
}

h4 {
    color: #57b;
    font-weight: normal;
    font-size: 1.4em;
    margin-top: 44px;
    margin-bottom: 0;
}

.code {
    font-family: 'Courier New', Courier, monospace;
    color: #333;
}

.fett {
    font-weight: bold;
}

#pdfLink,
#demoLink {
    text-align: center;
}

#pdfLink img {
    vertical-align: middle;
}

pre,
xmp {
    border: 1px solid #cccc88;
    background-color: #ffffdd;
}

@media (max-width: 900px) {
    #herleitung {
        margin: 0;
        width: 100%;
    }
    #herleitung img {
        max-width: 100%;
    }
}

@media (max-width: 530px) {
    #canvas {
        margin: 40px 0 0 0;
        border: 1px solid #999;
    }
}