/**
 * SilverStripe Black Candy Theme
 * http://www.silverstripe.com
 *
 * Main Layout File
 */

/* Misc Styles and defaults
-------------------------------------------- */

p.todo {
    background-color: red;
    color: white !important;
    font-weight: bold;
    font-size: 16px !important;
    text-align: center;
    padding: 5px 0;
    width: 80%;
    margin: 10px auto !important;
    border-radius: 19px;
    box-shadow: 0 0 5px #000;
}

* {
    margin: 0;
    padding: 0;
}

body {
    color: #333;
    font-size: 62.5%;
    font-family: 'trebuchet MS', "Helvetica", sans-serif;
}

html {
    background: #426485;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

caption, th, td {
    text-align: left;
    font-weight: normal;
}

.hilight {
    color: #A5211C;
}

.clear {
    clear: both;
}

/* CONTAINER
----------------------------------------- */
#BgContainer {
    width: 963px;
    background: #fff;
    box-shadow: 3px 3px 3px 0px #333;
    padding-bottom: 50px;
}

#Container {
    margin-right: 83px;
    background: #fff;
}

#Layout {
    margin: 0 0 0 2px;
    padding: 20px;
    width: 588px;
    float: right;
    background: #f4f4f4;
}

#Content {
    width: 538px;
    float: right;
    margin: 0;
    text-align: left;
}

/* HEADER
----------------------------------------- */
#Header {
    width: 768px;
    margin-left: 185px;
    overflow: hidden;
    background: #fff;
    font-family: 'trebuchet MS', "Helvetica", sans-serif;
    text-transform: uppercase;
    float: right;
}

#Header img {
    float: right;
    margin-top: 20px;
}

#pageheader {
    height: 151px;
    font-family: 'trebuchet MS', "Helvetica", sans-serif;
    position: relative;
}

#pageheader img {
    float: left;
}

#pageheader #red-box {
    position: absolute;
    background: #4b6585;
    float: right;
    width: 220px;
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
    right: 0px;
}

#pageheader #red-box p {
    color: #FFF;
    font-size: 13px;
    margin-bottom: 10px;
}

#pageheader #red-box a {
    margin-top: 10px;
    color: #FFF;
    background-color: #a4201c;
    display: block;
    border-radius: 10px;
    padding: 7px 10px 5px 10px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
}

#pageheader #red-box img {
    /*float: right;*/
    width: 15px;
    float: none;
    vertical-align: middle;
}

#content.Home {
    width: 45%;
    float: left;
}

#content ul {
    margin: 0 0 20px 0;
}

div#greeting {
    width: 50%;
    float: left;
}

div#greeting div#broschuere p {
    width: 100%;
}

div#greeting div#broschuere p a {
    color: #666;
    margin-left: -20px;
}

div#greeting div#broschuere p a img {
    float: left;
    margin-right: 20px;
}

div#greeting div#broschuere {
    border-top: 1px solid #CCCCCC;
    margin-top: 14px;
    padding-top: 14px;
}

#standorte {
    width: 45%;
    float: right;
    background-color: #f4f5f6;
}

.standort {
    border-bottom: 1px solid #ccc;
    margin-bottom: 14px;
}

.standort p {
    margin-bottom: 14px;
    font-size: 12px;
}

.standort.last {
    border: none;
}

.standort .standort-link {
    font-size: 1.2em;
    font-weight: bold;
}

.typography .hotline {
    background-color: #4b6585;
    /*padding: 15px 15px 5px 15px;*/
    margin-bottom: 20px;
}

.typography .hotline .hotline-content {
	padding: 10px 15px 10px 15px;	
}

.typography .hotline h5 {
    color: #FFF;
	background-color: #a4201c;
	padding: 10px 15px 10px 15px;
}

.typography .hotline p {
    margin-bottom: 14px;
    font-size: 13px;
    color: #FFF;
}

.typography .hotline p img {
	width: 10px;
}

div#map_canvas h5 {
    margin-bottom: 5px;
}

div#map_canvas b {
    display: block;
    margin-bottom: 5px;
}

div#directionsPanel {
    margin-bottom: 20px;
}

/* MAIN NAVIGATION - TABS
----------------------------------------- */
#Navigation {
    height: 30px;
    margin-top: 10px;
    overflow: hidden;
    background: #fff url(../images/nav-bg.jpg) repeat-x left top;
    text-transform: uppercase;
}

