/*
  v1.8
*/

/* Stylesheet für Selfhtml Design 01
  responsives Layout mit Flexbox ab Z. 247 */

/* ====================================================  GLOBAL DEFINITION  ========================================= */

*,
::before,
::after {
    box-sizing: border-box;
}

:root {
    --akzentfarbe: #a21517;
    --nav-width: 51px;
    --nav-line-left: calc(var(--nav-width) * 0.13333333);
    --nav-line-width: calc(var(--nav-width) - 2 * var(--nav-line-left));
    --nav-height: calc(var(--nav-width) * 2 / 3);
    --nav-line-height: calc(var(--nav-height) * 0.08);
    --nav-line-dist: calc(var(--nav-height) * 0.24);
}

body {
    margin: 0 auto;
    padding: 0 1em;
    font: normal 1em Arial, sans-serif;
    color: var(--akzentfarbe);
    background-color: #ffffff;
}

main {
    margin: 0 0 .5em 0;
    padding: 0;
}

p,
ol,
ul,
dl {
    color: #333;
}

a {
    text-decoration: none;
}

/* ====================================================  HEADER  ==================================================== */

header h1 {
    margin: 0;
    padding: .5em .5em .1em 0;
    text-decoration: none;
}

header h1 a {
    padding: .5em .5em .25em 0;
    color: var(--akzentfarbe);
}

header p {
    margin-top: 0;
    margin-bottom: 0;
}

header span {
    margin-bottom: 0.25em;
    font-size: 1.2em;
    display: block;
    flex-direction: row;
    justify-content: space-between;
}

/* ====================================================  NAV  ==================================================== */

input.hackbox {
    display: none;
}

label.hackbox-label {
    position: fixed;
    top: 0;
    right: 0;

    cursor: pointer;
    text-align: right;

    padding: 0;
    display: block;
    background: var(--akzentfarbe);
    width: var(--nav-width);
    height: var(--nav-height);
    border-radius: var(--nav-line-height);
}

nav.main ul {
    display: none;
    list-style: none inside none;
}

nav.main a {
    color: #fff;
    font-size: 1.1em;
    line-height: 1.7em;
    padding: 0.5em 0.7em;
}

nav.main a[aria-current=page] {
    color: #000;
}


input.hackbox[type=checkbox]:checked~ul {
    margin: 0;
    padding: 0;
    display: block;
    position: fixed;
    top: var(--nav-height);
    right: 0;

    color: black;
    background-color: var(--akzentfarbe);
    z-index: 10;

    animation: translating 0.5s linear;
}

@keyframes translating {
    0% {
        transform: translate(200px, -100px);
    }

    100% {
        top: var(--nav-height);
        right: 0;
    }
}

nav.main li {
    padding-bottom: 0.3em;
}

input.hackbox[type=checkbox]:checked~label.hackbox-label {
    border-radius: 0;
}

.line {
    position: absolute;
    left: var(--nav-line-left);
    height: var(--nav-line-height);
    width: var(--nav-line-width);
    margin: 0;
    background: #fff;
    border-radius: calc(var(--nav-line-height) / 2);
    display: block;
    transition: 0.5s;
    transform-origin: center;
}

.line:nth-child(1) {
    top: var(--nav-line-dist);
}

.line:nth-child(2) {
    top: calc(var(--nav-line-dist) * 2);
}

.line:nth-child(3) {
    top: calc(var(--nav-line-dist) * 3);
}

input.hackbox[type=checkbox]:checked+.hackbox-label .line:nth-child(1) {
    transform: translateY(var(--nav-line-dist)) rotate(-45deg);
}

input.hackbox[type=checkbox]:checked+.hackbox-label .line:nth-child(2) {
    opacity: 0;
}

input.hackbox[type=checkbox]:checked+.hackbox-label .line:nth-child(3) {
    transform: translateY(calc(-1 * var(--nav-line-dist))) rotate(45deg);
}

/* ====================================================  CONTENT  ==================================================== */

h1,
h2 {
    color: var(--akzentfarbe);
}

h1 {
    font-size: 1.8em;
}

h2 {
    font-size: 1.333333333em;
}

h3 {
    margin-bottom: 0;
    font-size: 1em;
    font-weight: bold;
    color: black;
}

hr {
    width: 100%;
    height: 1.8em;
    margin: 0;
    border: 0 none;
    color: var(--akzentfarbe);
    background-color: var(--akzentfarbe);
}

hr.footer {
    height: 0.5em;
}

main article ul {
    margin: 0 1em;
    padding: 0;
    list-style: disc outside none;
}

main article>ul:last-child>li:last-child {
    margin-bottom: 1em;
}

p.contact {
    margin-bottom: 5em;
}

article>h2+p>img {
    width: 100%;
    margin: .15em 0 1.5em 0;
    float: right;
}

main article p {
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

a[href^="mailto:"] {
    -ms-hyphens: manual;
    -webkit-hyphens: manual;
    hyphens: manual;
}

main article {
    font-size: 1.2em;
}

main article li li {
    font-size: inherit;
}



/* ====================================================  NAV  ==================================================== */

@media screen and (min-width: 25em) {
    article>h2+p>img {
        width: 50%;
        margin: .15em 0 1em 0.5em;
    }
}

@media screen and (min-width: 45em) {

    label.hackbox-label {
        display: none;
    }

    nav.main ul {
        display: block;
    }

    nav.main ul {
        margin-top: 0;
        margin-bottom: 0;
        border-width: 0;
        padding: 0;
        text-align: center;
    }

    nav.main li {
        padding: 0em;
        color: black;
        display: inline;
    }

    nav.main a {
        padding: 0;
        color: black;
        font-size: inherit;
        line-height: normal;
    }

    nav.main li+li:before {
        content: " | ";
    }

    nav.main a[aria-current=page] {
        color: var(--akzentfarbe);
    }

    article>h2+p>img {
        width: 33%;
        margin: .15em 0 1.5em 1.5em;
    }

    body {
        max-width: 55em;
        font: normal 1em Arial, sans-serif;
    }

    h2 {
        font-size: 1.6em;
    }

    main article p {
        -ms-hyphens: manual;
        -webkit-hyphens: manual;
        hyphens: manual;
    }

    main article {
        font-size: 1em;
    }

    header span {
        display: flex;
    }
}

/* ====================================================  FOOTER  ==================================================== */

footer p {
    margin: 0 auto;
}

footer a {
    color: black;
}