/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
    background:#1b8ceb;
}

body {
    font-size: 1em;
    line-height: 1.3;
    background:#1b8ceb;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}

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


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

.header-container,
nav {
	border-bottom: 1px solid black;
}

.title {
	color: #f48620;
	text-shadow: 0 1px 0 #000000,
				 0 -1px 0 #000000,
				 1px 0 0 #000000,
				 -1px 0 0 #000000,
				 0.1em 0.1em 0.2em black;
	/* text-shadow: 0.1em 0.1em 0.2em black; */
}

.active,
.active:hover,
.active:visited{
	color: #f48620;
}

.main {
	margin: 10px 25px;
}
h2 {
	margin-bottom: 0.1em;
}
h3 {
	margin-top: 0.3em;
	margin-bottom: 0.2em;
}
p {
	margin: 0.1em 0;
}

.main img.ampel {
	margin: 3px 15px;
	border: none;
	-webkit-box-shadow: none;
       -moz-box-shadow: none;
            box-shadow: none;
}
#nextSunday {
	display: none;
	border: 2px solid red;
	margin-bottom: 10px;
	text-align: center;
	background: #f48620;
}
#nSNicht {
	color: red;
	font-weight: bold;
}
#offene_tuer {
    border: 2px solid black;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.3em;
    background: #f48620;
}

aside {
	background: #f48620;
	padding: 5px 10px;
	border: 1px solid black;
}

.main img {
	border: 1px solid black;
	-webkit-box-shadow: 0 5px 10px #222;
       -moz-box-shadow: 0 5px 10px #222;
            box-shadow: 0 5px 10px #222;
}

.gallery img {
	background:#4E5885;
	border-radius: 5px;
	padding: 5px;
	margin: 8px;
}

.main a img {
	clear: both;
	margin: 10px;
}

.footer-container {
	border-top: 1px solid black;
}

.spacer {
	width: 100%;
}

.presseartikel {
    background: #f48620;
    border: 1px solid black;
    border-radius: 10px;
    margin: 10px;
    padding-left: 5px;
    width: 450px;
    float: left;
    -webkit-box-shadow: 0 5px 10px #222;
    -moz-box-shadow: 0 5px 10px #222;
    box-shadow: 0 5px 10px #222;
}
a.presseartikel, 
a.presseartikel:hover,
a.presseartikel:visited {
    text-decoration: none;
    color: black;
}
.presseartikel dl {
    float: left;
    margin:10px 10px 10px 0;
}
.presseartikel dd {
    padding-top: 3px;
    font-size:90%;
}
.presseartikel dd.ueberschrift {
    text-decoration: underline;
}
.presseartikel img {
    float: left;
    height: 163px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* =====================
         Mobile
   ===================== */
header img {
	display: block;
	margin-left: auto;
    margin-right: auto;
}

.title {
	font-size: 1.8em;
	line-height: 1.0;
	text-align: center;
	margin: 0.2em 15px 0.6em 15px;
}

nav a {
    display: block;
    margin-bottom: 5px;
    padding: 8px 0;

    text-align: center;
    text-decoration: none;
    font-weight: bold;

    color: black;
}

nav a:hover,
nav a:visited {
	color: black;
}

nav a:hover {
    text-decoration: underline;
}

article img {
	margin: 10px;
}

#nextSunday {
	font-size: 1.0em;
}
#ampelLinks {
	display: block;
	text-align: center;
}
#ampelRechts {
	display: none;	
}
#details {
	font-size: 0.9em;	
}


/* =====================
         Medium
   ===================== */
@media only screen and (min-width: 480px) {

	.title {
		font-size: 2.5em;
	}
	
	nav a {
        float: left;
        width: 13%;
        margin: 0 1.7%;
        padding: 10px 2%;
    }
    
    .galerie-menu a {
    	width: 25%;
    }

    nav ul {
    	margin-top: 0;
    	padding: 0 20px 0 10px;
    }
    
    nav li:first-child a {
        margin-left: 0;
    }

    nav li:last-child a {
        margin-right: 0;
    }
	
	footer ul {
		padding-bottom: 20px;
	}
		
	footer li {
		display: inline;
		float: left;
		margin: 0 10px;
	}
	
	.left {
		float: left;
		margin: 10px 15px 10px 0;
	}
	.right {
		float: right;
		margin: 10px 0px 10px 15px;
	}
	#ampelLinks {
		display: inline;
	}


}

@media only screen and (min-width: 780px) {
	
	header img {
		float: left;
		margin: 10px 20px;
	}
	
	.title {
		margin: 1.0em 15px;
	}
	.header-container {
		margin-bottom: 10px;
	}
	
	.header-container,
	aside {
		-webkit-box-shadow: 0 5px 10px #222;
           -moz-box-shadow: 0 5px 10px #222;
                box-shadow: 0 5px 10px #222;
	}
	
	aside {
		float: right;
		border: 1px solid black;
		margin: 15px;
		padding: 5px 10px;
	}
	
	#nextSunday {
		font-size: 1.2em;
	}
	#ampelRechts {
		display: inline;	
	}

}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {

}

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

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

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

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

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

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