/**
 * @file
 * Positioning for a responsive layout.
 *
 * Define CSS classes to create a fluid grid layout with optional sidebars
 * depending on whether blocks are placed in the left or right sidebars.
 *
 * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
 */

/**
 * Center the page.
 *
 * For screen sizes larger than 1200px, prevent excessively long lines of text
 * by setting a max-width.
 */
#page,
.region-bottom {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

/* Apply the shared properties of grid items in a single, efficient ruleset. */
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
  padding-left: 30px;
  padding-right: 30px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  word-wrap: break-word;
  *behavior: url("/path/to/boxsizing.htc");
  _display: inline;
  _overflow: hidden;
  _overflow-y: visible;
}

/* Containers for grid items and flow items. */
#header,
#main,
#footer {
  *position: relative;
  *zoom: 1;
}
#header:before,
#header:after,
#main:before,
#main:after,
#footer:before,
#footer:after {
  content: "";
  display: table;
}
#header:after,
#main:after,
#footer:after {
  clear: both;
}

/* Navigation bar */
/*@media all and (min-width: 520px) {*/
@media all and (max-width: 620px) {
  #main {
    /* Move all the children of #main down to make room. */
    /*padding-top: 3em;*/
    position: relative;
  }
  #navigation {
    /* Move the navbar up inside #main's padding. */
    position: absolute;
    top: 0;
    height: 3em;
    width: 100%;
  }

  /* kirche tourismus css */
    body {
        border-width: 10px !important;
    }

    #site-name {
        font-size: 1.4em !important;
    }

/*
    .site-name-logo {
        height: 50%;
        width: 50%;
    }
*/
    .site-name-slogan {
        //height: 60px !important;
        margin-left: 60%;
        margin-top: -38px;
        float:right;
        width:40%;
    }


    #name-and-slogan {
        margin-bottom: -50px;
        margin-top: -60px !important;
    }

    .node__title a{
        font-size: 14pt !important;
    }

    #menu-link{
        font-size: 1.0em;
        margin-left: 5px;
        margin-top:15px;
    }

    #main .menu {
        line-height: 30px;
        margin-top:60px;
    }

    /*#content {
        margin-top:-30px;
    }*/

    .kt_image{
        float: left;
        width: 20%;
    }

    .kt_text{
        float: left;
        width: 70%;
        margin-bottom: 25px;
        margin-left: 15px;
    }

    #menue1, #region2, #highlight, #eventtype, #people, #date{
            height: 30px;
            font-size: 10pt !important;
    }

    img.print-icon {
        vertical-align: middle;
        width: 50%;
    }

    #block-print-ui-print-links {
        margin-right: 0px !important;
    }

    .et_reset {
        font-size: 13px !important;
        font-weight: bold;
        line-height: 1.5em;
        width: 120px !important;
        height: 35px !important;
    }

    .et_submit {
        font-size: 13px !important;
        font-weight: bold;
        line-height: 1.5em !important;
        width: 120px !important;
        height: 35px !important;
    }

    #et_headline h1 {
        font-size: 15pt;
    }

    #et_q {
        width: 65% !important;
        height: 28px;
    }

    .monthbar {
        font-size: 18pt !important;
        padding-left: 20% !important;
    }

    select > option {
        padding: 15px 8px 8px 8px;
    }

    .light-theme a, .light-theme span {
            background: none !important;
            box-shadow: none !important;
            font-size: 12px !important;
            line-height: 20px !important;
            min-width: 10px !important;
            border-radius: 5px !important;
            float: none !important;
            margin-right: 1px !important;
    }

    #itemsPerPage{
        height: 28px !important;
    }

    .et_filter_row_right {
        font-size:12px;
    }
}

/**
 * Use 3 grid columns for smaller screens.
 */
