﻿/* ----------------------------------------------------------------------------- *
 *                           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 {
    height: 60px;
    padding: 0 0;
}

aside {
    padding: 0.6em 20px;
	width: 100%;
    margin-left: 0;
}

footer {
	display: flex;
    padding: 0.6em 20px;
}

footer p {
	margin: auto;
}

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

.mainContentFull {
	padding: 0.6em 20px;
    width: 100%;
    border-top: 1px solid transparent;
}

.main-img {
    max-width: 60%;
	height: auto;
    padding: 0.3125em 15px 0.625em;
}

.btn a{
    float: right;
    border: 1px solid #003399;
	-webkit-border-radius: 0.1em;
	-moz-border-radius: 0.1em;
	border-radius: 0.1em;
    padding: 0.2em;
    color: #1A1F2B;
    background: transparent;
	text-decoration: none;
    margin: 1em 0.2em 1em 1em;
}

.tab { /* Tabulator, falls mal benötigt ins span setzen*/
   width: 30%;
   display: block;
   float: left;
   margin-right: 2em;
}

/* ----------------------------------------------------------------------------- *
 *                             Textauszeichnungen                                *
 * ----------------------------------------------------------------------------- */
h1 {
    margin: 0;
}

h2 {
    margin: 0;
}

p.teasertext {
    margin: 0.4em 0 1em 0;
}

ul, ol {
    padding: 0;
    margin: 0 0 0.625em 20px;
}

/* ----------------------------------------------------------------------------- *
 *                                  Navigation                                   *
 * ----------------------------------------------------------------------------- */
nav ul {
    margin: 0;
	padding-top: 2.4375em; 
}

nav ul > li {
    margin-left: 0;
    border-top: 1px solid rgba(250, 250, 250, 0.8);
}

nav ul > li > a, nav ul > li > strong {
    padding: 0.6em 20px;
    display: block;
}

nav ul a:link {
    text-decoration: none;
}

/* ----------------------------------------------------------------------------- *
 *                           Styles der kleinen Tabletversion                    *
 *                             640px / 16px/em = 40em                            *
 * ----------------------------------------------------------------------------- */
@media only screen and (min-width: 40em) {
	.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;
    }
	
    .mainContentFull {
        width: 100%;
        float: left;
        padding: 0.8em 20px;
        border-top: none;
    }

	.main-img {
    	max-width: 50%;
	}

    header {
		padding: 0 10px;
    }

    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;
    }

    section {
        padding: 0;
    }
	
    /* ----------------------------------------------------------------------------- *
     *                             Textauszeichnungen                                *
     * ----------------------------------------------------------------------------- */
    h1 {
        visibility: visible;        
		font-size: 1.8125em; /* 30px; */
		text-align: right;
    }
    h2 {
        font-size: 2.1875em; /* 35px */
        margin: 0.3em 0 0;
    }
		
    p.teasertext {
        margin: 0.8em 0;
    }

    /* ----------------------------------------------------------------------------- *
     *                                  Navigation                                   *
     * ----------------------------------------------------------------------------- */
    nav {
        /* clearing für die floatenden LIs */
        overflow: hidden;
        font-size: 1em; /* 16px */
		line-height: 1.25em;
    }

    nav ul {
        margin: 0 5px;
		padding-top: 0px;

    }

    nav ul li {
        float: right;
        border: none;
        width: auto;
    }

    nav ul > li > a {
        padding: 0 10px 0 10px;
        display: inline-block;
    }
}

/* ----------------------------------------------------------------------------- *
 *                          Styles für kleine Desktops                           *
 *                           1024px / 16px/em = 64em                             *
 * ----------------------------------------------------------------------------- */
@media only screen and (min-width: 64em) {
	body {
		background-color: #969696;
	}

	.main {
        width: 100%;
        float: left;
    }

    /* Größenanpassungen */
    .mainContent {
        width: 65%;
        padding: 0.8em 20px;
    }

    aside {
        width: 35%;
        margin-left: 65%;
    }

}
/* ----------------------------------------------------------------------------- *
 *                          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;
		box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
    }
	
}
/* ----------------------------------------------------------------------------- *
 *                               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: 4%;
    top: 0.25em;
	-webkit-border-radius: 0.1em;
	-moz-border-radius: 0.1em;
	border-radius: 0.1em;
    cursor: pointer;
    padding: 0.1em 0.1em 0.25em 0.1em;
    color: #FFF;
	background-color: #003399;
	font-size: 2.5em;
	text-decoration: none;
	speak: none;
}

#nav-toggle:hover {
    color: #9A9A9A;
}

/* ----------------------------------------------------------------------------- *
 *                           Responsive-Nav im im Desktop-Layout                 *
 * ----------------------------------------------------------------------------- */
@media only screen and (min-width: 40em) {
    /* 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 */
}



/* ----------------------------------------------------------------------------- *
 *                       Anpassungsfähige Bilder                                 *
 * ----------------------------------------------------------------------------- */
