/* ----------------------------------------------------------------------------- *
 *                           Styles der Basisversion                             *
 * ----------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------- *
 * Ã„nderung des default-Box-Modells aller Elemente auf "border-box"
 * http://www.paulirish.com/2012/box-sizing-border-box-ftw/
 * << apply a natural box layout model to all elements >>
 * ----------------------------------------------------------------------------- */
*, *:before, *:after {
    -webkit-box-sizing: border-box; /* Safari/Chrome, andere WebKit-Browser */
    -moz-box-sizing: border-box; /* Firefox, andere Gecko-Browser */
    box-sizing: border-box; /* Opera/IE 8+ */
}

/* ----------------------------------------------------------------------------- */
.page-wrapper {
    margin: 0;
}

header {
    padding: 0.0em 5px;
}

aside, footer {
    padding: 0.6em 20px;
}

section {
    padding: 0 20px;
}

.mainContent {
    width: 100%;
    border-top: 1px solid transparent;
}

aside {
    width: 100%;
    margin-left: 0;
}

/* ----------------------------------------------------------------------------- *
 *                             Textauszeichnungen                                *
 * ----------------------------------------------------------------------------- */
h1 {
    margin: 0;
}

h2 {
    margin: 0.6em 20px;
}

p.teasertext {
    margin: 0.8em 20px;
}

ul, ol {
    padding: 0;
    margin: 0 0 0.625em 20px;
}

/* ----------------------------------------------------------------------------- *
 *                                  Navigation                                   *
 * ----------------------------------------------------------------------------- */
nav ul {
    margin: 0;
}

nav ul > li {
    margin-left: 0;
    border-bottom: 1px solid rgba(250, 250, 250, 0.6);
}

nav ul > li > a, nav ul > li > strong {
    padding: 0.6em 20px;
    display: block;
}

nav ul a:link {
    text-decoration: none;
}

/* ----------------------------------------------------------------------------- *
 *                           Styles der Tabletversion                            *
 *                          750px / 16px/em = 46.875em                           *
 * ----------------------------------------------------------------------------- */
@media only screen and (min-width: 46.875em) {
    
    /* Schriftverkleinerung wird fÃ¼r groÃŸe Screens wieder aufgehoben */
    @media only screen and (max-width: 78em) {
        body {
            font-size: 0.938em; /* 15px */
        }
    }

    .main {
        /* clearing fÃ¼r die floatenden gleichlangen Spalten (.mainContent und .aside) */
        overflow: hidden;
    }

    .mainContent {
        width: 70%;
        float: left;
        padding: 0.8em 20px;
        border-top: none;
    }

    aside {
        width: 30%;
        margin-left: 70%;
        /* Trick fÃ¼r gleichlange Spalten  - dazu gehÃ¶rt ein overflow: hidden fÃ¼r den umgeb. Container */
        margin-bottom: -99999px !important;
        padding-bottom: 99999px !important;
    }

    aside, footer {
        padding: 0.8em 20px;
    }

    section {
        padding: 0;
    }

    /* ----------------------------------------------------------------------------- *
     *                             Textauszeichnungen                                *
     * ----------------------------------------------------------------------------- */
    h2 {
        font-size: 2.1875em; /* 35px */
        line-height: 1.2em;
        margin: 0.3em 0 0;
    }

    p.teasertext {
        margin: 0.8em 0;
    }

    /* ----------------------------------------------------------------------------- *
     *                                  Navigation                                   *
     * ----------------------------------------------------------------------------- */
    nav {
        /* clearing fÃ¼r die floatenden LIs */
        overflow: hidden;
        font-size: 1.2em; /* 18px */
    }

    nav ul {
        margin: 0 20px;
    }

    nav ul li {
        float: left;
        border: none;
        width: auto;
    }

    nav ul > li > a {
        padding: 0.7em 10px 0.7em 10px;
        display: inline-block;
    }
}

/* ----------------------------------------------------------------------------- *
 *                          Styles fÃ¼r kleine Desktops                           *
 *                           1024px / 16px/em = 64em                             *
 * ----------------------------------------------------------------------------- */
