/**
 * "Yet Another Multicolumn Layout" - YAML CSS Framework
 *
 * default screen stylesheet - PAGE-layout type layout
 *
 * @copyright       Copyright 2005-2012, Dirk Jesse
 * @license         CC-BY 2.0 (http://creativecommons.org/licenses/by/2.0/),
 *                  YAML-CDL (http://www.yaml.de/license.html)
 * @link            http://www.yaml.de
 * @package         yaml
 * @version         v4.0.2
 * @revision        $Revision: 1.4 $
 * @lastmodified    $Date: 2013-07-29 13:46:08 $
 */

@media screen {

    /* force vertical scrollbar */
    body {
        overflow-y: scroll;

        * {
            box-sizing: border-box;
        }
    }

    body {
        background-repeat: repeat;
        background-position: top left;
        background-image: url(../../images/bg_body.png);
    }

    /* Layout Module Configuration & fallback for unsupported media queries */
    .ym-wrapper {
        min-width: 760px;
        max-width: 1280px;
        margin: 0 auto;
    }

    body.fullsize .ym-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }

    .ym-wbox {
        padding: 0px;
        float: left;
        width: 99.8%;
        margin-bottom: 0em;
        background: none;
    }

    /* Basic Element Styling */
    header {
        color: #eee;
        padding: 0;
        position: relative;
        float: left;
        width: 100%;
    }

    header h1 {
        background: transparent;
        color: #eee;
    }

    nav {
    }

    main {
        display: block;
    }

    #main {
        clear: both;
        padding: 20px 0;
        position: relative;
    }

    footer {
        margin: 0 0 0 0;
        color: #777;
        padding: 30px 0;
        float: left;
        width: 100%;
        background-repeat: repeat;
        background-position: top left;
        background-image: none;
        background-color: #e6e6e6;
        background-attachment: fixed;
    }

    footer .footer_inner a {
        text-decoration: underline;
    }

    footer .footer_inner a:hover {
        color: #000;
    }

    footer .footer_inner {
        width: 1240px;
        margin: 0 auto;
    }

    footer .contact1 {
        float: left;
        width: 14%;
    }

    footer .contact2 {
        float: left;
        width: 20%;
        margin-top: 33px;
    }

    footer .officehours {
        float: left;
        width: 41%;
    }

    footer .further_info {
        float: left;
        width: 25%;
    }

    footer .further_info ul li {
        float: left;
    }

    footer .further_info ul li a img {
        background-size: 100%;
        width: 50px;
    }

    footer p {
        margin: 0;
        line-height: 1.6em;
        font-size: 1.1em;
    }

    footer .footer-info {
        display: block;
        line-height: 1.6em;
        font-size: 0.9em;
    }

    footer .footer-date {
        display: block;
        line-height: 1.6em;
        font-size: 0.9em;
    }

    .pagepicture {
        display: block;
        height: 200px;
        clear: both;
    }

    .float_left {
        float: left;
        display: inline;
        margin-right: 1em;
        margin-bottom: 0.15em;
    }

    .float_right {
        float: right;
        display: inline;
        margin-left: 1em;
        margin-bottom: 0.15em;
    }

    .center {
        display: block;
        text-align: center;
        margin: 0.5em auto;
    }

    #jquery-overlay {
        z-index: 5000;
    }

    #jquery-lightbox {
        z-index: 5001;
    }

    /* 1-3-2 */
    .ym-column {
        display: table;
        width: 100%;
    }

    .ym-col1 {
        float: left;
        width: 200px;
    }

    .ym-col2 {
        float: right;
        width: 180px;
    }

    .ym-col3 {
        width: auto;
        margin: 0 180px 0 200px;
    }

    /* 1-3 */
    .twocol .ym-col1 {
        width: 200px;
        display: none;
    }

    .twocol .ym-col2 {
        display: block;
        width: 260px;
    }

    .twocol .ym-col3 {
        margin: 0 300px 0 0;
    }

    /* 3 */
    .onecol .ym-col1 {
        display: none;
    }

    .onecol .ym-col2 {
        display: none;
    }

    .onecol .ym-col3 {
        margin: 0 0 0 0;
    }

    /* 1-3 */
    .theme_startseite .twocol .ym-col1 {
        width: 48%;
        display: none;
    }

    .theme_startseite .twocol .ym-col2 {
        display: block;
        width: 100%;
    }

    .theme_startseite .twocol .ym-col3 {
        margin: 0 0 0 0;
        display: none;
    }

    .theme_startseite .twocol .ym-col2 .gcarticle,
    .theme_startseite .twocol .ym-col2 .gc_gcevent {
        width: 46%;
        padding: 1%;
    }

    .theme_startseite .twocol .ym-col2 .gcarticle .gallery {
    }


    .theme_startseite .twocol .ym-col2 .gcarticle {
        clear: both;
        float: left;
    }

    .theme_startseite .twocol .ym-col2 .gc_gcevent {
        float: right;
        clear: none;
    }


    .theme_startseite .twocol .ym-col2 .box-links {

        box-sizing: border-box;

        float: left;
        clear: left;
        width: 50%;
        padding: 1%;
    }

    .theme_startseite .twocol .ym-col2 .box-rechts {

        box-sizing: border-box;

        float: right;
        clear: right;
        width: 50%;
        padding: 1%;
    }

    @media screen and ( max-width: 740px ) {
        .theme_startseite .twocol .ym-col2 .box-links,
        .theme_startseite .twocol .ym-col2 .box-rechts,
        .theme_startseite .twocol .ym-col2 .gcarticle,
        .theme_startseite .twocol .ym-col2 .gc_gcevent {
            width: 100%;
            padding: 1% 0;
            clear: both;
        }
    }


    .ym-cbox {
        padding: 0
    }

    .ym-cbox-left {
        padding: 0 0 0 0
    }

    .ym-cbox-right {
        padding: 0 0 0 0
    }

    .ym-col1 .ym-cbox-content {
    }

    .ym-col2 .ym-cbox-content {
    }

    .ym-col3 .ym-cbox-content {
        float: left;
        width: 100%;
    }

    /* skip links styling */
    .ym-skiplinks a.ym-skip:focus,
    .ym-skiplinks a.ym-skip:active {
        color: #fff;
        background: #333;
        border-bottom: 1px #000 solid;
        padding: 10px 0;
        text-align: center;
        text-decoration: none;
    }
}