@media all and (min-width: 620px) and (max-width: 959px) {

  /**
   * The layout when there is only one sidebar, the left one.
   */

  /* Span 2 columns, starting in 2nd column from left. */
  .sidebar-first #content {
    float: left;
    width: 66.66667%;
    margin-left: 33.33333%;
    margin-right: -100%;
  }

  /* Span 1 column, starting in 1st column from left. */
  .sidebar-first .region-sidebar-first {
    float: left;
    width: 33.33333%;
    margin-left: 0%;
    margin-right: -33.33333%;
  }

  /**
   * The layout when there is only one sidebar, the right one.
   */

  /* Span 2 columns, starting in 1st column from left. */
  .sidebar-second #content {
    float: left;
    width: 66.66667%;
    margin-left: 0%;
    margin-right: -66.66667%;
  }

  /* Span 1 column, starting in 3rd column from left. */
  .sidebar-second .region-sidebar-second {
    float: left;
    width: 33.33333%;
    margin-left: 66.66667%;
    margin-right: -100%;
  }

  /**
   * The layout when there are two sidebars.
   */

  /* Span 2 columns, starting in 2nd column from left. */
  .two-sidebars #content {
    float: left;
    width: 66.66667%;
    margin-left: 33.33333%;
    margin-right: -100%;
  }

  /* Span 1 column, starting in 1st column from left. */
  .two-sidebars .region-sidebar-first {
    float: left;
    width: 33.33333%;
    margin-left: 0%;
    margin-right: -33.33333%;
  }

  /* Start a new row and span all 3 columns. */
  .two-sidebars .region-sidebar-second {
    float: left;
    width: 100%;
    margin-left: 0%;
    margin-right: -100%;
    padding-left: 0;
    padding-right: 0;
    clear: left;
  }

  /* Apply the shared properties of grid items in a single, efficient ruleset. */
  .two-sidebars .region-sidebar-second .block {
    padding-left: 10px;
    padding-right: 10px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    word-wrap: break-word;
    *behavior: url("/path/to/boxsizing.htc");
    _display: inline;
    _overflow: hidden;
    _overflow-y: visible;
  }

  /* Span 1 column, starting in the 1st column from left. */
  .two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
    float: left;
    width: 33.33333%;
    margin-left: 0%;
    margin-right: -33.33333%;
    clear: left;
  }

  /* Span 1 column, starting in the 2nd column from left. */
  .two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
    float: left;
    width: 33.33333%;
    margin-left: 33.33333%;
    margin-right: -66.66667%;
  }

  /* Span 1 column, starting in the 3rd column from left. */
  .two-sidebars .region-sidebar-second .block:nth-child(3n) {
    float: left;
    width: 33.33333%;
    margin-left: 66.66667%;
    margin-right: -100%;
  }

  /* kirche tourismus css */
      body {
        border-width: 15px !important;
    }

    .two-sidebars #content {
        float: left;
        margin-left: 20%;
        margin-right: -80%;
        width: 75%;
    }

    #menu-link{
        display: none;
    }

    .menu a.active {
        color: #999999;
        // text-decoration: underline;
        border-bottom: 5px solid #99ca99;
    }

    #site-name {
        font-size: 1.4em !important;
        margin-left: 37% !important;
        margin-top:40px;
    }


    .site-name-logo {
      height: auto;
      width: 84%;
    }

    .site-name-slogan {
        width: 22% !important;
        height: 22% !important;
        margin-left: 20%;
        //margin-top: -50px;
    }

    #name-and-slogan {
        margin-bottom: 20px !important;
    }

    .node__title a{
        font-size:16pt !important;
    }

     /*#main{
        margin-top:-30px;
    }*/


    .block-vk-slider{
     /*   margin-top: 20px;*/
    }

    #page-title, .node__title a{
        font-size:16pt !important;
    }

    .monthbar {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        font-size: 20pt !important;
        padding-left: 35% !important;
    }

    .kt_image_text_wrapper{
        clear: both;
        content: "";
        display: table;
    }

    .kt_image{
        float: left;
        width: 25%;
    }

    .kt_image > a img {
        max-width: 85%;
    }

    .kt_text{
        float: left;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 25px;
    }

    .kt_left{
        box-sizing: border-box;
        margin-left: 0;
        margin-bottom: 20px;
        width: 100%;
    }

    .kt_right{
        box-sizing: border-box;
        margin-right: -100%;
        margin-bottom: 20px;
        width: 100%;
    }

    #menue1, #region2, #highlight, #eventtype, #people, #date {
        height: 30px;
        font-size: 12pt !important;
        font-weight: normal !important;
    }

    #page-title{
        margin-top:5px;
    }

    #et_headline {
        margin-top: -12px;
        font-family: geogia;
        font-style:italic;
    }

    #et_headline h1{
        font-size: 18pt;
    }

    #et_q {
        width: 65% !important;
        height: 30px;
    }

    .et_reset {
        font-size: 13px !important;
        font-weight: bold;
        line-height: 1.5em;
        width: 130px !important;
        height: 40px !important;
    }

    .et_submit {
        font-size: 15px !important;
        font-weight: bold;
        line-height: 1.5em !important;
        width: 130px !important;
        height: 40px !important;
    }

    .et_filter_row_right {
        font-size:13px !important;
    }

    img.print-icon {
        vertical-align: middle;
        width: 75%;
        margin-left: -50%;
    }

    .light-theme a, .light-theme span {
            background: none !important;
            box-shadow: none !important;
            font-size: 15px !important;
            line-height: 28px !important;
            min-width: 20px !important;
            border-radius: 10px !important;
    }

    #itemsPerPage{
        height: 28px !important;
    }


    #block-vk-socialmedia-boxes-fb-like{
       overflow: auto;
       margin-top: 150px;
       margin-left:-100px;
       width: 50% !important;s
       -webkit-overflow-scrolling:touch;
    }


    .tabs-primary, .tabs-secondary {
        padding-left: 150px !important;
    }

}

