/*
 * HTML5 Boilerplate
 *
 * 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;
}

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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 and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

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

html {
    height:100%;
}
body {
    background-color: white;
    /* height: 100%; */
    color: white;
	font-size: 1em;	
	font-family: Arial, sans-serif;
}
body p {
	margin: 0.5em 0px;
}
.main {
    background-color: #7B3E45;
    -moz-border-radius: 20px;
	-webkit-border-radius: 20px;  
	border-radius: 20px;
	
    padding: 20px;
    /*min-width: 700px;   */
	max-width: 962px;  	
    /*
    position:absolute;
    top:10px;
    bottom:10px;
    left:10px;
    right:10px;
    */
    margin: 10px auto 0px auto;
}
.menu li {
    list-style: none;
    line-height: 2em;
    text-align: center;
    padding: 0px;
}
.menu a {
    color: #ffffff;
    text-decoration: none;
}
.no-flexbox .menu li {
    float: left;
    width: 16.66%; 
 }   
.flexbox .menu ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -moz-box;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
}
.flexbox .menu li {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    -moz-box-flex: 1;
    margin-right: 20px; /* hack, FF expandiert UL nicht auf die ganze Breite */
    margin-left: 20px;      
}
.menu ul{
    border-width: 2px;
    -moz-border-radius: 10px;
	-webkit-border-radius: 10px;  	
    border-radius: 10px;
    border-color: #ffffff;
    border-style: solid;
    height: 2em;
    padding: 0px;
    -webkit-margin-before: 0px;
    -webkit-margin-after: 0px;       
}
.view {
    margin-top:20px;
    background-color: #ffffff;
    -moz-border-radius: 20px;
	-webkit-border-radius: 20px;  	
    border-radius: 20px;
    padding: 20px;
    color: #7B3E45;
}
.logoarea {
    overflow: hidden;
    padding-top: 10px;
}
.logoarea p {
    line-height: 1em;
    margin: 0.5em 0;
    text-align: right;
}
.logoarea .right{
    float: right;
}
.logoarea .left{
    float: right;
}
.logoarea:first-child {
    padding-top: 0px;
	padding-bottom: 10px;
}
.logoarea:first-child .right{
    float: left;
}
.logoarea:first-child .left{
    float: left;
}
.logoarea:first-child p {
	text-align: left;
}
.half {
    overflow: hidden;
}
.half .left{
    float: left;
    width: 50%;
    padding-right: 10px;
    -moz-box-sizing: border-box;
    box-sizing: border-box;    
}
.half .right {
    float: left;
    width: 50%;
}
.half .right img{
    width: 100%;
}
.twoone {
    overflow: hidden;
}
.twoone .left{
    float: left;
    width: 66.66%;
    padding-right: 10px;
    -moz-box-sizing: border-box;
    box-sizing: border-box;    
}
.twoone .right {
    float: left;
    width: 33.33%;
}
.twoone .right img{
    width: 100%;
}
.threeone {
    overflow: hidden;
}
.threeone .left{
    float: left;
    width: 75%;
    padding-right: 10px;
    -moz-box-sizing: border-box;
    box-sizing: border-box;    
}
.threeone .right {
    float: left;
    width: 25%;
}
.threeone .right img{
    width: 100%;
}
.three {
    overflow: hidden;
}
.three .left,
.three .middle,
.three .right
{
    float: left;
    width: 33.33%;
    padding-right: 45px;
	padding-left: 45px;
	-moz-box-sizing: border-box;   
    box-sizing: border-box;    
}
.three img{
    width: 100%;
}
.three p {
    margin: 10px 0 0 0;
    text-align: center;
}
.four {
    overflow: hidden;
}
.four .leftleft,
.four .leftmiddle,
.four .rightmiddle,
.four .rightright
{
    float: left;
    width: 25%;
    padding-right: 20px;
    padding-left: 20px;
    -moz-box-sizing: border-box;   
    box-sizing: border-box;    
}
.four img{
    width: 100%;
}
.four p {
    margin: 10px 0 0 0;
    text-align: center;
}
.five {
    overflow: hidden;
}
.five .leftleft,
.five .leftmiddle,
.five .middle,
.five .rightmiddle,
.five .rightright
{
    float: left;
    width: 20%;
    padding-right: 20px;
    padding-left: 20px;
    -moz-box-sizing: border-box;   
    box-sizing: border-box;    
}
.five img{
    width: 100%;
}
.five p {
    margin: 10px 0 0 0;
    text-align: center;
}
.six {
    overflow: hidden;
}
.six .left,
.six .leftleft,
.six .leftmiddle,
.six .rightmiddle,
.six .rightright,
.six .right
{
    float: left;
    width: 16.66%;
    padding-right: 20px;
    padding-left: 20px;
    -moz-box-sizing: border-box;   
    box-sizing: border-box;    
}
.six img{
    width: 100%;
}
.six p {
    margin: 10px 0 0 0;
    text-align: center;
}
.seven {
    overflow: hidden;
}
.seven .left,
.seven .leftleft,
.seven .leftmiddle,
.seven .middle,
.seven .rightmiddle,
.seven .rightright,
.seven .right
{
    float: left;
    width: 14.28%;
    padding-right: 20px;
    padding-left: 20px;
    -moz-box-sizing: border-box;   
    box-sizing: border-box;    
}
.seven img{
    width: 100%;
}
.seven p {
    margin: 10px 0 0 0;
    text-align: center;
}
.eight {
    overflow: hidden;
}
.eight .left,
.eight .left2,
.eight .left3,
.eight .left4,
.eight .right4,
.eight .right3,
.eight .right2,
.eight .right
{
    float: left;
    width: 40%;
    padding-right: 45px;
    padding-left: 45px;
    -moz-box-sizing: border-box;   
    box-sizing: border-box;    
}
.eight img{
    width: 100%;
}
.eight p {
    margin: 10px 0 0 0;
    text-align: center;
}
.impress {
    /*
	float: right;
    margin-right: 40px;
	*/
	margin-left: auto;
	margin-right: auto;
	max-width: 962px; 
	text-align: right;
	
    color:#7B3E45;
    font-size: 10px;

}
.impress:hover {
	text-decoration: underline;
}
.frame {
    border-width: 0px;
    -moz-border-radius: 10px;
	-webkit-border-radius: 10px;  	
    border-radius: 10px;
    border-color: #7B3E45;
    border-style: solid;
	padding: 0px;
	overflow: hidden;
	margin-bottom: 10px;
}
.frame p {
	margin: 0.5em 0;
}
.view p:first-child {
	margin: 0px;
}
.column {
	float: left;
	width:50%;
}
h3 {
	margin: 0px;
}
.firstp {
	margin-top: 0px;
}
.anfahrt .left {
	width: 45%;
}
.anfahrt .right {
	width: 55%;
}
.anfahrt .right iframe {
	width: 100%;
}

