/*! HTML5 Boilerplate v6.1.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
   ========================================================================== */

/* ===== Fonts */

/* merriweather-300 - latin */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/merriweather-v21-latin-300.eot'); /* IE9 Compat Modes */
  src: local('Merriweather Light'), local('Merriweather-Light'),
       url('../fonts/merriweather-v21-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/merriweather-v21-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/merriweather-v21-latin-300.woff') format('woff'), /* Modern Browsers */
       url('../fonts/merriweather-v21-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/merriweather-v21-latin-300.svg#Merriweather') format('svg'); /* Legacy iOS */
}

/* merriweather-700 - latin */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/merriweather-v21-latin-700.eot'); /* IE9 Compat Modes */
  src: local('Merriweather Bold'), local('Merriweather-Bold'),
       url('../fonts/merriweather-v21-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/merriweather-v21-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/merriweather-v21-latin-700.woff') format('woff'), /* Modern Browsers */
       url('../fonts/merriweather-v21-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/merriweather-v21-latin-700.svg#Merriweather') format('svg'); /* Legacy iOS */
}

/* merriweather-sans-300 - latin */
@font-face {
  font-family: 'Merriweather Sans';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/merriweather-sans-v11-latin-300.eot'); /* IE9 Compat Modes */
  src: local('Merriweather Sans Light'), local('MerriweatherSans-Light'),
       url('../fonts/merriweather-sans-v11-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/merriweather-sans-v11-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/merriweather-sans-v11-latin-300.woff') format('woff'), /* Modern Browsers */
       url('../fonts/merriweather-sans-v11-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/merriweather-sans-v11-latin-300.svg#MerriweatherSans') format('svg'); /* Legacy iOS */
}

/* merriweather-sans-700 - latin */
@font-face {
  font-family: 'Merriweather Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/merriweather-sans-v11-latin-700.eot'); /* IE9 Compat Modes */
  src: local('Merriweather Sans Bold'), local('MerriweatherSans-Bold'),
       url('../fonts/merriweather-sans-v11-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/merriweather-sans-v11-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/merriweather-sans-v11-latin-700.woff') format('woff'), /* Modern Browsers */
       url('../fonts/merriweather-sans-v11-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/merriweather-sans-v11-latin-700.svg#MerriweatherSans') format('svg'); /* Legacy iOS */
}

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;	
	box-sizing: border-box;
}