@media only screen and (min-width: 64em) {
    /* Navigation wird links neben dem Inhalt angeordnet */
    nav {
        width: 20%;
        float: left;
        box-shadow: none;
    }

    nav ul {
        margin: 1.6em 0 0;
    }

    nav ul > li {
        width: 100%;
        float: none;
    }

    nav ul > li > a {
        padding: 0.8em 25px;
        display: block;
    }

    /* .main macht Platz fÃ¼r .nav */
    .main {
        width: 80%;
        float: left;
    }

    /* GrÃ¶ÃŸenanpassungen */
    .mainContent {
        width: 60%;
        padding: 0.8em 20px;
    }

    aside {
        width: 35%;
        margin-left: 65%;
    }

    footer {
        clear: left;
    }
}
/* ----------------------------------------------------------------------------- *
 *                          Styles fÃ¼r groÃŸe Desktops                            *
 *                           1248px / 16px/em = 78em                             *
 * ----------------------------------------------------------------------------- */
@media only screen and (min-width: 78em) {
    .page-wrapper {
        margin: 0 auto;
        max-width: 78em;
    }
}


/* ----------------------------------------------------------------------------- *
 *                      Beispiel Responsive-Nav im Basis-Layout                  *
 * ----------------------------------------------------------------------------- */
/* responsive-nav.js v1.0.14 by @viljamis - start */
/*
 #nav ul {
     margin: 0;
     padding: 0;
     width: 100%;
     display: block;
     list-style: none;
 }
 #nav li {
     width: 100%;
     display: block;
 }
 */
.js #nav {
    clip: rect(0 0 0 0);
    max-height: 0;
    position: absolute;
    display: block;
    overflow: hidden;
    zoom: 1;
}

#nav.opened {
    max-height: 9999px;
}
/* responsive-nav.js v1.0.14 by @viljamis - ende */

/*
 * Eigene Anpassungen fÃ¼r den Toggle-Button
 */
#nav-toggle {
    display: inline-block;
    position: absolute;
    right: 3%;
    top: 1em;
    -webkit-border-radius: 0.4em;
    -moz-border-radius: 0.4em;
    border-radius: 0.4em;
    cursor: pointer;
    padding: 0.357em;
    color: #D0E4F2;
    background: #6B7632;  /* #4A6491;*/
    border: 1px solid #4A6491;
}

#nav-toggle:hover {
    border: 1px solid #D0E4F2;
    background: #D0E4F2;
    color: #1A1F2B;
}

/* ----------------------------------------------------------------------------- *
 *                  Beispiel Responsive-Nav im im Desktop-Layout                 *
 * ----------------------------------------------------------------------------- */
@media only screen and (min-width: 46.875em) {
    /* responsive-nav.js v1.0.14 by @viljamis - start */
    .js #nav {
        position: relative;
    }

    .js #nav.closed {
        max-height: none;
    }

    #nav-toggle {
        display: none;
    }

    /* responsive-nav.js v1.0.14 by @viljamis - ende */
}





/* ----------------------------------------------------------------------------- *
 *                       Kapitel: AnpassungsfÃ¤hige Bilder                        *
 *                          750px / 16px/em = 46.875em                           *
 * ----------------------------------------------------------------------------- */
/* Bilder flexibel machen:
 * hier mit max-width: 100%; damit sie nicht grÃ¶ÃŸer werden als das Original
 * width: 100%; wÃ¼rde die Bilder immer einpassen, aber u.U. auch aufblÃ¤hen
 **/
img {
    max-width: 100%;
    height: auto;
}

/* figure.slides-Container um die Bilder */
.slides {
    margin: 20px 0;
    line-height: 0;
}

figcaption {
    background-color: #EDEDED;
    font-size: 0.875em; /* 14px */
    line-height: 1.4em;
    padding: 0.5em;
}

