/*
 * Media IV: styles for the three pages of this site.
 * The four column grid puts the content in the second column, which is
 * why every block repeats the same grid-template-columns.
 */

@font-face {
    font-family: "Open Sans Light";
    font-style: normal;
    font-weight: 300;
    src: url("fonts/OpenSans-Light.ttf") format("truetype");
}

body {
    margin: 0;
    background-color: #fff;
    font-family: "Open Sans Light", "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: #000;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 2rem;
    margin-bottom: .5rem;
    line-height: 1.1;
    color: #000;
}

h1 {
    font-size: 2.5rem;
}

svg {
    fill: #000 !important;
    vertical-align: middle;
    margin-right: .2rem;
}

/* Header */

.topbar {
    width: 100%;
    min-height: 66px;
    border-bottom: 1px solid rgba(0, 0, 0, .1) !important;
    background-color: #fff;
}

.topbar img {
    float: right;
    height: 52px;
    width: auto;
    margin: 7px 20%;
    vertical-align: middle;
}

/*
 * Content. The page is a four column grid whose second column holds the
 * text, which is why every block repeats the same grid-template-columns.
 */

.page-title {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
}

.page-title h1 {
    grid-column-start: 2;
}

.text-block {
    color: #000;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    margin: 3rem 0;
}

.text-block .inner {
    grid-column-start: 2;
}

.hero {
    display: flex;
    justify-content: center;
}

.hero img {
    width: 40%;
    height: auto;
}

.action-block {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
}

.action-block .actionbutton {
    grid-column-start: 2;
}

.actionbutton a {
    color: #fff;
    background-color: #000;
    border-radius: .25rem;
    padding: .375rem .75rem;
}

.actionbutton svg {
    fill: #fff !important;
}

/* Footer */

footer {
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    font-size: 85%;
    background-color: #f8f9fa;
    color: #262626;
}

footer a {
    color: #262626;
}

.footer-left {
    grid-column-start: 2;
}

.footer-right {
    grid-column-start: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.footer-right a:hover {
    color: #000;
}

.mobile {
    display: flex;
    justify-content: space-between;
}

.icon {
    transform: rotate(90deg);
}

#impressum::after {
    content: "|";
    margin: 0 .5rem;
}

@media (max-width: 768px) {

    .text-block {
        grid-template-columns: 1fr;
        padding-left: 15px;
    }

    .text-block .inner {
        grid-column-start: 1;
    }

    .action-block {
        grid-template-columns: 1fr;
        padding-left: 15px;
    }

    .action-block .actionbutton {
        grid-column-start: 1;
    }

    .hero img {
        width: 100%;
    }

    footer {
        padding-left: 15px;
        grid-template-columns: 1fr;
    }

    .footer-right {
        grid-row-start: 1;
        grid-column-start: 1;
    }

    .footer-left {
        grid-row-start: 2;
        grid-column-start: 1;
    }
}
