/*
Theme Name: psb_v02
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0
License: GNU General Public License
License URI: license.txt
Text Domain: psb_v02
Domain Path: /languages/
Tags:

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

 wengeritpage is based on Underscores http://underscores.me/, (C) 2012-2013 Automattic, Inc.

Resetting and rebuilding styles have been helped along thanks to the fine work of
Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
and Blueprint http://www.blueprintcss.org/
*/


/* =Reset
-------------------------------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}
html {
	font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */
	overflow-y: scroll; /* Keeps page centered in all browsers regardless of content height */
	-webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
	-ms-text-size-adjust:     100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
}
*,
*:before,
*:after { /* apply a natural box layout model to all elements; see http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
	-webkit-box-sizing: border-box; /* Not needed for modern webkit but still used by Blackberry Browser 7.0; see http://caniuse.com/#search=box-sizing */
	-moz-box-sizing:    border-box; /* Still needed for Firefox 28; see http://caniuse.com/#search=box-sizing */
	box-sizing:         border-box;
}
body {
	background: #fff;
	margin-bottom:50px;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section {
	display: block;
}
ol, ul {
	list-style: none;
}
table { /* tables still need 'cellspacing="0"' in the markup */
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
a:focus {
	outline: thin dotted;
}
a:hover,
a:active {
	outline: 0;
}
a img {
	border: 0;
}


/* =Global
----------------------------------------------- */

body,
button,
input,
select,
textarea {
	color: #404040;
	font-family: 'Signika Negative', sans-serif;
	font-size: 15px;
	font-weight:300;
}

input,
textarea {
	border:1px solid #a9b0a4;
}

h1, h2, h3, h4, h5, h6 {
	font-weight:700;
	color:#000;
	clear: both;
}
h1 {
	font-size:22px;
}
h2 {
	font-size:18px;
	margin-bottom:0.8em;
}
h3 {
	font-size:16px;
	margin-bottom:0.5em;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

/* Text elements */
p {
	margin-bottom: 1em;
	line-height: 1.5;
}
p+ul {
	margin-top:-1em;
}

p.small {
	font-size:13px;
}

ul, ol {
	margin: 0 0 1.5em 3em;
}
ul {
	list-style: square;
	
}
ol {
	list-style: decimal;
}
li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}
dt {
	font-weight: bold;
}
dd {
	margin: 0 1.5em 1.5em;
}
b, strong {
	font-weight: bold;
}
dfn, cite, em, i {
	font-style: italic;
}
abbr, acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}
mark, ins {
	background: #fff9c0;
	text-decoration: none;
}
sup,
sub {
	font-size: 75%;
	height: 0;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sup {
	bottom: 1ex;
}
sub {
	top: .5ex;
}
small {
	font-size: 75%;
}
big {
	font-size: 125%;
}
figure {
	margin: 0;
}
table {
	margin: 0 0 1.5em;
	width: 100%;
}
th {
	font-weight: bold;
}
img {
	height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */
}

/* Links */
a {
	color: #d0001d;
	font-weight:400;
	text-decoration:none;
}
a:visited {
	color: #d0001d;
}
a:hover,
a:focus,
a:active {
	color: #a60017;
}

/* Alignment */
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}
.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}

/* Clearing */
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: '';
	display: table;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/* =Special Style
----------------------------------------------- */
table.peopleListing {
	margin-left:15px;
	margin-right:15px;
}
table.peopleListing tr td {
	border-bottom:1px solid #DBDBDB;
}
table.peopleListing tr:last-child td {
	border-bottom:0;
}

table.peopleListing tr td.c {
	padding-bottom:10px;
	padding-top:10px;
	padding-right:5px;
}
table.peopleListing tr td.c1 {
	width:40%;
}
table.peopleListing tr td.c1small {
	width:25%;
}
table.peopleListing tr td.c2 {
	width:30%;
}
table.peopleListing tr td.c3 {
	width:auto;
}

/* events */
table.eventListing {
	margin-left:15px;
	margin-right:15px;
}

table.eventListing tr.evTRtitle td {
	padding-top:15px;
}
table.eventListing tr.evTRtitle:first-child td {
	padding-top:0px;
}

table.eventListing tr.evTRdetails td {
	padding-bottom:15px;
}
table.eventListing tr.evTRdetails td {
	border-bottom:1px solid #DBDBDB;
}
table.eventListing tr.evTRdetails:last-child td {
	border-bottom:0;
}


/* =Layout
----------------------------------------------- */
div#page {
	display: flex;
	flex-wrap: wrap;
	max-width:1250px;
	width: 100%;
	margin:0 auto;
}

header#masthead {
	width: 100%;
  	max-width: 1250px;
  	margin: 0 auto;
	
	min-height: 150px;     
  	padding: 50px 1rem;
	
	border-bottom:1px solid #a9b0a4;
	
	display: flex;
  	align-items: center;
  	justify-content: space-between;
    position: relative;
}

.site-branding {
  /* keine weiteren Regeln nötig, das img skaliert dank max-width:100% */
}

/* NAV 1 */
nav#navigation_first {
	flex: 0 0 250px;
	padding-top: 33px;
	background-color:#a9b0a4;
}
#navigation_first .sub-nav           {      /* the <ul> we inject */
	width: 100%;
    display:none;                  /* keep it hidden by default   */
	margin:0;
	padding:0;            /* small indent under parent   */
	list-style:none;
    position: relative;
    z-index: 1;
}
nav#navigation_first .sub-nav::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -200vw;        /* far past the left edge */
  width: 200vw;        /* cover twice the viewport width */
  background: #fff;
  z-index: -1;         /* behind the UL’s own content */
}
#navigation_first .sub-nav li {          /* its <li>s  */
	padding: 0 0 0 25px;
}

