/* ----------------------------------------------------------------------------- *
 *                           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.5em 20px;
}

aside, footer {
	overflow: auto;
    padding: 0.3em 20px;
    text-align: center;
}

section {
    padding: 0 20px;
}

.mainContent {
    width: 100%;
    border-top: 1px solid transparent;
}

aside {
    width: 100%;
    margin-right: 0;

   }


div.figure {
	display: inline;
}

div.subteaser1 {
	width: 100%;
	padding: 1em;
	margin-bottom: 18px;
	border-radius: 18% 18% 0 0;
}

div.subteaser {
	width: 100%;
	padding: 1em;
	margin-bottom: 18px;
}

div.pics_aside1 {
	width: 100%;
	padding: 9px;
	margin-top: 9px;
	margin-bottom: 18px;
	border-radius: 50%;

	}
	
	body .galleria-thumbnails .galleria-image { width:90px }




/* ----------------------------------------------------------------------------- *
 *                             Textauszeichnungen                                *
 * ----------------------------------------------------------------------------- */
h1 {
    margin: 0.09em 18px;
}

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 {
	 width: 7.0em;
    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) {
    body {
        font-size: 0.938em; /* 15px */
    }

    /* clearing für die floatenden gleichlangen Spalten (.mainContent und .aside) */
    .main {
        overflow: hidden;
    }

    .mainContent {
        width: 70%;
        float: left;
        padding: 0.8em 20px;
        border-top: none;
    }

    aside {
        width: 30%;
        margin-left: 70%;
        margin-bottom: -99999px !important; /* Trick für gleichlange Spalten  - dazu gehört ein overflow: hidden für den umgeb. Container */
        padding-bottom: 99999px !important; /* Trick für gleichlange Spalten */
    }

    aside, footer {
        padding: 0.3em 20px;
    }

    section {
        padding: 0;
    }

    /* ----------------------------------------------------------------------------- *
     *                             Textauszeichnungen                                *
     * ----------------------------------------------------------------------------- */
    h2 {
        font-size: 2.1875em;
        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;
    }

    nav ul {
        margin: 0 20px;
    }

    nav ul li {
        float: left;
        border: none;
        width: auto;
        text-align: center;
    }

    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 {
    	  width: 100%;
        padding: 0.8em 25px;
        display: block;
    } */

    /* .main macht Platz für .nav */
    /* .main {
        width: 80%;
        float: left; 
    } */

    /* Größenanpassungen */
    /* .mainContent {
        width: 65%;
        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 */

.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: 5%;
    top: 1em;
    -webkit-border-radius: 0.4em;
    -moz-border-radius: 0.4em;
    border-radius: 0.4em;
    cursor: pointer;
    padding: 0.357em;
    color: #D0E4F2;
    background: #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 */
}

/* NEU: */
/* ----------------------------------------------------------------------------- *
 *                       Kapitel: Anpassungsfähige Bilder                        *
 *                          750px / 16px/em = 46.875em                           *
 * ----------------------------------------------------------------------------- */

/* Bild wird etwas seitlich aus dem Rahmen geschoben, damit das Hauptmotiv besser zur Geltung kommt */
@media only screen and (max-width: 35em) {
   
	img {
        max-width: 100%;
        height: auto;        
    }
}

/* figure.slides-Container um die Bilder */
.slides {
    margin: 20px 0;
    line-height: 0;
    /* Bilder-Container zeigt nur den Ausschnitt innerhalb seiner Grenzen */
   overflow: hidden;
}

figcaption {
	 background-color: #EDEDED;
    font-size: 0.875em;
    line-height: 1.4em;
    padding: 0.5em;
    text-align: center;
}


/* Andere Abstände und Schatten auf größeren Screens */
@media only screen and (min-width: 46.875em) {
    /* Bilder flexibel machen */
    img {
        max-width: 100%;
        height: auto;
    }

    .slides {
        margin: 0 0 2em 0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}
/* NEU: */
/* ----------------------------------------------------------------------------- *
 *                          Styles für Teaserboxen                               *
 * ----------------------------------------------------------------------------- */

/* clearing für floatende Teaserboxen */
section {
    overflow: auto;
}

.box {
    margin: 0;
    border-bottom: 1px solid rgba(250, 250, 250, 0); /* verhindert das margin-Collapse nach unten */

}
    .box.teaser img {
        width: 100%;
        float: none;
        margin: 0;
        height: auto;
    }

.teaser {
    margin: 0 0 1em 0;
}

.box-inner {
    padding: 1em;
}

.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: 45%;
        float: left;
        margin: 1em;
        height: auto;
    }
    .box-inner {
        padding: 1em;
        line-height: 1.375em;
    }
} 
/* ----------------------------------------------------------------------------- *
 *                       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) {

    .box {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        margin-bottom: 2em;
        border: 1px solid #d0d0d0;
    }

    /* Wenn der Screen breiter wird werden 2 Teaserboxen nebeneinander dargestellt. */
    .box.teaser {
        float: left;
        margin-right: 4%;
        width: 48%;
    }

    .box.teaser img {
        width: 100%;
        float: none;
        margin: 0;
        height: auto;
    }

    /* 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 */
