/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@font-face {
    font-family: 'Gotham Rounded';
    src: url('../fonts/subset-GothamRounded-Book.woff2') format('woff2'),
    url('../fonts/subset-GothamRounded-Book.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Rounded';
    src: url('../fonts/subset-GothamRounded-Medium.woff2') format('woff2'),
    url('../fonts/subset-GothamRounded-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Rounded';
    src: url('../fonts/subset-GothamRounded-Bold.woff2') format('woff2'),
    url('../fonts/subset-GothamRounded-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Rounded';
    src: url('../fonts/GothamRounded-Light.woff2') format('woff2'),
    url('../fonts/GothamRounded-Light.woff') format('woff');
    font-weight: 200;
    font-style: normal;
}



html {
    font-size: 20px;
}

body {
    background: url('../img/gras.jpg') no-repeat;
    background-position: center calc(100% - 390px);
    background-size: 100%;
    color: #004E32;
    font-family: 'Gotham Rounded', Arial, sans-serif;
    line-height: 1.2;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

p {
    margin: 0;
    line-height: 28px;
}

p:first-child {
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

img {
    height: auto;
    max-width: 100%;
}

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

a:hover {
    text-decoration: underline;
}

.leftButton, .rightButton {
    border: 0px none;
    background: transparent;
}

.leftButton a, .rightButton a {
    background: #004E32;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.24);
    border-radius: 36px;
    font-family: 'Gotham Rounded';
    font-size: 24px;
    color: #FFFFFF;
    letter-spacing: 0;
    text-align: center;
    padding: 16px 32px;
    font-weight: bold;
    cursor: pointer;

}

.leftButton a:hover, .rightButton a:hover {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.48);
    background: #efa118;
}

.leftButton a:active, .rightButton a:active {

}

.leftButton a:focus, .rightButton a:focus {outline:0;}

.stage {
    position: relative;
}

.stage:before {
    background: url('../img/holz.jpg') no-repeat center center;
    background-size: cover;
    bottom: 0;
    content: "";
    height: 390px;
    left: 0;
    position: absolute;
    width: 100%;
    z-index: -1;
}

main {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    max-width: 1260px;
    min-height: calc(100vh - 70px);
    position: relative;
    width: 100%;
}

footer {
    font-size: .9rem;
    padding-bottom: 12px;
    padding-top: 37px;
    text-align: center;
}

footer a {
    color: #FFFFFF;
}

h1 {
    font-family: 'Gotham Rounded';
    font-size: 64px;
    color: #004E32;
    letter-spacing: 0;
    font-weight: bold;
    margin: 64px 0 7px 0;
    text-transform: uppercase;
}

h2 {
    font-family: 'Gotham Rounded';
    font-size: 40px;
    color: #004E32;
    letter-spacing: 0;
    font-weight: 200;
    margin: 0 0 32px 0;
    text-transform: uppercase;
}

.header-logo {
    width: 100%;
    text-align: right;
    position: absolute;
    display: flex;
    justify-content: flex-end;
}

.top {
    display: flex;
    flex-direction: column;
    padding-left: 30px;
    margin-bottom: -160px;
}

.change-language {
    list-style-type: none;
    display: flex;
}

.change-language li:nth-child(1):after {
    content: '|';
    display: inline-block;
    padding: 0 10px;
}

.change-language li.active {
    font-weight: bold;
}

.block {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.blockButtons {
    display: flex;
    justify-content: space-between;
    width:100%;
}

.block .leftButton, .block .rightButton {
    display: none;
}

.leftButton, .rightButton {
    width: 50%;
    text-align:center;
}

.left {
    align-self: flex-start;
    text-align: center;
    margin-top: 240px;
    flex-direction: column;
}

.left .text {
    margin-bottom: 20px;
    margin-top: auto;
    text-align: right;
    padding-right: 60px;
}

.text-big {
    font-size: 1.7rem;
}

.right {
    text-align: center;
    align-self: flex-start;
    margin-top: 96px;
    flex-direction: column;
}

.right .text {
    padding-right: 100px;
}

.faltschachteln-link {
    text-align: center;
}

.faltschachteln {
    text-align: center;
}


@media all and (min-width: 1922px) {

    body {
        background-size: cover;
    }
}

@media all and (max-width: 1921px) {

    body {
        background-size: auto 100%;
    }

    .stage:before {
        background-size: 100% 100%;
    }

}


@media all and (max-width: 1240px) {

    body {
        background-position: center calc(100% - 450px);
    }

    .stage:before {
        height: 450px;
    }


}

@media all and (max-width: 1023px) {

    .stage:before {
        height: 1060px;
        background: url('../img/holzhintergrund.jpg') no-repeat center center;
        background-size: auto;
        background-repeat: repeat;
    }

    body {
        background-position: center calc(100% - 1060px);
        min-height: auto;
    }

    .header-logo {
        text-align: right;
    }

    .header-logo img {
        height: auto;
        margin-left: 0;
        width: 200px;
    }

    .block {
        flex-direction: column;
        top: 0;
        position: initial;
        width: 100%;
    }

    .blockButtons {
        display: none;
    }

    .block .leftButton, .block .rightButton {
        display: block;
        width: 100%;
        text-align:center;
        margin-top: 16px;
    }

    .block .leftButton {
        order: 4;
    }

    .block .rightButton {
        order: 2;
    }

    .top {
        margin-bottom: 0;
    }

    .left {
        order: 3;
        margin-top: 80px;
        width: 100%;
    }

    .left .text {
        padding-right: 0;
        text-align: left;
    }

    .right {
        order: 1;
        width: 100%;
        margin-top: 30px;
    }

    .right .text {
        text-align: center;
    }

    .faltschachteln {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    footer {
        background: url(../img/verlauf.png);
        width: 100%;
        height: 120px;
        background-repeat: repeat-x;
        background-size: cover;
    }

    footer a {
        line-height: 120px;
    }

}


@media all and (max-width: 768px) {

    html {
        font-size: 18px;
    }

    body {
        background-position-y: calc(100% - 1080px);
    }

    .stage:before {
        height: 1080px;
    }

    .top {
        margin-top: 122px;
        padding-right: 30px;
    }

    .noShow {
        display: none;
    }

}



@media all and (max-width: 650px) {

    .header-logo img {
        width: 150px;
    }

    h1 {
        font-size: 40px;
        letter-spacing: 0;
    }

    h2 {
        font-size: 24px;
        letter-spacing: 0;
    }

    .leftButton, .rightButton {
        font-size: 20px;
    }

    body {
        background-position-y: calc(100% - 1000px);
    }

    .stage:before {
        height: 1000px;
    }

}


@media all and (max-width: 480px) {

    html {
        font-size: 16px;
    }

    body {
        background-position-y: calc(100% - 900px);
    }

    .stage:before {
        height: 900px;
    }

    .text-big {
        font-size: 1.5rem;
    }

    .header-logo img {
        width: 120px;
    }

    .headline {
        margin-bottom: 30px;
        width: 80%;
    }

    footer {
        padding-bottom: 17px;
        padding-top: 67px;
    }

}

@media all and (max-width: 375px) {

    body {
        background-position-y: calc(100% - 790px);
        min-height: 0;
    }

    .stage:before {
        height: 790px;
    }

}

@media all and (max-width: 340px) {

    .leftButton a, .rightButton a, h2 {
        font-size: 20px;
    }

    h1 {
        font-size: 30px;
        margin-top: 32px;
    }

    h2 {
        margin-top: 16px;
    }

}

/* IE specific styles
========================================================================== */

@media all and (-ms-high-contrast:none) {

    .right {
        display: block;
    }

}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
