/*
 * 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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
	background-color:#fff;
}
  
section {
	position:relative;
}

footer {
	height:400px;
	background-color:#95B327;
}

.section-wrapper {
	display:table;
	width:100%;
	border-top:5px solid #fff;
	transition:border-color 0.2s ease 0s;
}

#home .section-wrapper {
	border:none;
}

#section-1 .section-wrapper {
	border:none;
}

.inViewport .section-wrapper {
	border-top-color:#fff;
	transition:border-color 0.6s ease 0.2s;
}
#home {
	height:700px;
}
#home .area {
	height:700px;
}

#logo {
	padding-bottom:5%;
}

.area {
	display:table-cell;
	vertical-align:middle;
	text-align:center;
	height:700px;
	transform:scale(0.8);
	-webkit-transform:scale(0.8);
	opacity:0;
	float:none;
	transition:opacity 0.4s ease 0s, transform 0s ease 0.4s;
	-webkit-transition:opacity 0.4s ease 0s, -webkit-transform 0s ease 0.4s;
}


.inViewport .area {
	transform:scale(1);
	-webkit-transform:scale(1);
	opacity:1;
	transition:opacity 1.2s ease 0.4s, transform 0.8s ease 0.2s;
	-webkit-transition:opacity 1.2s ease 0.4s, -webkit-transform 0.8s ease 0.2s;
}


.image-area, #home {
	background-position:center center;
	background-size:cover;
}

.text-area {
	background-color:#9BBA26;
	background-image:url(../img/hirn.png);
	background-size: 80% auto;
	background-position:center center;
	background-repeat:no-repeat;
	color:#fff;
	padding:20px 20px;
	text-align:left;
}

#gmap {
	height:450px;
	width:100%;
	transform:scale(0.8);
	-webkit-transform:scale(0.8);
	opacity:0;
	transition:opacity 0.4s ease 0s, transform 0s ease 0.4s;
	-webkit-transition:opacity 0.4s ease 0s, -webkit-transform 0s ease 0.4s;
}

.inViewport #gmap {
	transform:scale(1);
	-webkit-transform:scale(1);
	opacity:1;
	transition:opacity 1.2s ease 0.4s, transform 0.8s ease 0.2s;
	-webkit-transition:opacity 1.2s ease 0.4s, -webkit-transform 0.8s ease 0.2s;
}

.impressum {
	background-color:#9BBA26;
	
	color:#fff;
	font-family: 'Ruda', sans-serif;
	font-size:16px;
	text-align:left;
	padding-top:60px;
	padding-bottom:70px;
}

@media (min-width:768px){
	.impressum #haftung {
		-moz-column-count: 2;
		-webkit-column-count: 2;
		column-count: 2;
		-moz-column-gap: 40px;
		-webkit-column-gap: 40px;
		column-gap: 40px;
	}
}

.scrolloff {
	pointer-events: none;
}

.text-area img {
	text-align:center;
}

.text-area p, .text-area li {
	font-family: 'Ruda', sans-serif;
	font-size:16px;
	text-align:left;
}

section a {
	color:#fff;
	text-decoration:underline;
}

.contact .text-area p {
    text-align: left;
    display: inline-block;
}

.text-area ul {
    display: inline-block;
    margin: 10px auto;
	list-style: none;
	padding-left:15px;
	text-align:left;
}

.text-area ul li {
	text-align:left;
}

.text-area ul li:before {
    content: '-';
    position: absolute;
    left: 5px;
}

.big {
	font-size:120%;
}

h1 {
	font-family: 'Amatic SC', cursive;
	font-size:55px;
	text-align:left;
}

.text-area h1, .text-area p, .text-area ul {
	transform:scale(0);
	-webkit-transform:scale(0);
	opacity:0;
	transition:opacity 0.4s ease 0.4s, transform 0s ease 0.8s;
	-webkit-transition:opacity 0.4s ease 0.4s, -webkit-transform 0s ease 0.8s;
}

.inViewport .text-area h1, .inViewport .text-area p, .inViewport .text-area ul {
	transform:scale(1);
	-webkit-transform:scale(1);
	opacity:1;
	transition:opacity 1.6s ease 0.7s, transform 0.8s ease 0.7s;
	-webkit-transition:opacity 1.6s ease 0.7s, -webkit-transform 0.8s ease 0.7s;
}

.text-area img {
	transform:scale(0);
	-webkit-transform:scale(0);
	opacity:0;
	transition:opacity 0.4s ease 0.4s, transform 0s ease 0.8s;
	-webkit-transition:opacity 0.4s ease 0.4s, -webkit-transform 0s ease 0.8s;
}

.inViewport .text-area img {
	transform:scale(1);
	-webkit-transform:scale(1);
	opacity:1;
	transition:opacity 1.6s ease 0.7s, transform 0.8s ease 0.7s;
	-webkit-transition:opacity 1.6s ease 0.7s, -webkit-transform 0.8s ease 0.7s;
}

.inViewport .text-area img, .inViewport .text-area h1 {
	transition:opacity 1.4s ease 0.5s, transform 0.8s ease 0.5s;
	-webkit-transition:opacity 1.4s ease 0.5s, -webkit-transform 0.8s ease 0.5s;
}

.nav-window {
	background-color:#fff;
	height:45px;
}

#menu {
	height:45px;
	background-color:rgba(255,255,255,0.85);
	width:100%;
	z-index:1000;
}

nav ul {
	list-style:none;
	padding:0;
	margin:0;
	text-align:center;
}

nav ul li {
	display:inline-block;
	line-height:45px;
	padding:0 10px;
}

nav ul li a {
	cursor:pointer;
	color:#434242;
	font-family: 'Ruda', sans-serif;
	font-size: 18px;
}

nav ul li a.active {
	color:#9BBA26!important;
	font-weight:bold;
}

nav ul li a:hover  {
	text-decoration:none;
	color:#434242;
	
}
nav ul li a:active, nav ul li a:focus {
	text-decoration:none;
	color:#434242;
}

@media (max-width:1024px) {
	nav ul li {
		padding: 0 8px;
	}
	nav ul li a {
		font-size:16px;
	}
}

@media(max-width:767px){
	.section-wrapper {
		display:block;
	}
	.image-area {
		display:block;
		height:350px;
	}
	.text-area {
		height:auto;
		display:block;
		border-top:none;
	}
	.text-area ul li:before {
	    content: '-';
	    position: absolute;
	    left: 10px;
	}
	.text-area ul {
	    padding-left: 20px;
	}
	#home .area {
		height:auto;
		display:inline-block;
		position:absolute;
		bottom:0;
	}
	
	#home .section-wrapper {
		height:100%;
		/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,ffffff+99&0+0,1+90 */
		background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 90%, rgba(255,255,255,1) 99%); /* FF3.6-15 */
		background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 90%,rgba(255,255,255,1) 99%); /* Chrome10-25,Safari5.1-6 */
		background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 90%,rgba(255,255,255,1) 99%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */

	}
	#logo img {
		width:260px;
		margin-bottom:20px;
	}
}