#Navigation ul {
    height: 100%;
    float: left;
    margin: 1px 0 0 10px;
}

#Navigation ul li {
    list-style: none;
    margin: 0 2px;
    float: left;
    line-height: 2.8em;
    display: block;
    height: 100%;
}

#Navigation ul li a {
    float: left;
    text-decoration: none;
    display: block;
    height: 2.3em;
    font-size: 13px;
    padding: 0 0 0 6px;
    color: #000;
    font-weight: bold;
    height: 100%;
}

#Navigation ul li a span {
    text-align: center;
    float: left;
    padding-right: 6px;
    height: 2.3em;
}

#Navigation ul li a:hover {
    color: #426485;
    cursor: pointer;
}

#Navigation ul li a:hover span {
    cursor: pointer;
}

#Navigation ul li a.current,
#Navigation ul li a.section,
#Navigation ul li a.section:hover,
#Navigation ul li a.current:hover {
    background: url(../images/nav-current.png) no-repeat center bottom;
    color: #426485;
}

#Navigation ul li a.current span,
#Navigation ul li a.section span,
#Navigation ul li a.section:hover span,
#Navigation ul li a.current:hover span {
    color: #426485;
}


/* SEC-NAV
-------------------------------------------- */
#sec-nav {
    width: 230px;
    float: left;
    margin: 20px 0 20px 20px;
}

#sec-nav p.nav-title {
    font-size: 13px;
    color: #426485;
    font-weight: bold;
    margin: 5px 0 10px 0;
}

#sec-nav ul {
    list-style: none !important;
    background: #eaeff3;
    margin: 0;
}

#sec-nav ul li {
    width: 90%;
    margin: 0;
    border-bottom: 1px white solid;
}

#sec-nav ul li > div {
    width: 100%;
    margin: 0;
    padding: 5px 0 5px 5px;
}

#sec-nav ul li a {
    font-size: 12px;
    color: #484842;
}

#sec-nav ul li a.current {
    color: #a5211c;
    font-size: 12px;
    font-weight: bold;
}

#sec-nav .section {
    color: #a5211c;
    font-size: 13px;
    font-weight: bold;
}

#sec-nav ul.sub li {
    width: 84%;
    margin: 0;
}

#sec-nav ul.sub li > div {
    padding: 5px 0 5px 15px;
}

#sec-nav li.current > div {
    border-left: 5px solid #a5211c;
    margin-left: -5px !important;
}

#sec-nav ul li#last {
    border-bottom: none;
}

/* Content
 * ----------------------------------------- */
div.hideable, #standort > div {
    /* padding-bottom:0.5em;*/
}

#content h1 {
    font-size: 16px;
    margin-bottom: 24px;
}

#content h2, #content h3 {
    font-size: 14px;
    padding-bottom: 4px;
    margin-bottom: 4px;
}

#content h2.cleared {
    clear: both;
}

.closed h2, .opened h2 {
    cursor: pointer;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
}

#content h3 {
    color: #666;
}

#content h6 {
    font-size: 12px;
}

.closed {
    background: transparent url(../images/toggle-closed.png) top right no-repeat;
}

.opened {
    background: transparent url(../images/toggle-open.png) top right no-repeat;
    padding-bottom: 2em;
}

.linked {
    background: transparent url(../images/linked.png) top right no-repeat;
}

#content p {
    font-size: 12px;
    line-height: 1.4em;
    margin-bottom: 18px;
}

#content li p {
    margin: 0;
}

#standort #kontakt {
    margin-bottom: 10px;
}

#standort #leitung {
    font-size: 12px;
    margin-bottom: 10px;
}

#standort #leitung a {
    display: block;
    margin-top: 10px;
}

#standort #schwerpunkte ul {
    margin: 0 0 0 0.5em;
    list-style-type: square;
    font-size: 1.2em;
    color: #a5211c;
}

div#standort > div#mitarbeiter > h2 > a {
    color: #426485;
}

div#standort div#rundgang a.tour_pics {
    text-decoration: none;
}

div#standort div#rundgang a.tour_pics img {
    vertical-align: top;
    margin: 0 2px;
    margin-bottom: 10px;
}

.underlined > h2, h5.underlined {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px #ccc solid;
    padding-right: 20px;
}

p.underlined {
    font-size: 14px !important;
    padding-top: 10px !important;
    margin-bottom: 10px !important;
    border-bottom: 1px #ccc solid;
}