@media all and (min-width: 1200px) {
  #block-slogan p {
    padding-bottom: 0px;
  }
}

/**
 * Use 5 grid columns for larger screens.
 */

@media all and (min-width: 960px) {

  /**
   * The layout when there is only one sidebar, the left one.
   */

  #block-slogan img {
    margin-right: -8.1em;
  }
  /* Span 4 columns, starting in 2nd column from left. */
  .sidebar-first #content {
    float: left;
    width: 80%;
    margin-left: 20%;
    margin-right: -100%;
  }

  /* Span 1 column, starting in 1st column from left. */
  .sidebar-first .region-sidebar-first {
    float: left;
    width: 20%;
    margin-left: 0%;
    margin-right: -20%;
  }

  /**
   * The layout when there is only one sidebar, the right one.
   */

  /* Span 4 columns, starting in 1st column from left. */
  .sidebar-second #content {
    float: left;
    width: 80%;
    margin-left: 0%;
    margin-right: -80%;
  }

  /* Span 1 column, starting in 5th column from left. */
  .sidebar-second .region-sidebar-second {
    float: left;
    width: 20%;
    margin-left: 80%;
    margin-right: -100%;
  }

  /**
   * The layout when there are two sidebars.
   */

  /* Span 3 columns, starting in 2nd column from left. */
  .two-sidebars #content {
    float: left;
    width: 60%;
    margin-left: 20%;
    margin-right: -80%;
  }

  /* Span 1 column, starting in 1st column from left. */
  .two-sidebars .region-sidebar-first {
  //  float: left;
    width: 20%;
  //  margin-left: 0%;
  //  margin-right: -20%;
  }

  /* Span 1 column, starting in 5th column from left. */
  .two-sidebars .region-sidebar-second {
    float: left;
    width: 20%;
    margin-left: 80%;
    margin-right: -100%;
  }

  /* kirche tourismus css */

    .header__name-and-slogan{
		float: none !important;
    }

    body {
        border-width: 25px;
    }

   #content{
        /*margin-top:30px;*/
    }


    #main .menu {
        font-size: 14pt;
        font-weight: bold;
        margin-bottom: 20px;
        margin-left: -5%;
        /*margin-top: 60px;*/
    }

    #menu-link{
        display:none;
    }

    .menu a.active {
        color: #999999;
        // text-decoration: underline;
        border-bottom: 10px solid #99ca99;
    }

    .menu__item.is-leaf {
        margin-bottom: 20px;
    }

    #menue1, #region2, #highlight, #eventtype, #people, #date{
            height: 50px;
    }

    .site-name-logo {
      height: auto;
      width: 79%;
    }

    .site-name-slogan {
		width: 20%;
		margin-left: 20%;
		height: auto;
    }


    .node__title a{
        font-size:24pt !important;
    }

    #et_q {
        width: 65% !important;
        height: 50px;
    }

    #et_headline {
        margin-top: -25px;
        font-family: geogia;
        font-style:italic;
    }

    .light-theme a, .light-theme span {
            background: none !important;
            box-shadow: none !important;
            font-size: 20px !important;
            line-height: 32px !important;
            min-width: 24px !important;
            border-radius: 10px !important;
    }

    .kt_left{
        box-sizing: border-box;
        float: left;
        margin-left: 0;
        margin-right: -50%;
        margin-bottom: 20px;
        width: 50%;
    }

    .kt_right{
        box-sizing: border-box;
        float: left;
        margin-left: 50%;
        margin-right: -100%;
        margin-bottom: 20px;
        width: 50%;
    }

    .light-theme a, .light-theme span {
        border: 1px solid #bbb;
        float: left;
        font-size: 14px;
        font-weight: normal;
        line-height: 24px;
        margin: 0 10px 0 0 !important;
        min-width: 40px !important;
        padding: 0 7px;
        text-align: center;
        box-shadow: none !important;
        border-radius: 10px !important;
    }

    #et_q {
        border: 2px solid #99CA99;
        border-radius: 10px !important;
        border: 2px solid #99CA99 !important;
        padding: 1px;
    }

    .et_reset {
        font-size: 18px !important;
        font-weight: bold;
        line-height: 1.5em;
        /*width: 150px !important;*/
        height: 50px;
    }

    .et_submit {
        font-size: 18px !important;
        font-weight: bold;
        line-height: 1.5em !important;
        width: 150px !important;
        height: 50px !important;
    }

    .monthbar {
        padding-left: 35% !important;
    }


    #block-vk-socialmedia-boxes-fb-like{
       overflow: auto;
       margin-top: 200px;
       margin-left:10px;
       width: 90% !important;
       -webkit-overflow-scrolling:touch;
    }
}

