*,
html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: monospace;
    text-transform: lowercase;
    color: #333;
    text-align: center;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
}

.main-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Header */
header {
    margin-bottom: 3rem;
}

#logo {
    width: 100vw;
    text-align: center;
    margin-top: 50px;
}

#logo img {
    width: 80%;
    max-width: 400px;
}

.website-name {
    text-align: center;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 0 2rem;
}

.website-name span {
    display: block;
}

.website-name span:first-child {
    font-size: 20px;
    margin-bottom: .5rem;
}

.icon-instagram {
    width: 30px;
    height: auto;
    position: absolute;
    left: 2rem;
    top: 1.5rem;
    z-index: 2;
}

/* Navigation */
.burger-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

nav.main-menu {
    height: 0;
    width: 100vw;
    overflow: hidden;
    transition: all 0.5s;
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
}

#burger:checked + .burger + nav.main-menu {
    height: 100vh;
}

label.burger {
    display: block;
    width: 60px;
    height: 60px;
    position: relative;
    margin-left: auto;
    margin-right: 1rem;
    margin-top: .5rem;
    z-index: 1;
    background-color: #fff;
    border-radius: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

input#burger {
    display: none
}

.line {
    position: absolute;
    height: 4px;
    width: 40px;
    background: #555;
    display: block;
    transition: 0.5s;
    transform-origin: center;
    margin-left: 10px;
    margin-top: 4px;
}

.line:nth-child(1) {
    top: 12px;
}

.line:nth-child(2) {
    top: 24px;
}

.line:nth-child(3) {
    top: 36px;
}

#burger:checked + .burger .line:nth-child(1) {
    transform: translateY(12px) rotate(-45deg);
}

#burger:checked + .burger .line:nth-child(2) {
    opacity: 0;
}

#burger:checked + .burger .line:nth-child(3) {
    transform: translateY(-12px) rotate(45deg);
}

#burger:checked + .burger {
    box-shadow: none;
    background-color: transparent;
}

.main-menu ul {
    margin-top: 5rem;
}

.main-menu ul li a {
    font-size: 2rem;
    line-height: 2;
    padding: .3rem 1rem;
}

.menu-item-active a {
    background-color: #000;
    color: #fff;
}

/* Content - Allgemein */
h1 {
    font-weight: normal;
    letter-spacing: 5px;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

/* Startseite */
.verlinkung-bild-container {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 0;
    margin-bottom: 2rem;
}

.verlinkung-bild-container:not(:last-child) {
    margin-right: 2rem;
}

.verlinkung-bild {
    position: relative;
    z-index: 0;
    height: 200px;
}

.verlinkung-bild:not(:last-child) {
    margin-bottom: 2rem;
}

.verlinkung-bild-container figcaption {
    font-size: 25px;
    padding: .5rem;
    background-color: rgba(85, 85, 85, .5);
    clip-path: polygon(0 20%, 100% 45%, 100% 100%, 0% 100%);
    height: 5rem;
    margin-top: -6rem;
    line-height: 4.3;
    color: #fff;
}

.verlinkung-bild-container:nth-child(2) figcaption {
    clip-path: polygon(0 35%, 100% 25%, 100% 100%, 0% 100%);
}

.verlinkung-bild-container:nth-child(3) figcaption {
    clip-path: polygon(0 15%, 100% 35%, 100% 100%, 0% 100%);
}

.verlinkung-bild-container:nth-child(4) figcaption {
    clip-path: polygon(0px 42%, 100% 31%, 100% 100%, 0% 100%);
}

.verlinkung-bild img {
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    object-fit: cover;
    object-position: center;
    height: 100%;
    width: 100%;
}

/* Bildergalerie - Unterseiten */
.galerie {
    display: block;
    padding: 0;
}

.galerie-flex-item {
    margin: 0 3em 1.5em 0;
    padding: 0;
    transition: all .5s ease-in-out;
    width: 100%;
    height: 100%;
}

.galerie-flex-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.galerie-flex-item figcaption {
    font-size: .8rem;
    color: #aaa;
    text-align: right;
    margin-top: .5rem;
}

.with-border {
    border: 1px solid #ececec;
}

/* Footer */
.footer-container {
    padding: 2rem 0;
}

.footer-container span {
    display: block;
    line-height: 1.5;
}

@media only screen and (min-width: 768px) {
    .menu-container {
        max-width: 980px;
        margin: 4rem auto;
        padding: 0 2rem;
    }

    /* Header */
    #logo {
        margin-top: 0;
    }

    .icon-instagram {
        position: absolute;
        left: auto;
        top: 1.5rem;
        right: 2rem;
    }

    /* Navigation */
    .burger-menu {
        position: static;
        width: auto;
    }

    label.burger {
        display: none;
    }

    nav.main-menu {
        height: auto;
        position: static;
        width: 100%;
        background-color: #fff;
    }

    .main-menu ul {
        list-style-type: none;
        margin: 0;
        border-top: 1px solid #b9b9b9;
        border-bottom: 1px solid #b9b9b9;
    }

    .main-menu ul li {
        display: inline;
        margin: 0 .5rem;
    }

    .main-menu ul li a {
        padding: .3rem 1rem;
        font-size: 1.1rem;
        line-height: 2.5;
        letter-spacing: 1px;
        transition: all .3s ease-in-out;
    }

    .main-menu ul li a:hover {
        background-color: #000;
        color: #fff;
    }

    /* Startseite */
    .startseite-verlinungen {
        display: flex;
        justify-content: space-between;
    }

    .verlinkung-bild {
        transition: all .3s ease-in-out;
    }

    .verlinkung-bild:not(:last-child) {
        margin-right: 2rem;
    }

    .verlinkung-bild:hover {
        transform: scale(1.05);
    }

    .verlinkung-bild figcaption {
        font-size: 22px;
    }

    /* Bildergalerie - Unterseite */
    .galerie {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .galerie-flex-item {
        margin: 0 0 1.5em 0;
        padding: 0;
        transition: all .5s ease-in-out;
        width: calc(33% - 2em);
        height: 100%;
    }

    .galerie-flex-item:hover {
        transform: scale(1.05);
    }

    /*.galerie::after {
        content: "";
        flex: auto;
    }*/
}

@media only screen and (min-width: 980px) {
    .verlinkung-bild figcaption {
        font-size: 27px;
    }
}