div#literaturverzeichnis {
    clear: both;
}

div#literaturverzeichnis > div > h2 {
    font-weight: normal;
}

div#literaturverzeichnis h6 {
    font-weight: normal;
    font-size: 14px;
}

div.mitarbeiter {
    float: left;
    width: 33%;
    margin-bottom: 40px;
    height: 276px;
}

div.mitarbeiter > h6 {
    margin: 6px 0;
}

div.joboffer {
    margin-bottom: 60px;
}

div.joboffer > h2 {
    font-size: 14px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

div.joboffer > h3 {
    font-size: 12px;
}

div.joboffer > p > span {
    color: #A5211C;
    font-weight: bold;
    font-family: Verdana;
}

div.zertifikate a {
    color: #666;
}


div.images {
    margin-bottom: 20px;
}

div.images > div.image {
    float: left;
    padding: 5px;
    margin: 5px;
}

div.images > div.image > p {
    margin-top: 2px;
    margin-bottom: 4px !important;
}

div.clear {
    clear: both;
    height: 1px;
    margin-bottom: 20px;
}

div.clear-divider {
    clear: both;
    height: 1px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

/* BREADCRUMBS
-------------------------------------------- */
#Breadcrumbs {
    color: #B7C0C5;
    text-align: left;
    font-size: 0.9em;
    margin: 0px 5px 10px 0;
}

#Breadcrumbs p {
    margin: 0;
}


/* SEARCH RESULTS STYLES
------------------------------------------------ */
ul#SearchResults {
    margin: 10px 0;
}

ul#SearchResults li {
    list-style: none;
    margin: 5px 0;
    font-size: 1em;
}

/* SEARCH FORM
-----------------------------------------------*/
#SearchForm_SearchForm {
    float: right;
    width: 240px;
    margin: 5px;
}

#SearchForm_SearchForm .middleColumn {
    float: left;
    width: 164px;
    margin: 0 5px 0 0;
    padding: 2px;
    background-color: #51a9df;
}

#SearchForm_SearchForm .middleColumn input.text {
    width: 160px;
    border: none;
    color: #666;
}

#SearchForm_SearchForm #SearchForm_SearchForm_action_results {
    float: left;
    margin-top: 2px;
}

/* MESSAGEBOXS
--------------------------------------------- */
.message {
    margin: 15px;
    padding: 5px;
    width: 92%;
    color: #979908;
    border: 4px solid #F7F8B4;
    background: #FFFFEA;
}

span.middleColumn .message {
    margin: 4px 0 0 3px;
}

.required {
    margin: 4px 0 0 3px;
    padding: 5px;
    width: 92%;
    color: #DC1313;
    border: 4px solid #FF7373;
    background: #FED0D0;
}

p#Remember label {
    margin: -24px 0 0 20px;
    text-align: left;
}

.entry {
    border-bottom: 1px solid #eee;
}

.typography #Content p.authorDate {
    color: #444;
    margin-top: -15px;
}

/* UNSUBSCRIBE NEWSLETTER
------------------------------------------------ */
#Unsubscribe_MailingListForm_MailingListForm {
    min-height: 100px;
}

#Unsubscribe_MailingListForm_MailingListForm p {
    margin: 0 !important;
    padding: 10px;
}

#Unsubscribe_MailingListForm_MailingListForm p label {
    display: inline;
}

#Unsubscribe_MailingListForm_MailingListForm label {
    margin: 0;
}


/* FOOTER
----------------------------------------------- */

#Footer {
    clear: both;
    height: 3em;
    background: #4b6585;
    margin-bottom: 20px;
}

#Footer p {
    color: #fff;
    font-size: 1em;
    text-align: center;
    float: right;
    margin-right: 12%;
    margin-top: 1em;
}

#Footer a {
    color: #fff;
    text-decoration: none;
}

#Footer a:hover {
    color: #fff;
    text-decoration: underline;
}

div#links div.description {
    width: 50%;
    float: left;
    margin-right: 5%;
}

div#links div.image {
    width: 45%;
    float: right;
}

div#links div.link {
    display: inline-block;
    border-top: 1px solid #ccc;
    padding: 8px 0;
    width: 100%;
}

div#Layout.white {
    background: white !important;
}


form#Form_ContactForm {
    margin: 0 auto;
    width: 80%;
}