/* 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: 0 0 0.3em 0;
    line-height: 0;
}

figure{
  	position: relative;
}
 
figure img {
  	margin: 0;
}
 
figcaption {
  	position: absolute;
  	bottom: 0;
	left: 0;
  	font-size: 0.875em;
    line-height: 1.4em;
    padding: 0.5em;
    text-align: center;
 	width: 100%;
  	background: black;
  	color: white;
  	opacity: 0.5;
}


/* ----------------------------------------------------------------------------- *
 *                          Styles für Teaserboxen                               *
 * ----------------------------------------------------------------------------- */

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

.box {
    margin: 0;
}

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

.box-inner {
    padding: 1em;
}

.box.teaser {
    overflow: auto;
}

.teaser h3 {
    margin: 0 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 {
        max-width: 45%;
        height: auto;		
        float: left;
        margin: 1em 1em 0.2em -1em;
    }
}
/* ----------------------------------------------------------------------------- *
 *                       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 {
  		-moz-box-shadow: 3px 3px 6px rgba(0,0,0,0.5);
  		-webkit-box-shadow: 3px 3px 6px rgba(0,0,0,0.5);
  		box-shadow: 3px 3px 6px rgba(0,0,0,0.5);
        margin-bottom: 2em;
    }

    /* Wenn der Screen breiter wird werden 2 Teaserboxen nebeneinander dargestellt. Achtung: 2x47+5<100%, da der Schatten sonst abgeschnitten wird*/
    .box.teaser {
        float: left;
        margin-right: 5%;
        width: 47%;
    }

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

    /* 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;
    }
}
/* ----------------------------------------------------------------------------- * 
 *                          Styles für Formulare                                 *
 * ----------------------------------------------------------------------------- */

fieldset {
    border: none;
	margin: 0 auto;
}

legend {
    color: #4A6491;
    font-size: 1.375em;
    padding: 0 0.5em;
}

.formset {
    margin: 0.5em 0;
}

.formset label, .formset input, .formset textarea {
    display: inline-block;
}

.formset label {
    width: 100%;
    padding-right: 2%;
}

.formset input, .formset textarea {
    width: 100%;
    border: 1px solid #C2D2E5;
	background: #fff;
    padding: 0.2em 0.5em;
	resize: none;
}

.formset input:focus, .formset textarea:focus {
	background: #EBEBF5;
}
.submit-btn {
    float: right;
    border: 1px solid #003399;
	-webkit-border-radius: 0.1em;
	-moz-border-radius: 0.1em;
	border-radius: 0.1em;
    padding: 0.2em;
    color: #1A1F2B;
    background: transparent;
    margin-right: 1em;
	margin-left: 3em;
	margin-top: 0.2em;
}

input:required, textarea:required {
    padding-right: 3%;
    background: url("../img/char_asterisk.svg") no-repeat scroll right top / 0.6em auto transparent;
}


input[type='number']:out-of-range {
    border-color: red;
}

/* Positionierung der Required * in em */
em{
    left: 98%;
}

/* ----------------------------------------------------------------------------- *
 *                          Styles für kleine Desktops                           *
 *                           1024px / 16px/em = 64em                             *
 * ----------------------------------------------------------------------------- */
@media only screen and (min-width: 64em) {
    .formset label {
        width: 28%;
        text-align: right;
    }

    .formset input, .formset textarea {
        width: 70%;
		vertical-align: top;
    }
    
    em{
        left: 32.5%;
    }
}

/* ----------------------------------------------------------------------------- * 
 *                              Styles für Tables                                *
 * ----------------------------------------------------------------------------- */

caption {
    font-style: italic;
    color: #FFF;
    font-size: 1.25em;
    background: #1A1F2B;
    padding: 0.5em;
}

table {
    width: 100%;
    text-align: left;
    font-size: 0.938em;
}

tr {
    display: block;
    overflow: auto;
	padding: 0.2em;
}

thead {
    display: none;
}

td {
    width: 100%;
    float: left;
    display: block;
    padding: 0.3em 1em;
}

td:first-of-type {
    color: #000;
	background: none;
	border-width: 1px;
	border-style: solid none;	
}

td:before {
    font-weight: bold;
    content: attr(data-header) " ";
}

.hideonss {
    display: none;
}

.tdbig {
	color: #000;
	font-weight: bold;
    font-size: 1.188em; /* 19px */
    line-height: 1.375em; /* 22px */
}

@media only screen and (min-width: 30em) {
    table {
        text-align: center;
    }

    thead {
        display: table-header-group;
    }

    tr {
        display: table-row;
        border: none;
        padding-bottom: 0;
    }

    th, td {
        padding: 0.5em;
        float: none;
        display: table-cell;
        width: auto;
    }

    th {
        color: #646464;
		background: none;
		border-width: 1px;
        border-style: solid none;
    }

    td:first-of-type {
	    color: inherit;
        background: none;
		border: none;
    }

    td:before {
        content: '';
    }
	
	.hideonss {
    	display: table-cell;
	}

	.tdbig {
		color: #000;
	}

	.leftalign {
    	text-align: left;
	}	
}