@media all and (min-width: 620px) and (max-width: 959px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
     /* IE10+ CSS styles go here */
         .site-name-logo {
        height: 45px;
        width: 187px;
        margin-left:20%;
    }

        .site-name-slogan {
        margin-right: 250px;
        margin-top:-50px;
        width:215px;
        margin-left:65%;
    }
    	.header__name-and-slogan{
		float: none !important;
    }
   /* #header {
      margin-bottom: 30px;
    }*/

}

@media all and (min-width: 960px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
     /* IE10+ CSS styles go here */
         .site-name-logo {
        height: 105px;
        width: 300px;
        margin-left:20%;
    }
        .site-name-slogan {
        margin-left: 65%;
        margin-top:-50px;
        width:215px;
    }
	.header__name-and-slogan{
		float: none !important;
    }

}

@media all and (max-width: 959px) {
  #content {
    /*margin-top: 25px;*/
    margin-left: unset!important;
  }
  #main #content {
    margin-right: unset!important;
    padding-right: 30px;
  }
  #main .menu {
    font-size: 10pt;
    font-weight: bold;
    margin-bottom: 15px;
    margin-left: -65%;
    line-height: 30px;
    margin-top: 32px;
  }

  menu, ol, ul {
    /*margin-left: -130px !important;*/
    margin-top: 10px;
  }
  .region-sidebar .block-superfish ul.menu li {
    margin-bottom: 0px!important;
  }
  #sidebar .sf-accordion-toggle a, #sidebar .sf-accordion-toggle a {
    font-size: unset!important;
  }
}
@media all and (max-width: 991px) {
  section#main {
    margin-top: 0px;
  }
  #block-socialmediafacebooklikebox {
    display: none;
  }
  #main #content {
    margin-top: 20px;
  }
}
@media all and (min-width: 960px) and (max-width: 991px) {
  #main #content {
    margin-left: unset!important;
    padding-right: 30px;
  }
}
@media all and (min-width: 960px) and (max-width: 1600px) {
  #block-slogan img {
    margin-right: unset!important;
  }
}