form#Form_ContactForm div.field {
    display: inline-block;
    margin-top: 1px;
    background: #A5C0D1 url(../images/nav-bg.jpg) repeat-x left top;
}

form#Form_ContactForm div.field label {
    width: 140px;
    text-align: right;
    margin: 8px 0 0 0;
    line-height: 100%;
    float: left;
    color: #484842;
}

form#Form_ContactForm div.field div.middleColumn {
    margin: 0 0 0 160px;
    clear: none;
    background: #A5C0D1 url(../images/nav-bg.jpg) repeat-x left top;
}

form#Form_ContactForm div.field div.middleColumn select {
    width: 100%;
    color: #484842;
    background: #f4f4f4;
}

form#Form_ContactForm div.field div.middleColumn input {
    color: #484842;
    background: #f4f4f4;
}

form#Form_ContactForm div.field div.middleColumn textarea {
    color: #484842;
    background: #f4f4f4;
}

form#Form_ContactForm div.field span.message {
    display: inline-block;
    float: right;
    width: 288px;
    margin: 0 4px 4px 0;
}

form#Form_ContactForm div.Actions input.action {
    float: right;
    background: #A5211C;
    color: white;
    font-weight: bold;
    padding: 10px 30px;
}

.message {
    font-size: 12px;
    text-align: center;
    display: inline-block;
    margin: 0;
    border: 2px solid #4B6585;
    color: #4B6585;
    background: white;
    width: 95% !important;
}

.message.good, .message.success {
    border-color: green;
}

a.no-pdf-icon {
    background: transparent !important;
    margin: 0 !important;
    padding-left: 0 !important;
    vertical-align: top !important;
}

div.right img.right {
    width: 150px;
}

img.left, img.right {
    width: 300px;
    margin-bottom: 15px;
}

/* Responsive */

#Navigation label, #Navigation input, #Navigation p {
    display: none;
}

#schwerpunkte img {
    width: 150px;
}

@media (max-width: 880px) {
    #Header {
        width: 100%;
    }

    #Container {
        margin-right: 0px;
    }

    #BgContainer {
        width: 100%;
        box-sizing: border-box;
        padding: 5px;
    }

    #pageheader {
        height: auto;
    }

    #pageheader img {
        width: 77.5%;
        height: auto;
    }

    #pageheader #red-box {
        /*width: 22.5%;*/
        /*width: 22.5%;
        height: auto;*/
    }

    #pageheader #red-box img {
        /*width: 100%;*/
    }

    #Navigation ul li a {
        font-size: 11px;
    }

    #Navigation ul li {
        margin-left: 0px;
        margin-right: 0px;
    }

    #sec-nav {
        width: 26%;
    }

    #Layout {
        width: 65%;
    }

    div.badges div {
        float: none !important;
    }

    div.badges div img {
        width: auto !important;
    }
}

@media (max-width: 820px) {
    div.field.text, div.field.dropdown {
        float: none !important;
        clear: both !important;
    }

    #Form_ReservationForm {
        float: none !important;
        width: 100% !important;
    }

    #ReservationForm div {
        width: 100% !important;
    }

    form#Form_ContactForm {
        margin-left: 0px;
    }
}

@media (max-width: 740px) {
    #Navigation {
        position: relative;
        overflow: visible;
    }

    #Navigation ul {
        display: none;
        position: absolute;
        background-color: rgba(244, 244, 244, 1.0);
        float: none;
        height: auto;
        width: 100%;
        margin: 0px;
        margin-top: 7px;
        border-bottom: 2px solid #CCC;
		z-index: 500;
    }

    #Navigation ul li {
        display: block;
        width: 100%;
    }

    #Navigation ul li a {
        float: none;
        width: 100%;
        padding-left: 8px;
    }

    #Navigation ul li a.current, #Navigation ul li a.section, #Navigation ul li a.section:hover, #Navigation ul li a.current:hover {
        background-image: none;
    }

    #Navigation label {
        float: right;
        display: inline;
    }

    #Navigation label img {
        height: 25px;
        margin-top: 3px;
        margin-right: 3px;
    }

    #Navigation p {
        display: block;
        font-weight: bold;
        font-size: 13px;
        padding-top: 8px;
        margin-left: 8px;
    }

    #Navigation input[type=checkbox]:checked ~ ul {
        display: block;
    }

    #Layout {
        width: 100%;
        box-sizing: border-box;
    }

    #sec-nav {
        width: 100%;
        box-sizing: border-box;
        margin: 0px;
        padding: 10px;
    }

    #sec-nav ul li {
        width: auto;
    }

    #sec-nav p.nav-title + ul {
        display: none;
    }

    #sec-nav p.nav-title.current + ul {
        display: block;
    }

    /*#sec-nav p.nav-title + ul:hover {
        display: block;
    }*/
    #sec-nav p.nav-title::after {
        content: "▼";
        font-size: 11px;
        float: right;
    }

    #sec-nav p.nav-title.current::after {
        content: "▲";
    }

    #sec-nav p.nav-title {
        cursor: pointer;
        margin-bottom: 0px;
        padding: 10px;
        background-color: #4b6585;
        color: #FFF;
    }
}

