@media only screen and (min-width: 0px) and (max-width: 1279px) {

    main {
        max-width: 900px;
    }

    .slider-text h4 {
        font-size: 1rem;
    }

    .swiper-container-horizontal > .swiper-pagination-bullets {
        bottom: 5px !important;
    }

    #anlage-slider .swiper-slide {
        height: 500px !important;
    }

    .vorstand {
        width: 30%;
        margin-bottom: 20px;
    }

    .gallery-image {
        height: 230px;
    }

    .gallery-image-hover {
        line-height: 230px;
    }

    a.gallery-box {
        height: 350px;
    }

    .map {
        height: 380px;
    }

    .partner {
        height: 155px;
        line-height: 155px;
    }

    .partner-color {
        height: 155px;
    }

}

@media only screen and (min-width: 0px) and (max-width: 1024px) {

    main {
        max-width: 676px;
    }

    .slider-text h2 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .slider-text {
        padding: 5%;
        padding-right: 15%;
        width: 80%;
    }

    #anlage-slider .swiper-slide {
        height: 400px !important;
    }

    .gallery-image {
        height: 175px;
    }

    .gallery-image-hover {
        line-height: 175px;
    }

    a.gallery-box {
        height: 300px;
    }

    h3.gallery-title {
        font-size: 1.3rem;
    }

    .map {
        height: 290px;
    }

    .partner {
        height: 200px;
        line-height: 200px;
        width: 45%;
        margin-right: 10%;
    }

    .partner:nth-child(2n+2) {
        margin-right: 0px !important;
    }

    .partner:nth-child(3n) {
        margin-right: 10%;
    }

    .partner-color {
        height: 200px;
    }

}


@media only screen and (min-width: 0px) and (max-width: 767px) {

    main {
        max-width: 90%;
    }

    .content {
        margin-top: 50px;
        margin-bottom: 50px;
    }

    a#menu-icon {
        display: block !important;
        top: 40px;
        right: 10px;
    }

    .lock-scroll {
        overflow: hidden;
    }

    #nav-scroll {
        display: none !important;
    }

    div#nav {
        position: fixed;
        right: -100%;
        top: 100px;
        bottom: 0px;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.8);
        -webkit-overflow-scrolling: touch;
        -webkit-transition: right 0.5s;
        transition: right 0.5s;
    }

    div#nav ul {
         margin-top: 40px;
    }

    #nav ul.level1 li {
        float: none;
        text-align: center;
        font-size: 1.6rem !important;
        height: 80px;
        line-height: 80px;
        padding: 0px;
    }

    div#nav ul.level1 li a {
        padding-left: 0px;
        padding-right: 0px;
    }

    .show {
        right: 0% !important;
    }

    .scrolled {
        height: 100px;
    }

    .swiper-wrapper-index .slider-text {
        bottom: 0px;
    }

    .slider-text {
        padding: 5%;
        width: 90%;
    }

    .slider-text h2 {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .slider-text h4 {
        font-size: 0.9rem;
        font-weight: 400;
    }

    footer {
        height: 100px;
    }

    footer ul {
        width: 100%;
        text-align: center;
    }

    .socialmedia {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    #main.main {
        height: 70% !important;
    }

    #anlage-slider .swiper-slide {
        height: 300px !important;
    }

    #anlage-slider {
        margin-bottom: 0px;
    }

    .vorstand {
        width: 49%;
    }

    .vorstand img {
        margin-left: auto;
        margin-right: auto;
    }

    .vorstand > strong, .vorstand > p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    a.gallery-box {
        display: block !important;
        width: 100%;
        margin-right: 0px;
    }

    .gallery-image {
        height: 300px;
    }

    .gallery-image-hover {
        line-height: 300px;
    }

    a.gallery-box {
        height: 400px;
    }

    .table-date {
        width: 35%;
    }

    .table-content {
        width: 60%;
    }

}


@media only screen and (min-width: 0px) and (max-width: 579px) {

    footer {
        height: 200px;
    }

    footer ul li {
        display: block;
    }

    #anlage-slider .swiper-slide {
        height: 250px !important;
    }

    .table-row-header {
        display: none;
    }

    .table-date {
        display: block;
        width: 100%;
        padding-left: 0px;
        text-align: center;
        font-size: 0.8rem;
        font-weight: 500;
        margin-bottom: 10px;
    }

    .table-content {
        display: block;
        width: 100%;
        text-align: center;
    }

    .box {
        padding: 25px;
    }

    .map {
        height: 200px;
    }

    .partner {
        display: block;
        width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
        height: 200px;
        margin-top: 5%;
        margin-bottom: 5%;
    }

    .partner:nth-child(2n+2) {
        margin-right: auto !important;
    }

    .partner:nth-child(3n) {
        margin-right: auto;
    }

}


@media only screen and (min-width: 0px) and (max-width: 420px) {

    .slider-text {
        padding-bottom: 7%;
        text-align: center;
    }

    .swiper-wrapper-index .slider-text {
        bottom: 0px;
        padding-bottom: 5% !important;
    }

    .vorstand {
        width: 100%;
        display: block;
    }

    h1, h2, h3, h4, p {
        text-align: center;
    }

    .box h3, .box h4 {
        text-align: left;
    }

    .gallery-image {
        height: 225px;
    }

    .gallery-image-hover {
        line-height: 225px;
    }

    a.gallery-box {
        height: 325px;
    }

}

@media only screen and (max-height: 500px) and (max-width: 767px) and (orientation:landscape) {

    div#nav ul {
        margin-top: 10px;
    }

    #nav ul.level1 li {
        font-size: 1.2rem !important;
        height: 40px;
        line-height: 40px;
    }

}