/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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,
button,
input,
select,
textarea {
    color: #222;
}

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * 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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

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

/*@import url(http://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700|Roboto+Slab:400,700); */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

nav {
    padding: 0;
    position: fixed;
    font-size: 1.1rem;
    z-index: 200;
    background-color: rgba(0, 0, 0, 0.7);
}

ul {
    margin: 0;
    padding: 0.5rem 0 0.7rem 0;
}

li {
    display: inline;
    color: white;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 1rem 0.8rem 0.8rem 0.8rem;
}

nav ul li a:hover {
    background-color: #ffc107;
}

nav ul li a:visited {
    color: white;
}

.top-background {
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    cursor: default;
    height: 61.8%;
}

.background-img {
    background-image: url(../img/bokeh2560x1600.jpg);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-size: cover;
    background-position: top;
    height: 100%;
}

.message {
    position: absolute;
    bottom: 10%;
    margin: 0 1rem 0 1rem;
    overflow: visible;
}

.message > h2 {
    font-size: 1.8rem;
    line-height: 2.2rem;
    color: white;
    text-shadow: 0 0 8px rgba(0,0,0,.6); 
}

.arrow {
    position: absolute;
    bottom: 3%;
    left: 50%;
}



#wrapper {
    position: absolute;
    top: 65%;
}

/*article {
    margin: 1.6rem 1rem 1.6rem 1rem;
}*/

section {
/*    margin-bottom: 2rem;*/
    margin: 1.6rem 1rem 2rem 1rem;
}

.logo-color {
    color: silver;
}

.break {
    height: 10rem;
    text-align: center;
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
} 

.break  h2 {
    margin: 0;
    padding: 2.4rem 0 0 0;
    font-size: 2.2rem;
    text-shadow: 0 0 8px rgba(0,0,0,.6); 
}

.break figcaption {
    padding-right: 1rem;
    position: relative;
    top: 3.4rem;
    text-align: right;
    color: white;
    font-size: 0.6rem;
}
    
.break figcaption a:visited {
    color: white;
}

.break figcaption a:hover {
    background-color: #ffc107;
    color: black;
}

.aesthetik {
    background-image: url(../img/david1.jpg);
    background-size: cover;
    background-position: top;
    color: white;
}

.effizienz {
    background-image: url(../img/800px-Nuna3atZandvoort2.jpg);
    background-size: cover;
    background-position: bottom;
    color: white;
}

.konsequenz {
    background-image: url(../img/wally.png);
    background-size: cover;
    background-position: top;
    color: white;
}

.verstaendlichkeit {
    background-image: url(../img/gruen1.png);
    background-size: cover;
    background-position: top;
    color: white;
}

.erfolgserlebnisse {
    background-image: url(../img/erfolgserlebnisse.png);
    background-size: cover;
    background-position: top;
    color: white;
}

.zufriedenheit {
    background-image: url(../img/polar_bear_s.jpg);
    background-size: cover;
    background-position: bottom;
    color: white;
}


.double {
    min-width: 50%;
    padding: 0 0.4rem 0 0;
    float: left;
}

.tripple {
    min-width: 33%;
    padding: 0 2rem 0 0;
    float: left;    
}

h1, h2 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
}

h1 {
    font-size: 2rem;
    line-height: 2.2rem;
}

h2 {
    font-size: 2rem;
    margin: 2rem 0 0.7rem 0;
}

h3 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

h4 {
    margin: 1rem 0 0.4rem 0;
    font-size: 1.1rem;
    font-weight: 400;
}

.light {
    font-weight: 300;
}

b {
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
}

p {
    margin-top: 0;
    font-size: 1em;
    line-height: 1.4em;
    font-weight: 300;
    text-align: left;
    hyphens: auto;
    max-width: 42rem;
    -webkit-hyphens:auto;
    -webkit-hyphenate-limit-after:1;
    -webkit-hyphenate-limit-before:3;
    -moz-hyphens:auto;
    -moz-hyphenate-limit-after:1;
    -moz-hyphenate-limit-before:3;
    -ms-hyphens:auto;
    -ms-hyphenate-limit-after:1;
    -ms-hyphenate-limit-before:3;
}

p a {
    color: black;
}

p a:hover {
    background-color: #ffc107;
}

p a:visited {
    color: black;
}

.caption {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.4);
}

.caption > a:visited , .caption > a {
    color: rgba(0, 0, 0, 0.4);
}

.caption > a:hover {
    color: rgba(0, 0, 0, 1);
}

figcaption {
    padding: 0.2rem 0 0.8rem 0;
    font-size: 0.8em;
    font-weight: 300;
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
}

p a {
/*    background-color: #ffecb3;*/
    text-decoration: underline;
/*    color: white;

    padding: 1rem 1rem 0.8rem 1rem;*/
}


.org {
    font-family: 'Roboto Slab', serif;
}

.adn > a:visited {
    color: black;
}

footer{
    margin: 3rem 1rem 0 1rem;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.5);
}

footer p {
    max-width: 100%;
}




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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

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

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

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

@media only screen and (min-width: 37em) {
    /* Style adjustments for viewports that meet the condition */
    
    nav {
    padding: 0 0 0 2rem;
    }

    nav ul li a {
    padding: 1rem 1rem 0.8rem 1rem;
    }

    .message {
        margin: 0 4rem 0 4rem;
    }

    .message > h2 {
        font-size: 3.6rem;
        line-height: 4rem;
    }

    .center {
    max-width: 44rem;
    display: block;
    margin: 0 auto;
    }

    .break {
    height: 16rem;
    } 

    .break  h2 {
    margin: 0;
    padding: 4rem 0 0 0;
    font-size: 3.6rem;
    text-shadow: 0 0 8px rgba(0,0,0,.6); 
    }

    .break figcaption {
    padding-right: 1rem;
    position: relative;
    top: 5.4rem;
    text-align: right;
    font-size: 0.7rem;
    }

/*    article {
    margin: 3rem 1rem 3rem 1rem;
    }*/

    section {
/*    margin-bottom: 4rem;*/
   margin: 3rem 1rem 3rem 1rem;
    }

    h1 {
    font-size: 2.4rem;
    line-height: 2.8rem;
    }

    h2 {
    font-size: 2.2rem;
    margin: 2rem 0 0.7rem 0;
    }

    h3 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    }

    h4 {
    margin: 1rem 0 0.4rem 0;
    font-size: 1.2rem;
    }

    p {
    font-size: 1.2em;
    line-height: 1.5em;
    }   

    footer{
    color: rgba(0, 0, 0, 0.3);
    }
}

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

        .message > h2 {
        font-size: 2.8rem;
        line-height: 3.2rem;
    }
}


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

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

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

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