/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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: 1.25em;
    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.
 */

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

/* ==========================================================================
   Responsive Menu
   ========================================================================== */


/* Basic Styles */
body {
	background-color: #ece8e5;
}

/*Smartphone*/
nav {
	width: 100%;
	background: rgba(19, 60, 127, 1);

	font-weight: bold;
	position: relative;
	border-bottom: 2px solid #283744;
}
nav ul {
	list-style-type: none;
	padding: 0;
	margin: 0 auto;
}
nav li {
	display: block;
}
nav a,
nav strong {
	display: block;
	min-height: 48px;
	border: 1px solid #576979;
	padding: 5px 15px;
	text-decoration: none;
	text-shadow: 1px 1px 0px #283744;
	font-weight: normal;
	color: #fff;
}
@media only screen and (min-width: 60em) {
	nav a,
	nav strong {
		min-height: 0;
	}
}
nav strong {
	background-color: rgba(  0,  0,  0,0.25)
}
nav li a,
nav li strong {
	border-right: 1px solid #576979;
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
}
nav li:last-child a,
nav li:last-child strong {
	border-right: 0;
}
nav a:focus, nav a:hover, nav a:active {
	background-color: rgba(255, 255, 255, 0.2);
}
nav a#pull {
	display: none;
}


/*Styles for screen 739px and lower*/
@media only screen and (max-width : 739px) {
	nav {
		border-bottom: 0;
	}
	nav ul {
		display: none;
		height: auto;
	}
	nav li {
	}
	nav a#pull {
		display: block;
		position: relative;
		padding: 7px 15px;
		box-sizing: border-box;
		background-color: #283744;
	}
	nav a#pull:after {
		content:"";
		background: url('../img/layout/nav-icon.png') no-repeat;
		width: 48px;
		height: 48px;
		display: inline-block;
		position: absolute;
		right: -15px;
		top: 6px;
	}
}

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


/* General Styles
   -------------------------------------------------------------------------- */

/* COLORS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* CSS - Cascading Style Sheet */
/* Palette color codes */
/* Palette URL: http://paletton.com/#uid=53u0I0kwi++bu++hX++++rd++kX */

/* As RGBa codes */

.rgba-primary-0 { color: rgba( 14,165,255,1) }	/* Main Primary color */
.rgba-primary-1 { color: rgba(169,223,255,1) }
.rgba-primary-2 { color: rgba(120,205,255,1) }
.rgba-primary-3 { color: rgba(  0, 87,138,1) }
.rgba-primary-4 { color: rgba(19, 60, 127, 1) }

.rgba-secondary-1-0 { color: rgba( 75, 30,255,1) }	/* Main Secondary color (1) */
.rgba-secondary-1-1 { color: rgba(190,175,255,1) }
.rgba-secondary-1-2 { color: rgba(154,129,255,1) }
.rgba-secondary-1-3 { color: rgba( 29,  0,150,1) }
.rgba-secondary-1-4 { color: rgba( 23,  0,115,1) }

.rgba-secondary-2-0 { color: rgba( 35,255,  0,1) }	/* Main Secondary color (2) */
.rgba-secondary-2-1 { color: rgba(176,255,164,1) }
.rgba-secondary-2-2 { color: rgba(131,255,112,1) }
.rgba-secondary-2-3 { color: rgba( 24,179,  0,1) }
.rgba-secondary-2-4 { color: rgba( 19,138,  0,1) }

/* Generated by Paletton.com Â© 2002-2014 */
/* http://paletton.com */


body {
	background-color: rgba(19, 60, 127, 1);
	background-color: #fff;
	padding: 0;
}
div.wrapper{
	background-color: #fff;
}
.smallerText {
	font-size: .75em;
}
video {
	width: 100%;
	height: auto;
}



/* margins/paddings - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.wrapper > header {
	padding: 5px 15px;
	box-sizing: border-box;
  background: white;
}
@media only screen and (min-width: 739px) {
	.wrapper > header {
		position: fixed;
		left: 0;
		top: 0;
	}
}

.button {
    display: inline-block;
    margin: 15px 0;
    border: 4px solid #fff;
    background-clip: padding-box;
    min-width: 48px;
    min-width: 2.4rem;
    min-height: 48px;
    min-height: 2.4rem;
    box-sizing: padding-box;
    line-height: 48px;
    line-height: 2.4rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: rgb(51, 65, 77);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.75);
}

@media screen and (min-width: 64em) {
    .button {
        min-height: 24px;
        min-height: 1.5rem;
        line-height: 24px;
        line-height: 1.5rem;
        padding: 0 115px;
    }
}

.button:focus,
.button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: #000;
}

.button:active {
    box-shadow: 0 0 3px 5px rgba(255, 255, 255, 1);
}


@media screen and (min-width: 60em) {
    .button {
        padding: 0 10px;
    }
}

.button .icon {
    font-size: 1.5em;
    vertical-align: middle;
}

.button .description {
    display: none;
}

@media screen and (min-width: 60em) {
    .button .description {
        display: inline;
    }
}

.ghosted,
.ghosted:hover {
    opacity: 0.5;
    cursor: default;
    color: #fff;
    background-color: rgb(51, 65, 77);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

/* Kopfbereich
   -------------------------------------------------------------------------- */