/* ----------------------------------------------------------------------------- *
 *             Beispiel Responsive Slideshow mit flexslider.js                   *
 * ----------------------------------------------------------------------------- */
/*
 * jQuery FlexSlider v2.0
 * http://www.woothemes.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the GPLv2 license.
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 * 
 * ----------------------------------------------------------------------------- *
 * Original jQuery FlexSlider v2.0 mit Anpassungen für das Praxisbeispiel        *
 * ----------------------------------------------------------------------------- *
 */

/* Browser Resets */
.flex-container a:active, .flexslider a:active, .flex-container a:focus, .flexslider a:focus {
    outline: none;
}

.slides, .flex-control-nav, .flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* FlexSlider Necessary Styles
 *********************************/
.flexslider {
    margin: 0;
    padding: 0;
}

.flexslider .slides > li {
    display: none;
    -webkit-backface-visibility: hidden;
}

/* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {
    width: 100%;
    display: block;
}

.flex-pauseplay span {
    text-transform: capitalize;
}

/* Clearfix for the .slides element */
.slides:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

html[xmlns] .slides {
    display: block;
}

* html .slides {
    height: 1%;
}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child, .js-off .slides > li:first-child {
    display: block;
}

/* FlexSlider Default Theme
 *********************************/
.flexslider {
    margin: 0 0 60px;
    background: #999;
    border: 0px solid #333;
    position: relative;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -o-border-radius: 4px;
}

.flex-viewport {
    max-height: 2000px;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    transition: all 1s ease;
}

.loading .flex-viewport {
    max-height: 300px;
}

.flexslider .slides {
    zoom: 1;
    /* .slides existiert bei uns bereits und hat einen Schatten, der hier ausgeschaltet wird. */
    box-shadow: none;
}

.carousel li {
    margin-right: 5px;
}

/* Direction Nav */
.flex-direction-nav {
    *height: 0;
}


/* Styles und GFX für eine größere Darstellung der Bedienelemente */
.flex-direction-nav a {
    width: 38px;
    background: url("gfx/prev-next.gif") no-repeat scroll left 50% black;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    text-indent: -9999px;
    /* Schon in der Basisversion sichtbar */
    opacity: 0.5;
    overflow: hidden;
}

.flex-direction-nav a.flex-next {
    background-position: right 50%;
    left: auto;
    right: 0;
}


.flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {
    opacity: 1;
}

.flex-direction-nav .flex-disabled {
    opacity: .3 !important;
    filter: alpha(opacity=30);
    cursor: default;
}

/* Control Nav */
.flex-control-nav {
    width: 100%;
    position: absolute;
    bottom: -40px;
    text-align: center;
}

.flex-control-nav li {
    margin: 0 6px;
    display: inline-block;
    zoom: 1;
    *display: inline;
}

.flex-control-paging li a {
    width: 11px;
    height: 11px;
    display: block;
    background: #666;
    
    cursor: pointer;
    text-indent: -9999px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -o-border-radius: 20px;
    border-radius: 20px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
}

.flex-control-paging li a:hover {
    background: #ccc;

}

.flex-control-paging li a.flex-active {
    background: #999;

    cursor: default;
}

.flex-control-thumbs {
    margin: 5px 0 0;
    position: static;
    overflow: hidden;
}

.flex-control-thumbs li {
    /*width: 25%;*/
    width: 20%;
    float: left;
    margin: 0;
}

.flex-control-thumbs img {
    width: 100%;
    display: block;
    opacity: .7;
    cursor: pointer;
}

.flex-control-thumbs img:hover {
    opacity: 1;
}

.flex-control-thumbs .flex-active {
    opacity: 1;
    cursor: default;
}

/* ----------------------------------------------------------------------------- *
 *                           750px / 16px/em = 46.875em                          *
 *                     umgestellt auf Mobile first min-width                     *
 * ----------------------------------------------------------------------------- */

@media only screen and (min-width: 46.875em) {
    /* auf größeren Screens werden die Bedienelemente versteckt... */
    .flex-direction-nav .flex-prev, .flex-direction-nav .flex-next {
        opacity: 0;
    }

    /* ... und nur bei Hover gezeigt. */
    .flexslider:hover .flex-next, .flexslider:hover .flex-prev {
        opacity: 0.5;
    }
}