html {
    color: #222;
	font-family: "Merriweather Sans", sans-serif;
    font-size: 1em;
    line-height: 1.5;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ===== Schriften */

h1, h2 { font-family: "Merriweather", serif; }
.teaser h2 { font-family: "Merriweather Sans", sans-serif; }

h1, h3, .active, td:first-of-type, main a, .tipp, .hinweis, button, .teaser h2 { font-weight: 700; }
h2, .teaser h1 { font-weight: 300; }

h1 { font-size: 2em; }
h2, .teaser h1 { font-size: 1.5em; }
h3, .teaser h2 { font-size: 1.125em; }
th, .datum, figcaption { font-size: 0.8em; }

table { text-align: left; }
header nav, .foerderer { text-align: center; }
footer .rechtliches { text-align: right; }

nav ul li, footer ul li { list-style: none; }
a { text-decoration: none; }
th { text-transform: uppercase; }

/* ===== Farben */

footer, footer a, .klappbox-headline, button, .linien:hover { color: #fff; }
a, th { color: #00b9e4; }
nav a, .linien { color: #333; }
.hinweis { color: #ed2939; } /* Rot */
.tipp { color: #3f9c35; } /* Grün */

section, nav, .foerderer, .linien { background-color: #fff; }
footer { background-color: #333; }
/* Blau */
.klappbox-headline, button, .linien:hover { background-color: #333 } /* background-color: rgb(0, 185, 228); */
.klappbox-headline:hover, .klappbox-headline.active, button:hover { background-color: rgba(0, 185, 228);  } 
.klappbox-content { background-color: rgba(0, 185, 228, 0.25); }
body { background-color: #eee; } /* rgba(0, 185, 228, 0.075); */

footer .icon { filter: invert(100%) sepia(91%) saturate(38%) hue-rotate(321deg) brightness(110%) contrast(110%); }

section { border-top: 0.5em solid #00b9e4; }
nav ul li a { border-top: 0.25em solid transparent; }
nav ul li.active a, nav ul li.active:hover a { border-top: 0.25em solid #00b9e4; }
nav ul li:hover a { border-top: 0.25em solid #666; }
.projekt-content, .aktuelles-content { border-top: 2px solid #00b9e4; }

h1 + h2, .datum span { border-bottom: 1px solid #ccc; }
th { border-bottom: 2px solid #00b9e4; }
figcaption { border-bottom: 1px solid #00b9e4; }
td { border-bottom: 1px solid rgba(0, 185, 228, 0.25); }

.projekt-image { border: 1px solid #ccc; }
.linien { border: 1px solid #333; }

button, .teaser h1 + h2 { border: 0; }

/* ===== Abstände */

h1, h2, h3, p, ul, ol {
	margin: 0;
	padding: 0;
}

h1 + h2 {
	padding-bottom: 0.25em;
	margin-bottom: 1em;
}
.teaser h1 + h2 { 
	padding-bottom: 0;	
	margin-bottom: 0;
}

.projekt, .projekt-alt, .aktuelles-archiv + .aktuelles-archiv, .archiv-button button { margin-top: 4em; }
ul + h3, ol + h3, table + h3, table + div, .table-scrollable + h3, .table-scrollable + div, p + h2, ul + h2, ol + h2, h2 + .projekt-alt, .aktuelles, .aktuelles-archiv, h1 + p, p + h1 { margin-top: 2em; }
h2 + h3, p + h3, button, table + p, .table-scrollable + p { margin-top: 1.5em; }
h3 + p, .aktivitaet + .aktivitaet, .projekt-alt + .projekt-alt, p + p, h2 + p, p + ul, ul + p, h3 + ul { margin-top: 1em; }
table, .table-scrollable, img + h2 { margin-top: 0.5em; }
.team h2 + h3 { margin-top: 0; }

main ul, main ol { margin-left: 1em; }

.datum { margin-bottom: 1em; }


/* ===== Grundgerüst */

.outerwrapper, .innerwrapper { margin: 0 auto; }
.outerwrapper { 
	max-width: 1200px;
	width: 95%;
}
.innerwrapper { 
	max-width: 960px; 
	width: 90%;
}

nav ul li { transition: 0.25s; }
.klappbox-headline, button { transition: 0.5s; }

figure { margin: 2em 0 0; }
figcaption { padding: 0.5em 0; }
img { width: 100%; }

button { padding: 0.75em 1.25em; }

.klappbox-headline, button { cursor: pointer; }

.icon { width: 1em; }

/* == Tabellen */

table { 
	width: 100%;
	word-break: normal;
}
td, th { 
	padding: 0.5em 0;
	vertical-align: top;
}
td:first-of-type { width: 50%; }
td:nth-of-type(2) { width: 20%; }
td:nth-of-type(3) { width: 30%; }

.table-list:before { 
	content: "\25AA";
	margin-right: 0.5em; 
}

/* ===== Förderung */

.foerderer {
	width: 100%;
	padding: 0.5em 0;
	border-bottom: 1px solid #333;
	
	position: fixed;
	z-index: 10;
}
.foerderer + * { padding-top: 8em; }
.foerderer img { max-width: 894px; }

header { padding-top: 3em; } /* Förderer ausgeblendet */

/*
.foerderer .foerderer-logos { 
	max-width: 100%;
	white-space: nowrap;
}
.foerderer img:nth-of-type(1) { max-width: 600px; }
.foerderer img:nth-of-type(2) { max-width: 275px; }
.foerderer img + img { 
	margin-left: 1.5em;
	border-left: 1px solid #ccc;
	padding-left: 1.5em;
}
*/

/* ===== Header */

/* header { padding: 3em 0 0; } */

.logo img { 
	max-width: 100%;
	width: auto;
}

/* ===== Navigation */

nav { margin-top: 3em; }

nav ul li { display: inline-block; }
nav ul li + li { margin-left: 1em; }

nav ul li a {
	display: block;
	padding: 1em 1em 1.15em;
}

/* ===== Main */

.slideshow, .slideshow div {
	height: 30em;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

section { padding: 5em 0; }

/* ===== Aktuelles */

.aktuelles {
	display: grid;
	grid-template-columns: 48.5% 48.5%;
	grid-column-gap: 3%;
	grid-row-gap: 4em;
}

.aktuelles article:nth-of-type(1) { grid-column: 1 / 3; }

.aktuelles-content { padding-top: 1.5em; }

/* ===== Aktivitäten */

.klappbox-headline { padding: 1em 4em 1em 2em; }
.klappbox-headline h3:after {
  	content: '\002B'; /* Unicode character for "plus" sign (+) */
  	float: right;
	margin-right: -2em;
	color: #fff;
}
.klappbox-headline.active h3:after { content: "\2212"; /* Unicode character for "minus" sign (-) */ }

.klappbox-content { 
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease-out;
}
.klappbox-padding { padding: 2em; }

/* ===== Projekte */

.projekt-content { 
	width: 100%;
	padding-top: 2em;
}

.projekt-image { 
	width: 35%;
	float: left;
}

.projekt-image + .projekt-content { 
	width: 60%;
	float: left;
	margin-left: 5%;
}

/* ===== Partner */

.partner-logos {
	width: 100%;
	display: grid;
	justify-items: center;
	align-items: center;
	grid-template-columns: auto auto auto auto;
	grid-gap: 1em;
}
.partner-logos div {
	border: 1px solid #ccc;
	padding: 1em;
}

/* ===== Kontakt */

.team {
	margin-top: 4em;
	display: grid;
	grid-template-columns: 31.333333333% 31.333333333% 31.333333333%;
	grid-gap: 4em 3%;
}

/* ===== Footer */

footer { 
	padding: 2em 0;
	margin-bottom: 3em; 
}
footer .kontaktdaten { float: left; }
footer .rechtliches { float: right; }
footer ul li + li { margin-top: 0.5em; }








/* ==========================================================================
   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 (max-width: 1200px) {
    
	section { padding: 2.5em 0; }
	
}

@media only screen and (max-width: 1000px) {
	
	.foerderer + * { padding-top: 6em; }
    
	header { padding: 2em 0 0; }
	nav { margin-top: 2em; }
	
	.slideshow, .slideshow div { height: 25em; }
	
	body { font-size: 0.9em; }
	
	.partner-logos { grid-template-columns: auto auto auto; }
	
}

@media only screen and (max-width: 900px) {

	.team { grid-template-columns: 47.5% 47.5%; }
	
}

@media only screen and (max-width: 768px) {
	
	.aktuelles { grid-template-columns: 100%; }
	.aktuelles article:nth-of-type(1) { grid-column: auto; }
	
	.foerderer + * { padding-top: 5em; }
	
	.slideshow, .slideshow div { height: 20em; }

	.projekt-image {
		float: none;
		width: 100%;		
	}
	.projekt-image + .projekt-content {
		float: none;
		width: 100%;
		margin-left: 0;
	}
	.projekt-content {
		border-top: 0.25em solid #00b9e4;
		padding-bottom: 2em;
		border-bottom: 1px solid #333;
	}
	.projekt-alt .projekt-content {
		padding-bottom: 0;
		border-bottom: none;
	}
	
	td:nth-of-type(n) { width: auto; }
	th + th, td + td { padding-left: 2em; }
	
	.table-scrollable {
		width: 100%;
		overflow-y: auto;
		margin: 0 0 1em;
	}
	.table-scrollable::-webkit-scrollbar {
		-webkit-appearance: none;
		width: 1em;
		height: 1em;
	}
	.table-scrollable::-webkit-scrollbar-thumb {
		border-radius: 0.5em;
		border: 3px solid #fff;
		background-color: rgba(0, 0, 0, 0.3);
	}
	.klappbox-content .table-scrollable::-webkit-scrollbar-thumb { border-color: #bfedf8; }
	
	.partner-logos { grid-template-columns: auto auto; }
	
}

@media only screen and (max-width: 500px) {
	
	.foerderer + * { padding-top: 4em; }
	
	body { font-size: 0.8em; }

	.slideshow, .slideshow div { height: 15em; }
	
	footer .kontaktdaten, footer .rechtliches { float: none; }
	footer .rechtliches { 
		text-align: left;
		margin-top: 2em;
		border-top: 1px solid #fff;
		padding-top: 1em;
	}	
	
}

@media only screen and (max-width: 450px) {

	.team { 
		grid-template-columns: 100%;
		grid-row-gap: 2em;
	}
	
}

@media only screen and (max-width: 425px) {
	
	.foerderer + * { padding-top: 3em; }

	nav ul li { 
		width: 50%;
		display: block;
		float: left;
	}
	nav ul li + li { margin-left: 0; }
	nav ul li:nth-of-type(even) { border-left: 1px solid #ccc; }
	nav ul li:nth-of-type(n+3) { border-top: 1px solid #ccc; }
	
}

@media only screen and (max-width: 350px) {

	.partner-logos { grid-template-columns: auto; }
	
}

@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:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        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;
    }
}