.wrapper > header {
	width: 100%;
	box-shadow: 0 0 20px rgba(0,0,0,0.5);
	z-index: 10;
}
.wrapper > header:before {
	content: '';
	float: left;
	width: 228px;
	height: 113px;
	margin: 0 10px 10px 0;
	background-image: url(../images/echoHoergeraeteLogo.png);
	background-repeat: no-repeat;
	background-position: left top;
	background-size: auto 100%;
}
.wrapper > header h1 {
	margin-top: 0;
	font-size: 5vw;
	color: rgba(19, 60, 127, 1);
}
@media only screen and (min-width: 35em) {
	.wrapper > header h1 {
		font-size: 24px;
		font-size: 1.5rem;
	}
}
.wrapper > header h1 img {
	float: left;
	width: 100px;
	height: 100px;
}
.wrapper > header h2 {
	display: none;
}
@media only screen and (min-width: 30em) {
	.wrapper > header h2 {
		display: block;
		font-size: 20px;
		font-size: 1.25rem;
	}
}

/* Kopfbereich auf der Seite Selbsttest */

.selbsttest .wrapper + h1 {
	margin-top: 3.5em;
}
.juma-quiz h3 {
	font-size: 1.7rem;
}
/* Hauptnavigation
   -------------------------------------------------------------------------- */

main {
	margin-bottom: 80px;
	margin-bottom: 5rem;
	clear: both;
}
@media only screen and (min-width: 739px) {
	nav {
		position: fixed;
		top: 120px;
		top: 7.5rem;
		left: 15px;
		width: 15em;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.75);
		z-index: 10;
	}
	main {
		margin-top: 135px;
		margin-left: 16.125em;
		margin-left: 16.125rem;
	}
}

/* Hauptbereich
   -------------------------------------------------------------------------- */

main strong {
	background-color: rgba(50, 50, 95, 0.25);
}
@media only screen and (min-width: 739px) {
	main {
		padding-top: 15px;
	}
}
main article {
	max-width: 50rem;
	box-sizing: border-box;
}
main article header:first-child {
	min-height: 4rem;
}
@media only screen and (min-width: 739px) {
	main article header:first-child {
		min-height: 8vw;
	}
}
.juma-score h3,
main article h2,
main article h3,
main article h4,
main article h5,
main strong {
	background-color: rgba(0, 0, 195, 0.25);
}
main article h2,
main article h3,
main article h4,
main article h5,
main article p {
	margin: 1em 0;
	padding: 0 15px;
}
main article details h4 {
	margin: 0;
}
main article ul {
	padding: 0 15px 0 30px;
}
main header h2 {
	position: absolute;
	width: 100%;
	box-sizing: border-box;
	max-width: 50rem;
	box-sizing: border-box;
	margin: 0;
	padding: 20px;
	padding: 1.25rem;
	color: #fff;/* IE9 SVG, needs conditional override of 'filter' to 'none' */
	text-shadow: 1px 1px 0px #283744;
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwNDM2YyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDU3OGEiIHN0b3Atb3BhY2l0eT0iMCIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
	background: -moz-linear-gradient(top,  rgba(19, 60, 127, 1) 0%, rgba(0,87,138,0) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(19, 60, 127, 1)), color-stop(100%,rgba(0,87,138,0))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(19, 60, 127, 1) 0%,rgba(0,87,138,0) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(19, 60, 127, 1) 0%,rgba(0,87,138,0) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(19, 60, 127, 1) 0%,rgba(0,87,138,0) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgba(19, 60, 127, 1) 0%,rgba(0,87,138,0) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00436c', endColorstr='#0000578a',GradientType=0 ); /* IE6-8 */
	font-size: 24px;
	font-size: 1.2rem;
}
@media only screen and (min-width: 48em) {
	main header h2 {
		position: absolute;
		width: calc(100% - 15em + 37px);
	}
}
@media only screen and (min-width: 739px) {
	main header h2 {
		width: calc(100% - 15rem - 21px);
	}
}
@media only screen and (min-width: 80em) {
	main header h2 {
		font-size: 30px;
		font-size: 1.5rem;
	}
}
@media only screen and (min-width: 80em) {
	main h2 {
		font-size: 60px;
		font-size: 3.75rem;
	}
}
figure {
	width: 100%;
	margin:0;
}
header + figure {
	width: 47.5%;
	margin: 2.5%;
}
div > video,
div > img {
	margin: 1em 0;
}
div > video {
	display: block;
	border-bottom: 1px solid white;
}
img {
	width: 100%;
	height: auto;
}
figcaption {
	font-size: .75em;
	color: #666;
}

video {
	width: 100%;
	display: block;
}


/* Blätternavigation
   -------------------------------------------------------------------------- */

.pagination {
	display: table;
	width: 100%;
	background-color: rgb(202, 196, 182);
}

.pagination ul {
    display: table-row;
    list-style-type: none;
}

.pagination li {
    display: table-cell;
    width: 25%;
    vertical-align: middle;
}

.pagination li:nth-child(2) {
    width: 50%;
    text-align: center;
}

.pagination li:first-child {
    padding-left: 15px;
}

.pagination li:last-child {
    text-align: right;
    padding-right: 15px;
}



/* Fussbereich
   -------------------------------------------------------------------------- */

body > footer {
	position: relative;
	bottom: 0;
	padding: .25rem 15px;
	color: azure;
	background-color: #33414D;
}
@media only screen and (min-width: 44em) {
	body > footer {
		display: table;
		width: calc(100% - 30px);
		padding: .25rem 15px;
	}
	body > footer div {
		display: table-cell;
		width: 33%;
	}
		body > footer div:nth-child(2) {
		width: 34%;
	}
}








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

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * 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,
       (-webkit-min-device-pixel-ratio: 1.25),
       (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 {
        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,
    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;
    }

    img {
        max-width: 100% !important;
    }

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

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