nav#navigation_first .sub-nav,
nav#navigation_first .sub-nav li,
nav#navigation_first .sub-nav li a {
  background: #fff;
  display: block;      /* make each link fill its container */
  width: 100%;
}

/* optional—make the whole row clickable and fill the full width */
nav#navigation_first .sub-nav li a {
    display:block;
    width:100%;
}

/* Show the sub-nav when you are inside that section */
#navigation_first li.current-menu-item    > .sub-nav,
#navigation_first li.current-menu-ancestor> .sub-nav,
#navigation_first li.current_page_item    > .sub-nav,
#navigation_first li.current_page_ancestor> .sub-nav {
	display:block;

}
nav#navigation_first ul {
	margin:0;
	list-style:none;
}
nav#navigation_first ul li {
	padding-left:70px;
	border-bottom:1px solid #777b74;
}
nav#navigation_first ul li a, nav#navigation_first ul li a:visited {
	font-weight:400;
	color:#515153;
}
nav#navigation_first ul li a:hover,
nav#navigation_first ul li.current-menu-item a,
nav#navigation_first ul li.current-page-ancestor a {
	color:#000000;
}

nav#navigation_first .sub-nav li {
    border-bottom: 1px solid #777b74;
}
nav#navigation_first .sub-nav li:last-child {
    border-bottom: none;
}

nav#navigation_first ul li ul {
  display: none;           /* hide all nested ULs by default */
  position: absolute;
  top: 100%;               /* drop down below parent */
  left: 0;
  background: #a9b0a4;
}
nav#navigation_first .sub-nav ul {
    display: none;            /* keep it closed by default        */
    margin: 0;
    padding: 0 0 0 25px;      /* little indent so it is obvious   */
    border-left: 1px solid #777b74;
    background: #fff;         /* same white strip as level-2      */
}

nav#navigation_first .sub-nav li { position: relative; }

nav#navigation_first .sub-nav li > ul {
    position: static;    /* back to normal flow            */
    top: auto;
    left: auto;
    display: none;       /* keep it closed by default      */
    margin: 0;
    padding: 0 0 0 25px; /* little indent for visual depth */
    border-left: 1px solid #777b74;
    background: #fff;
}

nav#navigation_first .sub-nav ul li a:hover,
nav#navigation_first .sub-nav ul li.current-menu-item    > a,
nav#navigation_first .sub-nav ul li.current_page_item    > a,
nav#navigation_first .sub-nav ul li.current-menu-ancestor> a,
nav#navigation_first .sub-nav ul li.current_page_ancestor> a {
    color:#000;                 /* same black as level-2 hover */
    background:#ececec;         /* optional subtle highlight   */
}

/* Mobile-Button verstecken */
.mobile-nav-toggle {
    display: none;
}

.mobile-nav-toggle .hamburger,
.mobile-nav-toggle .hamburger::before,
.mobile-nav-toggle .hamburger::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;             /* Dicke der Striche */
    background-color: #000;  /* schwarze Striche */
    border-radius: 2px;      /* abgerundete Enden */
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

/* 3. Position der drei Striche */
.mobile-nav-toggle .hamburger {
    top: 50%;
    transform: translateY(-50%);
}
.mobile-nav-toggle .hamburger::before {
    top: 8px;
}
.mobile-nav-toggle .hamburger::after {
    bottom: 8px;
}

/* FOOTER */
footer#mainfooter {
	max-width:1250px;
	width:100%;
	margin:0 auto;
	padding-right:5px;
	padding-top:5px;
	
	border-top:1px solid #a9b0a4;
	
	text-align:right;
	font-size:12px;
	color: #a9b0a4;
}
footer#mainfooter a {
	color: #515153;
}

/* CONTENT */
div#content {
	flex: 1;
    min-width: 0;
    padding: 1rem;
}

div#content div#primary {
	min-height:147px;
}
div#content div#secondary {

}

/* Tablet */
@media (max-width: 992px) {
    nav#navigation_first {
        position: fixed;
        top: 0;
        padding-top: 250px;
        width: 65%;
        height: 100%;
        overflow-y: auto;
        transition: transform 0.3s ease;
        left: 0;
        transform: translateX(-100%);
        background-color: #a9b0a4;
        z-index: 999;
    }
	nav#navigation_first {
    	padding-bottom: 40px; /* adjust value as needed */
	}
	nav#navigation_first ul li a {
        display: block;
        font-size: 16px;
        padding: 5px;
        line-height: 1.6;
    }
    body.nav-open nav#navigation_first {          /* JS toggles .nav-open */
        transform: translateX(0);
    }
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 1000;
    }
    div#content {
        width: 100%;
        padding: 1rem;
    }
}
/* Smartphone */
@media (max-width: 600px) {
    header#masthead { padding: 2rem 1rem; }
    .site-title { font-size: 1.6rem; }
    p, li { font-size: 1.4rem; line-height: 1.4; }
    .program-list a { padding-top: 16px; padding-bottom: 16px; }
    .program-list a::after { font-size: 24px; }

    nav#navigation_first ul li a {
        display: block;
        font-size: 20px;
        padding: 5px;
        line-height: 1.6;
    }
}

@media (max-width: 500px) {
    nav#navigation_first {
        width: 80%;
    }
    nav#navigation_first ul li {
        padding-left: 20px;
        text-indent: -2px;
    }
}