@media (min-width:1200px){
	.text-area {
		padding:40px 60px;
	}
	.text-area p, .text-area li {
		font-size:18px;
	}
	
	
}



/* ==========================================================================
   Images
  ========================================================================== */

#home {
	background-color:#fff;
	background-position:left center;
	background-image:url(../img/header.jpg);
}


@media (max-width:767px) {
	#home {
		height:400px;
		background-position:-150px center;
	}
}

@media (min-width:768px) and (max-width:1024px) {
	#home {
		background-position:-120px center;
	}
	#home {
		height:600px;
	}
	#home .area {
		height:600px;
	}
}

#section-1 .image-area {
	background-image:url(../img/section-1.jpg);
}
#section-2 .image-area {
	background-image:url(../img/section-2.jpg);
}
#section-3 .image-area {
	background-image:url(../img/section-3.jpg);
	background-position:center bottom;
}
#section-4 .image-area {
	background-image:url(../img/section-4.jpg);
	background-position:right center;
}
#section-5 .image-area {
	background-image:url(../img/section-5.jpg);
	background-position:right center;
}
#section-6 .image-area {
	background-image:url(../img/section-6.jpg);
	background-position:right center;
}
#section-7 .image-area {
	background-image:url(../img/section-7.jpg);
}
#section-8 .image-area {
	background-image:url(../img/section-8.jpg);
}

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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

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

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

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These 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 print,
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    p:first-letter,
    div:first-letter,
    blockquote:first-letter,
    li:first-letter,
    p:first-line,
    div:first-line,
    blockquote:first-line,
    li:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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