@media (max-width: 600px) {
    #Header #logo {
        width: 100%;
        height: auto;
    }

    #standorte {
        width: 100%;
        margin-top: 20px;
    }

    div#greeting {
        width: 100%;
    }

    #Footer {
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 13px;
        margin-bottom: 0px;
    }

    #Footer span {
        display: none;
    }

    #Footer a {
        display: block;
        margin-top: 10px;
    }

    #Footer p {
        float: none;
        margin: 0px;
    }

    form#Form_ContactForm {
        width: 100%;
    }

    form#Form_ContactForm div.field label {
        display: block;
        width: 100%;
        text-align: left;
        padding-left: 10px;
        padding-bottom: 5px;
    }

    form#Form_ContactForm div.field div.middleColumn {
        margin-left: 0px;
        width: 100%;
        box-sizing: border-box;
    }

    form#Form_ContactForm div.field {
        width: 100%;
    }

    form#Form_ContactForm div.field div.middleColumn input, form#Form_ContactForm div.field div.middleColumn textarea {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    #pageheader img {
        width: 100%;
        height: auto;
        float: none;
    }

    #pageheader #red-box {
        position: static;
        display: block;
        width: 100%;
        float: none;
        height: auto;
    }
}

@media (max-width: 440px) {
    div.images > div.image {
        float: none;
        width: 90%;
    }

    div.images > div.image p {
        margin-bottom: 30px;
    }

    div.images > div.clear {
        height: 0px;
        margin-bottom: 0px;
    }

    #content img {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }

    #schwerpunkte img {
        width: 150px;
    }
}

/* Banner */

.banner {
    background: rgba(75, 101, 133, 0.7);
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.banner .box {
    margin-top: 60px;
    margin-left: 253px;
    position: relative;
    width: 466px;
    background-color: #FFF;
    font-size: 14px;
}

.banner .box h6 {
    color: #FFF;
    background-color: #A4201C;
    font-size: 1em;
    margin-bottom: 0px;
    line-height: 21px;
    padding: 5px;
    text-align: center;
}

.banner .box .text {
    padding: 30px;
    overflow-y: auto;
    max-height: 70vh;
}

.banner .box .text p {
    color: #426485;
    font-size: 1em;
    margin-bottom: 1em;
    line-height: 1.5em;
}

.banner .box .text ul {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.banner .box .text li {
    color: #426485;
    font-size: 1em;
    line-height: 21px;
    font-weight: bold;
}

.banner .box .text p a {
    color: #FFF;
    background-color: #a4201c;
    display: inline-block;
    border-radius: 10px;
    padding: 5px 10px 5px 10px;
    text-decoration: none;
    width: 50%;
    box-sizing: border-box;
}

.banner .box .close {
    position: absolute;
    right: -32px;
    top: -32px;
    width: 20px;
    height: 20px;
    opacity: 1;
    background-color: #FFF;
    border-radius: 50px;
    padding: 3px;
}

.banner .box .close:hover {
    opacity: 1;
}

.banner .box .close:before, .banner .box .close:after {
    position: absolute;
    left: 12px;
    content: ' ';
    height: 15px;
    width: 2px;
    top: 6px;
    background-color: #426485;
}

.banner .box .close:before {
    transform: rotate(45deg);
}

.banner .box .close:after {
    transform: rotate(-45deg);
}

@media (max-width: 960px) {
    .banner .box {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .banner .box .text {
        font-size: 12px;
    }

    .banner .box {
        margin: auto;
        width: 80%;
        position: relative;
        margin-top: 40px;
    }

    .banner .box .text p a {
        width: 100%;
    }
}