/* reset fallback values in modern browsers */
@media screen and ( min-width: 0px ) {
    .ym-wrapper {
        min-width: 0px;
    }
}

@media screen and ( max-width: 830px ) {
}

@media screen and ( max-width: 740px ) {

    /* Linearisation for Grid- and Column-Module, based on CSS class .linearize-level-1 */
    .linearize-level-1,
    .linearize-level-1 > [class*="ym-g"],
    .linearize-level-1 > [class*="ym-col"] {
        display: block;
        float: none;
        padding: 0;
        margin: 0;
        width: 100% !important;
    }

    .linearize-level-1 > [class*="ym-g"] > [class*="ym-gbox"],
    .linearize-level-1 > [class*="ym-col"] > [class*="ym-cbox"] {
        overflow: hidden; /* optional for containing floats */
        padding: 0;
        margin: 0;
    }

    nav .ym-hlist ul {
        padding-right: 10px;
    }

    .ym-searchform {
        display: block;
        float: none;
        width: auto;
        padding-right: 10px;
        text-align: right;
    }

    .ym-searchform input[type="search"] {
        width: 14%;
    }

    .ym-col3 {
        clear: both;
    }
}

@media screen and ( max-width: 480px) {

    .ym-wbox {
        padding: 0;
    }

    header {
        padding: 0;
    }

    header h1 {
        font-size: 1.5em;
        line-height: 1em;
        margin: 0;
    }

    footer,
    #main,
    .ym-searchform,
    nav .ym-hlist ul {
        padding-left: 0px;
        padding-right: 0px;
    }

    header .header-picture {
        min-height: 100px;
        max-height: 100px;
    }


    /* Linearisation for Grid- and Column-Module, based on CSS class .linearize-level-2 */
    .linearize-level-2,
    .linearize-level-2 > [class*="ym-g"],
    .linearize-level-2 > [class*="ym-col"] {
        display: block;
        float: none;
        padding: 0;
        margin: 0;
        width: 100% !important;
    }

    .linearize-level-2 > [class*="ym-g"] > [class*="ym-gbox"],
    .linearize-level-2 > [class*="ym-col"] > [class*="ym-cbox"] {
        overflow: hidden; /* optional for containing floats */
        padding: 0;
        margin: 0;
    }

    .ym-searchform,
    nav .ym-hlist ul,
    nav .ym-hlist li {
        display: block;
        float: none;
        width: auto;
        text-align: left;
    }

    .ym-searchform input[type="search"] {
        width: 75%;
    }
}