/* Andere AbstÃ¤nde und Schatten auf grÃ¶ÃŸeren Screens */
@media only screen and (min-width: 46.875em) {
    .slides {
        margin: 0 0 2em 0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}



/* ----------------------------------------------------------------------------- *
 *                          Styles fÃ¼r Teaserboxen                               *
 * ----------------------------------------------------------------------------- */

/* clearing fÃ¼r floatende Teaserboxen */
section {
    overflow: auto;
}

article {
    margin: 0;
    border-bottom: 0px solid rgba(0, 0, 0, 0); /* verhindert das margin-Collapse nach unten */
    background-color: #FFFFFF;
}

.teaser {
    margin: 0 0 1em 0;
}

.box-inner {
    padding: 20px;
}

.box.teaser {
    overflow: auto;
}

.teaser h3 {
    margin: 0.2em 0 0.4em;
}

.teaser p {
    margin: 0;
    font-size: 1em; /* 16 px */
}

/* ----------------------------------------------------------------------------- *
 *                  Teaser geht noch Ã¼ber die gesamte Breite,                    *
 *              aber Text rutscht im Teaser rechts neben das Bild                *
 *                          400px / 16px/em = 25em                               *
 * ----------------------------------------------------------------------------- */
@media only screen and (min-width: 25em) {
    .box.teaser img {
        width: 30%;
        float: left;
        margin: 15px;
    }
    .box-inner {
        padding: 15px;
    }
}
/* ----------------------------------------------------------------------------- *
 *                       Teaserboxen mit Bild und Text                           *
 *                Borders und Box-Shadows fÃ¼r grÃ¶ÃŸere AuflÃ¶sungen                *
 *                          750px / 16px/em = 46.875em                           *
 * ----------------------------------------------------------------------------- */
@media only screen and (min-width: 46.875em) {
    article {
        box-shadow: 0 0px 0px rgba(0, 0, 0, 0.5);
    }

    .box {
        margin-bottom: 0em;
        border: 0px solid rgba(133, 165, 204, 0.2);
    }

    /* Wenn der Screen breiter wird werden 2 Teaserboxen nebeneinander dargestellt. */
    .box.teaser {
        float: left;
        margin-right: 4%;
        width: 45%;
    }

    .box.teaser img {
        width: 60%;
        float: none;
        margin: 0;
    }
    .box.teaser text {
        width: 35%;
        float: none;
        margin: 0;
    }


    /* damit 2 Teaser-boxen den gesamten Inhaltsbereich ausfÃ¼llen,
     * wird bei jedem zweiten das Margin auf 0 gesetzt. */
    .box.teaser:nth-of-type(2n+2) {
        margin-right: 0;
    }
}

/* NEU: */
/* ----------------------------------------------------------------------------- *
 *                          Styles fÃ¼r Promoboxen                                *
 *       Promoboxen mit skalierbaren Backgroundgrafiken  .box.promo              *
 * ----------------------------------------------------------------------------- */
.full-link {
    background: url("../img/dummy-300x300-FairyLights-plain.jpg") no-repeat;
    background-size: cover;
    display: block;
    position: relative;
    padding: 1em 1em 89%;
}

.promo {
    margin-bottom: 1em;
}

.promo a {
    color: #fff;
    text-decoration: none;
}

.promo h3 {
    color: #fff;
    font-size: 2.5em;
    line-height: 1em;
    margin: 20px 0 0;
}

.promo p {
    position: absolute;
    bottom: 0;
    font-size: 1.125em;
    width: 90%;
}


/* Promo-Buttons nebeneinander platzieren ab ca. 320px Viewport-Breite und horizontaler Ausrichtung 
@media only screen and (min-width: 20em) and (orientation: landscape)   {
    .box.promo {
        float: left;
        margin-right: 3%;
        width: 48.5%;
    }

    .box.promo:nth-of-type(2n+2) {
        margin-right: 0;
    }
    
    @media only screen and (max-width: 25em) {
        .promo h3 {
            font-size: 1.500em;
        }
    
        .promo p {
            font-size: .8em;
            line-height: 1.1em;
            width: auto;
            margin-right: 10px;
        }
    }
    
}
*/
/* Promo-Buttons nebeneinander platzieren ab ca. 400px Viewport-Breite */
@media only screen and (min-width: 25em) {
    .box.promo {
        float: left;
        margin-right: 3%;
        width: 48.5%;
    }

    .box.promo:nth-of-type(2n+2) {
        margin-right: 0;
    }
}

 video {
    width: 100%;
    height: auto;
}
   