/*
 * 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
   ========================================================================== */

html {
	height:100%;
	overflow-x:hidden;
}

body {
	width:100%;
	min-height:100vh;
	margin:0;
	padding:0;
	background-color:#434242;
	position: relative;
	font-family: 'Titillium Web', sans-serif;
	overflow-x:hidden;
}

#bg {
	background-image:url(../img/kinder.png);
	background-size:contain;
	background-position:center bottom;
	background-repeat:no-repeat;
	overflow: hidden;
	position:relative;
	min-height:300px;
	border-bottom:1px solid #F39314;
	margin-bottom:-1px;
}

h1 {
    color: #fff;
    font-weight: bold;
    text-align: center;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index: 100;
}

.h1, h1 {
    font-size: 32px;
    line-height: 40px;
    margin-top:50px;
    z-index: 100;
}

h1 .bigger {
	font-size:50px;
}

@media (max-width:767px){
	.h1, h1 {
	    font-size: 25px;
	    line-height: 32px;
	}
	
	h1 .bigger {
		font-size:32px;
	}
}

#footer {
	position:absolute;
	bottom:0;
	width:100%;
	background-color:#F39314;
}

img {
	max-width:100%;
}



#logo {
	margin-top:-26px;
	margin-bottom:20px;
}

.content {
    text-align: center;
}

.content h2 {
	font-weight:bold;
	font-size:28px;
	margin-bottom: 0;
}

.content p {
    font-size: 18px;
}

.content a {
	color:#444;
}

.content .maillink {
	text-decoration:underline;
}

#footer .copy {
	color:#fff;
	text-align:center;
	text-transform:uppercase;
	margin-bottom:20px;
	margin-top:55px;
}

#footer .copy a {
	color:#fff;
}

.zettel {
	width:260px;
	height:320px;
	background-image:url(../img/zettel.png);
	background-size:cover;
	padding-top:15px;
	position:relative;
	right:0;
	display:inline-block;
	vertical-align:bottom;
	
}

.zettel::after {
    background-image: url(../img/tesafilm.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    height: 30px;
    opacity: 0.5;
    position: absolute;
    top: -20px;
    width: 100%;
    left:0;
}

.zettel h3 {
	font-size:16px;
	font-weight:bold;
	text-align:center;
	margin-top:0;
	color:#252F59;
}

.zettel ul {
	text-align:left;
	margin-left:10px;
	color:#252F59;
	font-weight:bold;
}

#bg .container {
    height: 100%;
}

#bg .zettel-box {
	width:100%;
	height:100%;
	position:relative;
}

#bg .zettel {
	position:absolute;
	right:5px;
	bottom:40px;
}

#footer .zettel {
	margin:0 auto;
	margin-top:45px;
}

@media (width:768px){
	#footer {
		min-height:200px;
	}
}

@media (max-width:767px) {
	.content p {
		font-size:18px;
	}
	.content h2 {
	    font-weight: bold;
	    font-size: 22px;
	    margin-bottom: 0;
	}
	#bg {
		width:150%;
		margin-left:-25%;
		margin-right:-25%;
	}
	#footer {
		position:relative;
		bottom:0;
		width:100%;
		background-color:#F39314;
	}
	#logo {
	    margin-top: 0;
	    margin-bottom: -25px;
	    position: relative;
	    top: -25px;
	}
	
	#logo {
		text-align:center;
	}
	
	#logo img {
		max-width:80%;
	}
}
@media (min-width:768px) and (max-width:1023px){
	
	.content h2 {
	    font-weight: bold;
	    font-size: 21px;
	    margin-bottom: 0;
	}
}

@media (min-width:400px) and (max-width:767px){
	#footer {
		position:relative;
		bottom:0;
		width:100%;
		background-color:#F39314;
	}
	#logo {
	    margin-top: 0;
	    margin-bottom: -25px;
	    position: relative;
	    top: -25px;
	}
}

/*------------------------------------*\
    Animations
\*------------------------------------*/

.animated {
	transition:all 0.5s ease-in-out;
	opacity:0;
}

.inViewport {
	transform:scale(1) translate(0, 0)!important;
	-webkit-transform:scale(1) translate(0, 0) !important;
	opacity:1!important;
}

.animated-left {
	transform:translateX(-25%);
	-webkit-transform:translateX(-25%);
}

.animated-right {
	transform:translateX(25%);
	-webkit-transform:translateX(25%);
}

.animated-bottom {
	transform:translateY(25%);
	-webkit-transform:translateY(25%);
}

.animated-zoom {
	transform:scale(0.4);
	-webkit-transform:scale(0.4);
}

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

/*
 * Hide visually and from screen readers
 */

@font-face { font-family: 'molleat'; src: url('../fonts/molleat.otf') format('opentype'); }

.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);
    clip-path: inset(50%);
    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;
    clip-path: none;
    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;
    }
}