.small {
	font-size:0.8em;
}

#start,
#aktuelles,
#leistungen,
#kontakt,
#stellenangebote,
#anfahrt,
#impressum,
#team {
    display: none;
}

@media only screen and (max-width: 500px) {
	.main {
		min-width: 0px;
		margin: 0;
	}
	.menu ul {
		height: auto;
	}
	.flexbox .menu ul {
		display: block;
	}
	.no-flexbox .menu li {
		float: none;
		width: auto;
	}
	.logoarea:first-child .left {	
		width: 150px;
	}
	.logoarea:first-child p {
		text-align: left;
	}	
	.twoone .left,.twoone .right {
		width: auto;
		float: none;
	}
	.three .left, .three .middle, .three .right, .column {
		width: auto;
		float: none;
		padding: 0px;
	}	
	.three p {
		margin: 10px 0px;
	}	
    .four .leftleft, .four .leftmiddle, .four .rightmiddle, .four .rightright, .column {
        width: auto;
        float: none;
        padding: 0px;
    }   
    .four p {
        margin: 10px 0px;
    }   
    .five .leftleft, .five .leftmiddle, .five .middle, .five .rightmiddle, .five .rightright, .column {
        width: auto;
        float: none;
        padding: 0px;
    }   
    .five p {
        margin: 10px 0px;
    }       
    .six .left, .six .leftleft, .six .leftmiddle, .six .rightmiddle, .six .rightright, .six .right{
        width: auto;
        float: none;
        padding: 0px;
    }   
    .six p {
        margin: 10px 0px;
    }
    .seven .left, .seven .leftleft, .seven .leftmiddle, .seven .middle, .seven .rightmiddle, .seven .rightright, .seven .right{
        width: auto;
        float: none;
        padding: 0px;
    }   
    .eight .left, .eight .left2, .eight .left3, .eight .left4, .eight .right4, .eight .right3, .eight .right2, .eight .right{
        width: auto;
        float: none;
        padding: 0px;
    }   




}




/* ==========================================================================
   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: 100%;
}

/*
 * 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.
   Theses 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 only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* 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;
    }
}
